1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[603],{8266:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return r(95917)}])},51682:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var s=r(85893),a=r(67294),i=r(46942),l=r(67152),o=r(31567),n=r.n(o),c=e=>{let{...t}=e;return(0,s.jsx)("svg",{viewBox:"0 0 16 16",width:"12",height:"12",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision",...t,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"})})},d=e=>{let{...t}=e;return(0,s.jsxs)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,s.jsx)("title",{children:"87065795-4D66-425C-8BE2-6C63580D5935"}),(0,s.jsx)("g",{id:"Ecommerce",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("g",{id:"GHD_mobile_category_v01",transform:"translate(-246.000000, -108.000000)",stroke:"#202020",children:(0,s.jsx)("g",{id:"Top",transform:"translate(18.000000, 107.000000)",children:(0,s.jsxs)("g",{id:"filter-icon",transform:"translate(229.000000, 2.000000)",children:[(0,s.jsx)("line",{x1:"14",y1:"3",x2:"-1.94289029e-14",y2:"3",id:"Path"}),(0,s.jsx)("line",{x1:"14",y1:"11",x2:"-1.94289029e-14",y2:"11",id:"Path"}),(0,s.jsx)("line",{x1:"11",y1:"8",x2:"11",y2:"14",id:"Path"}),(0,s.jsx)("line",{x1:"5",y1:"0",x2:"5",y2:"6",id:"Path"})]})})})})]})},u=r(32223),m=r(11163),p=e=>{let{sortingOptions:t}=e,{setSortOrder:r}=(0,i.AB)(),[o,p]=(0,a.useState)(!1),{activeFilters:h}=(0,i.AB)(),{setSidebarView:x,openSideMenu:f}=(0,l.l8)(),g=(0,m.useRouter)(),v=async e=>{(0,u.Mj)({searchSortOrder:e}),r(e),g.push({query:{...g.query,"filter.sortOrder":"".concat(e.field,".").concat(e.direction)}},void 0,{shallow:!0})};(0,a.useEffect)(()=>{},[h]);let y=()=>{x("SEARCHSPRING_FACETS"),f()};return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex flex-row justify-end items-center",children:[(0,s.jsxs)("div",{className:"mr-5 flex items-center text-sm cursor-pointer",onClick:()=>y(),children:[(0,s.jsx)(d,{})," ",(0,s.jsxs)("span",{className:"ml-2",children:["Refine ",(null==h?void 0:h.length)?"(".concat(null==h?void 0:h.length,")"):""," "]})]}),(0,s.jsxs)("div",{className:"relative text-sm cursor-pointer",onClick:()=>{p(!o)},children:[(0,s.jsxs)("span",{className:"flex items-center",children:["Sort ",(0,s.jsx)(c,{className:n()["dropwdown-arrow"]})]}),o&&(null==t?void 0:t.map)&&(0,s.jsx)("ul",{className:n()["sort-dropdown"],children:t.map(e=>(0,s.jsx)("li",{className:n()["sort-dropdown-li"],children:(0,s.jsx)("div",{onClick:()=>v(e),children:e.label})},e.label))})]})]})})}},93970:function(e,t,r){"use strict";var s=r(85893),a=r(86529);r(98155);var i=r(66660),l=r.n(i),o=r(93967),n=r.n(o),c=r(76613),d=r(71317),u=r.n(d);let m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return{superLargeDesktop:{breakpoint:{max:4e3,min:2e3},items:e||5},desktop:{breakpoint:{max:2e3,min:1200},items:e||4,partialVisibilityGutter:2.5},largeTablet:{breakpoint:{max:1025,min:770},items:e||4,partialVisibilityGutter:3},smallDesktop:{breakpoint:{max:770,min:640},items:e||3,partialVisibilityGutter:3},largeMobile:{breakpoint:{max:640,min:501},items:e||2,partialVisibilityGutter:60},mobile:{breakpoint:{max:500,min:0},items:e||2,partialVisibilityGutter:16},xsmobile:{breakpoint:{max:400,min:0},items:e||2,partialVisibilityGutter:16}}};t.Z=e=>{let{items:t,title:r,titleAlignment:i,type:o="product",itemCount:d,onItemClick:p,recommendedItemClicked:h,recommendedProduct:x=!0}=e,f=e=>{let{carouselState:t,children:r,...a}=e;return(0,s.jsxs)("span",{...a,children:[" ",r," "]})};return(0,s.jsx)(u(),{offset:-100,delay:300,animateIn:"fadeIn",animateOnce:!0,duration:.4,children:(0,s.jsxs)("div",{className:l()["carousel-container"],children:[(0,s.jsx)("div",{className:l()["".concat(o,"-carousel-title")],children:(0,s.jsx)("h3",{className:"".concat(i?"text-"+i:"text-center"," text-xl md:text-2xl leading-6 h2"),children:r})}),(0,s.jsx)(a.default,{partialVisible:!0,swipeable:!0,draggable:!0,showDots:!1,responsive:m(d
1),infinite:!0,keyBoardControl:!0,minimumTouchDrag:5,arrows:!0,customTransition:"ease 0.2s",transitionDuration:200,containerClass:l()["".concat(o,"-carousel")],removeArrowOnDeviceType:["tablet","mobile","xsmobile","largeMobile"],itemClass:"",customRightArrow:(0,s.jsx)(f,{children:(0,s.jsx)("button",{"data-cy":"arrow-right",className:n()(l().arrow,l()["arrow-right"])})}),customLeftArrow:(0,s.jsx)(f,{children:(0,s.jsx)("button",{"data-cy":"arrow-left",className:n()(l().arrow,l()["arrow-left"]),children:" "})}),children:t.map((e,t)=>(0,s.jsx)("div",{className:"md:pl-3 h-full md:pr-0 pl-0 pr-4",children:(0,s.jsx)(c.Z,{className:n()(l()[""],"animated fadeIn"),product:e,type:"default",imgProps:{width:380,height:400},renderLink:!0,hasInitialProduct:!!e.name,onClick:x&&void 0!==h?()=>h(e.data):p})},e.id))})]})})}},88651:function(e,t,r){"use strict";var s=r(85893),a=r(93967),i=r.n(a),l=r(95045),o=r.n(l);t.Z=e=>{let{className:t,layout:r="A",children:a,variant:l="default",usingHorizontalLookbook:n=!1}=e,c=i()(o().root,{[o().layoutA]:"A"===r&&!n,[o().layoutAWHL]:"A"===r&&n,[o().layoutB]:"B"===r,[o().layoutC]:"C"===r,[o().layoutD]:"D"===r,[o().layoutE]:"E"===r,[o().layoutNormal]:"normal"===r,[o().layoutNormal]:"default"===r,[o().default]:"default"===l,[o().filled]:"filled"===l},t);return(0,s.jsx)("div",{className:c,children:a})}},95917:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return L},default:function(){return R}});var s=r(85893),a=r(67294),i=r(11163),l=r(2962),o=r(36489),n=r(76613),c=r(83813),d=r(88651),u=r(47868),m=r(56481),p=r(30151),h=r(51682),x=r(46942),f=r(71317),g=r.n(f),v=r(64035),y=r(97411),_=r(93970),j=r(67064),w=r(36808),b=r.n(w),k=r(55877);function N(){let[e,t]=(0,a.useState)([]),[r,i]=(0,a.useState)([]),{data:l,isLoading:o,isEmpty:n}=(0,j.Z)(),{data:c}=(0,p.Z)(),d=new y.E,u="".concat((0,k.v4)());(0,a.useEffect)(()=>{let e=d.fetchRecentlyViewed();d.getRecommendations({tags:"no-results",cart:l?l.lineItems.map(e=>e.variant.sku).join(","):"",shopperId:c?c.id:void 0,lastViewed:e.toString()||""}).then(e=>{var r;t(null==e?void 0:null===(r=e.results)||void 0===r?void 0:r.map(e=>({slug:e.url.split("/products/").pop(),id:e.sku,data:e}))),i(null==e?void 0:e.profile)})},[]);let m=async t=>{let s="".concat((0,k.v4)());b().set("pageLoadId",s);let a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([{type:"profile.click",category:"searchspring.recommendations.user-interactions",id:u,event:{profile:{tag:"no-result",placement:"no-result",seed:null==e?void 0:e.map(e=>{var t;return{sku:"".concat(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.sku)}})},context:{type:"product-recommendation",tag:"".concat(null==r?void 0:r.tag),placement:"".concat(null==r?void 0:r.tag)}},context:{website:{trackingCode:"acrgmg"},userId:b().get("ssUserId"),sessionId:b().get("ssSessionIdNamespace"),pageLoadId:b().get("pageLoadId")}},{type:"profile.product.click",category:"searchspring.recommendations.user-interactions",id:"".concat((0,k.v4)()),pid:u,event:{product:{id:"".concat(null==t?void 0:t.uid),seed:[{sku:"".concat(null==t?void 0:t.sku)}],mapping:t},context:{type:"product-recommendation",tag:"".concat(null==r?void 0:r.tag),placement:"".concat(null==r?void 0:r.tag)}},context:{website:{trackingCode:"acrgmg"},userId:b().get("ssUserId"),sessionId:b().get("ssSessionIdNamespace"),pageLoadId:b().get("pageLoadId")}}])},i=await fetch("https://beacon.searchspring.io/beacon",a);await i.json()};return(0,s.jsxs)("div",{className:"container w-full m-auto",children:[(0,s.jsxs)("div",{className:"w-full mt-16 mb-8 text-center",children:[(0,s.jsx)("h1",{className:"font-sans mb-3",children:"No Products Found"}),(0,s.jsx)("h3",{children:"#bummer"})]}),!!(null==e?void 0:e.length)&&(0,s.jsx)("div",{className:"pt-6 px-3 md:px-0 md:pb-6 md:border-none border-accents-3 w-full",children:(0,s.jsx)(_.Z,{recommendedItemClicked:m,recommendedProduct:!0,type:"product-page",title:"You might also like",titleAlignment:"left",items:e||[]})})]})}var C=r(1559),S=r(32223);let P="Product Search | Ghanda Clothing",I="Search the latest Ghanda clothing, accessories and essentials for women, men, teens and kids. Find your next favourite piece online today.";var L=!0;function R(e){let{categories:t,brands:r}=e,{data:o}=(0,p.Z)(),[f,y]=(0,a.useState)({products:[],found:!1}),[_,j]=(0,a.useState)({products:[]}),[w,b]=(0,a.useState)(!0),[k,L]=(0,a.useState)(!1),{activeFilters:R,selectedSortOrder:E,searchspringService:A,clearFilters:G,newQuery:O,setFacets:D,setFiltersDirectly:Z,setSortOrder:B}=(0,x.AB)(),[T,V]=(0,a.useState)(E),[W,q]=(0,a.useState)({}),F=(0,i.useRouter)(),{q:H,oq:M}=F.query,U=(0,a.useRef)(null),X=(0,a.useMemo)(()=>{{let e=sessionStorage.getItem("scroll-position-product-id-marker"),t=sessionStorage.getItem("scroll-position-route");return sessionStorage.removeItem("scroll-position-product-id-marker"),sessionStorage.removeItem("scroll-position-route"),e&&t==(null==F?void 0:F.asPath)?e:null}},["object"]),Y=async()=>{let e=await A.getSearchResults(H,null!=M?M:H,"search",{field:"",direction:"",label:"",active:0},[]);"results"in e?(y({...e,found:!0}),j(e),D(e.facets),q(e.pagination)):y({products:[],found:!1}),b(!1),"string"==typeof H&&(0,v.Rc)(H)},z=async(e,t)=>{let r=await A.getSearchResults(H,null!=M?M:H,"search",e,t);y({...r,found:!0}),q(r.pagination),j(r),D(r.facets)},J=async e=>{let t=await A.getSearchResults(H,null!=M?M:H,"search",T,R,e);y({products:f.products.concat(t.products),found:!0}),q(t.pagination)};return(0,a.useEffect)(()=>{F.isReady&&(async()=>
1{if(!1===Object.keys(null==F?void 0:F.query).some(e=>e.startsWith("filter")))G(),V({active:0,direction:"",field:"",label:""}),B({active:0,direction:"",field:"",label:""}),await Y(),b(!0),L(!1);else{let e=Object.entries(null==F?void 0:F.query).map(e=>{let[t,r]=e;return{key:t,value:r}}),t=F.query["filter.sortOrder"],r={active:0,direction:"",field:"",label:""};if("string"==typeof t){let[e,s]=t.split(".");r={...r,field:e,direction:s}}let s=e.filter(e=>e.key.startsWith("filter.")&&"filter.sortOrder"!==e.key&&"filter.ss_price"!==e.key),a=F.query["filter.ss_price"],i=null==s?void 0:s.map(e=>{let{key:t,value:r}=e;return{field:t.replace("filter.",""),values:r?Array.isArray(r)?r:null==r?void 0:r.split(",").map(e=>e.trim()).filter(Boolean):[]}}),l=!!r.direction&&!!r.field;if(a&&"string"==typeof a){let e=a.split("-");i.push({field:"ss_price",values:[e[0],e[1]]})}await z(r,i),i.length&&Z(i),l&&B(r)}})()},[F.isReady,H]),(0,a.useEffect)(()=>{k&&z(E,R)},[O,...Object.values(E)]),(0,a.useEffect)(()=>{if((0,C.Km)({searchResults:f.products,customer:o}),f.products.length>0){let e=f.products.reduce((e,t)=>(e[t.id]=t.name,e),{}),t={...o&&{customer:o.email},...e};(0,S.Mj)(t)}},[f.products,o]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.PB,{title:P,description:I,openGraph:{type:"website",title:P,description:I}}),(0,s.jsxs)(c.Z,{className:"border-t border-accents-3",children:[(0,s.jsx)(x.ci.Consumer,{children:()=>{var e,t,r,a;return F.isFallback?(0,s.jsx)("h1",{children:"Loading..."}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex justify-between items-center ".concat(M&&(null==H?void 0:H.toString().toLowerCase())!==(null==M?void 0:M.toString().toLowerCase())?"md:pt-7.5 md:pb-0 ":"md:pt-7.5 md:pb-7.5"," md:px-7.5 px-4.5"),children:[(0,s.jsx)("div",{className:"flex w-1/2",children:(0,s.jsxs)("span",{className:"text-tiny uppercase font-sans tracking-wider font-medium overflow-ellipsis overflow-hidden",children:['Search : "',H,'"']})}),(0,s.jsx)("div",{onClick:()=>{L(!0)},children:(0,s.jsx)(h.Z,{sortingOptions:null!==(a=null==_?void 0:null===(e=_.sorting)||void 0===e?void 0:e.options)&&void 0!==a?a:[]})})]}),M&&(null==H?void 0:H.toString().toLowerCase())!==(null==M?void 0:M.toString().toLowerCase())?(0,s.jsx)("div",{className:"pb-4.5 md:pb-0 md:mb-6 md:px-7.5 px-4.5",children:(0,s.jsxs)("p",{className:"flex items-center text-sm",children:["Search instead for ",":","\xa0",(0,s.jsx)("span",{className:"flex ",children:(0,s.jsx)("a",{href:"/search?q=".concat(M),className:"text-xs cursor-pointer hover:text-accents-7",children:(0,s.jsx)("p",{className:"my-1 text-sm capitalize",children:M},M+"1")})}),"?"]})}):null,(0,s.jsx)("div",{className:"md:px-7.5 p-0",children:(null===(t=f.products)||void 0===t?void 0:t.length)?(0,s.jsx)(d.Z,{layout:"default",children:null===(r=f.products)||void 0===r?void 0:r.map(e=>(0,s.jsx)("div",{className:"",children:(0,s.jsx)(g(),{animateIn:"fadeIn",offset:100,animateOnce:!0,children:(0,s.jsx)(n.Z,{className:"animated fadeIn",restorationRef:X===e.slug?U:null,bodyClassName:"px-3 md:px-0",product:e,imgProps:{width:185,height:261},isCollectionOrSearchPage:!0},e.path)})}))}):(0,s.jsx)(s.Fragment,{children:w?(0,s.jsx)("div",{className:"w-full flex justify-center py-10",children:(0,s.jsx)(u.Z,{})}):(0,s.jsx)(N,{})})})]})}}),W&&W.nextPage?(0,s.jsx)("div",{className:"flex justify-center my-3",children:(0,s.jsx)(m.Z,{onClick:()=>{J(W)},variant:"hollow",className:"text-sm h-12",children:"Load more"})}):""]})]})}R.Layout=o.Z},66660:function(e){e.exports={"carousel-container":"ProductCarousel_carousel-container__DpKvO","carousel-slide":"ProductCarousel_carousel-slide__gVW9j","product-carousel-title":"ProductCarousel_product-carousel-title__3DPre","product-carousel":"ProductCarousel_product-carousel__d_cma","product-page-carousel-title":"ProductCarousel_product-page-carousel-title__I6YDz","product-page-carousel":"ProductCarousel_product-page-carousel__hKmln","carousel-image":"ProductCarousel_carousel-image__OmEkZ","carousel-slide-card":"ProductCarousel_carousel-slide-card__y_URf",arrow:"ProductCarousel_arrow__r9nyR","arrow-right":"ProductCarousel_arrow-right__wU7Yb","arrow-left":"ProductCarousel_arrow-left__ATFqS","shop-button":"ProductCarousel_shop-button__6aW_k"}},95045:function(e){e.exports={root:"Grid_root__510JW",default:"Grid_default__fjxEl",layoutNormal:"Grid_layoutNormal__XLPNJ",layoutA:"Grid_layoutA__QimLB",layoutAWHL:"Grid_layoutAWHL__1d3ED",layoutB:"Grid_layoutB__yCprH",layoutC:"Grid_layoutC__SaR5t",layoutD:"Grid_layoutD__o4yx9",layoutE:"Grid_layoutE__64dYZ"}}},function(e){e.O(0,[714,822,489,888,774,179],function(){return e(e.s=8266)}),_N_E=e.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.