1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3006],{94682:function(e,l,t){t.d(l,{q:function(){return z},Z:function(){return S}});var s=t(82729),n=t(85893),i=t(86010),r=t(1271),a=t(11163),o=t(45697),c=t.n(o),d=t(16992),u=t(75756),x=t(55154),p=t(43880),m=t(26498),v=t(88974),h=t(57281),f=t(74928),g=t(38479),b=t(64431);let j=e=>!!e&&!!e.replace(/<[^>]*>/g,"").trim(),y=function(){let{title:e,description:l,tags:t,isGoogleReviews:s,isGoogleWidget:n,reviews:i,showTitle:r=!0,showDescription:a=!0,showTags:o=!0,showGoogleReviews:c=!0,showGoogleWidget:d=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!!(e&&r||j(l)&&a||(null==t?void 0:t.length)>0&&o||s&&c&&i||n&&d&&i)};function w(){let e=(0,s._)(["\n container-layout\n w-full\n py-[24px]\n px-[24px]\n bg-white\n dark:bg-main\n"]);return w=function(){return e},e}let C=(0,r.Z)(w()),N=()=>(0,n.jsxs)("svg",{width:"26",height:"25",viewBox:"0 0 26 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M24.1989 12.6513C24.1989 11.8504 24.1251 11.0804 23.988 10.3411H13.063V14.7152H19.3059C19.0317 16.1219 18.2092 17.313 16.9753 18.1139V20.9581H20.7401C22.9335 18.9866 24.1989 16.0911 24.1989 12.6513Z",fill:"#4285F4"}),(0,n.jsx)("path",{d:"M13.0646 23.6891C16.1966 23.6891 18.8224 22.6828 20.7416 20.9578L16.9769 18.1136C15.9435 18.7913 14.6253 19.202 13.0646 19.202C10.0486 19.202 7.48606 17.2203 6.56861 14.5507H2.70898V17.4667C4.6177 21.1529 8.53005 23.6891 13.0646 23.6891Z",fill:"#34A853"}),(0,n.jsx)("path",{d:"M6.56736 14.5406C6.33536 13.8629 6.19827 13.1442 6.19827 12.3946C6.19827 11.645 6.33536 10.9263 6.56736 10.2486V7.33252H2.70774C1.91683 8.85217 1.46338 10.5669 1.46338 12.3946C1.46338 14.2223 1.91683 15.937 2.70774 17.4567L5.71318 15.1772L6.56736 14.5406Z",fill:"#FBBC05"}),(0,n.jsx)("path",{d:"M13.0646 5.59707C14.7729 5.59707 16.2915 6.17208 17.5042 7.28101L20.826 4.04662C18.8118 2.21893 16.1966 1.09973 13.0646 1.09973C8.53005 1.09973 4.6177 3.6359 2.70898 7.33235L6.56861 10.2484C7.48606 7.57878 10.0486 5.59707 13.0646 5.59707Z",fill:"#EA4335"})]}),k=e=>{let{rating:l,user_ratings_total:t}=e,{isBannerVisible:s}=(0,g.e)();return(0,n.jsxs)("a",{target:"_blank",href:"https://g.co/kgs/KwkGbg",className:(0,i.Z)("text-main fixed left-0 z-[999] text-center bg-white shadow-quinary py-[12px] rounded-tr-[20px] rounded-br-[20px] flex flex-col items-center space-y-[8px] w-[90px]",s?"top-[370px]":"top-[200px]"),rel:"noreferrer",children:[(0,n.jsx)(N,{}),(0,n.jsx)("div",{className:"font-body font-extrabold text-[24px]",children:l}),(0,n.jsx)("div",{className:"flex",children:[1,2,3,4,5].map(e=>(0,n.jsx)(d.Z,{size:14,className:"text-runway"},e))}),(0,n.jsxs)("div",{className:"text-[8px] uppercase max-w-[50px] leading-3",children:["Based on ",t," reviews"]})]})},Z=e=>{let{reviews:l}=e;return(0,n.jsxs)("div",{className:"mt-[32px]",children:[(0,n.jsx)(v.Z,{center:!0,children:"Google reviews"}),(0,n.jsx)(m.Z,{isArrow:!0,isControl:!0,className:"mt-[32px]",children:(0,n.jsx)("div",{className:"space-y-[32px] mb-[24px]",children:l.map((e,l)=>(0,n.jsxs)("div",{className:"flex flex-col items-center text-center space-y-[16px]",children:[(0,n.jsx)("div",{className:"text-[18px]",children:e.author_name}),(0,n.jsx)("div",{className:"flex space-x-[8px] items-center",children:(0,n.jsx)("div",{className:"flex space-x-[4px]",children:[1,2,3,4,5].map(l=>(e.rating,(0,n.jsx)(d.Z,{size:24,className:"text-runway"},l)))})}),(0,n.jsx)(u.Z,{tag:"div",options:{className:"w-[20px] h-[20px] inline-block align-middle",...h.M},children:e.text})]},"".concat(e.time,"-").concat(l)))})})]})},z=e=>{let{className:l,title:t,description:s,tags:r,isGoogleReviews:a,isGoogleWidget:o,showGoogleReviews:c=!0,showGoogleWidget:d=!0,showTags:u=!0,showTitle:x=!0,showDescription:h=!0,reviews:g}=e,b=j(s)&&h;return y({title:t,description:s,tags:r,isGoogleReviews:a,isGoogleWidget:o,reviews:g,showTitle:x,showDescription:h,showTags:u,showGoogleReviews:c,showGoogleWidget:d})?(0,n.jsxs)("div",{className:(0,i.Z)(C,l),children:[t&&x&&(0,n.jsx)(v.Z,{Tag:"h3",center:!0,children:t}),b&&(0,n.jsx)(m.Z,{isControl:!0,className:"my-[32px]",isArrow:!0,height:100,children:(0,n.jsx)("div",{className:"leading-6 content",children:(0,f.V)(s,!0)})}),r&&(null==r?void 0:r.length)>0&&u&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Z,{Tag:"h3",center:!0,children:"Fashionable searches"}),(0,n.jsx)(m.Z,{isGradient:!1,children:(0,n.jsx)("div",{className:"my-[32px] flex flex-wrap justify-center gap-x-[8px] gap-y-[16px]",children:r.map((e,l)=>(0,n.jsx)(p.Z,{link:!0,decoration:!0,href:e.value.replace(/https:\/\/(www\.)?myrunway\.co\.za/g,""),children:e.label},"".concat(e.value,"-").concat(l)))})})]}),a&&c&&g&&(0,n.jsx)(Z,{reviews:null==g?void 0:g.reviews}),o&&d&&g&&(0,n.jsx)(k,{user_ratings_total:null==g?void 0:g.user_ratings_total,rating:null==g?void 0:g.rating})]}):null};z.propTypes={className:c().string,title:c().string,description:c().string,tags:c().arrayOf(c().shape({label:c().string,value:c().string}))},z.defaultTypes={title:"",description:"",tags:[]};var S=e=>{let{type:l,...t}=e,{query:s}=(0,a.useRouter)(),{data:i}=(0,x.MN)({type:l||(0,x.X2)(s)});return b.tY?null:(0,n.jsx)(z,{...i,...t})}},33471:function(e,l,t){t.d(l,{Z:function(){return s.Z}});var s=t(94682)},38100:function(e,l,t){var s=t(85893),n=t(41609),i=t.n(n),r=t(67294),a=t(12057),o=t(92581),c=t(67822);l.Z=e=>{let{dataFilters:l,handleSubmit:t}=e,[n,d]=(0,r.useState)([]),{query:u}=(0,a.v)();return((0,r.useEffect)(()=>
1{if(l){let e=(0,c.Qj)(l);d([{label:"Brands",value:(0,c.ey)(l.brands)},{label:"Departments",value:(0,c.ey)(l.departments)},{label:"Categories",value:(0,c.ey)(e.flattenCategories)},{label:"Sizes",value:(0,c.ey)([...e.flattenSizesWomen,...e.flattenSizesMen,...e.flattenSizesKids])},{label:"Prices",value:(0,c.ey)(l.prices,"price")},{label:"Availability",value:(0,c.ey)(l.availability)}])}},[l]),i()(u)||i()(n))?null:(0,s.jsxs)("div",{className:"flex flex-col items-center my-[24px] space-y-[16px] text-center px-[24px]",children:[(0,s.jsx)(o.Z,{className:"m-auto min-w-[175px]",auto:!0,category:"quaternary",onClick:()=>t({}),children:"Remove all filters"}),n&&(0,s.jsx)("div",{className:"text-center flex flex-wrap justify-center space-x-[8px] text-xs text-gray-500",children:n.map(e=>e.value?(0,s.jsxs)("div",{children:[e.label,": ",e.value.join(", ")]},e.label):null)})]})}},31462:function(e,l,t){t.d(l,{V:function(){return V}});var s=t(85893),n=t(67294),i=t(11163),r=t(45697),a=t.n(r),o=t(23369),c=t(67822),d=t(35857),u=t(55998),x=t(18109);let p=[{label:"Department",value:"departments"},{label:"Category",value:"categories"},{label:"Brand",value:"brands"},{label:"Women's Size",value:"sizesWomen"},{label:"Men's Size",value:"sizesMen"},{label:"Kids Size",value:"sizesKids"},{label:"Availability",value:"availability"},{label:"Price",value:"prices",valueMenu:"price"}],m=(e,l,t)=>0===t.length&&["sizesWomen","sizesMen","sizesKids"].includes(e)?"Size":l,v=e=>["departments","categories","brands","sizesMen","sizesWomen","sizesKids","prices"].reduce((l,t)=>{var s;return l+((null===(s=e[t])||void 0===s?void 0:s.length)||0)},0),h=e=>{let{wrapperClassName:l,className:t,filters:r,onFilterClick:a,onSortClick:h,onFilterItemClick:f,isHidden:g}=e,b=(0,d.i)(e=>e.sortBy),{query:j}=(0,i.useRouter)(),y=(0,n.useMemo)(()=>{if(!r)return{departments:[],categories:[],sizesMen:[],sizesKids:[],sizesWomen:[],brands:[],prices:[],sorters:[]};let e=(0,c.Qj)(r);return Object.keys(e).forEach(l=>{e[l]=e[l].filter(e=>"flattenCategories"===l&&j.category?e.isSelected&&void 0===e.options:e.isSelected)}),{departments:(null==r?void 0:r.departments.filter(e=>e.isSelected))||[],categories:e.flattenCategories||[],brands:(null==r?void 0:r.brands.filter(e=>e.isSelected))||[],sizesMen:e.flattenSizesMen||[],sizesKids:e.flattenSizesKids||[],sizesWomen:e.flattenSizesWomen||[],prices:(null==r?void 0:r.prices.filter(e=>e.isSelected))||[],sorters:b?[null==r?void 0:r.sorters.find(e=>e.value===b)]:[]}},[r,b]);return(0,s.jsx)(x.Z,{className:(0,u.tw)("bg-white dark:bg-main xl:hidden",{invisible:g},l),isArrows:!1,children:(0,s.jsxs)("div",{className:(0,u.tw)("flex items-center gap-[4px] my-[12px]",t),children:[(0,s.jsx)(o.Z,{count:v(y),isFilter:!0,onClick:a,children:"Filters"}),(0,s.jsx)(o.Z,{arrow:"bottom",onClick:h,count:y.sorters.length,children:"Sort By"}),p.map(e=>{var l;if((null==r?void 0:null===(l=r[e.value])||void 0===l?void 0:l.length)>0)return(0,s.jsx)(o.Z,{count:y[e.value].length,onClick:()=>f(e.valueMenu||e.value),arrow:"right",children:m(e.value,e.label,r.departments)},e.value)})]})})};h.propTypes={className:a().string,filters:a().object,onFilterClick:a().func,onSortClick:a().func,onFilterItemClick:a().func};var f=t(94864),g=t(69009),b=t(82729),j=t(86010),y=t(1271),w=t(80044),C=t(17563),N=t(36492),k=t(54413),Z=t(29769),z=t(17458);let S=async(e,l)=>{let t="".concat("https://api.myrunway.co.za/v1","/product-menu-personalised/main?").concat((0,C.stringify)(e));return await (0,Z.Z)(t,{json:!0},l).then(_)},F=()=>{let{query:e}=(0,i.useRouter)(),l=(0,k.Uk)(),t=(0,z.o$)(e,null,l);return{key:["pills",t],params:t}},M=e=>{let{key:l,params:t}=F();return(0,N.a)({queryKey:l,queryFn:async()=>S(t),...e,keepPreviousData:!0,refetchOnMount:!1,staleTime:1/0,enabled:(null==e?void 0:e.enabled)!==!1})},_=e=>{var l,t,s;return(null==e?void 0:null===(s=e.categories)||void 0===s?void 0:null===(t=s[0])||void 0===t?void 0:null===(l=t.categories)||void 0===l?void 0:l[0].subCategories)||[]};var K=t(61610);let A=e=>{let{className:l,onClick:t,isSelected:n,isDisabled:i,children:r}=e;return(0,s.jsx)("div",{onClick:t,className:(0,u.tw)("flex items-center font-medium justify-center font-body text-[13px] h-[32px] border rounded-[30px] py-[4px] px-[12px] border-[#
1EFEFEF] dark:text-white dark:border-[#505050] text-[#505050] cursor-pointer transition-colors select-none whitespace-nowrap",{"bg-runway text-white border-runway dark:border-runway":n,"opacity-50 cursor-not-allowed pointer-events-none":i},l),children:r})},W=()=>(0,s.jsx)(K.Z,{className:"h-[32px] w-[60px] rounded-[30px]"});function B(){let e=(0,b._)(["\n relative\n whitespace-nowrap\n overflow-auto\n scrollbar-hide\n bg-white\n dark:bg-main\n"]);return B=function(){return e},e}A.propTypes={className:a().string,href:a().string,isSelected:a().bool,children:a().node.isRequired};let E=(0,y.Z)(B()),H=e=>{var l,t,n,r;let{className:a}=e,{handleSubmit:o,values:c,setFieldValue:d}=(0,w.u6)(),u=(null===(n=c.categories)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:null===(l=t.options)||void 0===l?void 0:l.length)===1,{data:x,isLoading:p}=M({enabled:u}),{query:m}=(0,i.useRouter)(),v=u&&x?x:null,h=u?c.categories[0].options[0].options:null;return p&&u?(0,s.jsx)("div",{className:"flex xl:justify-center gap-[8px] mt-[12px] ml-[16px] xl:my-[24px] overflow-hidden",children:Array.from({length:8}).map((e,l)=>(0,s.jsx)(W,{},l))}):!v||(null===(r=c.departments)||void 0===r?void 0:r.length)>0||m.brand_id?null:(0,s.jsx)(T,{className:a,subCategories:x,filterSubCategories:h,handleSubmit:o,setFieldValue:d})},T=e=>{let{subCategories:l,filterSubCategories:t,handleSubmit:i,setFieldValue:r,className:a}=e,o=(0,n.useCallback)((e,l)=>{r("categories[0].options[0].options[".concat(e,"].isSelected"),!l),i()},[r,i]);return(0,s.jsx)(x.Z,{isArrows:!1,className:a,childrenWrapperClassName:(0,j.Z)(E,"flex xl:justify-center gap-[8px] px-[16px]"),children:l.map(e=>{let l=null==t?void 0:t.findIndex(l=>e.path===l.value);return(0,s.jsx)(A,{isSelected:e.isSelected,onClick:()=>{void 0!==l&&-1!==l&&o(l,e.isSelected)},className:"flex-1 relative",children:e.name},e.path)})})},V=e=>{let{className:l,dataFilters:t,handleSubmit:i,wrapperClassName:r,isPills:a=!0}=e,o=(0,d.i)(e=>e.setOpenFilters),c=(0,d.i)(e=>e.setOpenSort),[u,x]=(0,n.useState)(),p=(0,f.F)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g.Z,{currentMenu:u,dataFilters:t,handleSubmit:i,isHidden:!p,childrenPills:a?(0,s.jsx)(H,{className:"mt-[12px] xl:my-[24px]"}):(0,s.jsx)(s.Fragment,{})}),(0,s.jsx)(h,{wrapperClassName:r,className:l,filters:t,onFilterClick:()=>{x("main"),o(!0)},onFilterItemClick:e=>{x(e),o(!0)},onSortClick:()=>{c(!0)},isHidden:!p})]})}}}]);
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.