1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[779],{79382:function(t,e,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/stores/[slug]",function(){return o(33528)}])},64884:function(t,e,o){"use strict";var d=o(85893);e.Z=t=>{let{...e}=t;return(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{d:"M12 0c-4.198 0-8 3.403-8 7.602 0 4.198 3.469 9.21 8 16.398 4.531-7.188 8-12.2 8-16.398 0-4.199-3.801-7.602-8-7.602zm0 11c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3z"})})}},33528:function(t,e,o){"use strict";o.r(e),o.d(e,{__N_SSG:function(){return S},default:function(){return C}});var d=o(85893),n=o(36489),i=o(41664),l=o.n(i),a=o(64884),s=o(67294),r=o(56481),u=o(56707),c=o(9144),v=o.n(c);function h(t){var e,o,n,i,a,c,h,m;let[p,x]=(0,s.useState)({}),[g,f]=(0,s.useState)("");return(0,s.useEffect)(()=>{if(t.store){var e,o,d,n,i,l;x(t.store),(0,u.d)(null===(o=t.store)||void 0===o?void 0:null===(e=o.data)||void 0===e?void 0:e.store_url)?f(t.store.data.store_url.url):f("https://www.google.com/maps/search/?api=1&query=".concat(null===(n=t.store.data)||void 0===n?void 0:null===(d=n.geolocation)||void 0===d?void 0:d.latitude,",").concat(null===(l=t.store.data)||void 0===l?void 0:null===(i=l.geolocation)||void 0===i?void 0:i.longitude))}},[t]),(0,d.jsx)(d.Fragment,{children:p&&p.uid&&(0,d.jsxs)("div",{className:v().root,children:[(0,d.jsxs)("div",{className:"text-sm",children:[(0,d.jsx)("div",{className:"text-sm mb-1.5 w-1/2 uppercase font-bold",children:null===(o=p.data)||void 0===o?void 0:null===(e=o.name[0])||void 0===e?void 0:e.text}),(0,d.jsxs)("div",{className:"w-2/3 md:w-2/3 mb-4",children:[(0,d.jsxs)("span",{children:[null===(n=p.data)||void 0===n?void 0:n.street_address,","]}),(0,d.jsx)("br",{}),(0,d.jsxs)("span",{children:[null===(i=p.data)||void 0===i?void 0:i.suburb,", "]}),(0,d.jsxs)("span",{children:[null===(a=p.data)||void 0===a?void 0:a.postcode,", "]}),(0,d.jsxs)("span",{children:[null===(c=p.data)||void 0===c?void 0:c.state," "]})]}),(0,d.jsx)(l(),{href:g,passHref:!0,legacyBehavior:!0,children:(0,d.jsx)(r.Z,{Component:"a",className:v().getDirectionsButton,children:"Get Directions"})}),(0,d.jsx)("div",{className:"mt-2",children:(0,d.jsx)("a",{href:"tel:".concat(null===(h=p.data)||void 0===h?void 0:h.phone),className:"text-xs underline mt-1.5 inline-block",children:null===(m=p.data)||void 0===m?void 0:m.ph
1one})})]}),(0,d.jsxs)("div",{className:"text-xs mt-7",children:[(0,d.jsx)("div",{className:"text-xs mb-2 w-1/2 font-bold",children:"Hours"}),p.data.hours.map(t=>{let[e,...o]=t.text.split(" ");return(0,d.jsxs)("p",{className:"flex justify-between w-3/5 md:w-4/5",children:[(0,d.jsx)("span",{children:e}),(0,d.jsx)("span",{children:null==o?void 0:o.join(" ")})]})})]})]})})}var m=o(11163),p=o(2962),x=o(61108);o(80571);var g=o(9008),f=o.n(g);function j(t){let{data:e}=t,{name:o,url:n,telephone:i,address:l,geo:a,openingHours:s}=e;return(0,d.jsx)(f(),{children:(0,d.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"ClothingStore",name:"Ghanda - ".concat(o),url:n,...i&&{telephone:i},address:{"@type":"PostalAddress",...l.streetAddress&&{streetAddress:l.streetAddress},...l.suburb&&{addressLocality:l.suburb},...l.state&&{addressRegion:l.state},...l.postcode&&{postalCode:l.postcode},addressCountry:"AU"},geo:{"@type":"GeoCoordinates",latitude:a.latitude,longitude:a.longitude},...(null==s?void 0:s.length)&&{openingHours:s},parentOrganization:{"@type":"Organization",name:"Ghanda Clothing",url:"https://ghanda.com"}})}})})}let w={monday:"Mo",tuesday:"Tu",wednesday:"We",thursday:"Th",friday:"Fr",saturday:"Sa",sunday:"Su"};function b(t){let e=t.trim().match(/^(\d{1,2}):(\d{2})(am|pm)$/i);if(!e)return t;let[,o,d,n]=e,i=parseInt(o);return"pm"===n.toLowerCase()&&12!==i&&(i+=12),"am"===n.toLowerCase()&&12===i&&(i=0),"".concat(String(i).padStart(2,"0"),":").concat(d)}let y={width:"100%",height:"60vh"},N="".concat("pk.eyJ1IjoiZ2hhbmRhaXQiLCJhIjoiY2ttazQ3ZWoyMHhxNzJ2bzR6ZWJlcW1uNCJ9.h6AawxlWbJmDHCcm9qNQCA"),_={right:10,top:10};var S=!0;function C(t){var e,o,n,i,r,u,c,v,g,f,S,C,z,k,E,A,G,H,B,J,M,Z,L,P,F,R;
1let T=(0,m.useRouter)(),[W,D]=(0,s.useState)([]),I={latitude:(null==W?void 0:null===(o=W.data)||void 0===o?void 0:null===(e=o.geolocation)||void 0===e?void 0:e.latitude)||-38.33994609079839,longitude:(null==W?void 0:null===(i=W.data)||void 0===i?void 0:null===(n=i.geolocation)||void 0===n?void 0:n.longitude)||144.74065622074417,zoom:13},[O,q]=(0,s.useState)(I),{slug:Q}=T.query;if("undefined"!=typeof document){let t=document.getElementsByClassName("ignoreMinHeight");t.length&&t[0]&&t[0].parentElement&&(t[0].parentElement.style.minHeight="auto")}let X={name:null==W?void 0:null===(c=W.data)||void 0===c?void 0:null===(u=c.name)||void 0===u?void 0:null===(r=u[0])||void 0===r?void 0:r.text,url:"".concat("https://ghanda.com","/stores/").concat(null==W?void 0:W.uid),telephone:null==W?void 0:null===(v=W.data)||void 0===v?void 0:v.phone,address:{streetAddress:null==W?void 0:null===(g=W.data)||void 0===g?void 0:g.street_address,suburb:null==W?void 0:null===(f=W.data)||void 0===f?void 0:f.suburb,state:null==W?void 0:null===(S=W.data)||void 0===S?void 0:S.state,postcode:null==W?void 0:null===(C=W.data)||void 0===C?void 0:C.postcode},geo:{latitude:null==W?void 0:null===(k=W.data)||void 0===k?void 0:null===(z=k.geolocation)||void 0===z?void 0:z.latitude,longitude:null==W?void 0:null===(A=W.data)||void 0===A?void 0:null===(E=A.geolocation)||void 0===E?void 0:E.longitude},openingHours:null==(R=null==W?void 0:null===(G=W.data)||void 0===G?void 0:G.hours.map(t=>t.text))?void 0:R.map(t=>{var e;let o=null==t?void 0:null===(e=t.trim())||void 0===e?void 0:e.match(/^(\w+)\s+(\d{1,2}:\d{2}(?:am|pm))\s*[-ââ]\s*(\d{1,2}:\d{2}(?:am|pm))$/i);if(!o)return null;let[,d,n,i]=o,l=w[d.toLowerCase()];return l?"".concat(l," ").concat(b(n),"-").concat(b(i)):null}).filter(Boolean)},$=t=>{t&&t.latitude&&q({latitude:t.latitude,longitude:t.longitude,zoom:t.zoom})};(0,s.useEffect)(()=>{D(null==t?void 0:t.currentStore)},[]),(0,s.useEffect)(()=>{if(W){var t,e,o,d;q({latitude:(null==W?void 0:null===(e=W.data)||void 0===e?void 0:null===(t=e.geolocation)||void 0===t?void 0:t.latitude)||-38.33994609079839,longitude:(null==W?void 0:null===(d=W.data)||void 0===d?void 0:null===(o=d.geolocation)||void 0===o?void 0:o.longitude)||144.74065622074417,zoom:13})}},[W]);let U=(0,s.useMemo)(()=>{if(W&&W.data){var t,e,o,n;return(0,d.jsx)(x.Jx,{anchor:"bottom",latitude:null===(t=W.data.geolocation)||void 0===t?void 0:t.latitude,longitude:null===(e=W.data.geolocation)||void 0===e?void 0:e.longitude,children:(0,d.jsx)(a.Z,{})},null===(n=W.data)||void 0===n?void 0:null===(o=n.name[0])||void 0===o?void 0:o.text)}},[W]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j,{data:X}),(0,d.jsx)(p.PB,{title:"".concat((null===(B=W.data)||void 0===B?void 0:null===(H=B.name[0])||void 0===H?void 0:H.text)||"Ghanda Clothing"),description:"Find out more about ".concat(null===(M=W.data)||void 0===M?void 0:null===(J=M.name[0])||void 0===J?void 0:J.text,"'s opening hours and contact details."),openGraph:{type:"website",title:"".concat((null===(L=W.data)||void 0===L?void 0:null===(Z=L.name[0])||void 0===Z?void 0:Z.text)||"Ghanda Clothing"),description:"Find out more about ".concat((null===(F=W.data)||void 0===F?void 0:null===(P=F.name[0])||void 0===P?void 0:P.text)||"Ghanda store","'s opening hours and contact details.")}}),(0,d.jsxs)("div",{className:"pt-6 pb-8 px-3 md:px-12 ignoreMinHeight",children:[(0,d.jsx)("div",{className:"flex justify-center m-auto font-sans",children:(0,d.jsx)("h2",{className:"h2 font-sans store-finder-heading",children:"Find a Store"})}),(0,d.jsx)("div",{className:"flex w-full justify-center m-auto mt-1 font-sans",children:(0,d.jsx)(l(),{href:{pathname:"../store-finder",query:{showSearch:!0}},className:"border-b border-black font-sans text-xs",children:"Return to Search"})}),W&&W.uid&&(0,d.jsxs)("div",{className:"flex flex-col-reverse md:flex-row container m-auto font-sans mt-6",children:[(0,d.jsx)("div",{className:"w-full md:w-1/4 flex mt-6 md:mt-0 mr-6",children:W&&W.uid&&(0,d.jsx)(h,{store:W})}),(0,d.jsx)("div",{className:"w-full md:w-3/4",children:(0,d.jsxs)(x.ZP,{dragPan:!0,mapboxAccessToken:N,mapStyle:"".concat("mapbox://styles/ghandait/ckrk6vr7e8ztl18phhaz5263f"),...O,style:y,onMove:t=>$({...t.viewState}),children:[(0,d.jsx)(x.Pv,{style:_}),U]})})]})]})]})}C.Layout=n.Z},56707:function(t,e,o){"use strict";o.d(e,{d:function(){return d}});let d=t=>void 0!==t&&"Web"===t.link_type&&void 0!==t.url},9144:function(t){t.exports={root:"store-details_root__InuR5",getDirectionsButton:"store-details_getDirectionsButton__pgejS"}}},function(t){t.O(0,[714,822,360,489,888,774,179],function(){return t(t.s=79382)}),_N_E=t.O()}]);
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.