PageSourceSearch

https://www.vinnies.org.au/_next/static/chunks/5878.378d2ca6980ddf7f.js

js vinnies.org.au collected 2026-10-02 05:51:59 UTC 15,238 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5878],{4375:(e,l,t)=>{t.d(l,{A:()=>x});var a=t(7876),s=t(9010),n=t(4450),i=t(6236),o=t(4517),c=t(6523),r=t(6629),d=t(4232),u=t(9099);let m=e=>{let{icon:l,text:t,href:s}=e;return(0,a.jsxs)("div",{className:"flex items-center mb-3",children:[l,(0,a.jsx)("p",{className:"mb-0",children:s?(0,a.jsx)("a",{href:s,className:"text-text-color-80 xl:block hover:underline",children:t}):(0,a.jsx)("span",{className:"mb-0",children:t})})]})},x=e=>{var l;let t=e.location.openingTimes?e.location.openingTimes:[],x=(0,u.useRouter)(),h=(0,d.useMemo)(()=>{var l,t,a;if(e.selectedSuggestion)return(0,r.Y)(e.location.lat,e.location.lng,e.selectedSuggestion.latitude,e.selectedSuggestion.longitude);if(null==x||null==(l=x.query)||!l.coords)return null;{let[l,s]=null==x||null==(a=x.query)||null==(t=a.coords)?void 0:t.split(",").map(e=>parseFloat(e));return(0,r.Y)(e.location.lat,e.location.lng,l,s)}},[e.location,e.selectedSuggestion,null==x||null==(l=x.query)?void 0:l.coords]),p=t.length?t.filter(e=>(0,i.e)(e.weekday)).map(e=>{var l,t;return(null==e?void 0:e.closed)?"Closed":(0,i.f)(null==(l=e.open)?void 0:l.split("T")[1],null==(t=e.close)?void 0:t.split("T")[1],"HH:mm:ss")})[0]:"Closed";return(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("div",{className:"flex-grow mt-3",children:[(0,a.jsx)("div",{children:(0,a.jsx)("h3",{className:"text-xl text-action-primary-blue-100",children:e.location.shopName})}),e.location.fullAddress&&(0,a.jsx)(m,{text:e.location.fullAddress,icon:(0,a.jsx)(c.gc,{icon:o.gKm,className:"mr-2 text-lg text-action-primary-blue-100"})}),e.location.openingTimes.length?(0,a.jsx)(m,{text:p,icon:(0,a.jsx)(c.gc,{icon:o.a$,className:"mr-2 text-lg text-action-primary-blue-100"})}):null,e.location.phoneNumber&&(0,a.jsx)(m,{text:e.location.phoneNumber,href:"tel:".concat(e.location.phoneNumber),icon:(0,a.jsx)(c.gc,{icon:o.KKr,className:"mr-2 text-lg text-action-primary-blue-100"})}),null!==h&&(0,a.jsx)(m,{text:"".concat((Math.round(10*h)/10).toFixed(1),"km"),icon:(0,a.jsx)(c.gc,{icon:o.I9X,className:"mr-2 text-lg text-action-primary-blue-100"})})]}),(0,a.jsxs)("div",{className:"flex flex-col flex-shrink w-full mt-5 mb-12 xl:flex-row self-baseline",children:[(0,a.jsx)("div",{className:"mb-5 xl:mb-0 xl:mr-5",children:(0,a.jsx)(s.A,{color:"yellow",url:"https://maps.google.com/maps?q=".concat(e.location.fullAddress),size:"lg",text:"Get Directions",target:"_blank",icon:(0,a.jsx)(c.gc,{icon:o.agC,className:"mr-2"})})}),(0,a.jsx)("div",{children:(0,a.jsx)(n.A,{size:"lg",url:e.location.url,text:"More info",icon:(0,a.jsx)(c.gc,{icon:o.mEO,className:"mr-2"})})})]})]})}},4450:(e,l,t)=>{t.d(l,{A:()=>r});var a=t(7876),s=t(8230),n=t.n(s),i=t(4232),o=t(4211),c=t(6467);let r=e=>{let[l,t]=(0,i.useState)(!1),s=(0,o.zh)({opacity:+!!l,marginLeft:l?15:-10}),r="flex items-center rounded-[4px] transition-all uppercase w-full border-2 box-border font-museo font-bold text-sm focus:outline-2 focus:outline active:outline-2 active:outline justify-center  active:opacity-75\n	".concat(e.fullWidth?"w-full":"w-full sm:w-fit justify-center","\n	").concat("lg"===e.size?"py-3 px-6":"py-2 px-5 text-sm"," ").concat(e.dark?"text-white outline-action-primary-blue-20":"text-action-primary-blue-120 border-action-primary-blue-120"," ");return e.disabled?(0,a.jsx)("button",{className:"cursor-not-allowed rounded-[4px] transition-all uppercase w-full sm:w-fit flex items-center font-museo font-bold text-sm outline outline-[#E4E4E4] outline-4 text-[#D4D5D5]\n  ".concat("lg"===e.size?"py-3 px-6":"py-2 px-5"," "),children:e.text}):e.url?(0,a.jsx)(n(),{legacyBehavior:!0,prefetch:!1,href:"".concat(e.url)||"",target:null==e?void 0:e.target,children:(0,a.jsxs)("a",{target:null==e?void 0:e.target,className:r,onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),children:[e.icon,(0,a.jsx)("span",{className:"ml-1 md:whitespace-nowrap",children:e.text}),(0,a.jsx)(o.CS.div,{style:s,children:e.dark?(0,a.jsx)(c.FQ,{}):(0,a.jsx)(c.Av,{})})]})}):(0,a.jsxs)("button",{className:r,onClick:e.onClickHandler,onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),children:[e.icon,(0,a.jsx)("span",{children:e.text}),(0,a.jsx)(o.CS.div,{style:s,children:e.dark?(0,a.jsx)(c.FQ,{}):(0,a.jsx)(c.Av,{})})]})}},4900:(e,l,t)=>{t.d(l,{A:()=>d});var a=t(7876),s=t(4517),n=t(6523),i=t(8230),o=t.n(i);t(4232);var c=t(683);let r=e=>{let{crumb:l,isLast:t}=e;return(0,a.jsxs)("div",{className:"flex flex-row items-center","aria-label":l.pageName,children:[t?(0,a.jsx)("span",{className:"text-sm capitalize font-museo text-action-primary-blue-80",children:l.pageName}):(0,a.jsx)(o(),{legacyBehavior:!0,prefetch:!1,href:"".concat(l.url)||"",children:(0,a.jsx)("a",{className:"text-sm font-extrabold capitalize font-museo text-action-primary-blue-80 hover:text-action-primary-blue-100 hover:underline",children:l.pageName})}),t?null:(0,a.jsx)(n.gc,{icon:s.XkK,className:"px-2 text-xs text-text-color-80"})]})},d=()=>{let{breadCrumbs:e}=(0,c.j)();return e&&e.length?(0,a.jsx)("div",{className:"flex flex-row flex-wrap mb-14","aria-label":"breadcrumb",children:e.map((l,t)=>(0,a.jsx)(r,{crumb:l,isLast:t===e.length-1},l.pageName+t))}):null}},5022:(e,l,t)=>{t.d(l,{A:()=>c});var a=t(7876),s=t(4587),n=t.n(s),i=t(4232),o=t(5572);let c=e=>{let{imageData:l,cropAlias:t,className:s,isPreview:c,height:r=500,width:d=
1500,alt:u,layout:m="fill"}=e,x=l||{focalPoint:void 0,src:"/not-found.png",imageCrops:[{alias:"listingSquare",width:547,height:371},{alias:"landingHero",width:826,height:781},{alias:"mobileTest",width:300,height:600},{alias:"listingFeature",width:666,height:480},{alias:"feature",width:831,height:537},{alias:"contentHero",width:833,height:564},{alias:"landscape",width:833,height:564},{alias:"cardCustomIcon",width:24,height:24},{alias:"fullWidthContentBackground",width:2652,height:600}]},h=(0,i.useMemo)(()=>{var e;if(t)return null==x||null==(e=x.imageCrops)?void 0:e.find(e=>e.alias===t)},[x,t]),p=(0,i.useCallback)(e=>{let{src:l,width:t,quality:a,height:s}=e,n=s/t,i=(null==h?void 0:h.coordinates)?Object.values(h.coordinates).join(","):null,o=i?"cc="+i:"rxy="+((null==x?void 0:x.focalPoint)?Object.values(null==x?void 0:x.focalPoint).join(","):"0.5,0.5");return"".concat(l,"?").concat(o+"&","width=").concat(t,"&height=").concat(t*n,"&quality=").concat(a||75,"&rrmode=crop")},[h]),g={height:null==h?void 0:h.height,src:"".concat(o.QU).concat(null==x?void 0:x.src),width:null==h?void 0:h.width,quality:75};return(null==h||h.width,null==h||h.height,null==h||h.height,null==h||h.width,"".concat(o.QU).concat(null==x?void 0:x.src),c)?(0,a.jsx)("img",{src:l?p(g):null==x?void 0:x.src,height:"fill"===m?"100%":h?null==h?void 0:h.height:r,alt:l?u:"Image not found",style:{height:"100%"},className:"".concat(s," relative"),width:"fill"===m?"100%":h?null==h?void 0:h.width:d}):(0,a.jsx)(n(),{src:l?p(g):null==x?void 0:x.src,fill:"fill"===m,loading:c?"eager":"lazy",className:"".concat(s),height:"fill"===m?void 0:h?null==h?void 0:h.height:r,alt:(null==l?void 0:l.altText)||u||"",width:"fill"===m?void 0:h?null==h?void 0:h.width:d})}},5878:(e,l,t)=>{t.r(l),t.d(l,{OpeningHours:()=>N,default:()=>y});var a=t(7876),s=t(1208),n=t.n(s),i=t(4232),o=t(5572),c=t(6678),r=t(6629),d=t(9010),u=t(4375),m=t(8055),x=t(4900),h=t(6236),p=t(283),g=t(2276),f=t(4517),v=t(6523),j=t(1651),b=t(5022);let N=e=>{let{openingData:l}=e;return(0,a.jsx)("div",{className:"py-4 border-b-2 border-action-secondary-40 last:border-0 last:pb-0",children:(0,a.jsxs)("div",{className:"flex flex-row justify-between font-semibold rounded-xl ".concat((0,h.e)(l.name)?"bg-white  py-3 -ml-1 -mr-2 px-2":"px-0"),children:[(0,a.jsx)("p",{className:"m-0",children:l.name}),(0,a.jsx)("p",{className:"m-0",children:(null==l?void 0:l.scheduled)?(0,h.f)(l.open,l.close):"Closed"})]})})},y=e=>{var l,t,s,y,w,A,S,k,D,M,C,T,H,q,z,E,O,L,P,_;let{pageData:K}=e,{storeLocations:F}=(e=>{let[l,t]=(0,i.useState)([]),[a,s]=(0,i.useState)(!1),[n,r]=(0,i.useState)(""),d=new URLSearchParams;null==e||e.forEach(e=>d.append("ShopKeysToExclude",e));let u=d.toString();return(0,i.useEffect)(()=>{(async()=>{s(!0);try{let e="".concat(o.QU,"/api/shops/get").concat(u?"?".concat(u):""),{data:l}=await (0,c.G)(e);l&&(t(l),s(!1))}catch(e){s(!1),console.error("err",e)}})()},[u]),{storeLocations:l,isLoading:a,error:n}})([K.key]),I=null==(s=K.location)||null==(t=s.address)||null==(l=t.coordinates)?void 0:l.lat,Q=null==(A=K.location)||null==(w=A.address)||null==(y=w.coordinates)?void 0:y.lng,W=(0,i.useMemo)(()=>void 0===I||void 0===Q?[]:F.filter(e=>e.id!==K.id).sort((e,l)=>(0,r.Y)(e.lat,e.lng,I,Q)-(0,r.Y)(l.lat,l.lng,I,Q)).slice(0,3),[K.id,I,Q,F]),Y=null==(S=K.openingHours)?void 0:S.map(e=>({...e,name:e.name,scheduled:e.scheduled})),B=K.openingHoursDateRangeOverrides;if(null==B?void 0:B.length){let e=new Date,l=(e.getDay()+6)%7;null==Y||Y.forEach(t=>{var a;let s=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"].indexOf(t.name),n=new Date(e);n.setDate(e.getDate()+(s-l));let i=null==B?void 0:B.find(e=>e.startDateTime&&e.endDateTime&&new Date(e.startDateTime)<n&&new Date(e.endDateTime)>n),o=null==i||null==(a=i.openingHours)?void 0:a.map(e=>({...e,name:e.name,scheduled:e.scheduled}));if(!(null==o?void 0:o.length))return;let c=o.find(e=>e.name===t.name);c&&(t.open=c.open,t.close2=c.close2,t.close=c.close,t.open2=c.open2,t.open=c.open,t.isSecondSet=c.isSecondSet,t.scheduled=c.scheduled)})}let U=Y&&(null==Y||null==(k=Y.filter(e=>
1(0,h.e)(e.name)&&(null==e?void 0:e.scheduled)))?void 0:k.map(e=>(0,h.f)(e.open,e.close))[0])||"Closed",{shopsLandingPageUrl:G}=(0,p.B)(),R=null==(D=K.shopName)?void 0:D.replace(/Vinnies/g,"").trim(),V=null==(M=K.emailAddress)?void 0:M[0];return(0,a.jsxs)(j.Od,{children:[(0,a.jsxs)("div",{className:"py-4",children:[(0,a.jsx)("div",{className:"mb-14",children:(0,a.jsx)(x.A,{})}),(0,a.jsxs)("h1",{className:"mb-6 text-3xl break-words text-action-primary-blue-100 md:text-5xl xl:text-6xl",children:[K.donationPoint?(0,a.jsx)(v.gc,{icon:g.c7N}):(0,a.jsx)(v.gc,{icon:f.H37}),(0,a.jsx)("span",{className:"ml-3",children:K.shopName})]}),(0,a.jsxs)("div",{className:"flex flex-col  text-text-color-80 lg:flex-row mb-3",children:[(0,a.jsxs)("a",{href:"https://maps.google.com/maps?q=\n						".concat(K.addressLineOne,", ").concat(K.addressSuburb," ").concat(K.addressState," ").concat(K.addressPostcode,"\n					"),className:"mr-1 mb-5 lg:mb-0 underline lg:mr-6 hover:text-action-primary-blue-100",children:[(0,a.jsx)(v.gc,{icon:g.gKm,className:"mr-2 text-xl text-action-primary-blue-100"}),K.addressLineOne,", ",K.addressSuburb," ",K.addressState," ",K.addressPostcode]}),(0,a.jsx)("div",{className:"mr-1 mb-5 lg:mb-0 lg:mr-6",children:(0,a.jsxs)("a",{href:"tel:".concat(K.phoneNumber),className:"underline hover:text-action-primary-blue-100",children:[(0,a.jsx)(v.gc,{icon:f.KKr,className:"mr-2 text-xl text-action-primary-blue-100"}),K.phoneNumber]})}),(null==V?void 0:V.address)?(0,a.jsx)("div",{className:"mr-1 mb-5 lg:mb-0 lg:mr-6",children:(0,a.jsxs)("a",{href:"mailto:".concat(V.address),className:"underline hover:text-action-primary-blue-100",children:[(0,a.jsx)(v.gc,{icon:f.y_8,className:"mr-2 text-xl text-action-primary-blue-100"}),V.displayName||V.address]})}):null,U?(0,a.jsxs)("p",{className:"mr-1 mb-5 lg:mr-6",children:[(0,a.jsx)(v.gc,{icon:f.a$,className:"mr-2 text-xl text-action-primary-blue-100"}),"Closed"!==U?"Open - "+U:U]}):null]}),(0,a.jsxs)("div",{className:" w-full flex flex-col xl:grid xl:grid-cols-3  gap-5 min-height min-h-[386px]",children:[(0,a.jsxs)("div",{className:"relative w-full  rounded-3xl overflow-hidden xl:col-span-2   min-h-[386px] xl:h-auto",children:[(0,a.jsx)(n(),{alt:"Location of Vinnies ".concat(R," on a map"),className:"object-cover w-full h-full ",layout:"fill",quality:100,src:"https://maps.googleapis.com/maps/api/staticmap?key=".concat(o.xv,"&center=").concat((null==(T=K.location)||null==(C=T.address)?void 0:C.coordinates).lat,",").concat((null==(q=K.location)||null==(H=q.address)?void 0:H.coordinates).lng,"&size=640x640&zoom=",15,"&markers=size:large|anchor:bottomright|icon:","https://i.imgur.com/evhWqXZ.png","|color:blue|label=C|").concat((null==(E=K.location)||null==(z=E.address)?void 0:z.coordinates).lat,",").concat((null==(L=K.location)||null==(O=L.address)?void 0:O.coordinates).lng)}),(null==K||null==(P=K.location)?void 0:P.fullAddress)?(0,a.jsx)("div",{className:"mb-5 xl:mb-0 xl:mr-5 absolute left-5 top-5 md:top-9 md:left-8",children:(0,a.jsx)(d.A,{color:"yellow",url:"https://maps.google.com/maps?q=".concat(null==K||null==(_=K.location)?void 0:_.fullAddress),size:"lg",text:"Get Directions",target:"_blank",icon:(0,a.jsx)(v.gc,{icon:g.agC,className:"mr-2"})})}):null]}),(0,a.jsxs)("div",{className:"flex flex-col p-6 rounded-3xl bg-surface-20 text-text-color-80 font-museo ",children:[(0,a.jsx)("h3",{className:"mb-1 text-action-primary-blue-100 whitespace-nowrap",children:"Opening hours"}),(null==Y?void 0:Y.length)?null==Y?void 0:Y.map(e=>(0,a.jsx)(N,{openingData:e},e.name)):(0,a.jsx)("p",{children:"No opening hours listed"}),(0,a.jsx)("div",{className:" rounded-xl mt-5 w-full ",children:(0,a.jsxs)("p",{className:"mb-0 text-sm",children:[(0,a.jsx)("strong",{children:"Public Holidays:"})," ",K.holidays]})})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col md:flex-row  items-center justify-between my-7",children:[(0,a.jsx)("div",{className:"".concat(K.image?"md:max-w-[688px]":"w-full","  md:pr-16 xl:pr-32"),children:(0,a.jsx)("div",{className:"w-full rich-text",dangerouslySetInnerHTML:{__html:(null==K?void 0:K.description)||""}})}),(null==K?void 0:K.image)?(0,a.jsx)("div",{className:"relative basis-1/2 shrink-0 w-full aspect-4/3 lg:aspect-6/4  md:p-16 xl:p-32 featured-content-description",children:(0,a.jsx)(b.A,{imageData:null==K?void 0:K.image,className:"object-cover rounded-3xl",cropAlias:"feature"})}):null]}),(0,a.jsx)(m.A,{stack:K.stack}),(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex items-end justify-between w-full my-10",children:[(0,a.jsxs)("h2",{className:" text-action-primary-blue-100",children:["Nearby shops",(0,a.jsx)("br",{}),"& donation points"]}),(0,a.jsx)("div",{className:"hidden lg:block",children:(0,a.jsx)(d.A,{text:"View all shops and points",url:G,icon:(0,a.jsx)(v.gc,{icon:g.agC,className:"mr-2"}),color:"yellow"})})]}),(0,a.jsx)("div",{className:"grid h-full grid-cols-1 gap-5 md:grid-cols-2 xl:grid-cols-3 mb-28 auto-rows-fr min-h-fit",children:W.map(e=>(0,a.jsx)(u.A,{location:e},e.id))})]})]})}},6236:(e,l,t)=>{t.d(l,{e:()=>r,f:()=>c});var a=t(9258),s=t(3929),n=t(4440),i=t(16);
1let o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=function(e,l){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(!l||!e)return"Closed";{let i=(0,a.A)(e,t,new Date),o=(0,a.A)(l,t,new Date);return(0,s.A)(i)&&(0,s.A)(o)?"".concat((0,n.A)(i,"h:mm a")," - ").concat((0,n.A)(o,"h:mm a")):"".concat(e," - ").concat(l)}},r=e=>o[(0,i.A)(new Date)]===e},6629:(e,l,t)=>{function a(e,l,t,a){let n=s(t-e),i=s(a-l),o=Math.sin(n/2)*Math.sin(n/2)+Math.cos(s(e))*Math.cos(s(t))*Math.sin(i/2)*Math.sin(i/2);return 2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))*6371}function s(e){return Math.PI/180*e}t.d(l,{Y:()=>a})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.