PageSourceSearch

https://masoko.com/_next/static/chunks/1741-1d58b62a5794b4f9.js

js masoko.com collected 2026-10-04 06:07:46 UTC 7,307 bytes, 7 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1741],{19776:(e,t,i)=>{i.d(t,{A:()=>u});var r=i(37876),l=i(14232),s=i(44407),a=i(72658),n=i(49041),o=i(34080),d=i(54378),c=i(78328),x=i(90459);let h=(0,s.Ay)(a.Ay)(({theme:e})=>({color:"#35A839",height:3,padding:"13px 0","& .MuiSlider-thumb":{height:27,width:27,backgroundColor:"#fff",border:"1px solid currentColor","&:hover":{boxShadow:"0 0 0 8px rgba(58, 133, 137, 0.16)"},"& .airbnb-bar":{height:9,width:1,backgroundColor:"currentColor",marginLeft:1,marginRight:1}},"& .MuiSlider-track":{height:3},"& .MuiSlider-rail":{color:"#d8d8d8",opacity:1,height:3,...e.applyStyles("dark",{color:"#bfbfbf",opacity:void 0})}}));function p(e){let{children:t,...i}=e;return(0,r.jsxs)(a.OQ,{...i,children:[t,(0,r.jsx)("span",{className:"airbnb-bar"}),(0,r.jsx)("span",{className:"airbnb-bar"}),(0,r.jsx)("span",{className:"airbnb-bar"})]})}let u=function({min:e=0,max:t=1e6,start:i,stop:s,priceChange:a}){let{mode:u}=(0,c.e)(),[g,m]=(0,l.useState)({min:e===t?0:e,max:e===t?1e6:t,start:e===t?0:i,stop:e===t?1e6:s}),f=(0,x.Qi)(e=>e.filterOverlay),j=(0,x.Qi)(e=>e.setFilterOverlay);return(0,l.useEffect)(()=>{m({min:e===t?0:e,max:e===t?1e6:t,start:e===t?0:i,stop:e===t?1e6:s})},[e,t,i,s]),(0,r.jsxs)(n.A,{sx:{padding:"8px"},children:[(0,r.jsx)(h,{value:[g.start,g.stop],onChange:(e,t)=>
1{let[i,r]=t;m(e=>({...e,start:i,stop:r}))},valueLabelDisplay:"auto","data-testid":"price-slider","aria-labelledby":"range-slider",min:g.min,max:g.max,getAriaLabel:e=>0===e?"Minimum price":"Maximum price",slots:{thumb:p}}),(0,r.jsxs)(o.A,{container:!0,spacing:2,paddingTop:"sm",children:[(0,r.jsx)(o.A,{size:6,children:(0,r.jsx)(d.FO,{"data-testid":"start-input",fullWidth:!0,value:g?.start??"",onChange:e=>m(t=>({...t,start:Number(e.target.value)}))})}),(0,r.jsx)(o.A,{size:6,children:(0,r.jsx)(d.FO,{"data-testid":"stop-input",fullWidth:!0,value:g?.stop??"",onChange:e=>m(t=>({...t,stop:Number(e.target.value)}))})})]}),(0,r.jsx)(d.$n,{fullWidth:!0,style:{marginTop:"8px"},onClick:()=>{console.log("Filtering by price:",g.start,g.stop),a(g.start,g.stop),f&&j(!1)},children:"Apply"})]})}},31741:(e,t,i)=>{i.r(t),i.d(t,{LabelText:()=>v,ProductFiltersSkeleton:()=>k,default:()=>C});var r=i(37876),l=i(49041),s=i(70424),a=i(54581),n=i(34080),o=i(72831),d=i(37516),c=i(53279),x=i(40123),h=i.n(x),p=i(61452),u=i(50462),g=i(90195),m=i(76252),f=i(92837),j=i(54378),A=i(19776),y=i(78328),b=i(90459);let v=m.A.p`
2  margin: 0;
3  line-height: 0.1;
4  cursor: pointer;
5  font-size: 12px;
6  font-weight: bold;
7`;function k(){return(0,r.jsx)(l.A,{sx:{maxWidth:"280px",padding:2},children:(0,r.jsx)(l.A,{sx:{height:"150px",overflow:"auto",marginTop:"10px"},children:(0,r.jsx)(s.A,{children:Array.from({length:5}).map((e,t)=>(0,r.jsx)(a.A,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}},t))})})})}let w=(0,m.A)(e=>(0,r.jsx)(p.A,{disableGutters:!0,elevation:0,square:!0,...e}))(()=>({marginBottom:"10px",border:"none",borderTop:`1px solid ${f.A.lightGray}`,borderRadius:"0"})),C=function({filters:e,setPrice:t,maxPrice:i,minPrice:a,resetSelectedFilters:x,handleCheckedChildElement:p,parentPath:m,clearFilters:v}){let{mode:k}=(0,y.e)(),C=e?.filter(e=>"price"===e.code),{name:S,code:L,items:z}=C?.[0]||{},[B,F]=Array.isArray(z)?z:[null,null],M=e?.filter(e=>"price"!==e.code),N=(0,b.Qi)(e=>e.selectedFilters),W=(e,t)=>{let i=N.find(t=>t.field===e);return i?.value.split(",").some(e=>e===t.toString())??!1},$=(e,t,i)=>{if(i)if(h()(N))p([{field:e,value:t.value.toString()}]);else{let i=N.filter(t=>t.field===e);if(i.length>0){let r=N.filter(t=>t.field!==e),l={field:e,value:`${i[0].value},${t.value}`};r.push(l),p(r)}else p([...N,{field:e,value:t.value.toString()}])}else{let i=N.filter(t=>t.field===e)[0].value.split(",");if(i.length>1){let r=i.filter(e=>e!==t.value.toString()),l=N.filter(t=>t.field!==e),s={field:e,value:r.join(",")};l.push(s),p(l)}else p(N.filter(t=>t.field!==e))}};return(0,r.jsxs)("div",{style:{maxWidth:"280px",height:"60vh",display:"flex",flexDirection:"column"},children:[(0,r.jsxs)(n.A,{container:!0,sx:{paddingBottom:3,alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsxs)(n.A,{sx:{display:"flex",gap:"5px",alignItems:"center"},children:[(0,r.jsx)(u.A,{}),(0,r.jsx)(j.EY,{type:"text-lg",color:"textPrimary",sx:{marginLeft:2,textTransform:"capitalize"},weight:"bold",children:"Filter"})]}),(0,r.jsx)(n.A,{children:(0,r.jsx)(j.$n,{id:"clearButton",hierarchy:"secondary-color",size:"xs",style:{display:v?"inline":"none"},onClick:()=>{"function"==typeof x&&x()},children:"Clear All"})})]}),(0,r.jsxs)("div",{style:{flex:"1 1 0%",overflowY:"auto",minHeight:0},children:[C?.length>0&&(0,r.jsxs)(w,{children:[(0,r.jsx)(o.A,{expandIcon:(0,r.jsx)(g.A,{fontSize:"medium",sx:{color:"dark"===k?f.A.white:f.A.black}}),children:(0,r.jsx)(j.EY,{type:"text-md",weight:"semibold",color:"textPrimary",children:S})}),(0,r.jsx)(d.A,{children:(0,r.jsx)(A.A,{min:B.value,max:F.value,start:a,stop:i,priceChange:t})})]},L),M?.map(e=>(0,r.jsxs)(w,{children:[(0,r.jsx)(o.A,{expandIcon:(0,r.jsx)(g.A,{fontSize:"medium",sx:{color:"dark"===k?f.A.white:f.A.black}}),children:(0,r.jsx)(j.EY,{type:"text-md",weight:"semibold",color:"textPrimary",children:e.name})}),(0,r.jsx)(d.A,{children:"cat"===e.code||"brand"===e.code?(0,r.jsx)(l.A,{children:e.items.length>0&&(0,r.jsx)(l.A,{style:{height:"150px",overflow:"auto"},sx:{paddingTop:"10px"},children:(0,r.jsx)(s.A,{children:e.items.map(t=>(0,r.jsx)(c.Ay,{children:(0,r.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",inlineSize:"max-content"},children:[(0,r.jsx)(l.A,{children:(0,r.jsx)(j.Sc,{id:t.display,checked:Array.isArray(N)&&N.filter(t=>t.field===e.code).length>0&&W(e.code,t.value),value:`${e.code}-${t.value}`,onChange:i=>$(e.code,t,i.target.checked),sx:{marginLeft:"0px","& .MuiFormControl
7Label-label":{marginLeft:"8px"}}})}),(0,r.jsx)(j.EY,{type:"text-sm",weight:"regular",color:"textPrimary",className:"cursor",children:(0,r.jsx)("span",{children:t.display})})]})},t.value))})})}):(0,r.jsx)(l.A,{children:e.items.length>0&&(0,r.jsx)(l.A,{style:{height:"150px",overflow:"auto"},children:(0,r.jsx)(s.A,{children:e.items.map(t=>(0,r.jsx)(c.Ay,{children:(0,r.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",inlineSize:"max-content"},children:[(0,r.jsx)(l.A,{children:(0,r.jsx)(j.Sc,{id:t.display,checked:Array.isArray(N)&&N.filter(t=>t.field===e.code).length>0&&W(e.code,t.value),onChange:i=>$(e.code,t,i.target.checked),value:`${e.code}-${t.value}`,sx:{marginLeft:"0px","& .MuiFormControlLabel-label":{marginLeft:"8px"}}})}),(0,r.jsx)(j.EY,{type:"text-sm",weight:"regular",color:"textPrimary",className:"cursor",children:(0,r.jsx)("span",{children:t.display})})]})},t.value))})})})})]},e.code))]})]})}},50462:(e,t,i)=>{i.d(t,{A:()=>l});var r=i(37876);function l(){return(0,r.jsxs)("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M18 5.5H9",stroke:"#258B43",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M13 14.5H4",stroke:"#258B43",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("circle",{cx:"5",cy:"5.5",r:"4",stroke:"#258B43",strokeWidth:"1.5"}),(0,r.jsx)("circle",{cx:"17",cy:"14.5",r:"4",stroke:"#258B43",strokeWidth:"1.5"})]})}}}]);

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.