PageSourceSearch

https://schiavellofurniture.com/_next/static/chunks/3737-88962511f05963be.js

js schiavellofurniture.com collected 2026-09-29 23:03:13 UTC 7,511 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3737],{13737:function(e,l,i){i.d(l,{Z:function(){return C}});var n=i(57437),t=i(56800),r=i.n(t),s=i(2265),d=i(59867),o=i(93426),a=i(83815),c=i(51561),v=i(26113),u=e=>{let{onlyShowSubCategories:l,isSelected:i,isIndented:t,isSubCategorySelected:u,hasNoOptions:x,numberOfSelectedItems:g,noMargin:m,label:h,learnAboutHref:p,onClick:b,children:y}=e,{panelRef:j,openAccordion:S,closeAccordion:f}=(0,c.Z)(),C=i&&(!0===u||void 0===u);return(0,s.useEffect)(()=>{x||(C?S():f())},[i,C]),(0,n.jsxs)("div",{children:[!l&&(0,n.jsxs)("label",{className:r()("relative flex cursor-pointer select-none items-center justify-between gap-x-10 transition-[margin]",{"lg:mb-2":!m,"mb-4":t&&!m,"pl-4":t&&!l,"mb-8":!t&&i&&!x&&!m}),children:[(0,n.jsx)("input",{type:"checkbox","aria-label":"Select ".concat(h),checked:i,onChange:b,className:"absolute h-px w-px opacity-0"}),(0,n.jsx)(a.Z,{cubeColour:r()({"bg-grey-800":i,"bg-grey-500 lg:bg-grey-200":!i}),cubeClassName:r()("translate-y-1.5",{"lg:block hidden":t}),className:r()("mb-0",{"pl-2 lg:pl-0":t}),children:(0,n.jsxs)("span",{className:r()("font-normal transition-colors",{"text-subheading-med lg:text-base lg:tracking-normal":t,"text-title-light lg:text-base lg:tracking-normal":!t,"text-grey-800":i,"text-grey-500 lg:text-grey-300":!i}),children:[h,g>0&&(0,n.jsx)(d.Z,{isSpan:!0,updateKey:g,children:(0,n.jsx)("sup",{className:"inline-block -translate-y-1 translate-x-1 text-sm lg:hidden",children:g})})]})}),p&&(0,n.jsx)(o.Z,{href:p,className:"hidden lg:inline underline font-normal text-base leading-5 text-grey-300 transition-colors hover:text-grey-600",onClick:e=>e.stopPropagation(),children:"Learn about"}),!x&&(0,n.jsx)(v.Z,{className:r()("size-[12px] transition-transform lg:hidden",{"text-grey-800":!t,"text-grey-500":t,"rotate-180":i})})]}),(0,n.jsx)("div",{ref:l?void 0:j,className:r()("transition-[max-height,opacity,margin] lg:overflow-hidden",{"lg:max-h-0":!l,"max-h-0 lg:pl-2":!t&&!l,"opacity-0":!i&&!l,"lg:pl-6":t&&!l}),children:y})]})};let x={Styles:"Style / Type"};var g=i(82603),m=i(15787),h=i(90371),p=i(3853),b=e=>{let{isSelected:l,onClick:i,children:t}=e,{isTablet:s}=(0,h.Z)();return(0,n.jsxs)(g.Z,{variant:l?s?"white":"grey-200":"grey-500-outlined",onClick:i,size:33,className:r()("w-fit px-5",{"xxs:text-grey-800":l&&!s,"xxs:text-grey-500":!l&&!s}),children:[(0,n.jsx)("span",{className:r()("text-caption inline-block transition-transform",{"-translate-x-2":l}),children:t}),(0,n.jsx)(p.Z,{className:r()("absolute right-3 top-1/2 -translate-y-1/2 transition-opacity",m.IN,{"delay-100":l,"opacity-0":!l})})]})},y=i(90308),j=i(35645),S=i(94538);let f={[j.$.Revit]:S.sX.RevitLibrary,[j.$.Certifications]:S.sX.Certifications,[j.$.ColourLab]:S.sX.ColourLab};var C=e=>{let{onlyShowSubCategories:l,hideAllFiltersExcept:i,hideSubCategoriesExcept:t,filterOptions:d,selectedFilters:o,onUpdateTopLevelFilters:a,onUpdateSubCategoryFilters:c,onUpdateThirdLevelFilters:v,onUpdateSubCategoryNames:g,onUpdateSubCategoryNamesForThirdLevel:m}=e;return(0,n.jsx)("ul",{className:"pr-4 lg:max-w-[328px] lg:pr-0",children:Object.keys(d).map(e=>{var h;if(i&&!i.includes(e))return null;let p=Object.keys(o[e]).reduce((l,i)=>{var n,t,r,s;return"isSelected"===i?l:"items"===i?l+(null===(t=o[e])||void 0===t?void 0:null===(n=t.items)||void 0===n?void 0:n.length)||0:l+(null===(s=o[e][i])||void 0===s?void 0:null===(r=s.items)||void 0===r?void 0:r.length)||0},0);return(0,n.jsxs)("li",{children:[(0,n.jsxs)(u,{onlyShowSubCategories:l,isSelected:null===(h=o[e])||void 0===h?void 0:h.isSelected,hasNoOptions:y.bJ.includes(e),numberOfSelectedItems:p,onClick:()=>{var l;return a(e,!(null===(l=o[e])||void 0===l?void 0:l.isSelected))},label:e,learnAboutHref:f[e],children:[e!==j.$.ColourLab&&(0,n.jsx)("ul",{children:Object.keys(o[e]).map(i=>{var t,r,s,v,m;let h=null===(t=o[e][i])||void 0===t?void 0:t.isSelected;if("isSelected"===i)return null;let p=d[e];if(Array.isArray(p))return(0,n.jsx)("div",{className:"mb-4 flex flex-wrap gap-2 pl-6 lg:pl-4",children:p.map(l=>{var i,t;return(0,n.jsx)(b,{isSelected:!!(null===(t=o[e])||void 0===t?void 0:null===(i=t.items)||void 0===i?void 0:i.includes(l)),onClick:()=>{g(e,"",l)},children:l},l)})},i);let y=d[e][i],j=null===(s=o[e][i])||void 0===s?void 0:null===(r=s.items)||void 0===r?void 0:r.length;return(0,n.jsx)("li",{children:(0,n.jsx)(u,{onlyShowSubCategories:l,isSelected:!!(null===(v=o[e][i])||void 0===v?void 0:v.isSelected),isIndented:!0,isSubCategorySelected:h,numberOfSelectedItems:j,label:
1x[i]||i,onClick:()=>{var l,n;(null===(l=o[e])||void 0===l?void 0:l.isSelected)||a(e,!0),c(e,i,!(null===(n=o[e][i])||void 0===n?void 0:n.isSelected))},children:(null==y?void 0:y.length)>0&&(0,n.jsx)("div",{className:"mb-4 flex flex-wrap gap-2 pl-6 lg:pl-4",children:null===(m=d[e][i])||void 0===m?void 0:m.map(l=>{var t,r;return(0,n.jsx)(b,{isSelected:!!(null===(r=o[e][i])||void 0===r?void 0:null===(t=r.items)||void 0===t?void 0:t.includes(l)),onClick:()=>g(e,i,l),children:l},l)})})})},i)})}),e===j.$.ColourLab&&(0,n.jsx)("ul",{children:Object.keys(d.ColourLab).map(i=>{var a,x,g,h,p,y,j,S;if("isSelected"===i||t&&!t.includes(i))return null;let f=o.ColourLab,C=null==f?void 0:null===(a=f[i])||void 0===a?void 0:a.isSelected,k=null===(x=d.ColourLab)||void 0===x?void 0:x[i],N=null===(g=Object.keys(k))||void 0===g?void 0:g.every(e=>k[e].every(e=>e.includes("Category"))),w=null===(h=Object.keys(k))||void 0===h?void 0:h.some(e=>{var l;return(null===(l=k[e])||void 0===l?void 0:l.length)>0&&k[e].every(e=>!e.includes("N/A"))}),O=null===(p=Object.keys(k))||void 0===p?void 0:p.every(e=>k[e].every(e=>e.length>0)),L=null===(y=Object.keys(k))||void 0===y?void 0:y.every(e=>"None"!==e);return(0,n.jsx)("li",{children:(0,n.jsx)(u,{isSelected:!!(null===(j=f[i])||void 0===j?void 0:j.isSelected),isIndented:!l,isSubCategorySelected:C,label:i,onClick:()=>{var l;return c(e,i,!(null===(l=f[i])||void 0===l?void 0:l.isSelected))},children:w&&(O&&!L||L)&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:r()({"mb-4 flex flex-wrap gap-2 pl-6 lg:pl-4":N}),children:null===(S=Object.keys(k))||void 0===S?void 0:S.map(l=>{var t,r;let d=!!(null===(r=f[i])||void 0===r?void 0:null===(t=r[l])||void 0===t?void 0:t.isSelected),o=k[l],a=null==o?void 0:o.every(e=>e.includes("Category"));return(0,n.jsx)(s.Fragment,{children:L?(0,n.jsx)(n.Fragment,{children:a?(0,n.jsx)(b,{isSelected:d,onClick:()=>{var n,t;return v(e,i,l,!(null===(t=f[i])||void 0===t?void 0:null===(n=t[l])||void 0===n?void 0:n.isSelected))},children:l}):(0,n.jsx)(u,{isSelected:d,isIndented:!0,isSubCategorySelected:d,label:l,onClick:()=>{var n,t;return v(e,i,l,!(null===(t=f[i])||void 0===t?void 0:null===(n=t[l])||void 0===n?void 0:n.isSelected))},children:(null==o?void 0:o.length)>0&&!a&&O&&(0,n.jsx)("div",{className:"mb-4 flex flex-wrap gap-2 pl-6 lg:pl-4",children:k[l].map(t=>{var r,s,d;return(0,n.jsx)(b,{isSelected:!!(null===(d=f[i])||void 0===d?void 0:null===(s=d[l])||void 0===s?void 0:null===(r=s.items)||void 0===r?void 0:r.includes(t)),onClick:()=>m(e,i,l,t),children:t},t)})})})}):(0,n.jsx)("div",{className:"mb-4 flex flex-col items-start gap-2 pl-6 lg:pl-4",children:k[l].map(t=>{var r,s,d;return(0,n.jsx)(b,{isSelected:!!(null===(d=f[i])||void 0===d?void 0:null===(s=d[l])||void 0===s?void 0:null===(r=s.items)||void 0===r?void 0:r.includes(t)),onClick:()=>m(e,i,l,t),children:t},t)})})},l)})})})})},i)})})]}),(0,n.jsx)("hr",{className:"my-8 ml-6 border-grey-600/25 lg:hidden"})]},e)})})}}}]);

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.