1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3693],{23693:function(n,e,t){t.r(e),t.d(e,{default:function(){return N}});var r=t(85893),o=t(5434),i=t(32692),a=t(69779),l=t(67294),c=t(89583),s=t(50378),u=t(11163),d=t(59234),p=t(2185),f=t(45097),x=t(35281);function m(){var n=(0,i.Z)(["\n h4 {\n font-weight: 600;\n margin-bottom: 10px;\n }\n\n .searchH3 {\n font-size: 14px;\n font-weight: 600;\n margin: 0;\n border-bottom: 1px solid #ccc;\n padding-bottom: 5px;\n margin-bottom: 10px;\n }\n\n hr {\n margin-bottom: 15px;\n margin-top: 15px;\n border-bottom: 1px solid #eee;\n width: 100%;\n }\n\n .delivery-facet {\n border: 1px solid;\n padding: 5px;\n margin: 10px;\n font-size: 14px;\n }\n\n .clearBtn {\n float: right;\n font-size: 14px;\n padding-right: 10px;\n color: orange;\n cursor: pointer;\n }\n\n .color-dots {\n height: 25px;\n width: 25px;\n background-color: #bbb;\n border-radius: 50%;\n display: inline-block;\n margin: 10px;\n }\n\n li {\n margin: 10px;\n }\n\n .stars {\n color: orange;\n font-size: 1rem;\n display: inline-block;\n margin-right: 30px;\n }\n\n .distanceCheck {\n display: block;\n }\n\n .facet-search-input-wrapper >
1 input {\n align-items: center;\n background-color: white;\n border-color: hsl(0, 0%, 80%);\n border-radius: 4px;\n border-style: solid;\n border-width: 1px;\n cursor: default;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex-wrap: wrap;\n -webkit-flex-wrap: wrap;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n justify-content: space-between;\n min-height: 38px;\n outline: 0 !important;\n position: relative;\n -webkit-transition: all 100ms;\n transition: all 100ms;\n box-sizing: border-box;\n width: 100%;\n margin-bottom: 20px;\n height: 50px;\n }\n\n .viewBtn {\n color: var(--primary);\n display: inline-block;\n border: 1px solid var(--primary);\n font-size: 14px;\n padding: 10px;\n }\n\n .storeInfo {\n flex: 1;\n }\n\n .searchInput:focus {\n outline: none;\n }\n\n .searchInput:focus-visible {\n outline: blue;\n }\n\n @media screen and (max-width: 786px) {\n padding: 0px 20px;\n }\n"]);return m=function(){return n},n}function h(){var n=(0,i.Z)(["\n max-height: 250px;\n overflow-y: scroll;\n margin-bottom: 10px;\n\n &::-webkit-scrollbar {\n width: 6px !important;\n height: 192px !important;\n }\n\n &::-webkit-scrollbar-track,\n &::-webkit-scrollbar-track {\n background: white !important;\n }\n\n &::-webkit-scrollbar-thumb,\n &::-webkit-scrollbar-thumb {\n /* background: #666 !important; */\n background: #eee !important;\n }\n\n &::-webkit-scrollbar {\n height: 8px !important;\n }\n"]);return h=function(){return n},n}function b(){var n=(0,i.Z)(["\n font-size: 22px;\n line-height: 28px;\n"]);return b=function(){return n},n}function g(){var n=(0,i.Z)(["\n border: 1px solid rgba(95, 99, 104, 0.3);\n box-sizing: border-box;\n border-radius: 2px;\n padding: 3px;\n"]);return g=function(){return n},n}function v(){var n=(0,i.Z)(["\n font-weight: normal;\n margin-left: 10px;\n"]);return v=function(){return n},n}function w(){var n=(0,i.Z)(["\n height: 2px;\n background: #c4c4c4;\n margin: 30px 0px;\n"]);return w=function(){return n},n}var y=s.ZP.div.withConfig({componentId:"sc-21c017fa-0"})(m()),k=s.ZP.div.withConfig({componentId:"sc-21c017fa-1"})(h()),C=(s.ZP.h2.withConfig({componentId:"sc-21c017fa-2"})(b()),s.ZP.div.withConfig({componentId:"sc-21c017fa-3"})(g())),j=s.ZP.p.withConfig({componentId:"sc-21c017fa-4"})(v()),I=(s.ZP.span.withConfig({componentId:"sc-21c017fa-5"})(w()),function(n){var e,t,i=n.facet,s=n.query,m=(n.setQuery,n.queryIsNotChanged),h=n.setQueryIsNotChanged,b=n.cityFacet,g=(0,p.I0)(),v=(0,u.useRouter)(),w=(0,l.useRef)(null),I=(0,l.useState)(""),N=I[0],Z=I[1],z=(0,l.useState)(""),L=z[0],P=z[1],T=(0,l.useState)(!1),F=T[0],q=T[1],B=(0,x.$G)("translation").t,Q=(0,p.v9)((function(n){return n.categoryReducer.query}),p.wU),S=function(n,e,t){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];m&&h&&h(!1),g(r?(0,f.lm)((0,a.Z)(Q.filter((function(n){return n.value!=="".concat(d.pI&&e.code||e.name,"=").concat(d.pI&&t.code||t.value)})))):(0,f.lm)((0,a.Z)(Q).concat([{name:t.name,value:"".concat(d.pI&&e.code||e.name,"=").concat(d.pI&&t.code||t.value),removeText:t.removeText}])))};if((0,l.useEffect)((function(){!Q.length>0&&P("")}),[Q]),i.name?"reviews"===(null===(e=i.name)||void 0===e?void 0:e.toLowerCase()):"reviews"===i.name)return null;return(0,r.jsx)(r.Fragment,{children:i.facetValues.every((function(n){return 0===n.count}))||"Sellers"===i.name&&"Price"===i.name||v.asPath.includes("/store/")&&"Sellers"===i.name?null:(0,r.jsxs)(y,{children:[(0,r.jsxs)("div",{className:"text-base md:text-md lg:text-2xl mb-2 searchH3",style:{position:"relative"},children:["Price"===i.title?B("facets.price"):null===i||void 0===i?void 0:i.title.replace("_"," "),(0,r.jsx)("span",{className:"clearBtn",style:{color:"#B94F39",display:Q.find((function(n){var e,t;return n.name===(null===(e=i.facetValues)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.name)}))?"block":"none"},onClick:function(){g((0,f.lm)((0,a.Z)(s.filter((function(n){var e,t;return(null===n||void 0===n||null===(e=n.name)||void 0===e?void 0:e.toLowerCase())!==(null===i||void 0===i||null===(t=i.name)||void 0===t?void 0:t.toLowerCase())})))))},children:B("facets.clear")}),(0,r.jsx)("span",{className:"clearBtn",style:{paddingTop:"5px",color:"#000"},onClick:function(){q(!F),setTimeout((function(){w.current.focus()}),300)},children:(0,r.jsx)(o.vU7,{style:{fontSize:"24px",color:"#999"}})}),(0,r.jsxs)("div",{className:"absolute top-0 w-[80%]",style:{display:F?"block":"none"},children:[(0,r.jsxs)("label",{htmlFor:i.title,className:"screen-reader-text",children:[B("facets.search")," ","Price"===i.title?B("facets.price"):i.title]}),(0,r.jsx)("input",{id:i.title,ref:w,style:{width:"100%"},placeholder:B("facets.search"),className:"pl-1 !border-none searchInput",onChange:function(n){return function(n){var e=n.target.value;P(e)}(n)},type:"text",value:L})]})]}),b&&(0,r.jsx)("div",{className:"facet-search-input-wrapper",children:(0,r.jsx)("input",{placeholder:B("facets.search"),type:"text",onCh
1ange:function(n){Z(n.target.value)}})}),(0,r.jsx)(k,{children:null===i||void 0===i||null===(t=i.facetValues)||void 0===t?void 0:t.filter((function(n){return n.count>0&&n.removeText.toLowerCase().includes(N.toLowerCase())})).filter((function(n){return n.removeText.toLowerCase().includes(L.toLowerCase())})).map((function(n){var e;return["home featured","new","shop","category featured"].includes(null===n||void 0===n||null===(e=n.text)||void 0===e?void 0:e.toLowerCase())?null:(0,r.jsxs)("div",{className:"flex my-2 mb-2 pr-3 cursor-pointer items-center",onClick:function(){return Q.length>0&&Q.find((function(e){return e.value==="".concat(d.pI&&i.code||i.name,"=").concat(d.pI&&n.code||n.value)}))?S(Q,i,n,!0):S(Q,i,n)},children:[(0,r.jsx)(C,{className:"flex items-center justify-center w-6 h-6 mr-4",children:Q.find((function(e){return e.value==="".concat(d.pI&&i.code||i.name,"=").concat(d.pI&&n.code||n.value)}))?(0,r.jsx)(c.l_A,{className:"text-sm",style:{color:"#DC7863",marginLeft:"auto"}}):""}),(0,r.jsxs)(j,{children:[n.text," (",n.count,")"]})]},n.removeText)}))})]})})});function N(n){var e=n.facets,t=n.collectionsOpen,i=n.setQuery,a=n.query,l=n.queryIsNotChanged,c=n.setQueryIsNotChanged,s=n.renderTitleAndCloseButton,u=n.setMobileFacetsOpen,d=(0,p.v9)((function(n){return n.mainReducer.isMobile}),p.wU);return(0,r.jsxs)("div",{className:"flex flex-col w-full h-full",style:{overflow:"auto",paddingLeft:"0",width:d?"320px":"250px",position:"sticky",top:"0",paddingTop:s?"84px":"0"},children:[s&&(0,r.jsxs)("div",{style:{zIndex:"1",padding:"15px 15px"},className:" fixed top-0 left-0 mx-auto my-0 w-full p-5 flex items-center justify-between font-semibold text-xl bg-black text-white",children:[(0,r.jsx)("h2",{children:"Facets"}),(0,r.jsx)("div",{className:"text-white text-3xl cursor-pointer",children:(0,r.jsx)(o.FU5,{onClick:function(){return u(!1)}})})]}),e.length>0&&e.map((function(n,e){return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(I,{index:e,query:a,setQuery:i,facet:n,collectionsOpen:t,queryIsNotChanged:l,setQueryIsNotChanged:c},n.title)})}))]})}}}]);
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.