PageSourceSearch

https://nolist.ai/_next/static/chunks/app/(website)/(public)/(home)/layout-0383ae1a415c518e.js

js nolist.ai collected 2026-10-05 13:41:58 UTC 11,098 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7246],{1647:function(e,t,l){Promise.resolve().then(l.bind(l,75317)),Promise.resolve().then(l.bind(l,41042)),Promise.resolve().then(l.bind(l,76639)),Promise.resolve().then(l.t.bind(l,89777,23)),Promise.resolve().then(l.bind(l,7360)),Promise.resolve().then(l.bind(l,98179)),Promise.resolve().then(l.bind(l,18295)),Promise.resolve().then(l.bind(l,9187)),Promise.resolve().then(l.bind(l,90631))},7360:function(e,t,l){"use strict";l.d(t,{HomeCategoryListClient:function(){return c}});var a=l(30382),s=l(23451),n=l(61907),r=l(85510),i=l(35703);function u(e){let{title:t,active:l,clickAction:s}=e;return(0,a.jsx)("div",{children:(0,a.jsx)(r.z,{asChild:!0,variant:l?"default":"ghost",size:"sm",className:"px-3 py-3 cursor-pointer",onClick:s,children:(0,a.jsx)("li",{className:"w-full",children:(0,a.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,a.jsx)("h2",{children:t}),(0,a.jsx)(i.LZ3,{className:"w-4 h-4"})]})})})})}function c(e){let{categoryList:t,urlPrefix:l}=e,r=(0,s.useRouter)(),i=(0,s.useSearchParams)().get("category")||n.d,c=[{value:n.d,label:"All Categories"},...t.map(e=>({value:e.slug.current,label:e.name}))],o=(e,t)=>{let a=new URLSearchParams(window.location.search);null===t||t===n.d?a.delete(e):a.set(e,t),a.delete("page"),r.push("".concat(l,"?").concat(a.toString()))};return(0,a.jsx)("div",{className:"hidden md:flex border rounded-lg p-4",children:(0,a.jsx)("ul",{className:"flex flex-col gap-y-2 w-full",children:c.map(e=>(0,a.jsx)(u,{title:e.label,active:e.value===i,clickAction:()=>o("category",e.value)},e.label))})})}},98179:function(e,t,l){"use strict";l.d(t,{HomeGroupListClient:function(){return m}});var a=l(30382),s=l(85510),n=l(46472);let r=n.fC,i=n.wy,u=n.Fw;var c=l(35703),o=l(23451),d=l(39638),h=l(61907);function m(e){let{groupList:t,urlPrefix:l}=e,n=(0,o.useRouter)(),m=(0,o.useSearchParams)().get("category")||h.d,[f,x]=(0,d.useState)(new Set);(0,d.useEffect)(()=>{if(!m||m===h.d){x(new Set);return}let e=t.find(e=>e.categories.some(e=>{var t;return(null===(t=e.slug)||void 0===t?void 0:t.current)===m}));e&&x(new Set([e.slug.current]))},[m,t]);let g=[{value:h.d,label:"All Categories",subCategories:[]},...t.map(e=>({value:e.slug.current,label:e.name,subCategories:e.categories.map(e=>{var t;return{_id:e._id,title:e.name||"",slug:(null===(t=e.slug)||void 0===t?void 0:t.current)||""}})||[]}))],p=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!a&&t!==h.d)return;let s=new URLSearchParams(window.location.search);null===t||t===h.d?s.delete(e):s.set(e,t),s.delete("page"),n.push("".concat(l,"?").concat(s.toString()))},v=e=>{let t=new Set;f.has(e)||t.add(e),x(t)};return(0,a.jsx)("div",{className:"hidden md:flex border rounded-lg p-4",children:(0,a.jsx)("ul",{className:"flex flex-col gap-y-2 w-full",children:g.map(e=>{let t=f.has(e.value),l=e.value===h.d;return(0,a.jsxs)(r,{open:t,onOpenChange:()=>v(e.value),className:"w-full space-y-2",children:[(0,a.jsx)(i,{asChild:!0,children:(0,a.jsxs)(s.z,{variant:l&&e.value===m?"default":"ghost",size:"sm",className:"w-full px-3 py-3 justify-between",onClick:t=>{l&&p("category",e.value),v(e.value)},children:[(0,a.jsx)("span",{children:e.label}),e.subCategories.length>0&&(0,a.jsx)(c.v4q,{className:"h-4 w-4 transition-transform duration-200 ".concat(t?"transform rotate-180":"")})]})}),e.subCategories.length>0&&(0,a.jsx)(u,{className:"space-y-2",children:e.subCategories.map(e=>(0,a.jsx)(s.z,{variant:e.slug===m?"default":"ghost",size:"sm",className:"w-full px-6 py-2 justify-start",onClick:()=>p("category",e.slug,!0),children:e.title},e._id))})]},e.value)})})})}},18295:function(e,t,l){"use strict";l.d(t,{default:function(){return d}});var a=l(30382),s=l(85510),n=l(71369),r=l(26729),i=l(20958),u=l(23451),c=l(39638),o=l(76152);function d(e){let{urlPrefix:t}=e,l=(0,u.useRouter)(),d=(0,u.useSearchParams)(),[h,m]=(0,c.useState)((null==d?void 0:d.get("q"))||""),[f]=(0,o.Nr)(h,300),x=(0,c.useRef)((null==d?void 0:d.get("q"))||""),g=(0,c.useRef)(""),p=(0,c.useRef)(!1);return(0,c.useEffect)(()=>{let e=(null==d?void 0:d.get("q"))||"";e===g.current||p.current||(m(e),g.current=e)},[d]),(0,c.useEffect)(()=>
1{if(f!==x.current){let e=new URLSearchParams(null==d?void 0:d.toString());f?e.set("q",f):e.delete("q"),e.delete("page");let a=(0,r.uJ)("".concat(t),e);x.current=f,l.push(a,{scroll:!1})}},[f,l,d,t]),(0,a.jsxs)("div",{className:"flex items-center justify-center",children:[(0,a.jsx)(n.I,{type:"text",placeholder:"Search any products you need",autoComplete:"off",value:h,onChange:e=>{p.current=!0,m(e.target.value),setTimeout(()=>{p.current=!1},500)},className:(0,r.cn)("w-[320px] sm:w-[480px] md:w-[640px] h-12 rounded-r-none","focus-visible:ring-0 focus-visible:ring-offset-0 focus:border-primary focus:border-2 focus:border-r-0")}),(0,a.jsxs)(s.z,{type:"submit",className:"rounded-l-none size-12",children:[(0,a.jsx)(i.Z,{className:"size-6","aria-hidden":"true"}),(0,a.jsx)("span",{className:"sr-only",children:"Search"})]})]})}},9187:function(e,t,l){"use strict";l.d(t,{HomeSearchFilterClient:function(){return c}});var a=l(30382),s=l(85510),n=l(65415),r=l(23451),i=l(61907),u=l(19621);function c(e){let{tagList:t,categoryList:l,sortList:c,filterList:o,urlPrefix:d}=e,h=(0,r.useRouter)(),m=(0,r.useSearchParams)(),f=m.get("category"),x=m.get("tag"),g=m.get("sort"),p=m.get("f"),v=(e,t)=>{let l=new URLSearchParams(window.location.search);null===t||t===i.d?l.delete(e):l.set(e,t),l.delete("page"),h.push("".concat(d,"?").concat(l.toString()))},j=[{value:i.d,label:"All Categories"},...l.map(e=>({value:e.slug,label:e.name}))],b=[...t.map(e=>({value:e.slug,label:e.name}))],w=c.map(e=>{var t;return{value:null!==(t=e.slug)&&void 0!==t?t:i.d,label:e.label}}),y=o.map(e=>{var t;return{value:null!==(t=e.slug)&&void 0!==t?t:i.d,label:e.label}});return(0,a.jsxs)("div",{className:"grid md:grid-cols-[1fr_1fr_1fr_0.5fr] gap-4 z-10 items-center",children:[(0,a.jsx)("div",{className:"flex md:hidden",children:(0,a.jsx)(i.I,{filterItemList:j,placeholder:"All Categories",labelPrefix:"Category: ",selectedValue:f||i.d,onValueChange:e=>v("category",e)})}),(0,a.jsx)(u.N,{className:"shadow-none",options:b.map(e=>({value:e.value,label:e.label||""})),onValueChange:e=>v("tag",e.length>0?e.join(","):null),value:x?x.split(","):[],placeholder:"Select tags",variant:"default",maxCount:1}),(0,a.jsx)(i.I,{filterItemList:y,placeholder:n.TR.label,selectedValue:p||i.d,onValueChange:e=>v("f",e)}),(0,a.jsx)(i.I,{filterItemList:w,placeholder:n.yw.label,selectedValue:g||i.d,onValueChange:e=>v("sort",e)}),(0,a.jsx)(s.z,{variant:"outline",onClick:()=>{h.push(d)},children:"Reset"})]})}},61907:function(e,t,l){"use strict";l.d(t,{I:function(){return f},d:function(){return m}});var a=l(30382),s=l(85510),n=l(68433),r=l(68489),i=l(47119),u=l(52952),c=l(26729),o=l(6491),d=l(50493),h=l(39638);let m="%DEFAULT_FILTER_VALUE%";function f(e){let{filterItemList:t,placeholder:l,labelPrefix:n,selectedValue:c,onValueChange:d}=e,{isDesktop:f}=(0,u.a)(),[g,p]=h.useState(!1),[v,j]=h.useState(t.find(e=>e.value===c)||null);h.useEffect(()=>{j(t.find(e=>e.value===c)||null)},[c,t]);let b=e=>{j(e),p(!1),e&&d(e.value)};return f?(0,a.jsxs)(i.J2,{open:g,onOpenChange:p,children:[(0,a.jsx)(i.xo,{asChild:!0,children:(0,a.jsxs)(s.z,{variant:"outline","aria-expanded":g,className:"justify-between",children:[v&&v.value!==m?(0,a.jsx)("h2",{children:n?"".concat(n).concat(v.label):v.label}):(0,a.jsx)("h2",{children:l}),(0,a.jsx)(o.Z,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),(0,a.jsx)(i.yk,{className:"p-0",align:"start",children:(0,a.jsx)(x,{filterItemList:t,selectedValue:c,setOpen:p,onSelect:b})})]}):(0,a.jsxs)(r.dy,{open:g,onOpenChange:p,children:[(0,a.jsx)(r.Qz,{asChild:!0,children:(0,a.jsx)(s.z,{variant:"outline",className:"justify-start w-full",children:v&&v.value!==m?(0,a.jsx)("h2",{children:n?"".concat(n).concat(v.label):v.label}):(0,a.jsx)("h2",{children:l})})}),(0,a.jsxs)(r.sc,{children:[(0,a.jsx)(r.iI,{className:"sr-only",children:l}),(0,a.jsx)("div",{className:"mt-4 border-t",children:(0,a.jsx)(x,{filterItemList:t,selectedValue:c,setOpen:p,onSelect:b})})]})]})}function x(e){let{filterItemList:t,selectedValue:l,setOpen:s,onSelect:r}=e;return(0,a.jsxs)(n.mY,{children:[(0,a.jsx)(n.sZ,{placeholder:"Filter..."}),(0,a.jsxs)(n.e8,{children:[(0,a.jsx)(n.rb,{children:"No results found."}),(0,a.jsx)(n.fu,{className:"",children:t.map(e=>(0,a.jsxs)(n.di,{value:e.value,onSelect:()=>{r(e),s(!1)},className:"cursor-pointer p-3",children:[(0,a.jsx)(d.Z,{className:(0,
1c.cn)("mr-2 h-4 w-4",e.value===l?"opacity-100":"opacity-0")}),e.label]},e.value))})]})]})}},68489:function(e,t,l){"use strict";l.d(t,{OX:function(){return h},P1:function(){return o},Qz:function(){return u},dy:function(){return i},iI:function(){return m},rd:function(){return c},sc:function(){return d}});var a=l(30382),s=l(39638),n=l(26970),r=l(26729);let i=e=>{let{shouldScaleBackground:t=!0,...l}=e;return(0,a.jsx)(n.dy.Root,{shouldScaleBackground:t,...l})};i.displayName="Drawer";let u=n.dy.Trigger,c=n.dy.Portal;n.dy.Close;let o=s.forwardRef((e,t)=>{let{className:l,...s}=e;return(0,a.jsx)(n.dy.Overlay,{ref:t,className:(0,r.cn)("fixed inset-0 z-50 bg-black/80",l),...s})});o.displayName=n.dy.Overlay.displayName;let d=s.forwardRef((e,t)=>{let{className:l,children:s,...i}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(o,{}),(0,a.jsxs)(n.dy.Content,{ref:t,className:(0,r.cn)("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",l),...i,children:[(0,a.jsx)("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),s]})]})});d.displayName="DrawerContent";let h=e=>{let{className:t,...l}=e;return(0,a.jsx)("div",{className:(0,r.cn)("grid gap-1.5 p-4 text-center sm:text-left",t),...l})};h.displayName="DrawerHeader";let m=s.forwardRef((e,t)=>{let{className:l,...s}=e;return(0,a.jsx)(n.dy.Title,{ref:t,className:(0,r.cn)("text-lg font-semibold leading-none tracking-tight",l),...s})});m.displayName=n.dy.Title.displayName,s.forwardRef((e,t)=>{let{className:l,...s}=e;return(0,a.jsx)(n.dy.Description,{ref:t,className:(0,r.cn)("text-sm text-muted-foreground",l),...s})}).displayName=n.dy.Description.displayName},52952:function(e,t,l){"use strict";l.d(t,{a:function(){return s}});var a=l(39638);function s(){let[e,t]=(0,a.useState)(null),[l,s]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=()=>{window.matchMedia("(max-width: 640px)").matches?t("mobile"):window.matchMedia("(max-width: 768px)").matches?t("sm"):window.matchMedia("(min-width: 641px) and (max-width: 1024px)").matches?t("tablet"):t("desktop"),s({width:window.innerWidth,height:window.innerHeight})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),{device:e,width:null==l?void 0:l.width,height:null==l?void 0:l.height,isMobile:"mobile"===e,isSm:"sm"===e,isTablet:"tablet"===e,isDesktop:"desktop"===e}}}},function(e){e.O(0,[6786,2037,2619,9777,1822,3267,4023,416,9656,2125,4234,4420,5481,3629,5176,4525,631,6985,3748,1744],function(){return e(e.s=1647)}),_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.