formica-ui-lib 1.0.308 → 1.0.310

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require(`react`),l=s(c,1);c=s(c);let u=require(`react/jsx-runtime`),d=require(`react-dom`);var f=e=>{let{as:t,variant:n=`body`,className:r=``,children:i,...a}=e;return(0,u.jsx)(t??`p`,{className:`${{h1:`text-5xl font-rockwell text-primary mb-6`,h2:`text-4xl font-rockwell text-primary mb-4`,h3:`text-2xl font-rockwell mb-3 text-primary`,standard:`text-secondary`,body:`text-sm text-primary`,nav:`text-base text-primary`,breadcrumb:`hover:text-accent text-secondaryActive`,navlink:`font-bold`,free:``,bold:`text-base font-bold`,link:`text-base text-accent hover:underline`,caption:`text-sm text-secondaryActive`,eyebrow:`text-sm text-light`}[n]} ${r}`,...a,children:i})},p={xs:`text-xs`,sm:`text-sm`,md:`text-md`,base:`text-base`,lg:`text-lg`,xl:`text-xl`,"2xl":`text-2xl`,"3xl":`text-3xl`,"4xl":`text-4xl`,"5xl":`text-5xl`},m={inherit:`text-inherit`,primary:`text-primary`,secondary:`text-secondary`,secondaryHover:`text-secondaryHover`,accent:`text-accent`},h=e=>e?e.startsWith(`fa-`)?e:`fa-${e}`:``,g=({iconType:e,iconName:t,alt:n=``,size:r=`base`,color:i=`inherit`,className:a=``,title:o})=>{if(!e||!t)return null;let s=!n,c=p[r],l=m[i],d=h(t);return(0,u.jsx)(`span`,{className:`inline-flex items-center justify-center ${c} ${l} ${a}`,children:(0,u.jsx)(`i`,{className:`${e} ${d}`,title:o,"aria-label":s?void 0:n,"aria-hidden":s?!0:void 0})})},_={xs:`h-3 w-3`,sm:`h-4 w-4`,md:`h-5 w-5`,lg:`h-6 w-6`,xl:`h-8 w-8`,"2xl":`h-10 w-10`},v=({label:e=`Loading...`,size:t=`md`})=>{let n=!!e;return(0,u.jsxs)(`span`,{role:n?`status`:void 0,"aria-hidden":n?void 0:!0,className:`inline-flex items-center justify-center`,children:[(0,u.jsxs)(`svg`,{"aria-hidden":`true`,className:`${_[t]} animate-spin`,viewBox:`0 0 100 101`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,u.jsx)(`path`,{className:`text-borderTertiary`,d:`M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z`,fill:`currentColor`}),(0,u.jsx)(`path`,{className:`text-tertiary`,d:`M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z`,fill:`currentColor`})]}),n?(0,u.jsx)(`span`,{className:`sr-only`,children:e}):null]})},y=`inline-flex items-center gap-2 transition focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer`,b={solid:`rounded-lg border border-transparent`,outline:`rounded-lg border bg-transparent`,ghost:`rounded-lg bg-transparent border border-transparent`,link:`bg-transparent border-none rounded-none p-0`,chip:`border-none rounded-none`},x={xs:`px-2 py-1 text-xs`,sm:`px-3 py-1.5 text-sm`,md:`px-4 py-3 text-sm`,lg:`px-5 py-3.5 text-base`},S={xs:`px-1.5 py-0.5 text-xs`,sm:`px-2 py-1 text-sm`,md:`px-2.5 py-1 text-sm`,lg:`px-3 py-1.5 text-base`},C={xs:`w-7 h-7 p-1`,sm:`w-8 h-8 p-1.5`,md:`w-9 h-9 p-2`,lg:`w-10 h-10 p-2`},w={"solid.primary":`bg-primary text-secondary hover:bg-primaryHover active:bg-primaryActive`,"solid.secondary":`bg-secondary text-primary hover:bg-secondaryHover active:bg-secondaryActive`,"solid.neutral":`bg-secondaryMultiButton text-secondary hover:bg-secondaryHover active:bg-secondaryActive`,"solid.accent":`bg-accent text-secondary hover:bg-accentHover active:bg-accentActive`,"solid.danger":`bg-error text-secondary hover:opacity-90 active:opacity-80`,"solid.muted":`bg-secondaryMultiButton text-secondary hover:bg-secondaryHover active:bg-secondaryActive`,"solid.ghost":`bg-transparent border border-accent text-accent hover:text-accentHover hover:border-accentHover active:text-accentActive active:border-accentActive`,"solid.radio":`bg-secondary text-primary hover:bg-secondaryActive hover:text-secondary active:bg-secondaryActive`,"outline.primary":`border-primary text-primary hover:border-primaryHover hover:text-primaryHover active:border-primaryActive active:text-primaryActive`,"outline.secondary":`border-secondary text-secondary hover:border-secondaryHover hover:text-secondaryHover active:border-secondaryActive active:text-secondaryActive`,"outline.neutral":`border-secondaryActive text-primary hover:border-secondaryHover active:border-secondaryActive`,"outline.accent":`border-accent text-accent hover:border-accentHover hover:text-accentHover active:border-accentActive active:text-accentActive`,"outline.danger":`border-error text-error hover:opacity-90 active:opacity-80`,"outline.muted":`border-secondaryMultiButton text-secondaryMultiButton hover:border-secondaryActive hover:text-secondaryActive active:border-secondaryActive active:text-secondaryActive`,"outline.ghost":`border-secondaryActive text-secondaryActive hover:border-accent hover:text-primary active:border-primaryActive active:text-accentActive`,"outline.radio":`border-primary text-primary hover:border-primaryHover hover:text-primaryHover active:border-primaryActive active:text-primaryActive`,"ghost.primary":`text-primary hover:bg-primary/10 active:bg-primary/20`,"ghost.secondary":`text-secondary hover:bg-secondary/10 active:bg-secondary/20`,"ghost.neutral":`text-primary hover:bg-secondary/15 active:bg-secondary/25`,"ghost.accent":`text-accent hover:bg-accent/10 active:bg-accent/20`,"ghost.danger":`text-error hover:bg-error/10 active:bg-error/20`,"ghost.muted":`text-secondaryMultiButton hover:bg-secondaryMultiButton/10 active:bg-secondaryMultiButton/20`,"ghost.ghost":`text-secondary hover:bg-secondary active:bg-secondary hover:text-primary active:text-primary`,"ghost.radio":`text-primary hover:bg-secondaryHover active:bg-secondaryActive`,"link.primary":`text-primary hover:text-tertiary active:text-tertiary`,"link.secondary":`text-secondary hover:text-secondaryHover active:text-secondaryActive`,"link.neutral":`text-primary hover:text-secondaryActive active:text-secondaryActive`,"link.accent":`text-accent hover:text-accentHover active:text-accentActive`,"link.danger":`text-error hover:opacity-90 active:opacity-80`,"link.muted":`text-secondaryMultiButton hover:text-secondaryActive active:text-secondaryActive`,"link.ghost":`text-secondary hover:text-primary active:text-secondaryActive`,"link.radio":`text-primary`,"chip.neutral":`bg-multibarBackground text-primary hover:bg-multibarBackground active:bg-multibarBackground`},T={"link.primary":`border-b-2 border-accent`,"link.secondary":`border-b-2 border-secondary`,"ghost.primary":`ring-2 ring-primaryActive`,"ghost.secondary":`ring-2 ring-secondaryActive`,"outline.radio":`ring-2 ring-secondaryActive`},E=e=>{let{variant:t,intent:n,size:r,active:i=!1,fullWidth:a=!1,iconOnly:o=!1,className:s=``,buttonAlignment:c=`justify-center`}=e,l=`${t}.${n}`,u=o?C[r]:x[r],d=t===`chip`?S[r]:u;return[y,b[t],d,w[l],i?T[l]??``:``,a?`w-full`:``,c,s].filter(Boolean).join(` `)},D=()=>`body`,O=e=>{let{label:t,children:n,iconType:r,iconName:i,iconAlt:a=``,iconSize:o=`md`,iconPosition:s=`left`,variant:c=`solid`,intent:l=`primary`,buttonType:d,size:p=`md`,buttonAlignment:m=`justify-center`,className:h=``,active:_=!1,fullWidth:y=!1,type:b=`button`,...x}=e,S=null;r&&i&&(S=i===`spinner`?(0,u.jsx)(v,{label:``,size:o}):(0,u.jsx)(g,{iconType:r,iconName:i,alt:a,size:o}));let C=E({variant:c,intent:d??l,size:p,active:_,fullWidth:y,iconOnly:!t&&!n&&!!S,className:h,buttonAlignment:m}),w=(0,u.jsxs)(u.Fragment,{children:[s===`left`&&S,n??(t?(0,u.jsx)(f,{as:`span`,variant:D(),className:`text-inherit!`,children:t}):null),s===`right`&&S]});return(0,u.jsx)(`button`,{type:b,className:C,...x,children:w})};function k({src:e,width:t,quality:n,fit:r=`cover`}){let i=new URL(`/.netlify/images`,`https://example.com`);return i.searchParams.set(`url`,e),t&&i.searchParams.set(`w`,String(t)),n&&i.searchParams.set(`q`,String(n)),i.searchParams.set(`fit`,r),i.pathname+`?`+i.searchParams.toString()}function A(){return typeof process<`u`&&process?.env?.NETLIFY===`true`}var j=c.default.forwardRef(({src:e,alt:t,className:n=``,loading:r=`lazy`,decoding:i=`async`,width:a,quality:o,fit:s,useNetlifyImages:c,...l},d)=>{let f=c??A(),p=typeof e==`string`&&e.startsWith(`http`),m=typeof a==`number`?a:void 0,h=e;return f&&p&&(h=k({src:e,width:m,quality:o,fit:s})),(0,u.jsx)(`img`,{ref:d,src:h,alt:t,className:n,loading:r,decoding:i,width:a,...l})});j.displayName=`Image`;var M=`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,N=(e,t)=>{if(!t)return e;try{let t=new URL(e),n=t.hostname.toLowerCase();if(n===`youtube.com`||n.endsWith(`.youtube.com`)||n===`youtube-nocookie.com`||n.endsWith(`.youtube-nocookie.com`))return t.searchParams.set(`mute`,`1`),t.toString();if(n===`vimeo.com`||n.endsWith(`.vimeo.com`))return t.searchParams.set(`muted`,`1`),t.toString()}catch{return e}return e},P=({src:e,title:t,muted:n=!0,className:r=``,allow:i=M,allowFullScreen:a=!0,loading:o=`lazy`,...s})=>(0,u.jsx)(`iframe`,{src:N(e,n),title:t,className:`w-full ${r}`.trim(),allow:i,allowFullScreen:a,loading:o,...s}),F=e=>typeof e==`string`&&e.trim().length>0?e:void 0,I=({src:e,fallbackSrc:t,placeholderSrc:n,alt:r,imageClassName:i=``,placeholderClassName:a=``,onImageStatusChange:o,...s})=>{let l=c.default.useRef(null),d=F(e),f=F(t),p=F(n),[m,h]=c.default.useState(d),[g,_]=c.default.useState(d?`loading`:`idle`),v=c.default.useCallback((e,t)=>{_(e),o?.(e,t)},[o]);c.default.useEffect(()=>{h(d),v(d?`loading`:`idle`,d)},[d,f,v]);let y=c.default.useCallback(()=>{v(`loaded`,m)},[m,v]),b=c.default.useCallback(()=>{if(f&&m!==f){h(f),v(`loading`,f);return}h(void 0),v(`error`)},[f,m,v]);return c.default.useEffect(()=>{let e=l.current;if(!(!e||!m||!e.complete)){if(e.naturalWidth>0){y();return}b()}},[b,y,m]),(0,u.jsxs)(u.Fragment,{children:[p?(0,u.jsx)(`img`,{src:p,alt:``,"aria-hidden":`true`,className:a}):null,m?(0,u.jsx)(j,{...s,ref:l,src:m,alt:r,className:`${i} ${g===`loaded`?`opacity-100`:`opacity-0`}`.trim(),onError:b,onLoad:y}):null]})},L=({id:e,name:t,value:n=``,placeholder:r=``,ariaLabel:i,disabled:a=!1,readOnly:o=!1,required:s=!1,hasError:c=!1,rows:l=4,onChange:d,onBlur:f,onFocus:p})=>{let m=[`w-full resize-y rounded-md border bg-white px-4 py-3 text-sm text-primary outline-none transition-colors placeholder-tertiary`,c?`border-accent`:`border-secondaryHover`,a?`cursor-not-allowed opacity-60`:``].filter(Boolean).join(` `);return(0,u.jsx)(`textarea`,{id:e,name:t,value:n,placeholder:r,"aria-label":i,"aria-invalid":c||void 0,disabled:a,readOnly:o,required:s,rows:l,className:m,onChange:d,onBlur:f,onFocus:p})},R={sm:`max-w-sm`,md:`max-w-md`,lg:`max-w-lg`,xl:`max-w-xl`,"2xl":`max-w-2xl`,"4xl":`max-w-4xl`,"6xl":`max-w-6xl`},ee={none:``,section:`mb-16 md:mb-20`,compactPaddedSection:`px-4 mb-8 md:px-0 md:mb-10`,paddedSection:`px-4 mb-16 md:px-0 md:mb-20`,padded:`px-4 pb-16 md:px-0 md:pb-20`,preview:`px-4 py-8 md:px-0`,verticalPreview:`py-8`},te=`mt-10 md:mt-20`,z=({children:e,className:t=``,innerClassName:n=``,isFirst:r=!1,maxWidth:i=`6xl`,spacing:a=`paddedSection`})=>(0,u.jsx)(`div`,{className:`mx-auto w-full ${r?te:``} ${ee[a]} ${t}`.trim(),children:(0,u.jsx)(`div`,{className:`mx-auto w-full ${R[i]} ${n}`.trim(),children:e})}),ne={1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`},re={sm:`gap-3`,md:`gap-6`,lg:`gap-8`,xl:`gap-12`},B=({children:e,className:t=``,gridClassName:n=``,maxWidth:r=`6xl`,spacing:i=`none`,columns:a=3,gap:o=`md`})=>(0,u.jsx)(z,{className:t,maxWidth:r,spacing:i,children:(0,u.jsx)(`div`,{className:`grid ${ne[a]} ${re[o]} ${n}`.trim(),children:e})}),ie={sm:`gap-2`,md:`gap-4`,lg:`gap-6`,xl:`gap-8`},V={start:`items-start`,center:`items-center`,end:`items-end`,stretch:`items-stretch`},H={start:`justify-start`,center:`justify-center`,end:`justify-end`,between:`justify-between`,around:`justify-around`,evenly:`justify-evenly`},U=({children:e,className:t=``,gap:n=`md`,align:r=`center`,justify:i=`start`,wrap:a=!0})=>(0,u.jsx)(`div`,{className:`flex ${a?`flex-wrap`:`flex-nowrap`} ${ie[n]} ${V[r]} ${H[i]} ${t}`.trim(),children:e}),W=`font-bold text-primary`,G=(e,t,n)=>{e?.({label:t,href:n})},ae=({heading:e,address:t,mapLink:n,hours:r,phone:i,email:a,onAddressClick:o,onMapClick:s,onPhoneClick:c,onEmailClick:l})=>{let d=t?.lines.join(` `);return(0,u.jsxs)(`article`,{className:`w-full bg-white py-10 md:py-16`,children:[(0,u.jsx)(f,{as:`h2`,variant:`h2`,className:`mb-8`,children:e}),(0,u.jsxs)(`div`,{className:`space-y-4 text-base text-primary`,children:[t||n?(0,u.jsxs)(`div`,{className:`space-y-1`,children:[t?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`bold`,className:`text-primary`,children:t.label??`Address:`}),(0,u.jsx)(`div`,{children:t.href?(0,u.jsx)(f,{as:`a`,variant:`link`,href:t.href,onClick:()=>G(o,d??``,t.href),children:d}):(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-base`,children:d})})]}):null,n?(0,u.jsx)(`div`,{children:n.href?(0,u.jsx)(f,{as:`a`,variant:`link`,href:n.href,onClick:()=>G(s,n.label,n.href),children:n.label}):(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-base`,children:n.label})}):null]}):null,r?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`bold`,className:`text-primary`,children:r.label??`Business Hours:`}),(0,u.jsx)(`dl`,{children:r.items.map(e=>(0,u.jsxs)(`div`,{className:`flex flex-wrap gap-x-1`,children:[(0,u.jsxs)(`dt`,{className:W,children:[e.dayLabel,`:`]}),(0,u.jsx)(`dd`,{children:e.hours})]},e.dayLabel))})]}):null,i?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`bold`,className:`text-primary`,children:i.label??`Telephone Number:`}),(0,u.jsx)(`div`,{children:i.href?(0,u.jsx)(f,{as:`a`,variant:`link`,href:i.href,onClick:()=>G(c,i.value,i.href),children:i.value}):(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-base`,children:i.value})})]}):null,a?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`bold`,className:`text-primary`,children:a.label??`Email Address:`}),(0,u.jsx)(`div`,{children:a.href?(0,u.jsx)(f,{as:`a`,variant:`link`,href:a.href,onClick:()=>G(l,a.value,a.href),children:a.value}):(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-base`,children:a.value})})]}):null]})]})},oe=(e,t,n)=>Math.max(t,Math.min(n,e)),se=e=>[`h-12 w-12 border-2 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),ce=({imageSrc:e,imageAlt:t,title:n,brand:r,decorNumber:i,productType:a,quantity:o,price:s,minQuantity:c=1,maxQuantity:l=99,freeLabel:d=`Free`,removeItemLabel:p=`Remove ${n} from cart`,decreaseQuantityLabel:m=`Decrease quantity`,increaseQuantityLabel:h=`Increase quantity`,onQuantityChange:g,onRemoveItem:_})=>{let v=oe(o,c,l),y=()=>{let e=oe(v-1,c,l);e!==v&&g?.(e)},b=()=>{let e=oe(v+1,c,l);e!==v&&g?.(e)},x=v>c,S=v<l;return(0,u.jsxs)(`div`,{className:`relative flex rounded-lg bg-tertiaryActive p-5`,children:[(0,u.jsx)(O,{className:`absolute top-5 right-5`,iconType:`fa-regular`,iconName:`trash-can`,intent:`primary`,variant:`ghost`,onClick:_,"aria-label":p}),(0,u.jsx)(j,{src:e,alt:t,quality:90,className:`h-32 w-32 rounded-lg object-cover`}),(0,u.jsxs)(`div`,{className:`ml-4 flex-1 content-center`,children:[i?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-tertiary`,children:i}):null,(0,u.jsx)(f,{variant:`free`,className:`text-primary text-md font-extrabold`,children:n}),(0,u.jsxs)(`div`,{className:`flex justify-between`,children:[r?(0,u.jsx)(f,{variant:`free`,className:`text-md text-primary`,children:r}):null,(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-md font-bold text-primary`,children:a===`sample`&&s.value===0?d:s.label})]}),(0,u.jsxs)(`div`,{className:`mt-2 flex items-stretch gap-1`,children:[(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":m,type:`button`,disabled:!x,onClick:y,className:se(x)}),(0,u.jsx)(`div`,{className:`flex min-w-10 items-center justify-center`,children:(0,u.jsx)(f,{as:`span`,variant:`free`,className:`text-xl`,children:v})}),(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":h,type:`button`,disabled:!S,onClick:b,className:se(S)})]})]})]})},le=({actions:e,onActionClick:t})=>{let n=e=>{t?.({action:e})};return(0,u.jsx)(`div`,{className:`w-full space-y-4`,children:e.map((e,t)=>{let r=t===0;return(0,u.jsx)(O,{type:`button`,label:e.label,iconName:e.iconName,iconType:e.iconName?e.iconType??`fa-solid`:void 0,iconAlt:e.iconAlt,"aria-label":e.ariaLabel,disabled:e.disabled,intent:r?`accent`:`muted`,variant:r?`solid`:`outline`,buttonAlignment:`justify-center`,onClick:()=>n(e),className:r?`h-12 w-full`:`h-12 w-full hover:border-accent! hover:text-accent! active:border-accentActive! active:text-accentActive!`},e.id)})})},K=({children:e,onCardClick:t,ariaLabel:n,ariaControls:r,ariaExpanded:i,ariaPressed:a,className:o})=>(0,u.jsx)(`button`,{type:`button`,onClick:t,"aria-label":n,"aria-controls":r,"aria-expanded":i,"aria-pressed":a,className:o||`block text-left bg-transparent border-0 p-0 cursor-pointer`,children:e}),ue=({statuses:e,readyLabel:t=`Good`,notReadyLabel:n=`No Good`})=>(0,u.jsx)(`span`,{className:`flex shrink-0 items-start gap-2`,"aria-label":`Readiness`,children:e.map(e=>{let r=e.ready?t:n,i=`${e.label}: ${r}`;return(0,u.jsxs)(`span`,{"aria-label":i,title:i,className:`inline-flex min-w-4 flex-col items-center gap-1`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-2 w-2 rounded-full ${e.ready?`bg-primary`:`bg-borderTertiary`}`}),(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`text-[10px] font-bold uppercase leading-none text-tertiary`,children:e.shortLabel})]},e.id)})}),de=(e,t)=>e&&t?`border-accent bg-accent/10`:e?`border-primary bg-tertiaryActive`:`border-borderTertiary bg-secondary hover:border-primary`,fe=({sampleId:e,sku:t,isSampleable:n,bigCommerceReady:r,selected:i=!1,selectionMode:a=!1,selectLabel:o=`Select sample`,deselectLabel:s=`Deselect sample`,onSampleClick:c})=>{let l=[...r===void 0?[]:[{id:`big-commerce`,shortLabel:`BC`,label:`Big Commerce`,ready:r}],{id:`sample`,shortLabel:`SMP`,label:`Sample`,ready:n}];return(0,u.jsx)(K,{ariaLabel:a?`${i?s:o} ${t}`:t,ariaPressed:i,className:`w-full rounded-md border p-3 text-left transition ${de(i,a)}`,onCardClick:()=>c({sampleId:e,sku:t}),children:(0,u.jsxs)(`span`,{className:`flex items-start gap-2`,children:[a?(0,u.jsx)(g,{iconType:i?`fa-solid`:`fa-regular`,iconName:i?`square-check`:`square`,alt:``,size:`sm`,color:i?`accent`:`inherit`,className:`mt-0.5 w-5 shrink-0`}):null,(0,u.jsx)(`span`,{className:`min-w-0 flex-1 break-all text-sm font-bold text-primary`,children:t}),(0,u.jsx)(ue,{statuses:l})]})})},pe=(e,t)=>e&&t?`border-accent bg-accent/10`:e?`border-primary bg-tertiaryActive`:`border-borderTertiary bg-secondary hover:border-primary`,me=({skuId:e,sku:t,lxReady:n,bigCommerceReady:r,isForSale:i,grade:a,finish:o,size:s,selected:c=!1,selectionMode:l=!1,forSaleLabel:d=`For sale`,notForSaleLabel:f=`Not for sale`,selectLabel:p=`Select sheet`,deselectLabel:m=`Deselect sheet`,onSkuClick:h})=>{let _=i?d:f,v=[{id:`lx`,shortLabel:`LX`,label:`LX`,ready:n},...r===void 0?[]:[{id:`big-commerce`,shortLabel:`BC`,label:`Big Commerce`,ready:r}],{id:`ecommerce`,shortLabel:`EC`,label:`Is Ecomm`,ready:i}];return(0,u.jsx)(K,{ariaLabel:l?`${c?m:p} ${t}`:t,ariaPressed:c,className:`w-full rounded-md border p-3 text-left transition ${pe(c,l)}`,onCardClick:()=>h({skuId:e,sku:t}),children:(0,u.jsxs)(`span`,{className:`flex items-start gap-2`,children:[l?(0,u.jsx)(g,{iconType:c?`fa-solid`:`fa-regular`,iconName:c?`square-check`:`square`,alt:``,size:`sm`,color:c?`accent`:`inherit`,className:`mt-0.5 w-5 shrink-0`}):null,(0,u.jsx)(g,{iconType:`fa-solid`,iconName:i?`shop`:`shop-slash`,alt:_,title:_,size:`sm`,className:`mt-0.5 w-5 shrink-0 ${i?``:`text-secondaryHover`}`}),(0,u.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`span`,{className:`block text-sm font-bold text-primary`,children:t}),(0,u.jsxs)(`span`,{className:`mt-1 block text-xs text-tertiary`,children:[o,` · `,a,` · `,s]})]}),(0,u.jsx)(ue,{statuses:v})]})})},he=e=>(0,u.jsx)(O,{variant:`ghost`,size:`md`,...e}),ge=({decorId:e,decorCode:t,name:n,imageUrl:r,imageAlt:i=``,availableSheetCount:a,sheetCount:o,availableSampleCount:s,sampleCount:l,sheetLabel:d=`Sheets`,sampleLabel:p=`Samples`,openLabel:m=`Open`,actionsLabel:h=`Actions`,deleteLabel:_=`Delete decor`,disabled:v=!1,onDecorClick:y,onDeleteDecorRequest:b})=>{let[x,S]=(0,c.useState)(!1),C=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!x)return;let e=e=>{C.current?.contains(e.target)||S(!1)},t=e=>{e.key===`Escape`&&S(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[x]);let w=(0,u.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-3 md:gap-4`,children:[(0,u.jsx)(`div`,{className:`flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-md border border-borderTertiary bg-adminSideNavBackground md:h-16 md:w-16`,children:r?(0,u.jsx)(j,{src:r,alt:i,quality:85,fit:`cover`,className:`h-full w-full object-cover`}):(0,u.jsx)(g,{iconType:`fa-regular`,iconName:`image`,alt:`No decor image available`,size:`lg`,className:`text-tertiary`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1 md:flex md:items-center md:gap-4`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 md:flex-1`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`truncate text-sm font-bold text-primary md:text-base`,children:n}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 font-mono text-xs text-tertiary`,children:t})]}),(0,u.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-x-2 gap-y-1 text-xs text-primary md:mt-0 md:shrink-0 md:flex-nowrap md:justify-end md:whitespace-nowrap`,children:[(0,u.jsx)(`span`,{"aria-label":`${d}: ${a.toLocaleString()} available out of ${o.toLocaleString()}`,children:(0,u.jsxs)(`span`,{"aria-hidden":`true`,children:[d,` `,a.toLocaleString(),` /`,` `,o.toLocaleString()]})}),(0,u.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,u.jsx)(`span`,{"aria-label":`${p}: ${s.toLocaleString()} available out of ${l.toLocaleString()}`,children:(0,u.jsxs)(`span`,{"aria-hidden":`true`,children:[p,` `,s.toLocaleString(),` /`,` `,l.toLocaleString()]})})]})]})]});return(0,u.jsxs)(`article`,{className:`group relative flex w-full items-center rounded-md border border-borderTertiary bg-secondary p-3 shadow-sm transition hover:border-primary md:p-4`,children:[y&&!v?(0,u.jsx)(K,{ariaLabel:`${m} ${n} (${t})`,className:`absolute inset-0 z-10 cursor-pointer rounded-md text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2`,onCardClick:()=>y({decorId:e,decorCode:t}),children:(0,u.jsx)(`span`,{className:`sr-only`,children:`${m} ${n}`})}):null,w,b&&!v?(0,u.jsxs)(`div`,{ref:C,className:`relative z-20 ml-1 shrink-0`,children:[(0,u.jsx)(he,{iconType:`fa-solid`,iconName:`ellipsis-vertical`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`neutral`,"aria-label":`${h} for ${n} (${t})`,"aria-haspopup":`menu`,"aria-expanded":x,onClick:()=>S(e=>!e)}),x?(0,u.jsx)(`div`,{role:`menu`,className:`absolute right-0 top-full z-30 mt-1 min-w-40 rounded-md border border-borderTertiary bg-secondary p-1 shadow-lg`,children:(0,u.jsx)(O,{label:_,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,iconSize:`sm`,size:`sm`,variant:`ghost`,intent:`danger`,fullWidth:!0,role:`menuitem`,buttonAlignment:`justify-start`,onClick:()=>{S(!1),b({decorId:e,decorCode:t,name:n,sheetCount:o,sampleCount:l})}})}):null]}):null,(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`sm`,className:`ml-1 shrink-0 text-tertiary`})]})},_e=`data:image/svg+xml,%3csvg%20width='46'%20height='24'%20viewBox='0%200%2046%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%200V0.799999C3.8%200.799999%206.9%205.7%206.9%2011.8C6.9%2017.9%203.8%2022.8%200%2022.8V23.6H22.6V23C15%2022.1%209.5%2018.6%209.5%2011.9C9.5%205.2%2017.5%201.5%2027.4%201.5C37.3%201.5%2042.1%203.5%2044.4%208.2H45V0.200001H0V0Z'%20fill='white'/%3e%3cpath%20d='M44.1984%2010.6996C44.1984%2010.6996%2044.1984%2010.6996%2043.9984%2010.6996H43.7984V10.2996H43.9984C44.0984%2010.2996%2044.1984%2010.2996%2044.1984%2010.2996C44.1984%2010.2996%2044.1984%2010.2996%2044.1984%2010.4996C44.1984%2010.6996%2044.1984%2010.5996%2044.0984%2010.6996H44.1984ZM44.4984%2011.1996C44.4984%2011.0996%2044.4984%2010.9996%2044.4984%2010.9996C44.4984%2010.9996%2044.3984%2010.9996%2044.2984%2010.8996C44.2984%2010.8996%2044.3984%2010.8996%2044.4984%2010.8996C44.4984%2010.8996%2044.5984%2010.7996%2044.5984%2010.6996C44.5984%2010.5996%2044.5984%2010.4996%2044.3984%2010.3996C44.3984%2010.3996%2044.1984%2010.3996%2044.0984%2010.3996H43.6984V11.4996H43.8984V11.0996H43.9984H44.1984C44.1984%2011.0996%2044.2984%2011.1996%2044.2984%2011.2996V11.3996H44.4984V11.1996ZM44.6984%2011.2996C44.4984%2011.4996%2044.2984%2011.4996%2044.0984%2011.4996C43.8984%2011.4996%2043.6984%2011.4996%2043.4984%2011.2996C43.2984%2011.0996%2043.2984%2010.8996%2043.2984%2010.6996C43.2984%2010.4996%2043.2984%2010.2996%2043.4984%2010.0996C43.6984%209.89961%2043.8984%209.89961%2044.0984%209.89961C44.2984%209.89961%2044.4984%209.89961%2044.6984%2010.0996C44.8984%2010.2996%2044.8984%2010.4996%2044.8984%2010.6996C44.8984%2010.8996%2044.8984%2011.0996%2044.6984%2011.2996ZM44.7984%2010.0996C44.5984%209.89961%2044.3984%209.79961%2044.0984%209.79961C43.7984%209.79961%2043.5984%209.79961%2043.3984%2010.0996C43.1984%2010.2996%2043.0984%2010.4996%2043.0984%2010.7996C43.0984%2011.0996%2043.0984%2011.2996%2043.3984%2011.4996C43.5984%2011.6996%2043.7984%2011.7996%2044.0984%2011.7996C44.3984%2011.7996%2044.5984%2011.7996%2044.7984%2011.4996C44.9984%2011.2996%2045.0984%2011.0996%2045.0984%2010.7996C45.0984%2010.4996%2045.0984%2010.2996%2044.7984%2010.0996ZM40.5984%2012.1996L41.1984%2010.6996L41.7984%2012.1996H40.5984ZM40.5984%209.69961L38.7984%2013.7996H39.9984L40.2984%2012.9996H42.0984L42.3984%2013.7996H43.5984L41.7984%209.69961H40.4984H40.5984ZM23.6984%2011.3996H21.8984V10.5996H23.6984C23.8984%2010.5996%2024.0984%2010.7996%2024.0984%2010.9996C24.0984%2011.1996%2023.8984%2011.3996%2023.6984%2011.3996ZM25.2984%2010.8996C25.2984%2010.1996%2024.6984%209.69961%2023.9984%209.69961H20.7984V13.7996H21.8984V12.2996H22.8984L23.9984%2013.7996H25.3984L24.1984%2012.1996C24.7984%2012.0996%2025.1984%2011.5996%2025.1984%2010.9996L25.2984%2010.8996ZM17.7984%2012.9996C16.9984%2012.9996%2016.5984%2012.3996%2016.5984%2011.6996C16.5984%2010.9996%2016.9984%2010.3996%2017.7984%2010.3996C18.5984%2010.3996%2018.9984%2010.9996%2018.9984%2011.6996C18.9984%2012.3996%2018.5984%2012.9996%2017.7984%2012.9996ZM17.7984%209.59961C16.3984%209.59961%2015.2984%2010.0996%2015.2984%2011.6996C15.2984%2013.2996%2016.2984%2013.7996%2017.7984%2013.7996C19.2984%2013.7996%2020.2984%2013.0996%2020.2984%2011.6996C20.2984%2010.2996%2019.2984%209.59961%2017.7984%209.59961ZM37.5984%2012.0996C37.5984%2012.4996%2037.1984%2012.9996%2036.3984%2012.9996C35.5984%2012.9996%2035.1984%2012.3996%2035.1984%2011.6996C35.1984%2010.9996%2035.5984%2010.3996%2036.3984%2010.3996C37.3984%2010.3996%2037.4984%2011.1996%2037.4984%2011.1996L38.6984%2010.7996C38.4984%2010.0996%2037.6984%209.59961%2036.3984%209.59961C34.9984%209.59961%2033.8984%2010.0996%2033.8984%2011.6996C33.8984%2013.2996%2034.8984%2013.7996%2036.3984%2013.7996C37.6984%2013.7996%2038.5984%2013.2996%2038.7984%2012.3996L37.4984%2012.0996H37.5984ZM28.5984%2011.9996L27.6984%209.69961H25.9984V13.7996H27.0984V10.6996L28.2984%2013.7996H28.9984L30.1984%2010.6996V13.7996H31.2984V9.69961H29.5984L28.6984%2011.9996H28.5984ZM32.1984%2013.7996H33.2984V9.69961H32.1984V13.7996ZM10.9984%2013.7996H12.0984V12.2996H14.4984V11.3996H12.0984V10.5996H14.8984V9.69961H10.8984V13.7996H10.9984Z'%20fill='white'/%3e%3c/svg%3e`,ve=`data:image/svg+xml,%3csvg%20width='46'%20height='24'%20viewBox='0%200%2046%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%200V0.799999C3.8%200.799999%206.9%205.7%206.9%2011.8C6.9%2017.9%203.8%2022.8%200%2022.8V23.6H22.6V23C15%2022.1%209.5%2018.6%209.5%2011.9C9.5%205.2%2017.5%201.5%2027.4%201.5C37.3%201.5%2042.1%203.5%2044.4%208.2H45V0.200001H0V0Z'%20fill='red'/%3e%3cpath%20d='M44.1984%2010.6996C44.1984%2010.6996%2044.1984%2010.6996%2043.9984%2010.6996H43.7984V10.2996H43.9984C44.0984%2010.2996%2044.1984%2010.2996%2044.1984%2010.2996C44.1984%2010.2996%2044.1984%2010.2996%2044.1984%2010.4996C44.1984%2010.6996%2044.1984%2010.5996%2044.0984%2010.6996H44.1984ZM44.4984%2011.1996C44.4984%2011.0996%2044.4984%2010.9996%2044.4984%2010.9996C44.4984%2010.9996%2044.3984%2010.9996%2044.2984%2010.8996C44.2984%2010.8996%2044.3984%2010.8996%2044.4984%2010.8996C44.4984%2010.8996%2044.5984%2010.7996%2044.5984%2010.6996C44.5984%2010.5996%2044.5984%2010.4996%2044.3984%2010.3996C44.3984%2010.3996%2044.1984%2010.3996%2044.0984%2010.3996H43.6984V11.4996H43.8984V11.0996H43.9984H44.1984C44.1984%2011.0996%2044.2984%2011.1996%2044.2984%2011.2996V11.3996H44.4984V11.1996ZM44.6984%2011.2996C44.4984%2011.4996%2044.2984%2011.4996%2044.0984%2011.4996C43.8984%2011.4996%2043.6984%2011.4996%2043.4984%2011.2996C43.2984%2011.0996%2043.2984%2010.8996%2043.2984%2010.6996C43.2984%2010.4996%2043.2984%2010.2996%2043.4984%2010.0996C43.6984%209.89961%2043.8984%209.89961%2044.0984%209.89961C44.2984%209.89961%2044.4984%209.89961%2044.6984%2010.0996C44.8984%2010.2996%2044.8984%2010.4996%2044.8984%2010.6996C44.8984%2010.8996%2044.8984%2011.0996%2044.6984%2011.2996ZM44.7984%2010.0996C44.5984%209.89961%2044.3984%209.79961%2044.0984%209.79961C43.7984%209.79961%2043.5984%209.79961%2043.3984%2010.0996C43.1984%2010.2996%2043.0984%2010.4996%2043.0984%2010.7996C43.0984%2011.0996%2043.0984%2011.2996%2043.3984%2011.4996C43.5984%2011.6996%2043.7984%2011.7996%2044.0984%2011.7996C44.3984%2011.7996%2044.5984%2011.7996%2044.7984%2011.4996C44.9984%2011.2996%2045.0984%2011.0996%2045.0984%2010.7996C45.0984%2010.4996%2045.0984%2010.2996%2044.7984%2010.0996ZM40.5984%2012.1996L41.1984%2010.6996L41.7984%2012.1996H40.5984ZM40.5984%209.69961L38.7984%2013.7996H39.9984L40.2984%2012.9996H42.0984L42.3984%2013.7996H43.5984L41.7984%209.69961H40.4984H40.5984ZM23.6984%2011.3996H21.8984V10.5996H23.6984C23.8984%2010.5996%2024.0984%2010.7996%2024.0984%2010.9996C24.0984%2011.1996%2023.8984%2011.3996%2023.6984%2011.3996ZM25.2984%2010.8996C25.2984%2010.1996%2024.6984%209.69961%2023.9984%209.69961H20.7984V13.7996H21.8984V12.2996H22.8984L23.9984%2013.7996H25.3984L24.1984%2012.1996C24.7984%2012.0996%2025.1984%2011.5996%2025.1984%2010.9996L25.2984%2010.8996ZM17.7984%2012.9996C16.9984%2012.9996%2016.5984%2012.3996%2016.5984%2011.6996C16.5984%2010.9996%2016.9984%2010.3996%2017.7984%2010.3996C18.5984%2010.3996%2018.9984%2010.9996%2018.9984%2011.6996C18.9984%2012.3996%2018.5984%2012.9996%2017.7984%2012.9996ZM17.7984%209.59961C16.3984%209.59961%2015.2984%2010.0996%2015.2984%2011.6996C15.2984%2013.2996%2016.2984%2013.7996%2017.7984%2013.7996C19.2984%2013.7996%2020.2984%2013.0996%2020.2984%2011.6996C20.2984%2010.2996%2019.2984%209.59961%2017.7984%209.59961ZM37.5984%2012.0996C37.5984%2012.4996%2037.1984%2012.9996%2036.3984%2012.9996C35.5984%2012.9996%2035.1984%2012.3996%2035.1984%2011.6996C35.1984%2010.9996%2035.5984%2010.3996%2036.3984%2010.3996C37.3984%2010.3996%2037.4984%2011.1996%2037.4984%2011.1996L38.6984%2010.7996C38.4984%2010.0996%2037.6984%209.59961%2036.3984%209.59961C34.9984%209.59961%2033.8984%2010.0996%2033.8984%2011.6996C33.8984%2013.2996%2034.8984%2013.7996%2036.3984%2013.7996C37.6984%2013.7996%2038.5984%2013.2996%2038.7984%2012.3996L37.4984%2012.0996H37.5984ZM28.5984%2011.9996L27.6984%209.69961H25.9984V13.7996H27.0984V10.6996L28.2984%2013.7996H28.9984L30.1984%2010.6996V13.7996H31.2984V9.69961H29.5984L28.6984%2011.9996H28.5984ZM32.1984%2013.7996H33.2984V9.69961H32.1984V13.7996ZM10.9984%2013.7996H12.0984V12.2996H14.4984V11.3996H12.0984V10.5996H14.8984V9.69961H10.8984V13.7996H10.9984Z'%20fill='black'/%3e%3c/svg%3e`,ye=`data:image/svg+xml,%3csvg%20width='75'%20height='16'%20viewBox='0%200%2075%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M53.6992%2015.8996H57.5992L69.0992%200.0996094H65.2992L53.6992%2015.8996Z'%20fill='white'/%3e%3cpath%20d='M61.3992%205.29961L57.5992%200.0996094H53.6992L57.5992%205.29961H61.3992Z'%20fill='white'/%3e%3cpath%20d='M61.3984%2010.5996L65.2984%2015.8996H69.0984L65.2984%2010.5996H61.3984Z'%20fill='white'/%3e%3cpath%20d='M0%2015.8996H2.7V9.29961H9.5V6.79961H2.7V2.59961H9.5V0.0996094H0V15.8996Z'%20fill='white'/%3e%3cpath%20d='M14.3008%2015.8996H24.1008V13.2996H17.0008V8.99961H24.1008V6.49961H17.0008V2.59961H24.1008V0.0996094H14.3008V15.8996Z'%20fill='white'/%3e%3cpath%20d='M50.2%200.0996094H47.5V15.8996H50.2V0.0996094Z'%20fill='white'/%3e%3cpath%20d='M39.9008%2011.5996L32.5008%200.0996094H28.8008V15.8996H31.6008V4.19961L39.2008%2015.8996H42.7008V0.0996094H39.9008V11.5996Z'%20fill='white'/%3e%3cpath%20d='M72.7%201.9H72.9C73.1%201.9%2073.3%201.9%2073.3%201.6C73.3%201.3%2073.2%201.3%2072.9%201.3C72.6%201.3%2072.7%201.3%2072.7%201.3V1.9ZM72.7%203H72.3V1C72.5%201%2072.7%201%2073%201C73.3%201%2073.5%201%2073.7%201.1C73.8%201.1%2073.9%201.3%2073.9%201.5C73.9%201.7%2073.7%201.9%2073.5%202C73.7%202%2073.8%202.2%2073.8%202.5C73.8%202.8%2073.8%202.9%2073.9%203H73.4C73.4%203%2073.4%202.7%2073.2%202.5C73.2%202.3%2073.1%202.2%2072.8%202.2H72.6V3H72.7ZM71.5%202C71.5%202.9%2072.1%203.6%2073%203.6C73.9%203.6%2074.4%202.9%2074.4%202C74.4%201.1%2073.8%200.4%2072.9%200.4C72%200.4%2071.4%201.1%2071.4%202M74.9%202C74.9%203.1%2074.1%204%2073%204C71.9%204%2071%203.1%2071%202C71%200.9%2071.9%200%2073%200C74.1%200%2074.9%200.9%2074.9%202Z'%20fill='white'/%3e%3c/svg%3e`,be=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%202048%20585'%20width='2048'%20height='585'%20role='img'%20aria-label='Vectorized%20ARPA%20wordmark'%3e%3cpath%20d='M%20618.0%200.0%20L%20700.0%2073.0%20L%20699.0%2074.0%20L%20617.0%2074.0%20L%20617.0%20218.0%20L%20698.0%20289.0%20L%20700.0%20292.0%20L%20699.0%20293.0%20L%20617.0%20293.0%20L%20617.0%20584.0%20L%20701.0%20584.0%20L%20701.0%20368.0%20L%20702.0%20367.0%20L%20848.0%20367.0%20L%20854.0%20376.0%20L%20863.0%20394.0%20L%20868.0%20401.0%20L%20970.0%20584.0%20L%201064.0%20584.0%20L%20935.0%20353.0%20L%20936.0%20351.0%20L%20950.0%20346.0%20L%20973.0%20333.0%20L%20986.0%20323.0%20L%201004.0%20305.0%20L%201017.0%20287.0%20L%201027.0%20268.0%20L%201037.0%20238.0%20L%201037.0%20234.0%20L%201040.0%20224.0%20L%201040.0%20218.0%20L%201042.0%20210.0%20L%201042.0%20198.0%20L%201043.0%20197.0%20L%201043.0%20173.0%20L%201042.0%20172.0%20L%201042.0%20163.0%20L%201041.0%20162.0%20L%201040.0%20151.0%20L%201033.0%20126.0%20L%201025.0%20107.0%20L%201017.0%2092.0%20L%201004.0%2073.0%20L%20995.0%2062.0%20L%20980.0%2047.0%20L%20958.0%2030.0%20L%20928.0%2014.0%20L%20897.0%204.0%20L%20879.0%202.0%20L%20878.0%201.0%20L%20870.0%201.0%20L%20869.0%200.0%20Z%20M%201451.0%2017.0%20L%201429.0%209.0%20L%201410.0%204.0%20L%201389.0%202.0%20L%201388.0%201.0%20L%201379.0%201.0%20L%201378.0%200.0%20L%201120.0%200.0%20L%201202.0%2073.0%20L%201201.0%2074.0%20L%201120.0%2074.0%20L%201120.0%20219.0%20L%201202.0%20292.0%20L%201201.0%20293.0%20L%201120.0%20293.0%20L%201119.0%20294.0%20L%201119.0%20584.0%20L%201203.0%20584.0%20L%201203.0%20367.0%20L%201204.0%20366.0%20L%201378.0%20366.0%20L%201379.0%20365.0%20L%201389.0%20365.0%20L%201390.0%20364.0%20L%201403.0%20363.0%20L%201423.0%20359.0%20L%201454.0%20348.0%20L%201466.0%20342.0%20L%201483.0%20331.0%20L%201492.0%20324.0%20L%201507.0%20309.0%20L%201523.0%20287.0%20L%201531.0%20272.0%20L%201537.0%20257.0%20L%201537.0%20254.0%20L%201543.0%20236.0%20L%201546.0%20213.0%20L%201547.0%20212.0%20L%201548.0%20168.0%20L%201547.0%20167.0%20L%201546.0%20149.0%20L%201541.0%20124.0%20L%201530.0%2094.0%20L%201522.0%2079.0%20L%201511.0%2063.0%20L%201492.0%2043.0%20L%201482.0%2035.0%20L%201465.0%2024.0%20Z%20M%20246.0%200.0%20L%20147.0%20233.0%20L%20212.0%20290.0%20L%20213.0%20292.0%20L%20212.0%20293.0%20L%20123.0%20293.0%20L%2095.0%20360.0%20L%2089.0%20372.0%20L%2087.0%20379.0%20L%2084.0%20384.0%20L%2080.0%20396.0%20L%2076.0%20403.0%20L%2069.0%20422.0%20L%2050.0%20465.0%20L%2048.0%20472.0%20L%2044.0%20479.0%20L%2035.0%20503.0%20L%2031.0%20510.0%20L%2022.0%20534.0%20L%2018.0%20541.0%20L%209.0%20565.0%20L%200.0%20584.0%20L%2092.0%20584.0%20L%20109.0%20541.0%20L%20117.0%20524.0%20L%20120.0%20514.0%20L%20124.0%20507.0%20L%20127.0%20497.0%20L%20131.0%20490.0%20L%20134.0%20480.0%20L%20138.0%20473.0%20L%20141.0%20463.0%20L%20163.0%20412.0%20L%20166.0%20402.0%20L%20177.0%20378.0%20L%20178.0%20373.0%20L%20182.0%20367.0%20L%20381.0%20367.0%20L%20386.0%20376.0%20L%20390.0%20388.0%20L%20400.0%20410.0%20L%20401.0%20415.0%20L%20404.0%20420.0%20L%20408.0%20432.0%20L%20411.0%20437.0%20L%20415.0%20449.0%20L%20418.0%20454.0%20L%20422.0%20466.0%20L%20425.0%20471.0%20L%20429.0%20483.0%20L%20432.0%20488.0%20L%20440.0%20510.0%20L%20443.0%20515.0%20L%20447.0%20527.0%20L%20450.0%20532.0%20L%20471.0%20584.0%20L%20562.0%20584.0%20L%20316.0%200.0%20Z%20M%201729.0%200.0%20L%201631.0%20232.0%20L%201632.0%20235.0%20L%201692.0%20287.0%20L%201696.0%20292.0%20L%201695.0%20293.0%20L%201606.0%20293.0%20L%201484.0%20584.0%20L%201575.0%20584.0%20L%201618.0%20479.0%20L%201621.0%20474.0%20L%201622.0%20469.0%20L%201626.0%20462.0%20L%201629.0%20452.0%20L%201653.0%20396.0%20L%201654.0%20391.0%20L%201660.0%20379.0%20L%201661.0%20374.0%20L%201665.0%20367.0%20L%201865.0%20367.0%20L%201867.0%20369.0%20L%201870.0%20379.0%20L%201874.0%20386.0%20L%201884.0%20413.0%20L%201892.0%20430.0%20L%201955.0%20584.0%20L%202046.0%20584.0%20L%201800.0%200.0%20Z%20M%201203.0%2075.0%20L%201204.0%2074.0%20L%201367.0%2074.0%20L%201368.0%2075.0%20L%201380.0%2076.0%20L%201395.0%2081.0%20L%201398.0%2081.0%20L%201413.0%2088.0%20L%201422.0%2094.0%20L%201434.0%20104.0%20L%201447.0%20120.0%20L%201458.0%20143.0%20L%201463.0%20165.0%20L%201464.0%20196.0%20L%201463.0%20197.0%20L%201462.0%20211.0%20L%201458.0%20227.0%20L%201454.0%20237.0%20L%201446.0%20251.0%20L%201435.0%20264.0%20L%201420.0%20276.0%20L%201402.0%20285.0%20L%201381.0%20291.0%20L%201368.0%20292.0%20L%201367.0%20293.0%20L%201204.0%20293.0%20L%201203.0%20292.0%20Z%20M%20700.0%2075.0%20L%20701.0%2074.0%20L%20862.0%2074.0%20L%20863.0%2075.0%20L%20870.0%2075.0%20L%20880.0%2077.0%20L%20896.0%2082.0%20L%20917.0%2093.0%20L%20937.0%20112.0%20L%20944.0%20122.0%20L%20952.0%20139.0%20L%20958.0%20164.0%20L%20959.0%20191.0%20L%20958.0%20192.0%20L%20958.0%20202.0%20L%20957.0%20203.0%20L%20956.0%20213.0%20L%20951.0%20230.0%20L%20946.0%20239.0%20L%20946.0%20241.0%20L%20939.0%20252.0%20L%20924.0%20268.0%20L%20913.0%20276.0%20L%20897.0%20284.0%20L%20877.0%20290.0%20L%20865.0%20291.0%20L%20864.0%20292.0%20L%20853.0%20292.0%20L%20852.0%20293.0%20L%20702.0%20293.0%20L%20700.0%20291.0%20Z%20M%201764.0%20131.0%20L%201766.0%20132.0%20L%201794.0%20201.0%20L%201821.0%20264.0%20L%201825.0%20276.0%20L%201829.0%20283.0%20L%201830.0%20288.0%20L%201832.0%20291.0%20L%201830.0%20293.0%20L%201699.0%20293.0%20L%201697.0%20291.0%20Z%20M%20281.0%20130.0%20L%20308.0%20193.0%20L%20317.0%20217.0%20L%20320.0%20222.0%20L%20324.0%20234.0%20L%20328.0%20241.0%20L%20344.0%20282.0%20L%20348.0%20290.0%20L%20347.0%20293.0%20L%20215.0%20293.0%20L%20214.0%20292.0%20L%20220.0%20275.0%20L%20230.0%20253.0%20L%20231.0%20248.0%20L%20235.0%20241.0%20L%20272.0%20149.0%20Z'%20fill='%23FFFFFF'%20fill-rule='evenodd'/%3e%3c/svg%3e`,xe=`data:image/svg+xml,%3csvg%20width='73'%20height='18'%20viewBox='0%200%2073%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.0015%200H27.6016V17.3H28.0015V0Z'%20fill='white'/%3e%3cpath%20d='M32.1016%200H33.8016V2.5H36.2015V0H37.9016V6.7H36.2015V3.9H33.8016V6.7H32.1016V0Z'%20fill='white'/%3e%3cpath%20d='M38.3984%205.40078C38.3984%204.30078%2039.1984%204.00078%2040.1984%203.90078C41.0984%203.80078%2041.3984%203.70078%2041.3984%203.40078C41.3984%203.10078%2041.1984%202.90078%2040.6984%202.90078C40.1984%202.90078%2039.9984%203.10078%2039.8984%203.50078H38.4984C38.4984%202.60078%2039.1984%201.80078%2040.6984%201.80078C42.1984%201.80078%2041.8985%201.90078%2042.2985%202.20078C42.6985%202.50078%2042.8984%203.00078%2042.8984%203.60078V6.00078C42.8984%206.40078%2042.8984%206.60078%2043.0984%206.70078H41.5984C41.5984%206.60078%2041.4984%206.40078%2041.3984%206.20078C41.0984%206.60078%2040.6984%206.90078%2039.9984%206.90078C39.2984%206.90078%2038.3984%206.40078%2038.3984%205.40078ZM41.4984%205.00078V4.40078C41.2984%204.50078%2040.9984%204.60078%2040.6984%204.70078C40.0984%204.80078%2039.8984%205.00078%2039.8984%205.30078C39.8984%205.60078%2040.1984%205.80078%2040.5984%205.80078C41.1984%205.80078%2041.5984%205.50078%2041.5984%204.90078L41.4984%205.00078Z'%20fill='white'/%3e%3cpath%20d='M43.6992%201.90039H45.1992V2.70039C45.4992%202.10039%2045.8992%201.90039%2046.4992%201.90039C47.0992%201.90039%2046.6993%201.90039%2046.7993%201.90039V3.20039C45.8993%203.10039%2045.2993%203.50039%2045.2993%204.60039V6.80039H43.7993V2.00039L43.6992%201.90039Z'%20fill='white'/%3e%3cpath%20d='M47.7015%205.50039V2.90039H47.1016V1.90039H47.7015V0.400391H49.2015V1.90039H50.1016V2.90039H49.2015V5.20039C49.2015%205.60039%2049.4015%205.70039%2049.7015%205.70039C50.0015%205.70039%2050.0015%205.70039%2050.0015%205.70039V6.80039C49.9015%206.80039%2049.6015%206.80039%2049.2015%206.80039C48.3015%206.80039%2047.7015%206.50039%2047.7015%205.50039Z'%20fill='white'/%3e%3cpath%20d='M50.5%205.20078H51.9C51.9%205.70078%2052.3%205.90078%2052.8%205.90078C53.3%205.90078%2053.6%205.70078%2053.6%205.40078C53.6%205.10078%2053%204.90078%2052.4%204.80078C51.6%204.70078%2050.7%204.40078%2050.7%203.30078C50.7%202.20078%2051.6%201.80078%2052.8%201.80078C54%201.80078%2054.9%202.40078%2055%203.30078H53.6C53.6%202.90078%2053.3%202.70078%2052.8%202.70078C52.3%202.70078%2052.1%202.80078%2052.1%203.10078C52.1%203.40078%2052.6%203.50078%2053.3%203.60078C54.1%203.70078%2055.1%204.00078%2055.1%205.20078C55.1%206.40078%2054.2%206.80078%2052.9%206.80078C51.6%206.80078%2050.6%206.20078%2050.6%205.10078L50.5%205.20078Z'%20fill='white'/%3e%3cpath%20d='M55.3008%204.40039C55.3008%203.00039%2056.3008%201.90039%2057.9008%201.90039C59.5008%201.90039%2060.5007%203.00039%2060.5007%204.40039C60.5007%205.80039%2059.5008%206.90039%2057.9008%206.90039C56.3008%206.90039%2055.3008%205.80039%2055.3008%204.40039ZM58.9008%204.40039C58.9008%203.50039%2058.5008%202.90039%2057.9008%202.90039C57.3008%202.90039%2056.9008%203.50039%2056.9008%204.40039C56.9008%205.30039%2057.2008%205.90039%2057.9008%205.90039C58.6008%205.90039%2058.9008%205.30039%2058.9008%204.40039Z'%20fill='white'/%3e%3cpath%20d='M61%201.90078H62.5V2.60078C62.9%202.10078%2063.3%201.80078%2064%201.80078C65.1%201.80078%2065.7%202.60078%2065.7%203.60078V6.70078H64.2V3.90078C64.2%203.40078%2063.9%203.00078%2063.4%203.00078C62.9%203.00078%2062.6%203.40078%2062.6%204.00078V6.70078H61.1V1.90078H61Z'%20fill='white'/%3e%3cpath%20d='M32.1016%209H33.8016V11.4L36.1016%209H38.1016L35.5015%2011.7L38.2015%2015.7H36.3016L34.4016%2012.8L33.8016%2013.4V15.7H32.1016V9Z'%20fill='white'/%3e%3cpath%20d='M37.7993%2013.3008C37.7993%2011.9008%2038.7993%2010.8008%2040.2993%2010.8008C41.7993%2010.8008%2041.4992%2011.0008%2041.8992%2011.4008C42.4992%2011.9008%2042.7992%2012.8008%2042.6992%2013.7008H39.1992C39.1992%2014.3008%2039.6993%2014.8008%2040.2993%2014.8008C40.8993%2014.8008%2040.9992%2014.6008%2041.0992%2014.3008H42.5992C42.4992%2014.7008%2042.1993%2015.1008%2041.7993%2015.4008C41.3993%2015.7008%2040.8993%2015.8008%2040.2993%2015.8008C38.6993%2015.8008%2037.6992%2014.7008%2037.6992%2013.2008L37.7993%2013.3008ZM41.2993%2012.8008C41.2993%2012.2008%2040.8992%2011.9008%2040.3992%2011.9008C39.8992%2011.9008%2039.4992%2012.3008%2039.3992%2012.8008H41.2993Z'%20fill='white'/%3e%3cpath%20d='M43.3008%2010.9008H44.8008V11.6008C45.2008%2011.1008%2045.6008%2010.8008%2046.3008%2010.8008C47.4008%2010.8008%2048.0007%2011.6008%2048.0007%2012.6008V15.7008H46.5007V12.9008C46.5007%2012.4008%2046.2007%2012.0008%2045.7007%2012.0008C45.2007%2012.0008%2044.9008%2012.4008%2044.9008%2013.0008V15.7008H43.4008V10.9008H43.3008Z'%20fill='white'/%3e%3cpath%20d='M48.6992%2010.9008H50.1992V11.6008C50.5992%2011.1008%2050.9992%2010.8008%2051.6992%2010.8008C52.7992%2010.8008%2053.3992%2011.6008%2053.3992%2012.6008V15.7008H51.8992V12.9008C51.8992%2012.4008%2051.5992%2012.0008%2051.0992%2012.0008C50.5992%2012.0008%2050.2993%2012.4008%2050.2993%2013.0008V15.7008H48.7993V10.9008H48.6992Z'%20fill='white'/%3e%3cpath%20d='M53.7993%2013.3008C53.7993%2011.9008%2054.7993%2010.8008%2056.2993%2010.8008C57.7993%2010.8008%2057.4992%2011.0008%2057.8992%2011.4008C58.4992%2011.9008%2058.7992%2012.8008%2058.6992%2013.7008H55.1992C55.1992%2014.3008%2055.6993%2014.8008%2056.2993%2014.8008C56.8993%2014.8008%2056.9992%2014.6008%2057.0992%2014.3008H58.5992C58.4992%2014.7008%2058.1993%2015.1008%2057.7993%2015.4008C57.3993%2015.7008%2056.8993%2015.8008%2056.2993%2015.8008C54.6993%2015.8008%2053.6992%2014.7008%2053.6992%2013.2008L53.7993%2013.3008ZM57.1992%2012.8008C57.1992%2012.2008%2056.7993%2011.9008%2056.2993%2011.9008C55.7993%2011.9008%2055.3993%2012.3008%2055.2993%2012.8008H57.1992Z'%20fill='white'/%3e%3cpath%20d='M59.1%2013.3C59.1%2011.8%2060%2010.8%2061.2%2010.8C62.4%2010.8%2062.3%2011.1%2062.5%2011.5V9H64V15.7H62.5V15.1C62.2%2015.6%2061.7%2015.9%2061.1%2015.9C59.9%2015.9%2059%2015%2059%2013.3H59.1ZM62.6%2013.3C62.6%2012.5%2062.3%2011.9%2061.6%2011.9C60.9%2011.9%2060.6%2012.5%2060.6%2013.3C60.6%2014.1%2061%2014.7%2061.5%2014.7C62%2014.7%2062.5%2014.1%2062.5%2013.4L62.6%2013.3Z'%20fill='white'/%3e%3cpath%20d='M64.9984%2016.1004H65.4984C65.9984%2016.1004%2066.0984%2015.9004%2066.0984%2015.6004C66.0984%2015.3004%2066.0985%2015.1004%2065.7985%2014.6004L64.3984%2010.9004H65.9984L66.5984%2012.9004C66.7984%2013.4004%2066.8984%2014.0004%2066.8984%2014.0004C66.8984%2014.0004%2066.9984%2013.4004%2067.1984%2012.9004L67.7985%2010.9004H69.2985L67.5984%2015.8004C67.1984%2016.9004%2066.7985%2017.3004%2065.7985%2017.3004H64.7985V16.1004H64.9984Z'%20fill='white'/%3e%3cpath%20d='M11.9%206.2C11.6%205.7%2011.2%205.4%2010.7%205.1C10.2%204.8%209.50004%204.6%208.60004%204.6C7.70004%204.6%206.90001%204.8%206.20001%205.1C5.50001%205.5%204.9%206%204.5%206.7V0H0V17.3H4.5V10.3C4.6%2010%204.80002%209.8%204.90002%209.6C5.10002%209.4%205.3%209.2%205.5%209C5.7%208.8%205.90004%208.7%206.10004%208.6C6.30004%208.6%206.50004%208.5%206.60004%208.5C7.00004%208.5%207.40004%208.6%207.60004%208.9C7.90004%209.2%208%209.6%208%2010.2V17.2H12.5V9C12.5%208.5%2012.5%208.1%2012.4%207.5C12.4%207%2012.1%206.5%2011.9%206V6.2Z'%20fill='white'/%3e%3cpath%20d='M23.3984%204.4H18.6984L14.8984%209.5V0H10.3984V4.4C10.5984%204.4%2010.7984%204.5%2010.9984%204.6C11.5984%205%2012.0984%205.4%2012.3984%205.9C12.6984%206.4%2012.8984%207%2012.9984%207.6C12.9984%208.1%2013.0984%208.7%2013.0984%209.2V17.4H14.8984V13.8L15.7985%2012.8L18.5984%2017.4H23.3984L18.6984%2010.4L23.3984%204.4Z'%20fill='white'/%3e%3cpath%20d='M70.0015%2014.7H69.6016V14.5H70.7015V14.7H70.3016V15.9H70.1016V14.7H70.0015ZM70.9016%2014.5H71.2015L71.6016%2015.6L72.0015%2014.5H72.3016V15.9H72.1016V14.7L71.6016%2015.9H71.5015L71.0015%2014.7V15.9H70.8016V14.5H70.9016Z'%20fill='white'/%3e%3c/svg%3e`,Se=`data:image/svg+xml,%3csvg%20width='71'%20height='20'%20viewBox='0%200%2071%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M29.4%208.90039H26.9V6.40039H25.5V12.8004H26.9V10.1004H29.4V12.8004H30.8V6.40039H29.4V8.90039Z'%20fill='white'/%3e%3cpath%20d='M35.1008%206.30078C33.2008%206.30078%2031.8008%207.60078%2031.8008%209.60078C31.8008%2011.6008%2033.1008%2012.9008%2035.1008%2012.9008C37.1008%2012.9008%2038.4008%2011.6008%2038.4008%209.60078C38.4008%207.60078%2037.0008%206.30078%2035.1008%206.30078ZM35.1008%2011.7008C33.9008%2011.7008%2033.2008%2010.9008%2033.2008%209.60078C33.2008%208.30078%2033.9008%207.50078%2035.1008%207.50078C36.3008%207.50078%2037.0008%208.30078%2037.0008%209.60078C37.0008%2010.9008%2036.3008%2011.7008%2035.1008%2011.7008Z'%20fill='white'/%3e%3cpath%20d='M42.8984%2010.7004L40.5984%206.40039H39.3984V12.8004H40.6984V9.40039L42.4984%2012.7004H43.3984L45.0984%209.40039V12.8004H46.3984V6.40039H45.1984L42.8984%2010.7004Z'%20fill='white'/%3e%3cpath%20d='M49.8016%206.40039L47.1016%2012.8004H48.6016L49.1016%2011.6004H51.7016L52.2016%2012.8004H53.7016L51.0016%206.40039H49.8016ZM49.6016%2010.5004L50.4016%208.50039L51.2016%2010.5004H49.5016H49.6016Z'%20fill='white'/%3e%3cpath%20d='M57.1984%206.40078H54.3984V12.8008H55.7984V10.5008H57.1984C58.4984%2010.5008%2059.2984%209.70078%2059.2984%208.40078C59.2984%207.10078%2058.4984%206.30078%2057.1984%206.30078V6.40078ZM56.9984%209.30078H55.6984V7.60078H56.9984C57.4984%207.60078%2057.8984%207.90078%2057.8984%208.50078C57.8984%209.00078%2057.5984%209.40078%2056.9984%209.40078V9.30078Z'%20fill='white'/%3e%3cpath%20d='M61.5008%206.40039L58.8008%2012.8004H60.3008L60.8008%2011.6004H63.4008L63.9008%2012.8004H65.4008L62.7008%206.40039H61.5008ZM61.2008%2010.5004L62.0008%208.50039L62.8008%2010.5004H61.1008H61.2008Z'%20fill='white'/%3e%3cpath%20d='M67.5016%2011.6004V6.40039H66.1016V12.8004H70.2016V11.6004H67.5016Z'%20fill='white'/%3e%3cpath%20d='M6.39999%200H0V19.2H6.39999V12.8L9.59999%209.6L6.39999%206.4V0Z'%20fill='white'/%3e%3cpath%20d='M12.8016%206.4L9.60156%209.6L12.8016%2012.8V19.2H19.2016V0H12.8016V6.4Z'%20fill='white'/%3e%3c/svg%3e`,Ce=`data:image/svg+xml,%3csvg%20width='44'%20height='28'%20viewBox='0%200%2044%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M29.6154%200.080189H29.9231V16.7594H29.6154V0.080189ZM22%2016.8396H22.3077V0.160378H22V16.8396ZM14.3846%200.080189H14.6923V16.7594H14.5385C14.5385%2016.7594%2013.2308%2016.8396%2012.9231%2016.5991C12.7692%2016.5189%2012.5384%2016.1981%2012.3846%2015.5566L11.9231%2013.7925C11.7692%2013.2311%2011.3077%2012.75%2010.9231%2012.75H10V15.7972C10%2016.3585%2010.7692%2016.4387%2010.7692%2016.4387V16.7594C10.7692%2016.7594%209.92307%2016.7594%209.46153%2016.7594C8.99999%2016.7594%208.15383%2016.7594%208.15383%2016.7594V16.4387C8.15383%2016.4387%208.84616%2016.4387%208.84616%2015.7972V9.2217C8.84616%209.06132%208.76922%208.90094%208.61537%208.82075L8.15383%208.66038V8.25943C8.15383%208.25943%209.69229%208.25943%2010.0769%208.25943H11.5385C12.8462%208.25943%2013.3846%209.30189%2013.3846%2010.3443C13.3846%2011.3868%2012.3846%2012.2689%2011.6923%2012.5896C12.5385%2012.8302%2012.8461%2013.4717%2013.1538%2014.1934L13.5384%2015.4764C13.5384%2015.717%2013.6923%2015.8774%2013.7692%2016.0377C13.8462%2016.1981%2014.1538%2016.3585%2014.3846%2016.3585V0V0.080189ZM12.2308%2010.4245C12.2308%209.54245%2011.6154%208.82075%2011.0769%208.82075H10.3846C10.1538%208.82075%209.92308%209.06132%209.92308%209.30189V12.4292H10.8461C11.0769%2012.4292%2012.2308%2012.2689%2012.2308%2010.4245ZM6.76922%2016.8396H7.07691V0.160378H6.76922V16.8396ZM27.7692%2012.5896C27%2012.1085%2026.2308%2011.7075%2025.3846%2011.2264C25.0769%2011.066%2024.6154%2010.5849%2024.6154%2010.0236C24.6154%209.14151%2025.4615%208.66038%2026.0769%208.66038C27.0769%208.66038%2027.6923%209.54245%2027.6923%2010.5849H28.2308V8.5C27.3077%208.25943%2026.4615%208.17924%2026.0769%208.17924C24.6923%208.17924%2023.6154%208.82075%2023.6154%2010.5047C23.6154%2012.1887%2023.8461%2011.6274%2024.3077%2012.1085C24.9231%2012.75%2026.0769%2012.9906%2027%2013.7123C27.6154%2014.1934%2027.6923%2014.8349%2027.6923%2014.9953C27.6923%2015.5566%2027.3077%2016.4387%2026%2016.4387C24.6923%2016.4387%2024.0769%2015.9575%2024.0769%2014.1132H23.4615V16.1981C23.4615%2016.1981%2024.6923%2016.9198%2026%2016.9198C27.3077%2016.9198%2028.6923%2016.1981%2028.6923%2014.5943C28.6923%2012.9906%2028.0769%2012.8302%2027.6923%2012.5094L27.7692%2012.5896ZM43.9231%2016.8396C43.9231%2016.8396%2043.2308%2016.8396%2042.6923%2016.8396C42.1539%2016.8396%2041.4615%2016.8396%2041.4615%2016.8396V16.5189C41.6923%2016.5189%2042.2308%2016.2783%2042.0769%2015.8774L41.4615%2013.7123H39.3846L38.6923%2015.8774C38.6154%2016.1179%2038.8461%2016.5189%2039.3077%2016.5189V16.8396C39.3077%2016.8396%2038.7692%2016.8396%2038.3077%2016.8396C37.8462%2016.8396%2037.7692%2016.8396%2037.6154%2016.8396H37.3846V0.160378H37.6923V16.4387C38.1539%2016.1179%2038.3846%2015.5566%2038.4616%2015.2358L40.6923%208.25943H41.0769L43.3077%2016.0377C43.4615%2016.4387%2043.6154%2016.5189%2044%2016.6792V17L43.9231%2016.8396ZM41.3077%2013.1509L40.4615%2010.2642L39.5385%2013.1509H41.3077ZM0.153832%208.25943L0%2010.5047H0.46152C0.46152%2010.184%200.461534%209.86321%200.692303%209.54245C0.692303%209.38208%200.769217%209.30189%200.923063%209.2217C1.07691%209.06132%201.23076%208.90094%201.46153%208.90094C1.84615%208.82075%202.23077%208.74057%202.61538%208.74057V15.8774C2.61538%2016.1981%202.23076%2016.4387%201.76922%2016.4387V16.8396C2.07691%2016.8396%202.69229%2016.7594%203.15383%2016.7594C3.61537%2016.7594%204.15384%2016.7594%204.53846%2016.8396V16.4387C4.15384%2016.4387%203.6923%2016.1981%203.6923%2015.8774V8.74057C4.07691%208.74057%204.46153%208.74057%204.84615%208.90094C5.07692%208.90094%205.23077%209.06132%205.38462%209.2217C5.46154%209.30189%205.53845%209.46227%205.61538%209.54245C5.76922%209.86321%205.76921%2010.184%205.84614%2010.5047H6.30768L6.15385%208.25943H0.23076H0.153832ZM19.3077%2016.3585H18.4615C18.0769%2016.3585%2017.8461%2016.2783%2017.8461%2015.8774V12.6698H18.7692C19.4615%2012.6698%2019.6154%2012.9906%2019.6154%2013.8726H20.0769C20.0769%2013.8726%2020.0769%2012.75%2020.0769%2012.4292C20.0769%2012.1085%2020.0769%2010.9858%2020.0769%2010.9858H19.6154C19.6154%2011.8679%2019.5385%2012.1887%2018.7692%2012.1887H17.8461V9.38208C17.8461%208.98113%2018.2308%208.90094%2018.4615%208.90094H19.0769C19.3846%208.90094%2020.4615%208.98113%2020.4615%2010.3443H20.8461V8.33962C20.7692%208.33962%2018.9231%208.33962%2018.5384%208.33962C18.1538%208.33962%2016.0769%208.33962%2016.0769%208.33962V8.74057L16.5385%208.90094C16.6923%208.90094%2016.7692%209.14151%2016.7692%209.30189V15.9575C16.7692%2016.5189%2016.0769%2016.5991%2016.0769%2016.5991V16.9198C16.0769%2016.9198%2018.1538%2016.9198%2018.6154%2016.9198C19.0769%2016.9198%2021.1539%2016.9198%2021.1539%2016.9198L21.4615%2014.5943H21.0769C21%2015.717%2020.3077%2016.4387%2019.5385%2016.4387L19.3077%2016.3585ZM36.6154%2010.9057C36.6154%2012.75%2035.0769%2013.3915%2034.3077%2013.3915C33.5385%2013.3915%2033.0769%2013.3915%2032.9231%2013.3113V15.8774C32.9231%2016.4387%2033.6923%2016.5189%2033.6923%2016.5189V16.8396C33.6923%2016.8396%2032.8461%2016.8396%2032.3846%2016.8396C31.9231%2016.8396%2031.0769%2016.8396%2031.0769%2016.8396V16.5189C31.0769%2016.5189%2031.7692%2016.5189%2031.7692%2015.8774V9.2217C31.7692%209.06132%2031.6923%208.90094%2031.5385%208.82075L31.0769%208.66038V8.25943C31.0769%208.25943%2031.9231%208.25943%2032.1538%208.25943C32.3846%208.25943%2033.8462%208.25943%2033.8462%208.25943C34.9231%208.25943%2036.6154%208.25943%2036.6154%2010.9057ZM35.4615%2010.9057C35.4615%2010.5047%2035.2308%208.74057%2034.0769%208.74057H33.6923C33.3846%208.74057%2032.9231%208.90094%2032.9231%209.2217V12.8302C32.9231%2012.8302%2033.6154%2012.9906%2033.9231%2012.9906C34.2308%2012.9906%2035.4615%2012.8302%2035.4615%2010.9858V10.9057ZM41.9231%207.37736C41.9231%206.81604%2042.3846%206.41509%2042.8462%206.41509C43.3077%206.41509%2043.7692%206.89623%2043.7692%207.37736C43.7692%207.85849%2043.3077%208.33962%2042.8462%208.33962C42.3846%208.33962%2041.9231%207.85849%2041.9231%207.37736ZM42.0769%207.37736C42.0769%207.85849%2042.4615%208.17924%2042.8462%208.17924C43.2308%208.17924%2043.6154%207.7783%2043.6154%207.37736C43.6154%206.97642%2043.2308%206.57547%2042.8462%206.57547C42.4615%206.57547%2042.0769%206.97642%2042.0769%207.37736ZM42.7692%207.93868H42.6154V6.89623H42.8462C43%206.89623%2043.0769%206.89623%2043.2308%206.89623C43.3846%206.89623%2043.3846%207.0566%2043.3846%207.13679C43.3846%207.29717%2043.2308%207.45755%2043.0769%207.45755L43.5385%207.93868H43.3077L42.9231%207.45755V7.93868H42.7692ZM42.7692%207.29717C42.9231%207.29717%2043.1538%207.29717%2043.1538%207.13679C43.1538%206.97642%2042.9231%206.97642%2042.7692%206.97642V7.37736V7.29717Z'%20fill='white'/%3e%3cpath%20d='M10.2306%2027.845H8.91527V23.8215H7.83203V22.7383H11.3913V23.8215H10.2306V27.845Z'%20fill='white'/%3e%3cpath%20d='M12.6303%2025.2147C12.6303%2026.0658%2013.2493%2026.7622%2014.1004%2026.7622C14.9515%2026.7622%2015.5705%2026.1432%2015.5705%2025.2147C15.5705%2024.2862%2014.9515%2023.8993%2014.1004%2023.8993C13.2493%2023.8993%2012.6303%2024.5183%2012.6303%2025.2147ZM16.8858%2025.2147C16.8858%2026.8396%2015.7252%2028.0002%2014.023%2028.0002C12.3208%2028.0002%2011.1602%2026.8396%2011.1602%2025.2147C11.1602%2023.5899%2012.5529%2022.584%2014.023%2022.584C15.4931%2022.584%2016.8858%2023.6672%2016.8858%2025.2147Z'%20fill='white'/%3e%3cpath%20d='M18.663%2025.0595H18.8951C19.3594%2025.0595%2019.8236%2025.0595%2019.8236%2024.4405C19.8236%2023.8215%2019.3594%2023.8215%2018.8951%2023.8215H18.663V25.0595ZM17.3477%2022.7383H19.3594C20.4426%2022.7383%2021.2164%2023.2799%2021.2164%2024.4405C21.2164%2025.6011%2020.5974%2026.1428%2019.4368%2026.1428H18.663V27.845H17.3477V22.7383Z'%20fill='white'/%3e%3cpath%20d='M22.9208%2026.6844H24.5457V27.845H21.6055V22.7383H22.9208V26.6844Z'%20fill='white'/%3e%3cpath%20d='M27.255%2024.287L26.7133%2025.9118H27.7966L27.255%2024.287ZM26.3265%2026.9177L25.9396%2027.7688H24.5469L26.4812%2022.6621H27.9513L29.8857%2027.7688H28.4929L28.1835%2026.9177H26.3265Z'%20fill='white'/%3e%3cpath%20d='M31.4326%2026.8391H31.5873C31.9742%2026.8391%2032.6706%2026.8391%2032.6706%2026.2975C32.6706%2025.7559%2031.9742%2025.7559%2031.5873%2025.7559H31.4326V26.8391ZM31.4326%2024.75H31.5873C31.9742%2024.75%2032.2837%2024.75%2032.2837%2024.2858C32.2837%2023.8215%2031.8968%2023.8215%2031.5099%2023.8215H31.4326V24.8274V24.75ZM30.1172%2027.845V22.7383H32.0515C32.98%2022.7383%2033.599%2023.1252%2033.599%2024.0536C33.599%2024.9821%2033.4443%2024.9048%2033.0574%2025.0595C33.7538%2025.1369%2034.1407%2025.6785%2034.1407%2026.3749C34.1407%2027.4581%2033.2122%2027.7676%2032.2837%2027.7676H30.2719L30.1172%2027.845Z'%20fill='white'/%3e%3cpath%20d='M35.5317%2023.668C35.6865%2023.668%2035.6865%2023.668%2035.6865%2023.5132C35.6865%2023.3585%2035.5317%2023.4359%2035.4543%2023.4359H35.2222V23.7453H35.5317V23.668ZM35.9186%2024.287H35.6865L35.4543%2023.8227H35.2996V24.287H35.0675V23.2037H35.6091C35.8412%2023.2037%2036.0733%2023.2037%2036.0733%2023.5132C36.0733%2023.8227%2035.996%2023.8227%2035.7638%2023.8227L35.996%2024.287H35.9186ZM36.2281%2023.7453C36.2281%2023.2811%2035.8412%2022.9716%2035.4543%2022.9716C35.0675%2022.9716%2034.6806%2023.2811%2034.6806%2023.7453C34.6806%2024.2096%2034.9901%2024.5191%2035.4543%2024.5191C35.9186%2024.5191%2036.2281%2024.2096%2036.2281%2023.7453ZM34.3711%2023.7453C34.3711%2023.1264%2034.8353%2022.6621%2035.4543%2022.6621C36.0733%2022.6621%2036.5376%2023.1264%2036.5376%2023.7453C36.5376%2024.3643%2036.0733%2024.8286%2035.4543%2024.8286C34.8353%2024.8286%2034.3711%2024.3643%2034.3711%2023.7453Z'%20fill='white'/%3e%3cpath%20d='M10.2306%2027.845H8.91527V23.8215H7.83203V22.7383H11.3913V23.8215H10.2306V27.845Z'%20fill='white'/%3e%3cpath%20d='M12.6303%2025.2147C12.6303%2026.0658%2013.2493%2026.7622%2014.1004%2026.7622C14.9515%2026.7622%2015.5705%2026.1432%2015.5705%2025.2147C15.5705%2024.2862%2014.9515%2023.8993%2014.1004%2023.8993C13.2493%2023.8993%2012.6303%2024.5183%2012.6303%2025.2147ZM16.8858%2025.2147C16.8858%2026.8396%2015.7252%2028.0002%2014.023%2028.0002C12.3208%2028.0002%2011.1602%2026.8396%2011.1602%2025.2147C11.1602%2023.5899%2012.5529%2022.584%2014.023%2022.584C15.4931%2022.584%2016.8858%2023.6672%2016.8858%2025.2147Z'%20fill='white'/%3e%3cpath%20d='M18.663%2025.0595H18.8951C19.3594%2025.0595%2019.8236%2025.0595%2019.8236%2024.4405C19.8236%2023.8215%2019.3594%2023.8215%2018.8951%2023.8215H18.663V25.0595ZM17.3477%2022.7383H19.3594C20.4426%2022.7383%2021.2164%2023.2799%2021.2164%2024.4405C21.2164%2025.6011%2020.5974%2026.1428%2019.4368%2026.1428H18.663V27.845H17.3477V22.7383Z'%20fill='white'/%3e%3cpath%20d='M22.9208%2026.6844H24.5457V27.845H21.6055V22.7383H22.9208V26.6844Z'%20fill='white'/%3e%3cpath%20d='M27.255%2024.287L26.7133%2025.9118H27.7966L27.255%2024.287ZM26.3265%2026.9177L25.9396%2027.7688H24.5469L26.4812%2022.6621H27.9513L29.8857%2027.7688H28.4929L28.1835%2026.9177H26.3265Z'%20fill='white'/%3e%3cpath%20d='M31.4326%2026.8391H31.5873C31.9742%2026.8391%2032.6706%2026.8391%2032.6706%2026.2975C32.6706%2025.7559%2031.9742%2025.7559%2031.5873%2025.7559H31.4326V26.8391ZM31.4326%2024.75H31.5873C31.9742%2024.75%2032.2837%2024.75%2032.2837%2024.2858C32.2837%2023.8215%2031.8968%2023.8215%2031.5099%2023.8215H31.4326V24.8274V24.75ZM30.1172%2027.845V22.7383H32.0515C32.98%2022.7383%2033.599%2023.1252%2033.599%2024.0536C33.599%2024.9821%2033.4443%2024.9048%2033.0574%2025.0595C33.7538%2025.1369%2034.1407%2025.6785%2034.1407%2026.3749C34.1407%2027.4581%2033.2122%2027.7676%2032.2837%2027.7676H30.2719L30.1172%2027.845Z'%20fill='white'/%3e%3cpath%20d='M35.5317%2023.668C35.6865%2023.668%2035.6865%2023.668%2035.6865%2023.5132C35.6865%2023.3585%2035.5317%2023.4359%2035.4543%2023.4359H35.2222V23.7453H35.5317V23.668ZM35.9186%2024.287H35.6865L35.4543%2023.8227H35.2996V24.287H35.0675V23.2037H35.6091C35.8412%2023.2037%2036.0733%2023.2037%2036.0733%2023.5132C36.0733%2023.8227%2035.996%2023.8227%2035.7638%2023.8227L35.996%2024.287H35.9186ZM36.2281%2023.7453C36.2281%2023.2811%2035.8412%2022.9716%2035.4543%2022.9716C35.0675%2022.9716%2034.6806%2023.2811%2034.6806%2023.7453C34.6806%2024.2096%2034.9901%2024.5191%2035.4543%2024.5191C35.9186%2024.5191%2036.2281%2024.2096%2036.2281%2023.7453ZM34.3711%2023.7453C34.3711%2023.1264%2034.8353%2022.6621%2035.4543%2022.6621C36.0733%2022.6621%2036.5376%2023.1264%2036.5376%2023.7453C36.5376%2024.3643%2036.0733%2024.8286%2035.4543%2024.8286C34.8353%2024.8286%2034.3711%2024.3643%2034.3711%2023.7453Z'%20fill='white'/%3e%3c/svg%3e`,we=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20370%20110'%20width='370'%20height='110'%20role='img'%20aria-label='Broadview%20Materials%20logo'%3e%3cpath%20fill='%23FFFFFF'%20fill-rule='evenodd'%20d='M%20315.00%2017.28%20L%20313.00%2017.36%20L%20310.00%2016.25%20L%20307.92%2014.00%20L%20307.08%2011.00%20L%20307.48%207.00%20L%20308.63%205.00%20L%20310.00%203.79%20L%20313.00%202.69%20L%20315.00%202.80%20L%20318.00%204.39%20L%20319.38%206.00%20L%20320.07%209.00%20L%20319.98%2010.00%20L%20319.00%2010.55%20L%20310.00%2010.58%20L%20308.94%2011.00%20L%20310.00%2013.98%20L%20312.00%2015.43%20L%20316.00%2015.31%20L%20318.00%2013.23%20L%20319.00%2012.67%20L%20319.45%2013.00%20L%20319.56%2014.00%20L%20317.87%2016.00%20L%20315.00%2017.28%20Z%20M%20334.00%2017.25%20L%20332.00%2017.37%20L%20329.12%2016.00%20L%20328.08%2013.00%20L%20329.00%2011.03%20L%20331.00%209.63%20L%20337.00%208.98%20L%20337.42%207.00%20L%20336.06%205.00%20L%20335.00%204.54%20L%20332.00%204.81%20L%20330.64%206.00%20L%20330.00%207.59%20L%20329.00%207.69%20L%20328.48%207.00%20L%20328.60%206.00%20L%20330.26%204.00%20L%20334.00%202.68%20L%20337.00%203.56%20L%20338.47%205.00%20L%20339.28%207.00%20L%20339.44%2016.00%20L%20339.00%2016.68%20L%20338.00%2016.86%20L%20337.00%2015.60%20L%20334.00%2017.25%20Z%20M%20345.00%2016.44%20L%20344.00%2016.86%20L%20343.31%2016.00%20L%20343.31%204.00%20L%20344.00%203.18%20L%20346.00%204.14%20L%20348.00%202.95%20L%20349.00%203.19%20L%20349.38%204.00%20L%20349.00%204.45%20L%20347.00%205.31%20L%20345.44%207.00%20L%20345.00%2016.44%20Z%20M%20359.00%2017.01%20L%20356.00%2017.31%20L%20354.00%2016.56%20L%20351.89%2015.00%20L%20350.62%2013.00%20L%20350.63%207.00%20L%20353.08%204.00%20L%20356.00%202.72%20L%20358.00%202.73%20L%20360.79%204.00%20L%20362.52%206.00%20L%20363.31%208.00%20L%20363.00%2010.40%20L%20353.00%2010.57%20L%20352.38%2011.00%20L%20352.57%2013.00%20L%20355.00%2015.35%20L%20359.00%2015.40%20L%20362.00%2012.71%20L%20362.68%2013.00%20L%20362.26%2015.00%20L%20359.00%2017.01%20Z%20M%20301.00%2016.53%20L%20300.00%2016.86%20L%20299.26%2016.00%20L%20296.75%2010.00%20L%20296.42%208.00%20L%20296.00%207.33%20L%20295.00%207.20%20L%20292.22%2015.00%20L%20291.00%2016.86%20L%20290.00%2016.67%20L%20285.00%203.72%20L%20286.00%203.18%20L%20287.10%204.00%20L%20289.79%2012.00%20L%20291.00%2013.39%20L%20294.48%204.00%20L%20295.00%203.24%20L%20296.00%203.31%20L%20300.00%2013.44%20L%20301.41%2011.00%20L%20303.73%204.00%20L%20305.00%203.17%20L%20305.93%204.00%20L%20301.00%2016.53%20Z%20M%20318.02%209.00%20L%20318.35%208.00%20L%20317.37%206.00%20L%20315.00%204.52%20L%20311.25%205.00%20L%20308.94%208.00%20L%20309.28%209.00%20L%20310.00%209.28%20L%20318.02%209.00%20Z%20M%20361.25%209.00%20L%20361.18%207.00%20L%20359.00%204.67%20L%20355.00%204.64%20L%20352.57%207.00%20L%20352.59%209.00%20L%20353.00%209.28%20L%20361.25%209.00%20Z%20M%20335.47%2015.00%20L%20337.28%2013.00%20L%20337.00%2010.60%20L%20333.00%2010.72%20L%20331.00%2011.50%20L%20329.69%2013.00%20L%20329.84%2014.00%20L%20331.00%2015.35%20L%20334.00%2015.51%20L%20335.47%2015.00%20Z%20M%20101.00%2061.19%20L%2098.00%2061.34%20L%2094.00%2060.36%20L%2090.09%2058.00%20L%2086.74%2054.00%20L%2084.94%2048.00%20L%2084.89%2043.00%20L%2086.60%2037.00%20L%2088.61%2034.00%20L%2091.00%2031.73%20L%2096.00%2029.58%20L%20102.00%2029.53%20L%20107.00%2031.65%20L%20110.36%2035.00%20L%20112.30%2039.00%20L%20113.28%2043.00%20L%20113.27%2048.00%20L%20111.41%2054.00%20L%20108.00%2058.13%20L%20104.00%2060.38%20L%20101.00%2061.19%20Z%20M%20157.00%2060.42%20L%20150.00%2060.45%20L%20148.87%2060.00%20L%20149.11%2059.00%20L%20151.31%2058.00%20L%20149.45%2053.00%20L%20148.00%2050.76%20L%20136.00%2050.89%20L%20133.40%2057.00%20L%20133.43%2058.00%20L%20135.38%2059.00%20L%20135.50%2060.00%20L%20135.00%2060.44%20L%20129.00%2060.45%20L%20128.39%2060.00%20L%20128.54%2059.00%20L%20130.00%2058.47%20L%20131.38%2057.00%20L%20141.72%2031.00%20L%20143.00%2029.44%20L%20144.00%2030.00%20L%20145.40%2033.00%20L%20155.60%2057.00%20L%20157.62%2059.00%20L%20157.65%2060.00%20L%20157.00%2060.42%20Z%20M%2021.00%2060.12%20L%207.00%2060.45%20L%205.86%2060.00%20L%206.09%2059.00%20L%208.90%2058.00%20L%209.43%2056.00%20L%209.42%2034.00%20L%209.00%2032.73%20L%208.00%2031.76%20L%206.00%2031.40%20L%206.00%2030.62%20L%2022.00%2030.56%20L%2024.85%2032.00%20L%2026.36%2034.00%20L%2026.37%2038.00%20L%2025.40%2040.00%20L%2023.00%2042.30%20L%2021.30%2043.00%20L%2020.92%2044.00%20L%2024.00%2045.43%20L%2026.55%2048.00%20L%2027.44%2050.00%20L%2027.47%2054.00%20L%2025.00%2058.11%20L%2021.00%2060.12%20Z%20M%2069.00%2060.50%20L%2063.75%2060.00%20L%2057.27%2049.00%20L%2055.00%2046.40%20L%2052.00%2046.55%20L%2051.63%2047.00%20L%2051.70%2055.00%20L%2052.41%2058.00%20L%2055.00%2058.84%20L%2055.33%2060.00%20L%2054.00%2060.45%20L%2045.00%2060.45%20L%2044.40%2060.00%20L%2045.00%2058.67%20L%2047.43%2058.00%20L%2048.07%2055.00%20L%2047.95%2034.00%20L%2047.00%2032.03%20L%2044.35%2031.00%20L%2045.00%2030.35%20L%2060.00%2030.64%20L%2063.00%2031.72%20L%2064.35%2033.00%20L%2065.22%2037.00%20L%2064.13%2041.00%20L%2062.00%2043.34%20L%2059.00%2044.96%20L%2058.68%2046.00%20L%2061.45%2049.00%20L%2067.00%2057.66%20L%2069.96%2060.00%20L%2069.00%2060.50%20Z%20M%20102.43%2059.00%20L%20105.03%2057.00%20L%20107.45%2053.00%20L%20108.53%2048.00%20L%20108.38%2041.00%20L%20107.21%2037.00%20L%20105.40%2034.00%20L%20103.00%2031.81%20L%2099.00%2030.72%20L%2095.00%2031.96%20L%2092.73%2034.00%20L%2091.49%2036.00%20L%2089.79%2041.00%20L%2089.69%2049.00%20L%2091.63%2055.00%20L%2094.11%2058.00%20L%2097.00%2059.49%20L%20101.00%2059.50%20L%20102.43%2059.00%20Z%20M%20190.00%2060.24%20L%20174.00%2060.50%20L%20172.59%2060.00%20L%20173.00%2058.95%20L%20175.71%2058.00%20L%20176.33%2056.00%20L%20176.23%2033.00%20L%20175.00%2031.70%20L%20173.00%2031.37%20L%20173.00%2030.53%20L%20191.00%2030.83%20L%20195.99%2033.00%20L%20199.17%2036.00%20L%20200.26%2038.00%20L%20201.28%2043.00%20L%20201.11%2047.00%20L%20200.16%2051.00%20L%20199.28%2053.00%20L%20196.00%2057.25%20L%20193.00%2059.24%20L%20190.00%2060.24%20Z%20M%20230.00%2061.36%20L%20228.58%2060.00%20L%20217.53%2034.00%20L%20215.24%2031.00%20L%20216.00%2030.39%20L%20223.00%2030.38%20L%20224.33%2031.00%20L%20222.34%2032.00%20L%20221.71%2033.00%20L%20231.00%2054.29%20L%20233.30%2050.00%20L%20239.42%2035.00%20L%20239.94%2033.00%20L%20237.62%2031.00%20L%20239.00%2030.38%20L%20244.00%2030.38%20L%20245.06%2031.00%20L%20243.00%2032.34%20L%20241.64%2034.00%20L%20231.21%2060.00%20L%20230.00%2061.36%20Z%20M%20270.00%2060.43%20L%20260.00%2060.44%20L%20259.43%2060.00%20L%20260.00%2058.68%20L%20262.47%2058.00%20L%20263.13%2055.00%20L%20263.06%2034.00%20L%20262.00%2032.00%20L%20259.38%2031.00%20L%20260.00%2030.35%20L%20270.00%2030.38%20L%20270.59%2031.00%20L%20270.00%2031.66%20L%20268.00%2032.16%20L%20267.35%2033.00%20L%20266.75%2036.00%20L%20266.89%2057.00%20L%20268.00%2058.54%20L%20270.10%2059.00%20L%20270.50%2060.00%20L%20270.00%2060.43%20Z%20M%20307.00%2060.53%20L%20287.13%2060.00%20L%20287.00%2058.99%20L%20289.00%2058.48%20L%20290.45%2057.00%20L%20290.59%2035.00%20L%20290.00%2032.44%20L%20287.00%2030.83%20L%20288.00%2030.34%20L%20306.00%2030.40%20L%20306.71%2031.00%20L%20307.50%2035.00%20L%20307.00%2035.87%20L%20306.00%2035.75%20L%20305.00%2033.18%20L%20303.00%2031.97%20L%20295.00%2031.95%20L%20294.51%2033.00%20L%20294.52%2043.00%20L%20295.00%2043.59%20L%20302.00%2043.54%20L%20303.20%2043.00%20L%20304.00%2040.95%20L%20305.14%2041.00%20L%20305.48%2048.00%20L%20305.00%2048.61%20L%20304.00%2048.54%20L%20303.13%2046.00%20L%20302.00%2045.54%20L%20296.00%2045.48%20L%20294.66%2046.00%20L%20294.75%2056.00%20L%20297.00%2058.17%20L%20304.00%2058.43%20L%20306.00%2056.70%20L%20307.00%2054.24%20L%20308.00%2054.49%20L%20308.33%2055.00%20L%20307.00%2060.53%20Z%20M%20352.00%2061.26%20L%20350.60%2059.00%20L%20343.00%2037.81%20L%20341.75%2039.00%20L%20335.14%2061.00%20L%20333.87%2061.00%20L%20326.10%2035.00%20L%20325.20%2033.00%20L%20322.53%2031.00%20L%20323.00%2030.43%20L%20331.00%2030.38%20L%20332.44%2031.00%20L%20330.00%2032.38%20L%20329.61%2034.00%20L%20335.00%2053.22%20L%20336.00%2053.06%20L%20336.44%2052.00%20L%20336.66%2050.00%20L%20342.54%2031.00%20L%20343.00%2030.51%20L%20344.00%2030.84%20L%20351.70%2053.00%20L%20353.00%2053.46%20L%20358.52%2034.00%20L%20358.00%2032.38%20L%20355.72%2031.00%20L%20357.00%2030.40%20L%20363.00%2030.49%20L%20363.42%2031.00%20L%20361.95%2032.00%20L%20360.53%2034.00%20L%20353.22%2060.00%20L%20352.00%2061.26%20Z%20M%2018.59%2043.00%20L%2021.14%2041.00%20L%2022.32%2039.00%20L%2022.38%2035.00%20L%2020.00%2032.60%20L%2014.00%2031.79%20L%2013.38%2033.00%20L%2013.48%2043.00%20L%2014.00%2043.45%20L%2017.00%2043.46%20L%2018.59%2043.00%20Z%20M%2057.54%2044.00%20L%2060.35%2041.00%20L%2061.23%2038.00%20L%2061.19%2036.00%20L%2060.44%2034.00%20L%2059.00%2032.62%20L%2056.00%2031.64%20L%2053.00%2031.50%20L%2052.11%2032.00%20L%2051.91%2033.00%20L%2051.90%2044.00%20L%2053.00%2044.56%20L%2056.00%2044.62%20L%2057.54%2044.00%20Z%20M%20191.20%2058.00%20L%20194.40%2055.00%20L%20196.28%2051.00%20L%20196.84%2045.00%20L%20196.02%2040.00%20L%20194.00%2036.38%20L%20190.00%2032.89%20L%20185.00%2031.74%20L%20181.00%2031.66%20L%20180.24%2033.00%20L%20180.26%2055.00%20L%20180.68%2057.00%20L%20182.00%2058.14%20L%20185.00%2058.70%20L%20191.20%2058.00%20Z%20M%20147.56%2049.00%20L%20147.52%2048.00%20L%20142.00%2036.16%20L%20136.65%2048.00%20L%20136.62%2049.00%20L%20137.00%2049.38%20L%20147.00%2049.42%20L%20147.56%2049.00%20Z%20M%2021.74%2058.00%20L%2023.44%2056.00%20L%2023.97%2054.00%20L%2023.39%2050.00%20L%2022.00%2047.94%20L%2019.00%2045.66%20L%2014.00%2044.62%20L%2013.39%2046.00%20L%2013.80%2057.00%20L%2016.00%2058.50%20L%2020.00%2058.64%20L%2021.74%2058.00%20Z%20M%2086.00%20104.34%20L%2078.00%20104.46%20L%2077.43%20104.00%20L%2077.80%20103.00%20L%2079.00%20102.81%20L%2079.61%20102.00%20L%2077.50%2096.00%20L%2076.00%2094.88%20L%2064.00%2095.20%20L%2061.48%20101.00%20L%2061.50%20102.00%20L%2063.37%20103.00%20L%2063.64%20104.00%20L%2063.00%20104.47%20L%2057.00%20104.47%20L%2056.43%20104.00%20L%2056.71%20103.00%20L%2059.00%20101.67%20L%2060.49%2099.00%20L%2071.00%2073.64%20L%2072.00%2073.50%20L%2072.48%2074.00%20L%2083.60%20100.00%20L%2084.64%20102.00%20L%2086.09%20103.00%20L%2086.00%20104.34%20Z%20M%20285.00%20104.45%20L%20277.00%20104.38%20L%20276.62%20104.00%20L%20276.97%20103.00%20L%20278.89%20102.00%20L%20276.52%2096.00%20L%20275.00%2094.89%20L%20264.00%2094.89%20L%20262.75%2096.00%20L%20260.74%20101.00%20L%20260.89%20102.00%20L%20262.75%20103.00%20L%20263.14%20104.00%20L%20262.00%20104.47%20L%20257.00%20104.47%20L%20255.72%20104.00%20L%20256.10%20103.00%20L%20258.21%20102.00%20L%20259.41%20100.00%20L%20270.00%2073.92%20L%20271.00%2073.50%20L%20271.48%2074.00%20L%20282.63%20100.00%20L%20283.68%20102.00%20L%20285.25%20103.00%20L%20285.48%20104.00%20L%20285.00%20104.45%20Z%20M%20162.00%20105.03%20L%20142.76%20105.00%20L%20142.47%20104.00%20L%20143.00%20103.53%20L%20145.43%20103.00%20L%20146.29%20100.00%20L%20146.23%2078.00%20L%20145.00%2076.54%20L%20143.00%2076.36%20L%20142.64%2076.00%20L%20143.00%2074.86%20L%20162.00%2075.00%20L%20163.00%2080.00%20L%20162.00%2080.48%20L%20161.00%2078.13%20L%20159.00%2076.63%20L%20151.00%2076.50%20L%20150.40%2077.00%20L%20150.41%2088.00%20L%20151.00%2088.52%20L%20158.00%2088.41%20L%20159.43%2087.00%20L%20160.00%2085.30%20L%20161.00%2085.68%20L%20161.00%2092.61%20L%20160.00%2093.22%20L%20159.00%2090.55%20L%20157.00%2089.87%20L%20151.00%2089.74%20L%20150.17%2091.00%20L%20150.52%20101.00%20L%20153.00%20102.50%20L%20159.00%20102.69%20L%20161.00%20101.61%20L%20161.87%2099.00%20L%20163.00%2098.39%20L%20163.52%2099.00%20L%20163.23%20104.00%20L%20162.00%20105.03%20Z%20M%20207.00%20104.46%20L%20201.92%20104.00%20L%20194.09%2091.00%20L%20193.00%2090.38%20L%20190.55%2091.00%20L%20190.54%20101.00%20L%20191.00%20102.28%20L%20193.97%20104.00%20L%20193.00%20104.69%20L%20183.00%20104.38%20L%20183.00%20103.65%20L%20185.00%20103.27%20L%20186.24%20102.00%20L%20186.43%2099.00%20L%20186.43%2078.00%20L%20186.00%2076.85%20L%20183.00%2075.44%20L%20183.00%2074.74%20L%20197.00%2074.63%20L%20201.00%2075.65%20L%20202.60%2077.00%20L%20203.35%2078.00%20L%20203.66%2080.00%20L%20203.25%2084.00%20L%20200.92%2087.00%20L%20197.64%2089.00%20L%20197.35%2090.00%20L%20199.44%2092.00%20L%20205.93%20102.00%20L%20207.67%20103.00%20L%20207.94%20104.00%20L%20207.00%20104.46%20Z%20M%20237.00%20104.42%20L%20227.00%20104.70%20L%20225.76%20104.00%20L%20228.00%20103.28%20L%20229.00%20102.39%20L%20229.58%20100.00%20L%20229.55%2078.00%20L%20229.00%2076.73%20L%20226.90%2076.00%20L%20226.00%2074.79%20L%20236.00%2074.48%20L%20237.29%2075.00%20L%20233.89%2077.00%20L%20233.43%2080.00%20L%20233.48%20101.00%20L%20234.00%20102.38%20L%20237.00%20103.62%20L%20237.00%20104.42%20Z%20M%20321.00%20104.44%20L%20303.00%20104.53%20L%20302.27%20104.00%20L%20305.12%20102.00%20L%20305.38%2097.00%20L%20305.38%2078.00%20L%20304.82%2077.00%20L%20302.47%2076.00%20L%20303.00%2074.97%20L%20312.00%2074.97%20L%20312.50%2076.00%20L%20310.05%2077.00%20L%20309.50%2078.00%20L%20309.65%20101.00%20L%20311.00%20102.28%20L%20317.00%20102.38%20L%20319.58%20101.00%20L%20321.00%2098.26%20L%20321.86%2099.00%20L%20321.81%20102.00%20L%20321.00%20104.44%20Z%20M%20353.00%20104.30%20L%20346.00%20104.58%20L%20341.51%20103.00%20L%20341.38%2098.00%20L%20342.00%2096.90%20L%20343.97%20101.00%20L%20346.00%20102.46%20L%20349.00%20102.96%20L%20353.00%20102.46%20L%20355.28%20100.00%20L%20355.43%2096.00%20L%20353.00%2093.61%20L%20345.41%2088.00%20L%20343.65%2086.00%20L%20342.90%2084.00%20L%20342.69%2081.00%20L%20343.88%2078.00%20L%20346.17%2076.00%20L%20350.00%2074.53%20L%20357.00%2074.73%20L%20357.72%2076.00%20L%20358.00%2080.00%20L%20357.00%2081.02%20L%20355.00%2077.21%20L%20352.00%2076.22%20L%20348.08%2077.00%20L%20347.00%2078.06%20L%20346.27%2080.00%20L%20346.61%2083.00%20L%20348.00%2084.83%20L%20357.00%2091.62%20L%20359.33%2095.00%20L%20359.30%2098.00%20L%20358.48%20100.00%20L%20356.00%20102.66%20L%20353.00%20104.30%20Z%20M%2023.00%20105.00%20L%2013.00%2083.49%20L%2012.47%2085.00%20L%2012.63%20102.00%20L%2014.00%20103.49%20L%2015.61%20104.00%20L%2015.43%20105.00%20L%207.00%20105.00%20L%206.91%20104.00%20L%209.00%20103.37%20L%209.66%20102.00%20L%2010.24%2080.00%20L%209.48%2078.00%20L%207.00%2077.20%20L%206.42%2076.00%20L%207.00%2075.51%20L%2013.39%2076.00%20L%2024.00%2098.56%20L%2025.35%2097.00%20L%2034.94%2076.00%20L%2036.00%2075.62%20L%2041.00%2075.88%20L%2039.00%2076.61%20L%2037.74%2079.00%20L%2037.57%2091.00%20L%2037.86%20101.00%20L%2039.00%20102.79%20L%2041.20%20104.00%20L%2040.00%20104.54%20L%2033.00%20104.54%20L%2031.22%20104.00%20L%2033.33%20103.00%20L%2034.29%20101.00%20L%2034.41%2085.00%20L%2034.00%2083.26%20L%2032.56%2085.00%20L%2024.00%20104.96%20L%2023.00%20105.00%20Z%20M%20117.00%20104.60%20L%20108.00%20104.68%20L%20107.49%20104.00%20L%20109.67%20103.00%20L%20110.25%20102.00%20L%20110.39%2078.00%20L%20109.00%2077.52%20L%20104.00%2077.59%20L%20102.98%2078.00%20L%20101.75%2081.00%20L%20101.00%2081.59%20L%20100.35%2081.00%20L%20100.36%2076.00%20L%20101.00%2075.33%20L%20124.00%2075.34%20L%20124.56%2076.00%20L%20124.49%2081.00%20L%20124.00%2081.44%20L%20123.18%2081.00%20L%20122.14%2078.00%20L%20121.00%2077.47%20L%20115.00%2077.39%20L%20114.30%2078.00%20L%20114.51%20102.00%20L%20116.00%20103.36%20L%20117.00%20103.53%20L%20117.43%20104.00%20L%20117.00%20104.60%20Z%20M%20195.11%2089.00%20L%20198.00%2087.07%20L%20199.38%2085.00%20L%20199.87%2082.00%20L%20199.44%2079.00%20L%20197.00%2076.81%20L%20191.00%2076.39%20L%20190.55%2077.00%20L%20190.55%2088.00%20L%20191.00%2088.76%20L%20195.11%2089.00%20Z%20M%2075.57%2093.00%20L%2075.25%2091.00%20L%2071.15%2081.00%20L%2070.00%2080.13%20L%2064.79%2093.00%20L%2075.57%2093.00%20Z%20M%20275.15%2093.00%20L%20275.16%2092.00%20L%20270.46%2081.00%20L%20270.00%2080.25%20L%20269.00%2080.38%20L%20264.66%2091.00%20L%20264.42%2093.00%20L%20275.15%2093.00%20Z'/%3e%3c/svg%3e`,Te=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20370%20110'%20width='370'%20height='110'%20role='img'%20aria-label='Broadview%20Materials%20logo%20black'%3e%3cpath%20fill='%23000000'%20fill-rule='evenodd'%20d='M%20315.00%2017.28%20L%20313.00%2017.36%20L%20310.00%2016.25%20L%20307.92%2014.00%20L%20307.08%2011.00%20L%20307.48%207.00%20L%20308.63%205.00%20L%20310.00%203.79%20L%20313.00%202.69%20L%20315.00%202.80%20L%20318.00%204.39%20L%20319.38%206.00%20L%20320.07%209.00%20L%20319.98%2010.00%20L%20319.00%2010.55%20L%20310.00%2010.58%20L%20308.94%2011.00%20L%20310.00%2013.98%20L%20312.00%2015.43%20L%20316.00%2015.31%20L%20318.00%2013.23%20L%20319.00%2012.67%20L%20319.45%2013.00%20L%20319.56%2014.00%20L%20317.87%2016.00%20L%20315.00%2017.28%20Z%20M%20334.00%2017.25%20L%20332.00%2017.37%20L%20329.12%2016.00%20L%20328.08%2013.00%20L%20329.00%2011.03%20L%20331.00%209.63%20L%20337.00%208.98%20L%20337.42%207.00%20L%20336.06%205.00%20L%20335.00%204.54%20L%20332.00%204.81%20L%20330.64%206.00%20L%20330.00%207.59%20L%20329.00%207.69%20L%20328.48%207.00%20L%20328.60%206.00%20L%20330.26%204.00%20L%20334.00%202.68%20L%20337.00%203.56%20L%20338.47%205.00%20L%20339.28%207.00%20L%20339.44%2016.00%20L%20339.00%2016.68%20L%20338.00%2016.86%20L%20337.00%2015.60%20L%20334.00%2017.25%20Z%20M%20345.00%2016.44%20L%20344.00%2016.86%20L%20343.31%2016.00%20L%20343.31%204.00%20L%20344.00%203.18%20L%20346.00%204.14%20L%20348.00%202.95%20L%20349.00%203.19%20L%20349.38%204.00%20L%20349.00%204.45%20L%20347.00%205.31%20L%20345.44%207.00%20L%20345.00%2016.44%20Z%20M%20359.00%2017.01%20L%20356.00%2017.31%20L%20354.00%2016.56%20L%20351.89%2015.00%20L%20350.62%2013.00%20L%20350.63%207.00%20L%20353.08%204.00%20L%20356.00%202.72%20L%20358.00%202.73%20L%20360.79%204.00%20L%20362.52%206.00%20L%20363.31%208.00%20L%20363.00%2010.40%20L%20353.00%2010.57%20L%20352.38%2011.00%20L%20352.57%2013.00%20L%20355.00%2015.35%20L%20359.00%2015.40%20L%20362.00%2012.71%20L%20362.68%2013.00%20L%20362.26%2015.00%20L%20359.00%2017.01%20Z%20M%20301.00%2016.53%20L%20300.00%2016.86%20L%20299.26%2016.00%20L%20296.75%2010.00%20L%20296.42%208.00%20L%20296.00%207.33%20L%20295.00%207.20%20L%20292.22%2015.00%20L%20291.00%2016.86%20L%20290.00%2016.67%20L%20285.00%203.72%20L%20286.00%203.18%20L%20287.10%204.00%20L%20289.79%2012.00%20L%20291.00%2013.39%20L%20294.48%204.00%20L%20295.00%203.24%20L%20296.00%203.31%20L%20300.00%2013.44%20L%20301.41%2011.00%20L%20303.73%204.00%20L%20305.00%203.17%20L%20305.93%204.00%20L%20301.00%2016.53%20Z%20M%20318.02%209.00%20L%20318.35%208.00%20L%20317.37%206.00%20L%20315.00%204.52%20L%20311.25%205.00%20L%20308.94%208.00%20L%20309.28%209.00%20L%20310.00%209.28%20L%20318.02%209.00%20Z%20M%20361.25%209.00%20L%20361.18%207.00%20L%20359.00%204.67%20L%20355.00%204.64%20L%20352.57%207.00%20L%20352.59%209.00%20L%20353.00%209.28%20L%20361.25%209.00%20Z%20M%20335.47%2015.00%20L%20337.28%2013.00%20L%20337.00%2010.60%20L%20333.00%2010.72%20L%20331.00%2011.50%20L%20329.69%2013.00%20L%20329.84%2014.00%20L%20331.00%2015.35%20L%20334.00%2015.51%20L%20335.47%2015.00%20Z%20M%20101.00%2061.19%20L%2098.00%2061.34%20L%2094.00%2060.36%20L%2090.09%2058.00%20L%2086.74%2054.00%20L%2084.94%2048.00%20L%2084.89%2043.00%20L%2086.60%2037.00%20L%2088.61%2034.00%20L%2091.00%2031.73%20L%2096.00%2029.58%20L%20102.00%2029.53%20L%20107.00%2031.65%20L%20110.36%2035.00%20L%20112.30%2039.00%20L%20113.28%2043.00%20L%20113.27%2048.00%20L%20111.41%2054.00%20L%20108.00%2058.13%20L%20104.00%2060.38%20L%20101.00%2061.19%20Z%20M%20157.00%2060.42%20L%20150.00%2060.45%20L%20148.87%2060.00%20L%20149.11%2059.00%20L%20151.31%2058.00%20L%20149.45%2053.00%20L%20148.00%2050.76%20L%20136.00%2050.89%20L%20133.40%2057.00%20L%20133.43%2058.00%20L%20135.38%2059.00%20L%20135.50%2060.00%20L%20135.00%2060.44%20L%20129.00%2060.45%20L%20128.39%2060.00%20L%20128.54%2059.00%20L%20130.00%2058.47%20L%20131.38%2057.00%20L%20141.72%2031.00%20L%20143.00%2029.44%20L%20144.00%2030.00%20L%20145.40%2033.00%20L%20155.60%2057.00%20L%20157.62%2059.00%20L%20157.65%2060.00%20L%20157.00%2060.42%20Z%20M%2021.00%2060.12%20L%207.00%2060.45%20L%205.86%2060.00%20L%206.09%2059.00%20L%208.90%2058.00%20L%209.43%2056.00%20L%209.42%2034.00%20L%209.00%2032.73%20L%208.00%2031.76%20L%206.00%2031.40%20L%206.00%2030.62%20L%2022.00%2030.56%20L%2024.85%2032.00%20L%2026.36%2034.00%20L%2026.37%2038.00%20L%2025.40%2040.00%20L%2023.00%2042.30%20L%2021.30%2043.00%20L%2020.92%2044.00%20L%2024.00%2045.43%20L%2026.55%2048.00%20L%2027.44%2050.00%20L%2027.47%2054.00%20L%2025.00%2058.11%20L%2021.00%2060.12%20Z%20M%2069.00%2060.50%20L%2063.75%2060.00%20L%2057.27%2049.00%20L%2055.00%2046.40%20L%2052.00%2046.55%20L%2051.63%2047.00%20L%2051.70%2055.00%20L%2052.41%2058.00%20L%2055.00%2058.84%20L%2055.33%2060.00%20L%2054.00%2060.45%20L%2045.00%2060.45%20L%2044.40%2060.00%20L%2045.00%2058.67%20L%2047.43%2058.00%20L%2048.07%2055.00%20L%2047.95%2034.00%20L%2047.00%2032.03%20L%2044.35%2031.00%20L%2045.00%2030.35%20L%2060.00%2030.64%20L%2063.00%2031.72%20L%2064.35%2033.00%20L%2065.22%2037.00%20L%2064.13%2041.00%20L%2062.00%2043.34%20L%2059.00%2044.96%20L%2058.68%2046.00%20L%2061.45%2049.00%20L%2067.00%2057.66%20L%2069.96%2060.00%20L%2069.00%2060.50%20Z%20M%20102.43%2059.00%20L%20105.03%2057.00%20L%20107.45%2053.00%20L%20108.53%2048.00%20L%20108.38%2041.00%20L%20107.21%2037.00%20L%20105.40%2034.00%20L%20103.00%2031.81%20L%2099.00%2030.72%20L%2095.00%2031.96%20L%2092.73%2034.00%20L%2091.49%2036.00%20L%2089.79%2041.00%20L%2089.69%2049.00%20L%2091.63%2055.00%20L%2094.11%2058.00%20L%2097.00%2059.49%20L%20101.00%2059.50%20L%20102.43%2059.00%20Z%20M%20190.00%2060.24%20L%20174.00%2060.50%20L%20172.59%2060.00%20L%20173.00%2058.95%20L%20175.71%2058.00%20L%20176.33%2056.00%20L%20176.23%2033.00%20L%20175.00%2031.70%20L%20173.00%2031.37%20L%20173.00%2030.53%20L%20191.00%2030.83%20L%20195.99%2033.00%20L%20199.17%2036.00%20L%20200.26%2038.00%20L%20201.28%2043.00%20L%20201.11%2047.00%20L%20200.16%2051.00%20L%20199.28%2053.00%20L%20196.00%2057.25%20L%20193.00%2059.24%20L%20190.00%2060.24%20Z%20M%20230.00%2061.36%20L%20228.58%2060.00%20L%20217.53%2034.00%20L%20215.24%2031.00%20L%20216.00%2030.39%20L%20223.00%2030.38%20L%20224.33%2031.00%20L%20222.34%2032.00%20L%20221.71%2033.00%20L%20231.00%2054.29%20L%20233.30%2050.00%20L%20239.42%2035.00%20L%20239.94%2033.00%20L%20237.62%2031.00%20L%20239.00%2030.38%20L%20244.00%2030.38%20L%20245.06%2031.00%20L%20243.00%2032.34%20L%20241.64%2034.00%20L%20231.21%2060.00%20L%20230.00%2061.36%20Z%20M%20270.00%2060.43%20L%20260.00%2060.44%20L%20259.43%2060.00%20L%20260.00%2058.68%20L%20262.47%2058.00%20L%20263.13%2055.00%20L%20263.06%2034.00%20L%20262.00%2032.00%20L%20259.38%2031.00%20L%20260.00%2030.35%20L%20270.00%2030.38%20L%20270.59%2031.00%20L%20270.00%2031.66%20L%20268.00%2032.16%20L%20267.35%2033.00%20L%20266.75%2036.00%20L%20266.89%2057.00%20L%20268.00%2058.54%20L%20270.10%2059.00%20L%20270.50%2060.00%20L%20270.00%2060.43%20Z%20M%20307.00%2060.53%20L%20287.13%2060.00%20L%20287.00%2058.99%20L%20289.00%2058.48%20L%20290.45%2057.00%20L%20290.59%2035.00%20L%20290.00%2032.44%20L%20287.00%2030.83%20L%20288.00%2030.34%20L%20306.00%2030.40%20L%20306.71%2031.00%20L%20307.50%2035.00%20L%20307.00%2035.87%20L%20306.00%2035.75%20L%20305.00%2033.18%20L%20303.00%2031.97%20L%20295.00%2031.95%20L%20294.51%2033.00%20L%20294.52%2043.00%20L%20295.00%2043.59%20L%20302.00%2043.54%20L%20303.20%2043.00%20L%20304.00%2040.95%20L%20305.14%2041.00%20L%20305.48%2048.00%20L%20305.00%2048.61%20L%20304.00%2048.54%20L%20303.13%2046.00%20L%20302.00%2045.54%20L%20296.00%2045.48%20L%20294.66%2046.00%20L%20294.75%2056.00%20L%20297.00%2058.17%20L%20304.00%2058.43%20L%20306.00%2056.70%20L%20307.00%2054.24%20L%20308.00%2054.49%20L%20308.33%2055.00%20L%20307.00%2060.53%20Z%20M%20352.00%2061.26%20L%20350.60%2059.00%20L%20343.00%2037.81%20L%20341.75%2039.00%20L%20335.14%2061.00%20L%20333.87%2061.00%20L%20326.10%2035.00%20L%20325.20%2033.00%20L%20322.53%2031.00%20L%20323.00%2030.43%20L%20331.00%2030.38%20L%20332.44%2031.00%20L%20330.00%2032.38%20L%20329.61%2034.00%20L%20335.00%2053.22%20L%20336.00%2053.06%20L%20336.44%2052.00%20L%20336.66%2050.00%20L%20342.54%2031.00%20L%20343.00%2030.51%20L%20344.00%2030.84%20L%20351.70%2053.00%20L%20353.00%2053.46%20L%20358.52%2034.00%20L%20358.00%2032.38%20L%20355.72%2031.00%20L%20357.00%2030.40%20L%20363.00%2030.49%20L%20363.42%2031.00%20L%20361.95%2032.00%20L%20360.53%2034.00%20L%20353.22%2060.00%20L%20352.00%2061.26%20Z%20M%2018.59%2043.00%20L%2021.14%2041.00%20L%2022.32%2039.00%20L%2022.38%2035.00%20L%2020.00%2032.60%20L%2014.00%2031.79%20L%2013.38%2033.00%20L%2013.48%2043.00%20L%2014.00%2043.45%20L%2017.00%2043.46%20L%2018.59%2043.00%20Z%20M%2057.54%2044.00%20L%2060.35%2041.00%20L%2061.23%2038.00%20L%2061.19%2036.00%20L%2060.44%2034.00%20L%2059.00%2032.62%20L%2056.00%2031.64%20L%2053.00%2031.50%20L%2052.11%2032.00%20L%2051.91%2033.00%20L%2051.90%2044.00%20L%2053.00%2044.56%20L%2056.00%2044.62%20L%2057.54%2044.00%20Z%20M%20191.20%2058.00%20L%20194.40%2055.00%20L%20196.28%2051.00%20L%20196.84%2045.00%20L%20196.02%2040.00%20L%20194.00%2036.38%20L%20190.00%2032.89%20L%20185.00%2031.74%20L%20181.00%2031.66%20L%20180.24%2033.00%20L%20180.26%2055.00%20L%20180.68%2057.00%20L%20182.00%2058.14%20L%20185.00%2058.70%20L%20191.20%2058.00%20Z%20M%20147.56%2049.00%20L%20147.52%2048.00%20L%20142.00%2036.16%20L%20136.65%2048.00%20L%20136.62%2049.00%20L%20137.00%2049.38%20L%20147.00%2049.42%20L%20147.56%2049.00%20Z%20M%2021.74%2058.00%20L%2023.44%2056.00%20L%2023.97%2054.00%20L%2023.39%2050.00%20L%2022.00%2047.94%20L%2019.00%2045.66%20L%2014.00%2044.62%20L%2013.39%2046.00%20L%2013.80%2057.00%20L%2016.00%2058.50%20L%2020.00%2058.64%20L%2021.74%2058.00%20Z%20M%2086.00%20104.34%20L%2078.00%20104.46%20L%2077.43%20104.00%20L%2077.80%20103.00%20L%2079.00%20102.81%20L%2079.61%20102.00%20L%2077.50%2096.00%20L%2076.00%2094.88%20L%2064.00%2095.20%20L%2061.48%20101.00%20L%2061.50%20102.00%20L%2063.37%20103.00%20L%2063.64%20104.00%20L%2063.00%20104.47%20L%2057.00%20104.47%20L%2056.43%20104.00%20L%2056.71%20103.00%20L%2059.00%20101.67%20L%2060.49%2099.00%20L%2071.00%2073.64%20L%2072.00%2073.50%20L%2072.48%2074.00%20L%2083.60%20100.00%20L%2084.64%20102.00%20L%2086.09%20103.00%20L%2086.00%20104.34%20Z%20M%20285.00%20104.45%20L%20277.00%20104.38%20L%20276.62%20104.00%20L%20276.97%20103.00%20L%20278.89%20102.00%20L%20276.52%2096.00%20L%20275.00%2094.89%20L%20264.00%2094.89%20L%20262.75%2096.00%20L%20260.74%20101.00%20L%20260.89%20102.00%20L%20262.75%20103.00%20L%20263.14%20104.00%20L%20262.00%20104.47%20L%20257.00%20104.47%20L%20255.72%20104.00%20L%20256.10%20103.00%20L%20258.21%20102.00%20L%20259.41%20100.00%20L%20270.00%2073.92%20L%20271.00%2073.50%20L%20271.48%2074.00%20L%20282.63%20100.00%20L%20283.68%20102.00%20L%20285.25%20103.00%20L%20285.48%20104.00%20L%20285.00%20104.45%20Z%20M%20162.00%20105.03%20L%20142.76%20105.00%20L%20142.47%20104.00%20L%20143.00%20103.53%20L%20145.43%20103.00%20L%20146.29%20100.00%20L%20146.23%2078.00%20L%20145.00%2076.54%20L%20143.00%2076.36%20L%20142.64%2076.00%20L%20143.00%2074.86%20L%20162.00%2075.00%20L%20163.00%2080.00%20L%20162.00%2080.48%20L%20161.00%2078.13%20L%20159.00%2076.63%20L%20151.00%2076.50%20L%20150.40%2077.00%20L%20150.41%2088.00%20L%20151.00%2088.52%20L%20158.00%2088.41%20L%20159.43%2087.00%20L%20160.00%2085.30%20L%20161.00%2085.68%20L%20161.00%2092.61%20L%20160.00%2093.22%20L%20159.00%2090.55%20L%20157.00%2089.87%20L%20151.00%2089.74%20L%20150.17%2091.00%20L%20150.52%20101.00%20L%20153.00%20102.50%20L%20159.00%20102.69%20L%20161.00%20101.61%20L%20161.87%2099.00%20L%20163.00%2098.39%20L%20163.52%2099.00%20L%20163.23%20104.00%20L%20162.00%20105.03%20Z%20M%20207.00%20104.46%20L%20201.92%20104.00%20L%20194.09%2091.00%20L%20193.00%2090.38%20L%20190.55%2091.00%20L%20190.54%20101.00%20L%20191.00%20102.28%20L%20193.97%20104.00%20L%20193.00%20104.69%20L%20183.00%20104.38%20L%20183.00%20103.65%20L%20185.00%20103.27%20L%20186.24%20102.00%20L%20186.43%2099.00%20L%20186.43%2078.00%20L%20186.00%2076.85%20L%20183.00%2075.44%20L%20183.00%2074.74%20L%20197.00%2074.63%20L%20201.00%2075.65%20L%20202.60%2077.00%20L%20203.35%2078.00%20L%20203.66%2080.00%20L%20203.25%2084.00%20L%20200.92%2087.00%20L%20197.64%2089.00%20L%20197.35%2090.00%20L%20199.44%2092.00%20L%20205.93%20102.00%20L%20207.67%20103.00%20L%20207.94%20104.00%20L%20207.00%20104.46%20Z%20M%20237.00%20104.42%20L%20227.00%20104.70%20L%20225.76%20104.00%20L%20228.00%20103.28%20L%20229.00%20102.39%20L%20229.58%20100.00%20L%20229.55%2078.00%20L%20229.00%2076.73%20L%20226.90%2076.00%20L%20226.00%2074.79%20L%20236.00%2074.48%20L%20237.29%2075.00%20L%20233.89%2077.00%20L%20233.43%2080.00%20L%20233.48%20101.00%20L%20234.00%20102.38%20L%20237.00%20103.62%20L%20237.00%20104.42%20Z%20M%20321.00%20104.44%20L%20303.00%20104.53%20L%20302.27%20104.00%20L%20305.12%20102.00%20L%20305.38%2097.00%20L%20305.38%2078.00%20L%20304.82%2077.00%20L%20302.47%2076.00%20L%20303.00%2074.97%20L%20312.00%2074.97%20L%20312.50%2076.00%20L%20310.05%2077.00%20L%20309.50%2078.00%20L%20309.65%20101.00%20L%20311.00%20102.28%20L%20317.00%20102.38%20L%20319.58%20101.00%20L%20321.00%2098.26%20L%20321.86%2099.00%20L%20321.81%20102.00%20L%20321.00%20104.44%20Z%20M%20353.00%20104.30%20L%20346.00%20104.58%20L%20341.51%20103.00%20L%20341.38%2098.00%20L%20342.00%2096.90%20L%20343.97%20101.00%20L%20346.00%20102.46%20L%20349.00%20102.96%20L%20353.00%20102.46%20L%20355.28%20100.00%20L%20355.43%2096.00%20L%20353.00%2093.61%20L%20345.41%2088.00%20L%20343.65%2086.00%20L%20342.90%2084.00%20L%20342.69%2081.00%20L%20343.88%2078.00%20L%20346.17%2076.00%20L%20350.00%2074.53%20L%20357.00%2074.73%20L%20357.72%2076.00%20L%20358.00%2080.00%20L%20357.00%2081.02%20L%20355.00%2077.21%20L%20352.00%2076.22%20L%20348.08%2077.00%20L%20347.00%2078.06%20L%20346.27%2080.00%20L%20346.61%2083.00%20L%20348.00%2084.83%20L%20357.00%2091.62%20L%20359.33%2095.00%20L%20359.30%2098.00%20L%20358.48%20100.00%20L%20356.00%20102.66%20L%20353.00%20104.30%20Z%20M%2023.00%20105.00%20L%2013.00%2083.49%20L%2012.47%2085.00%20L%2012.63%20102.00%20L%2014.00%20103.49%20L%2015.61%20104.00%20L%2015.43%20105.00%20L%207.00%20105.00%20L%206.91%20104.00%20L%209.00%20103.37%20L%209.66%20102.00%20L%2010.24%2080.00%20L%209.48%2078.00%20L%207.00%2077.20%20L%206.42%2076.00%20L%207.00%2075.51%20L%2013.39%2076.00%20L%2024.00%2098.56%20L%2025.35%2097.00%20L%2034.94%2076.00%20L%2036.00%2075.62%20L%2041.00%2075.88%20L%2039.00%2076.61%20L%2037.74%2079.00%20L%2037.57%2091.00%20L%2037.86%20101.00%20L%2039.00%20102.79%20L%2041.20%20104.00%20L%2040.00%20104.54%20L%2033.00%20104.54%20L%2031.22%20104.00%20L%2033.33%20103.00%20L%2034.29%20101.00%20L%2034.41%2085.00%20L%2034.00%2083.26%20L%2032.56%2085.00%20L%2024.00%20104.96%20L%2023.00%20105.00%20Z%20M%20117.00%20104.60%20L%20108.00%20104.68%20L%20107.49%20104.00%20L%20109.67%20103.00%20L%20110.25%20102.00%20L%20110.39%2078.00%20L%20109.00%2077.52%20L%20104.00%2077.59%20L%20102.98%2078.00%20L%20101.75%2081.00%20L%20101.00%2081.59%20L%20100.35%2081.00%20L%20100.36%2076.00%20L%20101.00%2075.33%20L%20124.00%2075.34%20L%20124.56%2076.00%20L%20124.49%2081.00%20L%20124.00%2081.44%20L%20123.18%2081.00%20L%20122.14%2078.00%20L%20121.00%2077.47%20L%20115.00%2077.39%20L%20114.30%2078.00%20L%20114.51%20102.00%20L%20116.00%20103.36%20L%20117.00%20103.53%20L%20117.43%20104.00%20L%20117.00%20104.60%20Z%20M%20195.11%2089.00%20L%20198.00%2087.07%20L%20199.38%2085.00%20L%20199.87%2082.00%20L%20199.44%2079.00%20L%20197.00%2076.81%20L%20191.00%2076.39%20L%20190.55%2077.00%20L%20190.55%2088.00%20L%20191.00%2088.76%20L%20195.11%2089.00%20Z%20M%2075.57%2093.00%20L%2075.25%2091.00%20L%2071.15%2081.00%20L%2070.00%2080.13%20L%2064.79%2093.00%20L%2075.57%2093.00%20Z%20M%20275.15%2093.00%20L%20275.16%2092.00%20L%20270.46%2081.00%20L%20270.00%2080.25%20L%20269.00%2080.38%20L%20264.66%2091.00%20L%20264.42%2093.00%20L%20275.15%2093.00%20Z'/%3e%3c/svg%3e`,Ee={formica:_e,hartsonkennedy:xe,trespa:Ce,arpa:be,homapal:Se,fenix:ye,broadview:we},De=e=>/^https?:\/\//i.test(e)||e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`),Oe=e=>e.trim().toLowerCase().replace(/\s+/g,``).replace(/[^a-z0-9]/g,``);function ke(e){if(!e||De(e))return;let t=Oe(e);return Ee[t]?t:void 0}function Ae(e,t){return e?De(e)?e:Ee[Oe(e)]??t:t}function je(e,t){if(!e)return t;if(De(e))return e;let n=Oe(e);return n===`formica`?ve:n===`broadview`?Te:Ee[n]??t}var Me=({rangeId:e,name:t,rangeCode:n,company:r,region:i,subRegion:a,decorCount:o,decorLabel:s=`decors`,openLabel:l=`Open`,actionsLabel:d=`Actions`,deleteLabel:p=`Delete range`,deleteDisabled:m=!1,deleteBlockedMessage:h,disabled:_=!1,onRangeClick:v,onDeleteRangeRequest:y})=>{let[b,x]=(0,c.useState)(!1),S=(0,c.useRef)(null),C=Ae(r),w=[r,i,a].filter(e=>e.trim()),T=o===1?`decor`:s;return(0,c.useEffect)(()=>{if(!b)return;let e=e=>{S.current?.contains(e.target)||x(!1)},t=e=>{e.key===`Escape`&&x(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[b]),(0,u.jsxs)(`article`,{className:`group relative flex w-full items-center rounded-md border border-borderTertiary bg-secondary p-3 shadow-sm transition hover:border-primary md:p-4`,children:[v&&!_?(0,u.jsx)(K,{ariaLabel:`${l} ${t}`,className:`absolute inset-0 z-10 cursor-pointer rounded-md text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2`,onCardClick:()=>v({rangeId:e}),children:(0,u.jsx)(`span`,{className:`sr-only`,children:`${l} ${t}`})}):null,(0,u.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-3 md:gap-4`,children:[(0,u.jsx)(`div`,{className:`flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-md border border-primary bg-primary p-2 md:h-16 md:w-16`,children:C?(0,u.jsx)(j,{src:C,alt:`${r} logo`,quality:85,fit:`contain`,className:`h-full w-full object-contain`}):(0,u.jsx)(g,{iconType:`fa-regular`,iconName:`building`,alt:`No company logo available`,size:`lg`,className:`text-secondary`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1 md:flex md:items-center md:gap-4`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 md:flex-1`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`truncate text-sm font-bold text-primary md:text-base`,children:t}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:w.length?w.join(` · `):`No location details`})]}),(0,u.jsxs)(f,{variant:`free`,className:`mt-2 text-xs font-bold text-primary md:mt-0 md:shrink-0 md:whitespace-nowrap`,children:[o.toLocaleString(),` `,T]})]})]}),y&&!_?(0,u.jsxs)(`div`,{ref:S,className:`relative z-20 ml-1 shrink-0`,children:[(0,u.jsx)(he,{iconType:`fa-solid`,iconName:`ellipsis-vertical`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`neutral`,"aria-label":`${d} for ${t}`,"aria-haspopup":`menu`,"aria-expanded":b,onClick:()=>x(e=>!e)}),b?(0,u.jsxs)(`div`,{role:`menu`,className:`absolute right-0 top-full z-30 mt-1 min-w-56 rounded-md border border-borderTertiary bg-secondary p-1 shadow-lg`,children:[(0,u.jsx)(O,{label:p,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,iconSize:`sm`,size:`sm`,variant:`ghost`,intent:`danger`,fullWidth:!0,role:`menuitem`,buttonAlignment:`justify-start`,disabled:m,onClick:()=>{x(!1),y({rangeId:e,name:t,rangeCode:n,company:r,region:i,subRegion:a,decorCount:o})}}),m&&h?(0,u.jsx)(f,{variant:`free`,className:`px-3 pb-2 text-xs text-tertiary`,children:h}):null]}):null]}):null,(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`sm`,className:`ml-1 shrink-0 text-tertiary`})]})};function Ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function q(e){if(Array.isArray(e))return e}function Pe(e){if(Array.isArray(e))return Ne(e)}function Fe(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,qe(r.key),r)}}function Le(e,t,n){return t&&Ie(e.prototype,t),n&&Ie(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Re(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Ye(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function J(e,t,n){return(t=qe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ze(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Be(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Ve(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function He(){throw TypeError(`Invalid attempt to spread non-iterable instance.
4
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ue(Object(n),!0).forEach(function(t){J(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function We(e,t){return q(e)||Be(e,t)||Ye(e,t)||Ve()}function Ge(e){return Pe(e)||ze(e)||Ye(e)||He()}function Ke(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function qe(e){var t=Ke(e,`string`);return typeof t==`symbol`?t:t+``}function Je(e){"@babel/helpers - typeof";return Je=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Je(e)}function Ye(e,t){if(e){if(typeof e==`string`)return Ne(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}var Xe=function(){},Ze={},Qe={},$e=null,et={mark:Xe,measure:Xe};try{typeof window<`u`&&(Ze=window),typeof document<`u`&&(Qe=document),typeof MutationObserver<`u`&&($e=MutationObserver),typeof performance<`u`&&(et=performance)}catch{}var tt=(Ze.navigator||{}).userAgent,nt=tt===void 0?``:tt,rt=Ze,X=Qe,it=$e,at=et;rt.document;var ot=!!X.documentElement&&!!X.head&&typeof X.addEventListener==`function`&&typeof X.createElement==`function`,st=~nt.indexOf(`MSIE`)||~nt.indexOf(`Trident/`),ct,lt=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,ut=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,dt={classic:{fa:`solid`,fas:`solid`,"fa-solid":`solid`,far:`regular`,"fa-regular":`regular`,fal:`light`,"fa-light":`light`,fat:`thin`,"fa-thin":`thin`,fab:`brands`,"fa-brands":`brands`},duotone:{fa:`solid`,fad:`solid`,"fa-solid":`solid`,"fa-duotone":`solid`,fadr:`regular`,"fa-regular":`regular`,fadl:`light`,"fa-light":`light`,fadt:`thin`,"fa-thin":`thin`},sharp:{fa:`solid`,fass:`solid`,"fa-solid":`solid`,fasr:`regular`,"fa-regular":`regular`,fasl:`light`,"fa-light":`light`,fast:`thin`,"fa-thin":`thin`},"sharp-duotone":{fa:`solid`,fasds:`solid`,"fa-solid":`solid`,fasdr:`regular`,"fa-regular":`regular`,fasdl:`light`,"fa-light":`light`,fasdt:`thin`,"fa-thin":`thin`},slab:{"fa-regular":`regular`,faslr:`regular`},"slab-press":{"fa-regular":`regular`,faslpr:`regular`},thumbprint:{"fa-light":`light`,fatl:`light`},whiteboard:{"fa-semibold":`semibold`,fawsb:`semibold`},notdog:{"fa-solid":`solid`,fans:`solid`},"notdog-duo":{"fa-solid":`solid`,fands:`solid`},etch:{"fa-solid":`solid`,faes:`solid`},graphite:{"fa-thin":`thin`,fagt:`thin`},jelly:{"fa-regular":`regular`,fajr:`regular`},"jelly-fill":{"fa-regular":`regular`,fajfr:`regular`},"jelly-duo":{"fa-regular":`regular`,fajdr:`regular`},chisel:{"fa-regular":`regular`,facr:`regular`},utility:{"fa-semibold":`semibold`,fausb:`semibold`},"utility-duo":{"fa-semibold":`semibold`,faudsb:`semibold`},"utility-fill":{"fa-semibold":`semibold`,faufsb:`semibold`}},ft={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},pt=[`fa-classic`,`fa-duotone`,`fa-sharp`,`fa-sharp-duotone`,`fa-thumbprint`,`fa-whiteboard`,`fa-notdog`,`fa-notdog-duo`,`fa-chisel`,`fa-etch`,`fa-graphite`,`fa-jelly`,`fa-jelly-fill`,`fa-jelly-duo`,`fa-slab`,`fa-slab-press`,`fa-utility`,`fa-utility-duo`,`fa-utility-fill`],mt=`classic`,ht=`duotone`,gt=`sharp`,_t=`sharp-duotone`,vt=`chisel`,yt=`etch`,bt=`graphite`,xt=`jelly`,St=`jelly-duo`,Ct=`jelly-fill`,wt=`notdog`,Tt=`notdog-duo`,Et=`slab`,Dt=`slab-press`,Ot=`thumbprint`,kt=`utility`,At=`utility-duo`,jt=`utility-fill`,Mt=`whiteboard`,Nt=`Classic`,Pt=`Duotone`,Ft=`Sharp`,It=`Sharp Duotone`,Lt=`Chisel`,Rt=`Etch`,zt=`Graphite`,Bt=`Jelly`,Vt=`Jelly Duo`,Ht=`Jelly Fill`,Ut=`Notdog`,Wt=`Notdog Duo`,Gt=`Slab`,Kt=`Slab Press`,qt=`Thumbprint`,Jt=`Utility`,Yt=`Utility Duo`,Xt=`Utility Fill`,Zt=`Whiteboard`,Qt=[mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt];ct={},J(J(J(J(J(J(J(J(J(J(ct,mt,Nt),ht,Pt),gt,Ft),_t,It),vt,Lt),yt,Rt),bt,zt),xt,Bt),St,Vt),Ct,Ht),J(J(J(J(J(J(J(J(J(ct,wt,Ut),Tt,Wt),Et,Gt),Dt,Kt),Ot,qt),kt,Jt),At,Yt),jt,Xt),Mt,Zt);var $t={classic:{900:`fas`,400:`far`,normal:`far`,300:`fal`,100:`fat`},duotone:{900:`fad`,400:`fadr`,300:`fadl`,100:`fadt`},sharp:{900:`fass`,400:`fasr`,300:`fasl`,100:`fast`},"sharp-duotone":{900:`fasds`,400:`fasdr`,300:`fasdl`,100:`fasdt`},slab:{400:`faslr`},"slab-press":{400:`faslpr`},whiteboard:{600:`fawsb`},thumbprint:{300:`fatl`},notdog:{900:`fans`},"notdog-duo":{900:`fands`},etch:{900:`faes`},graphite:{100:`fagt`},chisel:{400:`facr`},jelly:{400:`fajr`},"jelly-fill":{400:`fajfr`},"jelly-duo":{400:`fajdr`},utility:{600:`fausb`},"utility-duo":{600:`faudsb`},"utility-fill":{600:`faufsb`}},en={"Font Awesome 7 Free":{900:`fas`,400:`far`},"Font Awesome 7 Pro":{900:`fas`,400:`far`,normal:`far`,300:`fal`,100:`fat`},"Font Awesome 7 Brands":{400:`fab`,normal:`fab`},"Font Awesome 7 Duotone":{900:`fad`,400:`fadr`,normal:`fadr`,300:`fadl`,100:`fadt`},"Font Awesome 7 Sharp":{900:`fass`,400:`fasr`,normal:`fasr`,300:`fasl`,100:`fast`},"Font Awesome 7 Sharp Duotone":{900:`fasds`,400:`fasdr`,normal:`fasdr`,300:`fasdl`,100:`fasdt`},"Font Awesome 7 Jelly":{400:`fajr`,normal:`fajr`},"Font Awesome 7 Jelly Fill":{400:`fajfr`,normal:`fajfr`},"Font Awesome 7 Jelly Duo":{400:`fajdr`,normal:`fajdr`},"Font Awesome 7 Slab":{400:`faslr`,normal:`faslr`},"Font Awesome 7 Slab Press":{400:`faslpr`,normal:`faslpr`},"Font Awesome 7 Thumbprint":{300:`fatl`,normal:`fatl`},"Font Awesome 7 Notdog":{900:`fans`,normal:`fans`},"Font Awesome 7 Notdog Duo":{900:`fands`,normal:`fands`},"Font Awesome 7 Etch":{900:`faes`,normal:`faes`},"Font Awesome 7 Graphite":{100:`fagt`,normal:`fagt`},"Font Awesome 7 Chisel":{400:`facr`,normal:`facr`},"Font Awesome 7 Whiteboard":{600:`fawsb`,normal:`fawsb`},"Font Awesome 7 Utility":{600:`fausb`,normal:`fausb`},"Font Awesome 7 Utility Duo":{600:`faudsb`,normal:`faudsb`},"Font Awesome 7 Utility Fill":{600:`faufsb`,normal:`faufsb`}},tn=new Map([[`classic`,{defaultShortPrefixId:`fas`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`,`brands`],futureStyleIds:[],defaultFontWeight:900}],[`duotone`,{defaultShortPrefixId:`fad`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`sharp`,{defaultShortPrefixId:`fass`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`sharp-duotone`,{defaultShortPrefixId:`fasds`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`chisel`,{defaultShortPrefixId:`facr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`etch`,{defaultShortPrefixId:`faes`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`graphite`,{defaultShortPrefixId:`fagt`,defaultStyleId:`thin`,styleIds:[`thin`],futureStyleIds:[],defaultFontWeight:100}],[`jelly`,{defaultShortPrefixId:`fajr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`jelly-duo`,{defaultShortPrefixId:`fajdr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`jelly-fill`,{defaultShortPrefixId:`fajfr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`notdog`,{defaultShortPrefixId:`fans`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`notdog-duo`,{defaultShortPrefixId:`fands`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`slab`,{defaultShortPrefixId:`faslr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`slab-press`,{defaultShortPrefixId:`faslpr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`thumbprint`,{defaultShortPrefixId:`fatl`,defaultStyleId:`light`,styleIds:[`light`],futureStyleIds:[],defaultFontWeight:300}],[`utility`,{defaultShortPrefixId:`fausb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}],[`utility-duo`,{defaultShortPrefixId:`faudsb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}],[`utility-fill`,{defaultShortPrefixId:`faufsb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}],[`whiteboard`,{defaultShortPrefixId:`fawsb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}]]),nn={chisel:{regular:`facr`},classic:{brands:`fab`,light:`fal`,regular:`far`,solid:`fas`,thin:`fat`},duotone:{light:`fadl`,regular:`fadr`,solid:`fad`,thin:`fadt`},etch:{solid:`faes`},graphite:{thin:`fagt`},jelly:{regular:`fajr`},"jelly-duo":{regular:`fajdr`},"jelly-fill":{regular:`fajfr`},notdog:{solid:`fans`},"notdog-duo":{solid:`fands`},sharp:{light:`fasl`,regular:`fasr`,solid:`fass`,thin:`fast`},"sharp-duotone":{light:`fasdl`,regular:`fasdr`,solid:`fasds`,thin:`fasdt`},slab:{regular:`faslr`},"slab-press":{regular:`faslpr`},thumbprint:{light:`fatl`},utility:{semibold:`fausb`},"utility-duo":{semibold:`faudsb`},"utility-fill":{semibold:`faufsb`},whiteboard:{semibold:`fawsb`}},rn=[`fak`,`fa-kit`,`fakd`,`fa-kit-duotone`],an={kit:{fak:`kit`,"fa-kit":`kit`},"kit-duotone":{fakd:`kit-duotone`,"fa-kit-duotone":`kit-duotone`}},on=[`kit`];J(J({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var sn={kit:{"fa-kit":`fak`},"kit-duotone":{"fa-kit-duotone":`fakd`}},cn={"Font Awesome Kit":{400:`fak`,normal:`fak`},"Font Awesome Kit Duotone":{400:`fakd`,normal:`fakd`}},ln={kit:{fak:`fa-kit`},"kit-duotone":{fakd:`fa-kit-duotone`}},un={kit:{kit:`fak`},"kit-duotone":{"kit-duotone":`fakd`}},dn,fn={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},pn=[`fa-classic`,`fa-duotone`,`fa-sharp`,`fa-sharp-duotone`,`fa-thumbprint`,`fa-whiteboard`,`fa-notdog`,`fa-notdog-duo`,`fa-chisel`,`fa-etch`,`fa-graphite`,`fa-jelly`,`fa-jelly-fill`,`fa-jelly-duo`,`fa-slab`,`fa-slab-press`,`fa-utility`,`fa-utility-duo`,`fa-utility-fill`];dn={},J(J(J(J(J(J(J(J(J(J(dn,`classic`,`Classic`),`duotone`,`Duotone`),`sharp`,`Sharp`),`sharp-duotone`,`Sharp Duotone`),`chisel`,`Chisel`),`etch`,`Etch`),`graphite`,`Graphite`),`jelly`,`Jelly`),`jelly-duo`,`Jelly Duo`),`jelly-fill`,`Jelly Fill`),J(J(J(J(J(J(J(J(J(dn,`notdog`,`Notdog`),`notdog-duo`,`Notdog Duo`),`slab`,`Slab`),`slab-press`,`Slab Press`),`thumbprint`,`Thumbprint`),`utility`,`Utility`),`utility-duo`,`Utility Duo`),`utility-fill`,`Utility Fill`),`whiteboard`,`Whiteboard`),J(J({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var mn={classic:{"fa-brands":`fab`,"fa-duotone":`fad`,"fa-light":`fal`,"fa-regular":`far`,"fa-solid":`fas`,"fa-thin":`fat`},duotone:{"fa-regular":`fadr`,"fa-light":`fadl`,"fa-thin":`fadt`},sharp:{"fa-solid":`fass`,"fa-regular":`fasr`,"fa-light":`fasl`,"fa-thin":`fast`},"sharp-duotone":{"fa-solid":`fasds`,"fa-regular":`fasdr`,"fa-light":`fasdl`,"fa-thin":`fasdt`},slab:{"fa-regular":`faslr`},"slab-press":{"fa-regular":`faslpr`},whiteboard:{"fa-semibold":`fawsb`},thumbprint:{"fa-light":`fatl`},notdog:{"fa-solid":`fans`},"notdog-duo":{"fa-solid":`fands`},etch:{"fa-solid":`faes`},graphite:{"fa-thin":`fagt`},jelly:{"fa-regular":`fajr`},"jelly-fill":{"fa-regular":`fajfr`},"jelly-duo":{"fa-regular":`fajdr`},chisel:{"fa-regular":`facr`},utility:{"fa-semibold":`fausb`},"utility-duo":{"fa-semibold":`faudsb`},"utility-fill":{"fa-semibold":`faufsb`}},hn={classic:[`fas`,`far`,`fal`,`fat`,`fad`],duotone:[`fadr`,`fadl`,`fadt`],sharp:[`fass`,`fasr`,`fasl`,`fast`],"sharp-duotone":[`fasds`,`fasdr`,`fasdl`,`fasdt`],slab:[`faslr`],"slab-press":[`faslpr`],whiteboard:[`fawsb`],thumbprint:[`fatl`],notdog:[`fans`],"notdog-duo":[`fands`],etch:[`faes`],graphite:[`fagt`],jelly:[`fajr`],"jelly-fill":[`fajfr`],"jelly-duo":[`fajdr`],chisel:[`facr`],utility:[`fausb`],"utility-duo":[`faudsb`],"utility-fill":[`faufsb`]},gn={classic:{fab:`fa-brands`,fad:`fa-duotone`,fal:`fa-light`,far:`fa-regular`,fas:`fa-solid`,fat:`fa-thin`},duotone:{fadr:`fa-regular`,fadl:`fa-light`,fadt:`fa-thin`},sharp:{fass:`fa-solid`,fasr:`fa-regular`,fasl:`fa-light`,fast:`fa-thin`},"sharp-duotone":{fasds:`fa-solid`,fasdr:`fa-regular`,fasdl:`fa-light`,fasdt:`fa-thin`},slab:{faslr:`fa-regular`},"slab-press":{faslpr:`fa-regular`},whiteboard:{fawsb:`fa-semibold`},thumbprint:{fatl:`fa-light`},notdog:{fans:`fa-solid`},"notdog-duo":{fands:`fa-solid`},etch:{faes:`fa-solid`},graphite:{fagt:`fa-thin`},jelly:{fajr:`fa-regular`},"jelly-fill":{fajfr:`fa-regular`},"jelly-duo":{fajdr:`fa-regular`},chisel:{facr:`fa-regular`},utility:{fausb:`fa-semibold`},"utility-duo":{faudsb:`fa-semibold`},"utility-fill":{faufsb:`fa-semibold`}},_n=`fa.fas.far.fal.fat.fad.fadr.fadl.fadt.fab.fass.fasr.fasl.fast.fasds.fasdr.fasdl.fasdt.faslr.faslpr.fawsb.fatl.fans.fands.faes.fagt.fajr.fajfr.fajdr.facr.fausb.faudsb.faufsb`.split(`.`).concat(pn,[`fa-solid`,`fa-regular`,`fa-light`,`fa-thin`,`fa-duotone`,`fa-brands`,`fa-semibold`]),vn=[`solid`,`regular`,`light`,`thin`,`duotone`,`brands`,`semibold`],yn=[1,2,3,4,5,6,7,8,9,10],bn=yn.concat([11,12,13,14,15,16,17,18,19,20]),xn=[].concat(Ge(Object.keys(hn)),vn,[`aw`,`fw`,`pull-left`,`pull-right`],[`2xs`,`xs`,`sm`,`lg`,`xl`,`2xl`,`beat`,`border`,`fade`,`beat-fade`,`bounce`,`flip-both`,`flip-horizontal`,`flip-vertical`,`flip`,`inverse`,`layers`,`layers-bottom-left`,`layers-bottom-right`,`layers-counter`,`layers-text`,`layers-top-left`,`layers-top-right`,`li`,`pull-end`,`pull-start`,`pulse`,`rotate-180`,`rotate-270`,`rotate-90`,`rotate-by`,`shake`,`spin-pulse`,`spin-reverse`,`spin`,`stack-1x`,`stack-2x`,`stack`,`ul`,`width-auto`,`width-fixed`,fn.GROUP,fn.SWAP_OPACITY,fn.PRIMARY,fn.SECONDARY],yn.map(function(e){return`${e}x`}),bn.map(function(e){return`w-${e}`})),Sn={"Font Awesome 5 Free":{900:`fas`,400:`far`},"Font Awesome 5 Pro":{900:`fas`,400:`far`,normal:`far`,300:`fal`},"Font Awesome 5 Brands":{400:`fab`,normal:`fab`},"Font Awesome 5 Duotone":{900:`fad`}},Cn=`___FONT_AWESOME___`,wn=16,Tn=`fa`,En=`svg-inline--fa`,Dn=`data-fa-i2svg`,On=`data-fa-pseudo-element`,kn=`data-fa-pseudo-element-pending`,An=`data-prefix`,jn=`data-icon`,Mn=`fontawesome-i2svg`,Nn=`async`,Pn=[`HTML`,`HEAD`,`STYLE`,`SCRIPT`],Fn=[`::before`,`::after`,`:before`,`:after`],In=function(){try{return process.env.NODE_ENV===`production`}catch{return!1}}();function Ln(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[mt]}})}var Rn=Y({},dt);Rn[mt]=Y(Y(Y(Y({},{"fa-duotone":`duotone`}),dt[mt]),an.kit),an[`kit-duotone`]);var zn=Ln(Rn),Bn=Y({},nn);Bn[mt]=Y(Y(Y(Y({},{duotone:`fad`}),Bn[mt]),un.kit),un[`kit-duotone`]);var Vn=Ln(Bn),Hn=Y({},gn);Hn[mt]=Y(Y({},Hn[mt]),ln.kit);var Un=Ln(Hn),Wn=Y({},mn);Wn[mt]=Y(Y({},Wn[mt]),sn.kit),Ln(Wn);var Gn=lt,Kn=`fa-layers-text`,qn=ut;Ln(Y({},$t));var Jn=[`class`,`data-prefix`,`data-icon`,`data-fa-transform`,`data-fa-mask`],Yn=ft,Xn=[].concat(Ge(on),Ge(xn)),Zn=rt.FontAwesomeConfig||{};function Qn(e){var t=X.querySelector(`script[`+e+`]`);if(t)return t.getAttribute(e)}function $n(e){return e===``?!0:e===`false`?!1:e===`true`?!0:e}X&&typeof X.querySelector==`function`&&[[`data-family-prefix`,`familyPrefix`],[`data-css-prefix`,`cssPrefix`],[`data-family-default`,`familyDefault`],[`data-style-default`,`styleDefault`],[`data-replacement-class`,`replacementClass`],[`data-auto-replace-svg`,`autoReplaceSvg`],[`data-auto-add-css`,`autoAddCss`],[`data-search-pseudo-elements`,`searchPseudoElements`],[`data-search-pseudo-elements-warnings`,`searchPseudoElementsWarnings`],[`data-search-pseudo-elements-full-scan`,`searchPseudoElementsFullScan`],[`data-observe-mutations`,`observeMutations`],[`data-mutate-approach`,`mutateApproach`],[`data-keep-original-source`,`keepOriginalSource`],[`data-measure-performance`,`measurePerformance`],[`data-show-missing-icons`,`showMissingIcons`]].forEach(function(e){var t=We(e,2),n=t[0],r=t[1],i=$n(Qn(n));i!=null&&(Zn[r]=i)});var er={styleDefault:`solid`,familyDefault:mt,cssPrefix:Tn,replacementClass:En,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:`async`,keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Zn.familyPrefix&&(Zn.cssPrefix=Zn.familyPrefix);var tr=Y(Y({},er),Zn);tr.autoReplaceSvg||(tr.observeMutations=!1);var Z={};Object.keys(er).forEach(function(e){Object.defineProperty(Z,e,{enumerable:!0,set:function(t){tr[e]=t,nr.forEach(function(e){return e(Z)})},get:function(){return tr[e]}})}),Object.defineProperty(Z,`familyPrefix`,{enumerable:!0,set:function(e){tr.cssPrefix=e,nr.forEach(function(e){return e(Z)})},get:function(){return tr.cssPrefix}}),rt.FontAwesomeConfig=Z;var nr=[];function rr(e){return nr.push(e),function(){nr.splice(nr.indexOf(e),1)}}var ir=wn,ar={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function or(e){if(!(!e||!ot)){var t=X.createElement(`style`);t.setAttribute(`type`,`text/css`),t.innerHTML=e;for(var n=X.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],o=(a.tagName||``).toUpperCase();[`STYLE`,`LINK`].indexOf(o)>-1&&(r=a)}return X.head.insertBefore(t,r),e}}var sr=`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`;function cr(){for(var e=12,t=``;e-- >0;)t+=sr[Math.random()*62|0];return t}function lr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ur(e){return e.classList?lr(e.classList):(e.getAttribute(`class`)||``).split(` `).filter(function(e){return e})}function dr(e){return`${e}`.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function fr(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}="${dr(e[n])}" `},``).trim()}function pr(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}: ${e[n].trim()};`},``)}function mr(e){return e.size!==ar.size||e.x!==ar.x||e.y!==ar.y||e.rotate!==ar.rotate||e.flipX||e.flipY}function hr(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth;return{outer:{transform:`translate(${n/2} 256)`},inner:{transform:`${`translate(${t.x*32}, ${t.y*32}) `} ${`scale(${t.size/16*(t.flipX?-1:1)}, ${t.size/16*(t.flipY?-1:1)}) `} ${`rotate(${t.rotate} 0 0)`}`},path:{transform:`translate(${r/2*-1} -256)`}}}function gr(e){var t=e.transform,n=e.width,r=n===void 0?wn:n,i=e.height,a=i===void 0?wn:i,o=e.startCentered,s=o===void 0?!1:o,c=``;return s&&st?c+=`translate(${t.x/ir-r/2}em, ${t.y/ir-a/2}em) `:s?c+=`translate(calc(-50% + ${t.x/ir}em), calc(-50% + ${t.y/ir}em)) `:c+=`translate(${t.x/ir}em, ${t.y/ir}em) `,c+=`scale(${t.size/ir*(t.flipX?-1:1)}, ${t.size/ir*(t.flipY?-1:1)}) `,c+=`rotate(${t.rotate}deg) `,c}var _r=`:root, :host {
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require(`react`),l=s(c,1);c=s(c);let u=require(`react/jsx-runtime`),d=require(`react-dom`);var f=e=>{let{as:t,variant:n=`body`,className:r=``,children:i,...a}=e;return(0,u.jsx)(t??`p`,{className:`${{h1:`text-5xl font-rockwell text-primary mb-6`,h2:`text-4xl font-rockwell text-primary mb-4`,h3:`text-2xl font-rockwell mb-3 text-primary`,standard:`text-secondary`,body:`text-sm text-primary`,nav:`text-base text-primary`,breadcrumb:`hover:text-accent text-secondaryActive`,navlink:`font-bold`,free:``,bold:`text-base font-bold`,link:`text-base text-accent hover:underline`,caption:`text-sm text-secondaryActive`,eyebrow:`text-sm text-light`}[n]} ${r}`,...a,children:i})},p={xs:`text-xs`,sm:`text-sm`,md:`text-md`,base:`text-base`,lg:`text-lg`,xl:`text-xl`,"2xl":`text-2xl`,"3xl":`text-3xl`,"4xl":`text-4xl`,"5xl":`text-5xl`},m={inherit:`text-inherit`,primary:`text-primary`,secondary:`text-secondary`,secondaryHover:`text-secondaryHover`,accent:`text-accent`},h=e=>e?e.startsWith(`fa-`)?e:`fa-${e}`:``,g=({iconType:e,iconName:t,alt:n=``,size:r=`base`,color:i=`inherit`,className:a=``,title:o})=>{if(!e||!t)return null;let s=!n,c=p[r],l=m[i],d=h(t);return(0,u.jsx)(`span`,{className:`inline-flex items-center justify-center ${c} ${l} ${a}`,children:(0,u.jsx)(`i`,{className:`${e} ${d}`,title:o,"aria-label":s?void 0:n,"aria-hidden":s?!0:void 0})})},_={xs:`h-3 w-3`,sm:`h-4 w-4`,md:`h-5 w-5`,lg:`h-6 w-6`,xl:`h-8 w-8`,"2xl":`h-10 w-10`},v=({label:e=`Loading...`,size:t=`md`})=>{let n=!!e;return(0,u.jsxs)(`span`,{role:n?`status`:void 0,"aria-hidden":n?void 0:!0,className:`inline-flex items-center justify-center`,children:[(0,u.jsxs)(`svg`,{"aria-hidden":`true`,className:`${_[t]} animate-spin`,viewBox:`0 0 100 101`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,u.jsx)(`path`,{className:`text-borderTertiary`,d:`M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z`,fill:`currentColor`}),(0,u.jsx)(`path`,{className:`text-tertiary`,d:`M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z`,fill:`currentColor`})]}),n?(0,u.jsx)(`span`,{className:`sr-only`,children:e}):null]})},y=`inline-flex items-center gap-2 transition focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer`,b={solid:`rounded-lg border border-transparent`,outline:`rounded-lg border bg-transparent`,ghost:`rounded-lg bg-transparent border border-transparent`,link:`bg-transparent border-none rounded-none p-0`,chip:`border-none rounded-none`},x={xs:`px-2 py-1 text-xs`,sm:`px-3 py-1.5 text-sm`,md:`px-4 py-3 text-sm`,lg:`px-5 py-3.5 text-base`},S={xs:`px-1.5 py-0.5 text-xs`,sm:`px-2 py-1 text-sm`,md:`px-2.5 py-1 text-sm`,lg:`px-3 py-1.5 text-base`},C={xs:`w-7 h-7 p-1`,sm:`w-8 h-8 p-1.5`,md:`w-9 h-9 p-2`,lg:`w-10 h-10 p-2`},w={"solid.primary":`bg-primary text-secondary hover:bg-primaryHover active:bg-primaryActive`,"solid.secondary":`bg-secondary text-primary hover:bg-secondaryHover active:bg-secondaryActive`,"solid.neutral":`bg-secondaryMultiButton text-secondary hover:bg-secondaryHover active:bg-secondaryActive`,"solid.accent":`bg-accent text-secondary hover:bg-accentHover active:bg-accentActive`,"solid.danger":`bg-error text-secondary hover:opacity-90 active:opacity-80`,"solid.muted":`bg-secondaryMultiButton text-secondary hover:bg-secondaryHover active:bg-secondaryActive`,"solid.ghost":`bg-transparent border border-accent text-accent hover:text-accentHover hover:border-accentHover active:text-accentActive active:border-accentActive`,"solid.radio":`bg-secondary text-primary hover:bg-secondaryActive hover:text-secondary active:bg-secondaryActive`,"outline.primary":`border-primary text-primary hover:border-primaryHover hover:text-primaryHover active:border-primaryActive active:text-primaryActive`,"outline.secondary":`border-secondary text-secondary hover:border-secondaryHover hover:text-secondaryHover active:border-secondaryActive active:text-secondaryActive`,"outline.neutral":`border-secondaryActive text-primary hover:border-secondaryHover active:border-secondaryActive`,"outline.accent":`border-accent text-accent hover:border-accentHover hover:text-accentHover active:border-accentActive active:text-accentActive`,"outline.danger":`border-error text-error hover:opacity-90 active:opacity-80`,"outline.muted":`border-secondaryMultiButton text-secondaryMultiButton hover:border-secondaryActive hover:text-secondaryActive active:border-secondaryActive active:text-secondaryActive`,"outline.ghost":`border-secondaryActive text-secondaryActive hover:border-accent hover:text-primary active:border-primaryActive active:text-accentActive`,"outline.radio":`border-primary text-primary hover:border-primaryHover hover:text-primaryHover active:border-primaryActive active:text-primaryActive`,"ghost.primary":`text-primary hover:bg-primary/10 active:bg-primary/20`,"ghost.secondary":`text-secondary hover:bg-secondary/10 active:bg-secondary/20`,"ghost.neutral":`text-primary hover:bg-secondary/15 active:bg-secondary/25`,"ghost.accent":`text-accent hover:bg-accent/10 active:bg-accent/20`,"ghost.danger":`text-error hover:bg-error/10 active:bg-error/20`,"ghost.muted":`text-secondaryMultiButton hover:bg-secondaryMultiButton/10 active:bg-secondaryMultiButton/20`,"ghost.ghost":`text-secondary hover:bg-secondary active:bg-secondary hover:text-primary active:text-primary`,"ghost.radio":`text-primary hover:bg-secondaryHover active:bg-secondaryActive`,"link.primary":`text-primary hover:text-tertiary active:text-tertiary`,"link.secondary":`text-secondary hover:text-secondaryHover active:text-secondaryActive`,"link.neutral":`text-primary hover:text-secondaryActive active:text-secondaryActive`,"link.accent":`text-accent hover:text-accentHover active:text-accentActive`,"link.danger":`text-error hover:opacity-90 active:opacity-80`,"link.muted":`text-secondaryMultiButton hover:text-secondaryActive active:text-secondaryActive`,"link.ghost":`text-secondary hover:text-primary active:text-secondaryActive`,"link.radio":`text-primary`,"chip.neutral":`bg-multibarBackground text-primary hover:bg-multibarBackground active:bg-multibarBackground`},T={"link.primary":`border-b-2 border-accent`,"link.secondary":`border-b-2 border-secondary`,"ghost.primary":`ring-2 ring-primaryActive`,"ghost.secondary":`ring-2 ring-secondaryActive`,"outline.radio":`ring-2 ring-secondaryActive`},E=e=>{let{variant:t,intent:n,size:r,active:i=!1,fullWidth:a=!1,iconOnly:o=!1,className:s=``,buttonAlignment:c=`justify-center`}=e,l=`${t}.${n}`,u=o?C[r]:x[r],d=t===`chip`?S[r]:u;return[y,b[t],d,w[l],i?T[l]??``:``,a?`w-full`:``,c,s].filter(Boolean).join(` `)},D=()=>`body`,O=e=>{let{label:t,children:n,iconType:r,iconName:i,iconAlt:a=``,iconSize:o=`md`,iconPosition:s=`left`,variant:c=`solid`,intent:l=`primary`,buttonType:d,size:p=`md`,buttonAlignment:m=`justify-center`,className:h=``,active:_=!1,fullWidth:y=!1,type:b=`button`,...x}=e,S=null;r&&i&&(S=i===`spinner`?(0,u.jsx)(v,{label:``,size:o}):(0,u.jsx)(g,{iconType:r,iconName:i,alt:a,size:o}));let C=E({variant:c,intent:d??l,size:p,active:_,fullWidth:y,iconOnly:!t&&!n&&!!S,className:h,buttonAlignment:m}),w=(0,u.jsxs)(u.Fragment,{children:[s===`left`&&S,n??(t?(0,u.jsx)(f,{as:`span`,variant:D(),className:`text-inherit!`,children:t}):null),s===`right`&&S]});return(0,u.jsx)(`button`,{type:b,className:C,...x,children:w})};function k({src:e,width:t,quality:n,fit:r=`cover`}){let i=new URL(`/.netlify/images`,`https://example.com`);return i.searchParams.set(`url`,e),t&&i.searchParams.set(`w`,String(t)),n&&i.searchParams.set(`q`,String(n)),i.searchParams.set(`fit`,r),i.pathname+`?`+i.searchParams.toString()}function A(){return typeof process<`u`&&process?.env?.NETLIFY===`true`}var j=c.default.forwardRef(({src:e,alt:t,className:n=``,loading:r=`lazy`,decoding:i=`async`,width:a,quality:o,fit:s,useNetlifyImages:c,...l},d)=>{let f=c??A(),p=typeof e==`string`&&e.startsWith(`http`),m=typeof a==`number`?a:void 0,h=e;return f&&p&&(h=k({src:e,width:m,quality:o,fit:s})),(0,u.jsx)(`img`,{ref:d,src:h,alt:t,className:n,loading:r,decoding:i,width:a,...l})});j.displayName=`Image`;var M=`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,N=(e,t)=>{if(!t)return e;try{let t=new URL(e),n=t.hostname.toLowerCase();if(n===`youtube.com`||n.endsWith(`.youtube.com`)||n===`youtube-nocookie.com`||n.endsWith(`.youtube-nocookie.com`))return t.searchParams.set(`mute`,`1`),t.toString();if(n===`vimeo.com`||n.endsWith(`.vimeo.com`))return t.searchParams.set(`muted`,`1`),t.toString()}catch{return e}return e},P=({src:e,title:t,muted:n=!0,className:r=``,allow:i=M,allowFullScreen:a=!0,loading:o=`lazy`,...s})=>(0,u.jsx)(`iframe`,{src:N(e,n),title:t,className:`w-full ${r}`.trim(),allow:i,allowFullScreen:a,loading:o,...s}),F=({embedUrl:e,title:t,height:n=500,iframeRef:r})=>e?(0,u.jsx)(`div`,{className:`w-full overflow-hidden`,children:(0,u.jsx)(`iframe`,{ref:r,src:e,title:t,width:`100%`,height:n,loading:`lazy`,allow:`autoplay; fullscreen; xr-spatial-tracking`,allowFullScreen:!0,referrerPolicy:`strict-origin-when-cross-origin`,className:`block w-full border-0`})}):null,I=e=>typeof e==`string`&&e.trim().length>0?e:void 0,L=({src:e,fallbackSrc:t,placeholderSrc:n,alt:r,imageClassName:i=``,placeholderClassName:a=``,onImageStatusChange:o,...s})=>{let l=c.default.useRef(null),d=I(e),f=I(t),p=I(n),[m,h]=c.default.useState(d),[g,_]=c.default.useState(d?`loading`:`idle`),v=c.default.useCallback((e,t)=>{_(e),o?.(e,t)},[o]);c.default.useEffect(()=>{h(d),v(d?`loading`:`idle`,d)},[d,f,v]);let y=c.default.useCallback(()=>{v(`loaded`,m)},[m,v]),b=c.default.useCallback(()=>{if(f&&m!==f){h(f),v(`loading`,f);return}h(void 0),v(`error`)},[f,m,v]);return c.default.useEffect(()=>{let e=l.current;if(!(!e||!m||!e.complete)){if(e.naturalWidth>0){y();return}b()}},[b,y,m]),(0,u.jsxs)(u.Fragment,{children:[p?(0,u.jsx)(`img`,{src:p,alt:``,"aria-hidden":`true`,className:a}):null,m?(0,u.jsx)(j,{...s,ref:l,src:m,alt:r,className:`${i} ${g===`loaded`?`opacity-100`:`opacity-0`}`.trim(),onError:b,onLoad:y}):null]})},R=({id:e,name:t,value:n=``,placeholder:r=``,ariaLabel:i,disabled:a=!1,readOnly:o=!1,required:s=!1,hasError:c=!1,rows:l=4,onChange:d,onBlur:f,onFocus:p})=>{let m=[`w-full resize-y rounded-md border bg-white px-4 py-3 text-sm text-primary outline-none transition-colors placeholder-tertiary`,c?`border-accent`:`border-secondaryHover`,a?`cursor-not-allowed opacity-60`:``].filter(Boolean).join(` `);return(0,u.jsx)(`textarea`,{id:e,name:t,value:n,placeholder:r,"aria-label":i,"aria-invalid":c||void 0,disabled:a,readOnly:o,required:s,rows:l,className:m,onChange:d,onBlur:f,onFocus:p})},ee={sm:`max-w-sm`,md:`max-w-md`,lg:`max-w-lg`,xl:`max-w-xl`,"2xl":`max-w-2xl`,"4xl":`max-w-4xl`,"6xl":`max-w-6xl`},te={none:``,section:`mb-16 md:mb-20`,compactPaddedSection:`px-4 mb-8 md:px-0 md:mb-10`,paddedSection:`px-4 mb-16 md:px-0 md:mb-20`,padded:`px-4 pb-16 md:px-0 md:pb-20`,preview:`px-4 py-8 md:px-0`,verticalPreview:`py-8`},ne=`mt-10 md:mt-20`,z=({children:e,className:t=``,innerClassName:n=``,isFirst:r=!1,maxWidth:i=`6xl`,spacing:a=`paddedSection`})=>(0,u.jsx)(`div`,{className:`mx-auto w-full ${r?ne:``} ${te[a]} ${t}`.trim(),children:(0,u.jsx)(`div`,{className:`mx-auto w-full ${ee[i]} ${n}`.trim(),children:e})}),re={1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`},ie={sm:`gap-3`,md:`gap-6`,lg:`gap-8`,xl:`gap-12`},B=({children:e,className:t=``,gridClassName:n=``,maxWidth:r=`6xl`,spacing:i=`none`,columns:a=3,gap:o=`md`})=>(0,u.jsx)(z,{className:t,maxWidth:r,spacing:i,children:(0,u.jsx)(`div`,{className:`grid ${re[a]} ${ie[o]} ${n}`.trim(),children:e})}),V={sm:`gap-2`,md:`gap-4`,lg:`gap-6`,xl:`gap-8`},H={start:`items-start`,center:`items-center`,end:`items-end`,stretch:`items-stretch`},U={start:`justify-start`,center:`justify-center`,end:`justify-end`,between:`justify-between`,around:`justify-around`,evenly:`justify-evenly`},W=({children:e,className:t=``,gap:n=`md`,align:r=`center`,justify:i=`start`,wrap:a=!0})=>(0,u.jsx)(`div`,{className:`flex ${a?`flex-wrap`:`flex-nowrap`} ${V[n]} ${H[r]} ${U[i]} ${t}`.trim(),children:e}),G=`font-bold text-primary`,ae=(e,t,n)=>{e?.({label:t,href:n})},oe=({heading:e,address:t,mapLink:n,hours:r,phone:i,email:a,onAddressClick:o,onMapClick:s,onPhoneClick:c,onEmailClick:l})=>{let d=t?.lines.join(` `);return(0,u.jsxs)(`article`,{className:`w-full bg-white py-10 md:py-16`,children:[(0,u.jsx)(f,{as:`h2`,variant:`h2`,className:`mb-8`,children:e}),(0,u.jsxs)(`div`,{className:`space-y-4 text-base text-primary`,children:[t||n?(0,u.jsxs)(`div`,{className:`space-y-1`,children:[t?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`bold`,className:`text-primary`,children:t.label??`Address:`}),(0,u.jsx)(`div`,{children:t.href?(0,u.jsx)(f,{as:`a`,variant:`link`,href:t.href,onClick:()=>ae(o,d??``,t.href),children:d}):(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-base`,children:d})})]}):null,n?(0,u.jsx)(`div`,{children:n.href?(0,u.jsx)(f,{as:`a`,variant:`link`,href:n.href,onClick:()=>ae(s,n.label,n.href),children:n.label}):(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-base`,children:n.label})}):null]}):null,r?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`bold`,className:`text-primary`,children:r.label??`Business Hours:`}),(0,u.jsx)(`dl`,{children:r.items.map(e=>(0,u.jsxs)(`div`,{className:`flex flex-wrap gap-x-1`,children:[(0,u.jsxs)(`dt`,{className:G,children:[e.dayLabel,`:`]}),(0,u.jsx)(`dd`,{children:e.hours})]},e.dayLabel))})]}):null,i?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`bold`,className:`text-primary`,children:i.label??`Telephone Number:`}),(0,u.jsx)(`div`,{children:i.href?(0,u.jsx)(f,{as:`a`,variant:`link`,href:i.href,onClick:()=>ae(c,i.value,i.href),children:i.value}):(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-base`,children:i.value})})]}):null,a?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`bold`,className:`text-primary`,children:a.label??`Email Address:`}),(0,u.jsx)(`div`,{children:a.href?(0,u.jsx)(f,{as:`a`,variant:`link`,href:a.href,onClick:()=>ae(l,a.value,a.href),children:a.value}):(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-base`,children:a.value})})]}):null]})]})},se=(e,t,n)=>Math.max(t,Math.min(n,e)),ce=e=>[`h-12 w-12 border-2 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),le=({imageSrc:e,imageAlt:t,title:n,brand:r,decorNumber:i,productType:a,quantity:o,price:s,minQuantity:c=1,maxQuantity:l=99,freeLabel:d=`Free`,removeItemLabel:p=`Remove ${n} from cart`,decreaseQuantityLabel:m=`Decrease quantity`,increaseQuantityLabel:h=`Increase quantity`,onQuantityChange:g,onRemoveItem:_})=>{let v=se(o,c,l),y=()=>{let e=se(v-1,c,l);e!==v&&g?.(e)},b=()=>{let e=se(v+1,c,l);e!==v&&g?.(e)},x=v>c,S=v<l;return(0,u.jsxs)(`div`,{className:`relative flex rounded-lg bg-tertiaryActive p-5`,children:[(0,u.jsx)(O,{className:`absolute top-5 right-5`,iconType:`fa-regular`,iconName:`trash-can`,intent:`primary`,variant:`ghost`,onClick:_,"aria-label":p}),(0,u.jsx)(j,{src:e,alt:t,quality:90,className:`h-32 w-32 rounded-lg object-cover`}),(0,u.jsxs)(`div`,{className:`ml-4 flex-1 content-center`,children:[i?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-tertiary`,children:i}):null,(0,u.jsx)(f,{variant:`free`,className:`text-primary text-md font-extrabold`,children:n}),(0,u.jsxs)(`div`,{className:`flex justify-between`,children:[r?(0,u.jsx)(f,{variant:`free`,className:`text-md text-primary`,children:r}):null,(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-md font-bold text-primary`,children:a===`sample`&&s.value===0?d:s.label})]}),(0,u.jsxs)(`div`,{className:`mt-2 flex items-stretch gap-1`,children:[(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":m,type:`button`,disabled:!x,onClick:y,className:ce(x)}),(0,u.jsx)(`div`,{className:`flex min-w-10 items-center justify-center`,children:(0,u.jsx)(f,{as:`span`,variant:`free`,className:`text-xl`,children:v})}),(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":h,type:`button`,disabled:!S,onClick:b,className:ce(S)})]})]})]})},ue=({actions:e,onActionClick:t})=>{let n=e=>{t?.({action:e})};return(0,u.jsx)(`div`,{className:`w-full space-y-4`,children:e.map((e,t)=>{let r=t===0;return(0,u.jsx)(O,{type:`button`,label:e.label,iconName:e.iconName,iconType:e.iconName?e.iconType??`fa-solid`:void 0,iconAlt:e.iconAlt,"aria-label":e.ariaLabel,disabled:e.disabled,intent:r?`accent`:`muted`,variant:r?`solid`:`outline`,buttonAlignment:`justify-center`,onClick:()=>n(e),className:r?`h-12 w-full`:`h-12 w-full hover:border-accent! hover:text-accent! active:border-accentActive! active:text-accentActive!`},e.id)})})},K=({children:e,onCardClick:t,ariaLabel:n,ariaControls:r,ariaExpanded:i,ariaPressed:a,className:o})=>(0,u.jsx)(`button`,{type:`button`,onClick:t,"aria-label":n,"aria-controls":r,"aria-expanded":i,"aria-pressed":a,className:o||`block text-left bg-transparent border-0 p-0 cursor-pointer`,children:e}),de=({statuses:e,readyLabel:t=`Good`,notReadyLabel:n=`No Good`})=>(0,u.jsx)(`span`,{className:`flex shrink-0 items-start gap-2`,"aria-label":`Readiness`,children:e.map(e=>{let r=e.ready?t:n,i=`${e.label}: ${r}`;return(0,u.jsxs)(`span`,{"aria-label":i,title:i,className:`inline-flex min-w-4 flex-col items-center gap-1`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-2 w-2 rounded-full ${e.ready?`bg-primary`:`bg-borderTertiary`}`}),(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`text-[10px] font-bold uppercase leading-none text-tertiary`,children:e.shortLabel})]},e.id)})}),fe=(e,t)=>e&&t?`border-accent bg-accent/10`:e?`border-primary bg-tertiaryActive`:`border-borderTertiary bg-secondary hover:border-primary`,pe=({sampleId:e,sku:t,isSampleable:n,bigCommerceReady:r,selected:i=!1,selectionMode:a=!1,selectLabel:o=`Select sample`,deselectLabel:s=`Deselect sample`,onSampleClick:c})=>{let l=[...r===void 0?[]:[{id:`big-commerce`,shortLabel:`BC`,label:`Big Commerce`,ready:r}],{id:`sample`,shortLabel:`SMP`,label:`Sample`,ready:n}];return(0,u.jsx)(K,{ariaLabel:a?`${i?s:o} ${t}`:t,ariaPressed:i,className:`w-full rounded-md border p-3 text-left transition ${fe(i,a)}`,onCardClick:()=>c({sampleId:e,sku:t}),children:(0,u.jsxs)(`span`,{className:`flex items-start gap-2`,children:[a?(0,u.jsx)(g,{iconType:i?`fa-solid`:`fa-regular`,iconName:i?`square-check`:`square`,alt:``,size:`sm`,color:i?`accent`:`inherit`,className:`mt-0.5 w-5 shrink-0`}):null,(0,u.jsx)(`span`,{className:`min-w-0 flex-1 break-all text-sm font-bold text-primary`,children:t}),(0,u.jsx)(de,{statuses:l})]})})},me=(e,t)=>e&&t?`border-accent bg-accent/10`:e?`border-primary bg-tertiaryActive`:`border-borderTertiary bg-secondary hover:border-primary`,he=({skuId:e,sku:t,lxReady:n,bigCommerceReady:r,isForSale:i,grade:a,finish:o,size:s,selected:c=!1,selectionMode:l=!1,forSaleLabel:d=`For sale`,notForSaleLabel:f=`Not for sale`,selectLabel:p=`Select sheet`,deselectLabel:m=`Deselect sheet`,onSkuClick:h})=>{let _=i?d:f,v=[{id:`lx`,shortLabel:`LX`,label:`LX`,ready:n},...r===void 0?[]:[{id:`big-commerce`,shortLabel:`BC`,label:`Big Commerce`,ready:r}],{id:`ecommerce`,shortLabel:`EC`,label:`Is Ecomm`,ready:i}];return(0,u.jsx)(K,{ariaLabel:l?`${c?m:p} ${t}`:t,ariaPressed:c,className:`w-full rounded-md border p-3 text-left transition ${me(c,l)}`,onCardClick:()=>h({skuId:e,sku:t}),children:(0,u.jsxs)(`span`,{className:`flex items-start gap-2`,children:[l?(0,u.jsx)(g,{iconType:c?`fa-solid`:`fa-regular`,iconName:c?`square-check`:`square`,alt:``,size:`sm`,color:c?`accent`:`inherit`,className:`mt-0.5 w-5 shrink-0`}):null,(0,u.jsx)(g,{iconType:`fa-solid`,iconName:i?`shop`:`shop-slash`,alt:_,title:_,size:`sm`,className:`mt-0.5 w-5 shrink-0 ${i?``:`text-secondaryHover`}`}),(0,u.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`span`,{className:`block text-sm font-bold text-primary`,children:t}),(0,u.jsxs)(`span`,{className:`mt-1 block text-xs text-tertiary`,children:[o,` · `,a,` · `,s]})]}),(0,u.jsx)(de,{statuses:v})]})})},ge=e=>(0,u.jsx)(O,{variant:`ghost`,size:`md`,...e}),_e=({decorId:e,decorCode:t,name:n,imageUrl:r,imageAlt:i=``,availableSheetCount:a,sheetCount:o,availableSampleCount:s,sampleCount:l,sheetLabel:d=`Sheets`,sampleLabel:p=`Samples`,openLabel:m=`Open`,actionsLabel:h=`Actions`,deleteLabel:_=`Delete decor`,disabled:v=!1,onDecorClick:y,onDeleteDecorRequest:b})=>{let[x,S]=(0,c.useState)(!1),C=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!x)return;let e=e=>{C.current?.contains(e.target)||S(!1)},t=e=>{e.key===`Escape`&&S(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[x]);let w=(0,u.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-3 md:gap-4`,children:[(0,u.jsx)(`div`,{className:`flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-md border border-borderTertiary bg-adminSideNavBackground md:h-16 md:w-16`,children:r?(0,u.jsx)(j,{src:r,alt:i,quality:85,fit:`cover`,className:`h-full w-full object-cover`}):(0,u.jsx)(g,{iconType:`fa-regular`,iconName:`image`,alt:`No decor image available`,size:`lg`,className:`text-tertiary`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1 md:flex md:items-center md:gap-4`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 md:flex-1`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`truncate text-sm font-bold text-primary md:text-base`,children:n}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 font-mono text-xs text-tertiary`,children:t})]}),(0,u.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-x-2 gap-y-1 text-xs text-primary md:mt-0 md:shrink-0 md:flex-nowrap md:justify-end md:whitespace-nowrap`,children:[(0,u.jsx)(`span`,{"aria-label":`${d}: ${a.toLocaleString()} available out of ${o.toLocaleString()}`,children:(0,u.jsxs)(`span`,{"aria-hidden":`true`,children:[d,` `,a.toLocaleString(),` /`,` `,o.toLocaleString()]})}),(0,u.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,u.jsx)(`span`,{"aria-label":`${p}: ${s.toLocaleString()} available out of ${l.toLocaleString()}`,children:(0,u.jsxs)(`span`,{"aria-hidden":`true`,children:[p,` `,s.toLocaleString(),` /`,` `,l.toLocaleString()]})})]})]})]});return(0,u.jsxs)(`article`,{className:`group relative flex w-full items-center rounded-md border border-borderTertiary bg-secondary p-3 shadow-sm transition hover:border-primary md:p-4`,children:[y&&!v?(0,u.jsx)(K,{ariaLabel:`${m} ${n} (${t})`,className:`absolute inset-0 z-10 cursor-pointer rounded-md text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2`,onCardClick:()=>y({decorId:e,decorCode:t}),children:(0,u.jsx)(`span`,{className:`sr-only`,children:`${m} ${n}`})}):null,w,b&&!v?(0,u.jsxs)(`div`,{ref:C,className:`relative z-20 ml-1 shrink-0`,children:[(0,u.jsx)(ge,{iconType:`fa-solid`,iconName:`ellipsis-vertical`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`neutral`,"aria-label":`${h} for ${n} (${t})`,"aria-haspopup":`menu`,"aria-expanded":x,onClick:()=>S(e=>!e)}),x?(0,u.jsx)(`div`,{role:`menu`,className:`absolute right-0 top-full z-30 mt-1 min-w-40 rounded-md border border-borderTertiary bg-secondary p-1 shadow-lg`,children:(0,u.jsx)(O,{label:_,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,iconSize:`sm`,size:`sm`,variant:`ghost`,intent:`danger`,fullWidth:!0,role:`menuitem`,buttonAlignment:`justify-start`,onClick:()=>{S(!1),b({decorId:e,decorCode:t,name:n,sheetCount:o,sampleCount:l})}})}):null]}):null,(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`sm`,className:`ml-1 shrink-0 text-tertiary`})]})},ve=`data:image/svg+xml,%3csvg%20width='46'%20height='24'%20viewBox='0%200%2046%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%200V0.799999C3.8%200.799999%206.9%205.7%206.9%2011.8C6.9%2017.9%203.8%2022.8%200%2022.8V23.6H22.6V23C15%2022.1%209.5%2018.6%209.5%2011.9C9.5%205.2%2017.5%201.5%2027.4%201.5C37.3%201.5%2042.1%203.5%2044.4%208.2H45V0.200001H0V0Z'%20fill='white'/%3e%3cpath%20d='M44.1984%2010.6996C44.1984%2010.6996%2044.1984%2010.6996%2043.9984%2010.6996H43.7984V10.2996H43.9984C44.0984%2010.2996%2044.1984%2010.2996%2044.1984%2010.2996C44.1984%2010.2996%2044.1984%2010.2996%2044.1984%2010.4996C44.1984%2010.6996%2044.1984%2010.5996%2044.0984%2010.6996H44.1984ZM44.4984%2011.1996C44.4984%2011.0996%2044.4984%2010.9996%2044.4984%2010.9996C44.4984%2010.9996%2044.3984%2010.9996%2044.2984%2010.8996C44.2984%2010.8996%2044.3984%2010.8996%2044.4984%2010.8996C44.4984%2010.8996%2044.5984%2010.7996%2044.5984%2010.6996C44.5984%2010.5996%2044.5984%2010.4996%2044.3984%2010.3996C44.3984%2010.3996%2044.1984%2010.3996%2044.0984%2010.3996H43.6984V11.4996H43.8984V11.0996H43.9984H44.1984C44.1984%2011.0996%2044.2984%2011.1996%2044.2984%2011.2996V11.3996H44.4984V11.1996ZM44.6984%2011.2996C44.4984%2011.4996%2044.2984%2011.4996%2044.0984%2011.4996C43.8984%2011.4996%2043.6984%2011.4996%2043.4984%2011.2996C43.2984%2011.0996%2043.2984%2010.8996%2043.2984%2010.6996C43.2984%2010.4996%2043.2984%2010.2996%2043.4984%2010.0996C43.6984%209.89961%2043.8984%209.89961%2044.0984%209.89961C44.2984%209.89961%2044.4984%209.89961%2044.6984%2010.0996C44.8984%2010.2996%2044.8984%2010.4996%2044.8984%2010.6996C44.8984%2010.8996%2044.8984%2011.0996%2044.6984%2011.2996ZM44.7984%2010.0996C44.5984%209.89961%2044.3984%209.79961%2044.0984%209.79961C43.7984%209.79961%2043.5984%209.79961%2043.3984%2010.0996C43.1984%2010.2996%2043.0984%2010.4996%2043.0984%2010.7996C43.0984%2011.0996%2043.0984%2011.2996%2043.3984%2011.4996C43.5984%2011.6996%2043.7984%2011.7996%2044.0984%2011.7996C44.3984%2011.7996%2044.5984%2011.7996%2044.7984%2011.4996C44.9984%2011.2996%2045.0984%2011.0996%2045.0984%2010.7996C45.0984%2010.4996%2045.0984%2010.2996%2044.7984%2010.0996ZM40.5984%2012.1996L41.1984%2010.6996L41.7984%2012.1996H40.5984ZM40.5984%209.69961L38.7984%2013.7996H39.9984L40.2984%2012.9996H42.0984L42.3984%2013.7996H43.5984L41.7984%209.69961H40.4984H40.5984ZM23.6984%2011.3996H21.8984V10.5996H23.6984C23.8984%2010.5996%2024.0984%2010.7996%2024.0984%2010.9996C24.0984%2011.1996%2023.8984%2011.3996%2023.6984%2011.3996ZM25.2984%2010.8996C25.2984%2010.1996%2024.6984%209.69961%2023.9984%209.69961H20.7984V13.7996H21.8984V12.2996H22.8984L23.9984%2013.7996H25.3984L24.1984%2012.1996C24.7984%2012.0996%2025.1984%2011.5996%2025.1984%2010.9996L25.2984%2010.8996ZM17.7984%2012.9996C16.9984%2012.9996%2016.5984%2012.3996%2016.5984%2011.6996C16.5984%2010.9996%2016.9984%2010.3996%2017.7984%2010.3996C18.5984%2010.3996%2018.9984%2010.9996%2018.9984%2011.6996C18.9984%2012.3996%2018.5984%2012.9996%2017.7984%2012.9996ZM17.7984%209.59961C16.3984%209.59961%2015.2984%2010.0996%2015.2984%2011.6996C15.2984%2013.2996%2016.2984%2013.7996%2017.7984%2013.7996C19.2984%2013.7996%2020.2984%2013.0996%2020.2984%2011.6996C20.2984%2010.2996%2019.2984%209.59961%2017.7984%209.59961ZM37.5984%2012.0996C37.5984%2012.4996%2037.1984%2012.9996%2036.3984%2012.9996C35.5984%2012.9996%2035.1984%2012.3996%2035.1984%2011.6996C35.1984%2010.9996%2035.5984%2010.3996%2036.3984%2010.3996C37.3984%2010.3996%2037.4984%2011.1996%2037.4984%2011.1996L38.6984%2010.7996C38.4984%2010.0996%2037.6984%209.59961%2036.3984%209.59961C34.9984%209.59961%2033.8984%2010.0996%2033.8984%2011.6996C33.8984%2013.2996%2034.8984%2013.7996%2036.3984%2013.7996C37.6984%2013.7996%2038.5984%2013.2996%2038.7984%2012.3996L37.4984%2012.0996H37.5984ZM28.5984%2011.9996L27.6984%209.69961H25.9984V13.7996H27.0984V10.6996L28.2984%2013.7996H28.9984L30.1984%2010.6996V13.7996H31.2984V9.69961H29.5984L28.6984%2011.9996H28.5984ZM32.1984%2013.7996H33.2984V9.69961H32.1984V13.7996ZM10.9984%2013.7996H12.0984V12.2996H14.4984V11.3996H12.0984V10.5996H14.8984V9.69961H10.8984V13.7996H10.9984Z'%20fill='white'/%3e%3c/svg%3e`,ye=`data:image/svg+xml,%3csvg%20width='46'%20height='24'%20viewBox='0%200%2046%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%200V0.799999C3.8%200.799999%206.9%205.7%206.9%2011.8C6.9%2017.9%203.8%2022.8%200%2022.8V23.6H22.6V23C15%2022.1%209.5%2018.6%209.5%2011.9C9.5%205.2%2017.5%201.5%2027.4%201.5C37.3%201.5%2042.1%203.5%2044.4%208.2H45V0.200001H0V0Z'%20fill='red'/%3e%3cpath%20d='M44.1984%2010.6996C44.1984%2010.6996%2044.1984%2010.6996%2043.9984%2010.6996H43.7984V10.2996H43.9984C44.0984%2010.2996%2044.1984%2010.2996%2044.1984%2010.2996C44.1984%2010.2996%2044.1984%2010.2996%2044.1984%2010.4996C44.1984%2010.6996%2044.1984%2010.5996%2044.0984%2010.6996H44.1984ZM44.4984%2011.1996C44.4984%2011.0996%2044.4984%2010.9996%2044.4984%2010.9996C44.4984%2010.9996%2044.3984%2010.9996%2044.2984%2010.8996C44.2984%2010.8996%2044.3984%2010.8996%2044.4984%2010.8996C44.4984%2010.8996%2044.5984%2010.7996%2044.5984%2010.6996C44.5984%2010.5996%2044.5984%2010.4996%2044.3984%2010.3996C44.3984%2010.3996%2044.1984%2010.3996%2044.0984%2010.3996H43.6984V11.4996H43.8984V11.0996H43.9984H44.1984C44.1984%2011.0996%2044.2984%2011.1996%2044.2984%2011.2996V11.3996H44.4984V11.1996ZM44.6984%2011.2996C44.4984%2011.4996%2044.2984%2011.4996%2044.0984%2011.4996C43.8984%2011.4996%2043.6984%2011.4996%2043.4984%2011.2996C43.2984%2011.0996%2043.2984%2010.8996%2043.2984%2010.6996C43.2984%2010.4996%2043.2984%2010.2996%2043.4984%2010.0996C43.6984%209.89961%2043.8984%209.89961%2044.0984%209.89961C44.2984%209.89961%2044.4984%209.89961%2044.6984%2010.0996C44.8984%2010.2996%2044.8984%2010.4996%2044.8984%2010.6996C44.8984%2010.8996%2044.8984%2011.0996%2044.6984%2011.2996ZM44.7984%2010.0996C44.5984%209.89961%2044.3984%209.79961%2044.0984%209.79961C43.7984%209.79961%2043.5984%209.79961%2043.3984%2010.0996C43.1984%2010.2996%2043.0984%2010.4996%2043.0984%2010.7996C43.0984%2011.0996%2043.0984%2011.2996%2043.3984%2011.4996C43.5984%2011.6996%2043.7984%2011.7996%2044.0984%2011.7996C44.3984%2011.7996%2044.5984%2011.7996%2044.7984%2011.4996C44.9984%2011.2996%2045.0984%2011.0996%2045.0984%2010.7996C45.0984%2010.4996%2045.0984%2010.2996%2044.7984%2010.0996ZM40.5984%2012.1996L41.1984%2010.6996L41.7984%2012.1996H40.5984ZM40.5984%209.69961L38.7984%2013.7996H39.9984L40.2984%2012.9996H42.0984L42.3984%2013.7996H43.5984L41.7984%209.69961H40.4984H40.5984ZM23.6984%2011.3996H21.8984V10.5996H23.6984C23.8984%2010.5996%2024.0984%2010.7996%2024.0984%2010.9996C24.0984%2011.1996%2023.8984%2011.3996%2023.6984%2011.3996ZM25.2984%2010.8996C25.2984%2010.1996%2024.6984%209.69961%2023.9984%209.69961H20.7984V13.7996H21.8984V12.2996H22.8984L23.9984%2013.7996H25.3984L24.1984%2012.1996C24.7984%2012.0996%2025.1984%2011.5996%2025.1984%2010.9996L25.2984%2010.8996ZM17.7984%2012.9996C16.9984%2012.9996%2016.5984%2012.3996%2016.5984%2011.6996C16.5984%2010.9996%2016.9984%2010.3996%2017.7984%2010.3996C18.5984%2010.3996%2018.9984%2010.9996%2018.9984%2011.6996C18.9984%2012.3996%2018.5984%2012.9996%2017.7984%2012.9996ZM17.7984%209.59961C16.3984%209.59961%2015.2984%2010.0996%2015.2984%2011.6996C15.2984%2013.2996%2016.2984%2013.7996%2017.7984%2013.7996C19.2984%2013.7996%2020.2984%2013.0996%2020.2984%2011.6996C20.2984%2010.2996%2019.2984%209.59961%2017.7984%209.59961ZM37.5984%2012.0996C37.5984%2012.4996%2037.1984%2012.9996%2036.3984%2012.9996C35.5984%2012.9996%2035.1984%2012.3996%2035.1984%2011.6996C35.1984%2010.9996%2035.5984%2010.3996%2036.3984%2010.3996C37.3984%2010.3996%2037.4984%2011.1996%2037.4984%2011.1996L38.6984%2010.7996C38.4984%2010.0996%2037.6984%209.59961%2036.3984%209.59961C34.9984%209.59961%2033.8984%2010.0996%2033.8984%2011.6996C33.8984%2013.2996%2034.8984%2013.7996%2036.3984%2013.7996C37.6984%2013.7996%2038.5984%2013.2996%2038.7984%2012.3996L37.4984%2012.0996H37.5984ZM28.5984%2011.9996L27.6984%209.69961H25.9984V13.7996H27.0984V10.6996L28.2984%2013.7996H28.9984L30.1984%2010.6996V13.7996H31.2984V9.69961H29.5984L28.6984%2011.9996H28.5984ZM32.1984%2013.7996H33.2984V9.69961H32.1984V13.7996ZM10.9984%2013.7996H12.0984V12.2996H14.4984V11.3996H12.0984V10.5996H14.8984V9.69961H10.8984V13.7996H10.9984Z'%20fill='black'/%3e%3c/svg%3e`,be=`data:image/svg+xml,%3csvg%20width='75'%20height='16'%20viewBox='0%200%2075%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M53.6992%2015.8996H57.5992L69.0992%200.0996094H65.2992L53.6992%2015.8996Z'%20fill='white'/%3e%3cpath%20d='M61.3992%205.29961L57.5992%200.0996094H53.6992L57.5992%205.29961H61.3992Z'%20fill='white'/%3e%3cpath%20d='M61.3984%2010.5996L65.2984%2015.8996H69.0984L65.2984%2010.5996H61.3984Z'%20fill='white'/%3e%3cpath%20d='M0%2015.8996H2.7V9.29961H9.5V6.79961H2.7V2.59961H9.5V0.0996094H0V15.8996Z'%20fill='white'/%3e%3cpath%20d='M14.3008%2015.8996H24.1008V13.2996H17.0008V8.99961H24.1008V6.49961H17.0008V2.59961H24.1008V0.0996094H14.3008V15.8996Z'%20fill='white'/%3e%3cpath%20d='M50.2%200.0996094H47.5V15.8996H50.2V0.0996094Z'%20fill='white'/%3e%3cpath%20d='M39.9008%2011.5996L32.5008%200.0996094H28.8008V15.8996H31.6008V4.19961L39.2008%2015.8996H42.7008V0.0996094H39.9008V11.5996Z'%20fill='white'/%3e%3cpath%20d='M72.7%201.9H72.9C73.1%201.9%2073.3%201.9%2073.3%201.6C73.3%201.3%2073.2%201.3%2072.9%201.3C72.6%201.3%2072.7%201.3%2072.7%201.3V1.9ZM72.7%203H72.3V1C72.5%201%2072.7%201%2073%201C73.3%201%2073.5%201%2073.7%201.1C73.8%201.1%2073.9%201.3%2073.9%201.5C73.9%201.7%2073.7%201.9%2073.5%202C73.7%202%2073.8%202.2%2073.8%202.5C73.8%202.8%2073.8%202.9%2073.9%203H73.4C73.4%203%2073.4%202.7%2073.2%202.5C73.2%202.3%2073.1%202.2%2072.8%202.2H72.6V3H72.7ZM71.5%202C71.5%202.9%2072.1%203.6%2073%203.6C73.9%203.6%2074.4%202.9%2074.4%202C74.4%201.1%2073.8%200.4%2072.9%200.4C72%200.4%2071.4%201.1%2071.4%202M74.9%202C74.9%203.1%2074.1%204%2073%204C71.9%204%2071%203.1%2071%202C71%200.9%2071.9%200%2073%200C74.1%200%2074.9%200.9%2074.9%202Z'%20fill='white'/%3e%3c/svg%3e`,xe=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%202048%20585'%20width='2048'%20height='585'%20role='img'%20aria-label='Vectorized%20ARPA%20wordmark'%3e%3cpath%20d='M%20618.0%200.0%20L%20700.0%2073.0%20L%20699.0%2074.0%20L%20617.0%2074.0%20L%20617.0%20218.0%20L%20698.0%20289.0%20L%20700.0%20292.0%20L%20699.0%20293.0%20L%20617.0%20293.0%20L%20617.0%20584.0%20L%20701.0%20584.0%20L%20701.0%20368.0%20L%20702.0%20367.0%20L%20848.0%20367.0%20L%20854.0%20376.0%20L%20863.0%20394.0%20L%20868.0%20401.0%20L%20970.0%20584.0%20L%201064.0%20584.0%20L%20935.0%20353.0%20L%20936.0%20351.0%20L%20950.0%20346.0%20L%20973.0%20333.0%20L%20986.0%20323.0%20L%201004.0%20305.0%20L%201017.0%20287.0%20L%201027.0%20268.0%20L%201037.0%20238.0%20L%201037.0%20234.0%20L%201040.0%20224.0%20L%201040.0%20218.0%20L%201042.0%20210.0%20L%201042.0%20198.0%20L%201043.0%20197.0%20L%201043.0%20173.0%20L%201042.0%20172.0%20L%201042.0%20163.0%20L%201041.0%20162.0%20L%201040.0%20151.0%20L%201033.0%20126.0%20L%201025.0%20107.0%20L%201017.0%2092.0%20L%201004.0%2073.0%20L%20995.0%2062.0%20L%20980.0%2047.0%20L%20958.0%2030.0%20L%20928.0%2014.0%20L%20897.0%204.0%20L%20879.0%202.0%20L%20878.0%201.0%20L%20870.0%201.0%20L%20869.0%200.0%20Z%20M%201451.0%2017.0%20L%201429.0%209.0%20L%201410.0%204.0%20L%201389.0%202.0%20L%201388.0%201.0%20L%201379.0%201.0%20L%201378.0%200.0%20L%201120.0%200.0%20L%201202.0%2073.0%20L%201201.0%2074.0%20L%201120.0%2074.0%20L%201120.0%20219.0%20L%201202.0%20292.0%20L%201201.0%20293.0%20L%201120.0%20293.0%20L%201119.0%20294.0%20L%201119.0%20584.0%20L%201203.0%20584.0%20L%201203.0%20367.0%20L%201204.0%20366.0%20L%201378.0%20366.0%20L%201379.0%20365.0%20L%201389.0%20365.0%20L%201390.0%20364.0%20L%201403.0%20363.0%20L%201423.0%20359.0%20L%201454.0%20348.0%20L%201466.0%20342.0%20L%201483.0%20331.0%20L%201492.0%20324.0%20L%201507.0%20309.0%20L%201523.0%20287.0%20L%201531.0%20272.0%20L%201537.0%20257.0%20L%201537.0%20254.0%20L%201543.0%20236.0%20L%201546.0%20213.0%20L%201547.0%20212.0%20L%201548.0%20168.0%20L%201547.0%20167.0%20L%201546.0%20149.0%20L%201541.0%20124.0%20L%201530.0%2094.0%20L%201522.0%2079.0%20L%201511.0%2063.0%20L%201492.0%2043.0%20L%201482.0%2035.0%20L%201465.0%2024.0%20Z%20M%20246.0%200.0%20L%20147.0%20233.0%20L%20212.0%20290.0%20L%20213.0%20292.0%20L%20212.0%20293.0%20L%20123.0%20293.0%20L%2095.0%20360.0%20L%2089.0%20372.0%20L%2087.0%20379.0%20L%2084.0%20384.0%20L%2080.0%20396.0%20L%2076.0%20403.0%20L%2069.0%20422.0%20L%2050.0%20465.0%20L%2048.0%20472.0%20L%2044.0%20479.0%20L%2035.0%20503.0%20L%2031.0%20510.0%20L%2022.0%20534.0%20L%2018.0%20541.0%20L%209.0%20565.0%20L%200.0%20584.0%20L%2092.0%20584.0%20L%20109.0%20541.0%20L%20117.0%20524.0%20L%20120.0%20514.0%20L%20124.0%20507.0%20L%20127.0%20497.0%20L%20131.0%20490.0%20L%20134.0%20480.0%20L%20138.0%20473.0%20L%20141.0%20463.0%20L%20163.0%20412.0%20L%20166.0%20402.0%20L%20177.0%20378.0%20L%20178.0%20373.0%20L%20182.0%20367.0%20L%20381.0%20367.0%20L%20386.0%20376.0%20L%20390.0%20388.0%20L%20400.0%20410.0%20L%20401.0%20415.0%20L%20404.0%20420.0%20L%20408.0%20432.0%20L%20411.0%20437.0%20L%20415.0%20449.0%20L%20418.0%20454.0%20L%20422.0%20466.0%20L%20425.0%20471.0%20L%20429.0%20483.0%20L%20432.0%20488.0%20L%20440.0%20510.0%20L%20443.0%20515.0%20L%20447.0%20527.0%20L%20450.0%20532.0%20L%20471.0%20584.0%20L%20562.0%20584.0%20L%20316.0%200.0%20Z%20M%201729.0%200.0%20L%201631.0%20232.0%20L%201632.0%20235.0%20L%201692.0%20287.0%20L%201696.0%20292.0%20L%201695.0%20293.0%20L%201606.0%20293.0%20L%201484.0%20584.0%20L%201575.0%20584.0%20L%201618.0%20479.0%20L%201621.0%20474.0%20L%201622.0%20469.0%20L%201626.0%20462.0%20L%201629.0%20452.0%20L%201653.0%20396.0%20L%201654.0%20391.0%20L%201660.0%20379.0%20L%201661.0%20374.0%20L%201665.0%20367.0%20L%201865.0%20367.0%20L%201867.0%20369.0%20L%201870.0%20379.0%20L%201874.0%20386.0%20L%201884.0%20413.0%20L%201892.0%20430.0%20L%201955.0%20584.0%20L%202046.0%20584.0%20L%201800.0%200.0%20Z%20M%201203.0%2075.0%20L%201204.0%2074.0%20L%201367.0%2074.0%20L%201368.0%2075.0%20L%201380.0%2076.0%20L%201395.0%2081.0%20L%201398.0%2081.0%20L%201413.0%2088.0%20L%201422.0%2094.0%20L%201434.0%20104.0%20L%201447.0%20120.0%20L%201458.0%20143.0%20L%201463.0%20165.0%20L%201464.0%20196.0%20L%201463.0%20197.0%20L%201462.0%20211.0%20L%201458.0%20227.0%20L%201454.0%20237.0%20L%201446.0%20251.0%20L%201435.0%20264.0%20L%201420.0%20276.0%20L%201402.0%20285.0%20L%201381.0%20291.0%20L%201368.0%20292.0%20L%201367.0%20293.0%20L%201204.0%20293.0%20L%201203.0%20292.0%20Z%20M%20700.0%2075.0%20L%20701.0%2074.0%20L%20862.0%2074.0%20L%20863.0%2075.0%20L%20870.0%2075.0%20L%20880.0%2077.0%20L%20896.0%2082.0%20L%20917.0%2093.0%20L%20937.0%20112.0%20L%20944.0%20122.0%20L%20952.0%20139.0%20L%20958.0%20164.0%20L%20959.0%20191.0%20L%20958.0%20192.0%20L%20958.0%20202.0%20L%20957.0%20203.0%20L%20956.0%20213.0%20L%20951.0%20230.0%20L%20946.0%20239.0%20L%20946.0%20241.0%20L%20939.0%20252.0%20L%20924.0%20268.0%20L%20913.0%20276.0%20L%20897.0%20284.0%20L%20877.0%20290.0%20L%20865.0%20291.0%20L%20864.0%20292.0%20L%20853.0%20292.0%20L%20852.0%20293.0%20L%20702.0%20293.0%20L%20700.0%20291.0%20Z%20M%201764.0%20131.0%20L%201766.0%20132.0%20L%201794.0%20201.0%20L%201821.0%20264.0%20L%201825.0%20276.0%20L%201829.0%20283.0%20L%201830.0%20288.0%20L%201832.0%20291.0%20L%201830.0%20293.0%20L%201699.0%20293.0%20L%201697.0%20291.0%20Z%20M%20281.0%20130.0%20L%20308.0%20193.0%20L%20317.0%20217.0%20L%20320.0%20222.0%20L%20324.0%20234.0%20L%20328.0%20241.0%20L%20344.0%20282.0%20L%20348.0%20290.0%20L%20347.0%20293.0%20L%20215.0%20293.0%20L%20214.0%20292.0%20L%20220.0%20275.0%20L%20230.0%20253.0%20L%20231.0%20248.0%20L%20235.0%20241.0%20L%20272.0%20149.0%20Z'%20fill='%23FFFFFF'%20fill-rule='evenodd'/%3e%3c/svg%3e`,Se=`data:image/svg+xml,%3csvg%20width='73'%20height='18'%20viewBox='0%200%2073%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.0015%200H27.6016V17.3H28.0015V0Z'%20fill='white'/%3e%3cpath%20d='M32.1016%200H33.8016V2.5H36.2015V0H37.9016V6.7H36.2015V3.9H33.8016V6.7H32.1016V0Z'%20fill='white'/%3e%3cpath%20d='M38.3984%205.40078C38.3984%204.30078%2039.1984%204.00078%2040.1984%203.90078C41.0984%203.80078%2041.3984%203.70078%2041.3984%203.40078C41.3984%203.10078%2041.1984%202.90078%2040.6984%202.90078C40.1984%202.90078%2039.9984%203.10078%2039.8984%203.50078H38.4984C38.4984%202.60078%2039.1984%201.80078%2040.6984%201.80078C42.1984%201.80078%2041.8985%201.90078%2042.2985%202.20078C42.6985%202.50078%2042.8984%203.00078%2042.8984%203.60078V6.00078C42.8984%206.40078%2042.8984%206.60078%2043.0984%206.70078H41.5984C41.5984%206.60078%2041.4984%206.40078%2041.3984%206.20078C41.0984%206.60078%2040.6984%206.90078%2039.9984%206.90078C39.2984%206.90078%2038.3984%206.40078%2038.3984%205.40078ZM41.4984%205.00078V4.40078C41.2984%204.50078%2040.9984%204.60078%2040.6984%204.70078C40.0984%204.80078%2039.8984%205.00078%2039.8984%205.30078C39.8984%205.60078%2040.1984%205.80078%2040.5984%205.80078C41.1984%205.80078%2041.5984%205.50078%2041.5984%204.90078L41.4984%205.00078Z'%20fill='white'/%3e%3cpath%20d='M43.6992%201.90039H45.1992V2.70039C45.4992%202.10039%2045.8992%201.90039%2046.4992%201.90039C47.0992%201.90039%2046.6993%201.90039%2046.7993%201.90039V3.20039C45.8993%203.10039%2045.2993%203.50039%2045.2993%204.60039V6.80039H43.7993V2.00039L43.6992%201.90039Z'%20fill='white'/%3e%3cpath%20d='M47.7015%205.50039V2.90039H47.1016V1.90039H47.7015V0.400391H49.2015V1.90039H50.1016V2.90039H49.2015V5.20039C49.2015%205.60039%2049.4015%205.70039%2049.7015%205.70039C50.0015%205.70039%2050.0015%205.70039%2050.0015%205.70039V6.80039C49.9015%206.80039%2049.6015%206.80039%2049.2015%206.80039C48.3015%206.80039%2047.7015%206.50039%2047.7015%205.50039Z'%20fill='white'/%3e%3cpath%20d='M50.5%205.20078H51.9C51.9%205.70078%2052.3%205.90078%2052.8%205.90078C53.3%205.90078%2053.6%205.70078%2053.6%205.40078C53.6%205.10078%2053%204.90078%2052.4%204.80078C51.6%204.70078%2050.7%204.40078%2050.7%203.30078C50.7%202.20078%2051.6%201.80078%2052.8%201.80078C54%201.80078%2054.9%202.40078%2055%203.30078H53.6C53.6%202.90078%2053.3%202.70078%2052.8%202.70078C52.3%202.70078%2052.1%202.80078%2052.1%203.10078C52.1%203.40078%2052.6%203.50078%2053.3%203.60078C54.1%203.70078%2055.1%204.00078%2055.1%205.20078C55.1%206.40078%2054.2%206.80078%2052.9%206.80078C51.6%206.80078%2050.6%206.20078%2050.6%205.10078L50.5%205.20078Z'%20fill='white'/%3e%3cpath%20d='M55.3008%204.40039C55.3008%203.00039%2056.3008%201.90039%2057.9008%201.90039C59.5008%201.90039%2060.5007%203.00039%2060.5007%204.40039C60.5007%205.80039%2059.5008%206.90039%2057.9008%206.90039C56.3008%206.90039%2055.3008%205.80039%2055.3008%204.40039ZM58.9008%204.40039C58.9008%203.50039%2058.5008%202.90039%2057.9008%202.90039C57.3008%202.90039%2056.9008%203.50039%2056.9008%204.40039C56.9008%205.30039%2057.2008%205.90039%2057.9008%205.90039C58.6008%205.90039%2058.9008%205.30039%2058.9008%204.40039Z'%20fill='white'/%3e%3cpath%20d='M61%201.90078H62.5V2.60078C62.9%202.10078%2063.3%201.80078%2064%201.80078C65.1%201.80078%2065.7%202.60078%2065.7%203.60078V6.70078H64.2V3.90078C64.2%203.40078%2063.9%203.00078%2063.4%203.00078C62.9%203.00078%2062.6%203.40078%2062.6%204.00078V6.70078H61.1V1.90078H61Z'%20fill='white'/%3e%3cpath%20d='M32.1016%209H33.8016V11.4L36.1016%209H38.1016L35.5015%2011.7L38.2015%2015.7H36.3016L34.4016%2012.8L33.8016%2013.4V15.7H32.1016V9Z'%20fill='white'/%3e%3cpath%20d='M37.7993%2013.3008C37.7993%2011.9008%2038.7993%2010.8008%2040.2993%2010.8008C41.7993%2010.8008%2041.4992%2011.0008%2041.8992%2011.4008C42.4992%2011.9008%2042.7992%2012.8008%2042.6992%2013.7008H39.1992C39.1992%2014.3008%2039.6993%2014.8008%2040.2993%2014.8008C40.8993%2014.8008%2040.9992%2014.6008%2041.0992%2014.3008H42.5992C42.4992%2014.7008%2042.1993%2015.1008%2041.7993%2015.4008C41.3993%2015.7008%2040.8993%2015.8008%2040.2993%2015.8008C38.6993%2015.8008%2037.6992%2014.7008%2037.6992%2013.2008L37.7993%2013.3008ZM41.2993%2012.8008C41.2993%2012.2008%2040.8992%2011.9008%2040.3992%2011.9008C39.8992%2011.9008%2039.4992%2012.3008%2039.3992%2012.8008H41.2993Z'%20fill='white'/%3e%3cpath%20d='M43.3008%2010.9008H44.8008V11.6008C45.2008%2011.1008%2045.6008%2010.8008%2046.3008%2010.8008C47.4008%2010.8008%2048.0007%2011.6008%2048.0007%2012.6008V15.7008H46.5007V12.9008C46.5007%2012.4008%2046.2007%2012.0008%2045.7007%2012.0008C45.2007%2012.0008%2044.9008%2012.4008%2044.9008%2013.0008V15.7008H43.4008V10.9008H43.3008Z'%20fill='white'/%3e%3cpath%20d='M48.6992%2010.9008H50.1992V11.6008C50.5992%2011.1008%2050.9992%2010.8008%2051.6992%2010.8008C52.7992%2010.8008%2053.3992%2011.6008%2053.3992%2012.6008V15.7008H51.8992V12.9008C51.8992%2012.4008%2051.5992%2012.0008%2051.0992%2012.0008C50.5992%2012.0008%2050.2993%2012.4008%2050.2993%2013.0008V15.7008H48.7993V10.9008H48.6992Z'%20fill='white'/%3e%3cpath%20d='M53.7993%2013.3008C53.7993%2011.9008%2054.7993%2010.8008%2056.2993%2010.8008C57.7993%2010.8008%2057.4992%2011.0008%2057.8992%2011.4008C58.4992%2011.9008%2058.7992%2012.8008%2058.6992%2013.7008H55.1992C55.1992%2014.3008%2055.6993%2014.8008%2056.2993%2014.8008C56.8993%2014.8008%2056.9992%2014.6008%2057.0992%2014.3008H58.5992C58.4992%2014.7008%2058.1993%2015.1008%2057.7993%2015.4008C57.3993%2015.7008%2056.8993%2015.8008%2056.2993%2015.8008C54.6993%2015.8008%2053.6992%2014.7008%2053.6992%2013.2008L53.7993%2013.3008ZM57.1992%2012.8008C57.1992%2012.2008%2056.7993%2011.9008%2056.2993%2011.9008C55.7993%2011.9008%2055.3993%2012.3008%2055.2993%2012.8008H57.1992Z'%20fill='white'/%3e%3cpath%20d='M59.1%2013.3C59.1%2011.8%2060%2010.8%2061.2%2010.8C62.4%2010.8%2062.3%2011.1%2062.5%2011.5V9H64V15.7H62.5V15.1C62.2%2015.6%2061.7%2015.9%2061.1%2015.9C59.9%2015.9%2059%2015%2059%2013.3H59.1ZM62.6%2013.3C62.6%2012.5%2062.3%2011.9%2061.6%2011.9C60.9%2011.9%2060.6%2012.5%2060.6%2013.3C60.6%2014.1%2061%2014.7%2061.5%2014.7C62%2014.7%2062.5%2014.1%2062.5%2013.4L62.6%2013.3Z'%20fill='white'/%3e%3cpath%20d='M64.9984%2016.1004H65.4984C65.9984%2016.1004%2066.0984%2015.9004%2066.0984%2015.6004C66.0984%2015.3004%2066.0985%2015.1004%2065.7985%2014.6004L64.3984%2010.9004H65.9984L66.5984%2012.9004C66.7984%2013.4004%2066.8984%2014.0004%2066.8984%2014.0004C66.8984%2014.0004%2066.9984%2013.4004%2067.1984%2012.9004L67.7985%2010.9004H69.2985L67.5984%2015.8004C67.1984%2016.9004%2066.7985%2017.3004%2065.7985%2017.3004H64.7985V16.1004H64.9984Z'%20fill='white'/%3e%3cpath%20d='M11.9%206.2C11.6%205.7%2011.2%205.4%2010.7%205.1C10.2%204.8%209.50004%204.6%208.60004%204.6C7.70004%204.6%206.90001%204.8%206.20001%205.1C5.50001%205.5%204.9%206%204.5%206.7V0H0V17.3H4.5V10.3C4.6%2010%204.80002%209.8%204.90002%209.6C5.10002%209.4%205.3%209.2%205.5%209C5.7%208.8%205.90004%208.7%206.10004%208.6C6.30004%208.6%206.50004%208.5%206.60004%208.5C7.00004%208.5%207.40004%208.6%207.60004%208.9C7.90004%209.2%208%209.6%208%2010.2V17.2H12.5V9C12.5%208.5%2012.5%208.1%2012.4%207.5C12.4%207%2012.1%206.5%2011.9%206V6.2Z'%20fill='white'/%3e%3cpath%20d='M23.3984%204.4H18.6984L14.8984%209.5V0H10.3984V4.4C10.5984%204.4%2010.7984%204.5%2010.9984%204.6C11.5984%205%2012.0984%205.4%2012.3984%205.9C12.6984%206.4%2012.8984%207%2012.9984%207.6C12.9984%208.1%2013.0984%208.7%2013.0984%209.2V17.4H14.8984V13.8L15.7985%2012.8L18.5984%2017.4H23.3984L18.6984%2010.4L23.3984%204.4Z'%20fill='white'/%3e%3cpath%20d='M70.0015%2014.7H69.6016V14.5H70.7015V14.7H70.3016V15.9H70.1016V14.7H70.0015ZM70.9016%2014.5H71.2015L71.6016%2015.6L72.0015%2014.5H72.3016V15.9H72.1016V14.7L71.6016%2015.9H71.5015L71.0015%2014.7V15.9H70.8016V14.5H70.9016Z'%20fill='white'/%3e%3c/svg%3e`,Ce=`data:image/svg+xml,%3csvg%20width='71'%20height='20'%20viewBox='0%200%2071%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M29.4%208.90039H26.9V6.40039H25.5V12.8004H26.9V10.1004H29.4V12.8004H30.8V6.40039H29.4V8.90039Z'%20fill='white'/%3e%3cpath%20d='M35.1008%206.30078C33.2008%206.30078%2031.8008%207.60078%2031.8008%209.60078C31.8008%2011.6008%2033.1008%2012.9008%2035.1008%2012.9008C37.1008%2012.9008%2038.4008%2011.6008%2038.4008%209.60078C38.4008%207.60078%2037.0008%206.30078%2035.1008%206.30078ZM35.1008%2011.7008C33.9008%2011.7008%2033.2008%2010.9008%2033.2008%209.60078C33.2008%208.30078%2033.9008%207.50078%2035.1008%207.50078C36.3008%207.50078%2037.0008%208.30078%2037.0008%209.60078C37.0008%2010.9008%2036.3008%2011.7008%2035.1008%2011.7008Z'%20fill='white'/%3e%3cpath%20d='M42.8984%2010.7004L40.5984%206.40039H39.3984V12.8004H40.6984V9.40039L42.4984%2012.7004H43.3984L45.0984%209.40039V12.8004H46.3984V6.40039H45.1984L42.8984%2010.7004Z'%20fill='white'/%3e%3cpath%20d='M49.8016%206.40039L47.1016%2012.8004H48.6016L49.1016%2011.6004H51.7016L52.2016%2012.8004H53.7016L51.0016%206.40039H49.8016ZM49.6016%2010.5004L50.4016%208.50039L51.2016%2010.5004H49.5016H49.6016Z'%20fill='white'/%3e%3cpath%20d='M57.1984%206.40078H54.3984V12.8008H55.7984V10.5008H57.1984C58.4984%2010.5008%2059.2984%209.70078%2059.2984%208.40078C59.2984%207.10078%2058.4984%206.30078%2057.1984%206.30078V6.40078ZM56.9984%209.30078H55.6984V7.60078H56.9984C57.4984%207.60078%2057.8984%207.90078%2057.8984%208.50078C57.8984%209.00078%2057.5984%209.40078%2056.9984%209.40078V9.30078Z'%20fill='white'/%3e%3cpath%20d='M61.5008%206.40039L58.8008%2012.8004H60.3008L60.8008%2011.6004H63.4008L63.9008%2012.8004H65.4008L62.7008%206.40039H61.5008ZM61.2008%2010.5004L62.0008%208.50039L62.8008%2010.5004H61.1008H61.2008Z'%20fill='white'/%3e%3cpath%20d='M67.5016%2011.6004V6.40039H66.1016V12.8004H70.2016V11.6004H67.5016Z'%20fill='white'/%3e%3cpath%20d='M6.39999%200H0V19.2H6.39999V12.8L9.59999%209.6L6.39999%206.4V0Z'%20fill='white'/%3e%3cpath%20d='M12.8016%206.4L9.60156%209.6L12.8016%2012.8V19.2H19.2016V0H12.8016V6.4Z'%20fill='white'/%3e%3c/svg%3e`,we=`data:image/svg+xml,%3csvg%20width='44'%20height='28'%20viewBox='0%200%2044%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M29.6154%200.080189H29.9231V16.7594H29.6154V0.080189ZM22%2016.8396H22.3077V0.160378H22V16.8396ZM14.3846%200.080189H14.6923V16.7594H14.5385C14.5385%2016.7594%2013.2308%2016.8396%2012.9231%2016.5991C12.7692%2016.5189%2012.5384%2016.1981%2012.3846%2015.5566L11.9231%2013.7925C11.7692%2013.2311%2011.3077%2012.75%2010.9231%2012.75H10V15.7972C10%2016.3585%2010.7692%2016.4387%2010.7692%2016.4387V16.7594C10.7692%2016.7594%209.92307%2016.7594%209.46153%2016.7594C8.99999%2016.7594%208.15383%2016.7594%208.15383%2016.7594V16.4387C8.15383%2016.4387%208.84616%2016.4387%208.84616%2015.7972V9.2217C8.84616%209.06132%208.76922%208.90094%208.61537%208.82075L8.15383%208.66038V8.25943C8.15383%208.25943%209.69229%208.25943%2010.0769%208.25943H11.5385C12.8462%208.25943%2013.3846%209.30189%2013.3846%2010.3443C13.3846%2011.3868%2012.3846%2012.2689%2011.6923%2012.5896C12.5385%2012.8302%2012.8461%2013.4717%2013.1538%2014.1934L13.5384%2015.4764C13.5384%2015.717%2013.6923%2015.8774%2013.7692%2016.0377C13.8462%2016.1981%2014.1538%2016.3585%2014.3846%2016.3585V0V0.080189ZM12.2308%2010.4245C12.2308%209.54245%2011.6154%208.82075%2011.0769%208.82075H10.3846C10.1538%208.82075%209.92308%209.06132%209.92308%209.30189V12.4292H10.8461C11.0769%2012.4292%2012.2308%2012.2689%2012.2308%2010.4245ZM6.76922%2016.8396H7.07691V0.160378H6.76922V16.8396ZM27.7692%2012.5896C27%2012.1085%2026.2308%2011.7075%2025.3846%2011.2264C25.0769%2011.066%2024.6154%2010.5849%2024.6154%2010.0236C24.6154%209.14151%2025.4615%208.66038%2026.0769%208.66038C27.0769%208.66038%2027.6923%209.54245%2027.6923%2010.5849H28.2308V8.5C27.3077%208.25943%2026.4615%208.17924%2026.0769%208.17924C24.6923%208.17924%2023.6154%208.82075%2023.6154%2010.5047C23.6154%2012.1887%2023.8461%2011.6274%2024.3077%2012.1085C24.9231%2012.75%2026.0769%2012.9906%2027%2013.7123C27.6154%2014.1934%2027.6923%2014.8349%2027.6923%2014.9953C27.6923%2015.5566%2027.3077%2016.4387%2026%2016.4387C24.6923%2016.4387%2024.0769%2015.9575%2024.0769%2014.1132H23.4615V16.1981C23.4615%2016.1981%2024.6923%2016.9198%2026%2016.9198C27.3077%2016.9198%2028.6923%2016.1981%2028.6923%2014.5943C28.6923%2012.9906%2028.0769%2012.8302%2027.6923%2012.5094L27.7692%2012.5896ZM43.9231%2016.8396C43.9231%2016.8396%2043.2308%2016.8396%2042.6923%2016.8396C42.1539%2016.8396%2041.4615%2016.8396%2041.4615%2016.8396V16.5189C41.6923%2016.5189%2042.2308%2016.2783%2042.0769%2015.8774L41.4615%2013.7123H39.3846L38.6923%2015.8774C38.6154%2016.1179%2038.8461%2016.5189%2039.3077%2016.5189V16.8396C39.3077%2016.8396%2038.7692%2016.8396%2038.3077%2016.8396C37.8462%2016.8396%2037.7692%2016.8396%2037.6154%2016.8396H37.3846V0.160378H37.6923V16.4387C38.1539%2016.1179%2038.3846%2015.5566%2038.4616%2015.2358L40.6923%208.25943H41.0769L43.3077%2016.0377C43.4615%2016.4387%2043.6154%2016.5189%2044%2016.6792V17L43.9231%2016.8396ZM41.3077%2013.1509L40.4615%2010.2642L39.5385%2013.1509H41.3077ZM0.153832%208.25943L0%2010.5047H0.46152C0.46152%2010.184%200.461534%209.86321%200.692303%209.54245C0.692303%209.38208%200.769217%209.30189%200.923063%209.2217C1.07691%209.06132%201.23076%208.90094%201.46153%208.90094C1.84615%208.82075%202.23077%208.74057%202.61538%208.74057V15.8774C2.61538%2016.1981%202.23076%2016.4387%201.76922%2016.4387V16.8396C2.07691%2016.8396%202.69229%2016.7594%203.15383%2016.7594C3.61537%2016.7594%204.15384%2016.7594%204.53846%2016.8396V16.4387C4.15384%2016.4387%203.6923%2016.1981%203.6923%2015.8774V8.74057C4.07691%208.74057%204.46153%208.74057%204.84615%208.90094C5.07692%208.90094%205.23077%209.06132%205.38462%209.2217C5.46154%209.30189%205.53845%209.46227%205.61538%209.54245C5.76922%209.86321%205.76921%2010.184%205.84614%2010.5047H6.30768L6.15385%208.25943H0.23076H0.153832ZM19.3077%2016.3585H18.4615C18.0769%2016.3585%2017.8461%2016.2783%2017.8461%2015.8774V12.6698H18.7692C19.4615%2012.6698%2019.6154%2012.9906%2019.6154%2013.8726H20.0769C20.0769%2013.8726%2020.0769%2012.75%2020.0769%2012.4292C20.0769%2012.1085%2020.0769%2010.9858%2020.0769%2010.9858H19.6154C19.6154%2011.8679%2019.5385%2012.1887%2018.7692%2012.1887H17.8461V9.38208C17.8461%208.98113%2018.2308%208.90094%2018.4615%208.90094H19.0769C19.3846%208.90094%2020.4615%208.98113%2020.4615%2010.3443H20.8461V8.33962C20.7692%208.33962%2018.9231%208.33962%2018.5384%208.33962C18.1538%208.33962%2016.0769%208.33962%2016.0769%208.33962V8.74057L16.5385%208.90094C16.6923%208.90094%2016.7692%209.14151%2016.7692%209.30189V15.9575C16.7692%2016.5189%2016.0769%2016.5991%2016.0769%2016.5991V16.9198C16.0769%2016.9198%2018.1538%2016.9198%2018.6154%2016.9198C19.0769%2016.9198%2021.1539%2016.9198%2021.1539%2016.9198L21.4615%2014.5943H21.0769C21%2015.717%2020.3077%2016.4387%2019.5385%2016.4387L19.3077%2016.3585ZM36.6154%2010.9057C36.6154%2012.75%2035.0769%2013.3915%2034.3077%2013.3915C33.5385%2013.3915%2033.0769%2013.3915%2032.9231%2013.3113V15.8774C32.9231%2016.4387%2033.6923%2016.5189%2033.6923%2016.5189V16.8396C33.6923%2016.8396%2032.8461%2016.8396%2032.3846%2016.8396C31.9231%2016.8396%2031.0769%2016.8396%2031.0769%2016.8396V16.5189C31.0769%2016.5189%2031.7692%2016.5189%2031.7692%2015.8774V9.2217C31.7692%209.06132%2031.6923%208.90094%2031.5385%208.82075L31.0769%208.66038V8.25943C31.0769%208.25943%2031.9231%208.25943%2032.1538%208.25943C32.3846%208.25943%2033.8462%208.25943%2033.8462%208.25943C34.9231%208.25943%2036.6154%208.25943%2036.6154%2010.9057ZM35.4615%2010.9057C35.4615%2010.5047%2035.2308%208.74057%2034.0769%208.74057H33.6923C33.3846%208.74057%2032.9231%208.90094%2032.9231%209.2217V12.8302C32.9231%2012.8302%2033.6154%2012.9906%2033.9231%2012.9906C34.2308%2012.9906%2035.4615%2012.8302%2035.4615%2010.9858V10.9057ZM41.9231%207.37736C41.9231%206.81604%2042.3846%206.41509%2042.8462%206.41509C43.3077%206.41509%2043.7692%206.89623%2043.7692%207.37736C43.7692%207.85849%2043.3077%208.33962%2042.8462%208.33962C42.3846%208.33962%2041.9231%207.85849%2041.9231%207.37736ZM42.0769%207.37736C42.0769%207.85849%2042.4615%208.17924%2042.8462%208.17924C43.2308%208.17924%2043.6154%207.7783%2043.6154%207.37736C43.6154%206.97642%2043.2308%206.57547%2042.8462%206.57547C42.4615%206.57547%2042.0769%206.97642%2042.0769%207.37736ZM42.7692%207.93868H42.6154V6.89623H42.8462C43%206.89623%2043.0769%206.89623%2043.2308%206.89623C43.3846%206.89623%2043.3846%207.0566%2043.3846%207.13679C43.3846%207.29717%2043.2308%207.45755%2043.0769%207.45755L43.5385%207.93868H43.3077L42.9231%207.45755V7.93868H42.7692ZM42.7692%207.29717C42.9231%207.29717%2043.1538%207.29717%2043.1538%207.13679C43.1538%206.97642%2042.9231%206.97642%2042.7692%206.97642V7.37736V7.29717Z'%20fill='white'/%3e%3cpath%20d='M10.2306%2027.845H8.91527V23.8215H7.83203V22.7383H11.3913V23.8215H10.2306V27.845Z'%20fill='white'/%3e%3cpath%20d='M12.6303%2025.2147C12.6303%2026.0658%2013.2493%2026.7622%2014.1004%2026.7622C14.9515%2026.7622%2015.5705%2026.1432%2015.5705%2025.2147C15.5705%2024.2862%2014.9515%2023.8993%2014.1004%2023.8993C13.2493%2023.8993%2012.6303%2024.5183%2012.6303%2025.2147ZM16.8858%2025.2147C16.8858%2026.8396%2015.7252%2028.0002%2014.023%2028.0002C12.3208%2028.0002%2011.1602%2026.8396%2011.1602%2025.2147C11.1602%2023.5899%2012.5529%2022.584%2014.023%2022.584C15.4931%2022.584%2016.8858%2023.6672%2016.8858%2025.2147Z'%20fill='white'/%3e%3cpath%20d='M18.663%2025.0595H18.8951C19.3594%2025.0595%2019.8236%2025.0595%2019.8236%2024.4405C19.8236%2023.8215%2019.3594%2023.8215%2018.8951%2023.8215H18.663V25.0595ZM17.3477%2022.7383H19.3594C20.4426%2022.7383%2021.2164%2023.2799%2021.2164%2024.4405C21.2164%2025.6011%2020.5974%2026.1428%2019.4368%2026.1428H18.663V27.845H17.3477V22.7383Z'%20fill='white'/%3e%3cpath%20d='M22.9208%2026.6844H24.5457V27.845H21.6055V22.7383H22.9208V26.6844Z'%20fill='white'/%3e%3cpath%20d='M27.255%2024.287L26.7133%2025.9118H27.7966L27.255%2024.287ZM26.3265%2026.9177L25.9396%2027.7688H24.5469L26.4812%2022.6621H27.9513L29.8857%2027.7688H28.4929L28.1835%2026.9177H26.3265Z'%20fill='white'/%3e%3cpath%20d='M31.4326%2026.8391H31.5873C31.9742%2026.8391%2032.6706%2026.8391%2032.6706%2026.2975C32.6706%2025.7559%2031.9742%2025.7559%2031.5873%2025.7559H31.4326V26.8391ZM31.4326%2024.75H31.5873C31.9742%2024.75%2032.2837%2024.75%2032.2837%2024.2858C32.2837%2023.8215%2031.8968%2023.8215%2031.5099%2023.8215H31.4326V24.8274V24.75ZM30.1172%2027.845V22.7383H32.0515C32.98%2022.7383%2033.599%2023.1252%2033.599%2024.0536C33.599%2024.9821%2033.4443%2024.9048%2033.0574%2025.0595C33.7538%2025.1369%2034.1407%2025.6785%2034.1407%2026.3749C34.1407%2027.4581%2033.2122%2027.7676%2032.2837%2027.7676H30.2719L30.1172%2027.845Z'%20fill='white'/%3e%3cpath%20d='M35.5317%2023.668C35.6865%2023.668%2035.6865%2023.668%2035.6865%2023.5132C35.6865%2023.3585%2035.5317%2023.4359%2035.4543%2023.4359H35.2222V23.7453H35.5317V23.668ZM35.9186%2024.287H35.6865L35.4543%2023.8227H35.2996V24.287H35.0675V23.2037H35.6091C35.8412%2023.2037%2036.0733%2023.2037%2036.0733%2023.5132C36.0733%2023.8227%2035.996%2023.8227%2035.7638%2023.8227L35.996%2024.287H35.9186ZM36.2281%2023.7453C36.2281%2023.2811%2035.8412%2022.9716%2035.4543%2022.9716C35.0675%2022.9716%2034.6806%2023.2811%2034.6806%2023.7453C34.6806%2024.2096%2034.9901%2024.5191%2035.4543%2024.5191C35.9186%2024.5191%2036.2281%2024.2096%2036.2281%2023.7453ZM34.3711%2023.7453C34.3711%2023.1264%2034.8353%2022.6621%2035.4543%2022.6621C36.0733%2022.6621%2036.5376%2023.1264%2036.5376%2023.7453C36.5376%2024.3643%2036.0733%2024.8286%2035.4543%2024.8286C34.8353%2024.8286%2034.3711%2024.3643%2034.3711%2023.7453Z'%20fill='white'/%3e%3cpath%20d='M10.2306%2027.845H8.91527V23.8215H7.83203V22.7383H11.3913V23.8215H10.2306V27.845Z'%20fill='white'/%3e%3cpath%20d='M12.6303%2025.2147C12.6303%2026.0658%2013.2493%2026.7622%2014.1004%2026.7622C14.9515%2026.7622%2015.5705%2026.1432%2015.5705%2025.2147C15.5705%2024.2862%2014.9515%2023.8993%2014.1004%2023.8993C13.2493%2023.8993%2012.6303%2024.5183%2012.6303%2025.2147ZM16.8858%2025.2147C16.8858%2026.8396%2015.7252%2028.0002%2014.023%2028.0002C12.3208%2028.0002%2011.1602%2026.8396%2011.1602%2025.2147C11.1602%2023.5899%2012.5529%2022.584%2014.023%2022.584C15.4931%2022.584%2016.8858%2023.6672%2016.8858%2025.2147Z'%20fill='white'/%3e%3cpath%20d='M18.663%2025.0595H18.8951C19.3594%2025.0595%2019.8236%2025.0595%2019.8236%2024.4405C19.8236%2023.8215%2019.3594%2023.8215%2018.8951%2023.8215H18.663V25.0595ZM17.3477%2022.7383H19.3594C20.4426%2022.7383%2021.2164%2023.2799%2021.2164%2024.4405C21.2164%2025.6011%2020.5974%2026.1428%2019.4368%2026.1428H18.663V27.845H17.3477V22.7383Z'%20fill='white'/%3e%3cpath%20d='M22.9208%2026.6844H24.5457V27.845H21.6055V22.7383H22.9208V26.6844Z'%20fill='white'/%3e%3cpath%20d='M27.255%2024.287L26.7133%2025.9118H27.7966L27.255%2024.287ZM26.3265%2026.9177L25.9396%2027.7688H24.5469L26.4812%2022.6621H27.9513L29.8857%2027.7688H28.4929L28.1835%2026.9177H26.3265Z'%20fill='white'/%3e%3cpath%20d='M31.4326%2026.8391H31.5873C31.9742%2026.8391%2032.6706%2026.8391%2032.6706%2026.2975C32.6706%2025.7559%2031.9742%2025.7559%2031.5873%2025.7559H31.4326V26.8391ZM31.4326%2024.75H31.5873C31.9742%2024.75%2032.2837%2024.75%2032.2837%2024.2858C32.2837%2023.8215%2031.8968%2023.8215%2031.5099%2023.8215H31.4326V24.8274V24.75ZM30.1172%2027.845V22.7383H32.0515C32.98%2022.7383%2033.599%2023.1252%2033.599%2024.0536C33.599%2024.9821%2033.4443%2024.9048%2033.0574%2025.0595C33.7538%2025.1369%2034.1407%2025.6785%2034.1407%2026.3749C34.1407%2027.4581%2033.2122%2027.7676%2032.2837%2027.7676H30.2719L30.1172%2027.845Z'%20fill='white'/%3e%3cpath%20d='M35.5317%2023.668C35.6865%2023.668%2035.6865%2023.668%2035.6865%2023.5132C35.6865%2023.3585%2035.5317%2023.4359%2035.4543%2023.4359H35.2222V23.7453H35.5317V23.668ZM35.9186%2024.287H35.6865L35.4543%2023.8227H35.2996V24.287H35.0675V23.2037H35.6091C35.8412%2023.2037%2036.0733%2023.2037%2036.0733%2023.5132C36.0733%2023.8227%2035.996%2023.8227%2035.7638%2023.8227L35.996%2024.287H35.9186ZM36.2281%2023.7453C36.2281%2023.2811%2035.8412%2022.9716%2035.4543%2022.9716C35.0675%2022.9716%2034.6806%2023.2811%2034.6806%2023.7453C34.6806%2024.2096%2034.9901%2024.5191%2035.4543%2024.5191C35.9186%2024.5191%2036.2281%2024.2096%2036.2281%2023.7453ZM34.3711%2023.7453C34.3711%2023.1264%2034.8353%2022.6621%2035.4543%2022.6621C36.0733%2022.6621%2036.5376%2023.1264%2036.5376%2023.7453C36.5376%2024.3643%2036.0733%2024.8286%2035.4543%2024.8286C34.8353%2024.8286%2034.3711%2024.3643%2034.3711%2023.7453Z'%20fill='white'/%3e%3c/svg%3e`,Te=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20370%20110'%20width='370'%20height='110'%20role='img'%20aria-label='Broadview%20Materials%20logo'%3e%3cpath%20fill='%23FFFFFF'%20fill-rule='evenodd'%20d='M%20315.00%2017.28%20L%20313.00%2017.36%20L%20310.00%2016.25%20L%20307.92%2014.00%20L%20307.08%2011.00%20L%20307.48%207.00%20L%20308.63%205.00%20L%20310.00%203.79%20L%20313.00%202.69%20L%20315.00%202.80%20L%20318.00%204.39%20L%20319.38%206.00%20L%20320.07%209.00%20L%20319.98%2010.00%20L%20319.00%2010.55%20L%20310.00%2010.58%20L%20308.94%2011.00%20L%20310.00%2013.98%20L%20312.00%2015.43%20L%20316.00%2015.31%20L%20318.00%2013.23%20L%20319.00%2012.67%20L%20319.45%2013.00%20L%20319.56%2014.00%20L%20317.87%2016.00%20L%20315.00%2017.28%20Z%20M%20334.00%2017.25%20L%20332.00%2017.37%20L%20329.12%2016.00%20L%20328.08%2013.00%20L%20329.00%2011.03%20L%20331.00%209.63%20L%20337.00%208.98%20L%20337.42%207.00%20L%20336.06%205.00%20L%20335.00%204.54%20L%20332.00%204.81%20L%20330.64%206.00%20L%20330.00%207.59%20L%20329.00%207.69%20L%20328.48%207.00%20L%20328.60%206.00%20L%20330.26%204.00%20L%20334.00%202.68%20L%20337.00%203.56%20L%20338.47%205.00%20L%20339.28%207.00%20L%20339.44%2016.00%20L%20339.00%2016.68%20L%20338.00%2016.86%20L%20337.00%2015.60%20L%20334.00%2017.25%20Z%20M%20345.00%2016.44%20L%20344.00%2016.86%20L%20343.31%2016.00%20L%20343.31%204.00%20L%20344.00%203.18%20L%20346.00%204.14%20L%20348.00%202.95%20L%20349.00%203.19%20L%20349.38%204.00%20L%20349.00%204.45%20L%20347.00%205.31%20L%20345.44%207.00%20L%20345.00%2016.44%20Z%20M%20359.00%2017.01%20L%20356.00%2017.31%20L%20354.00%2016.56%20L%20351.89%2015.00%20L%20350.62%2013.00%20L%20350.63%207.00%20L%20353.08%204.00%20L%20356.00%202.72%20L%20358.00%202.73%20L%20360.79%204.00%20L%20362.52%206.00%20L%20363.31%208.00%20L%20363.00%2010.40%20L%20353.00%2010.57%20L%20352.38%2011.00%20L%20352.57%2013.00%20L%20355.00%2015.35%20L%20359.00%2015.40%20L%20362.00%2012.71%20L%20362.68%2013.00%20L%20362.26%2015.00%20L%20359.00%2017.01%20Z%20M%20301.00%2016.53%20L%20300.00%2016.86%20L%20299.26%2016.00%20L%20296.75%2010.00%20L%20296.42%208.00%20L%20296.00%207.33%20L%20295.00%207.20%20L%20292.22%2015.00%20L%20291.00%2016.86%20L%20290.00%2016.67%20L%20285.00%203.72%20L%20286.00%203.18%20L%20287.10%204.00%20L%20289.79%2012.00%20L%20291.00%2013.39%20L%20294.48%204.00%20L%20295.00%203.24%20L%20296.00%203.31%20L%20300.00%2013.44%20L%20301.41%2011.00%20L%20303.73%204.00%20L%20305.00%203.17%20L%20305.93%204.00%20L%20301.00%2016.53%20Z%20M%20318.02%209.00%20L%20318.35%208.00%20L%20317.37%206.00%20L%20315.00%204.52%20L%20311.25%205.00%20L%20308.94%208.00%20L%20309.28%209.00%20L%20310.00%209.28%20L%20318.02%209.00%20Z%20M%20361.25%209.00%20L%20361.18%207.00%20L%20359.00%204.67%20L%20355.00%204.64%20L%20352.57%207.00%20L%20352.59%209.00%20L%20353.00%209.28%20L%20361.25%209.00%20Z%20M%20335.47%2015.00%20L%20337.28%2013.00%20L%20337.00%2010.60%20L%20333.00%2010.72%20L%20331.00%2011.50%20L%20329.69%2013.00%20L%20329.84%2014.00%20L%20331.00%2015.35%20L%20334.00%2015.51%20L%20335.47%2015.00%20Z%20M%20101.00%2061.19%20L%2098.00%2061.34%20L%2094.00%2060.36%20L%2090.09%2058.00%20L%2086.74%2054.00%20L%2084.94%2048.00%20L%2084.89%2043.00%20L%2086.60%2037.00%20L%2088.61%2034.00%20L%2091.00%2031.73%20L%2096.00%2029.58%20L%20102.00%2029.53%20L%20107.00%2031.65%20L%20110.36%2035.00%20L%20112.30%2039.00%20L%20113.28%2043.00%20L%20113.27%2048.00%20L%20111.41%2054.00%20L%20108.00%2058.13%20L%20104.00%2060.38%20L%20101.00%2061.19%20Z%20M%20157.00%2060.42%20L%20150.00%2060.45%20L%20148.87%2060.00%20L%20149.11%2059.00%20L%20151.31%2058.00%20L%20149.45%2053.00%20L%20148.00%2050.76%20L%20136.00%2050.89%20L%20133.40%2057.00%20L%20133.43%2058.00%20L%20135.38%2059.00%20L%20135.50%2060.00%20L%20135.00%2060.44%20L%20129.00%2060.45%20L%20128.39%2060.00%20L%20128.54%2059.00%20L%20130.00%2058.47%20L%20131.38%2057.00%20L%20141.72%2031.00%20L%20143.00%2029.44%20L%20144.00%2030.00%20L%20145.40%2033.00%20L%20155.60%2057.00%20L%20157.62%2059.00%20L%20157.65%2060.00%20L%20157.00%2060.42%20Z%20M%2021.00%2060.12%20L%207.00%2060.45%20L%205.86%2060.00%20L%206.09%2059.00%20L%208.90%2058.00%20L%209.43%2056.00%20L%209.42%2034.00%20L%209.00%2032.73%20L%208.00%2031.76%20L%206.00%2031.40%20L%206.00%2030.62%20L%2022.00%2030.56%20L%2024.85%2032.00%20L%2026.36%2034.00%20L%2026.37%2038.00%20L%2025.40%2040.00%20L%2023.00%2042.30%20L%2021.30%2043.00%20L%2020.92%2044.00%20L%2024.00%2045.43%20L%2026.55%2048.00%20L%2027.44%2050.00%20L%2027.47%2054.00%20L%2025.00%2058.11%20L%2021.00%2060.12%20Z%20M%2069.00%2060.50%20L%2063.75%2060.00%20L%2057.27%2049.00%20L%2055.00%2046.40%20L%2052.00%2046.55%20L%2051.63%2047.00%20L%2051.70%2055.00%20L%2052.41%2058.00%20L%2055.00%2058.84%20L%2055.33%2060.00%20L%2054.00%2060.45%20L%2045.00%2060.45%20L%2044.40%2060.00%20L%2045.00%2058.67%20L%2047.43%2058.00%20L%2048.07%2055.00%20L%2047.95%2034.00%20L%2047.00%2032.03%20L%2044.35%2031.00%20L%2045.00%2030.35%20L%2060.00%2030.64%20L%2063.00%2031.72%20L%2064.35%2033.00%20L%2065.22%2037.00%20L%2064.13%2041.00%20L%2062.00%2043.34%20L%2059.00%2044.96%20L%2058.68%2046.00%20L%2061.45%2049.00%20L%2067.00%2057.66%20L%2069.96%2060.00%20L%2069.00%2060.50%20Z%20M%20102.43%2059.00%20L%20105.03%2057.00%20L%20107.45%2053.00%20L%20108.53%2048.00%20L%20108.38%2041.00%20L%20107.21%2037.00%20L%20105.40%2034.00%20L%20103.00%2031.81%20L%2099.00%2030.72%20L%2095.00%2031.96%20L%2092.73%2034.00%20L%2091.49%2036.00%20L%2089.79%2041.00%20L%2089.69%2049.00%20L%2091.63%2055.00%20L%2094.11%2058.00%20L%2097.00%2059.49%20L%20101.00%2059.50%20L%20102.43%2059.00%20Z%20M%20190.00%2060.24%20L%20174.00%2060.50%20L%20172.59%2060.00%20L%20173.00%2058.95%20L%20175.71%2058.00%20L%20176.33%2056.00%20L%20176.23%2033.00%20L%20175.00%2031.70%20L%20173.00%2031.37%20L%20173.00%2030.53%20L%20191.00%2030.83%20L%20195.99%2033.00%20L%20199.17%2036.00%20L%20200.26%2038.00%20L%20201.28%2043.00%20L%20201.11%2047.00%20L%20200.16%2051.00%20L%20199.28%2053.00%20L%20196.00%2057.25%20L%20193.00%2059.24%20L%20190.00%2060.24%20Z%20M%20230.00%2061.36%20L%20228.58%2060.00%20L%20217.53%2034.00%20L%20215.24%2031.00%20L%20216.00%2030.39%20L%20223.00%2030.38%20L%20224.33%2031.00%20L%20222.34%2032.00%20L%20221.71%2033.00%20L%20231.00%2054.29%20L%20233.30%2050.00%20L%20239.42%2035.00%20L%20239.94%2033.00%20L%20237.62%2031.00%20L%20239.00%2030.38%20L%20244.00%2030.38%20L%20245.06%2031.00%20L%20243.00%2032.34%20L%20241.64%2034.00%20L%20231.21%2060.00%20L%20230.00%2061.36%20Z%20M%20270.00%2060.43%20L%20260.00%2060.44%20L%20259.43%2060.00%20L%20260.00%2058.68%20L%20262.47%2058.00%20L%20263.13%2055.00%20L%20263.06%2034.00%20L%20262.00%2032.00%20L%20259.38%2031.00%20L%20260.00%2030.35%20L%20270.00%2030.38%20L%20270.59%2031.00%20L%20270.00%2031.66%20L%20268.00%2032.16%20L%20267.35%2033.00%20L%20266.75%2036.00%20L%20266.89%2057.00%20L%20268.00%2058.54%20L%20270.10%2059.00%20L%20270.50%2060.00%20L%20270.00%2060.43%20Z%20M%20307.00%2060.53%20L%20287.13%2060.00%20L%20287.00%2058.99%20L%20289.00%2058.48%20L%20290.45%2057.00%20L%20290.59%2035.00%20L%20290.00%2032.44%20L%20287.00%2030.83%20L%20288.00%2030.34%20L%20306.00%2030.40%20L%20306.71%2031.00%20L%20307.50%2035.00%20L%20307.00%2035.87%20L%20306.00%2035.75%20L%20305.00%2033.18%20L%20303.00%2031.97%20L%20295.00%2031.95%20L%20294.51%2033.00%20L%20294.52%2043.00%20L%20295.00%2043.59%20L%20302.00%2043.54%20L%20303.20%2043.00%20L%20304.00%2040.95%20L%20305.14%2041.00%20L%20305.48%2048.00%20L%20305.00%2048.61%20L%20304.00%2048.54%20L%20303.13%2046.00%20L%20302.00%2045.54%20L%20296.00%2045.48%20L%20294.66%2046.00%20L%20294.75%2056.00%20L%20297.00%2058.17%20L%20304.00%2058.43%20L%20306.00%2056.70%20L%20307.00%2054.24%20L%20308.00%2054.49%20L%20308.33%2055.00%20L%20307.00%2060.53%20Z%20M%20352.00%2061.26%20L%20350.60%2059.00%20L%20343.00%2037.81%20L%20341.75%2039.00%20L%20335.14%2061.00%20L%20333.87%2061.00%20L%20326.10%2035.00%20L%20325.20%2033.00%20L%20322.53%2031.00%20L%20323.00%2030.43%20L%20331.00%2030.38%20L%20332.44%2031.00%20L%20330.00%2032.38%20L%20329.61%2034.00%20L%20335.00%2053.22%20L%20336.00%2053.06%20L%20336.44%2052.00%20L%20336.66%2050.00%20L%20342.54%2031.00%20L%20343.00%2030.51%20L%20344.00%2030.84%20L%20351.70%2053.00%20L%20353.00%2053.46%20L%20358.52%2034.00%20L%20358.00%2032.38%20L%20355.72%2031.00%20L%20357.00%2030.40%20L%20363.00%2030.49%20L%20363.42%2031.00%20L%20361.95%2032.00%20L%20360.53%2034.00%20L%20353.22%2060.00%20L%20352.00%2061.26%20Z%20M%2018.59%2043.00%20L%2021.14%2041.00%20L%2022.32%2039.00%20L%2022.38%2035.00%20L%2020.00%2032.60%20L%2014.00%2031.79%20L%2013.38%2033.00%20L%2013.48%2043.00%20L%2014.00%2043.45%20L%2017.00%2043.46%20L%2018.59%2043.00%20Z%20M%2057.54%2044.00%20L%2060.35%2041.00%20L%2061.23%2038.00%20L%2061.19%2036.00%20L%2060.44%2034.00%20L%2059.00%2032.62%20L%2056.00%2031.64%20L%2053.00%2031.50%20L%2052.11%2032.00%20L%2051.91%2033.00%20L%2051.90%2044.00%20L%2053.00%2044.56%20L%2056.00%2044.62%20L%2057.54%2044.00%20Z%20M%20191.20%2058.00%20L%20194.40%2055.00%20L%20196.28%2051.00%20L%20196.84%2045.00%20L%20196.02%2040.00%20L%20194.00%2036.38%20L%20190.00%2032.89%20L%20185.00%2031.74%20L%20181.00%2031.66%20L%20180.24%2033.00%20L%20180.26%2055.00%20L%20180.68%2057.00%20L%20182.00%2058.14%20L%20185.00%2058.70%20L%20191.20%2058.00%20Z%20M%20147.56%2049.00%20L%20147.52%2048.00%20L%20142.00%2036.16%20L%20136.65%2048.00%20L%20136.62%2049.00%20L%20137.00%2049.38%20L%20147.00%2049.42%20L%20147.56%2049.00%20Z%20M%2021.74%2058.00%20L%2023.44%2056.00%20L%2023.97%2054.00%20L%2023.39%2050.00%20L%2022.00%2047.94%20L%2019.00%2045.66%20L%2014.00%2044.62%20L%2013.39%2046.00%20L%2013.80%2057.00%20L%2016.00%2058.50%20L%2020.00%2058.64%20L%2021.74%2058.00%20Z%20M%2086.00%20104.34%20L%2078.00%20104.46%20L%2077.43%20104.00%20L%2077.80%20103.00%20L%2079.00%20102.81%20L%2079.61%20102.00%20L%2077.50%2096.00%20L%2076.00%2094.88%20L%2064.00%2095.20%20L%2061.48%20101.00%20L%2061.50%20102.00%20L%2063.37%20103.00%20L%2063.64%20104.00%20L%2063.00%20104.47%20L%2057.00%20104.47%20L%2056.43%20104.00%20L%2056.71%20103.00%20L%2059.00%20101.67%20L%2060.49%2099.00%20L%2071.00%2073.64%20L%2072.00%2073.50%20L%2072.48%2074.00%20L%2083.60%20100.00%20L%2084.64%20102.00%20L%2086.09%20103.00%20L%2086.00%20104.34%20Z%20M%20285.00%20104.45%20L%20277.00%20104.38%20L%20276.62%20104.00%20L%20276.97%20103.00%20L%20278.89%20102.00%20L%20276.52%2096.00%20L%20275.00%2094.89%20L%20264.00%2094.89%20L%20262.75%2096.00%20L%20260.74%20101.00%20L%20260.89%20102.00%20L%20262.75%20103.00%20L%20263.14%20104.00%20L%20262.00%20104.47%20L%20257.00%20104.47%20L%20255.72%20104.00%20L%20256.10%20103.00%20L%20258.21%20102.00%20L%20259.41%20100.00%20L%20270.00%2073.92%20L%20271.00%2073.50%20L%20271.48%2074.00%20L%20282.63%20100.00%20L%20283.68%20102.00%20L%20285.25%20103.00%20L%20285.48%20104.00%20L%20285.00%20104.45%20Z%20M%20162.00%20105.03%20L%20142.76%20105.00%20L%20142.47%20104.00%20L%20143.00%20103.53%20L%20145.43%20103.00%20L%20146.29%20100.00%20L%20146.23%2078.00%20L%20145.00%2076.54%20L%20143.00%2076.36%20L%20142.64%2076.00%20L%20143.00%2074.86%20L%20162.00%2075.00%20L%20163.00%2080.00%20L%20162.00%2080.48%20L%20161.00%2078.13%20L%20159.00%2076.63%20L%20151.00%2076.50%20L%20150.40%2077.00%20L%20150.41%2088.00%20L%20151.00%2088.52%20L%20158.00%2088.41%20L%20159.43%2087.00%20L%20160.00%2085.30%20L%20161.00%2085.68%20L%20161.00%2092.61%20L%20160.00%2093.22%20L%20159.00%2090.55%20L%20157.00%2089.87%20L%20151.00%2089.74%20L%20150.17%2091.00%20L%20150.52%20101.00%20L%20153.00%20102.50%20L%20159.00%20102.69%20L%20161.00%20101.61%20L%20161.87%2099.00%20L%20163.00%2098.39%20L%20163.52%2099.00%20L%20163.23%20104.00%20L%20162.00%20105.03%20Z%20M%20207.00%20104.46%20L%20201.92%20104.00%20L%20194.09%2091.00%20L%20193.00%2090.38%20L%20190.55%2091.00%20L%20190.54%20101.00%20L%20191.00%20102.28%20L%20193.97%20104.00%20L%20193.00%20104.69%20L%20183.00%20104.38%20L%20183.00%20103.65%20L%20185.00%20103.27%20L%20186.24%20102.00%20L%20186.43%2099.00%20L%20186.43%2078.00%20L%20186.00%2076.85%20L%20183.00%2075.44%20L%20183.00%2074.74%20L%20197.00%2074.63%20L%20201.00%2075.65%20L%20202.60%2077.00%20L%20203.35%2078.00%20L%20203.66%2080.00%20L%20203.25%2084.00%20L%20200.92%2087.00%20L%20197.64%2089.00%20L%20197.35%2090.00%20L%20199.44%2092.00%20L%20205.93%20102.00%20L%20207.67%20103.00%20L%20207.94%20104.00%20L%20207.00%20104.46%20Z%20M%20237.00%20104.42%20L%20227.00%20104.70%20L%20225.76%20104.00%20L%20228.00%20103.28%20L%20229.00%20102.39%20L%20229.58%20100.00%20L%20229.55%2078.00%20L%20229.00%2076.73%20L%20226.90%2076.00%20L%20226.00%2074.79%20L%20236.00%2074.48%20L%20237.29%2075.00%20L%20233.89%2077.00%20L%20233.43%2080.00%20L%20233.48%20101.00%20L%20234.00%20102.38%20L%20237.00%20103.62%20L%20237.00%20104.42%20Z%20M%20321.00%20104.44%20L%20303.00%20104.53%20L%20302.27%20104.00%20L%20305.12%20102.00%20L%20305.38%2097.00%20L%20305.38%2078.00%20L%20304.82%2077.00%20L%20302.47%2076.00%20L%20303.00%2074.97%20L%20312.00%2074.97%20L%20312.50%2076.00%20L%20310.05%2077.00%20L%20309.50%2078.00%20L%20309.65%20101.00%20L%20311.00%20102.28%20L%20317.00%20102.38%20L%20319.58%20101.00%20L%20321.00%2098.26%20L%20321.86%2099.00%20L%20321.81%20102.00%20L%20321.00%20104.44%20Z%20M%20353.00%20104.30%20L%20346.00%20104.58%20L%20341.51%20103.00%20L%20341.38%2098.00%20L%20342.00%2096.90%20L%20343.97%20101.00%20L%20346.00%20102.46%20L%20349.00%20102.96%20L%20353.00%20102.46%20L%20355.28%20100.00%20L%20355.43%2096.00%20L%20353.00%2093.61%20L%20345.41%2088.00%20L%20343.65%2086.00%20L%20342.90%2084.00%20L%20342.69%2081.00%20L%20343.88%2078.00%20L%20346.17%2076.00%20L%20350.00%2074.53%20L%20357.00%2074.73%20L%20357.72%2076.00%20L%20358.00%2080.00%20L%20357.00%2081.02%20L%20355.00%2077.21%20L%20352.00%2076.22%20L%20348.08%2077.00%20L%20347.00%2078.06%20L%20346.27%2080.00%20L%20346.61%2083.00%20L%20348.00%2084.83%20L%20357.00%2091.62%20L%20359.33%2095.00%20L%20359.30%2098.00%20L%20358.48%20100.00%20L%20356.00%20102.66%20L%20353.00%20104.30%20Z%20M%2023.00%20105.00%20L%2013.00%2083.49%20L%2012.47%2085.00%20L%2012.63%20102.00%20L%2014.00%20103.49%20L%2015.61%20104.00%20L%2015.43%20105.00%20L%207.00%20105.00%20L%206.91%20104.00%20L%209.00%20103.37%20L%209.66%20102.00%20L%2010.24%2080.00%20L%209.48%2078.00%20L%207.00%2077.20%20L%206.42%2076.00%20L%207.00%2075.51%20L%2013.39%2076.00%20L%2024.00%2098.56%20L%2025.35%2097.00%20L%2034.94%2076.00%20L%2036.00%2075.62%20L%2041.00%2075.88%20L%2039.00%2076.61%20L%2037.74%2079.00%20L%2037.57%2091.00%20L%2037.86%20101.00%20L%2039.00%20102.79%20L%2041.20%20104.00%20L%2040.00%20104.54%20L%2033.00%20104.54%20L%2031.22%20104.00%20L%2033.33%20103.00%20L%2034.29%20101.00%20L%2034.41%2085.00%20L%2034.00%2083.26%20L%2032.56%2085.00%20L%2024.00%20104.96%20L%2023.00%20105.00%20Z%20M%20117.00%20104.60%20L%20108.00%20104.68%20L%20107.49%20104.00%20L%20109.67%20103.00%20L%20110.25%20102.00%20L%20110.39%2078.00%20L%20109.00%2077.52%20L%20104.00%2077.59%20L%20102.98%2078.00%20L%20101.75%2081.00%20L%20101.00%2081.59%20L%20100.35%2081.00%20L%20100.36%2076.00%20L%20101.00%2075.33%20L%20124.00%2075.34%20L%20124.56%2076.00%20L%20124.49%2081.00%20L%20124.00%2081.44%20L%20123.18%2081.00%20L%20122.14%2078.00%20L%20121.00%2077.47%20L%20115.00%2077.39%20L%20114.30%2078.00%20L%20114.51%20102.00%20L%20116.00%20103.36%20L%20117.00%20103.53%20L%20117.43%20104.00%20L%20117.00%20104.60%20Z%20M%20195.11%2089.00%20L%20198.00%2087.07%20L%20199.38%2085.00%20L%20199.87%2082.00%20L%20199.44%2079.00%20L%20197.00%2076.81%20L%20191.00%2076.39%20L%20190.55%2077.00%20L%20190.55%2088.00%20L%20191.00%2088.76%20L%20195.11%2089.00%20Z%20M%2075.57%2093.00%20L%2075.25%2091.00%20L%2071.15%2081.00%20L%2070.00%2080.13%20L%2064.79%2093.00%20L%2075.57%2093.00%20Z%20M%20275.15%2093.00%20L%20275.16%2092.00%20L%20270.46%2081.00%20L%20270.00%2080.25%20L%20269.00%2080.38%20L%20264.66%2091.00%20L%20264.42%2093.00%20L%20275.15%2093.00%20Z'/%3e%3c/svg%3e`,Ee=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20370%20110'%20width='370'%20height='110'%20role='img'%20aria-label='Broadview%20Materials%20logo%20black'%3e%3cpath%20fill='%23000000'%20fill-rule='evenodd'%20d='M%20315.00%2017.28%20L%20313.00%2017.36%20L%20310.00%2016.25%20L%20307.92%2014.00%20L%20307.08%2011.00%20L%20307.48%207.00%20L%20308.63%205.00%20L%20310.00%203.79%20L%20313.00%202.69%20L%20315.00%202.80%20L%20318.00%204.39%20L%20319.38%206.00%20L%20320.07%209.00%20L%20319.98%2010.00%20L%20319.00%2010.55%20L%20310.00%2010.58%20L%20308.94%2011.00%20L%20310.00%2013.98%20L%20312.00%2015.43%20L%20316.00%2015.31%20L%20318.00%2013.23%20L%20319.00%2012.67%20L%20319.45%2013.00%20L%20319.56%2014.00%20L%20317.87%2016.00%20L%20315.00%2017.28%20Z%20M%20334.00%2017.25%20L%20332.00%2017.37%20L%20329.12%2016.00%20L%20328.08%2013.00%20L%20329.00%2011.03%20L%20331.00%209.63%20L%20337.00%208.98%20L%20337.42%207.00%20L%20336.06%205.00%20L%20335.00%204.54%20L%20332.00%204.81%20L%20330.64%206.00%20L%20330.00%207.59%20L%20329.00%207.69%20L%20328.48%207.00%20L%20328.60%206.00%20L%20330.26%204.00%20L%20334.00%202.68%20L%20337.00%203.56%20L%20338.47%205.00%20L%20339.28%207.00%20L%20339.44%2016.00%20L%20339.00%2016.68%20L%20338.00%2016.86%20L%20337.00%2015.60%20L%20334.00%2017.25%20Z%20M%20345.00%2016.44%20L%20344.00%2016.86%20L%20343.31%2016.00%20L%20343.31%204.00%20L%20344.00%203.18%20L%20346.00%204.14%20L%20348.00%202.95%20L%20349.00%203.19%20L%20349.38%204.00%20L%20349.00%204.45%20L%20347.00%205.31%20L%20345.44%207.00%20L%20345.00%2016.44%20Z%20M%20359.00%2017.01%20L%20356.00%2017.31%20L%20354.00%2016.56%20L%20351.89%2015.00%20L%20350.62%2013.00%20L%20350.63%207.00%20L%20353.08%204.00%20L%20356.00%202.72%20L%20358.00%202.73%20L%20360.79%204.00%20L%20362.52%206.00%20L%20363.31%208.00%20L%20363.00%2010.40%20L%20353.00%2010.57%20L%20352.38%2011.00%20L%20352.57%2013.00%20L%20355.00%2015.35%20L%20359.00%2015.40%20L%20362.00%2012.71%20L%20362.68%2013.00%20L%20362.26%2015.00%20L%20359.00%2017.01%20Z%20M%20301.00%2016.53%20L%20300.00%2016.86%20L%20299.26%2016.00%20L%20296.75%2010.00%20L%20296.42%208.00%20L%20296.00%207.33%20L%20295.00%207.20%20L%20292.22%2015.00%20L%20291.00%2016.86%20L%20290.00%2016.67%20L%20285.00%203.72%20L%20286.00%203.18%20L%20287.10%204.00%20L%20289.79%2012.00%20L%20291.00%2013.39%20L%20294.48%204.00%20L%20295.00%203.24%20L%20296.00%203.31%20L%20300.00%2013.44%20L%20301.41%2011.00%20L%20303.73%204.00%20L%20305.00%203.17%20L%20305.93%204.00%20L%20301.00%2016.53%20Z%20M%20318.02%209.00%20L%20318.35%208.00%20L%20317.37%206.00%20L%20315.00%204.52%20L%20311.25%205.00%20L%20308.94%208.00%20L%20309.28%209.00%20L%20310.00%209.28%20L%20318.02%209.00%20Z%20M%20361.25%209.00%20L%20361.18%207.00%20L%20359.00%204.67%20L%20355.00%204.64%20L%20352.57%207.00%20L%20352.59%209.00%20L%20353.00%209.28%20L%20361.25%209.00%20Z%20M%20335.47%2015.00%20L%20337.28%2013.00%20L%20337.00%2010.60%20L%20333.00%2010.72%20L%20331.00%2011.50%20L%20329.69%2013.00%20L%20329.84%2014.00%20L%20331.00%2015.35%20L%20334.00%2015.51%20L%20335.47%2015.00%20Z%20M%20101.00%2061.19%20L%2098.00%2061.34%20L%2094.00%2060.36%20L%2090.09%2058.00%20L%2086.74%2054.00%20L%2084.94%2048.00%20L%2084.89%2043.00%20L%2086.60%2037.00%20L%2088.61%2034.00%20L%2091.00%2031.73%20L%2096.00%2029.58%20L%20102.00%2029.53%20L%20107.00%2031.65%20L%20110.36%2035.00%20L%20112.30%2039.00%20L%20113.28%2043.00%20L%20113.27%2048.00%20L%20111.41%2054.00%20L%20108.00%2058.13%20L%20104.00%2060.38%20L%20101.00%2061.19%20Z%20M%20157.00%2060.42%20L%20150.00%2060.45%20L%20148.87%2060.00%20L%20149.11%2059.00%20L%20151.31%2058.00%20L%20149.45%2053.00%20L%20148.00%2050.76%20L%20136.00%2050.89%20L%20133.40%2057.00%20L%20133.43%2058.00%20L%20135.38%2059.00%20L%20135.50%2060.00%20L%20135.00%2060.44%20L%20129.00%2060.45%20L%20128.39%2060.00%20L%20128.54%2059.00%20L%20130.00%2058.47%20L%20131.38%2057.00%20L%20141.72%2031.00%20L%20143.00%2029.44%20L%20144.00%2030.00%20L%20145.40%2033.00%20L%20155.60%2057.00%20L%20157.62%2059.00%20L%20157.65%2060.00%20L%20157.00%2060.42%20Z%20M%2021.00%2060.12%20L%207.00%2060.45%20L%205.86%2060.00%20L%206.09%2059.00%20L%208.90%2058.00%20L%209.43%2056.00%20L%209.42%2034.00%20L%209.00%2032.73%20L%208.00%2031.76%20L%206.00%2031.40%20L%206.00%2030.62%20L%2022.00%2030.56%20L%2024.85%2032.00%20L%2026.36%2034.00%20L%2026.37%2038.00%20L%2025.40%2040.00%20L%2023.00%2042.30%20L%2021.30%2043.00%20L%2020.92%2044.00%20L%2024.00%2045.43%20L%2026.55%2048.00%20L%2027.44%2050.00%20L%2027.47%2054.00%20L%2025.00%2058.11%20L%2021.00%2060.12%20Z%20M%2069.00%2060.50%20L%2063.75%2060.00%20L%2057.27%2049.00%20L%2055.00%2046.40%20L%2052.00%2046.55%20L%2051.63%2047.00%20L%2051.70%2055.00%20L%2052.41%2058.00%20L%2055.00%2058.84%20L%2055.33%2060.00%20L%2054.00%2060.45%20L%2045.00%2060.45%20L%2044.40%2060.00%20L%2045.00%2058.67%20L%2047.43%2058.00%20L%2048.07%2055.00%20L%2047.95%2034.00%20L%2047.00%2032.03%20L%2044.35%2031.00%20L%2045.00%2030.35%20L%2060.00%2030.64%20L%2063.00%2031.72%20L%2064.35%2033.00%20L%2065.22%2037.00%20L%2064.13%2041.00%20L%2062.00%2043.34%20L%2059.00%2044.96%20L%2058.68%2046.00%20L%2061.45%2049.00%20L%2067.00%2057.66%20L%2069.96%2060.00%20L%2069.00%2060.50%20Z%20M%20102.43%2059.00%20L%20105.03%2057.00%20L%20107.45%2053.00%20L%20108.53%2048.00%20L%20108.38%2041.00%20L%20107.21%2037.00%20L%20105.40%2034.00%20L%20103.00%2031.81%20L%2099.00%2030.72%20L%2095.00%2031.96%20L%2092.73%2034.00%20L%2091.49%2036.00%20L%2089.79%2041.00%20L%2089.69%2049.00%20L%2091.63%2055.00%20L%2094.11%2058.00%20L%2097.00%2059.49%20L%20101.00%2059.50%20L%20102.43%2059.00%20Z%20M%20190.00%2060.24%20L%20174.00%2060.50%20L%20172.59%2060.00%20L%20173.00%2058.95%20L%20175.71%2058.00%20L%20176.33%2056.00%20L%20176.23%2033.00%20L%20175.00%2031.70%20L%20173.00%2031.37%20L%20173.00%2030.53%20L%20191.00%2030.83%20L%20195.99%2033.00%20L%20199.17%2036.00%20L%20200.26%2038.00%20L%20201.28%2043.00%20L%20201.11%2047.00%20L%20200.16%2051.00%20L%20199.28%2053.00%20L%20196.00%2057.25%20L%20193.00%2059.24%20L%20190.00%2060.24%20Z%20M%20230.00%2061.36%20L%20228.58%2060.00%20L%20217.53%2034.00%20L%20215.24%2031.00%20L%20216.00%2030.39%20L%20223.00%2030.38%20L%20224.33%2031.00%20L%20222.34%2032.00%20L%20221.71%2033.00%20L%20231.00%2054.29%20L%20233.30%2050.00%20L%20239.42%2035.00%20L%20239.94%2033.00%20L%20237.62%2031.00%20L%20239.00%2030.38%20L%20244.00%2030.38%20L%20245.06%2031.00%20L%20243.00%2032.34%20L%20241.64%2034.00%20L%20231.21%2060.00%20L%20230.00%2061.36%20Z%20M%20270.00%2060.43%20L%20260.00%2060.44%20L%20259.43%2060.00%20L%20260.00%2058.68%20L%20262.47%2058.00%20L%20263.13%2055.00%20L%20263.06%2034.00%20L%20262.00%2032.00%20L%20259.38%2031.00%20L%20260.00%2030.35%20L%20270.00%2030.38%20L%20270.59%2031.00%20L%20270.00%2031.66%20L%20268.00%2032.16%20L%20267.35%2033.00%20L%20266.75%2036.00%20L%20266.89%2057.00%20L%20268.00%2058.54%20L%20270.10%2059.00%20L%20270.50%2060.00%20L%20270.00%2060.43%20Z%20M%20307.00%2060.53%20L%20287.13%2060.00%20L%20287.00%2058.99%20L%20289.00%2058.48%20L%20290.45%2057.00%20L%20290.59%2035.00%20L%20290.00%2032.44%20L%20287.00%2030.83%20L%20288.00%2030.34%20L%20306.00%2030.40%20L%20306.71%2031.00%20L%20307.50%2035.00%20L%20307.00%2035.87%20L%20306.00%2035.75%20L%20305.00%2033.18%20L%20303.00%2031.97%20L%20295.00%2031.95%20L%20294.51%2033.00%20L%20294.52%2043.00%20L%20295.00%2043.59%20L%20302.00%2043.54%20L%20303.20%2043.00%20L%20304.00%2040.95%20L%20305.14%2041.00%20L%20305.48%2048.00%20L%20305.00%2048.61%20L%20304.00%2048.54%20L%20303.13%2046.00%20L%20302.00%2045.54%20L%20296.00%2045.48%20L%20294.66%2046.00%20L%20294.75%2056.00%20L%20297.00%2058.17%20L%20304.00%2058.43%20L%20306.00%2056.70%20L%20307.00%2054.24%20L%20308.00%2054.49%20L%20308.33%2055.00%20L%20307.00%2060.53%20Z%20M%20352.00%2061.26%20L%20350.60%2059.00%20L%20343.00%2037.81%20L%20341.75%2039.00%20L%20335.14%2061.00%20L%20333.87%2061.00%20L%20326.10%2035.00%20L%20325.20%2033.00%20L%20322.53%2031.00%20L%20323.00%2030.43%20L%20331.00%2030.38%20L%20332.44%2031.00%20L%20330.00%2032.38%20L%20329.61%2034.00%20L%20335.00%2053.22%20L%20336.00%2053.06%20L%20336.44%2052.00%20L%20336.66%2050.00%20L%20342.54%2031.00%20L%20343.00%2030.51%20L%20344.00%2030.84%20L%20351.70%2053.00%20L%20353.00%2053.46%20L%20358.52%2034.00%20L%20358.00%2032.38%20L%20355.72%2031.00%20L%20357.00%2030.40%20L%20363.00%2030.49%20L%20363.42%2031.00%20L%20361.95%2032.00%20L%20360.53%2034.00%20L%20353.22%2060.00%20L%20352.00%2061.26%20Z%20M%2018.59%2043.00%20L%2021.14%2041.00%20L%2022.32%2039.00%20L%2022.38%2035.00%20L%2020.00%2032.60%20L%2014.00%2031.79%20L%2013.38%2033.00%20L%2013.48%2043.00%20L%2014.00%2043.45%20L%2017.00%2043.46%20L%2018.59%2043.00%20Z%20M%2057.54%2044.00%20L%2060.35%2041.00%20L%2061.23%2038.00%20L%2061.19%2036.00%20L%2060.44%2034.00%20L%2059.00%2032.62%20L%2056.00%2031.64%20L%2053.00%2031.50%20L%2052.11%2032.00%20L%2051.91%2033.00%20L%2051.90%2044.00%20L%2053.00%2044.56%20L%2056.00%2044.62%20L%2057.54%2044.00%20Z%20M%20191.20%2058.00%20L%20194.40%2055.00%20L%20196.28%2051.00%20L%20196.84%2045.00%20L%20196.02%2040.00%20L%20194.00%2036.38%20L%20190.00%2032.89%20L%20185.00%2031.74%20L%20181.00%2031.66%20L%20180.24%2033.00%20L%20180.26%2055.00%20L%20180.68%2057.00%20L%20182.00%2058.14%20L%20185.00%2058.70%20L%20191.20%2058.00%20Z%20M%20147.56%2049.00%20L%20147.52%2048.00%20L%20142.00%2036.16%20L%20136.65%2048.00%20L%20136.62%2049.00%20L%20137.00%2049.38%20L%20147.00%2049.42%20L%20147.56%2049.00%20Z%20M%2021.74%2058.00%20L%2023.44%2056.00%20L%2023.97%2054.00%20L%2023.39%2050.00%20L%2022.00%2047.94%20L%2019.00%2045.66%20L%2014.00%2044.62%20L%2013.39%2046.00%20L%2013.80%2057.00%20L%2016.00%2058.50%20L%2020.00%2058.64%20L%2021.74%2058.00%20Z%20M%2086.00%20104.34%20L%2078.00%20104.46%20L%2077.43%20104.00%20L%2077.80%20103.00%20L%2079.00%20102.81%20L%2079.61%20102.00%20L%2077.50%2096.00%20L%2076.00%2094.88%20L%2064.00%2095.20%20L%2061.48%20101.00%20L%2061.50%20102.00%20L%2063.37%20103.00%20L%2063.64%20104.00%20L%2063.00%20104.47%20L%2057.00%20104.47%20L%2056.43%20104.00%20L%2056.71%20103.00%20L%2059.00%20101.67%20L%2060.49%2099.00%20L%2071.00%2073.64%20L%2072.00%2073.50%20L%2072.48%2074.00%20L%2083.60%20100.00%20L%2084.64%20102.00%20L%2086.09%20103.00%20L%2086.00%20104.34%20Z%20M%20285.00%20104.45%20L%20277.00%20104.38%20L%20276.62%20104.00%20L%20276.97%20103.00%20L%20278.89%20102.00%20L%20276.52%2096.00%20L%20275.00%2094.89%20L%20264.00%2094.89%20L%20262.75%2096.00%20L%20260.74%20101.00%20L%20260.89%20102.00%20L%20262.75%20103.00%20L%20263.14%20104.00%20L%20262.00%20104.47%20L%20257.00%20104.47%20L%20255.72%20104.00%20L%20256.10%20103.00%20L%20258.21%20102.00%20L%20259.41%20100.00%20L%20270.00%2073.92%20L%20271.00%2073.50%20L%20271.48%2074.00%20L%20282.63%20100.00%20L%20283.68%20102.00%20L%20285.25%20103.00%20L%20285.48%20104.00%20L%20285.00%20104.45%20Z%20M%20162.00%20105.03%20L%20142.76%20105.00%20L%20142.47%20104.00%20L%20143.00%20103.53%20L%20145.43%20103.00%20L%20146.29%20100.00%20L%20146.23%2078.00%20L%20145.00%2076.54%20L%20143.00%2076.36%20L%20142.64%2076.00%20L%20143.00%2074.86%20L%20162.00%2075.00%20L%20163.00%2080.00%20L%20162.00%2080.48%20L%20161.00%2078.13%20L%20159.00%2076.63%20L%20151.00%2076.50%20L%20150.40%2077.00%20L%20150.41%2088.00%20L%20151.00%2088.52%20L%20158.00%2088.41%20L%20159.43%2087.00%20L%20160.00%2085.30%20L%20161.00%2085.68%20L%20161.00%2092.61%20L%20160.00%2093.22%20L%20159.00%2090.55%20L%20157.00%2089.87%20L%20151.00%2089.74%20L%20150.17%2091.00%20L%20150.52%20101.00%20L%20153.00%20102.50%20L%20159.00%20102.69%20L%20161.00%20101.61%20L%20161.87%2099.00%20L%20163.00%2098.39%20L%20163.52%2099.00%20L%20163.23%20104.00%20L%20162.00%20105.03%20Z%20M%20207.00%20104.46%20L%20201.92%20104.00%20L%20194.09%2091.00%20L%20193.00%2090.38%20L%20190.55%2091.00%20L%20190.54%20101.00%20L%20191.00%20102.28%20L%20193.97%20104.00%20L%20193.00%20104.69%20L%20183.00%20104.38%20L%20183.00%20103.65%20L%20185.00%20103.27%20L%20186.24%20102.00%20L%20186.43%2099.00%20L%20186.43%2078.00%20L%20186.00%2076.85%20L%20183.00%2075.44%20L%20183.00%2074.74%20L%20197.00%2074.63%20L%20201.00%2075.65%20L%20202.60%2077.00%20L%20203.35%2078.00%20L%20203.66%2080.00%20L%20203.25%2084.00%20L%20200.92%2087.00%20L%20197.64%2089.00%20L%20197.35%2090.00%20L%20199.44%2092.00%20L%20205.93%20102.00%20L%20207.67%20103.00%20L%20207.94%20104.00%20L%20207.00%20104.46%20Z%20M%20237.00%20104.42%20L%20227.00%20104.70%20L%20225.76%20104.00%20L%20228.00%20103.28%20L%20229.00%20102.39%20L%20229.58%20100.00%20L%20229.55%2078.00%20L%20229.00%2076.73%20L%20226.90%2076.00%20L%20226.00%2074.79%20L%20236.00%2074.48%20L%20237.29%2075.00%20L%20233.89%2077.00%20L%20233.43%2080.00%20L%20233.48%20101.00%20L%20234.00%20102.38%20L%20237.00%20103.62%20L%20237.00%20104.42%20Z%20M%20321.00%20104.44%20L%20303.00%20104.53%20L%20302.27%20104.00%20L%20305.12%20102.00%20L%20305.38%2097.00%20L%20305.38%2078.00%20L%20304.82%2077.00%20L%20302.47%2076.00%20L%20303.00%2074.97%20L%20312.00%2074.97%20L%20312.50%2076.00%20L%20310.05%2077.00%20L%20309.50%2078.00%20L%20309.65%20101.00%20L%20311.00%20102.28%20L%20317.00%20102.38%20L%20319.58%20101.00%20L%20321.00%2098.26%20L%20321.86%2099.00%20L%20321.81%20102.00%20L%20321.00%20104.44%20Z%20M%20353.00%20104.30%20L%20346.00%20104.58%20L%20341.51%20103.00%20L%20341.38%2098.00%20L%20342.00%2096.90%20L%20343.97%20101.00%20L%20346.00%20102.46%20L%20349.00%20102.96%20L%20353.00%20102.46%20L%20355.28%20100.00%20L%20355.43%2096.00%20L%20353.00%2093.61%20L%20345.41%2088.00%20L%20343.65%2086.00%20L%20342.90%2084.00%20L%20342.69%2081.00%20L%20343.88%2078.00%20L%20346.17%2076.00%20L%20350.00%2074.53%20L%20357.00%2074.73%20L%20357.72%2076.00%20L%20358.00%2080.00%20L%20357.00%2081.02%20L%20355.00%2077.21%20L%20352.00%2076.22%20L%20348.08%2077.00%20L%20347.00%2078.06%20L%20346.27%2080.00%20L%20346.61%2083.00%20L%20348.00%2084.83%20L%20357.00%2091.62%20L%20359.33%2095.00%20L%20359.30%2098.00%20L%20358.48%20100.00%20L%20356.00%20102.66%20L%20353.00%20104.30%20Z%20M%2023.00%20105.00%20L%2013.00%2083.49%20L%2012.47%2085.00%20L%2012.63%20102.00%20L%2014.00%20103.49%20L%2015.61%20104.00%20L%2015.43%20105.00%20L%207.00%20105.00%20L%206.91%20104.00%20L%209.00%20103.37%20L%209.66%20102.00%20L%2010.24%2080.00%20L%209.48%2078.00%20L%207.00%2077.20%20L%206.42%2076.00%20L%207.00%2075.51%20L%2013.39%2076.00%20L%2024.00%2098.56%20L%2025.35%2097.00%20L%2034.94%2076.00%20L%2036.00%2075.62%20L%2041.00%2075.88%20L%2039.00%2076.61%20L%2037.74%2079.00%20L%2037.57%2091.00%20L%2037.86%20101.00%20L%2039.00%20102.79%20L%2041.20%20104.00%20L%2040.00%20104.54%20L%2033.00%20104.54%20L%2031.22%20104.00%20L%2033.33%20103.00%20L%2034.29%20101.00%20L%2034.41%2085.00%20L%2034.00%2083.26%20L%2032.56%2085.00%20L%2024.00%20104.96%20L%2023.00%20105.00%20Z%20M%20117.00%20104.60%20L%20108.00%20104.68%20L%20107.49%20104.00%20L%20109.67%20103.00%20L%20110.25%20102.00%20L%20110.39%2078.00%20L%20109.00%2077.52%20L%20104.00%2077.59%20L%20102.98%2078.00%20L%20101.75%2081.00%20L%20101.00%2081.59%20L%20100.35%2081.00%20L%20100.36%2076.00%20L%20101.00%2075.33%20L%20124.00%2075.34%20L%20124.56%2076.00%20L%20124.49%2081.00%20L%20124.00%2081.44%20L%20123.18%2081.00%20L%20122.14%2078.00%20L%20121.00%2077.47%20L%20115.00%2077.39%20L%20114.30%2078.00%20L%20114.51%20102.00%20L%20116.00%20103.36%20L%20117.00%20103.53%20L%20117.43%20104.00%20L%20117.00%20104.60%20Z%20M%20195.11%2089.00%20L%20198.00%2087.07%20L%20199.38%2085.00%20L%20199.87%2082.00%20L%20199.44%2079.00%20L%20197.00%2076.81%20L%20191.00%2076.39%20L%20190.55%2077.00%20L%20190.55%2088.00%20L%20191.00%2088.76%20L%20195.11%2089.00%20Z%20M%2075.57%2093.00%20L%2075.25%2091.00%20L%2071.15%2081.00%20L%2070.00%2080.13%20L%2064.79%2093.00%20L%2075.57%2093.00%20Z%20M%20275.15%2093.00%20L%20275.16%2092.00%20L%20270.46%2081.00%20L%20270.00%2080.25%20L%20269.00%2080.38%20L%20264.66%2091.00%20L%20264.42%2093.00%20L%20275.15%2093.00%20Z'/%3e%3c/svg%3e`,De={formica:ve,hartsonkennedy:Se,trespa:we,arpa:xe,homapal:Ce,fenix:be,broadview:Te},Oe=e=>/^https?:\/\//i.test(e)||e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`),ke=e=>e.trim().toLowerCase().replace(/\s+/g,``).replace(/[^a-z0-9]/g,``);function Ae(e){if(!e||Oe(e))return;let t=ke(e);return De[t]?t:void 0}function je(e,t){return e?Oe(e)?e:De[ke(e)]??t:t}function Me(e,t){if(!e)return t;if(Oe(e))return e;let n=ke(e);return n===`formica`?ye:n===`broadview`?Ee:De[n]??t}var Ne=({rangeId:e,name:t,rangeCode:n,company:r,region:i,subRegion:a,decorCount:o,decorLabel:s=`decors`,openLabel:l=`Open`,actionsLabel:d=`Actions`,deleteLabel:p=`Delete range`,deleteDisabled:m=!1,deleteBlockedMessage:h,disabled:_=!1,onRangeClick:v,onDeleteRangeRequest:y})=>{let[b,x]=(0,c.useState)(!1),S=(0,c.useRef)(null),C=je(r),w=[r,i,a].filter(e=>e.trim()),T=o===1?`decor`:s;return(0,c.useEffect)(()=>{if(!b)return;let e=e=>{S.current?.contains(e.target)||x(!1)},t=e=>{e.key===`Escape`&&x(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[b]),(0,u.jsxs)(`article`,{className:`group relative flex w-full items-center rounded-md border border-borderTertiary bg-secondary p-3 shadow-sm transition hover:border-primary md:p-4`,children:[v&&!_?(0,u.jsx)(K,{ariaLabel:`${l} ${t}`,className:`absolute inset-0 z-10 cursor-pointer rounded-md text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2`,onCardClick:()=>v({rangeId:e}),children:(0,u.jsx)(`span`,{className:`sr-only`,children:`${l} ${t}`})}):null,(0,u.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-3 md:gap-4`,children:[(0,u.jsx)(`div`,{className:`flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-md border border-primary bg-primary p-2 md:h-16 md:w-16`,children:C?(0,u.jsx)(j,{src:C,alt:`${r} logo`,quality:85,fit:`contain`,className:`h-full w-full object-contain`}):(0,u.jsx)(g,{iconType:`fa-regular`,iconName:`building`,alt:`No company logo available`,size:`lg`,className:`text-secondary`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1 md:flex md:items-center md:gap-4`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 md:flex-1`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`truncate text-sm font-bold text-primary md:text-base`,children:t}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:w.length?w.join(` · `):`No location details`})]}),(0,u.jsxs)(f,{variant:`free`,className:`mt-2 text-xs font-bold text-primary md:mt-0 md:shrink-0 md:whitespace-nowrap`,children:[o.toLocaleString(),` `,T]})]})]}),y&&!_?(0,u.jsxs)(`div`,{ref:S,className:`relative z-20 ml-1 shrink-0`,children:[(0,u.jsx)(ge,{iconType:`fa-solid`,iconName:`ellipsis-vertical`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`neutral`,"aria-label":`${d} for ${t}`,"aria-haspopup":`menu`,"aria-expanded":b,onClick:()=>x(e=>!e)}),b?(0,u.jsxs)(`div`,{role:`menu`,className:`absolute right-0 top-full z-30 mt-1 min-w-56 rounded-md border border-borderTertiary bg-secondary p-1 shadow-lg`,children:[(0,u.jsx)(O,{label:p,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,iconSize:`sm`,size:`sm`,variant:`ghost`,intent:`danger`,fullWidth:!0,role:`menuitem`,buttonAlignment:`justify-start`,disabled:m,onClick:()=>{x(!1),y({rangeId:e,name:t,rangeCode:n,company:r,region:i,subRegion:a,decorCount:o})}}),m&&h?(0,u.jsx)(f,{variant:`free`,className:`px-3 pb-2 text-xs text-tertiary`,children:h}):null]}):null]}):null,(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`sm`,className:`ml-1 shrink-0 text-tertiary`})]})};function q(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e){if(Array.isArray(e))return e}function Fe(e){if(Array.isArray(e))return q(e)}function Ie(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Je(r.key),r)}}function Re(e,t,n){return t&&Le(e.prototype,t),n&&Le(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function ze(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Xe(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function J(e,t,n){return(t=Je(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Be(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ve(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function He(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ue(){throw TypeError(`Invalid attempt to spread non-iterable instance.
4
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?We(Object(n),!0).forEach(function(t){J(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ge(e,t){return Pe(e)||Ve(e,t)||Xe(e,t)||He()}function Ke(e){return Fe(e)||Be(e)||Xe(e)||Ue()}function qe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Je(e){var t=qe(e,`string`);return typeof t==`symbol`?t:t+``}function Ye(e){"@babel/helpers - typeof";return Ye=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ye(e)}function Xe(e,t){if(e){if(typeof e==`string`)return q(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}var Ze=function(){},Qe={},$e={},et=null,tt={mark:Ze,measure:Ze};try{typeof window<`u`&&(Qe=window),typeof document<`u`&&($e=document),typeof MutationObserver<`u`&&(et=MutationObserver),typeof performance<`u`&&(tt=performance)}catch{}var nt=(Qe.navigator||{}).userAgent,rt=nt===void 0?``:nt,it=Qe,X=$e,at=et,ot=tt;it.document;var st=!!X.documentElement&&!!X.head&&typeof X.addEventListener==`function`&&typeof X.createElement==`function`,ct=~rt.indexOf(`MSIE`)||~rt.indexOf(`Trident/`),lt,ut=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,dt=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,ft={classic:{fa:`solid`,fas:`solid`,"fa-solid":`solid`,far:`regular`,"fa-regular":`regular`,fal:`light`,"fa-light":`light`,fat:`thin`,"fa-thin":`thin`,fab:`brands`,"fa-brands":`brands`},duotone:{fa:`solid`,fad:`solid`,"fa-solid":`solid`,"fa-duotone":`solid`,fadr:`regular`,"fa-regular":`regular`,fadl:`light`,"fa-light":`light`,fadt:`thin`,"fa-thin":`thin`},sharp:{fa:`solid`,fass:`solid`,"fa-solid":`solid`,fasr:`regular`,"fa-regular":`regular`,fasl:`light`,"fa-light":`light`,fast:`thin`,"fa-thin":`thin`},"sharp-duotone":{fa:`solid`,fasds:`solid`,"fa-solid":`solid`,fasdr:`regular`,"fa-regular":`regular`,fasdl:`light`,"fa-light":`light`,fasdt:`thin`,"fa-thin":`thin`},slab:{"fa-regular":`regular`,faslr:`regular`},"slab-press":{"fa-regular":`regular`,faslpr:`regular`},thumbprint:{"fa-light":`light`,fatl:`light`},whiteboard:{"fa-semibold":`semibold`,fawsb:`semibold`},notdog:{"fa-solid":`solid`,fans:`solid`},"notdog-duo":{"fa-solid":`solid`,fands:`solid`},etch:{"fa-solid":`solid`,faes:`solid`},graphite:{"fa-thin":`thin`,fagt:`thin`},jelly:{"fa-regular":`regular`,fajr:`regular`},"jelly-fill":{"fa-regular":`regular`,fajfr:`regular`},"jelly-duo":{"fa-regular":`regular`,fajdr:`regular`},chisel:{"fa-regular":`regular`,facr:`regular`},utility:{"fa-semibold":`semibold`,fausb:`semibold`},"utility-duo":{"fa-semibold":`semibold`,faudsb:`semibold`},"utility-fill":{"fa-semibold":`semibold`,faufsb:`semibold`}},pt={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},mt=[`fa-classic`,`fa-duotone`,`fa-sharp`,`fa-sharp-duotone`,`fa-thumbprint`,`fa-whiteboard`,`fa-notdog`,`fa-notdog-duo`,`fa-chisel`,`fa-etch`,`fa-graphite`,`fa-jelly`,`fa-jelly-fill`,`fa-jelly-duo`,`fa-slab`,`fa-slab-press`,`fa-utility`,`fa-utility-duo`,`fa-utility-fill`],ht=`classic`,gt=`duotone`,_t=`sharp`,vt=`sharp-duotone`,yt=`chisel`,bt=`etch`,xt=`graphite`,St=`jelly`,Ct=`jelly-duo`,wt=`jelly-fill`,Tt=`notdog`,Et=`notdog-duo`,Dt=`slab`,Ot=`slab-press`,kt=`thumbprint`,At=`utility`,jt=`utility-duo`,Mt=`utility-fill`,Nt=`whiteboard`,Pt=`Classic`,Ft=`Duotone`,It=`Sharp`,Lt=`Sharp Duotone`,Rt=`Chisel`,zt=`Etch`,Bt=`Graphite`,Vt=`Jelly`,Ht=`Jelly Duo`,Ut=`Jelly Fill`,Wt=`Notdog`,Gt=`Notdog Duo`,Kt=`Slab`,qt=`Slab Press`,Jt=`Thumbprint`,Yt=`Utility`,Xt=`Utility Duo`,Zt=`Utility Fill`,Qt=`Whiteboard`,$t=[ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt];lt={},J(J(J(J(J(J(J(J(J(J(lt,ht,Pt),gt,Ft),_t,It),vt,Lt),yt,Rt),bt,zt),xt,Bt),St,Vt),Ct,Ht),wt,Ut),J(J(J(J(J(J(J(J(J(lt,Tt,Wt),Et,Gt),Dt,Kt),Ot,qt),kt,Jt),At,Yt),jt,Xt),Mt,Zt),Nt,Qt);var en={classic:{900:`fas`,400:`far`,normal:`far`,300:`fal`,100:`fat`},duotone:{900:`fad`,400:`fadr`,300:`fadl`,100:`fadt`},sharp:{900:`fass`,400:`fasr`,300:`fasl`,100:`fast`},"sharp-duotone":{900:`fasds`,400:`fasdr`,300:`fasdl`,100:`fasdt`},slab:{400:`faslr`},"slab-press":{400:`faslpr`},whiteboard:{600:`fawsb`},thumbprint:{300:`fatl`},notdog:{900:`fans`},"notdog-duo":{900:`fands`},etch:{900:`faes`},graphite:{100:`fagt`},chisel:{400:`facr`},jelly:{400:`fajr`},"jelly-fill":{400:`fajfr`},"jelly-duo":{400:`fajdr`},utility:{600:`fausb`},"utility-duo":{600:`faudsb`},"utility-fill":{600:`faufsb`}},tn={"Font Awesome 7 Free":{900:`fas`,400:`far`},"Font Awesome 7 Pro":{900:`fas`,400:`far`,normal:`far`,300:`fal`,100:`fat`},"Font Awesome 7 Brands":{400:`fab`,normal:`fab`},"Font Awesome 7 Duotone":{900:`fad`,400:`fadr`,normal:`fadr`,300:`fadl`,100:`fadt`},"Font Awesome 7 Sharp":{900:`fass`,400:`fasr`,normal:`fasr`,300:`fasl`,100:`fast`},"Font Awesome 7 Sharp Duotone":{900:`fasds`,400:`fasdr`,normal:`fasdr`,300:`fasdl`,100:`fasdt`},"Font Awesome 7 Jelly":{400:`fajr`,normal:`fajr`},"Font Awesome 7 Jelly Fill":{400:`fajfr`,normal:`fajfr`},"Font Awesome 7 Jelly Duo":{400:`fajdr`,normal:`fajdr`},"Font Awesome 7 Slab":{400:`faslr`,normal:`faslr`},"Font Awesome 7 Slab Press":{400:`faslpr`,normal:`faslpr`},"Font Awesome 7 Thumbprint":{300:`fatl`,normal:`fatl`},"Font Awesome 7 Notdog":{900:`fans`,normal:`fans`},"Font Awesome 7 Notdog Duo":{900:`fands`,normal:`fands`},"Font Awesome 7 Etch":{900:`faes`,normal:`faes`},"Font Awesome 7 Graphite":{100:`fagt`,normal:`fagt`},"Font Awesome 7 Chisel":{400:`facr`,normal:`facr`},"Font Awesome 7 Whiteboard":{600:`fawsb`,normal:`fawsb`},"Font Awesome 7 Utility":{600:`fausb`,normal:`fausb`},"Font Awesome 7 Utility Duo":{600:`faudsb`,normal:`faudsb`},"Font Awesome 7 Utility Fill":{600:`faufsb`,normal:`faufsb`}},nn=new Map([[`classic`,{defaultShortPrefixId:`fas`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`,`brands`],futureStyleIds:[],defaultFontWeight:900}],[`duotone`,{defaultShortPrefixId:`fad`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`sharp`,{defaultShortPrefixId:`fass`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`sharp-duotone`,{defaultShortPrefixId:`fasds`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`chisel`,{defaultShortPrefixId:`facr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`etch`,{defaultShortPrefixId:`faes`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`graphite`,{defaultShortPrefixId:`fagt`,defaultStyleId:`thin`,styleIds:[`thin`],futureStyleIds:[],defaultFontWeight:100}],[`jelly`,{defaultShortPrefixId:`fajr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`jelly-duo`,{defaultShortPrefixId:`fajdr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`jelly-fill`,{defaultShortPrefixId:`fajfr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`notdog`,{defaultShortPrefixId:`fans`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`notdog-duo`,{defaultShortPrefixId:`fands`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`slab`,{defaultShortPrefixId:`faslr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`slab-press`,{defaultShortPrefixId:`faslpr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`thumbprint`,{defaultShortPrefixId:`fatl`,defaultStyleId:`light`,styleIds:[`light`],futureStyleIds:[],defaultFontWeight:300}],[`utility`,{defaultShortPrefixId:`fausb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}],[`utility-duo`,{defaultShortPrefixId:`faudsb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}],[`utility-fill`,{defaultShortPrefixId:`faufsb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}],[`whiteboard`,{defaultShortPrefixId:`fawsb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}]]),rn={chisel:{regular:`facr`},classic:{brands:`fab`,light:`fal`,regular:`far`,solid:`fas`,thin:`fat`},duotone:{light:`fadl`,regular:`fadr`,solid:`fad`,thin:`fadt`},etch:{solid:`faes`},graphite:{thin:`fagt`},jelly:{regular:`fajr`},"jelly-duo":{regular:`fajdr`},"jelly-fill":{regular:`fajfr`},notdog:{solid:`fans`},"notdog-duo":{solid:`fands`},sharp:{light:`fasl`,regular:`fasr`,solid:`fass`,thin:`fast`},"sharp-duotone":{light:`fasdl`,regular:`fasdr`,solid:`fasds`,thin:`fasdt`},slab:{regular:`faslr`},"slab-press":{regular:`faslpr`},thumbprint:{light:`fatl`},utility:{semibold:`fausb`},"utility-duo":{semibold:`faudsb`},"utility-fill":{semibold:`faufsb`},whiteboard:{semibold:`fawsb`}},an=[`fak`,`fa-kit`,`fakd`,`fa-kit-duotone`],on={kit:{fak:`kit`,"fa-kit":`kit`},"kit-duotone":{fakd:`kit-duotone`,"fa-kit-duotone":`kit-duotone`}},sn=[`kit`];J(J({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var cn={kit:{"fa-kit":`fak`},"kit-duotone":{"fa-kit-duotone":`fakd`}},ln={"Font Awesome Kit":{400:`fak`,normal:`fak`},"Font Awesome Kit Duotone":{400:`fakd`,normal:`fakd`}},un={kit:{fak:`fa-kit`},"kit-duotone":{fakd:`fa-kit-duotone`}},dn={kit:{kit:`fak`},"kit-duotone":{"kit-duotone":`fakd`}},fn,pn={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},mn=[`fa-classic`,`fa-duotone`,`fa-sharp`,`fa-sharp-duotone`,`fa-thumbprint`,`fa-whiteboard`,`fa-notdog`,`fa-notdog-duo`,`fa-chisel`,`fa-etch`,`fa-graphite`,`fa-jelly`,`fa-jelly-fill`,`fa-jelly-duo`,`fa-slab`,`fa-slab-press`,`fa-utility`,`fa-utility-duo`,`fa-utility-fill`];fn={},J(J(J(J(J(J(J(J(J(J(fn,`classic`,`Classic`),`duotone`,`Duotone`),`sharp`,`Sharp`),`sharp-duotone`,`Sharp Duotone`),`chisel`,`Chisel`),`etch`,`Etch`),`graphite`,`Graphite`),`jelly`,`Jelly`),`jelly-duo`,`Jelly Duo`),`jelly-fill`,`Jelly Fill`),J(J(J(J(J(J(J(J(J(fn,`notdog`,`Notdog`),`notdog-duo`,`Notdog Duo`),`slab`,`Slab`),`slab-press`,`Slab Press`),`thumbprint`,`Thumbprint`),`utility`,`Utility`),`utility-duo`,`Utility Duo`),`utility-fill`,`Utility Fill`),`whiteboard`,`Whiteboard`),J(J({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var hn={classic:{"fa-brands":`fab`,"fa-duotone":`fad`,"fa-light":`fal`,"fa-regular":`far`,"fa-solid":`fas`,"fa-thin":`fat`},duotone:{"fa-regular":`fadr`,"fa-light":`fadl`,"fa-thin":`fadt`},sharp:{"fa-solid":`fass`,"fa-regular":`fasr`,"fa-light":`fasl`,"fa-thin":`fast`},"sharp-duotone":{"fa-solid":`fasds`,"fa-regular":`fasdr`,"fa-light":`fasdl`,"fa-thin":`fasdt`},slab:{"fa-regular":`faslr`},"slab-press":{"fa-regular":`faslpr`},whiteboard:{"fa-semibold":`fawsb`},thumbprint:{"fa-light":`fatl`},notdog:{"fa-solid":`fans`},"notdog-duo":{"fa-solid":`fands`},etch:{"fa-solid":`faes`},graphite:{"fa-thin":`fagt`},jelly:{"fa-regular":`fajr`},"jelly-fill":{"fa-regular":`fajfr`},"jelly-duo":{"fa-regular":`fajdr`},chisel:{"fa-regular":`facr`},utility:{"fa-semibold":`fausb`},"utility-duo":{"fa-semibold":`faudsb`},"utility-fill":{"fa-semibold":`faufsb`}},gn={classic:[`fas`,`far`,`fal`,`fat`,`fad`],duotone:[`fadr`,`fadl`,`fadt`],sharp:[`fass`,`fasr`,`fasl`,`fast`],"sharp-duotone":[`fasds`,`fasdr`,`fasdl`,`fasdt`],slab:[`faslr`],"slab-press":[`faslpr`],whiteboard:[`fawsb`],thumbprint:[`fatl`],notdog:[`fans`],"notdog-duo":[`fands`],etch:[`faes`],graphite:[`fagt`],jelly:[`fajr`],"jelly-fill":[`fajfr`],"jelly-duo":[`fajdr`],chisel:[`facr`],utility:[`fausb`],"utility-duo":[`faudsb`],"utility-fill":[`faufsb`]},_n={classic:{fab:`fa-brands`,fad:`fa-duotone`,fal:`fa-light`,far:`fa-regular`,fas:`fa-solid`,fat:`fa-thin`},duotone:{fadr:`fa-regular`,fadl:`fa-light`,fadt:`fa-thin`},sharp:{fass:`fa-solid`,fasr:`fa-regular`,fasl:`fa-light`,fast:`fa-thin`},"sharp-duotone":{fasds:`fa-solid`,fasdr:`fa-regular`,fasdl:`fa-light`,fasdt:`fa-thin`},slab:{faslr:`fa-regular`},"slab-press":{faslpr:`fa-regular`},whiteboard:{fawsb:`fa-semibold`},thumbprint:{fatl:`fa-light`},notdog:{fans:`fa-solid`},"notdog-duo":{fands:`fa-solid`},etch:{faes:`fa-solid`},graphite:{fagt:`fa-thin`},jelly:{fajr:`fa-regular`},"jelly-fill":{fajfr:`fa-regular`},"jelly-duo":{fajdr:`fa-regular`},chisel:{facr:`fa-regular`},utility:{fausb:`fa-semibold`},"utility-duo":{faudsb:`fa-semibold`},"utility-fill":{faufsb:`fa-semibold`}},vn=`fa.fas.far.fal.fat.fad.fadr.fadl.fadt.fab.fass.fasr.fasl.fast.fasds.fasdr.fasdl.fasdt.faslr.faslpr.fawsb.fatl.fans.fands.faes.fagt.fajr.fajfr.fajdr.facr.fausb.faudsb.faufsb`.split(`.`).concat(mn,[`fa-solid`,`fa-regular`,`fa-light`,`fa-thin`,`fa-duotone`,`fa-brands`,`fa-semibold`]),yn=[`solid`,`regular`,`light`,`thin`,`duotone`,`brands`,`semibold`],bn=[1,2,3,4,5,6,7,8,9,10],xn=bn.concat([11,12,13,14,15,16,17,18,19,20]),Sn=[].concat(Ke(Object.keys(gn)),yn,[`aw`,`fw`,`pull-left`,`pull-right`],[`2xs`,`xs`,`sm`,`lg`,`xl`,`2xl`,`beat`,`border`,`fade`,`beat-fade`,`bounce`,`flip-both`,`flip-horizontal`,`flip-vertical`,`flip`,`inverse`,`layers`,`layers-bottom-left`,`layers-bottom-right`,`layers-counter`,`layers-text`,`layers-top-left`,`layers-top-right`,`li`,`pull-end`,`pull-start`,`pulse`,`rotate-180`,`rotate-270`,`rotate-90`,`rotate-by`,`shake`,`spin-pulse`,`spin-reverse`,`spin`,`stack-1x`,`stack-2x`,`stack`,`ul`,`width-auto`,`width-fixed`,pn.GROUP,pn.SWAP_OPACITY,pn.PRIMARY,pn.SECONDARY],bn.map(function(e){return`${e}x`}),xn.map(function(e){return`w-${e}`})),Cn={"Font Awesome 5 Free":{900:`fas`,400:`far`},"Font Awesome 5 Pro":{900:`fas`,400:`far`,normal:`far`,300:`fal`},"Font Awesome 5 Brands":{400:`fab`,normal:`fab`},"Font Awesome 5 Duotone":{900:`fad`}},wn=`___FONT_AWESOME___`,Tn=16,En=`fa`,Dn=`svg-inline--fa`,On=`data-fa-i2svg`,kn=`data-fa-pseudo-element`,An=`data-fa-pseudo-element-pending`,jn=`data-prefix`,Mn=`data-icon`,Nn=`fontawesome-i2svg`,Pn=`async`,Fn=[`HTML`,`HEAD`,`STYLE`,`SCRIPT`],In=[`::before`,`::after`,`:before`,`:after`],Ln=function(){try{return process.env.NODE_ENV===`production`}catch{return!1}}();function Rn(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[ht]}})}var zn=Y({},ft);zn[ht]=Y(Y(Y(Y({},{"fa-duotone":`duotone`}),ft[ht]),on.kit),on[`kit-duotone`]);var Bn=Rn(zn),Vn=Y({},rn);Vn[ht]=Y(Y(Y(Y({},{duotone:`fad`}),Vn[ht]),dn.kit),dn[`kit-duotone`]);var Hn=Rn(Vn),Un=Y({},_n);Un[ht]=Y(Y({},Un[ht]),un.kit);var Wn=Rn(Un),Gn=Y({},hn);Gn[ht]=Y(Y({},Gn[ht]),cn.kit),Rn(Gn);var Kn=ut,qn=`fa-layers-text`,Jn=dt;Rn(Y({},en));var Yn=[`class`,`data-prefix`,`data-icon`,`data-fa-transform`,`data-fa-mask`],Xn=pt,Zn=[].concat(Ke(sn),Ke(Sn)),Qn=it.FontAwesomeConfig||{};function $n(e){var t=X.querySelector(`script[`+e+`]`);if(t)return t.getAttribute(e)}function er(e){return e===``?!0:e===`false`?!1:e===`true`?!0:e}X&&typeof X.querySelector==`function`&&[[`data-family-prefix`,`familyPrefix`],[`data-css-prefix`,`cssPrefix`],[`data-family-default`,`familyDefault`],[`data-style-default`,`styleDefault`],[`data-replacement-class`,`replacementClass`],[`data-auto-replace-svg`,`autoReplaceSvg`],[`data-auto-add-css`,`autoAddCss`],[`data-search-pseudo-elements`,`searchPseudoElements`],[`data-search-pseudo-elements-warnings`,`searchPseudoElementsWarnings`],[`data-search-pseudo-elements-full-scan`,`searchPseudoElementsFullScan`],[`data-observe-mutations`,`observeMutations`],[`data-mutate-approach`,`mutateApproach`],[`data-keep-original-source`,`keepOriginalSource`],[`data-measure-performance`,`measurePerformance`],[`data-show-missing-icons`,`showMissingIcons`]].forEach(function(e){var t=Ge(e,2),n=t[0],r=t[1],i=er($n(n));i!=null&&(Qn[r]=i)});var tr={styleDefault:`solid`,familyDefault:ht,cssPrefix:En,replacementClass:Dn,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:`async`,keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Qn.familyPrefix&&(Qn.cssPrefix=Qn.familyPrefix);var nr=Y(Y({},tr),Qn);nr.autoReplaceSvg||(nr.observeMutations=!1);var Z={};Object.keys(tr).forEach(function(e){Object.defineProperty(Z,e,{enumerable:!0,set:function(t){nr[e]=t,rr.forEach(function(e){return e(Z)})},get:function(){return nr[e]}})}),Object.defineProperty(Z,`familyPrefix`,{enumerable:!0,set:function(e){nr.cssPrefix=e,rr.forEach(function(e){return e(Z)})},get:function(){return nr.cssPrefix}}),it.FontAwesomeConfig=Z;var rr=[];function ir(e){return rr.push(e),function(){rr.splice(rr.indexOf(e),1)}}var ar=Tn,or={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function sr(e){if(!(!e||!st)){var t=X.createElement(`style`);t.setAttribute(`type`,`text/css`),t.innerHTML=e;for(var n=X.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],o=(a.tagName||``).toUpperCase();[`STYLE`,`LINK`].indexOf(o)>-1&&(r=a)}return X.head.insertBefore(t,r),e}}var cr=`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`;function lr(){for(var e=12,t=``;e-- >0;)t+=cr[Math.random()*62|0];return t}function ur(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function dr(e){return e.classList?ur(e.classList):(e.getAttribute(`class`)||``).split(` `).filter(function(e){return e})}function fr(e){return`${e}`.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function pr(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}="${fr(e[n])}" `},``).trim()}function mr(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}: ${e[n].trim()};`},``)}function hr(e){return e.size!==or.size||e.x!==or.x||e.y!==or.y||e.rotate!==or.rotate||e.flipX||e.flipY}function gr(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth;return{outer:{transform:`translate(${n/2} 256)`},inner:{transform:`${`translate(${t.x*32}, ${t.y*32}) `} ${`scale(${t.size/16*(t.flipX?-1:1)}, ${t.size/16*(t.flipY?-1:1)}) `} ${`rotate(${t.rotate} 0 0)`}`},path:{transform:`translate(${r/2*-1} -256)`}}}function _r(e){var t=e.transform,n=e.width,r=n===void 0?Tn:n,i=e.height,a=i===void 0?Tn:i,o=e.startCentered,s=o===void 0?!1:o,c=``;return s&&ct?c+=`translate(${t.x/ar-r/2}em, ${t.y/ar-a/2}em) `:s?c+=`translate(calc(-50% + ${t.x/ar}em), calc(-50% + ${t.y/ar}em)) `:c+=`translate(${t.x/ar}em, ${t.y/ar}em) `,c+=`scale(${t.size/ar*(t.flipX?-1:1)}, ${t.size/ar*(t.flipY?-1:1)}) `,c+=`rotate(${t.rotate}deg) `,c}var vr=`:root, :host {
5
5
  --fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free';
6
6
  --fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free';
7
7
  --fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro';
@@ -552,10 +552,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
552
552
  margin: auto;
553
553
  position: absolute;
554
554
  z-index: var(--fa-stack-z-index, auto);
555
- }`;function vr(){var e=Tn,t=En,n=Z.cssPrefix,r=Z.replacementClass,i=_r;if(n!==e||r!==t){var a=RegExp(`\\.${e}\\-`,`g`),o=RegExp(`\\--${e}\\-`,`g`),s=RegExp(`\\.${t}`,`g`);i=i.replace(a,`.${n}-`).replace(o,`--${n}-`).replace(s,`.${r}`)}return i}var yr=!1;function br(){Z.autoAddCss&&!yr&&(or(vr()),yr=!0)}var xr={mixout:function(){return{dom:{css:vr,insertCss:br}}},hooks:function(){return{beforeDOMElementCreation:function(){br()},beforeI2svg:function(){br()}}}},Sr=rt||{};Sr[Cn]||(Sr[Cn]={}),Sr[Cn].styles||(Sr[Cn].styles={}),Sr[Cn].hooks||(Sr[Cn].hooks={}),Sr[Cn].shims||(Sr[Cn].shims=[]);var Cr=Sr[Cn],wr=[],Tr=function(){X.removeEventListener(`DOMContentLoaded`,Tr),Er=1,wr.map(function(e){return e()})},Er=!1;ot&&(Er=(X.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(X.readyState),Er||X.addEventListener(`DOMContentLoaded`,Tr));function Dr(e){ot&&(Er?setTimeout(e,0):wr.push(e))}function Or(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,a=i===void 0?[]:i;return typeof e==`string`?dr(e):`<${t} ${fr(r)}>${a.map(Or).join(``)}</${t}>`}function kr(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Ar=function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}},jr=function(e,t,n,r){var i=Object.keys(e),a=i.length,o=r===void 0?t:Ar(t,r),s,c,l;for(n===void 0?(s=1,l=e[i[0]]):(s=0,l=n);s<a;s++)c=i[s],l=o(l,e[c],c,e);return l};function Mr(e){return Ge(e).length===1?e.codePointAt(0).toString(16):null}function Nr(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Pr(e,t){var n=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).skipHooks,r=n===void 0?!1:n,i=Nr(t);typeof Cr.hooks.addPack==`function`&&!r?Cr.hooks.addPack(e,Nr(t)):Cr.styles[e]=Y(Y({},Cr.styles[e]||{}),i),e===`fas`&&Pr(`fa`,t)}var Fr=Cr.styles,Ir=Cr.shims,Lr=Object.keys(Un),Rr=Lr.reduce(function(e,t){return e[t]=Object.keys(Un[t]),e},{}),zr=null,Br={},Vr={},Hr={},Ur={},Wr={};function Gr(e){return~Xn.indexOf(e)}function Kr(e,t){var n=t.split(`-`),r=n[0],i=n.slice(1).join(`-`);return r===e&&i!==``&&!Gr(i)?i:null}var qr=function(){var e=function(e){return jr(Fr,function(t,n,r){return t[r]=jr(n,e,{}),t},{})};Br=e(function(e,t,n){return t[3]&&(e[t[3]]=n),t[2]&&t[2].filter(function(e){return typeof e==`number`}).forEach(function(t){e[t.toString(16)]=n}),e}),Vr=e(function(e,t,n){return e[n]=n,t[2]&&t[2].filter(function(e){return typeof e==`string`}).forEach(function(t){e[t]=n}),e}),Wr=e(function(e,t,n){var r=t[2];return e[n]=n,r.forEach(function(t){e[t]=n}),e});var t=`far`in Fr||Z.autoFetchSvg,n=jr(Ir,function(e,n){var r=n[0],i=n[1],a=n[2];return i===`far`&&!t&&(i=`fas`),typeof r==`string`&&(e.names[r]={prefix:i,iconName:a}),typeof r==`number`&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e},{names:{},unicodes:{}});Hr=n.names,Ur=n.unicodes,zr=ni(Z.styleDefault,{family:Z.familyDefault})};rr(function(e){zr=ni(e.styleDefault,{family:Z.familyDefault})}),qr();function Jr(e,t){return(Br[e]||{})[t]}function Yr(e,t){return(Vr[e]||{})[t]}function Xr(e,t){return(Wr[e]||{})[t]}function Zr(e){return Hr[e]||{prefix:null,iconName:null}}function Qr(e){var t=Ur[e],n=Jr(`fas`,e);return t||(n?{prefix:`fas`,iconName:n}:null)||{prefix:null,iconName:null}}function $r(){return zr}var ei=function(){return{prefix:null,iconName:null,rest:[]}};function ti(e){var t=mt,n=Lr.reduce(function(e,t){return e[t]=`${Z.cssPrefix}-${t}`,e},{});return Qt.forEach(function(r){(e.includes(n[r])||e.some(function(e){return Rr[r].includes(e)}))&&(t=r)}),t}function ni(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).family,n=t===void 0?mt:t,r=zn[n][e];if(n===ht&&!e)return`fad`;var i=Vn[n][e]||Vn[n][r],a=e in Cr.styles?e:null;return i||a||null}function ri(e){var t=[],n=null;return e.forEach(function(e){var r=Kr(Z.cssPrefix,e);r?n=r:e&&t.push(e)}),{iconName:n,rest:t}}function ii(e){return e.sort().filter(function(e,t,n){return n.indexOf(e)===t})}var ai=_n.concat(rn);function oi(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).skipLookups,n=t===void 0?!1:t,r=null,i=ii(e.filter(function(e){return ai.includes(e)})),a=ii(e.filter(function(e){return!ai.includes(e)})),o=We(i.filter(function(e){return r=e,!pt.includes(e)}),1)[0],s=o===void 0?null:o,c=ti(i),l=Y(Y({},ri(a)),{},{prefix:ni(s,{family:c})});return Y(Y(Y({},l),ui({values:e,family:c,styles:Fr,config:Z,canonical:l,givenPrefix:r})),si(n,r,l))}function si(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var a=t===`fa`?Zr(i):{},o=Xr(r,i);return i=a.iconName||o||i,r=a.prefix||r,r===`far`&&!Fr.far&&Fr.fas&&!Z.autoFetchSvg&&(r=`fas`),{prefix:r,iconName:i}}var ci=Qt.filter(function(e){return e!==mt||e!==ht}),li=Object.keys(gn).filter(function(e){return e!==mt}).map(function(e){return Object.keys(gn[e])}).flat();function ui(e){var t=e.values,n=e.family,r=e.canonical,i=e.givenPrefix,a=i===void 0?``:i,o=e.styles,s=o===void 0?{}:o,c=e.config,l=c===void 0?{}:c,u=n===ht,d=t.includes(`fa-duotone`)||t.includes(`fad`),f=l.familyDefault===`duotone`,p=r.prefix===`fad`||r.prefix===`fa-duotone`;return!u&&(d||f||p)&&(r.prefix=`fad`),(t.includes(`fa-brands`)||t.includes(`fab`))&&(r.prefix=`fab`),!r.prefix&&ci.includes(n)&&(Object.keys(s).find(function(e){return li.includes(e)})||l.autoFetchSvg)&&(r.prefix=tn.get(n).defaultShortPrefixId,r.iconName=Xr(r.prefix,r.iconName)||r.iconName),(r.prefix===`fa`||a===`fa`)&&(r.prefix=$r()||`fas`),r}var di=function(){function e(){Fe(this,e),this.definitions={}}return Le(e,[{key:`add`,value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(function(t){e.definitions[t]=Y(Y({},e.definitions[t]||{}),i[t]),Pr(t,i[t]);var n=Un[mt][t];n&&Pr(n,i[t]),qr()})}},{key:`reset`,value:function(){this.definitions={}}},{key:`_pullDefinitions`,value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(function(t){var r=n[t],i=r.prefix,a=r.iconName,o=r.icon,s=o[2];e[i]||(e[i]={}),s.length>0&&s.forEach(function(t){typeof t==`string`&&(e[i][t]=o)}),e[i][a]=o}),e}}])}(),fi=[],pi={},mi={},hi=Object.keys(mi);function gi(e,t){var n=t.mixoutsTo;return fi=e,pi={},Object.keys(mi).forEach(function(e){hi.indexOf(e)===-1&&delete mi[e]}),fi.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){typeof t[e]==`function`&&(n[e]=t[e]),Je(t[e])===`object`&&Object.keys(t[e]).forEach(function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]})}),e.hooks){var r=e.hooks();Object.keys(r).forEach(function(e){pi[e]||(pi[e]=[]),pi[e].push(r[e])})}e.provides&&e.provides(mi)}),n}function _i(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(pi[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(r))}),t}function vi(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(pi[e]||[]).forEach(function(e){e.apply(null,n)})}function yi(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return mi[e]?mi[e].apply(null,t):void 0}function bi(e){e.prefix===`fa`&&(e.prefix=`fas`);var t=e.iconName,n=e.prefix||$r();if(t)return t=Xr(n,t)||t,kr(xi.definitions,n,t)||kr(Cr.styles,n,t)}var xi=new di,Si={noAuto:function(){Z.autoReplaceSvg=!1,Z.observeMutations=!1,vi(`noAuto`)},config:Z,dom:{i2svg:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ot?(vi(`beforeI2svg`,e),yi(`pseudoElements2svg`,e),yi(`i2svg`,e)):Promise.reject(Error(`Operation requires a DOM of some kind.`))},watch:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot;Z.autoReplaceSvg===!1&&(Z.autoReplaceSvg=!0),Z.observeMutations=!0,Dr(function(){Ci({autoReplaceSvgRoot:t}),vi(`watch`,e)})}},parse:{icon:function(e){if(e===null)return null;if(Je(e)===`object`&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Xr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){var t=e[1].indexOf(`fa-`)===0?e[1].slice(3):e[1],n=ni(e[0]);return{prefix:n,iconName:Xr(n,t)||t}}if(typeof e==`string`&&(e.indexOf(`${Z.cssPrefix}-`)>-1||e.match(Gn))){var r=oi(e.split(` `),{skipLookups:!0});return{prefix:r.prefix||$r(),iconName:Xr(r.prefix,r.iconName)||r.iconName}}if(typeof e==`string`){var i=$r();return{prefix:i,iconName:Xr(i,e)||e}}}},library:xi,findIconDefinition:bi,toHtml:Or},Ci=function(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).autoReplaceSvgRoot,t=e===void 0?X:e;(Object.keys(Cr.styles).length>0||Z.autoFetchSvg)&&ot&&Z.autoReplaceSvg&&Si.dom.i2svg({node:t})};function wi(e,t){return Object.defineProperty(e,`abstract`,{get:t}),Object.defineProperty(e,`html`,{get:function(){return e.abstract.map(function(e){return Or(e)})}}),Object.defineProperty(e,`node`,{get:function(){if(ot){var t=X.createElement(`div`);return t.innerHTML=e.html,t.children}}}),e}function Ti(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(mr(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=pr(Y(Y({},a),{},{"transform-origin":`${s.x+o.x/16}em ${s.y+o.y/16}em`}))}return[{tag:`svg`,attributes:i,children:t}]}function Ei(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=a===!0?`${t}-${Z.cssPrefix}-${n}`:a;return[{tag:`svg`,attributes:{style:`display: none;`},children:[{tag:`symbol`,attributes:Y(Y({},i),{},{id:o}),children:r}]}]}function Di(e){return[`aria-label`,`aria-labelledby`,`title`,`role`].some(function(t){return t in e})}function Oi(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,c=e.maskId,l=e.extra,u=e.watchable,d=u===void 0?!1:u,f=r.found?r:n,p=f.width,m=f.height,h=[Z.replacementClass,a?`${Z.cssPrefix}-${a}`:``].filter(function(e){return l.classes.indexOf(e)===-1}).filter(function(e){return e!==``||!!e}).concat(l.classes).join(` `),g={children:[],attributes:Y(Y({},l.attributes),{},{"data-prefix":i,"data-icon":a,class:h,role:l.attributes.role||`img`,viewBox:`0 0 ${p} ${m}`})};!Di(l.attributes)&&!l.attributes[`aria-hidden`]&&(g.attributes[`aria-hidden`]=`true`),d&&(g.attributes[Dn]=``);var _=Y(Y({},g),{},{prefix:i,iconName:a,main:n,mask:r,maskId:c,transform:o,symbol:s,styles:Y({},l.styles)}),v=r.found&&n.found?yi(`generateAbstractMask`,_)||{children:[],attributes:{}}:yi(`generateAbstractIcon`,_)||{children:[],attributes:{}},y=v.children,b=v.attributes;return _.children=y,_.attributes=b,s?Ei(_):Ti(_)}function ki(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.extra,o=e.watchable,s=o===void 0?!1:o,c=Y(Y({},a.attributes),{},{class:a.classes.join(` `)});s&&(c[Dn]=``);var l=Y({},a.styles);mr(i)&&(l.transform=gr({transform:i,startCentered:!0,width:n,height:r}),l[`-webkit-transform`]=l.transform);var u=pr(l);u.length>0&&(c.style=u);var d=[];return d.push({tag:`span`,attributes:c,children:[t]}),d}function Ai(e){var t=e.content,n=e.extra,r=Y(Y({},n.attributes),{},{class:n.classes.join(` `)}),i=pr(n.styles);i.length>0&&(r.style=i);var a=[];return a.push({tag:`span`,attributes:r,children:[t]}),a}var ji=Cr.styles;function Mi(e){var t=e[0],n=e[1],r=We(e.slice(4),1)[0],i=null;return i=Array.isArray(r)?{tag:`g`,attributes:{class:`${Z.cssPrefix}-${Yn.GROUP}`},children:[{tag:`path`,attributes:{class:`${Z.cssPrefix}-${Yn.SECONDARY}`,fill:`currentColor`,d:r[0]}},{tag:`path`,attributes:{class:`${Z.cssPrefix}-${Yn.PRIMARY}`,fill:`currentColor`,d:r[1]}}]}:{tag:`path`,attributes:{fill:`currentColor`,d:r}},{found:!0,width:t,height:n,icon:i}}var Ni={found:!1,width:512,height:512};function Pi(e,t){!In&&!Z.showMissingIcons&&e&&console.error(`Icon with name "${e}" and prefix "${t}" is missing.`)}function Fi(e,t){var n=t;return t===`fa`&&Z.styleDefault!==null&&(t=$r()),new Promise(function(r,i){if(n===`fa`){var a=Zr(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&ji[t]&&ji[t][e]){var o=ji[t][e];return r(Mi(o))}Pi(e,t),r(Y(Y({},Ni),{},{icon:Z.showMissingIcons&&e&&yi(`missingIconAbstract`)||{}}))})}var Ii=function(){},Li=Z.measurePerformance&&at&&at.mark&&at.measure?at:{mark:Ii,measure:Ii},Ri=`FA "7.2.0"`,zi=function(e){return Li.mark(`${Ri} ${e} begins`),function(){return Bi(e)}},Bi=function(e){Li.mark(`${Ri} ${e} ends`),Li.measure(`${Ri} ${e}`,`${Ri} ${e} begins`,`${Ri} ${e} ends`)},Vi={begin:zi,end:Bi},Hi=function(){};function Ui(e){return typeof(e.getAttribute?e.getAttribute(Dn):null)==`string`}function Wi(e){var t=e.getAttribute?e.getAttribute(An):null,n=e.getAttribute?e.getAttribute(jn):null;return t&&n}function Gi(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Z.replacementClass)}function Ki(){return Z.autoReplaceSvg===!0?Zi.replace:Zi[Z.autoReplaceSvg]||Zi.replace}function qi(e){return X.createElementNS(`http://www.w3.org/2000/svg`,e)}function Ji(e){return X.createElement(e)}function Yi(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).ceFn,n=t===void 0?e.tag===`svg`?qi:Ji:t;if(typeof e==`string`)return X.createTextNode(e);var r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){r.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){r.appendChild(Yi(e,{ceFn:n}))}),r}function Xi(e){var t=` ${e.outerHTML} `;return t=`${t}Font Awesome fontawesome.com `,t}var Zi={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Yi(e),t)}),t.getAttribute(Dn)===null&&Z.keepOriginalSource){var n=X.createComment(Xi(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~ur(t).indexOf(Z.replacementClass))return Zi.replace(e);var r=RegExp(`${Z.cssPrefix}-.*`);if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(` `).reduce(function(e,t){return t===Z.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(` `),i.toNode.length===0?t.removeAttribute(`class`):t.setAttribute(`class`,i.toNode.join(` `))}var a=n.map(function(e){return Or(e)}).join(`
556
- `);t.setAttribute(Dn,``),t.innerHTML=a}};function Qi(e){e()}function $i(e,t){var n=typeof t==`function`?t:Hi;if(e.length===0)n();else{var r=Qi;Z.mutateApproach===Nn&&(r=rt.requestAnimationFrame||Qi),r(function(){var t=Ki(),r=Vi.begin(`mutate`);e.map(t),r(),n()})}}var ea=!1;function ta(){ea=!0}function na(){ea=!1}var ra=null;function ia(e){if(it&&Z.observeMutations){var t=e.treeCallback,n=t===void 0?Hi:t,r=e.nodeCallback,i=r===void 0?Hi:r,a=e.pseudoElementsCallback,o=a===void 0?Hi:a,s=e.observeMutationsRoot,c=s===void 0?X:s;ra=new it(function(e){if(!ea){var t=$r();lr(e).forEach(function(e){if(e.type===`childList`&&e.addedNodes.length>0&&!Ui(e.addedNodes[0])&&(Z.searchPseudoElements&&o(e.target),n(e.target)),e.type===`attributes`&&e.target.parentNode&&Z.searchPseudoElements&&o([e.target],!0),e.type===`attributes`&&Ui(e.target)&&~Jn.indexOf(e.attributeName))if(e.attributeName===`class`&&Wi(e.target)){var r=oi(ur(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(An,a||t),s&&e.target.setAttribute(jn,s)}else Gi(e.target)&&i(e.target)})}}),ot&&ra.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function aa(){ra&&ra.disconnect()}function oa(e){var t=e.getAttribute(`style`),n=[];return t&&(n=t.split(`;`).reduce(function(e,t){var n=t.split(`:`),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(`:`).trim()),e},{})),n}function sa(e){var t=e.getAttribute(`data-prefix`),n=e.getAttribute(`data-icon`),r=e.innerText===void 0?``:e.innerText.trim(),i=oi(ur(e));return i.prefix||=$r(),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix?i:(i.prefix&&r.length>0&&(i.iconName=Yr(i.prefix,e.innerText)||Jr(i.prefix,Mr(e.innerText))),!i.iconName&&Z.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data),i)}function ca(e){return lr(e.attributes).reduce(function(e,t){return e.name!==`class`&&e.name!==`style`&&(e[t.name]=t.value),e},{})}function la(){return{iconName:null,prefix:null,transform:ar,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function ua(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=sa(e),r=n.iconName,i=n.prefix,a=n.rest,o=ca(e),s=_i(`parseNodeAttributes`,{},e);return Y({iconName:r,prefix:i,transform:ar,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:t.styleParser?oa(e):[],attributes:o}},s)}var da=Cr.styles;function fa(e){var t=Z.autoReplaceSvg===`nest`?ua(e,{styleParser:!1}):ua(e);return~t.extra.classes.indexOf(Kn)?yi(`generateLayersText`,e,t):yi(`generateSvgReplacementMutation`,e,t)}function pa(){return[].concat(Ge(rn),Ge(_n))}function ma(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ot)return Promise.resolve();var n=X.documentElement.classList,r=function(e){return n.add(`${Mn}-${e}`)},i=function(e){return n.remove(`${Mn}-${e}`)},a=Z.autoFetchSvg?pa():pt.concat(Object.keys(da));a.includes(`fa`)||a.push(`fa`);var o=[`.${Kn}:not([${Dn}])`].concat(a.map(function(e){return`.${e}:not([${Dn}])`})).join(`, `);if(o.length===0)return Promise.resolve();var s=[];try{s=lr(e.querySelectorAll(o))}catch{}if(s.length>0)r(`pending`),i(`complete`);else return Promise.resolve();var c=Vi.begin(`onTree`),l=s.reduce(function(e,t){try{var n=fa(t);n&&e.push(n)}catch(e){In||e.name===`MissingIcon`&&console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(l).then(function(n){$i(n,function(){r(`active`),r(`complete`),i(`pending`),typeof t==`function`&&t(),c(),e()})}).catch(function(e){c(),n(e)})})}function ha(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;fa(e).then(function(e){e&&$i([e],t)})}function ga(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:bi(t||{}),i=n.mask;return i&&=(i||{}).icon?i:bi(i||{}),e(r,Y(Y({},n),{},{mask:i}))}}var _a=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?ar:n,i=t.symbol,a=i===void 0?!1:i,o=t.mask,s=o===void 0?null:o,c=t.maskId,l=c===void 0?null:c,u=t.classes,d=u===void 0?[]:u,f=t.attributes,p=f===void 0?{}:f,m=t.styles,h=m===void 0?{}:m;if(e){var g=e.prefix,_=e.iconName,v=e.icon;return wi(Y({type:`icon`},e),function(){return vi(`beforeDOMElementCreation`,{iconDefinition:e,params:t}),Oi({icons:{main:Mi(v),mask:s?Mi(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:_,transform:Y(Y({},ar),r),symbol:a,maskId:l,extra:{attributes:p,styles:h,classes:d}})})}},va={mixout:function(){return{icon:ga(_a)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=ma,e.nodeCallback=ha,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=t===void 0?X:t,r=e.callback;return ma(n,r===void 0?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.prefix,i=t.transform,a=t.symbol,o=t.mask,s=t.maskId,c=t.extra;return new Promise(function(t,l){Promise.all([Fi(n,r),o.iconName?Fi(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(o){var l=We(o,2),u=l[0],d=l[1];t([e,Oi({icons:{main:u,mask:d},prefix:r,iconName:n,transform:i,symbol:a,maskId:s,extra:c,watchable:!0})])}).catch(l)})},e.generateAbstractIcon=function(e){var t=e.children,n=e.attributes,r=e.main,i=e.transform,a=e.styles,o=pr(a);o.length>0&&(n.style=o);var s;return mr(i)&&(s=yi(`generateAbstractTransformGrouping`,{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},ya={mixout:function(){return{layer:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.classes,r=n===void 0?[]:n;return wi({type:`layer`},function(){vi(`beforeDOMElementCreation`,{assembler:e,params:t});var n=[];return e(function(e){Array.isArray(e)?e.map(function(e){n=n.concat(e.abstract)}):n=n.concat(e.abstract)}),[{tag:`span`,attributes:{class:[`${Z.cssPrefix}-layers`].concat(Ge(r)).join(` `)},children:n}]})}}}},ba={mixout:function(){return{counter:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.title,r=n===void 0?null:n,i=t.classes,a=i===void 0?[]:i,o=t.attributes,s=o===void 0?{}:o,c=t.styles,l=c===void 0?{}:c;return wi({type:`counter`,content:e},function(){return vi(`beforeDOMElementCreation`,{content:e,params:t}),Ai({content:e.toString(),title:r,extra:{attributes:s,styles:l,classes:[`${Z.cssPrefix}-layers-counter`].concat(Ge(a))}})})}}}},xa={mixout:function(){return{text:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?ar:n,i=t.classes,a=i===void 0?[]:i,o=t.attributes,s=o===void 0?{}:o,c=t.styles,l=c===void 0?{}:c;return wi({type:`text`,content:e},function(){return vi(`beforeDOMElementCreation`,{content:e,params:t}),ki({content:e,transform:Y(Y({},ar),r),extra:{attributes:s,styles:l,classes:[`${Z.cssPrefix}-layers-text`].concat(Ge(a))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.transform,r=t.extra,i=null,a=null;if(st){var o=parseInt(getComputedStyle(e).fontSize,10),s=e.getBoundingClientRect();i=s.width/o,a=s.height/o}return Promise.resolve([e,ki({content:e.innerHTML,width:i,height:a,transform:n,extra:r,watchable:!0})])}}},Sa=RegExp(`"`,`ug`),Ca=[1105920,1112319],wa=Y(Y(Y(Y({},{FontAwesome:{normal:`fas`,400:`fas`}}),en),Sn),cn),Ta=Object.keys(wa).reduce(function(e,t){return e[t.toLowerCase()]=wa[t],e},{}),Ea=Object.keys(Ta).reduce(function(e,t){var n=Ta[t];return e[t]=n[900]||Ge(Object.entries(n))[0][1],e},{});function Da(e){return Mr(Ge(e.replace(Sa,``))[0]||``)}function Oa(e){var t=e.getPropertyValue(`font-feature-settings`).includes(`ss01`),n=e.getPropertyValue(`content`).replace(Sa,``),r=n.codePointAt(0),i=r>=Ca[0]&&r<=Ca[1],a=n.length===2?n[0]===n[1]:!1;return i||a||t}function ka(e,t){var n=e.replace(/^['"]|['"]$/g,``).toLowerCase(),r=parseInt(t),i=isNaN(r)?`normal`:r;return(Ta[n]||{})[i]||Ea[n]}function Aa(e,t){var n=`${kn}${t.replace(`:`,`-`)}`;return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var a=lr(e.children).filter(function(e){return e.getAttribute(On)===t})[0],o=rt.getComputedStyle(e,t),s=o.getPropertyValue(`font-family`),c=s.match(qn),l=o.getPropertyValue(`font-weight`),u=o.getPropertyValue(`content`);if(a&&!c)return e.removeChild(a),r();if(c&&u!==`none`&&u!==``){var d=o.getPropertyValue(`content`),f=ka(s,l),p=Da(d),m=c[0].startsWith(`FontAwesome`),h=Oa(o),g=Jr(f,p),_=g;if(m){var v=Qr(p);v.iconName&&v.prefix&&(g=v.iconName,f=v.prefix)}if(g&&!h&&(!a||a.getAttribute(An)!==f||a.getAttribute(jn)!==_)){e.setAttribute(n,_),a&&e.removeChild(a);var y=la(),b=y.extra;b.attributes[On]=t,Fi(g,f).then(function(i){var a=Oi(Y(Y({},y),{},{icons:{main:i,mask:ei()},prefix:f,iconName:_,extra:b,watchable:!0})),o=X.createElementNS(`http://www.w3.org/2000/svg`,`svg`);t===`::before`?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=a.map(function(e){return Or(e)}).join(`
557
- `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function ja(e){return Promise.all([Aa(e,`::before`),Aa(e,`::after`)])}function Ma(e){return e.parentNode!==document.head&&!~Pn.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(On)&&(!e.parentNode||e.parentNode.tagName!==`svg`)}var Na=function(e){return!!e&&Fn.some(function(t){return e.includes(t)})},Pa=function(e){if(!e)return[];var t=new Set,n=e.split(/,(?![^()]*\))/).map(function(e){return e.trim()});n=n.flatMap(function(e){return e.includes(`(`)?e:e.split(`,`).map(function(e){return e.trim()})});var r=Re(n),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(Na(a)){var o=Fn.reduce(function(e,t){return e.replace(t,``)},a);o!==``&&o!==`*`&&t.add(o)}}}catch(e){r.e(e)}finally{r.f()}return t};function Fa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ot){var n;if(t)n=e;else if(Z.searchPseudoElementsFullScan)n=e.querySelectorAll(`*`);else{var r=new Set,i=Re(document.styleSheets),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;try{var s=Re(o.cssRules),c;try{for(s.s();!(c=s.n()).done;){var l=c.value,u=Re(Pa(l.selectorText)),d;try{for(u.s();!(d=u.n()).done;){var f=d.value;r.add(f)}}catch(e){u.e(e)}finally{u.f()}}}catch(e){s.e(e)}finally{s.f()}}catch(e){Z.searchPseudoElementsWarnings&&console.warn(`Font Awesome: cannot parse stylesheet: ${o.href} (${e.message})
558
- If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`)}}}catch(e){i.e(e)}finally{i.f()}if(!r.size)return;var p=Array.from(r).join(`, `);try{n=e.querySelectorAll(p)}catch{}}return new Promise(function(e,t){var r=lr(n).filter(Ma).map(ja),i=Vi.begin(`searchPseudoElements`);ta(),Promise.all(r).then(function(){i(),na(),e()}).catch(function(){i(),na(),t()})})}}var Ia={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Fa,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=t===void 0?X:t;Z.searchPseudoElements&&Fa(n)}}},La=!1,Ra={mixout:function(){return{dom:{unwatch:function(){ta(),La=!0}}}},hooks:function(){return{bootstrap:function(){ia(_i(`mutationObserverCallbacks`,{}))},noAuto:function(){aa()},watch:function(e){var t=e.observeMutationsRoot;La?na():ia(_i(`mutationObserverCallbacks`,{observeMutationsRoot:t}))}}}},za=function(e){return e.toLowerCase().split(` `).reduce(function(e,t){var n=t.toLowerCase().split(`-`),r=n[0],i=n.slice(1).join(`-`);if(r&&i===`h`)return e.flipX=!0,e;if(r&&i===`v`)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case`grow`:e.size+=i;break;case`shrink`:e.size-=i;break;case`left`:e.x-=i;break;case`right`:e.x+=i;break;case`up`:e.y-=i;break;case`down`:e.y+=i;break;case`rotate`:e.rotate+=i;break}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Ba={mixout:function(){return{parse:{transform:function(e){return za(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-transform`);return n&&(e.transform=za(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={outer:{transform:`translate(${r/2} 256)`},inner:{transform:`${`translate(${n.x*32}, ${n.y*32}) `} ${`scale(${n.size/16*(n.flipX?-1:1)}, ${n.size/16*(n.flipY?-1:1)}) `} ${`rotate(${n.rotate} 0 0)`}`},path:{transform:`translate(${i/2*-1} -256)`}};return{tag:`g`,attributes:Y({},a.outer),children:[{tag:`g`,attributes:Y({},a.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Y(Y({},t.icon.attributes),a.path)}]}]}}}},Va={x:0,y:0,width:`100%`,height:`100%`};function Ha(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill=`black`),e}function Ua(e){return e.tag===`g`?e.children:[e]}gi([xr,va,ya,ba,xa,Ia,Ra,Ba,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-mask`),r=n?oi(n.split(` `).map(function(e){return e.trim()})):ei();return r.prefix||=$r(),e.mask=r,e.maskId=t.getAttribute(`data-fa-mask-id`),e}}},provides:function(e){e.generateAbstractMask=function(e){var t=e.children,n=e.attributes,r=e.main,i=e.mask,a=e.maskId,o=e.transform,s=r.width,c=r.icon,l=i.width,u=i.icon,d=hr({transform:o,containerWidth:l,iconWidth:s}),f={tag:`rect`,attributes:Y(Y({},Va),{},{fill:`white`})},p=c.children?{children:c.children.map(Ha)}:{},m={tag:`g`,attributes:Y({},d.inner),children:[Ha(Y({tag:c.tag,attributes:Y(Y({},c.attributes),d.path)},p))]},h={tag:`g`,attributes:Y({},d.outer),children:[m]},g=`mask-${a||cr()}`,_=`clip-${a||cr()}`,v={tag:`mask`,attributes:Y(Y({},Va),{},{id:g,maskUnits:`userSpaceOnUse`,maskContentUnits:`userSpaceOnUse`}),children:[f,h]},y={tag:`defs`,children:[{tag:`clipPath`,attributes:{id:_},children:Ua(u)},v]};return t.push(y,{tag:`rect`,attributes:Y({fill:`currentColor`,"clip-path":`url(#${_})`,mask:`url(#${g})`},Va)}),{children:t,attributes:n}}}},{provides:function(e){var t=!1;rt.matchMedia&&(t=rt.matchMedia(`(prefers-reduced-motion: reduce)`).matches),e.missingIconAbstract=function(){var e=[],n={fill:`currentColor`},r={attributeType:`XML`,repeatCount:`indefinite`,dur:`2s`};e.push({tag:`path`,attributes:Y(Y({},n),{},{d:`M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z`})});var i=Y(Y({},r),{},{attributeName:`opacity`}),a={tag:`circle`,attributes:Y(Y({},n),{},{cx:`256`,cy:`364`,r:`28`}),children:[]};return t||a.children.push({tag:`animate`,attributes:Y(Y({},r),{},{attributeName:`r`,values:`28;14;28;28;14;28;`})},{tag:`animate`,attributes:Y(Y({},i),{},{values:`1;0;1;1;0;1;`})}),e.push(a),e.push({tag:`path`,attributes:Y(Y({},n),{},{opacity:`1`,d:`M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z`}),children:t?[]:[{tag:`animate`,attributes:Y(Y({},i),{},{values:`1;0;0;0;0;1;`})}]}),t||e.push({tag:`path`,attributes:Y(Y({},n),{},{opacity:`0`,d:`M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z`}),children:[{tag:`animate`,attributes:Y(Y({},i),{},{values:`0;0;1;1;0;0;`})}]}),{tag:`g`,attributes:{class:`missing`},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-symbol`);return e.symbol=n===null?!1:n===``?!0:n,e}}}}],{mixoutsTo:Si}),Si.noAuto;var Wa=Si.config;Si.library,Si.dom;var Ga=Si.parse;Si.findIconDefinition,Si.toHtml;var Ka=Si.icon;Si.layer,Si.text,Si.counter;function qa(e){return e-=0,e===e}function Ja(e){return qa(e)?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():``),e.charAt(0).toLowerCase()+e.slice(1))}var Ya=(e,t)=>l.default.createElement(`stop`,{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function Xa(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Za=new Map,Qa=1e3;function $a(e){if(Za.has(e))return Za.get(e);let t={},n=0,r=e.length;for(;n<r;){let i=e.indexOf(`;`,n),a=i===-1?r:i,o=e.slice(n,a).trim();if(o){let e=o.indexOf(`:`);if(e>0){let n=o.slice(0,e).trim(),r=o.slice(e+1).trim();if(n&&r){let e=Ja(n);t[e.startsWith(`webkit`)?Xa(e):e]=r}}}n=a+1}if(Za.size===Qa){let e=Za.keys().next().value;e&&Za.delete(e)}return Za.set(e,t),t}function eo(e,t,n={}){if(typeof t==`string`)return t;let r=(t.children||[]).map(t=>{let r=t;return(`fill`in n||n.gradientFill)&&t.tag===`path`&&`fill`in t.attributes&&(r={...t,attributes:{...t.attributes,fill:void 0}}),eo(e,r)}),i=t.attributes||{},a={};for(let[e,t]of Object.entries(i))switch(!0){case e===`class`:a.className=t;break;case e===`style`:a.style=$a(String(t));break;case e.startsWith(`aria-`):case e.startsWith(`data-`):a[e.toLowerCase()]=t;break;default:a[Ja(e)]=t}let{style:o,role:s,"aria-label":c,gradientFill:l,...u}=n;if(o&&(a.style=a.style?{...a.style,...o}:o),s&&(a.role=s),c&&(a[`aria-label`]=c,a[`aria-hidden`]=`false`),l){a.fill=`url(#${l.id})`;let{type:t,stops:n=[],...i}=l;r.unshift(e(t===`linear`?`linearGradient`:`radialGradient`,{...i,id:l.id},n.map(Ya)))}return e(t.tag,{...a,...u},...r)}var to=eo.bind(null,l.default.createElement),no=(e,t)=>{let n=(0,l.useId)();return e||(t?n:void 0)},ro=class{constructor(e=`react-fontawesome`){this.enabled=!1;let t=!1;try{t=typeof process<`u`&&process.env.NODE_ENV===`development`}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}};typeof process<`u`&&process.env?.FA_VERSION;var io=`searchPseudoElementsFullScan`in Wa&&typeof Wa.searchPseudoElementsFullScan==`boolean`?`7.0.0`:`6.0.0`,ao=Number.parseInt(io)>=7,oo=()=>ao,so=`fa`,co={beat:`fa-beat`,fade:`fa-fade`,beatFade:`fa-beat-fade`,bounce:`fa-bounce`,shake:`fa-shake`,spin:`fa-spin`,spinPulse:`fa-spin-pulse`,spinReverse:`fa-spin-reverse`,pulse:`fa-pulse`},lo={left:`fa-pull-left`,right:`fa-pull-right`},uo={90:`fa-rotate-90`,180:`fa-rotate-180`,270:`fa-rotate-270`},fo={"2xs":`fa-2xs`,xs:`fa-xs`,sm:`fa-sm`,lg:`fa-lg`,xl:`fa-xl`,"2xl":`fa-2xl`,"1x":`fa-1x`,"2x":`fa-2x`,"3x":`fa-3x`,"4x":`fa-4x`,"5x":`fa-5x`,"6x":`fa-6x`,"7x":`fa-7x`,"8x":`fa-8x`,"9x":`fa-9x`,"10x":`fa-10x`},po={border:`fa-border`,fixedWidth:`fa-fw`,flip:`fa-flip`,flipHorizontal:`fa-flip-horizontal`,flipVertical:`fa-flip-vertical`,inverse:`fa-inverse`,rotateBy:`fa-rotate-by`,swapOpacity:`fa-swap-opacity`,widthAuto:`fa-width-auto`},mo={default:`fa-layers`};function ho(e){let t=Wa.cssPrefix||Wa.familyPrefix||so;return t===so?e:e.replace(new RegExp(String.raw`(?<=^|\s)${so}-`,`g`),`${t}-`)}function go(e){let{beat:t,fade:n,beatFade:r,bounce:i,shake:a,spin:o,spinPulse:s,spinReverse:c,pulse:l,fixedWidth:u,inverse:d,border:f,flip:p,size:m,rotation:h,pull:g,swapOpacity:_,rotateBy:v,widthAuto:y,className:b}=e,x=[];return b&&x.push(...b.split(` `)),t&&x.push(co.beat),n&&x.push(co.fade),r&&x.push(co.beatFade),i&&x.push(co.bounce),a&&x.push(co.shake),o&&x.push(co.spin),c&&x.push(co.spinReverse),s&&x.push(co.spinPulse),l&&x.push(co.pulse),u&&x.push(po.fixedWidth),d&&x.push(po.inverse),f&&x.push(po.border),p===!0&&x.push(po.flip),(p===`horizontal`||p===`both`)&&x.push(po.flipHorizontal),(p===`vertical`||p===`both`)&&x.push(po.flipVertical),m!=null&&x.push(fo[m]),h!=null&&h!==0&&x.push(uo[h]),g!=null&&x.push(lo[g]),_&&x.push(po.swapOpacity),oo()?(v&&x.push(po.rotateBy),y&&x.push(po.widthAuto),(Wa.cssPrefix||Wa.familyPrefix||so)===so?x:x.map(ho)):x}var _o=e=>typeof e==`object`&&`icon`in e&&!!e.icon;function vo(e){if(e)return _o(e)?e:Ga.icon(e)}function yo(e){return Object.keys(e)}var bo=new ro(`FontAwesomeIcon`),xo={border:!1,className:``,mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:``,titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},So=new Set(Object.keys(xo)),Co=l.default.forwardRef((e,t)=>{let n={...xo,...e},{icon:r,mask:i,symbol:a,title:o,titleId:s,maskId:c,transform:l}=n,u=no(c,!!i),d=no(s,!!o),f=vo(r);if(!f)return bo.error(`Icon lookup is undefined`,r),null;let p=go(n),m=typeof l==`string`?Ga.transform(l):l,h=vo(i),g=Ka(f,{...p.length>0&&{classes:p},...m&&{transform:m},...h&&{mask:h},symbol:a,title:o,titleId:d,maskId:u});if(!g)return bo.error(`Could not find icon`,f),null;let{abstract:_}=g,v={ref:t};for(let e of yo(n))So.has(e)||(v[e]=n[e]);return to(_[0],v)});Co.displayName=`FontAwesomeIcon`,`${mo.default}${po.fixedWidth}`;var wo={prefix:`fas`,iconName:`heart`,icon:[512,512,[128153,128154,128155,128156,128420,129293,129294,129505,9829,10084,61578],`f004`,`M241 87.1l15 20.7 15-20.7C296 52.5 336.2 32 378.9 32 452.4 32 512 91.6 512 165.1l0 2.6c0 112.2-139.9 242.5-212.9 298.2-12.4 9.4-27.6 14.1-43.1 14.1s-30.8-4.6-43.1-14.1C139.9 410.2 0 279.9 0 167.7l0-2.6C0 91.6 59.6 32 133.1 32 175.8 32 216 52.5 241 87.1z`]},To={prefix:`fas`,iconName:`chevron-right`,icon:[320,512,[9002],`f054`,`M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z`]},Eo={prefix:`fas`,iconName:`arrow-right`,icon:[512,512,[8594],`f061`,`M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z`]},Do={prefix:`fas`,iconName:`chevron-left`,icon:[320,512,[9001],`f053`,`M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z`]},Oo={prefix:`far`,iconName:`heart`,icon:[512,512,[128153,128154,128155,128156,128420,129293,129294,129505,9829,10084,61578],`f004`,`M378.9 80c-27.3 0-53 13.1-69 35.2l-34.4 47.6c-4.5 6.2-11.7 9.9-19.4 9.9s-14.9-3.7-19.4-9.9l-34.4-47.6c-16-22.1-41.7-35.2-69-35.2-47 0-85.1 38.1-85.1 85.1 0 49.9 32 98.4 68.1 142.3 41.1 50 91.4 94 125.9 120.3 3.2 2.4 7.9 4.2 14 4.2s10.8-1.8 14-4.2c34.5-26.3 84.8-70.4 125.9-120.3 36.2-43.9 68.1-92.4 68.1-142.3 0-47-38.1-85.1-85.1-85.1zM271 87.1c25-34.6 65.2-55.1 107.9-55.1 73.5 0 133.1 59.6 133.1 133.1 0 68.6-42.9 128.9-79.1 172.8-44.1 53.6-97.3 100.1-133.8 127.9-12.3 9.4-27.5 14.1-43.1 14.1s-30.8-4.7-43.1-14.1C176.4 438 123.2 391.5 79.1 338 42.9 294.1 0 233.7 0 165.1 0 91.6 59.6 32 133.1 32 175.8 32 216 52.5 241 87.1l15 20.7 15-20.7z`]},ko=({id:e,item:t,absoluteIdx:n,isActive:r,showLabel:i,grow:a,isLoaded:o,isFav:s,showFavorites:l=!0,setActiveIndex:d,onLoaded:p,onToggleFav:m,onItemClick:h})=>{let g=()=>h?.(t);return c.default.useEffect(()=>{if(o||typeof window>`u`)return;let n=t.source;if(!n)return;let r=new window.Image;return r.decoding=`async`,r.loading=`eager`,r.onload=()=>p(e),r.onerror=()=>{},r.src=n,r.complete&&r.naturalWidth>0&&p(e),()=>{r.onload=null,r.onerror=null}},[e,o,p,t.source]),(0,u.jsx)(`section`,{className:`w-full md:min-w-0 md:transition-[flex-grow] md:duration-700 md:ease-in-out`,style:{flexGrow:a,flexBasis:0},children:(0,u.jsx)(`div`,{className:[`relative h-36 w-full cursor-pointer`,`md:min-w-0 md:h-175`].join(` `),onMouseEnter:()=>d(n),onFocus:()=>d(n),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),g())},tabIndex:0,role:`link`,"aria-label":t.label,onClick:g,children:(0,u.jsxs)(`div`,{className:`relative h-36 overflow-hidden rounded-md md:h-175`,children:[!o&&(0,u.jsx)(`div`,{className:`absolute inset-0 bg-black/10 animate-pulse`}),(0,u.jsx)(j,{src:t.source,alt:t.alt??t.label,className:[`h-36 w-full object-cover md:h-175`,`transition-opacity duration-500`,o?`opacity-100`:`opacity-60`].join(` `),loading:`lazy`,decoding:`async`,onLoad:()=>p(e),quality:0}),(0,u.jsx)(`div`,{className:[`absolute inset-0`,`bg-gradient-to-t from-black/60 via-black/10 to-transparent`,`transition-opacity duration-500`,r?`opacity-100`:`opacity-70`].join(` `)}),(0,u.jsx)(`div`,{className:`absolute bottom-3 left-3 right-14 md:right-3`,children:(0,u.jsxs)(`div`,{className:[`transition-opacity`,i?`opacity-100 duration-300 delay-200`:`opacity-0 duration-300 ease-in`].join(` `),children:[(0,u.jsx)(f,{variant:`body`,className:`text-secondary`,children:t.label}),t.description?(0,u.jsx)(`div`,{className:[`mt-2 max-h-16 overflow-hidden text-sm text-secondary/85`,`md:transition-all md:duration-500`,r?`md:max-h-24 md:opacity-100`:`md:mt-1 md:max-h-0 md:opacity-0`].join(` `),children:t.description}):null]})}),(0,u.jsx)(`div`,{className:`absolute right-3 bottom-3 flex gap-2`,children:(0,u.jsx)(O,{variant:`outline`,intent:`secondary`,"aria-label":`Open ${t.label}`,className:[r?`border-0!`:`border-2!`,`p-2! transition-transform duration-200 ease-out hover:scale-110`,`active:scale-100 origin-center`].join(` `),children:(0,u.jsx)(Co,{icon:Eo,className:`-rotate-45 text-secondary w-4 h-4`})})}),l?(0,u.jsx)(`div`,{className:`absolute right-3 top-3 flex gap-2`,children:(0,u.jsx)(O,{variant:`link`,intent:`ghost`,"aria-label":s?`Unfavorite`:`Favorite`,className:`h-9 w-9 grid place-items-center`,onClick:e=>{e.stopPropagation(),m(t)},children:(0,u.jsx)(Co,{icon:s?wo:Oo,className:[`w-4 h-4 transition-transform duration-200 ease-out`,`hover:scale-125 active:scale-110 origin-center`,s?`text-accent`:`text-secondary`].join(` `)})})}):null]})})})},Ao=({imageSrc:e,imageAlt:t,title:n,description:r,buttonLabel:i,ctaMode:a=`button`,cardStyle:o=`standard`,onCardClick:s,onCtaClick:c})=>{let l=o===`standard`,d=s&&a===`button`?`text`:a,p=()=>{c?.({title:n,description:r,buttonLabel:i})},m=l?(0,u.jsxs)(`div`,{className:`border border-borderTertiary rounded-lg w-full flex flex-col overflow-hidden bg-secondary`,children:[(0,u.jsx)(`div`,{className:`w-full h-44 md:h-60 overflow-hidden rounded-t-lg`,children:(0,u.jsx)(j,{src:e,alt:t??``,className:`w-full h-full object-cover`,quality:90})}),(0,u.jsxs)(`div`,{className:`flex flex-col grow justify-between px-4 md:px-6 pt-4 pb-4 md:pb-10 md:min-h-64 min-h-56`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-primary text-lg font-bold mb-2`,children:n}),(0,u.jsx)(f,{variant:`body`,className:`mb-4 text-primary text-sm`,children:r})]}),d===`button`&&i?(0,u.jsx)(O,{intent:`accent`,variant:`outline`,label:i,className:`w-full md:w-48`,type:`button`,onClick:p}):null,d===`text`&&i?(0,u.jsx)(f,{variant:`body`,className:`text-sm font-bold text-primary`,children:i}):null]})]}):(0,u.jsxs)(`div`,{className:`w-full flex flex-col overflow-hidden bg-secondary`,children:[(0,u.jsx)(`div`,{className:`h-120 md:h-160 flex overflow-hidden rounded-t-lg`,children:(0,u.jsx)(j,{src:e,alt:t??``,className:`rounded-lg w-full h-full object-cover`,quality:90})}),(0,u.jsxs)(`div`,{className:`flex flex-col grow justify-between gap-2 md:gap-6 px-0 pt-4 pb-4 md:pb-10`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-primary text-lg font-bold mb-2`,children:n}),(0,u.jsx)(f,{variant:`body`,className:`mb-0 text-primary text-sm`,children:r})]}),d===`button`&&i?(0,u.jsx)(O,{intent:`accent`,variant:`link`,label:i,iconName:`arrow-right`,iconType:`fa-solid`,iconPosition:`right`,buttonAlignment:`justify-start`,className:`p-0!`,type:`button`,onClick:p}):null,d===`text`&&i?(0,u.jsx)(f,{variant:`body`,className:`text-sm font-bold text-primary`,children:i}):null]})]});return s?(0,u.jsx)(K,{onCardClick:s,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:m}):m},jo=({imageSrc:e,imageAlt:t,title:n,brand:r,decorNumber:i,onProductClick:a})=>{let o=(0,u.jsxs)(`section`,{className:a?`cursor-pointer`:``,children:[(0,u.jsx)(j,{src:e,alt:t??``,quality:90,className:`h-40 w-40 md:h-80 md:w-80 object-cover`}),(0,u.jsxs)(`div`,{className:`mt-2`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs text-tertiary`,children:i}),(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold leading-tight text-primary`,children:n}),(0,u.jsx)(f,{variant:`free`,className:`text-xs leading-tight text-primary`,children:r})]})]});return a?(0,u.jsx)(K,{onCardClick:a,className:`block w-40 md:w-80 shrink-0 text-left`,ariaLabel:`Open ${n}${i?` ${i}`:``}`,children:o}):(0,u.jsx)(`div`,{className:`w-40 md:w-80 shrink-0`,children:o})},Mo=e=>{if(e.distance)return e.distance.label??`${e.distance.value.toLocaleString(void 0,{maximumFractionDigits:2})} ${e.distance.unit}`},No=e=>[e.city,e.region,e.postalCode].filter(Boolean).join(` `),Po=(e,t,n)=>{e?.({location:t,href:n})},Fo=({location:e,stockedProductsLabel:t=`Stocked Products`,preferredLabel:n=`Preferred Retailer`,websiteLabel:r=`Visit Website`,directionsLabel:i=`Get Directions`,emailLabel:a=`Email`,onWebsiteClick:o,onDirectionsClick:s,onPhoneClick:c,onEmailClick:l})=>{let d=Mo(e),p=No(e.address),m=(e.dealerType??e.type)===`retailer`;return(0,u.jsxs)(`article`,{className:`flex h-full min-h-100 w-full flex-col rounded border border-transparent bg-white p-6 text-primary hover:border-accent`,children:[(0,u.jsxs)(`div`,{className:`mb-3`,children:[(0,u.jsxs)(`div`,{className:``,children:[e.isPreferred?(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`location-dot`,color:`secondaryHover`,size:`lg`,alt:n,className:`mt-1 shrink-0`}):null,(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-lg font-bold min-h-12`,children:e.name})]}),d?(0,u.jsxs)(`div`,{className:`inline-flex items-start gap-2`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`location-dot`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsx)(f,{variant:`caption`,className:`text-primary text-sm`,children:d})]}):null]}),(0,u.jsxs)(`div`,{className:`mb-5 space-y-2`,children:[(0,u.jsxs)(`address`,{className:`flex min-h-14 items-start gap-2 not-italic`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`map-location-dot`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsxs)(`div`,{children:[e.address.lines.map((e,t)=>(0,u.jsx)(f,{variant:`body`,className:`text-sm`,children:e},`${e}-${t}`)),(0,u.jsx)(f,{variant:`body`,className:`text-sm`,children:p})]})]}),e.directionsUrl?(0,u.jsx)(`div`,{children:(0,u.jsxs)(f,{as:`a`,variant:`body`,href:e.directionsUrl,className:`group inline-flex items-start gap-2 text-sm hover:text-accent hover:underline`,onClick:()=>Po(s,e,e.directionsUrl),children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`diamond-turn-right`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),i,(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`arrow-right`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`})]})}):null]}),(0,u.jsxs)(`div`,{className:`mb-5 min-h-14 space-y-1`,children:[(0,u.jsx)(`div`,{children:e.phone?e.phoneHref?(0,u.jsxs)(`div`,{className:`group inline-flex items-start gap-2`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`mobile-screen`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),(0,u.jsx)(f,{as:`a`,variant:`body`,className:`text-sm hover:text-accent hover:underline`,href:e.phoneHref,onClick:()=>Po(c,e,e.phoneHref),children:e.phone})]}):(0,u.jsxs)(`div`,{className:`inline-flex items-start gap-2`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`mobile-screen`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-sm`,children:e.phone})]}):null}),!e.email&&!e.emailHref?null:(0,u.jsx)(`div`,{children:(0,u.jsxs)(f,{as:`button`,type:`button`,variant:`body`,className:`group inline-flex cursor-pointer items-start gap-2 bg-transparent p-0 text-left text-sm hover:text-accent hover:underline`,onClick:()=>Po(l,e,e.emailHref),children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`envelope-open-text`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),a]})}),e.websiteUrl?(0,u.jsx)(`div`,{children:(0,u.jsxs)(f,{as:`a`,variant:`body`,className:`group inline-flex items-start gap-2 text-sm hover:text-accent hover:underline`,href:e.websiteUrl,onClick:()=>Po(o,e,e.websiteUrl),children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`globe`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),r]})}):null]}),m?(0,u.jsxs)(`div`,{className:`mt-auto min-h-24`,children:[(0,u.jsxs)(`div`,{className:`inline-flex items-start gap-2`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`box-open`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsx)(f,{variant:`bold`,className:`text-sm text-primary`,children:t})]}),e.stockedProducts.length>0?(0,u.jsx)(`ul`,{className:`mt-1 list-none pl-6`,children:e.stockedProducts.map(e=>(0,u.jsx)(`li`,{children:(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-xs`,children:e.label})},e.id))}):null]}):null]})},Io=({countries:e=[],selectedCountry:t,onCountrySelect:n})=>{let[r,i]=(0,c.useState)(!1),a=(0,c.useRef)(null),o=t??e[0]??null,s=e=>{n?.(e),i(!1)},l=e=>{a.current&&!a.current.contains(e.target)&&i(!1)};return(0,c.useEffect)(()=>(document.addEventListener(`mousedown`,l),()=>document.removeEventListener(`mousedown`,l)),[]),(0,u.jsxs)(`div`,{ref:a,className:`relative`,children:[(0,u.jsxs)(O,{intent:`primary`,variant:`link`,type:`button`,onClick:()=>i(!r),"aria-haspopup":`listbox`,"aria-expanded":r,children:[(0,u.jsxs)(f,{variant:`navlink`,className:`text-sm`,children:[o?.label??`Select Country`,o?.locale?` (${o.locale})`:``]}),(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`angle-down`,className:`text-grayText text-xs transition-transform duration-300 ${r?`rotate-180`:``}`})]}),r&&(0,u.jsx)(`ul`,{id:`country-selector`,className:`absolute left-0 top-full mt-2 z-50 max-h-80 w-52 overflow-auto bg-white shadow-md`,children:e.map((e,t)=>(0,u.jsx)(`li`,{"data-countrycode":e.label,className:`hover:bg-gray-100`,children:(0,u.jsxs)(`button`,{type:`button`,onClick:()=>s(e),className:`flex w-full px-3 py-2 text-left`,children:[(0,u.jsx)(f,{variant:`navlink`,className:`text-sm text-gray-700`,children:e.label}),(0,u.jsxs)(f,{variant:`nav`,className:`ml-1 mt-0.5 whitespace-nowrap text-xs text-gray-500`,children:[`(`,e.locale,`)`]})]})},`${e.href}-${t}`))})]})},Lo=e=>{let t=e.trim().split(/\s+/).filter(Boolean);return(t.length>1?t.map(e=>e[0]).join(``):e.slice(0,2)).toUpperCase()},Ro=({options:e,value:t,label:n=`Region`,placeholder:r=`Select region`,helpText:i,disabled:a=!1,name:o=`admin-region`,onChange:s})=>{let c=!t.trim(),l=`${o}-help`;return(0,u.jsxs)(`fieldset`,{className:`min-w-0`,disabled:a,"aria-describedby":i?l:void 0,children:[(0,u.jsx)(`legend`,{className:`sr-only`,children:n}),(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":n,"aria-invalid":c||void 0,className:`flex flex-wrap gap-x-4 gap-y-2`,children:e.map(e=>(0,u.jsxs)(`label`,{title:e.label,className:`flex cursor-pointer flex-col items-center gap-1 rounded-md has-[:disabled]:cursor-not-allowed`,children:[(0,u.jsx)(`input`,{type:`radio`,name:o,value:e.value,checked:t===e.value,disabled:a,required:!0,"aria-label":e.label,className:`peer sr-only`,onChange:e=>s({region:e.target.value})}),(0,u.jsx)(`span`,{className:`flex h-10 w-10 items-center justify-center rounded-full border border-borderTertiary bg-secondary text-tertiary transition hover:border-primary hover:text-primary peer-checked:border-primary peer-checked:bg-primary peer-checked:text-secondary peer-checked:hover:bg-secondaryHover peer-checked:hover:text-primary peer-focus-visible:ring-2 peer-focus-visible:ring-primary peer-focus-visible:ring-offset-2 peer-disabled:opacity-50`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:e.iconName??`earth-americas`,alt:``,size:`xl`})}),(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary peer-checked:text-primary peer-disabled:opacity-50`,"aria-hidden":`true`,children:e.shortLabel??Lo(e.label)})]},e.value))}),c?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-xs text-accent`,children:r}):null,i?(0,u.jsx)(f,{id:l,variant:`free`,className:`sr-only`,children:i}):null]})},zo=({ranges:e,selectedRangeId:t,disabled:n=!1,ariaLabel:r=`Filter by range`,action:i,onRangeSelect:a})=>(0,u.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":r,className:`contents`,children:e.map(e=>({id:e.id,label:e.label,title:`${e.label} (${e.decorCount.toLocaleString()} decors)`})).map(e=>{let r=e.id===t;return(0,u.jsx)(O,{label:e.label,title:e.title,variant:r?`solid`:`outline`,intent:`primary`,size:`sm`,role:`radio`,"aria-checked":r,disabled:n,onClick:()=>a({rangeId:e.id})},e.id)})}),i]}),Bo=({title:e,iconName:t,dimension:n,options:r,selectedValue:i,readOnly:a,onSelect:o})=>(0,u.jsxs)(`fieldset`,{children:[(0,u.jsx)(`legend`,{className:`text-sm font-bold text-primary`,children:(0,u.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:t,alt:``,size:`sm`,color:`secondaryHover`,className:`w-4 shrink-0`}),e]})}),(0,u.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:r.map(e=>{let t=e.value===i,r=`market-readiness-${n}-${e.value}-description`;return(0,u.jsxs)(`span`,{className:`group relative`,children:[(0,u.jsx)(`button`,{type:`button`,"aria-pressed":t,"aria-describedby":e.description?r:void 0,disabled:a||e.disabled,className:`rounded-md border px-4 py-2 text-sm font-semibold transition ${t?`border-primary bg-primary text-secondary`:`border-borderTertiary bg-secondary text-primary hover:border-primary`} disabled:cursor-default disabled:opacity-70`,onClick:()=>o?.(n,e.value),children:e.label}),e.description?(0,u.jsx)(`span`,{id:r,role:`tooltip`,className:`pointer-events-none absolute bottom-full left-1/2 z-10 mb-2 hidden w-max max-w-64 -translate-x-1/2 rounded-md bg-primary px-3 py-2 text-xs font-normal text-secondary shadow-lg group-hover:block group-focus-within:block`,children:e.description}):null]},e.value)})})]}),Vo=({id:e,name:t,type:n=`text`,value:r=``,placeholder:i=``,ariaLabel:a,ariaDescribedBy:o,disabled:s=!1,readOnly:l=!1,required:d=!1,min:f,max:p,step:m,hasError:h=!1,clearable:_=!1,clearLabel:v=`Clear input`,className:y=``,inputClassName:b=``,autoComplete:x,autoFocus:S,leadingIcon:C,trailingIcon:w,onChange:T,onBlur:E,onFocus:D,onKeyDown:O,onClear:k})=>{let[A,j]=(0,c.useState)(!1),M=n===`password`,N=String(r),P=_&&!!N&&!s&&!l&&!M&&!w,F=(0,c.useMemo)(()=>M?A?`text`:`password`:n,[n,M,A]),I=(M?(0,u.jsx)(`button`,{type:`button`,onClick:()=>j(e=>!e),className:`absolute right-3 top-1/2 -translate-y-1/2`,"aria-label":A?`Hide password`:`Show password`,children:(0,u.jsx)(g,{iconName:A?`fa-eye-slash`:`fa-eye`,iconType:`fa-solid`,className:`text-sm text-secondaryActive`})}):null)||(P?(0,u.jsx)(`button`,{type:`button`,"aria-label":v,className:`absolute right-3 top-1/2 flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded-md text-primary hover:bg-tertiaryActive`,onClick:()=>k?.({value:N}),children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`xmark`,alt:``,size:`sm`})}):w?(0,u.jsx)(`span`,{className:`absolute right-3 top-1/2 -translate-y-1/2`,children:w}):null),L=[`w-full rounded-md border bg-white py-3 text-sm outline-none transition-colors placeholder-tertiary`,h?`border-accent text-accent`:`border-secondaryHover text-primary`,s?`cursor-not-allowed opacity-60`:``,C?`pl-10 pr-4`:`px-4`,I?`pr-12`:``,b].filter(Boolean).join(` `);return(0,u.jsxs)(`div`,{className:`relative w-full ${y}`.trim(),children:[C?(0,u.jsx)(`span`,{className:`absolute left-3 top-1/2 -translate-y-1/2`,children:C}):null,(0,u.jsx)(`input`,{id:e,name:t,type:F,value:N,placeholder:i,"aria-label":a,"aria-describedby":o,"aria-invalid":h||void 0,disabled:s,readOnly:l,required:d,min:f,max:p,step:m,autoComplete:x,autoFocus:S,className:L,onChange:T,onBlur:E,onFocus:D,onKeyDown:O}),I]})},Ho=({placeholder:e=`Search`,value:t=``,inputClassName:n=``,controlSize:r=`compact`,clearLabel:i=`Clear search`,disabled:a,readOnly:o,onKeyDown:s,onSearchSubmit:c,...l})=>{let d=String(t),f=r===`default`?`h-auto py-3`:`h-8 py-2`,p=e=>{s?.(e),!e.defaultPrevented&&e.key===`Enter`&&c?.({value:e.currentTarget.value})};return(0,u.jsx)(Vo,{...l,value:d,type:`search`,placeholder:e,disabled:a,readOnly:o,clearable:!0,clearLabel:i,inputClassName:`${f} pl-10 ${n}`.trim(),onKeyDown:p,leadingIcon:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`magnifying-glass`,className:`text-sm text-secondaryHover`})})},Uo=({id:e,name:t,ariaLabel:n=`Search`,placeholder:r=`Search`,value:i=``,options:a,emptyMessage:o=`No matches found.`,minQueryLength:s=1,disabled:l,readOnly:d,hasError:p,clearLabel:m=`Clear search`,controlSize:h,valueStatus:g=`default`,onQueryChange:_,onOptionSelect:v,onSearchSubmit:y,onClear:b})=>{let x=(0,c.useRef)(null),[S,C]=(0,c.useState)(!1),[w,T]=(0,c.useState)(0),E=String(i),D=!l&&!d&&E.trim().length>=s,O=(0,c.useMemo)(()=>D?a:[],[D,a]),k=S&&D,A=e?`${e}-options`:void 0;(0,c.useEffect)(()=>{T(0)},[E,a]),(0,c.useEffect)(()=>{if(!S)return;let e=e=>{let t=e.target;t instanceof Node&&x.current?.contains(t)||C(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[S]);let j=e=>{C(!1),v?.({option:e,query:E})};return(0,u.jsxs)(`div`,{ref:x,className:`relative w-full`,children:[(0,u.jsx)(Ho,{id:e,name:t,ariaLabel:n,placeholder:r,value:E,disabled:l,readOnly:d,hasError:p,clearLabel:m,controlSize:h,inputClassName:g===`inactive`?`line-through`:``,autoComplete:`off`,onChange:e=>{let t=e.target.value;C(!0),_?.({value:t})},onClear:()=>{C(!1),b?.({value:E})},onFocus:()=>C(!0),onKeyDown:e=>{if(e.key===`ArrowDown`){e.preventDefault(),C(!0),T(e=>O.length>0?(e+1)%O.length:0);return}if(e.key===`ArrowUp`){e.preventDefault(),C(!0),T(e=>O.length>0?(e-1+O.length)%O.length:0);return}if(e.key===`Escape`){e.preventDefault(),C(!1);return}e.key===`Enter`&&k&&O.length>0&&(e.preventDefault(),j(O[w]))},onSearchSubmit:()=>{C(!1),y?.({value:E})}}),k?(0,u.jsx)(`div`,{id:A,role:`listbox`,"aria-label":`${n} matches`,className:`absolute left-0 right-0 z-20 mt-1 overflow-hidden rounded-lg border border-borderTertiary bg-secondary shadow-lg`,children:O.length>0?(0,u.jsx)(`ul`,{className:`max-h-72 overflow-y-auto py-1`,children:O.map((e,t)=>{let n=t===w;return(0,u.jsx)(`li`,{role:`option`,"aria-selected":n,children:(0,u.jsxs)(`button`,{type:`button`,className:`flex w-full flex-col px-3 py-2 text-left hover:bg-tertiaryActive focus:bg-tertiaryActive focus:outline-none ${n?`bg-tertiaryActive`:``}`,onMouseEnter:()=>T(t),onClick:()=>j(e),children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:e.label}),e.description?(0,u.jsx)(f,{variant:`free`,className:`mt-0.5 text-xs text-tertiary`,children:e.description}):null]})},e.id)})}):(0,u.jsx)(f,{variant:`free`,className:`px-3 py-3 text-sm text-primary`,children:o})}):null]})},Wo=({id:e,name:t,label:n,checked:r=!1,disabled:i=!1,checkboxColor:a=`accent-accent`,onChange:o})=>(0,u.jsxs)(`label`,{htmlFor:e,className:[`inline-flex items-center gap-2 select-none`,i?`cursor-not-allowed opacity-60`:`cursor-pointer`].join(` `),children:[(0,u.jsx)(`input`,{id:e,name:t,type:`checkbox`,checked:r,disabled:i,onChange:n=>{let r={id:e,name:t,checked:n.target.checked};o?.(r)},className:`h-4 w-4 shrink-0 ${a} cursor-pointer`}),(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-primary`,children:n})]}),Go=({options:e=[],label:t,defaultOpen:n=!0,onOptionChange:r})=>{let[i,a]=(0,c.useState)(n);return(0,u.jsx)(`section`,{children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,u.jsxs)(O,{intent:`primary`,variant:`link`,size:`sm`,onClick:()=>a(!i),className:`flex gap-1 w-full`,buttonAlignment:`justify-between`,"aria-expanded":i,children:[(0,u.jsx)(f,{variant:`bold`,children:t}),(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`angle-down`,className:`flex transform transition-transform duration-300 text-secondaryActive text-xs ${i?`rotate-180`:``}`})]}),i&&(0,u.jsx)(`ul`,{className:`list-none`,children:e.map(e=>(0,u.jsx)(`li`,{children:(0,u.jsx)(Wo,{id:e.id,name:e.name,label:e.label,checked:e.checked??!1,disabled:e.disabled??!1,onChange:r??e.onChange,checkboxColor:`accent-primary`})},`${e.name}-${e.id}`))})]})})},Ko={wrapper:`relative w-full rounded-md border`,select:`h-full w-full appearance-none rounded-md border-none bg-transparent text-primary focus:outline-none`,icon:`pointer-events-none absolute top-1/2 -translate-y-1/2 text-primary`},qo={field:{wrapper:`h-12 bg-secondary`,select:`px-4 pr-10 text-sm`,icon:`right-3 text-sm`},filter:{wrapper:`h-8 bg-white`,select:`px-4 pr-10 text-sm`,icon:`right-4 text-sm`},toolbar:{wrapper:`h-12 bg-neutral-100`,select:`px-4 pr-10 text-sm`,icon:`right-4 text-sm`}},Jo=({variant:e,hasError:t,disabled:n})=>{let r=qo[e];return{wrapperClasses:[Ko.wrapper,r.wrapper,t?`border-accent`:`border-secondaryHover`,n?`cursor-not-allowed opacity-60`:``].join(` `),selectClasses:[Ko.select,r.select].join(` `),iconClasses:[Ko.icon,r.icon].join(` `)}},Q=({id:e,name:t,ariaLabel:n,ariaDescribedBy:r,options:i=[],value:a=``,placeholder:o=``,disabled:s=!1,required:c=!1,hasError:l=!1,variant:d=`field`,onChange:f,onBlur:p})=>{let{wrapperClasses:m,selectClasses:h,iconClasses:_}=Jo({variant:d,hasError:l,disabled:s});return(0,u.jsxs)(`div`,{className:m,children:[(0,u.jsxs)(`select`,{id:e,name:t,"aria-label":n,"aria-describedby":r,"aria-invalid":l||void 0,value:a,disabled:s,required:c,onChange:f,onBlur:p,className:h,children:[o?(0,u.jsx)(`option`,{value:``,disabled:!0,children:o}):null,i.map(e=>(0,u.jsx)(`option`,{value:e.value||e.label,disabled:e.disabled,children:e.label},e.value||e.label))]}),(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-down`,className:_})]})},Yo=({id:e,label:t,description:n,checked:r=!1,disabled:i=!1,name:a,value:o,className:s=``,onChange:c,onClick:l})=>(0,u.jsxs)(`button`,{type:`button`,id:e,name:a,value:o,className:[`w-full rounded-md border px-4 py-4 transition-colors`,`flex items-center gap-3`,i?`cursor-not-allowed opacity-60`:`cursor-pointer`,r?`border-accent bg-tertiaryActive`:`border-neutral-400`,s].join(` `),onClick:()=>{i||(l&&l(),c&&c(o??e))},disabled:i,"aria-pressed":r,"aria-disabled":i,children:[(0,u.jsx)(`span`,{className:[`flex h-5 w-5 shrink-0 items-center justify-center rounded-full border`,r?`border-accent`:`border-neutral-400`].join(` `),"aria-hidden":`true`,children:r?(0,u.jsx)(`span`,{className:`h-2.5 w-2.5 rounded-full bg-accent`}):null}),(0,u.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col items-start text-left`,children:[(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-primary`,children:t}),n?(0,u.jsx)(f,{as:`span`,variant:`caption`,className:`text-secondaryActive`,children:n}):null]})]}),Xo={blocking:`Blocking`,recommended:`Recommended`,optional:`Optional`},Zo={blocking:{iconName:`asterisk`,className:`text-accent`,label:`Required`},recommended:{iconName:`triangle-exclamation`,className:`text-yellow-700`,label:`Recommended`},optional:{iconName:`circle-info`,className:`text-blue-600`,label:`Optional`}},Qo={compact:`space-y-3`,comfortable:`space-y-4`},$o={compact:`py-1`,comfortable:`rounded-lg border border-borderTertiary p-4`},es={compact:`mb-1.5 flex flex-wrap items-center gap-2`,comfortable:`mb-2 flex flex-wrap items-center gap-2`},ts=e=>e===null?``:String(e),ns=e=>{if(e===null||e===``||Array.isArray(e))return``;let t=Number(e);return Number.isFinite(t)?t.toFixed(2):``},rs=e=>{if(e.severity)return e.severity;if(e.required)return`blocking`},is=e=>e.required||e.severity===`blocking`,as=e=>ts(e.value).trim()===``,os=e=>{if(e.trim()===``)return null;let t=Number(e);return Number.isNaN(t)?null:t},ss=e=>{if(!e.validationRegex)return e.state??`neutral`;let t=ts(e.value);if(!t)return e.state??`neutral`;try{return new RegExp(e.validationRegex).test(t)?e.state??`neutral`:`error`}catch{return e.state??`neutral`}},cs=e=>{if(is(e)&&as(e))return`error`;let t=ss(e);return is(e)&&t===`neutral`?`valid`:t},ls=({title:e,description:t,headerAction:n,fields:r,fieldGroups:i,density:a=`compact`,severityDisplay:o=`icon`,fieldMessagePlacement:s=`inline`,submitLabel:l=`Save Changes`,cancelLabel:d=`Cancel`,cancelDisabled:p=!1,submitDisabled:m=!1,showActions:h=!0,validationSummary:_,onDynamicFormFieldChange:v,onDynamicFormSubmit:y,onDynamicFormCancel:b})=>{let x=t?.trim()??``,[S,C]=c.default.useState(),w=(e,t)=>{v?.({fieldId:e.id,value:t})},T=(e,t)=>{if(e.type===`information`)return null;let n=rs(e),r=cs(e);if(t===`none`||!n||is(e)&&r===`valid`||t===`label`&&e.readOnly)return null;if(t===`label`)return(0,u.jsx)(`span`,{className:`rounded-full border border-borderTertiary px-2 py-1 text-xs font-semibold text-primary`,children:Xo[n]});let i=Zo[n],a=`${i.label} field`;return(0,u.jsx)(`span`,{role:`img`,"aria-label":a,title:a,className:`inline-flex shrink-0 items-center justify-center ${i.className}`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:i.iconName,alt:``,size:`xs`})})},E=e=>{e.preventDefault(),y?.({values:r.filter(e=>e.type!==`information`).reduce((e,t)=>({...e,[t.id]:t.value}),{})})},D=e=>{let t=ts(e.value),n=cs(e)===`error`,r=t;if(e.type===`currency`&&S!==e.id&&(r=ns(e.value)),e.type===`information`){let n=[`rounded-md border border-borderTertiary bg-adminSideNavBackground px-3 py-2 text-sm text-primary whitespace-pre-wrap`,e.informationLayout===`multiline`?`min-h-24`:`flex min-h-10 items-center`].join(` `);return(0,u.jsx)(`div`,{id:e.id,"aria-labelledby":`${e.id}-label`,className:n,children:t})}if(e.type===`select`)return(0,u.jsx)(Q,{id:e.id,name:e.id,value:t,placeholder:e.placeholder,options:e.options,disabled:e.readOnly,hasError:n,onChange:t=>w(e,t.target.value)});if(e.type===`multiSelectTiles`){let t=Array.isArray(e.value)?e.value:[],n=Math.max(e.selectionLimit??3,1),r=t.length>=n;return(0,u.jsx)(`div`,{role:`group`,"aria-labelledby":`${e.id}-label`,className:`grid grid-cols-4 gap-x-3 gap-y-4 md:grid-cols-8`,children:(e.options??[]).map(n=>{let i=t.includes(n.value),a=e.readOnly||n.disabled||r&&!i,o=`hover:border-primary`;return a&&(o=i?`cursor-not-allowed`:`cursor-not-allowed opacity-40`),(0,u.jsxs)(`button`,{type:`button`,"aria-pressed":i,disabled:a,className:[`flex min-w-0 flex-col items-center gap-1.5 text-center text-xs font-semibold text-primary`,o].join(` `),onClick:()=>w(e,i?t.filter(e=>e!==n.value):[...t,n.value]),children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:[`flex h-9 w-9 items-center justify-center border border-secondaryHover transition-shadow`,i?`ring-2 ring-primary ring-offset-2`:`ring-0`].join(` `),style:{backgroundColor:n.color},children:i?(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`check`,size:`xs`,color:n.checkIconColor??`secondary`,alt:``}):null}),(0,u.jsx)(`span`,{className:`w-full truncate`,title:n.label,children:n.label})]},n.value)})})}return e.type===`radio`?(0,u.jsx)(`div`,{role:`radiogroup`,"aria-labelledby":`${e.id}-label`,className:`grid gap-2`,children:(e.options??[]).map(n=>(0,u.jsx)(Yo,{id:`${e.id}-${n.value}`,name:e.id,label:n.label,value:n.value,checked:t===n.value,disabled:e.readOnly||n.disabled,onChange:t=>w(e,t)},n.value))}):e.type===`textarea`?(0,u.jsx)(L,{id:e.id,name:e.id,value:t,placeholder:e.placeholder,readOnly:e.readOnly,required:e.required,hasError:n,rows:e.rows,onChange:t=>w(e,t.target.value)}):(0,u.jsx)(Vo,{id:e.id,name:e.id,type:e.type===`text`||e.type===`date`?e.type:`number`,value:r,placeholder:e.placeholder,readOnly:e.readOnly,required:e.required,min:e.min,max:e.max,step:e.step,hasError:n,clearable:!0,leadingIcon:e.type===`currency`?(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`dollar-sign`,alt:``,size:`xs`}):void 0,onChange:t=>w(e,e.type===`text`||e.type===`date`?t.target.value:os(t.target.value)),onFocus:()=>{e.type===`currency`&&C(e.id)},onBlur:()=>{e.type===`currency`&&C(void 0)},onClear:()=>w(e,e.type===`text`||e.type===`date`?``:null)})},k=e=>{let t=e.message?.trim()??``,n=e.helpText?.trim()??``;return!t&&!n?null:(0,u.jsx)(f,{variant:`free`,className:s===`below-label`?`${e.type===`multiSelectTiles`?`mb-4`:`mb-1.5`} min-w-0 text-left text-xs text-tertiary`:`ml-auto min-w-0 text-right text-xs text-tertiary`,children:t||n})},A=(e,t)=>{let n=e.label,r=e.layoutWidth===`half`?``:`md:col-span-2`;t&&(r=`md:col-span-6`,e.layoutWidth===`half`&&(r=`md:col-span-3`),e.layoutWidth===`third`&&(r=`md:col-span-2`));let i=[$o[a],r].filter(Boolean).join(` `),c=k(e);return(0,u.jsxs)(`div`,{className:i,children:[(0,u.jsxs)(`div`,{className:e.type===`multiSelectTiles`&&s===`inline`?`mb-4 flex flex-wrap items-center gap-2`:es[a],children:[e.iconName?(0,u.jsx)(g,{iconType:`fa-solid`,iconName:e.iconName,alt:``,size:`sm`,color:`secondaryHover`,className:`w-4 shrink-0`}):null,T(e,o),e.type===`radio`||e.type===`multiSelectTiles`||e.type===`information`?(0,u.jsx)(`span`,{id:`${e.id}-label`,className:`text-sm font-semibold text-primary`,children:n}):(0,u.jsx)(`label`,{htmlFor:e.id,className:`text-sm font-semibold text-primary`,children:n}),s===`inline`?c:null]}),s===`below-label`?c:null,D(e)]},e.id)},j=e=>{let t=e.some(e=>e.layoutWidth===`third`),n=e.some(e=>e.layoutWidth===`half`),r=Qo[a];return n&&(r=`grid md:grid-cols-2 ${a===`compact`?`gap-3`:`gap-4`}`),t&&(r=`grid md:grid-cols-6 ${a===`compact`?`gap-3`:`gap-4`}`),(0,u.jsx)(`div`,{className:r,children:e.map(e=>A(e,t))})};return(0,u.jsxs)(`form`,{className:`space-y-5`,onSubmit:E,children:[e||x||n?(0,u.jsxs)(`header`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,u.jsxs)(`div`,{children:[e?(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:e}):null,x?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:x}):null]}),n]}):null,(()=>{if(!i?.length)return j(r);let e=new Map(r.map(e=>[e.id,e])),t=r.filter(e=>!i.some(t=>t.fieldIds.includes(e.id)));return(0,u.jsxs)(`div`,{className:`space-y-6`,children:[i.map(t=>{let n=t.fieldIds.map(t=>e.get(t)).filter(e=>!!e);return n.length?(0,u.jsxs)(`section`,{"aria-labelledby":`${t.id}-heading`,children:[(0,u.jsxs)(`div`,{className:`mb-4 flex items-center gap-3`,children:[(0,u.jsx)(f,{as:`h4`,id:`${t.id}-heading`,variant:`free`,className:`shrink-0 text-sm font-bold text-primary`,children:t.title}),(0,u.jsx)(`div`,{className:`min-w-0 flex-1 border-t border-borderTertiary`})]}),t.description?(0,u.jsx)(f,{variant:`free`,className:`mb-4 text-sm text-secondaryActive`,children:t.description}):null,j(n)]},t.id):null}),t.length?j(t):null]})})(),_,h?(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row md:justify-end`,children:[b?(0,u.jsx)(O,{label:d,variant:`outline`,intent:`primary`,disabled:p,onClick:b}):null,(0,u.jsx)(O,{label:l,variant:`solid`,intent:`primary`,type:`submit`,disabled:m})]}):null]})},us=e=>e===`saved`?`text-saleGreen`:e===`error`?`text-accent`:`text-yellow-700`,ds=({status:e,label:t,errorMessage:n,lastSavedLabel:r})=>e===`saved`?null:(0,u.jsxs)(`div`,{className:`text-xs text-tertiary`,children:[(0,u.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[e===`saving`?(0,u.jsx)(v,{label:``,size:`xs`}):(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`circle-exclamation`,alt:``,size:`xs`,className:us(e)}),t]}),r?(0,u.jsxs)(`span`,{className:`ml-4`,children:[`Saved `,r]}):null,n?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:n}):null]}),fs=({itemLabel:e,selectedCount:t,failedCount:n,disableAllDisabled:r,onSelectAll:i,onSelectFailed:a,onDisableAll:o,onClear:s,onCancel:c})=>(0,u.jsxs)(`div`,{"aria-label":`${e===`sheet`?`sheets`:`samples`} bulk actions`,className:`mt-3 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsxs)(f,{variant:`free`,className:`text-xs font-bold text-primary`,children:[t,` selected`]}),(0,u.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:[(0,u.jsx)(O,{label:`Select all`,variant:`outline`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,onClick:i}),(0,u.jsx)(O,{label:`Select failed checks (${n})`,variant:`outline`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,disabled:n===0,onClick:a}),(0,u.jsx)(O,{label:`Disable all`,variant:`outline`,intent:`danger`,size:`xs`,className:`shrink-0 whitespace-nowrap`,disabled:r,onClick:o})]}),(0,u.jsxs)(`div`,{className:`mt-2 flex items-center gap-1`,children:[(0,u.jsx)(O,{label:`Clear`,variant:`ghost`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,disabled:t===0,onClick:s}),(0,u.jsx)(O,{label:`Cancel`,variant:`ghost`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,onClick:c})]})]}),ps=({itemLabel:e,selectedCount:t,deleteDisabled:n,onDelete:r})=>(0,u.jsx)(`div`,{"aria-label":`${e===`sheet`?`sheets`:`samples`} bulk delete`,className:`mt-4 border-t border-borderTertiary pt-4`,children:(0,u.jsx)(O,{label:`Delete ${t} selected`,variant:`solid`,intent:`accent`,size:`sm`,fullWidth:!0,disabled:n,onClick:r})}),ms=({guide:e})=>{let t=e.segments.some(e=>e.description?.trim());return(0,u.jsxs)(`details`,{className:`rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsx)(`summary`,{className:`cursor-pointer text-sm font-bold text-primary`,children:e.title}),(0,u.jsxs)(`div`,{className:`mt-4 space-y-4`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:e.formatLabel}),(0,u.jsx)(`code`,{className:`mt-1 block break-all rounded-md bg-secondary px-3 py-2 text-sm font-bold text-primary`,children:e.format})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:e.exampleLabel}),(0,u.jsx)(`code`,{className:`mt-1 block break-all text-sm text-primary`,children:e.example})]}),(0,u.jsx)(`div`,{className:`overflow-x-auto`,children:(0,u.jsxs)(`table`,{className:`w-full text-left text-xs text-primary`,children:[(0,u.jsx)(`thead`,{className:`border-b border-borderTertiary text-tertiary`,children:(0,u.jsxs)(`tr`,{children:[(0,u.jsx)(`th`,{className:`pb-2 pr-2 font-bold`,children:`Code`}),(0,u.jsx)(`th`,{className:`pb-2 pr-2 font-bold`,children:`Field`}),(0,u.jsx)(`th`,{className:`pb-2 text-right font-bold`,children:`Example`}),t?(0,u.jsx)(`th`,{className:`pb-2 pl-2 font-bold`,children:`Meaning`}):null]})}),(0,u.jsx)(`tbody`,{children:e.segments.map(e=>(0,u.jsxs)(`tr`,{className:`border-b border-borderTertiary last:border-0`,children:[(0,u.jsxs)(`td`,{className:`py-2 pr-2 font-mono font-bold`,children:[e.pattern,(0,u.jsxs)(`span`,{className:`ml-1 text-tertiary`,children:[`(`,e.length,`)`]})]}),(0,u.jsx)(`td`,{className:`py-2 pr-2`,children:e.label}),(0,u.jsx)(`td`,{className:`py-2 text-right font-mono`,children:e.example}),t?(0,u.jsx)(`td`,{className:`py-2 pl-2`,children:e.description}):null]},e.pattern))})]})}),e.coreNote?(0,u.jsx)(f,{variant:`free`,className:`text-xs text-tertiary`,children:e.coreNote}):null,e.sampleNote?(0,u.jsx)(f,{variant:`free`,className:`rounded-md border border-borderTertiary bg-secondary p-3 text-xs text-primary`,children:e.sampleNote}):null]})]})},hs=({guide:e})=>(0,u.jsxs)(`details`,{className:`rounded-lg border border-borderTertiary bg-adminSideNavBackground p-4 shadow-sm`,children:[(0,u.jsx)(`summary`,{className:`cursor-pointer text-sm font-bold text-primary`,children:e.title}),(0,u.jsxs)(`div`,{className:`mt-4 space-y-4`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:e.formatLabel}),(0,u.jsx)(`code`,{className:`mt-1 block break-all rounded-md bg-secondary px-3 py-2 text-sm font-bold text-primary`,children:e.format})]}),(0,u.jsx)(f,{variant:`free`,className:`text-xs text-primary`,children:e.canonicalSkuNote}),(0,u.jsx)(f,{variant:`free`,className:`text-xs text-primary`,children:e.parsingNote}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:e.sizeRuleLabel}),(0,u.jsx)(`code`,{className:`mt-1 block text-sm font-bold text-primary`,children:e.sizeRule})]}),(0,u.jsx)(`div`,{className:`overflow-x-auto`,children:(0,u.jsxs)(`table`,{className:`w-full text-left text-xs text-primary`,children:[(0,u.jsx)(`thead`,{className:`border-b border-borderTertiary text-tertiary`,children:(0,u.jsxs)(`tr`,{children:[(0,u.jsx)(`th`,{className:`pb-2 pr-2 font-bold`,children:`Sample SKU`}),(0,u.jsx)(`th`,{className:`pb-2 text-right font-bold`,children:`Likely size`})]})}),(0,u.jsx)(`tbody`,{children:e.examples.map(e=>(0,u.jsxs)(`tr`,{className:`border-b border-borderTertiary last:border-0`,children:[(0,u.jsx)(`td`,{className:`py-2 pr-2 font-mono`,children:e.sku}),(0,u.jsx)(`td`,{className:`py-2 text-right`,children:e.likelySize})]},e.sku))})]})}),(0,u.jsx)(f,{variant:`free`,className:`rounded-md border border-yellow-500 bg-yellow-50 p-3 text-xs text-yellow-700`,children:e.caution})]})]}),gs=({sectionData:e,onSampleSearchChange:t,onSampleSelect:n,onAddSampleClick:r,onSampleVariantSelect:i,onNewSampleSkuChange:a,onSampleFieldChange:o,onSampleLocalizationAvailabilityChange:s,onSampleSave:c,onSampleCancel:l,onSampleCreate:d,onSampleDelete:p,onSampleBulkSelectionChange:m,onSampleBulkDelete:h,onSampleDisableAll:_,onSampleBigCommerceSync:v})=>{let{editor:y,guide:b,sampleGuide:x}=e,S={region:e.region,samples:e.items},C=S.region===`north-america`,w=null;C&&x?w=(0,u.jsx)(hs,{guide:x}):b&&(w=(0,u.jsx)(ms,{guide:b}));let T=S.samples.find(e=>e.id===y.selectedSampleId),E=T?.bigCommerceReady??!1,D=y.integration?.bigCommerceStatusLabel??(E?`Ready`:`Not found`),k=S.samples.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.size}`})),A=y.bulkSelection,j=A?.selectedIds??[],M=S.samples.filter(e=>!e.isSampleable).map(e=>e.id),N=y.saveStatus===`saving`,P=y.variantOptionsReadOnly??!1,F=y.variantGroups??[{title:`Finish`,iconName:`paint-roller`,dimension:`finish`,options:y.finishOptions,selectedValue:y.selectedFinish},{title:`Size`,iconName:`ruler-combined`,dimension:`size`,options:y.sizeOptions,selectedValue:y.selectedSize}],I={...y.implicitVariantSelections,...Object.fromEntries(F.filter(e=>e.selectedValue!==void 0).map(e=>[e.dimension,e.selectedValue]))},L=null;y.mode===`create`?L=(0,u.jsx)(O,{label:y.createLabel??`Create Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:y.createDisabled,onClick:()=>d?.({sku:y.newSkuValue,finish:y.selectedFinish??``,size:y.selectedSize??``,variantSelections:I})}):T&&(L=(0,u.jsx)(O,{label:y.controls.saveLabel,iconType:`fa-solid`,iconName:N?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:y.controls.saveDisabled||N,"aria-busy":N||void 0,onClick:()=>c?.({sampleId:T.id})}));let R=null;return y.mode===`create`?R=(0,u.jsxs)(`div`,{className:`mt-5`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-new-sample-sku`,className:`text-sm font-bold text-primary`,children:`New Sample SKU`}),(0,u.jsx)(Vo,{id:`market-readiness-new-sample-sku`,name:`newSampleSku`,value:y.newSkuValue,placeholder:`Generated sample SKU`,leadingIcon:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>a?.({value:e.target.value})})]}):T?.sourceIdentifier&&(R=(0,u.jsxs)(`div`,{className:`mt-5 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs text-tertiary`,children:`Salsify identifier`}),(0,u.jsx)(`code`,{className:`mt-1 block break-all text-sm text-primary`,children:T.sourceIdentifier})]})),(0,u.jsxs)(`section`,{role:`tabpanel`,"aria-label":`Samples`,className:`mt-5 grid gap-5 md:grid-cols-3`,children:[(0,u.jsxs)(`div`,{className:`space-y-5 md:col-span-2`,children:[(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-end`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-sample-search`,className:`text-sm font-bold text-primary`,children:`Sample SKU`}),(0,u.jsx)(Uo,{id:`market-readiness-sample-search`,name:`sampleSearch`,ariaLabel:`Sample SKU`,value:y.searchValue,options:k,valueStatus:T?.isSampleable===!1&&y.searchValue===T.sku?`inactive`:`default`,placeholder:`Search sample SKUs`,controlSize:`default`,onQueryChange:t,onClear:()=>t?.({value:``}),onOptionSelect:({option:e})=>{let t=S.samples.find(t=>t.id===e.value);t&&n?.({sampleId:t.id,sku:t.sku})}})]}),(0,u.jsx)(O,{label:y.addLabel??`Add Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:r})]})}),y.mode===`edit`&&!T?(0,u.jsxs)(`section`,{className:`rounded-lg border border-dashed border-borderTertiary bg-secondary p-8 text-center`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:y.emptyTitle}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:y.emptyMessage})]}):(0,u.jsxs)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:y.mode===`create`?`Create a new sample`:T?.sku}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-tertiary`,children:y.identifierHelpText}),R,(0,u.jsx)(`div`,{className:`mt-5 space-y-5`,children:F.map(e=>(0,u.jsx)(Bo,{...e,readOnly:P||(e.readOnly??!1),onSelect:(e,t)=>i?.({dimension:e,value:t})},e.dimension))}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(ls,{fields:y.fields,density:`compact`,severityDisplay:`icon`,fieldMessagePlacement:`below-label`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>o?.({sampleId:T?.id,fieldId:e,value:t})})}),y.localizationAvailability?.length?(0,u.jsx)(`div`,{className:`mt-6 border-t border-borderTertiary pt-5`,children:(0,u.jsx)(Go,{label:y.localizationAvailabilityLabel??`Sub-region availability`,defaultOpen:!1,options:y.localizationAvailability.map(e=>({id:`sample-localization-${e.id}`,name:`sampleLocalizationAvailability`,label:e.label,checked:e.enabled??!0,disabled:e.disabled,onChange:({checked:t})=>s?.({sampleId:T?.id,localizationId:e.id,enabled:t})}))})}):null,C&&y.mode===`edit`&&T?(0,u.jsx)(`section`,{className:`mt-6 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:`Big Commerce`}),(0,u.jsxs)(`div`,{"aria-label":`Sample Big Commerce status: ${D}`,className:`mt-2 flex items-center gap-2 text-sm text-primary`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-3 w-3 shrink-0 rounded-full ${E?`bg-saleGreen`:`bg-accent`}`}),(0,u.jsx)(`span`,{children:D})]})]}),(0,u.jsx)(O,{label:y.integration?.bigCommerceSyncLabel??`Sync`,iconType:`fa-solid`,iconName:y.integration?.bigCommerceSyncLoading?`spinner`:`arrows-rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,className:`w-24`,disabled:y.integration?.bigCommerceSyncDisabled||y.integration?.bigCommerceSyncLoading||!v,"aria-busy":y.integration?.bigCommerceSyncLoading||void 0,onClick:()=>v?.({sampleId:T.id})})]})}):null,(0,u.jsxs)(`footer`,{className:`mt-6 flex flex-col-reverse gap-3 border-t border-borderTertiary pt-5 md:flex-row md:items-end md:justify-between`,children:[(0,u.jsx)(`div`,{children:y.mode===`edit`&&T&&y.deleteLabel&&p?(0,u.jsx)(O,{label:y.deleteLabel,variant:`outline`,intent:`danger`,disabled:y.deleteDisabled||N,onClick:()=>p?.({sampleId:T.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(ds,{status:y.saveStatus,label:y.saveStatusLabel,errorMessage:y.saveErrorMessage,lastSavedLabel:y.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(O,{label:y.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:y.controls.cancelDisabled||N,onClick:l}),L]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[w,(0,u.jsxs)(`aside`,{className:`rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`sticky top-4 z-10 bg-secondary pb-1`,children:[(0,u.jsxs)(`div`,{"aria-label":`Samples list header`,className:`flex items-center justify-between gap-3`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`Samples`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[A?(0,u.jsx)(O,{iconType:A.active?`fa-solid`:`fa-regular`,iconName:A.active?`square-check`:`square`,iconAlt:A.active?`Close sample selection`:`Select samples`,variant:`ghost`,intent:A.active?`accent`:`primary`,size:`xs`,onClick:()=>m?.({active:!A.active,sampleIds:[]})}):null,(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:S.samples.length})]})]}),A?.active?(0,u.jsx)(fs,{itemLabel:`sample`,selectedCount:j.length,failedCount:M.length,disableAllDisabled:A.disableAllDisabled||S.samples.length===0||!_,onSelectAll:()=>m?.({active:!0,sampleIds:S.samples.map(e=>e.id)}),onSelectFailed:()=>m?.({active:!0,sampleIds:M}),onDisableAll:()=>_?.({sampleIds:S.samples.map(e=>e.id)}),onClear:()=>m?.({active:!0,sampleIds:[]}),onCancel:()=>m?.({active:!1,sampleIds:[]})}):null]}),S.samples.length?(0,u.jsx)(`div`,{className:`mt-4 space-y-2`,children:S.samples.map(e=>{let t=j.includes(e.id),r=A?.active?t:e.id===y.selectedSampleId;return(0,u.jsx)(fe,{sampleId:e.id,sku:e.sku,isSampleable:e.isSampleable,bigCommerceReady:S.region===`north-america`?e.bigCommerceReady:void 0,selected:r,selectionMode:A?.active??!1,onSampleClick:()=>{if(A?.active){m?.({active:!0,sampleIds:t?j.filter(t=>t!==e.id):[...j,e.id]});return}n?.({sampleId:e.id,sku:e.sku})}},e.id)})}):(0,u.jsx)(f,{variant:`free`,className:`mt-4 text-sm text-tertiary`,children:`No samples have been added to this decor.`}),A?.active&&j.length>0?(0,u.jsx)(ps,{itemLabel:`sample`,selectedCount:j.length,deleteDisabled:A.deleteDisabled||!h,onDelete:()=>h?.({sampleIds:j})}):null]})]})]})},_s=({sectionData:e,onSkuSearchChange:t,onSkuSelect:n,onAddSkuClick:r,onSkuVariantSelect:i,onNewSkuChange:a,onSkuFieldChange:o,onSkuLocalizationAvailabilityChange:s,onSkuSave:c,onSkuCancel:l,onSkuCreate:d,onSkuDelete:p,onSkuBulkSelectionChange:m,onSkuBulkDelete:h,onSkuDisableAll:_,onLxUpdate:v,onBigCommerceSync:y})=>{let{editor:b,guide:x}=e,S={region:e.region,skus:e.items},C=S.region===`north-america`,w=S.skus.find(e=>e.id===b.selectedSkuId),T=!!b.integration?.bigCommerceId?.trim(),E=b.integration?.bigCommerceStatusLabel??(T?`Ready`:`Not found`),D=b.integration?.availableForOnlineCheckout??b.integration?.availabilityLabel?.trim().toLowerCase()===`true`,k=S.skus.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.grade} · ${e.size}`})),A=b.bulkSelection,j=A?.selectedIds??[],M=S.skus.filter(e=>!e.isForSale).map(e=>e.id),N=b.saveStatus===`saving`,P=b.variantGroups??[{title:`Grade`,iconName:`layer-group`,dimension:`grade`,options:b.gradeOptions,selectedValue:b.selectedGrade},{title:`Finish`,iconName:`paint-roller`,dimension:`finish`,options:b.finishOptions,selectedValue:b.selectedFinish},{title:`Size`,iconName:`ruler-combined`,dimension:`size`,options:b.sizeOptions,selectedValue:b.selectedSize}],F={...b.implicitVariantSelections,...Object.fromEntries(P.filter(e=>e.selectedValue!==void 0).map(e=>[e.dimension,e.selectedValue]))},I=null;return b.mode===`create`?I=(0,u.jsx)(O,{label:b.createLabel??`Create SKU`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:b.createDisabled,onClick:()=>d?.({sku:b.newSkuValue,grade:b.selectedGrade??``,finish:b.selectedFinish??``,size:b.selectedSize??``,variantSelections:F})}):w&&(I=(0,u.jsx)(O,{label:b.controls.saveLabel,iconType:`fa-solid`,iconName:N?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:b.controls.saveDisabled||N,"aria-busy":N||void 0,onClick:()=>c?.({skuId:w.id})})),(0,u.jsxs)(`section`,{role:`tabpanel`,"aria-label":`Sheets`,className:`mt-5 grid gap-5 md:grid-cols-3`,children:[(0,u.jsxs)(`div`,{className:`space-y-5 md:col-span-2`,children:[(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-end`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-sku-search`,className:`text-sm font-bold text-primary`,children:`Sheet SKU`}),(0,u.jsx)(Uo,{id:`market-readiness-sku-search`,name:`skuSearch`,ariaLabel:`Sheet SKU`,value:b.searchValue,options:k,valueStatus:w?.isForSale===!1&&b.searchValue===w.sku?`inactive`:`default`,placeholder:`Search sheet SKUs`,controlSize:`default`,onQueryChange:t,onClear:()=>t?.({value:``}),onOptionSelect:({option:e})=>{let t=S.skus.find(t=>t.id===e.value);t&&n?.({skuId:t.id,sku:t.sku})}})]}),(0,u.jsx)(O,{label:b.addSkuLabel??`Add Sheet`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:r})]})}),b.mode===`edit`&&!w?(0,u.jsxs)(`section`,{className:`rounded-lg border border-dashed border-borderTertiary bg-secondary p-8 text-center`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`Select a sheet to edit`}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:`Search above or choose one from the sheet list.`})]}):(0,u.jsxs)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:b.mode===`create`?`Create a new sheet SKU`:w?.sku}),w?(0,u.jsxs)(`div`,{className:`ml-auto flex flex-wrap items-center justify-end gap-2`,children:[w.statusLabel?(0,u.jsx)(`span`,{className:`rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-primary`,children:w.statusLabel}):null,(0,u.jsxs)(`span`,{"aria-label":`Big Commerce readiness: ${E}`,className:`rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-primary`,children:[`Big Commerce: `,E]})]}):null]}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:b.mode===`create`?`Choose the variant identity. Existing combinations cannot be created twice.`:`Variant identity and selling fields remain editable. Changes are validated when you save.`})]}),b.mode===`create`?(0,u.jsxs)(`div`,{className:`mt-5`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-new-sku`,className:`text-sm font-bold text-primary`,children:`New SKU`}),(0,u.jsx)(Vo,{id:`market-readiness-new-sku`,name:`newSku`,value:b.newSkuValue,placeholder:`Generated sheet SKU`,leadingIcon:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>a?.({value:e.target.value})})]}):null,(0,u.jsx)(`div`,{className:`mt-5 grid gap-5`,children:P.map(e=>(0,u.jsx)(Bo,{...e,readOnly:e.readOnly??!1,onSelect:(e,t)=>i?.({dimension:e,value:t})},e.dimension))}),b.duplicateMessage?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`mt-4 rounded-md border border-accent bg-accent/10 p-3 text-sm text-accent`,children:b.duplicateMessage}):null,(0,u.jsxs)(`div`,{className:`mt-6 border-t border-borderTertiary pt-5`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:`Lifecycle and selling options`}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:`These values apply to the SKU across all localizations.`}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(ls,{fields:b.fields,density:`compact`,severityDisplay:`icon`,fieldMessagePlacement:`below-label`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>o?.({skuId:w?.id,fieldId:e,value:t})})})]}),b.localizationAvailability?.length?(0,u.jsx)(`div`,{className:`mt-6 border-t border-borderTertiary pt-5`,children:(0,u.jsx)(Go,{label:b.localizationAvailabilityLabel??`Sub-region availability`,defaultOpen:!1,options:b.localizationAvailability.map(e=>({id:`sheet-localization-${e.id}`,name:`sheetLocalizationAvailability`,label:e.label,checked:e.enabled??!0,disabled:e.disabled,onChange:({checked:t})=>s?.({skuId:w?.id,localizationId:e.id,enabled:t})}))})}):null,C&&b.mode===`edit`?(0,u.jsxs)(`div`,{className:`mt-6 space-y-4`,children:[(0,u.jsx)(`section`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:`Big Commerce`}),(0,u.jsxs)(`div`,{"aria-label":`Big Commerce status: ${E}`,className:`mt-2 flex items-center gap-2 text-sm text-primary`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-3 w-3 shrink-0 rounded-full ${T?`bg-saleGreen`:`bg-accent`}`}),(0,u.jsx)(`span`,{children:E})]})]}),w?(0,u.jsx)(O,{label:b.integration?.bigCommerceSyncLabel??`Sync`,iconType:`fa-solid`,iconName:b.integration?.bigCommerceSyncLoading?`spinner`:`arrows-rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,className:`w-24`,disabled:b.integration?.bigCommerceSyncDisabled||b.integration?.bigCommerceSyncLoading||!y,"aria-busy":b.integration?.bigCommerceSyncLoading||void 0,onClick:()=>y?.({skuId:w.id})}):null]})}),(0,u.jsxs)(`section`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,u.jsxs)(`div`,{"aria-label":`LX availability: ${D?`Available`:`Unavailable`}`,className:`flex items-center gap-2`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-3 w-3 shrink-0 rounded-full ${D?`bg-saleGreen`:`bg-accent`}`}),(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:`LX`})]}),w?(0,u.jsx)(O,{label:b.integration?.lxUpdateLabel??`Update`,iconType:`fa-solid`,iconName:b.integration?.lxUpdateLoading?`spinner`:`rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,className:`w-24`,disabled:b.integration?.lxUpdateDisabled||b.integration?.lxUpdateLoading||!v,"aria-busy":b.integration?.lxUpdateLoading||void 0,onClick:()=>v?.({skuId:w.id})}):null]}),(0,u.jsxs)(`dl`,{className:`mt-4 grid gap-4 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`LX SKU`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:b.integration?.lxId??`Not assigned`})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Price`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:b.integration?.priceLabel??`Not available`})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Available For Online Checkout`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:b.integration?.availabilityLabel??`Unknown`})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Last synchronized`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:b.integration?.lastSynchronizedLabel??`Never`})]})]})]})]}):null,(0,u.jsxs)(`footer`,{className:`mt-6 flex flex-col-reverse gap-3 border-t border-borderTertiary pt-5 md:flex-row md:items-end md:justify-between`,children:[(0,u.jsx)(`div`,{children:b.mode===`edit`&&w&&b.deleteLabel&&p?(0,u.jsx)(O,{label:b.deleteLabel,variant:`outline`,intent:`danger`,disabled:b.deleteDisabled||N,onClick:()=>p?.({skuId:w.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(ds,{status:b.saveStatus,label:b.saveStatusLabel,errorMessage:b.saveErrorMessage,lastSavedLabel:b.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(O,{label:b.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:b.controls.cancelDisabled||N,onClick:l}),I]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[x?(0,u.jsx)(ms,{guide:x}):null,(0,u.jsxs)(`aside`,{className:`rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`sticky top-4 z-10 bg-secondary pb-1`,children:[(0,u.jsxs)(`div`,{"aria-label":`Sheets list header`,className:`flex items-center justify-between gap-3`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`Sheets`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[A?(0,u.jsx)(O,{iconType:A.active?`fa-solid`:`fa-regular`,iconName:A.active?`square-check`:`square`,iconAlt:A.active?`Close sheet selection`:`Select sheets`,variant:`ghost`,intent:A.active?`accent`:`primary`,size:`xs`,onClick:()=>m?.({active:!A.active,skuIds:[]})}):null,(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:S.skus.length})]})]}),A?.active?(0,u.jsx)(fs,{itemLabel:`sheet`,selectedCount:j.length,failedCount:M.length,disableAllDisabled:A.disableAllDisabled||S.skus.length===0||!_,onSelectAll:()=>m?.({active:!0,skuIds:S.skus.map(e=>e.id)}),onSelectFailed:()=>m?.({active:!0,skuIds:M}),onDisableAll:()=>_?.({skuIds:S.skus.map(e=>e.id)}),onClear:()=>m?.({active:!0,skuIds:[]}),onCancel:()=>m?.({active:!1,skuIds:[]})}):null]}),(0,u.jsx)(`div`,{className:`mt-4 space-y-2`,children:S.skus.map(e=>{let t=j.includes(e.id),r=A?.active?t:e.id===b.selectedSkuId;return(0,u.jsx)(me,{skuId:e.id,sku:e.sku,lxReady:e.lxReady,bigCommerceReady:S.region===`north-america`?e.bigCommerceReady:void 0,isForSale:e.isForSale,grade:e.grade,finish:e.finish,size:e.size,selected:r,selectionMode:A?.active??!1,onSkuClick:()=>{if(A?.active){m?.({active:!0,skuIds:t?j.filter(t=>t!==e.id):[...j,e.id]});return}n?.({skuId:e.id,sku:e.sku})}},e.id)})}),A?.active&&j.length>0?(0,u.jsx)(ps,{itemLabel:`sheet`,selectedCount:j.length,deleteDisabled:A.deleteDisabled||!h,onDelete:()=>h?.({skuIds:j})}):null]})]})]})},vs=e=>e.itemType===`sheet`?(0,u.jsx)(_s,{...e}):(0,u.jsx)(gs,{...e}),ys=({children:e,layoutVariant:t=`default`})=>{let n={default:``,stacked:`flex-col md:flex-row`,separator:`min-h-10`}[t];return(0,u.jsx)(`section`,{className:`mx-auto flex max-w-6xl justify-center`,children:(0,u.jsx)(`div`,{className:`w-full`,children:(0,u.jsx)(`div`,{className:`flex w-full items-center gap-4 rounded-none bg-secondary px-4 pt-0 pb-8 md:flex-wrap md:rounded-lg md:bg-multibarBackground md:px-2 md:pt-2 md:pb-2 ${n}`.trim(),children:e})})})},bs=({buttonProps:e,mobileButtonProps:t=e,className:n=``})=>(0,u.jsxs)(`div`,{className:`justify-start text-xs ${n}`.trim(),children:[(0,u.jsx)(`div`,{className:`hidden md:block`,children:(0,u.jsx)(O,{...e})}),(0,u.jsx)(`div`,{className:`md:hidden`,children:(0,u.jsx)(O,{...t})})]}),xs=({dropdownProps:e,className:t=`w-full md:w-70`})=>(0,u.jsx)(`div`,{className:t,children:(0,u.jsx)(Q,{...e})}),Ss={default:`w-full max-w-60`,category:`order-1 min-w-0 flex-1 md:order-0 md:w-60 md:flex-none`,wide:`w-full md:w-80`,full:`w-full`},Cs=({searchBarProps:e,searchPlaceholder:t,layoutVariant:n=`default`})=>(0,u.jsx)(`div`,{className:Ss[n],children:(0,u.jsx)(Ho,{...e,placeholder:t??e.placeholder})}),ws=({onPreviousClick:e,onNextClick:t,prevArrowButtonProps:n,nextArrowButtonProps:r,previousLabel:i=`Prev slide`,nextLabel:a=`Next slide`})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`absolute left-0 top-1/2 -translate-y-1/2 px-6`,children:(0,u.jsx)(O,{variant:`ghost`,"aria-label":i,onClick:e,intent:n?.buttonType??`ghost`,className:n?.className??``,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-left`,alt:``,size:`md`})})}),(0,u.jsx)(`div`,{className:`absolute right-0 top-1/2 -translate-y-1/2 px-6`,children:(0,u.jsx)(O,{variant:`ghost`,"aria-label":a,onClick:t,intent:r?.buttonType??`ghost`,className:r?.className??``,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`md`})})})]}),Ts=({count:e,activeIndex:t,onDotClick:n,ariaLabelPrefix:r=`Go to slide`})=>e<=1?null:(0,u.jsx)(`div`,{className:`absolute bottom-4 left-1/2 flex -translate-x-1/2 gap-2`,children:Array.from({length:e},(e,i)=>(0,u.jsx)(`button`,{type:`button`,"aria-label":`${r} ${i+1}`,"aria-current":i===t?`true`:void 0,onClick:()=>n(i),className:[`h-2 w-2 rounded-full`,i===t?`bg-white`:`bg-white/40 hover:bg-white/70`].join(` `)},`dot-${i}`))}),Es=(e,t)=>Math.max(0,Math.min(e,t-1)),Ds=(e,t,n)=>n?(e+t)%t:Es(e,t),Os=e=>!!(e.eyebrow||e.heading||e.subheading||e.body||e.ctas?.length),ks=e=>`Open ${e.heading??`slide`}`,As=({slide:e,heightClassName:t})=>(0,u.jsx)(`div`,{className:`w-full overflow-hidden ${t}`,children:(0,u.jsx)(`img`,{src:e.imageSrc,alt:e.imageAlt??``,className:`w-full h-full object-cover`})}),js=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>(0,u.jsx)(f,{as:`a`,href:e.link,variant:`free`,className:`block w-full cursor-pointer`,onClick:n=>{r&&(n.preventDefault(),r(e,t))},children:(0,u.jsx)(As,{slide:e,heightClassName:n})}),Ms=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>(0,u.jsx)(K,{onCardClick:()=>{r(e,t)},ariaLabel:ks(e),className:`block w-full cursor-pointer text-left`,children:(0,u.jsx)(As,{slide:e,heightClassName:n})}),Ns=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>e.link?(0,u.jsx)(js,{slide:e,index:t,heightClassName:n,onSlideClick:r}):r?(0,u.jsx)(Ms,{slide:e,index:t,heightClassName:n,onSlideClick:r}):(0,u.jsx)(As,{slide:e,heightClassName:n}),Ps=({slide:e})=>(0,u.jsx)(`div`,{className:`absolute inset-0 flex items-center md:items-end`,children:(0,u.jsx)(`div`,{className:`w-full max-w-6xl px-4 md:px-0 md:mx-auto pb-8 md:pb-16`,children:(0,u.jsxs)(`div`,{className:`max-w-2xl`,children:[e.eyebrow?(0,u.jsx)(f,{variant:`free`,className:`text-secondary text-sm font-normal md:font-bold mb-3`,children:e.eyebrow}):null,e.heading?(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-secondary text-3xl md:text-6xl mb-4`,children:e.heading}):null,e.subheading?(0,u.jsx)(f,{variant:`free`,className:`text-secondary text-lg font-bold mb-4 md:max-w-2xl`,children:e.subheading}):null,e.body?(0,u.jsx)(f,{variant:`free`,className:`text-secondary text-base leading-7 mb-6 md:max-w-xl`,children:e.body}):null,e.ctas?.length?(0,u.jsx)(`div`,{className:`flex flex-wrap justify-around md:justify-start md:gap-4`,children:e.ctas.map((e,t)=>(0,u.jsx)(O,{...e},`${e.label??`cta`}-${t}`))}):null]})})}),Fs=({slides:e,initialIndex:t=0,showArrows:n=!0,showDots:r=!0,loop:i=!0,nextArrowButtonProps:a,prevArrowButtonProps:o,onSlideChange:s,onSlideClick:l,heightClassName:d=`h-112 md:h-190`,showImageOverlay:f,renderSlide:p})=>{let m=e.length,[h,g]=c.default.useState(()=>Es(t,m)),_=c.default.useRef(e);c.default.useEffect(()=>{_.current=e},[e]),c.default.useEffect(()=>{let e=Es(t,m);g(e),s?.(e,_.current[e])},[t,m,s]);let v=e[h],y=m>1,b=!!p,x=!b&&Os(v),S=f??!b,C=t=>{let n=Ds(t,m,i);g(n),s?.(n,e[n])};return(0,u.jsxs)(`section`,{className:`relative w-full`,children:[p?p({slide:v,index:h,isActive:!0}):(0,u.jsx)(Ns,{slide:v,index:h,heightClassName:d,onSlideClick:l}),S?(0,u.jsx)(`div`,{"data-testid":`carousel-image-overlay`,className:`absolute inset-0 bg-gradient-to-r from-black/50 via-black/30 to-transparent pointer-events-none`}):null,x?(0,u.jsx)(Ps,{slide:v}):null,n&&y?(0,u.jsx)(`div`,{className:`hidden md:block`,children:(0,u.jsx)(ws,{onPreviousClick:()=>C(h-1),onNextClick:()=>C(h+1),prevArrowButtonProps:o,nextArrowButtonProps:a})}):null,r&&y?(0,u.jsx)(Ts,{count:e.length,activeIndex:h,onDotClick:C}):null]})},Is=e=>{let t=e.slides??[];return t.length===0?null:(0,u.jsx)(Fs,{...e,slides:t})},Ls=e=>[`relative flex h-6 w-6 items-center justify-center border border-secondaryHover`,e.disabled?`opacity-50 cursor-not-allowed`:`cursor-pointer`].join(` `),Rs=({options:e=[],label:t,onOptionSelect:n})=>{let[r,i]=(0,c.useState)(!0),a=e=>{if(e.disabled)return;let t={id:e.id,name:e.name,label:e.label,color:e.color,checked:!(e.checked??!1)};if(n){n(t);return}e.onSelect?.(t)};return(0,u.jsx)(`section`,{children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,u.jsxs)(O,{intent:`primary`,variant:`link`,size:`sm`,onClick:()=>i(!r),className:`flex w-full gap-1`,buttonAlignment:`justify-between`,"aria-expanded":r,children:[(0,u.jsx)(f,{variant:`bold`,children:t}),(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`angle-down`,className:`flex transform text-xs text-secondaryActive transition-transform duration-300 ${r?`rotate-180`:``}`})]}),r&&(0,u.jsx)(`ul`,{className:`flex list-none flex-wrap gap-2`,"aria-label":t,children:e.map(e=>(0,u.jsx)(`li`,{children:(0,u.jsx)(`button`,{type:`button`,className:Ls(e),style:{backgroundColor:e.color},onClick:()=>a(e),disabled:e.disabled??!1,"aria-pressed":e.checked??!1,"aria-label":e.label,title:e.label,children:e.checked?(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`check`,size:`xs`,color:e.checkIconColor??`secondary`}):null})},`${e.name}-${e.id}`))})]})})},zs=({categoryText:e,tags:t=[],onTagClick:n})=>!e&&!t.length?null:(0,u.jsxs)(`div`,{className:`absolute left-4 bottom-10 md:static`,children:[e?(0,u.jsx)(f,{variant:`free`,className:`mb-2 md:mb-0 md:absolute md:bottom-10 md:left-15 text-secondary`,children:e}):null,t.length?(0,u.jsx)(`div`,{className:`md:absolute md:bottom-10 md:right-15 flex md:flex-wrap gap-4`,children:t.map(e=>(0,u.jsx)(O,{label:e.label,size:`sm`,intent:`secondary`,onClick:()=>n?.(e)},e.id))}):null]}),Bs=({heading:e,subheading:t,body:n,eyebrow:r,ctas:i=[]})=>(0,u.jsx)(`div`,{className:`md:mx-25 w-full md:max-w-312.5`,children:(0,u.jsxs)(`div`,{className:`w-full max-w-2xl px-4 md:px-0 md:py-10 text-left`,children:[r?(0,u.jsx)(f,{variant:`standard`,className:`mb-3 md:mb-5`,children:r}):null,(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-secondary text-3xl md:text-6xl mb-4`,children:e}),t?(0,u.jsx)(f,{variant:`free`,className:`text-secondary text-xl md:text-4xl font-bold mb-4`,children:t}):null,n?(0,u.jsx)(f,{variant:`free`,className:`text-secondary text-base mb-6`,children:n}):null,i.length?(0,u.jsx)(`div`,{className:`flex flex-wrap md:gap-4`,children:i.map((e,t)=>(0,u.jsx)(O,{label:e.label,variant:e.variant??`solid`,intent:e.intent??`accent`,className:e.className??`md:w-36`,onClick:e.onCtaClick},`${e.label}-${t}`))}):null]})}),Vs=({heading:e,subheading:t,articleCategory:n,ctaLabel:r,onCtaClick:i})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`md:absolute md:bottom-10 md:left-10 w-full md:max-w-lg md:text-left`,children:[n?(0,u.jsx)(`div`,{children:(0,u.jsx)(O,{label:n,variant:`solid`,intent:`accent`,size:`sm`,className:`mx-auto md:mx-0`})}):null,(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`my-4 text-2xl md:text-4xl text-primary md:text-secondary text-center md:text-left`,children:e}),t?(0,u.jsx)(f,{variant:`eyebrow`,className:`text-primary md:text-secondary text-center md:text-left`,children:t}):null,r?(0,u.jsx)(`div`,{className:`md:hidden mt-8 w-full`,children:(0,u.jsx)(O,{variant:`solid`,intent:`accent`,label:r,className:`w-full`,onClick:i})}):null]}),r?(0,u.jsx)(`div`,{className:`hidden md:block absolute bottom-10 right-10`,children:(0,u.jsx)(O,{variant:`outline`,intent:`secondary`,size:`lg`,className:`border-2 p-2! text-secondary`,onClick:i,"aria-label":r,children:(0,u.jsx)(Co,{icon:Eo,className:`h-4 w-4 -rotate-45 text-secondary`})})}):null]}),Hs=({heading:e,subheading:t,body:n,linkLabel:r,onLinkClick:i})=>(0,u.jsx)(`div`,{className:`mt-10 w-full md:mt-20`,children:(0,u.jsxs)(`div`,{className:`w-full md:w-1/2 py-10 text-left`,children:[(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`mb-3! md:mb-1! text-secondary text-2xl md:text-5xl uppercase`,children:e}),t?(0,u.jsx)(f,{variant:`body`,className:`mb-6 text-secondary text-base font-light uppercase`,children:t}):null,n?(0,u.jsx)(f,{variant:`body`,className:`text-secondary text-base font-light`,children:n}):null,r?(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(O,{label:r,iconType:`fa-solid`,iconName:`fa-arrow-right`,iconPosition:`right`,variant:`link`,intent:`primary`,onClick:i,className:`border-0! px-0! text-secondary! hover:text-accent!`})}):null]})}),Us=({links:e,className:t=``,linkClassName:n=``})=>e.length?(0,u.jsx)(`div`,{className:`flex items-center gap-3 ${t}`.trim(),children:e.map(e=>{let t=e.target??`_blank`,r=e.rel??(t===`_blank`?`noreferrer noopener`:void 0);return(0,u.jsx)(`a`,{href:e.href,"aria-label":e.label,target:t,rel:r,className:`inline-flex h-8 w-8 items-center justify-center rounded-full border border-primary text-primary transition-colors hover:bg-primary hover:text-secondary ${n}`.trim(),children:(0,u.jsx)(g,{iconType:e.iconType??`fa-brands`,iconName:e.iconName,alt:``,size:`base`})},`${e.label}-${e.href}`)})}):null,Ws=({imageSrc:e,imageAlt:t=``,label:n,onCardClick:r,body:i,aspectRatio:a=`video`})=>{let o=(0,u.jsxs)(`div`,{className:`group relative ${a===`compact`?`aspect-video md:aspect-7/6`:`aspect-video`} w-full overflow-hidden rounded-lg`,children:[(0,u.jsx)(j,{src:e,alt:t,className:`h-full w-full object-cover transition-transform duration-300 group-hover:scale-105`,quality:90}),(0,u.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-black/70 via-black/25 to-transparent`}),(0,u.jsxs)(`div`,{className:`absolute bottom-4 left-4 mr-28`,children:[(0,u.jsx)(f,{variant:`free`,className:`mb-2 text-sm font-bold text-secondary`,children:n}),i&&(0,u.jsx)(f,{variant:`free`,className:`text-sm font-light text-secondary`,children:i})]}),r?(0,u.jsx)(`span`,{className:`absolute bottom-3 right-3 inline-flex h-9 w-9 items-center justify-center rounded-md border-2 border-secondary text-secondary transition-colors group-hover:bg-secondary group-hover:text-primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`arrow-right`,color:`inherit`,className:`-rotate-45`})}):null]});return r?(0,u.jsx)(K,{onCardClick:r,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:o}):o},Gs=({videoEmbedUrl:e,videoTitle:t,videoMessage:n})=>{let r=n?.trim();return(0,u.jsxs)(`div`,{className:`w-full`,children:[(0,u.jsx)(P,{src:e,title:t,className:`aspect-video rounded-lg`}),r?(0,u.jsx)(f,{variant:`caption`,className:`mt-2`,children:r}):null]})},Ks=({title:e,details:t,iconName:n=`file-pdf`,onDocumentClick:r})=>(0,u.jsx)(O,{buttonType:`primary`,variant:`outline`,buttonAlignment:`justify-start`,onClick:r,className:`w-full block shrink-0 cursor-pointer text-left border-2 border-secondaryActive rounded-lg px-5 py-4`,children:(0,u.jsxs)(`div`,{className:`w-full flex`,children:[(0,u.jsx)(`div`,{className:`flex row-span-2 mr-2`,children:(0,u.jsx)(g,{iconType:`fa-regular`,iconName:n,size:`4xl`})}),(0,u.jsxs)(`div`,{className:`flex flex-col`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary font-medium`,children:e}),(0,u.jsx)(f,{variant:`free`,className:`text-xs text-secondaryActive`,children:t})]})]})}),qs=({question:e,answer:t,initiallyOpen:n=!1})=>{let[r,i]=(0,c.useState)(n),a=(0,c.useId)();return(0,u.jsx)(K,{onCardClick:()=>i(e=>!e),ariaLabel:`${r?`Collapse`:`Expand`} ${e}`,ariaControls:a,ariaExpanded:r,className:`border border-primary rounded-lg w-full`,children:(0,u.jsxs)(`div`,{className:`flex flex-row justify-between gap-1 rounded-lg border-l-18 transition-all duration-300 ${r?`border-accent py-9 px-4 md:px-12`:`border-secondaryActive py-4 px-4 md:px-12`}`,children:[(0,u.jsxs)(`div`,{className:`w-full`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary font-medium text-left`,children:e}),(0,u.jsx)(`div`,{id:a,"aria-hidden":!r,className:`overflow-hidden transition-all duration-300 ${r?`opacity-100 pt-4`:`max-h-0 opacity-0 pt-0`}`,children:(0,u.jsx)(f,{variant:`body`,className:`text-left`,children:t})})]}),(0,u.jsx)(`div`,{className:`flex items-start`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`angle-down`,className:`transform transition-transform duration-300 text-secondaryActive text-lg ${r?`rotate-180`:``}`})})]})})},Js=({imageSrc:e,imageAlt:t=``,headline:n,body:r,buttons:i=[],align:a=`right`,layoutVariant:o=`default`,onButtonClick:s})=>{let c=a===`right`,l=o===`underBanner`?`mt-10 md:mt-20`:``,d=n?.trim()??``,p=i.filter(e=>e.buttonLabel.trim().length>0),m=(e,t)=>{s?.({buttonLabel:e.buttonLabel,buttonHref:e.buttonHref,index:t})};return(0,u.jsxs)(`section`,{className:`w-full flex flex-col ${l} ${c?`md:flex-row-reverse`:`md:flex-row`}`,children:[(0,u.jsx)(`div`,{className:`w-full md:w-2/3`,children:(0,u.jsx)(j,{src:e,alt:t,className:`aspect-6/7 w-full object-cover rounded-lg md:aspect-video ${c?`md:rounded-l-lg`:`md:rounded-r-lg`}`,quality:90})}),(0,u.jsxs)(`div`,{className:`flex w-full flex-col justify-center bg-white px-4 md:w-1/3 md:px-0 md:py-14 ${c?`md:pr-7`:`md:pl-7`}`,children:[d&&(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`mb-4 text-center text-2xl md:mx-0 md:text-left md:text-4xl`,children:d}),(0,u.jsx)(f,{variant:`body`,className:`mb-6 text-center md:mb-20 md:text-left`,children:r}),p.length>0&&(0,u.jsx)(`div`,{"data-testid":`info-card-actions`,className:`flex w-full flex-col gap-2 md:gap-4`,children:p.map((e,t)=>(0,u.jsx)(O,{label:e.buttonLabel,variant:e.variant??`solid`,intent:e.intent??`accent`,size:e.size??`md`,fullWidth:!0,onClick:()=>m(e,t)},`${e.buttonLabel}-${t}`))})]})]})},Ys=({iconType:e,iconName:t,title:n,body:r,href:i,linkLabel:a=`Learn more`,onLinkClick:o})=>{let s=(0,u.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-accent hover:underline underline-offset-4 text-sm`,children:[(0,u.jsx)(f,{as:`span`,variant:`body`,className:`!text-inherit`,children:a}),(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`arrow-right`,size:`sm`,className:`translate-y-[1px]`})]}),c=null;return i?c=(0,u.jsx)(`a`,{href:i,onClick:o,className:`inline-flex`,children:s}):o&&(c=(0,u.jsx)(`button`,{type:`button`,onClick:o,className:`inline-flex`,children:s})),(0,u.jsx)(`section`,{className:`w-full`,children:(0,u.jsxs)(`div`,{className:`flex flex-col items-start`,children:[(0,u.jsx)(g,{iconType:e,iconName:t,size:`lg`,className:`mb-3`}),(0,u.jsx)(f,{as:`h3`,variant:`bold`,className:`mb-2`,children:n}),(0,u.jsx)(f,{variant:`body`,className:`mb-3 leading-relaxed text-sm text-light`,children:r}),c]})})},Xs=[{key:`lrv`,code:`LRV`,iconName:`fa-sun`},{key:`ral`,code:`RAL`,iconName:`fa-palette`},{key:`ncs`,code:`NCS`,iconName:`fa-swatchbook`}],Zs=e=>e!=null&&String(e).trim().length>0,Qs=({colourMatching:e})=>{let t=Xs.map(t=>({...t,value:e?.[t.key]})).filter(e=>Zs(e.value));return t.length?(0,u.jsxs)(`section`,{"aria-label":`Colour Matching Information`,className:`mt-2 flex flex-col gap-2`,children:[(0,u.jsx)(f,{as:`h3`,variant:`bold`,className:`mb-0 text-sm md:text-base`,children:`Colour Matching Information`}),(0,u.jsx)(`dl`,{className:`grid grid-cols-1 gap-2 text-sm text-primary`,children:t.map(e=>(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:e.iconName,size:`sm`,color:`secondaryHover`,className:`w-4 shrink-0`}),(0,u.jsxs)(`dt`,{className:`font-medium`,children:[e.code,`:`]}),(0,u.jsx)(`dd`,{children:e.value})]},e.key))})]}):null},$s=e=>[`h-9 w-9 border-2 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),ec=({imageSrc:e,imageAlt:t,title:n,brand:r,decorNumber:i,finish:a,size:o,quantity:s,price:c,unitPrice:l,totalPrice:d,showPricing:p=!0,minQuantity:m=1,maxQuantity:h=99,isReadOnly:g=!1,removeItemLabel:_=`Remove item`,decreaseQuantityLabel:v=`Decrease quantity`,increaseQuantityLabel:y=`Increase quantity`,onQuantityChange:b,onRemoveItem:x})=>{let S=s>m,C=s<h,w=()=>{g||!S||b?.(s-1)},T=()=>{g||!C||b?.(s+1)},E=()=>{g||x?.()},D=d?.label||c?.label,k=`flex items-center gap-3 bg-tertiaryActive`;return g&&(k=p?`grid grid-cols-[minmax(0,1fr)_120px_120px_120px] items-center gap-6`:`grid grid-cols-[minmax(0,1fr)_120px] items-center gap-6`),(0,u.jsxs)(`div`,{className:`rounded-lg p-5 ${k}`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center`,children:[(0,u.jsx)(j,{src:e,alt:t||n,quality:90,className:`h-16 w-16 rounded-lg`}),(0,u.jsxs)(`div`,{className:`ml-4 min-w-0 pr-2`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs text-tertiary`,children:i}),(0,u.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-2`,children:[(0,u.jsx)(f,{variant:`bold`,className:`min-w-0 font-bold`,children:n}),a&&o?(0,u.jsxs)(f,{variant:`free`,className:`text-base text-tertiary`,children:[a,`, `,o]}):null]}),(0,u.jsx)(f,{variant:`free`,className:`text-primary text-sm`,children:r})]})]}),g?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(`div`,{className:`flex h-10 min-w-10 items-center justify-center rounded-md px-3`,children:(0,u.jsx)(f,{as:`span`,variant:`free`,className:`text-primary`,children:s})})}),p?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(f,{variant:`free`,className:`text-primary`,children:l?.label})}),(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(f,{variant:`free`,className:`font-extrabold text-primary`,children:D})})]}):null]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`flex shrink-0 items-center justify-end gap-1`,children:[S?(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":v,type:`button`,disabled:!S,onClick:w,className:$s(S)}):(0,u.jsx)(O,{iconType:`fa-regular`,iconName:`trash-can`,intent:`ghost`,variant:`solid`,"aria-label":_,type:`button`,onClick:E,className:`h-9 w-9 border-2 border-secondaryActive! text-primary! hover:text-accent!`}),(0,u.jsx)(`div`,{className:`flex min-w-7 items-center justify-center`,children:(0,u.jsx)(f,{as:`span`,variant:`free`,children:s})}),(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":y,type:`button`,disabled:!C,onClick:T,className:$s(C)})]}),p?(0,u.jsx)(`div`,{className:`flex w-24 shrink-0 justify-end`,children:D?(0,u.jsx)(f,{variant:`free`,className:`text-primary`,children:D}):null}):null]})]})},tc=/^(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?$/,nc=new Intl.DateTimeFormat(`en-US`,{month:`long`,day:`numeric`,year:`numeric`,timeZone:`UTC`}),rc=e=>{let t=tc.exec(e);if(!t)return null;let[,n,r,i,a=`0`,o=`0`,s=`0`]=t;return new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(a),Number(o),Number(s)))},ic=e=>{let t=rc(e);if(t)return t;let n=new Date(e);return Number.isNaN(n.getTime())?null:n},ac=e=>{let t=e?.trim();if(!t)return``;let n=ic(t);return n?nc.format(n):t},oc=e=>e===`mediaRightCompact`?`aspect-video h-auto md:h-full w-full rounded-lg object-cover mb-0`:`h-48 md:h-full w-full md:aspect-video rounded-lg object-cover mb-4 md:mb-0`,sc=({layoutVariant:e,mediaType:t,imageSrc:n,imageAlt:r,videoEmbedUrl:i,videoTitle:a,title:o})=>{let s=oc(e);return t===`video`&&i?(0,u.jsx)(P,{src:i,title:a??o,className:s}):n?(0,u.jsx)(j,{src:n,alt:r??``,className:s,quality:90}):null},cc=({layoutVariant:e=`default`,mediaType:t=`image`,imageSrc:n,imageAlt:r=``,videoEmbedUrl:i,videoTitle:a,category:o,title:s,publishDate:c,body:l,buttonLabel:d,onViewClick:p,actionFooter:m})=>{let h=[`w-full md:flex`,e===`mediaRightCompact`?`md:flex-row-reverse md:gap-0`:`md:flex-row md:gap-8`].join(` `),g=e===`mediaRightCompact`?`w-full md:w-2/3`:`w-full md:w-1/2`,_=[`flex w-full flex-col justify-center`,e===`mediaRightCompact`?`md:w-1/3 md:pr-14`:`md:w-1/2`].join(` `),v=ac(c),y=d.trim();return(0,u.jsxs)(`article`,{className:h,children:[(0,u.jsx)(`div`,{className:g,children:sc({layoutVariant:e,mediaType:t,imageSrc:n,imageAlt:r,videoEmbedUrl:i,videoTitle:a,title:s})}),(0,u.jsxs)(`div`,{className:_,children:[o?(0,u.jsx)(f,{as:`p`,variant:`navlink`,className:`mt-4 mb-2 md:mt-0 md:mb-4 underline underline-offset-4`,children:o}):null,(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-2xl md:text-3xl mb-2 md:mb-4`,children:s}),v?(0,u.jsx)(f,{variant:`body`,className:`mb-2 md:mb-4`,children:v}):null,(0,u.jsx)(f,{variant:`body`,className:`mb-4 md:mb-8`,children:l}),y?(0,u.jsx)(`div`,{children:(0,u.jsx)(O,{variant:`outline`,intent:`accent`,size:`sm`,label:y,onClick:p,className:`px-8 py-2`})}):null,m?(0,u.jsx)(`div`,{className:`mt-4`,children:m}):null]})]})},lc=({heading:e,body:t,buttonLabel:n,buttonHref:r,onButtonClick:i})=>(0,u.jsxs)(`article`,{className:`w-full bg-white px-6 py-12 text-center md:px-24 md:py-16`,children:[(0,u.jsx)(f,{as:`h2`,variant:`h2`,className:`mb-6`,children:e}),t?(0,u.jsx)(f,{variant:`body`,className:`mx-auto mb-6 max-w-2xl`,children:t}):null,(0,u.jsx)(O,{variant:`solid`,intent:`accent`,label:n,className:`mx-auto w-full max-w-md`,onClick:()=>{i?.({heading:e,body:t,buttonLabel:n,buttonHref:r})}})]}),uc={complete:{iconName:`check`,iconClassName:`border-saleGreen bg-saleGreen/10 text-saleGreen`,statusClassName:`text-saleGreen`},partial:{iconName:`exclamation`,iconClassName:`border-yellow-500 bg-yellow-50 text-yellow-700`,statusClassName:`text-yellow-700`},missing:{iconName:`exclamation`,iconClassName:`border-accent bg-accent/10 text-accent`,statusClassName:`text-accent`},notRequired:{iconName:`minus`,iconClassName:`border-secondaryHover bg-tertiaryActive text-secondaryActive`,statusClassName:`text-secondaryActive`}},dc=({id:e,title:t,description:n,status:r,statusLabel:i,selected:a=!1,onCardClick:o})=>{let s=uc[r],c=n?.trim()??``,l=(0,u.jsxs)(`article`,{"aria-current":a?`true`:void 0,className:[`flex w-full items-start gap-3 rounded-lg border bg-secondary p-3 text-left transition`,a?`border-primary shadow-sm`:`border-borderTertiary hover:border-secondaryActive`].join(` `),children:[(0,u.jsx)(`span`,{"aria-label":`Status: ${i}`,className:`flex h-7 w-7 shrink-0 items-center justify-center rounded-full border ${s.iconClassName}`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:s.iconName,alt:``,size:`xs`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:t}),c?(0,u.jsx)(f,{variant:`free`,className:`mt-0.5 text-xs text-primary`,children:c}):null,(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs font-medium ${s.statusClassName}`,children:i})]})]});return o?(0,u.jsx)(K,{ariaLabel:`Edit ${t} localization`,className:`block w-full cursor-pointer rounded-lg text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,onCardClick:()=>o({id:e,title:t,status:r,statusLabel:i}),children:l}):l},fc={new:{bannerText:`NEW`,bannerContainerClassName:`absolute -left-2 -right-2 top-4 md:top-8 z-10 flex h-7 md:h-8 border border-secondaryActive bg-secondary shadow-xl/50`,bannerTextClassName:`m-auto text-primary text-center font-medium text-md md:text-lg`,specialText:``,specialTextClassName:``},discontinued:{bannerText:`DISCONTINUED`,bannerContainerClassName:`absolute -left-2 -right-2 top-4 md:top-8 z-10 flex h-7 md:h-8 border border-secondaryActive bg-primary shadow-xl/50`,bannerTextClassName:`m-auto text-secondary text-center font-medium text-md md:text-lg`,specialText:``,specialTextClassName:``},comingSoon:{bannerText:`COMING SOON`,bannerContainerClassName:`absolute -left-2 -right-2 top-4 md:top-8 z-10 flex h-7 md:h-8 border border-secondaryActive bg-accent shadow-xl/50`,bannerTextClassName:`m-auto text-secondary text-center font-medium text-md md:text-lg`,specialText:`Retail Exclusive`,specialTextClassName:`text-lg font-bold md:font-extrabold text-accent`},sale:{bannerText:`SALE`,bannerContainerClassName:`absolute -left-2 -right-2 top-4 md:top-8 z-10 flex h-7 md:h-8 border border-secondaryActive bg-saleGreen shadow-xl/50`,bannerTextClassName:`m-auto text-secondary text-center font-medium text-md md:text-lg`,specialText:`Sale`,specialTextClassName:`text-lg font-bold md:font-extrabold text-saleGreen`}},pc=`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbGw9IiNFNUU1RTUiLz4KICA8cmVjdCB4PSIxIiB5PSIxIiB3aWR0aD0iMjk4IiBoZWlnaHQ9IjI5OCIgZmlsbD0iI0YzRjNGMyIgc3Ryb2tlPSIjRDBEMEQwIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBkPSJNNDggMjAzTDExMCAxNDFMMTUzIDE4NEwyMjYgMTExTDI1MiAxMzdWMjUySDQ4VjIwM1oiIGZpbGw9IiNEOEQ4RDgiLz4KICA8Y2lyY2xlIGN4PSIxMDIiIGN5PSI5MSIgcj0iMjYiIGZpbGw9IiNEOEQ4RDgiLz4KICA8dGV4dCB4PSIxNTAiIHk9IjI3OCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iIzdBN0E3QSIgZm9udC1mYW1pbHk9IkFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjE4Ij5JbWFnZSBVbmF2YWlsYWJsZTwvdGV4dD4KPC9zdmc+Cg==`,mc=({imageSrc:e,imageFallbackSrc:t,imageAlt:n,title:r,brand:i,product:a,decorNumber:o,status:s,onSwatchClick:c})=>{let l=s?fc[s]:null,d=typeof c==`function`,p=(0,u.jsx)(I,{src:e,fallbackSrc:t,placeholderSrc:pc,alt:typeof n==`string`&&n.trim().length>0?n:`${r} placeholder image`,quality:90,placeholderClassName:`block h-full w-full object-cover`,imageClassName:`absolute inset-0 block h-full w-full object-cover`}),m=`relative block aspect-square w-full overflow-hidden border-0 bg-neutral-100 p-0 text-left`;return(0,u.jsxs)(`section`,{className:`w-full flex flex-col md:flex-nowrap md:max-w-64 mx-auto items-center`,children:[(0,u.jsxs)(`div`,{className:`relative md:flex md:w-full w-52`,children:[d?(0,u.jsx)(K,{onCardClick:c,className:`${m} cursor-pointer`,ariaLabel:`Open ${r}${o}`,children:p}):(0,u.jsx)(`div`,{className:m,children:p}),l?(0,u.jsx)(`div`,{className:l.bannerContainerClassName,children:(0,u.jsx)(f,{variant:`free`,className:l.bannerTextClassName,children:l.bannerText})}):null]}),(0,u.jsxs)(`div`,{className:`mt-2 md:w-full md:px-2`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm text-tertiary`,children:o}),(0,u.jsx)(f,{variant:`free`,className:`text-primary text-lg font-bold`,children:r}),(0,u.jsx)(f,{variant:`free`,className:`text-base text-primary`,children:i}),a&&(0,u.jsx)(f,{variant:`free`,className:`text-base text-primary`,children:a}),l?.specialText?(0,u.jsx)(f,{variant:`free`,className:l.specialTextClassName,children:l.specialText}):null]})]})},hc=({address:e,defaultLabel:t=`Default address`,editLabel:n=`Edit`,removeLabel:r=`Remove`,onEditClick:i,onRemoveClick:a})=>(0,u.jsxs)(`article`,{className:`relative flex w-full flex-col rounded-lg border border-borderTertiary bg-white p-6`,children:[e.isDefault?(0,u.jsx)(`span`,{className:`mb-4 w-fit rounded-full bg-primary px-3 py-1 text-xs font-semibold text-white`,children:t}):null,(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`font-rockwell text-xl text-primary`,children:e.fullName}),e.company?(0,u.jsx)(f,{className:`mt-2`,children:e.company}):null,(0,u.jsxs)(`address`,{className:`mt-3 not-italic`,children:[e.addressLines.map(e=>(0,u.jsx)(f,{className:`text-secondaryActive`,children:e},e)),e.phoneNumber?(0,u.jsx)(f,{className:`mt-1 text-secondaryActive`,children:e.phoneNumber}):null]}),(0,u.jsxs)(`div`,{className:`mt-6 flex flex-wrap gap-3 border-t border-borderTertiary pt-4`,children:[(0,u.jsx)(O,{label:n,iconType:`fa-solid`,iconName:`pen`,iconAlt:``,variant:`link`,intent:`accent`,size:`sm`,onClick:()=>i({address:e})}),(0,u.jsx)(O,{label:r,iconType:`fa-solid`,iconName:`trash-can`,iconAlt:``,variant:`link`,intent:`danger`,size:`sm`,onClick:()=>a({address:e})})]})]}),gc={neutral:`bg-tertiaryActive text-primary`,accent:`bg-accent text-white`,success:`bg-green-50 text-primary`},_c=({orderNumber:e,orderDate:t,status:n,statusTone:r=`neutral`,projectName:i,invoiceLabel:a=`Download invoice`,onInvoiceClick:o})=>(0,u.jsx)(`header`,{className:`w-full rounded-lg border border-borderTertiary bg-adminSideNavBackground p-5 md:p-6`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-5 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,u.jsxs)(f,{as:`h1`,variant:`free`,className:`font-rockwell text-3xl text-primary`,children:[`Order #`,e]}),(0,u.jsx)(`span`,{className:`rounded-full px-3 py-1 text-sm font-semibold ${gc[r]}`,children:n})]}),(0,u.jsxs)(f,{className:`mt-3 text-secondaryActive`,children:[`Placed `,t]}),i?(0,u.jsxs)(f,{className:`mt-1 text-secondaryActive`,children:[`Project: `,i]}):null]}),o?(0,u.jsx)(`div`,{className:`md:shrink-0`,children:(0,u.jsx)(O,{label:a,iconType:`fa-solid`,iconName:`download`,iconAlt:``,intent:`primary`,onClick:o})}):null]})}),vc={neutral:`bg-tertiaryActive text-primary`,accent:`bg-accent text-white`,success:`bg-green-50 text-primary`},yc=({item:e,onProductClick:t,onTrackingClick:n})=>{let r=`${e.quantity}${e.quantityUnit?` ${e.quantityUnit}`:``}`,i=e.trackingNumber?n?(0,u.jsxs)(`button`,{type:`button`,className:`text-left text-sm font-semibold text-accent hover:underline`,onClick:()=>n({item:e}),children:[`Track shipment `,e.trackingNumber]}):(0,u.jsxs)(f,{className:`text-sm text-primary`,children:[`Tracking: `,e.trackingNumber]}):(0,u.jsx)(f,{className:`text-sm text-secondaryActive`,children:`Tracking available after shipment`});return(0,u.jsxs)(`article`,{className:`w-full rounded-lg border border-borderTertiary bg-adminSideNavBackground p-5 md:p-6`,children:[(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-6 md:grid-cols-5 md:items-center`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 gap-4 md:col-span-2`,children:[(0,u.jsx)(j,{src:e.imageSrc,alt:e.imageAlt,quality:90,className:`h-20 w-20 shrink-0 rounded-lg object-cover`}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[t?(0,u.jsx)(`button`,{type:`button`,className:`text-left font-semibold text-primary hover:text-accent hover:underline`,onClick:()=>t({item:e}),children:e.title}):(0,u.jsx)(f,{variant:`free`,className:`font-semibold text-primary`,children:e.title}),(0,u.jsxs)(f,{className:`mt-1 text-sm text-secondaryActive`,children:[`SKU `,e.sku]}),e.brand?(0,u.jsx)(f,{className:`mt-1 text-sm text-primary`,children:e.brand}):null,e.description?(0,u.jsx)(f,{className:`mt-1 text-sm text-secondaryActive`,children:e.description}):null]})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{className:`text-xs font-semibold uppercase text-secondaryActive`,children:`Quantity`}),(0,u.jsx)(f,{className:`mt-1 text-sm text-primary`,children:r})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{className:`text-xs font-semibold uppercase text-secondaryActive`,children:`Unit price`}),(0,u.jsx)(f,{className:`mt-1 text-sm text-primary`,children:e.unitPrice})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{className:`text-xs font-semibold uppercase text-secondaryActive`,children:`Total`}),(0,u.jsx)(f,{className:`mt-1 font-semibold text-primary`,children:e.total})]})]}),(0,u.jsxs)(`div`,{className:`mt-5 flex flex-col gap-3 border-t border-borderTertiary pt-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,u.jsx)(`span`,{className:`rounded-full px-3 py-1 text-sm font-semibold ${vc[e.statusTone??`neutral`]}`,children:e.status}),e.statusDetail?(0,u.jsx)(f,{className:`text-sm text-secondaryActive`,children:e.statusDetail}):null]}),i]})]})},bc=e=>[`flex w-full items-center gap-3 rounded-md px-3 py-3 text-left text-sm font-semibold transition`,e?`bg-tertiaryActive text-primary`:`text-primary hover:bg-tertiaryActive`].join(` `),xc=({items:e,activeItemId:t,ariaLabel:n=`Admin navigation`,logo:r,menuLabel:i=`Open navigation menu`,logoutLabel:a=`Log out`,onMenuClick:o,onItemClick:s,onLogoutClick:c})=>{let l=e=>{s?.({item:e})};return(0,u.jsxs)(`nav`,{"aria-label":n,className:`flex h-full min-h-96 w-full flex-col border-r border-borderTertiary bg-secondary p-4`,children:[(0,u.jsxs)(`div`,{className:`mb-6 flex min-h-12 items-center justify-between gap-3`,children:[r?(0,u.jsx)(j,{src:r.imageUrl,alt:r.altText,className:`max-h-10 min-w-0 flex-1 object-contain object-left`,quality:90,fit:`contain`}):null,(0,u.jsx)(`button`,{type:`button`,"aria-label":i,className:`flex h-9 w-9 shrink-0 items-center justify-center rounded-md text-primary hover:bg-tertiaryActive`,onClick:o,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`bars`,alt:``,size:`md`})})]}),(0,u.jsx)(`ul`,{className:`space-y-2`,children:e.map(e=>{let n=e.id===t;return(0,u.jsx)(`li`,{children:(0,u.jsxs)(`button`,{type:`button`,"aria-current":n?`page`:void 0,className:bc(n),onClick:()=>l(e),children:[(0,u.jsx)(g,{iconType:e.iconType??`fa-solid`,iconName:e.iconName,alt:``,size:`md`,className:`shrink-0`}),(0,u.jsx)(f,{variant:`free`,className:`text-sm text-inherit`,children:e.label})]})},e.id)})}),(0,u.jsxs)(`button`,{type:`button`,className:`mt-auto flex w-full items-center gap-3 rounded-md px-3 py-3 text-left text-sm font-semibold text-primary transition hover:bg-tertiaryActive`,onClick:c,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`right-from-bracket`,alt:``,size:`md`,className:`shrink-0`}),(0,u.jsx)(f,{variant:`free`,className:`text-sm text-inherit`,children:a})]})]})},Sc=1500,Cc=2e4,wc=21,Tc=2*Math.PI*wc,Ec=e=>Math.min(100,Math.max(0,e)),Dc=({job:e,completionDisplayDuration:t,onClick:n,onDismiss:r})=>{let[i,a]=(0,c.useState)(!1),o=Ec(e.percentDone),s=(0,c.useRef)(e),l=(0,c.useRef)(r);s.current=e,l.current=r,(0,c.useEffect)(()=>{if(o<100){a(!1);return}let e=window.setTimeout(()=>a(!0),t),n=window.setTimeout(()=>l.current(s.current),t+Sc);return()=>{window.clearTimeout(e),window.clearTimeout(n)}},[t,o]);let d=Tc-o/100*Tc,f=o===100?`text-saleGreen`:`text-primary`;return(0,u.jsx)(`li`,{className:`transition-opacity ${i?`opacity-0`:`opacity-100`}`,style:{transitionDuration:`${Sc}ms`},children:(0,u.jsxs)(`button`,{type:`button`,className:`group flex w-full items-center gap-3 rounded-lg p-2 text-left text-primary transition hover:bg-tertiaryActive focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary`,"aria-label":`${e.name}: ${e.status}, ${Math.round(o)}% complete`,title:`${e.name} - ${e.status}`,onClick:()=>n?.(e),children:[(0,u.jsxs)(`span`,{className:`relative flex h-12 w-12 shrink-0 items-center justify-center`,children:[(0,u.jsxs)(`svg`,{className:`absolute inset-0 h-full w-full -rotate-90`,viewBox:`0 0 48 48`,role:`progressbar`,"aria-label":`${e.name} progress`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(o),children:[(0,u.jsx)(`circle`,{cx:`24`,cy:`24`,r:wc,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,className:`text-tertiaryActive`}),(0,u.jsx)(`circle`,{cx:`24`,cy:`24`,r:wc,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,strokeDasharray:Tc,strokeDashoffset:d,className:f})]}),(0,u.jsxs)(`span`,{className:`text-xs font-bold tabular-nums`,children:[Math.round(o),`%`]})]}),(0,u.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`span`,{className:`block truncate text-sm font-semibold`,children:e.name}),(0,u.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-tertiary`,children:e.status})]})]})})},Oc=({jobs:e,ariaLabel:t=`Background jobs`,completionDisplayDuration:n=Cc,onJobClick:r,onJobDismiss:i})=>{let[a,o]=(0,c.useState)(e),s=(0,c.useRef)(new Set);(0,c.useEffect)(()=>{let t=new Set(e.map(({id:e})=>e));for(let e of s.current)t.has(e)||s.current.delete(e);for(let t of e)Ec(t.percentDone)<100&&s.current.delete(t.id);o(n=>{let r=n.filter(e=>Ec(e.percentDone)===100&&!t.has(e.id)&&!s.current.has(e.id));return[...e.filter(e=>!s.current.has(e.id)),...r]})},[e]);let l=(0,c.useCallback)(e=>{s.current.add(e.id),o(t=>t.filter(({id:t})=>t!==e.id)),i?.(e)},[i]);return a.length===0?null:(0,u.jsx)(`aside`,{"aria-label":t,className:`fixed right-3 top-4 z-50 w-64 rounded-xl border border-borderTertiary bg-secondary p-1.5 shadow-lg md:right-5 md:top-6`,children:(0,u.jsx)(`ul`,{className:`space-y-1`,children:a.map(e=>(0,u.jsx)(Dc,{job:e,completionDisplayDuration:n,onClick:e=>r?.({job:e}),onDismiss:l},e.id))})})},kc={sm:`max-w-md`,md:`max-w-2xl`,lg:`max-w-4xl`},Ac=({open:e,title:t,description:n,children:r,closeLabel:i=`Close modal`,size:a=`md`,onClose:o})=>{let s=n?.trim()??``,l=(0,c.useId)(),d=(0,c.useId)();return(0,c.useEffect)(()=>{let t=e=>{e.key===`Escape`&&o()};return e&&document.addEventListener(`keydown`,t),()=>{e&&document.removeEventListener(`keydown`,t)}},[o,e]),e?(0,u.jsxs)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center p-4`,children:[(0,u.jsx)(`button`,{type:`button`,"aria-label":i,className:`absolute inset-0 cursor-default bg-primary/40`,onClick:o}),(0,u.jsxs)(`section`,{role:`dialog`,"aria-modal":`true`,"aria-labelledby":l,"aria-describedby":s?d:void 0,className:`relative flex max-h-[90vh] w-full flex-col overflow-hidden rounded-lg border border-borderTertiary bg-secondary shadow-lg ${kc[a]}`,children:[(0,u.jsxs)(`header`,{className:`flex items-start justify-between gap-4 border-b border-borderTertiary px-5 py-4`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`h2`,id:l,variant:`free`,className:`text-lg font-bold text-primary`,children:t}),s?(0,u.jsx)(f,{id:d,variant:`free`,className:`mt-1 text-sm text-primary`,children:s}):null]}),(0,u.jsx)(`button`,{type:`button`,"aria-label":i,className:`flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-primary hover:bg-tertiaryActive`,onClick:o,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`xmark`,alt:``,size:`sm`})})]}),(0,u.jsx)(`div`,{className:`overflow-y-auto p-5`,children:r})]})]}):null},jc=({items:e,selectedId:t,onSelect:n,layoutVariant:r=`content`,visualVariant:i=`default`,className:a=``,buttonClassName:o=``,disabled:s=!1,ariaLabel:c=`Segmented control`})=>{if(!e?.length)return null;let l=e.filter(e=>!e.disabled),d=l.findIndex(e=>e.id===t),f=e=>{let t=l[e];t&&n?.(t.id)},p=e=>{if(s||!l.length)return;let t=d>=0?d:0;(e.key===`ArrowRight`||e.key===`ArrowDown`)&&(e.preventDefault(),f((t+1)%l.length)),(e.key===`ArrowLeft`||e.key===`ArrowUp`)&&(e.preventDefault(),f((t-1+l.length)%l.length)),e.key===`Home`&&(e.preventDefault(),f(0)),e.key===`End`&&(e.preventDefault(),f(l.length-1))},m=r===`equalWidth`?`inline-grid grid-flow-col auto-cols-fr`:`inline-flex`,h=i===`brandBar`;return(0,u.jsx)(`div`,{className:`${m} ${s?`opacity-60 pointer-events-none`:``} ${a}`.trim(),role:`radiogroup`,"aria-label":c,"aria-disabled":s||void 0,onKeyDown:p,children:e.map((r,i)=>{let a=r.id===t,c=i===0,l=i===e.length-1,d=[`rounded-none`,`whitespace-nowrap`,h?`border-none! bg-transparent! hover:bg-transparent! active:bg-transparent!`:``,!h&&a?`relative z-10 border-secondaryMultiButton!`:``,!h&&!a?`bg-secondaryHover`:``,!h&&c?`rounded-l-md`:``,!h&&!c?`-ml-px`:``,!h&&l?`rounded-r-md`:``,o].filter(Boolean).join(` `);return(0,u.jsx)(O,{variant:a?`solid`:`outline`,intent:a?`primary`:`muted`,size:`sm`,active:a,disabled:s||r.disabled,className:d,onClick:()=>n?.(r.id),role:`radio`,"aria-checked":a,tabIndex:a?0:-1,children:r.label},r.id)})})},Mc=({options:e,value:t,defaultValue:n,onChange:r,ariaLabel:i=`Radio buttons`,disabled:a=!1,className:o=``,containerClassName:s=``,buttonClassName:l=``,visualVariant:d=`default`})=>{let f=t!==void 0,p=(0,c.useMemo)(()=>e?.[0],[e]),[m,h]=(0,c.useState)(n&&e.includes(n)?n:p);if((0,c.useEffect)(()=>{if(!e?.length){h(void 0);return}h(t=>t&&e.includes(t)?t:n&&e.includes(n)?n:e[0])},[n,e.join(`|`)]),!e?.length)return null;let g=(f?t:m)??e[0];return(0,u.jsx)(jc,{ariaLabel:i,disabled:a,className:[s,o].filter(Boolean).join(` `),buttonClassName:l,visualVariant:d,selectedId:g,items:e.map(e=>({id:e,label:e})),onSelect:t=>{let n=e.indexOf(t);h(t),r?.(t,n)}})},Nc=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Pc=e=>{if(!Nc(e))return e;let t=e.value??e.jsonValue;return t===void 0?e:Pc(t)},Fc=(e,t,n=!0)=>{let r=Pc(e);if(typeof r==`string`)return n?r:``;if(!Nc(r))return``;for(let e of t){let t=r[e];if(typeof t==`string`)return t}return``},Ic=(e,t)=>{let n=Pc(t);return Nc(n)?`${e}${typeof n.querystring==`string`?n.querystring:``}${typeof n.anchor==`string`?n.anchor:``}`:e},Lc=e=>Fc(e,[`text`,`title`,`label`,`href`,`url`]).trim(),Rc=e=>{let t=Fc(e,[`href`,`url`]).trim();return t?Ic(t,e):``},zc=(e,t)=>Fc(e,[`target`],!1).trim()||t,Bc=(e,t)=>Fc(e,[`rel`],!1).trim()||t,Vc=({brands:e=[],showProPortalSelector:t=!1,isNorthAmerica:n=!0,selectedCustomerType:r=`Commercial`,onBrandClick:i,onCustomerTypeChange:a})=>{let o=t&&n;return(0,u.jsx)(`div`,{className:`bg-primary text-white text-sm w-full`,children:(0,u.jsxs)(`div`,{className:`flex w-full justify-center md:justify-around h-9 pl-4 pr-8 py-2`,children:[(0,u.jsx)(`div`,{className:`flex w-full justify-center gap-6 pt-1 md:w-1/2 md:justify-around`,children:e.map((e,t)=>{let n=Lc(e.label),r=Rc(e.href),a=Ae(n),o=`${n||r||`brand`}-${r||t}`;return(0,u.jsx)(`button`,{type:`button`,className:`flex items-center hover:opacity-90`,"aria-label":n,onClick:()=>i?.(e),children:a?(0,u.jsx)(`img`,{src:a,alt:n,className:`h-5 w-auto`,loading:`eager`,decoding:`async`}):(0,u.jsx)(`span`,{className:`hover:underline`,children:n})},o)})}),(0,u.jsx)(`div`,{className:`hidden md:block md:w-1/4`}),(0,u.jsx)(`div`,{className:`hidden md:flex md:w-1/4 md:justify-end`,children:o?(0,u.jsx)(Mc,{ariaLabel:`Customer type`,defaultValue:r,buttonClassName:`aria-checked:font-bold text-secondary`,visualVariant:`brandBar`,onChange:e=>a?.(e),options:[`Commercial`,`Residential`]}):null})]})})},Hc=({activeItem:e,onMegaMenuLinkClick:t})=>e?(0,u.jsx)(`div`,{className:`w-full px-10 pt-6 pb-8`,children:(0,u.jsx)(`div`,{className:`grid grid-cols-4 gap-x-10 gap-y-8`,children:(e.subcategories??[]).map(e=>(0,u.jsxs)(`div`,{className:`min-w-0 text-left`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-semibold text-primary`,children:e.label}),(0,u.jsx)(`ul`,{className:`mt-4 flex min-w-0 list-none flex-col gap-4 p-0`,children:e.items.map(e=>(0,u.jsx)(`li`,{className:`m-0 p-0`,children:(0,u.jsx)(`button`,{type:`button`,className:`flex w-full items-center justify-between gap-3 border-0 bg-transparent p-0 text-left text-xs text-tertiary cursor-pointer hover:underline`,onClick:()=>t?.(e),children:(0,u.jsx)(f,{variant:`free`,children:e.label})})},e.id))})]},e.id))})}):null,Uc=e=>[e.title,e.subtitle].filter(Boolean).join(` `),Wc=({id:e,items:t=[],viewAllLabel:n=`View all results`,layoutVariant:r=`popover`,onResultClick:i,onViewAllClick:a})=>t.length?(0,u.jsxs)(`div`,{id:e,className:`${r===`contained`?`w-full`:`w-80`} overflow-hidden rounded-md border border-gray-200 bg-white text-primary shadow-lg`,role:`region`,"aria-label":`Search results`,children:[(0,u.jsx)(`ul`,{className:`max-h-96 divide-y divide-gray-200 overflow-y-auto`,children:t.map(e=>(0,u.jsx)(`li`,{children:(0,u.jsxs)(K,{ariaLabel:Uc(e),className:`flex w-full items-center gap-3 px-3 py-2 text-left hover:bg-gray-50 focus:bg-gray-50 focus:outline-none`,onCardClick:()=>i?.({item:e}),children:[e.imageSrc?(0,u.jsx)(j,{src:e.imageSrc,alt:e.imageAlt??``,className:`h-10 w-10 shrink-0 rounded-sm object-cover`,quality:80}):(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-10 w-10 shrink-0 rounded-sm bg-gray-100`}),(0,u.jsxs)(`span`,{className:`min-w-0`,children:[(0,u.jsx)(`span`,{className:`block text-sm leading-snug break-words text-primary`,children:e.title}),e.variant===`product`&&e.subtitle?(0,u.jsx)(`span`,{className:`mt-0.5 block text-xs leading-snug break-words text-secondary`,children:e.subtitle}):null,e.variant===`article`&&e.description?(0,u.jsx)(`span`,{className:`mt-0.5 block text-xs leading-snug break-words text-secondary`,children:e.description}):null]})]})},e.id))}),(0,u.jsx)(`div`,{className:`border-t border-gray-200 px-3 py-2`,children:(0,u.jsx)(O,{variant:`link`,label:n,className:`w-full justify-start px-0 text-left text-tertiary underline-offset-2 hover:underline`,onClick:a})})]}):null,Gc=300,Kc=({Countries:e,countries:t,selectedCountry:n,Login:r,Account:i,Cart:a={hasCart:!1,itemCount:0},showCart:o=!0,showFavorites:s=!0,showLogin:l=!0,searchResultItems:d=[],searchViewAllLabel:f,onSearchClick:p,onSearchChange:m,onSearchSubmit:h,onSearchResultClick:g,onSearchViewAllClick:_,onCartClick:v,onLoginClick:y,onAccountClick:b,onFavoritesClick:x,onCountrySelect:S})=>{let[C,w]=(0,c.useState)(!1),[T,E]=(0,c.useState)(``),D=(0,c.useRef)(!1),k=a.hasCart&&a.itemCount>0,A=e??t??[],j=i?.loggedIn??r.loggedIn??!1,M=T.trim(),N=d.length>0;return(0,c.useEffect)(()=>{if(!D.current)return;let e=window.setTimeout(()=>{m?.({query:T})},Gc);return()=>{window.clearTimeout(e)}},[m,T]),(0,u.jsxs)(`div`,{className:`flex items-center justify-end-safe space-x-3`,children:[(0,u.jsxs)(`div`,{className:`relative flex items-center gap-2`,children:[(0,u.jsx)(`div`,{className:[`overflow-hidden transition-all duration-200 ease-out`,C?`w-56 opacity-100`:`w-0 opacity-0`].join(` `),"aria-hidden":!C,children:C?(0,u.jsx)(Ho,{id:`top-nav-search`,value:T,placeholder:`Search`,autoComplete:`off`,autoFocus:!0,onChange:e=>{D.current=!0,E(e.target.value)},onBlur:()=>{T.trim()||w(!1)},onKeyDown:e=>{if(e.key===`Enter`&&M){h?.({query:M});return}e.key===`Escape`&&(E(``),w(!1))}}):null}),(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`magnifying-glass`,iconAlt:`Search`,variant:`ghost`,onClick:()=>{if(!C){w(!0),p?.();return}if(M){h?.({query:M});return}w(!1)},"aria-expanded":C,"aria-controls":`top-nav-search`}),C&&N?(0,u.jsx)(`div`,{className:`absolute top-full right-0 z-30 mt-2`,children:(0,u.jsx)(Wc,{id:`top-nav-search-results`,items:d,viewAllLabel:f,onResultClick:e=>{g?.(e),w(!1)},onViewAllClick:()=>{_?.({query:M}),w(!1)}})}):null]}),(0,u.jsx)(`div`,{className:`h-4 border-l my-6`}),(0,u.jsx)(`div`,{className:`my-3`,children:(0,u.jsx)(Io,{countries:A,selectedCountry:n,onCountrySelect:S})}),(0,u.jsxs)(`div`,{className:`my-2 flex items-center space-x-1`,children:[o?(0,u.jsxs)(`div`,{className:`relative`,children:[(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`cart-shopping`,iconAlt:`Cart`,intent:k?`accent`:`primary`,variant:`ghost`,onClick:v}),k?(0,u.jsx)(`span`,{className:`absolute -top-0 -right-0 flex h-4 min-w-4 items-center justify-center rounded-full bg-accent px-1 text-[10px] leading-none text-white`,children:a.itemCount}):null]}):null,s?(0,u.jsx)(O,{iconType:`fa-regular`,iconName:`heart`,iconAlt:`Favorites`,variant:`ghost`,onClick:x}):null]}),l?(0,u.jsx)(`div`,{children:j?(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`user`,iconAlt:``,variant:`ghost`,intent:`primary`,"aria-label":`Open account menu`,"aria-haspopup":`dialog`,onClick:b}):(0,u.jsx)(O,{className:`my-3 rounded-md p-4`,size:`sm`,intent:`accent`,variant:`solid`,label:r.label,onClick:y})}):null]})},qc=750,Jc=`
555
+ }`;function yr(){var e=En,t=Dn,n=Z.cssPrefix,r=Z.replacementClass,i=vr;if(n!==e||r!==t){var a=RegExp(`\\.${e}\\-`,`g`),o=RegExp(`\\--${e}\\-`,`g`),s=RegExp(`\\.${t}`,`g`);i=i.replace(a,`.${n}-`).replace(o,`--${n}-`).replace(s,`.${r}`)}return i}var br=!1;function xr(){Z.autoAddCss&&!br&&(sr(yr()),br=!0)}var Sr={mixout:function(){return{dom:{css:yr,insertCss:xr}}},hooks:function(){return{beforeDOMElementCreation:function(){xr()},beforeI2svg:function(){xr()}}}},Cr=it||{};Cr[wn]||(Cr[wn]={}),Cr[wn].styles||(Cr[wn].styles={}),Cr[wn].hooks||(Cr[wn].hooks={}),Cr[wn].shims||(Cr[wn].shims=[]);var wr=Cr[wn],Tr=[],Er=function(){X.removeEventListener(`DOMContentLoaded`,Er),Dr=1,Tr.map(function(e){return e()})},Dr=!1;st&&(Dr=(X.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(X.readyState),Dr||X.addEventListener(`DOMContentLoaded`,Er));function Or(e){st&&(Dr?setTimeout(e,0):Tr.push(e))}function kr(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,a=i===void 0?[]:i;return typeof e==`string`?fr(e):`<${t} ${pr(r)}>${a.map(kr).join(``)}</${t}>`}function Ar(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var jr=function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}},Mr=function(e,t,n,r){var i=Object.keys(e),a=i.length,o=r===void 0?t:jr(t,r),s,c,l;for(n===void 0?(s=1,l=e[i[0]]):(s=0,l=n);s<a;s++)c=i[s],l=o(l,e[c],c,e);return l};function Nr(e){return Ke(e).length===1?e.codePointAt(0).toString(16):null}function Pr(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Fr(e,t){var n=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).skipHooks,r=n===void 0?!1:n,i=Pr(t);typeof wr.hooks.addPack==`function`&&!r?wr.hooks.addPack(e,Pr(t)):wr.styles[e]=Y(Y({},wr.styles[e]||{}),i),e===`fas`&&Fr(`fa`,t)}var Ir=wr.styles,Lr=wr.shims,Rr=Object.keys(Wn),zr=Rr.reduce(function(e,t){return e[t]=Object.keys(Wn[t]),e},{}),Br=null,Vr={},Hr={},Ur={},Wr={},Gr={};function Kr(e){return~Zn.indexOf(e)}function qr(e,t){var n=t.split(`-`),r=n[0],i=n.slice(1).join(`-`);return r===e&&i!==``&&!Kr(i)?i:null}var Jr=function(){var e=function(e){return Mr(Ir,function(t,n,r){return t[r]=Mr(n,e,{}),t},{})};Vr=e(function(e,t,n){return t[3]&&(e[t[3]]=n),t[2]&&t[2].filter(function(e){return typeof e==`number`}).forEach(function(t){e[t.toString(16)]=n}),e}),Hr=e(function(e,t,n){return e[n]=n,t[2]&&t[2].filter(function(e){return typeof e==`string`}).forEach(function(t){e[t]=n}),e}),Gr=e(function(e,t,n){var r=t[2];return e[n]=n,r.forEach(function(t){e[t]=n}),e});var t=`far`in Ir||Z.autoFetchSvg,n=Mr(Lr,function(e,n){var r=n[0],i=n[1],a=n[2];return i===`far`&&!t&&(i=`fas`),typeof r==`string`&&(e.names[r]={prefix:i,iconName:a}),typeof r==`number`&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e},{names:{},unicodes:{}});Ur=n.names,Wr=n.unicodes,Br=ri(Z.styleDefault,{family:Z.familyDefault})};ir(function(e){Br=ri(e.styleDefault,{family:Z.familyDefault})}),Jr();function Yr(e,t){return(Vr[e]||{})[t]}function Xr(e,t){return(Hr[e]||{})[t]}function Zr(e,t){return(Gr[e]||{})[t]}function Qr(e){return Ur[e]||{prefix:null,iconName:null}}function $r(e){var t=Wr[e],n=Yr(`fas`,e);return t||(n?{prefix:`fas`,iconName:n}:null)||{prefix:null,iconName:null}}function ei(){return Br}var ti=function(){return{prefix:null,iconName:null,rest:[]}};function ni(e){var t=ht,n=Rr.reduce(function(e,t){return e[t]=`${Z.cssPrefix}-${t}`,e},{});return $t.forEach(function(r){(e.includes(n[r])||e.some(function(e){return zr[r].includes(e)}))&&(t=r)}),t}function ri(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).family,n=t===void 0?ht:t,r=Bn[n][e];if(n===gt&&!e)return`fad`;var i=Hn[n][e]||Hn[n][r],a=e in wr.styles?e:null;return i||a||null}function ii(e){var t=[],n=null;return e.forEach(function(e){var r=qr(Z.cssPrefix,e);r?n=r:e&&t.push(e)}),{iconName:n,rest:t}}function ai(e){return e.sort().filter(function(e,t,n){return n.indexOf(e)===t})}var oi=vn.concat(an);function si(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).skipLookups,n=t===void 0?!1:t,r=null,i=ai(e.filter(function(e){return oi.includes(e)})),a=ai(e.filter(function(e){return!oi.includes(e)})),o=Ge(i.filter(function(e){return r=e,!mt.includes(e)}),1)[0],s=o===void 0?null:o,c=ni(i),l=Y(Y({},ii(a)),{},{prefix:ri(s,{family:c})});return Y(Y(Y({},l),di({values:e,family:c,styles:Ir,config:Z,canonical:l,givenPrefix:r})),ci(n,r,l))}function ci(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var a=t===`fa`?Qr(i):{},o=Zr(r,i);return i=a.iconName||o||i,r=a.prefix||r,r===`far`&&!Ir.far&&Ir.fas&&!Z.autoFetchSvg&&(r=`fas`),{prefix:r,iconName:i}}var li=$t.filter(function(e){return e!==ht||e!==gt}),ui=Object.keys(_n).filter(function(e){return e!==ht}).map(function(e){return Object.keys(_n[e])}).flat();function di(e){var t=e.values,n=e.family,r=e.canonical,i=e.givenPrefix,a=i===void 0?``:i,o=e.styles,s=o===void 0?{}:o,c=e.config,l=c===void 0?{}:c,u=n===gt,d=t.includes(`fa-duotone`)||t.includes(`fad`),f=l.familyDefault===`duotone`,p=r.prefix===`fad`||r.prefix===`fa-duotone`;return!u&&(d||f||p)&&(r.prefix=`fad`),(t.includes(`fa-brands`)||t.includes(`fab`))&&(r.prefix=`fab`),!r.prefix&&li.includes(n)&&(Object.keys(s).find(function(e){return ui.includes(e)})||l.autoFetchSvg)&&(r.prefix=nn.get(n).defaultShortPrefixId,r.iconName=Zr(r.prefix,r.iconName)||r.iconName),(r.prefix===`fa`||a===`fa`)&&(r.prefix=ei()||`fas`),r}var fi=function(){function e(){Ie(this,e),this.definitions={}}return Re(e,[{key:`add`,value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(function(t){e.definitions[t]=Y(Y({},e.definitions[t]||{}),i[t]),Fr(t,i[t]);var n=Wn[ht][t];n&&Fr(n,i[t]),Jr()})}},{key:`reset`,value:function(){this.definitions={}}},{key:`_pullDefinitions`,value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(function(t){var r=n[t],i=r.prefix,a=r.iconName,o=r.icon,s=o[2];e[i]||(e[i]={}),s.length>0&&s.forEach(function(t){typeof t==`string`&&(e[i][t]=o)}),e[i][a]=o}),e}}])}(),pi=[],mi={},hi={},gi=Object.keys(hi);function _i(e,t){var n=t.mixoutsTo;return pi=e,mi={},Object.keys(hi).forEach(function(e){gi.indexOf(e)===-1&&delete hi[e]}),pi.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){typeof t[e]==`function`&&(n[e]=t[e]),Ye(t[e])===`object`&&Object.keys(t[e]).forEach(function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]})}),e.hooks){var r=e.hooks();Object.keys(r).forEach(function(e){mi[e]||(mi[e]=[]),mi[e].push(r[e])})}e.provides&&e.provides(hi)}),n}function vi(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(mi[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(r))}),t}function yi(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(mi[e]||[]).forEach(function(e){e.apply(null,n)})}function bi(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return hi[e]?hi[e].apply(null,t):void 0}function xi(e){e.prefix===`fa`&&(e.prefix=`fas`);var t=e.iconName,n=e.prefix||ei();if(t)return t=Zr(n,t)||t,Ar(Si.definitions,n,t)||Ar(wr.styles,n,t)}var Si=new fi,Ci={noAuto:function(){Z.autoReplaceSvg=!1,Z.observeMutations=!1,yi(`noAuto`)},config:Z,dom:{i2svg:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return st?(yi(`beforeI2svg`,e),bi(`pseudoElements2svg`,e),bi(`i2svg`,e)):Promise.reject(Error(`Operation requires a DOM of some kind.`))},watch:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot;Z.autoReplaceSvg===!1&&(Z.autoReplaceSvg=!0),Z.observeMutations=!0,Or(function(){wi({autoReplaceSvgRoot:t}),yi(`watch`,e)})}},parse:{icon:function(e){if(e===null)return null;if(Ye(e)===`object`&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Zr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){var t=e[1].indexOf(`fa-`)===0?e[1].slice(3):e[1],n=ri(e[0]);return{prefix:n,iconName:Zr(n,t)||t}}if(typeof e==`string`&&(e.indexOf(`${Z.cssPrefix}-`)>-1||e.match(Kn))){var r=si(e.split(` `),{skipLookups:!0});return{prefix:r.prefix||ei(),iconName:Zr(r.prefix,r.iconName)||r.iconName}}if(typeof e==`string`){var i=ei();return{prefix:i,iconName:Zr(i,e)||e}}}},library:Si,findIconDefinition:xi,toHtml:kr},wi=function(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).autoReplaceSvgRoot,t=e===void 0?X:e;(Object.keys(wr.styles).length>0||Z.autoFetchSvg)&&st&&Z.autoReplaceSvg&&Ci.dom.i2svg({node:t})};function Ti(e,t){return Object.defineProperty(e,`abstract`,{get:t}),Object.defineProperty(e,`html`,{get:function(){return e.abstract.map(function(e){return kr(e)})}}),Object.defineProperty(e,`node`,{get:function(){if(st){var t=X.createElement(`div`);return t.innerHTML=e.html,t.children}}}),e}function Ei(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(hr(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=mr(Y(Y({},a),{},{"transform-origin":`${s.x+o.x/16}em ${s.y+o.y/16}em`}))}return[{tag:`svg`,attributes:i,children:t}]}function Di(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=a===!0?`${t}-${Z.cssPrefix}-${n}`:a;return[{tag:`svg`,attributes:{style:`display: none;`},children:[{tag:`symbol`,attributes:Y(Y({},i),{},{id:o}),children:r}]}]}function Oi(e){return[`aria-label`,`aria-labelledby`,`title`,`role`].some(function(t){return t in e})}function ki(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,c=e.maskId,l=e.extra,u=e.watchable,d=u===void 0?!1:u,f=r.found?r:n,p=f.width,m=f.height,h=[Z.replacementClass,a?`${Z.cssPrefix}-${a}`:``].filter(function(e){return l.classes.indexOf(e)===-1}).filter(function(e){return e!==``||!!e}).concat(l.classes).join(` `),g={children:[],attributes:Y(Y({},l.attributes),{},{"data-prefix":i,"data-icon":a,class:h,role:l.attributes.role||`img`,viewBox:`0 0 ${p} ${m}`})};!Oi(l.attributes)&&!l.attributes[`aria-hidden`]&&(g.attributes[`aria-hidden`]=`true`),d&&(g.attributes[On]=``);var _=Y(Y({},g),{},{prefix:i,iconName:a,main:n,mask:r,maskId:c,transform:o,symbol:s,styles:Y({},l.styles)}),v=r.found&&n.found?bi(`generateAbstractMask`,_)||{children:[],attributes:{}}:bi(`generateAbstractIcon`,_)||{children:[],attributes:{}},y=v.children,b=v.attributes;return _.children=y,_.attributes=b,s?Di(_):Ei(_)}function Ai(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.extra,o=e.watchable,s=o===void 0?!1:o,c=Y(Y({},a.attributes),{},{class:a.classes.join(` `)});s&&(c[On]=``);var l=Y({},a.styles);hr(i)&&(l.transform=_r({transform:i,startCentered:!0,width:n,height:r}),l[`-webkit-transform`]=l.transform);var u=mr(l);u.length>0&&(c.style=u);var d=[];return d.push({tag:`span`,attributes:c,children:[t]}),d}function ji(e){var t=e.content,n=e.extra,r=Y(Y({},n.attributes),{},{class:n.classes.join(` `)}),i=mr(n.styles);i.length>0&&(r.style=i);var a=[];return a.push({tag:`span`,attributes:r,children:[t]}),a}var Mi=wr.styles;function Ni(e){var t=e[0],n=e[1],r=Ge(e.slice(4),1)[0],i=null;return i=Array.isArray(r)?{tag:`g`,attributes:{class:`${Z.cssPrefix}-${Xn.GROUP}`},children:[{tag:`path`,attributes:{class:`${Z.cssPrefix}-${Xn.SECONDARY}`,fill:`currentColor`,d:r[0]}},{tag:`path`,attributes:{class:`${Z.cssPrefix}-${Xn.PRIMARY}`,fill:`currentColor`,d:r[1]}}]}:{tag:`path`,attributes:{fill:`currentColor`,d:r}},{found:!0,width:t,height:n,icon:i}}var Pi={found:!1,width:512,height:512};function Fi(e,t){!Ln&&!Z.showMissingIcons&&e&&console.error(`Icon with name "${e}" and prefix "${t}" is missing.`)}function Ii(e,t){var n=t;return t===`fa`&&Z.styleDefault!==null&&(t=ei()),new Promise(function(r,i){if(n===`fa`){var a=Qr(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Mi[t]&&Mi[t][e]){var o=Mi[t][e];return r(Ni(o))}Fi(e,t),r(Y(Y({},Pi),{},{icon:Z.showMissingIcons&&e&&bi(`missingIconAbstract`)||{}}))})}var Li=function(){},Ri=Z.measurePerformance&&ot&&ot.mark&&ot.measure?ot:{mark:Li,measure:Li},zi=`FA "7.2.0"`,Bi=function(e){return Ri.mark(`${zi} ${e} begins`),function(){return Vi(e)}},Vi=function(e){Ri.mark(`${zi} ${e} ends`),Ri.measure(`${zi} ${e}`,`${zi} ${e} begins`,`${zi} ${e} ends`)},Hi={begin:Bi,end:Vi},Ui=function(){};function Wi(e){return typeof(e.getAttribute?e.getAttribute(On):null)==`string`}function Gi(e){var t=e.getAttribute?e.getAttribute(jn):null,n=e.getAttribute?e.getAttribute(Mn):null;return t&&n}function Ki(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Z.replacementClass)}function qi(){return Z.autoReplaceSvg===!0?Qi.replace:Qi[Z.autoReplaceSvg]||Qi.replace}function Ji(e){return X.createElementNS(`http://www.w3.org/2000/svg`,e)}function Yi(e){return X.createElement(e)}function Xi(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).ceFn,n=t===void 0?e.tag===`svg`?Ji:Yi:t;if(typeof e==`string`)return X.createTextNode(e);var r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){r.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){r.appendChild(Xi(e,{ceFn:n}))}),r}function Zi(e){var t=` ${e.outerHTML} `;return t=`${t}Font Awesome fontawesome.com `,t}var Qi={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Xi(e),t)}),t.getAttribute(On)===null&&Z.keepOriginalSource){var n=X.createComment(Zi(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~dr(t).indexOf(Z.replacementClass))return Qi.replace(e);var r=RegExp(`${Z.cssPrefix}-.*`);if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(` `).reduce(function(e,t){return t===Z.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(` `),i.toNode.length===0?t.removeAttribute(`class`):t.setAttribute(`class`,i.toNode.join(` `))}var a=n.map(function(e){return kr(e)}).join(`
556
+ `);t.setAttribute(On,``),t.innerHTML=a}};function $i(e){e()}function ea(e,t){var n=typeof t==`function`?t:Ui;if(e.length===0)n();else{var r=$i;Z.mutateApproach===Pn&&(r=it.requestAnimationFrame||$i),r(function(){var t=qi(),r=Hi.begin(`mutate`);e.map(t),r(),n()})}}var ta=!1;function na(){ta=!0}function ra(){ta=!1}var ia=null;function aa(e){if(at&&Z.observeMutations){var t=e.treeCallback,n=t===void 0?Ui:t,r=e.nodeCallback,i=r===void 0?Ui:r,a=e.pseudoElementsCallback,o=a===void 0?Ui:a,s=e.observeMutationsRoot,c=s===void 0?X:s;ia=new at(function(e){if(!ta){var t=ei();ur(e).forEach(function(e){if(e.type===`childList`&&e.addedNodes.length>0&&!Wi(e.addedNodes[0])&&(Z.searchPseudoElements&&o(e.target),n(e.target)),e.type===`attributes`&&e.target.parentNode&&Z.searchPseudoElements&&o([e.target],!0),e.type===`attributes`&&Wi(e.target)&&~Yn.indexOf(e.attributeName))if(e.attributeName===`class`&&Gi(e.target)){var r=si(dr(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(jn,a||t),s&&e.target.setAttribute(Mn,s)}else Ki(e.target)&&i(e.target)})}}),st&&ia.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function oa(){ia&&ia.disconnect()}function sa(e){var t=e.getAttribute(`style`),n=[];return t&&(n=t.split(`;`).reduce(function(e,t){var n=t.split(`:`),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(`:`).trim()),e},{})),n}function ca(e){var t=e.getAttribute(`data-prefix`),n=e.getAttribute(`data-icon`),r=e.innerText===void 0?``:e.innerText.trim(),i=si(dr(e));return i.prefix||=ei(),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix?i:(i.prefix&&r.length>0&&(i.iconName=Xr(i.prefix,e.innerText)||Yr(i.prefix,Nr(e.innerText))),!i.iconName&&Z.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data),i)}function la(e){return ur(e.attributes).reduce(function(e,t){return e.name!==`class`&&e.name!==`style`&&(e[t.name]=t.value),e},{})}function ua(){return{iconName:null,prefix:null,transform:or,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function da(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=ca(e),r=n.iconName,i=n.prefix,a=n.rest,o=la(e),s=vi(`parseNodeAttributes`,{},e);return Y({iconName:r,prefix:i,transform:or,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:t.styleParser?sa(e):[],attributes:o}},s)}var fa=wr.styles;function pa(e){var t=Z.autoReplaceSvg===`nest`?da(e,{styleParser:!1}):da(e);return~t.extra.classes.indexOf(qn)?bi(`generateLayersText`,e,t):bi(`generateSvgReplacementMutation`,e,t)}function ma(){return[].concat(Ke(an),Ke(vn))}function ha(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!st)return Promise.resolve();var n=X.documentElement.classList,r=function(e){return n.add(`${Nn}-${e}`)},i=function(e){return n.remove(`${Nn}-${e}`)},a=Z.autoFetchSvg?ma():mt.concat(Object.keys(fa));a.includes(`fa`)||a.push(`fa`);var o=[`.${qn}:not([${On}])`].concat(a.map(function(e){return`.${e}:not([${On}])`})).join(`, `);if(o.length===0)return Promise.resolve();var s=[];try{s=ur(e.querySelectorAll(o))}catch{}if(s.length>0)r(`pending`),i(`complete`);else return Promise.resolve();var c=Hi.begin(`onTree`),l=s.reduce(function(e,t){try{var n=pa(t);n&&e.push(n)}catch(e){Ln||e.name===`MissingIcon`&&console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(l).then(function(n){ea(n,function(){r(`active`),r(`complete`),i(`pending`),typeof t==`function`&&t(),c(),e()})}).catch(function(e){c(),n(e)})})}function ga(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;pa(e).then(function(e){e&&ea([e],t)})}function _a(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:xi(t||{}),i=n.mask;return i&&=(i||{}).icon?i:xi(i||{}),e(r,Y(Y({},n),{},{mask:i}))}}var va=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?or:n,i=t.symbol,a=i===void 0?!1:i,o=t.mask,s=o===void 0?null:o,c=t.maskId,l=c===void 0?null:c,u=t.classes,d=u===void 0?[]:u,f=t.attributes,p=f===void 0?{}:f,m=t.styles,h=m===void 0?{}:m;if(e){var g=e.prefix,_=e.iconName,v=e.icon;return Ti(Y({type:`icon`},e),function(){return yi(`beforeDOMElementCreation`,{iconDefinition:e,params:t}),ki({icons:{main:Ni(v),mask:s?Ni(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:_,transform:Y(Y({},or),r),symbol:a,maskId:l,extra:{attributes:p,styles:h,classes:d}})})}},ya={mixout:function(){return{icon:_a(va)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=ha,e.nodeCallback=ga,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=t===void 0?X:t,r=e.callback;return ha(n,r===void 0?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.prefix,i=t.transform,a=t.symbol,o=t.mask,s=t.maskId,c=t.extra;return new Promise(function(t,l){Promise.all([Ii(n,r),o.iconName?Ii(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(o){var l=Ge(o,2),u=l[0],d=l[1];t([e,ki({icons:{main:u,mask:d},prefix:r,iconName:n,transform:i,symbol:a,maskId:s,extra:c,watchable:!0})])}).catch(l)})},e.generateAbstractIcon=function(e){var t=e.children,n=e.attributes,r=e.main,i=e.transform,a=e.styles,o=mr(a);o.length>0&&(n.style=o);var s;return hr(i)&&(s=bi(`generateAbstractTransformGrouping`,{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},ba={mixout:function(){return{layer:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.classes,r=n===void 0?[]:n;return Ti({type:`layer`},function(){yi(`beforeDOMElementCreation`,{assembler:e,params:t});var n=[];return e(function(e){Array.isArray(e)?e.map(function(e){n=n.concat(e.abstract)}):n=n.concat(e.abstract)}),[{tag:`span`,attributes:{class:[`${Z.cssPrefix}-layers`].concat(Ke(r)).join(` `)},children:n}]})}}}},xa={mixout:function(){return{counter:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.title,r=n===void 0?null:n,i=t.classes,a=i===void 0?[]:i,o=t.attributes,s=o===void 0?{}:o,c=t.styles,l=c===void 0?{}:c;return Ti({type:`counter`,content:e},function(){return yi(`beforeDOMElementCreation`,{content:e,params:t}),ji({content:e.toString(),title:r,extra:{attributes:s,styles:l,classes:[`${Z.cssPrefix}-layers-counter`].concat(Ke(a))}})})}}}},Sa={mixout:function(){return{text:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?or:n,i=t.classes,a=i===void 0?[]:i,o=t.attributes,s=o===void 0?{}:o,c=t.styles,l=c===void 0?{}:c;return Ti({type:`text`,content:e},function(){return yi(`beforeDOMElementCreation`,{content:e,params:t}),Ai({content:e,transform:Y(Y({},or),r),extra:{attributes:s,styles:l,classes:[`${Z.cssPrefix}-layers-text`].concat(Ke(a))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.transform,r=t.extra,i=null,a=null;if(ct){var o=parseInt(getComputedStyle(e).fontSize,10),s=e.getBoundingClientRect();i=s.width/o,a=s.height/o}return Promise.resolve([e,Ai({content:e.innerHTML,width:i,height:a,transform:n,extra:r,watchable:!0})])}}},Ca=RegExp(`"`,`ug`),wa=[1105920,1112319],Ta=Y(Y(Y(Y({},{FontAwesome:{normal:`fas`,400:`fas`}}),tn),Cn),ln),Ea=Object.keys(Ta).reduce(function(e,t){return e[t.toLowerCase()]=Ta[t],e},{}),Da=Object.keys(Ea).reduce(function(e,t){var n=Ea[t];return e[t]=n[900]||Ke(Object.entries(n))[0][1],e},{});function Oa(e){return Nr(Ke(e.replace(Ca,``))[0]||``)}function ka(e){var t=e.getPropertyValue(`font-feature-settings`).includes(`ss01`),n=e.getPropertyValue(`content`).replace(Ca,``),r=n.codePointAt(0),i=r>=wa[0]&&r<=wa[1],a=n.length===2?n[0]===n[1]:!1;return i||a||t}function Aa(e,t){var n=e.replace(/^['"]|['"]$/g,``).toLowerCase(),r=parseInt(t),i=isNaN(r)?`normal`:r;return(Ea[n]||{})[i]||Da[n]}function ja(e,t){var n=`${An}${t.replace(`:`,`-`)}`;return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var a=ur(e.children).filter(function(e){return e.getAttribute(kn)===t})[0],o=it.getComputedStyle(e,t),s=o.getPropertyValue(`font-family`),c=s.match(Jn),l=o.getPropertyValue(`font-weight`),u=o.getPropertyValue(`content`);if(a&&!c)return e.removeChild(a),r();if(c&&u!==`none`&&u!==``){var d=o.getPropertyValue(`content`),f=Aa(s,l),p=Oa(d),m=c[0].startsWith(`FontAwesome`),h=ka(o),g=Yr(f,p),_=g;if(m){var v=$r(p);v.iconName&&v.prefix&&(g=v.iconName,f=v.prefix)}if(g&&!h&&(!a||a.getAttribute(jn)!==f||a.getAttribute(Mn)!==_)){e.setAttribute(n,_),a&&e.removeChild(a);var y=ua(),b=y.extra;b.attributes[kn]=t,Ii(g,f).then(function(i){var a=ki(Y(Y({},y),{},{icons:{main:i,mask:ti()},prefix:f,iconName:_,extra:b,watchable:!0})),o=X.createElementNS(`http://www.w3.org/2000/svg`,`svg`);t===`::before`?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=a.map(function(e){return kr(e)}).join(`
557
+ `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function Ma(e){return Promise.all([ja(e,`::before`),ja(e,`::after`)])}function Na(e){return e.parentNode!==document.head&&!~Fn.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(kn)&&(!e.parentNode||e.parentNode.tagName!==`svg`)}var Pa=function(e){return!!e&&In.some(function(t){return e.includes(t)})},Fa=function(e){if(!e)return[];var t=new Set,n=e.split(/,(?![^()]*\))/).map(function(e){return e.trim()});n=n.flatMap(function(e){return e.includes(`(`)?e:e.split(`,`).map(function(e){return e.trim()})});var r=ze(n),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(Pa(a)){var o=In.reduce(function(e,t){return e.replace(t,``)},a);o!==``&&o!==`*`&&t.add(o)}}}catch(e){r.e(e)}finally{r.f()}return t};function Ia(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(st){var n;if(t)n=e;else if(Z.searchPseudoElementsFullScan)n=e.querySelectorAll(`*`);else{var r=new Set,i=ze(document.styleSheets),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;try{var s=ze(o.cssRules),c;try{for(s.s();!(c=s.n()).done;){var l=c.value,u=ze(Fa(l.selectorText)),d;try{for(u.s();!(d=u.n()).done;){var f=d.value;r.add(f)}}catch(e){u.e(e)}finally{u.f()}}}catch(e){s.e(e)}finally{s.f()}}catch(e){Z.searchPseudoElementsWarnings&&console.warn(`Font Awesome: cannot parse stylesheet: ${o.href} (${e.message})
558
+ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`)}}}catch(e){i.e(e)}finally{i.f()}if(!r.size)return;var p=Array.from(r).join(`, `);try{n=e.querySelectorAll(p)}catch{}}return new Promise(function(e,t){var r=ur(n).filter(Na).map(Ma),i=Hi.begin(`searchPseudoElements`);na(),Promise.all(r).then(function(){i(),ra(),e()}).catch(function(){i(),ra(),t()})})}}var La={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Ia,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=t===void 0?X:t;Z.searchPseudoElements&&Ia(n)}}},Ra=!1,za={mixout:function(){return{dom:{unwatch:function(){na(),Ra=!0}}}},hooks:function(){return{bootstrap:function(){aa(vi(`mutationObserverCallbacks`,{}))},noAuto:function(){oa()},watch:function(e){var t=e.observeMutationsRoot;Ra?ra():aa(vi(`mutationObserverCallbacks`,{observeMutationsRoot:t}))}}}},Ba=function(e){return e.toLowerCase().split(` `).reduce(function(e,t){var n=t.toLowerCase().split(`-`),r=n[0],i=n.slice(1).join(`-`);if(r&&i===`h`)return e.flipX=!0,e;if(r&&i===`v`)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case`grow`:e.size+=i;break;case`shrink`:e.size-=i;break;case`left`:e.x-=i;break;case`right`:e.x+=i;break;case`up`:e.y-=i;break;case`down`:e.y+=i;break;case`rotate`:e.rotate+=i;break}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Va={mixout:function(){return{parse:{transform:function(e){return Ba(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-transform`);return n&&(e.transform=Ba(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={outer:{transform:`translate(${r/2} 256)`},inner:{transform:`${`translate(${n.x*32}, ${n.y*32}) `} ${`scale(${n.size/16*(n.flipX?-1:1)}, ${n.size/16*(n.flipY?-1:1)}) `} ${`rotate(${n.rotate} 0 0)`}`},path:{transform:`translate(${i/2*-1} -256)`}};return{tag:`g`,attributes:Y({},a.outer),children:[{tag:`g`,attributes:Y({},a.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Y(Y({},t.icon.attributes),a.path)}]}]}}}},Ha={x:0,y:0,width:`100%`,height:`100%`};function Ua(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill=`black`),e}function Wa(e){return e.tag===`g`?e.children:[e]}_i([Sr,ya,ba,xa,Sa,La,za,Va,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-mask`),r=n?si(n.split(` `).map(function(e){return e.trim()})):ti();return r.prefix||=ei(),e.mask=r,e.maskId=t.getAttribute(`data-fa-mask-id`),e}}},provides:function(e){e.generateAbstractMask=function(e){var t=e.children,n=e.attributes,r=e.main,i=e.mask,a=e.maskId,o=e.transform,s=r.width,c=r.icon,l=i.width,u=i.icon,d=gr({transform:o,containerWidth:l,iconWidth:s}),f={tag:`rect`,attributes:Y(Y({},Ha),{},{fill:`white`})},p=c.children?{children:c.children.map(Ua)}:{},m={tag:`g`,attributes:Y({},d.inner),children:[Ua(Y({tag:c.tag,attributes:Y(Y({},c.attributes),d.path)},p))]},h={tag:`g`,attributes:Y({},d.outer),children:[m]},g=`mask-${a||lr()}`,_=`clip-${a||lr()}`,v={tag:`mask`,attributes:Y(Y({},Ha),{},{id:g,maskUnits:`userSpaceOnUse`,maskContentUnits:`userSpaceOnUse`}),children:[f,h]},y={tag:`defs`,children:[{tag:`clipPath`,attributes:{id:_},children:Wa(u)},v]};return t.push(y,{tag:`rect`,attributes:Y({fill:`currentColor`,"clip-path":`url(#${_})`,mask:`url(#${g})`},Ha)}),{children:t,attributes:n}}}},{provides:function(e){var t=!1;it.matchMedia&&(t=it.matchMedia(`(prefers-reduced-motion: reduce)`).matches),e.missingIconAbstract=function(){var e=[],n={fill:`currentColor`},r={attributeType:`XML`,repeatCount:`indefinite`,dur:`2s`};e.push({tag:`path`,attributes:Y(Y({},n),{},{d:`M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z`})});var i=Y(Y({},r),{},{attributeName:`opacity`}),a={tag:`circle`,attributes:Y(Y({},n),{},{cx:`256`,cy:`364`,r:`28`}),children:[]};return t||a.children.push({tag:`animate`,attributes:Y(Y({},r),{},{attributeName:`r`,values:`28;14;28;28;14;28;`})},{tag:`animate`,attributes:Y(Y({},i),{},{values:`1;0;1;1;0;1;`})}),e.push(a),e.push({tag:`path`,attributes:Y(Y({},n),{},{opacity:`1`,d:`M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z`}),children:t?[]:[{tag:`animate`,attributes:Y(Y({},i),{},{values:`1;0;0;0;0;1;`})}]}),t||e.push({tag:`path`,attributes:Y(Y({},n),{},{opacity:`0`,d:`M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z`}),children:[{tag:`animate`,attributes:Y(Y({},i),{},{values:`0;0;1;1;0;0;`})}]}),{tag:`g`,attributes:{class:`missing`},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-symbol`);return e.symbol=n===null?!1:n===``?!0:n,e}}}}],{mixoutsTo:Ci}),Ci.noAuto;var Ga=Ci.config;Ci.library,Ci.dom;var Ka=Ci.parse;Ci.findIconDefinition,Ci.toHtml;var qa=Ci.icon;Ci.layer,Ci.text,Ci.counter;function Ja(e){return e-=0,e===e}function Ya(e){return Ja(e)?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():``),e.charAt(0).toLowerCase()+e.slice(1))}var Xa=(e,t)=>l.default.createElement(`stop`,{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function Za(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Qa=new Map,$a=1e3;function eo(e){if(Qa.has(e))return Qa.get(e);let t={},n=0,r=e.length;for(;n<r;){let i=e.indexOf(`;`,n),a=i===-1?r:i,o=e.slice(n,a).trim();if(o){let e=o.indexOf(`:`);if(e>0){let n=o.slice(0,e).trim(),r=o.slice(e+1).trim();if(n&&r){let e=Ya(n);t[e.startsWith(`webkit`)?Za(e):e]=r}}}n=a+1}if(Qa.size===$a){let e=Qa.keys().next().value;e&&Qa.delete(e)}return Qa.set(e,t),t}function to(e,t,n={}){if(typeof t==`string`)return t;let r=(t.children||[]).map(t=>{let r=t;return(`fill`in n||n.gradientFill)&&t.tag===`path`&&`fill`in t.attributes&&(r={...t,attributes:{...t.attributes,fill:void 0}}),to(e,r)}),i=t.attributes||{},a={};for(let[e,t]of Object.entries(i))switch(!0){case e===`class`:a.className=t;break;case e===`style`:a.style=eo(String(t));break;case e.startsWith(`aria-`):case e.startsWith(`data-`):a[e.toLowerCase()]=t;break;default:a[Ya(e)]=t}let{style:o,role:s,"aria-label":c,gradientFill:l,...u}=n;if(o&&(a.style=a.style?{...a.style,...o}:o),s&&(a.role=s),c&&(a[`aria-label`]=c,a[`aria-hidden`]=`false`),l){a.fill=`url(#${l.id})`;let{type:t,stops:n=[],...i}=l;r.unshift(e(t===`linear`?`linearGradient`:`radialGradient`,{...i,id:l.id},n.map(Xa)))}return e(t.tag,{...a,...u},...r)}var no=to.bind(null,l.default.createElement),ro=(e,t)=>{let n=(0,l.useId)();return e||(t?n:void 0)},io=class{constructor(e=`react-fontawesome`){this.enabled=!1;let t=!1;try{t=typeof process<`u`&&process.env.NODE_ENV===`development`}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}};typeof process<`u`&&process.env?.FA_VERSION;var ao=`searchPseudoElementsFullScan`in Ga&&typeof Ga.searchPseudoElementsFullScan==`boolean`?`7.0.0`:`6.0.0`,oo=Number.parseInt(ao)>=7,so=()=>oo,co=`fa`,lo={beat:`fa-beat`,fade:`fa-fade`,beatFade:`fa-beat-fade`,bounce:`fa-bounce`,shake:`fa-shake`,spin:`fa-spin`,spinPulse:`fa-spin-pulse`,spinReverse:`fa-spin-reverse`,pulse:`fa-pulse`},uo={left:`fa-pull-left`,right:`fa-pull-right`},fo={90:`fa-rotate-90`,180:`fa-rotate-180`,270:`fa-rotate-270`},po={"2xs":`fa-2xs`,xs:`fa-xs`,sm:`fa-sm`,lg:`fa-lg`,xl:`fa-xl`,"2xl":`fa-2xl`,"1x":`fa-1x`,"2x":`fa-2x`,"3x":`fa-3x`,"4x":`fa-4x`,"5x":`fa-5x`,"6x":`fa-6x`,"7x":`fa-7x`,"8x":`fa-8x`,"9x":`fa-9x`,"10x":`fa-10x`},mo={border:`fa-border`,fixedWidth:`fa-fw`,flip:`fa-flip`,flipHorizontal:`fa-flip-horizontal`,flipVertical:`fa-flip-vertical`,inverse:`fa-inverse`,rotateBy:`fa-rotate-by`,swapOpacity:`fa-swap-opacity`,widthAuto:`fa-width-auto`},ho={default:`fa-layers`};function go(e){let t=Ga.cssPrefix||Ga.familyPrefix||co;return t===co?e:e.replace(new RegExp(String.raw`(?<=^|\s)${co}-`,`g`),`${t}-`)}function _o(e){let{beat:t,fade:n,beatFade:r,bounce:i,shake:a,spin:o,spinPulse:s,spinReverse:c,pulse:l,fixedWidth:u,inverse:d,border:f,flip:p,size:m,rotation:h,pull:g,swapOpacity:_,rotateBy:v,widthAuto:y,className:b}=e,x=[];return b&&x.push(...b.split(` `)),t&&x.push(lo.beat),n&&x.push(lo.fade),r&&x.push(lo.beatFade),i&&x.push(lo.bounce),a&&x.push(lo.shake),o&&x.push(lo.spin),c&&x.push(lo.spinReverse),s&&x.push(lo.spinPulse),l&&x.push(lo.pulse),u&&x.push(mo.fixedWidth),d&&x.push(mo.inverse),f&&x.push(mo.border),p===!0&&x.push(mo.flip),(p===`horizontal`||p===`both`)&&x.push(mo.flipHorizontal),(p===`vertical`||p===`both`)&&x.push(mo.flipVertical),m!=null&&x.push(po[m]),h!=null&&h!==0&&x.push(fo[h]),g!=null&&x.push(uo[g]),_&&x.push(mo.swapOpacity),so()?(v&&x.push(mo.rotateBy),y&&x.push(mo.widthAuto),(Ga.cssPrefix||Ga.familyPrefix||co)===co?x:x.map(go)):x}var vo=e=>typeof e==`object`&&`icon`in e&&!!e.icon;function yo(e){if(e)return vo(e)?e:Ka.icon(e)}function bo(e){return Object.keys(e)}var xo=new io(`FontAwesomeIcon`),So={border:!1,className:``,mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:``,titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},Co=new Set(Object.keys(So)),wo=l.default.forwardRef((e,t)=>{let n={...So,...e},{icon:r,mask:i,symbol:a,title:o,titleId:s,maskId:c,transform:l}=n,u=ro(c,!!i),d=ro(s,!!o),f=yo(r);if(!f)return xo.error(`Icon lookup is undefined`,r),null;let p=_o(n),m=typeof l==`string`?Ka.transform(l):l,h=yo(i),g=qa(f,{...p.length>0&&{classes:p},...m&&{transform:m},...h&&{mask:h},symbol:a,title:o,titleId:d,maskId:u});if(!g)return xo.error(`Could not find icon`,f),null;let{abstract:_}=g,v={ref:t};for(let e of bo(n))Co.has(e)||(v[e]=n[e]);return no(_[0],v)});wo.displayName=`FontAwesomeIcon`,`${ho.default}${mo.fixedWidth}`;var To={prefix:`fas`,iconName:`heart`,icon:[512,512,[128153,128154,128155,128156,128420,129293,129294,129505,9829,10084,61578],`f004`,`M241 87.1l15 20.7 15-20.7C296 52.5 336.2 32 378.9 32 452.4 32 512 91.6 512 165.1l0 2.6c0 112.2-139.9 242.5-212.9 298.2-12.4 9.4-27.6 14.1-43.1 14.1s-30.8-4.6-43.1-14.1C139.9 410.2 0 279.9 0 167.7l0-2.6C0 91.6 59.6 32 133.1 32 175.8 32 216 52.5 241 87.1z`]},Eo={prefix:`fas`,iconName:`chevron-right`,icon:[320,512,[9002],`f054`,`M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z`]},Do={prefix:`fas`,iconName:`arrow-right`,icon:[512,512,[8594],`f061`,`M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z`]},Oo={prefix:`fas`,iconName:`chevron-left`,icon:[320,512,[9001],`f053`,`M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z`]},ko={prefix:`far`,iconName:`heart`,icon:[512,512,[128153,128154,128155,128156,128420,129293,129294,129505,9829,10084,61578],`f004`,`M378.9 80c-27.3 0-53 13.1-69 35.2l-34.4 47.6c-4.5 6.2-11.7 9.9-19.4 9.9s-14.9-3.7-19.4-9.9l-34.4-47.6c-16-22.1-41.7-35.2-69-35.2-47 0-85.1 38.1-85.1 85.1 0 49.9 32 98.4 68.1 142.3 41.1 50 91.4 94 125.9 120.3 3.2 2.4 7.9 4.2 14 4.2s10.8-1.8 14-4.2c34.5-26.3 84.8-70.4 125.9-120.3 36.2-43.9 68.1-92.4 68.1-142.3 0-47-38.1-85.1-85.1-85.1zM271 87.1c25-34.6 65.2-55.1 107.9-55.1 73.5 0 133.1 59.6 133.1 133.1 0 68.6-42.9 128.9-79.1 172.8-44.1 53.6-97.3 100.1-133.8 127.9-12.3 9.4-27.5 14.1-43.1 14.1s-30.8-4.7-43.1-14.1C176.4 438 123.2 391.5 79.1 338 42.9 294.1 0 233.7 0 165.1 0 91.6 59.6 32 133.1 32 175.8 32 216 52.5 241 87.1l15 20.7 15-20.7z`]},Ao=({id:e,item:t,absoluteIdx:n,isActive:r,showLabel:i,grow:a,isLoaded:o,isFav:s,showFavorites:l=!0,setActiveIndex:d,onLoaded:p,onToggleFav:m,onItemClick:h})=>{let g=()=>h?.(t);return c.default.useEffect(()=>{if(o||typeof window>`u`)return;let n=t.source;if(!n)return;let r=new window.Image;return r.decoding=`async`,r.loading=`eager`,r.onload=()=>p(e),r.onerror=()=>{},r.src=n,r.complete&&r.naturalWidth>0&&p(e),()=>{r.onload=null,r.onerror=null}},[e,o,p,t.source]),(0,u.jsx)(`section`,{className:`w-full md:min-w-0 md:transition-[flex-grow] md:duration-700 md:ease-in-out`,style:{flexGrow:a,flexBasis:0},children:(0,u.jsx)(`div`,{className:[`relative h-36 w-full cursor-pointer`,`md:min-w-0 md:h-175`].join(` `),onMouseEnter:()=>d(n),onFocus:()=>d(n),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),g())},tabIndex:0,role:`link`,"aria-label":t.label,onClick:g,children:(0,u.jsxs)(`div`,{className:`relative h-36 overflow-hidden rounded-md md:h-175`,children:[!o&&(0,u.jsx)(`div`,{className:`absolute inset-0 bg-black/10 animate-pulse`}),(0,u.jsx)(j,{src:t.source,alt:t.alt??t.label,className:[`h-36 w-full object-cover md:h-175`,`transition-opacity duration-500`,o?`opacity-100`:`opacity-60`].join(` `),loading:`lazy`,decoding:`async`,onLoad:()=>p(e),quality:0}),(0,u.jsx)(`div`,{className:[`absolute inset-0`,`bg-gradient-to-t from-black/60 via-black/10 to-transparent`,`transition-opacity duration-500`,r?`opacity-100`:`opacity-70`].join(` `)}),(0,u.jsx)(`div`,{className:`absolute bottom-3 left-3 right-14 md:right-3`,children:(0,u.jsxs)(`div`,{className:[`transition-opacity`,i?`opacity-100 duration-300 delay-200`:`opacity-0 duration-300 ease-in`].join(` `),children:[(0,u.jsx)(f,{variant:`body`,className:`text-secondary`,children:t.label}),t.description?(0,u.jsx)(`div`,{className:[`mt-2 max-h-16 overflow-hidden text-sm text-secondary/85`,`md:transition-all md:duration-500`,r?`md:max-h-24 md:opacity-100`:`md:mt-1 md:max-h-0 md:opacity-0`].join(` `),children:t.description}):null]})}),(0,u.jsx)(`div`,{className:`absolute right-3 bottom-3 flex gap-2`,children:(0,u.jsx)(O,{variant:`outline`,intent:`secondary`,"aria-label":`Open ${t.label}`,className:[r?`border-0!`:`border-2!`,`p-2! transition-transform duration-200 ease-out hover:scale-110`,`active:scale-100 origin-center`].join(` `),children:(0,u.jsx)(wo,{icon:Do,className:`-rotate-45 text-secondary w-4 h-4`})})}),l?(0,u.jsx)(`div`,{className:`absolute right-3 top-3 flex gap-2`,children:(0,u.jsx)(O,{variant:`link`,intent:`ghost`,"aria-label":s?`Unfavorite`:`Favorite`,className:`h-9 w-9 grid place-items-center`,onClick:e=>{e.stopPropagation(),m(t)},children:(0,u.jsx)(wo,{icon:s?To:ko,className:[`w-4 h-4 transition-transform duration-200 ease-out`,`hover:scale-125 active:scale-110 origin-center`,s?`text-accent`:`text-secondary`].join(` `)})})}):null]})})})},jo=({imageSrc:e,imageAlt:t,title:n,description:r,buttonLabel:i,ctaMode:a=`button`,cardStyle:o=`standard`,onCardClick:s,onCtaClick:c})=>{let l=o===`standard`,d=s&&a===`button`?`text`:a,p=()=>{c?.({title:n,description:r,buttonLabel:i})},m=l?(0,u.jsxs)(`div`,{className:`border border-borderTertiary rounded-lg w-full flex flex-col overflow-hidden bg-secondary`,children:[(0,u.jsx)(`div`,{className:`w-full h-44 md:h-60 overflow-hidden rounded-t-lg`,children:(0,u.jsx)(j,{src:e,alt:t??``,className:`w-full h-full object-cover`,quality:90})}),(0,u.jsxs)(`div`,{className:`flex flex-col grow justify-between px-4 md:px-6 pt-4 pb-4 md:pb-10 md:min-h-64 min-h-56`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-primary text-lg font-bold mb-2`,children:n}),(0,u.jsx)(f,{variant:`body`,className:`mb-4 text-primary text-sm`,children:r})]}),d===`button`&&i?(0,u.jsx)(O,{intent:`accent`,variant:`outline`,label:i,className:`w-full md:w-48`,type:`button`,onClick:p}):null,d===`text`&&i?(0,u.jsx)(f,{variant:`body`,className:`text-sm font-bold text-primary`,children:i}):null]})]}):(0,u.jsxs)(`div`,{className:`w-full flex flex-col overflow-hidden bg-secondary`,children:[(0,u.jsx)(`div`,{className:`h-120 md:h-160 flex overflow-hidden rounded-t-lg`,children:(0,u.jsx)(j,{src:e,alt:t??``,className:`rounded-lg w-full h-full object-cover`,quality:90})}),(0,u.jsxs)(`div`,{className:`flex flex-col grow justify-between gap-2 md:gap-6 px-0 pt-4 pb-4 md:pb-10`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-primary text-lg font-bold mb-2`,children:n}),(0,u.jsx)(f,{variant:`body`,className:`mb-0 text-primary text-sm`,children:r})]}),d===`button`&&i?(0,u.jsx)(O,{intent:`accent`,variant:`link`,label:i,iconName:`arrow-right`,iconType:`fa-solid`,iconPosition:`right`,buttonAlignment:`justify-start`,className:`p-0!`,type:`button`,onClick:p}):null,d===`text`&&i?(0,u.jsx)(f,{variant:`body`,className:`text-sm font-bold text-primary`,children:i}):null]})]});return s?(0,u.jsx)(K,{onCardClick:s,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:m}):m},Mo=({imageSrc:e,imageAlt:t,title:n,brand:r,decorNumber:i,onProductClick:a})=>{let o=(0,u.jsxs)(`section`,{className:a?`cursor-pointer`:``,children:[(0,u.jsx)(j,{src:e,alt:t??``,quality:90,className:`h-40 w-40 md:h-80 md:w-80 object-cover`}),(0,u.jsxs)(`div`,{className:`mt-2`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs text-tertiary`,children:i}),(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold leading-tight text-primary`,children:n}),(0,u.jsx)(f,{variant:`free`,className:`text-xs leading-tight text-primary`,children:r})]})]});return a?(0,u.jsx)(K,{onCardClick:a,className:`block w-40 md:w-80 shrink-0 text-left`,ariaLabel:`Open ${n}${i?` ${i}`:``}`,children:o}):(0,u.jsx)(`div`,{className:`w-40 md:w-80 shrink-0`,children:o})},No=e=>{if(e.distance)return e.distance.label??`${e.distance.value.toLocaleString(void 0,{maximumFractionDigits:2})} ${e.distance.unit}`},Po=e=>[e.city,e.region,e.postalCode].filter(Boolean).join(` `),Fo=(e,t,n)=>{e?.({location:t,href:n})},Io=({location:e,stockedProductsLabel:t=`Stocked Products`,preferredLabel:n=`Preferred Retailer`,websiteLabel:r=`Visit Website`,directionsLabel:i=`Get Directions`,emailLabel:a=`Email`,onWebsiteClick:o,onDirectionsClick:s,onPhoneClick:c,onEmailClick:l})=>{let d=No(e),p=Po(e.address),m=(e.dealerType??e.type)===`retailer`;return(0,u.jsxs)(`article`,{className:`flex h-full min-h-100 w-full flex-col rounded border border-transparent bg-white p-6 text-primary hover:border-accent`,children:[(0,u.jsxs)(`div`,{className:`mb-3`,children:[(0,u.jsxs)(`div`,{className:``,children:[e.isPreferred?(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`location-dot`,color:`secondaryHover`,size:`lg`,alt:n,className:`mt-1 shrink-0`}):null,(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-lg font-bold min-h-12`,children:e.name})]}),d?(0,u.jsxs)(`div`,{className:`inline-flex items-start gap-2`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`location-dot`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsx)(f,{variant:`caption`,className:`text-primary text-sm`,children:d})]}):null]}),(0,u.jsxs)(`div`,{className:`mb-5 space-y-2`,children:[(0,u.jsxs)(`address`,{className:`flex min-h-14 items-start gap-2 not-italic`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`map-location-dot`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsxs)(`div`,{children:[e.address.lines.map((e,t)=>(0,u.jsx)(f,{variant:`body`,className:`text-sm`,children:e},`${e}-${t}`)),(0,u.jsx)(f,{variant:`body`,className:`text-sm`,children:p})]})]}),e.directionsUrl?(0,u.jsx)(`div`,{children:(0,u.jsxs)(f,{as:`a`,variant:`body`,href:e.directionsUrl,className:`group inline-flex items-start gap-2 text-sm hover:text-accent hover:underline`,onClick:()=>Fo(s,e,e.directionsUrl),children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`diamond-turn-right`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),i,(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`arrow-right`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`})]})}):null]}),(0,u.jsxs)(`div`,{className:`mb-5 min-h-14 space-y-1`,children:[(0,u.jsx)(`div`,{children:e.phone?e.phoneHref?(0,u.jsxs)(`div`,{className:`group inline-flex items-start gap-2`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`mobile-screen`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),(0,u.jsx)(f,{as:`a`,variant:`body`,className:`text-sm hover:text-accent hover:underline`,href:e.phoneHref,onClick:()=>Fo(c,e,e.phoneHref),children:e.phone})]}):(0,u.jsxs)(`div`,{className:`inline-flex items-start gap-2`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`mobile-screen`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-sm`,children:e.phone})]}):null}),!e.email&&!e.emailHref?null:(0,u.jsx)(`div`,{children:(0,u.jsxs)(f,{as:`button`,type:`button`,variant:`body`,className:`group inline-flex cursor-pointer items-start gap-2 bg-transparent p-0 text-left text-sm hover:text-accent hover:underline`,onClick:()=>Fo(l,e,e.emailHref),children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`envelope-open-text`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),a]})}),e.websiteUrl?(0,u.jsx)(`div`,{children:(0,u.jsxs)(f,{as:`a`,variant:`body`,className:`group inline-flex items-start gap-2 text-sm hover:text-accent hover:underline`,href:e.websiteUrl,onClick:()=>Fo(o,e,e.websiteUrl),children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`globe`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),r]})}):null]}),m?(0,u.jsxs)(`div`,{className:`mt-auto min-h-24`,children:[(0,u.jsxs)(`div`,{className:`inline-flex items-start gap-2`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`box-open`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsx)(f,{variant:`bold`,className:`text-sm text-primary`,children:t})]}),e.stockedProducts.length>0?(0,u.jsx)(`ul`,{className:`mt-1 list-none pl-6`,children:e.stockedProducts.map(e=>(0,u.jsx)(`li`,{children:(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-xs`,children:e.label})},e.id))}):null]}):null]})},Lo=({countries:e=[],selectedCountry:t,onCountrySelect:n})=>{let[r,i]=(0,c.useState)(!1),a=(0,c.useRef)(null),o=t??e[0]??null,s=e=>{n?.(e),i(!1)},l=e=>{a.current&&!a.current.contains(e.target)&&i(!1)};return(0,c.useEffect)(()=>(document.addEventListener(`mousedown`,l),()=>document.removeEventListener(`mousedown`,l)),[]),(0,u.jsxs)(`div`,{ref:a,className:`relative`,children:[(0,u.jsxs)(O,{intent:`primary`,variant:`link`,type:`button`,onClick:()=>i(!r),"aria-haspopup":`listbox`,"aria-expanded":r,children:[(0,u.jsxs)(f,{variant:`navlink`,className:`text-sm`,children:[o?.label??`Select Country`,o?.locale?` (${o.locale})`:``]}),(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`angle-down`,className:`text-grayText text-xs transition-transform duration-300 ${r?`rotate-180`:``}`})]}),r&&(0,u.jsx)(`ul`,{id:`country-selector`,className:`absolute left-0 top-full mt-2 z-50 max-h-80 w-52 overflow-auto bg-white shadow-md`,children:e.map((e,t)=>(0,u.jsx)(`li`,{"data-countrycode":e.label,className:`hover:bg-gray-100`,children:(0,u.jsxs)(`button`,{type:`button`,onClick:()=>s(e),className:`flex w-full px-3 py-2 text-left`,children:[(0,u.jsx)(f,{variant:`navlink`,className:`text-sm text-gray-700`,children:e.label}),(0,u.jsxs)(f,{variant:`nav`,className:`ml-1 mt-0.5 whitespace-nowrap text-xs text-gray-500`,children:[`(`,e.locale,`)`]})]})},`${e.href}-${t}`))})]})},Ro=e=>{let t=e.trim().split(/\s+/).filter(Boolean);return(t.length>1?t.map(e=>e[0]).join(``):e.slice(0,2)).toUpperCase()},zo=({options:e,value:t,label:n=`Region`,placeholder:r=`Select region`,helpText:i,disabled:a=!1,name:o=`admin-region`,onChange:s})=>{let c=!t.trim(),l=`${o}-help`;return(0,u.jsxs)(`fieldset`,{className:`min-w-0`,disabled:a,"aria-describedby":i?l:void 0,children:[(0,u.jsx)(`legend`,{className:`sr-only`,children:n}),(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":n,"aria-invalid":c||void 0,className:`flex flex-wrap gap-x-4 gap-y-2`,children:e.map(e=>(0,u.jsxs)(`label`,{title:e.label,className:`flex cursor-pointer flex-col items-center gap-1 rounded-md has-[:disabled]:cursor-not-allowed`,children:[(0,u.jsx)(`input`,{type:`radio`,name:o,value:e.value,checked:t===e.value,disabled:a,required:!0,"aria-label":e.label,className:`peer sr-only`,onChange:e=>s({region:e.target.value})}),(0,u.jsx)(`span`,{className:`flex h-10 w-10 items-center justify-center rounded-full border border-borderTertiary bg-secondary text-tertiary transition hover:border-primary hover:text-primary peer-checked:border-primary peer-checked:bg-primary peer-checked:text-secondary peer-checked:hover:bg-secondaryHover peer-checked:hover:text-primary peer-focus-visible:ring-2 peer-focus-visible:ring-primary peer-focus-visible:ring-offset-2 peer-disabled:opacity-50`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:e.iconName??`earth-americas`,alt:``,size:`xl`})}),(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary peer-checked:text-primary peer-disabled:opacity-50`,"aria-hidden":`true`,children:e.shortLabel??Ro(e.label)})]},e.value))}),c&&r?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-xs text-accent`,children:r}):null,i?(0,u.jsx)(f,{id:l,variant:`free`,className:`sr-only`,children:i}):null]})},Bo=({ranges:e,selectedRangeId:t,disabled:n=!1,ariaLabel:r=`Filter by range`,action:i,onRangeSelect:a})=>(0,u.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":r,className:`contents`,children:e.map(e=>({id:e.id,label:e.label,title:`${e.label} (${e.decorCount.toLocaleString()} decors)`})).map(e=>{let r=e.id===t;return(0,u.jsx)(O,{label:e.label,title:e.title,variant:r?`solid`:`outline`,intent:`primary`,size:`sm`,role:`radio`,"aria-checked":r,disabled:n,onClick:()=>a({rangeId:e.id})},e.id)})}),i]}),Vo=({title:e,iconName:t,dimension:n,options:r,selectedValue:i,readOnly:a,onSelect:o})=>(0,u.jsxs)(`fieldset`,{children:[(0,u.jsx)(`legend`,{className:`text-sm font-bold text-primary`,children:(0,u.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:t,alt:``,size:`sm`,color:`secondaryHover`,className:`w-4 shrink-0`}),e]})}),(0,u.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:r.map(e=>{let t=e.value===i,r=`market-readiness-${n}-${e.value}-description`;return(0,u.jsxs)(`span`,{className:`group relative`,children:[(0,u.jsx)(`button`,{type:`button`,"aria-pressed":t,"aria-describedby":e.description?r:void 0,disabled:a||e.disabled,className:`rounded-md border px-4 py-2 text-sm font-semibold transition ${t?`border-primary bg-primary text-secondary`:`border-borderTertiary bg-secondary text-primary hover:border-primary`} disabled:cursor-default disabled:opacity-70`,onClick:()=>o?.(n,e.value),children:e.label}),e.description?(0,u.jsx)(`span`,{id:r,role:`tooltip`,className:`pointer-events-none absolute bottom-full left-1/2 z-10 mb-2 hidden w-max max-w-64 -translate-x-1/2 rounded-md bg-primary px-3 py-2 text-xs font-normal text-secondary shadow-lg group-hover:block group-focus-within:block`,children:e.description}):null]},e.value)})})]}),Ho=({id:e,name:t,type:n=`text`,value:r=``,placeholder:i=``,ariaLabel:a,ariaDescribedBy:o,disabled:s=!1,readOnly:l=!1,required:d=!1,min:f,max:p,step:m,hasError:h=!1,clearable:_=!1,clearLabel:v=`Clear input`,className:y=``,inputClassName:b=``,autoComplete:x,autoFocus:S,leadingIcon:C,trailingIcon:w,onChange:T,onBlur:E,onFocus:D,onKeyDown:O,onClear:k})=>{let[A,j]=(0,c.useState)(!1),M=n===`password`,N=String(r),P=_&&!!N&&!s&&!l&&!M&&!w,F=(0,c.useMemo)(()=>M?A?`text`:`password`:n,[n,M,A]),I=(M?(0,u.jsx)(`button`,{type:`button`,onClick:()=>j(e=>!e),className:`absolute right-3 top-1/2 -translate-y-1/2`,"aria-label":A?`Hide password`:`Show password`,children:(0,u.jsx)(g,{iconName:A?`fa-eye-slash`:`fa-eye`,iconType:`fa-solid`,className:`text-sm text-secondaryActive`})}):null)||(P?(0,u.jsx)(`button`,{type:`button`,"aria-label":v,className:`absolute right-3 top-1/2 flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded-md text-primary hover:bg-tertiaryActive`,onClick:()=>k?.({value:N}),children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`xmark`,alt:``,size:`sm`})}):w?(0,u.jsx)(`span`,{className:`absolute right-3 top-1/2 -translate-y-1/2`,children:w}):null),L=[`w-full rounded-md border bg-white py-3 text-sm outline-none transition-colors placeholder-tertiary`,h?`border-accent text-accent`:`border-secondaryHover text-primary`,s?`cursor-not-allowed opacity-60`:``,C?`pl-10 pr-4`:`px-4`,I?`pr-12`:``,b].filter(Boolean).join(` `);return(0,u.jsxs)(`div`,{className:`relative w-full ${y}`.trim(),children:[C?(0,u.jsx)(`span`,{className:`absolute left-3 top-1/2 -translate-y-1/2`,children:C}):null,(0,u.jsx)(`input`,{id:e,name:t,type:F,value:N,placeholder:i,"aria-label":a,"aria-describedby":o,"aria-invalid":h||void 0,disabled:s,readOnly:l,required:d,min:f,max:p,step:m,autoComplete:x,autoFocus:S,className:L,onChange:T,onBlur:E,onFocus:D,onKeyDown:O}),I]})},Uo=({placeholder:e=`Search`,value:t=``,inputClassName:n=``,controlSize:r=`compact`,clearLabel:i=`Clear search`,disabled:a,readOnly:o,onKeyDown:s,onSearchSubmit:c,...l})=>{let d=String(t),f=r===`default`?`h-auto py-3`:`h-8 py-2`,p=e=>{s?.(e),!e.defaultPrevented&&e.key===`Enter`&&c?.({value:e.currentTarget.value})};return(0,u.jsx)(Ho,{...l,value:d,type:`search`,placeholder:e,disabled:a,readOnly:o,clearable:!0,clearLabel:i,inputClassName:`${f} pl-10 ${n}`.trim(),onKeyDown:p,leadingIcon:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`magnifying-glass`,className:`text-sm text-secondaryHover`})})},Wo=({id:e,name:t,ariaLabel:n=`Search`,placeholder:r=`Search`,value:i=``,options:a,emptyMessage:o=`No matches found.`,minQueryLength:s=1,disabled:l,readOnly:d,hasError:p,clearLabel:m=`Clear search`,controlSize:h,valueStatus:g=`default`,onQueryChange:_,onOptionSelect:v,onSearchSubmit:y,onClear:b})=>{let x=(0,c.useRef)(null),[S,C]=(0,c.useState)(!1),[w,T]=(0,c.useState)(0),E=String(i),D=!l&&!d&&E.trim().length>=s,O=(0,c.useMemo)(()=>D?a:[],[D,a]),k=S&&D,A=e?`${e}-options`:void 0;(0,c.useEffect)(()=>{T(0)},[E,a]),(0,c.useEffect)(()=>{if(!S)return;let e=e=>{let t=e.target;t instanceof Node&&x.current?.contains(t)||C(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[S]);let j=e=>{C(!1),v?.({option:e,query:E})};return(0,u.jsxs)(`div`,{ref:x,className:`relative w-full`,children:[(0,u.jsx)(Uo,{id:e,name:t,ariaLabel:n,placeholder:r,value:E,disabled:l,readOnly:d,hasError:p,clearLabel:m,controlSize:h,inputClassName:g===`inactive`?`line-through`:``,autoComplete:`off`,onChange:e=>{let t=e.target.value;C(!0),_?.({value:t})},onClear:()=>{C(!1),b?.({value:E})},onFocus:()=>C(!0),onKeyDown:e=>{if(e.key===`ArrowDown`){e.preventDefault(),C(!0),T(e=>O.length>0?(e+1)%O.length:0);return}if(e.key===`ArrowUp`){e.preventDefault(),C(!0),T(e=>O.length>0?(e-1+O.length)%O.length:0);return}if(e.key===`Escape`){e.preventDefault(),C(!1);return}e.key===`Enter`&&k&&O.length>0&&(e.preventDefault(),j(O[w]))},onSearchSubmit:()=>{C(!1),y?.({value:E})}}),k?(0,u.jsx)(`div`,{id:A,role:`listbox`,"aria-label":`${n} matches`,className:`absolute left-0 right-0 z-20 mt-1 overflow-hidden rounded-lg border border-borderTertiary bg-secondary shadow-lg`,children:O.length>0?(0,u.jsx)(`ul`,{className:`max-h-72 overflow-y-auto py-1`,children:O.map((e,t)=>{let n=t===w;return(0,u.jsx)(`li`,{role:`option`,"aria-selected":n,children:(0,u.jsxs)(`button`,{type:`button`,className:`flex w-full flex-col px-3 py-2 text-left hover:bg-tertiaryActive focus:bg-tertiaryActive focus:outline-none ${n?`bg-tertiaryActive`:``}`,onMouseEnter:()=>T(t),onClick:()=>j(e),children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:e.label}),e.description?(0,u.jsx)(f,{variant:`free`,className:`mt-0.5 text-xs text-tertiary`,children:e.description}):null]})},e.id)})}):(0,u.jsx)(f,{variant:`free`,className:`px-3 py-3 text-sm text-primary`,children:o})}):null]})},Go=({id:e,name:t,label:n,checked:r=!1,disabled:i=!1,checkboxColor:a=`accent-accent`,onChange:o})=>(0,u.jsxs)(`label`,{htmlFor:e,className:[`inline-flex items-center gap-2 select-none`,i?`cursor-not-allowed opacity-60`:`cursor-pointer`].join(` `),children:[(0,u.jsx)(`input`,{id:e,name:t,type:`checkbox`,checked:r,disabled:i,onChange:n=>{let r={id:e,name:t,checked:n.target.checked};o?.(r)},className:`h-4 w-4 shrink-0 ${a} cursor-pointer`}),(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-primary`,children:n})]}),Ko=({options:e=[],label:t,defaultOpen:n=!0,onOptionChange:r})=>{let[i,a]=(0,c.useState)(n);return(0,u.jsx)(`section`,{children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,u.jsxs)(O,{intent:`primary`,variant:`link`,size:`sm`,onClick:()=>a(!i),className:`flex gap-1 w-full`,buttonAlignment:`justify-between`,"aria-expanded":i,children:[(0,u.jsx)(f,{variant:`bold`,children:t}),(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`angle-down`,className:`flex transform transition-transform duration-300 text-secondaryActive text-xs ${i?`rotate-180`:``}`})]}),i&&(0,u.jsx)(`ul`,{className:`list-none`,children:e.map(e=>(0,u.jsx)(`li`,{children:(0,u.jsx)(Go,{id:e.id,name:e.name,label:e.label,checked:e.checked??!1,disabled:e.disabled??!1,onChange:r??e.onChange,checkboxColor:`accent-primary`})},`${e.name}-${e.id}`))})]})})},qo={wrapper:`relative w-full rounded-md border`,select:`h-full w-full appearance-none rounded-md border-none bg-transparent text-primary focus:outline-none`,icon:`pointer-events-none absolute top-1/2 -translate-y-1/2 text-primary`},Jo={field:{wrapper:`h-12 bg-secondary`,select:`px-4 pr-10 text-sm`,icon:`right-3 text-sm`},filter:{wrapper:`h-8 bg-white`,select:`px-4 pr-10 text-sm`,icon:`right-4 text-sm`},toolbar:{wrapper:`h-12 bg-neutral-100`,select:`px-4 pr-10 text-sm`,icon:`right-4 text-sm`}},Yo=({variant:e,hasError:t,disabled:n})=>{let r=Jo[e];return{wrapperClasses:[qo.wrapper,r.wrapper,t?`border-accent`:`border-secondaryHover`,n?`cursor-not-allowed opacity-60`:``].join(` `),selectClasses:[qo.select,r.select].join(` `),iconClasses:[qo.icon,r.icon].join(` `)}},Q=({id:e,name:t,ariaLabel:n,ariaDescribedBy:r,options:i=[],value:a=``,placeholder:o=``,disabled:s=!1,required:c=!1,hasError:l=!1,variant:d=`field`,onChange:f,onBlur:p})=>{let{wrapperClasses:m,selectClasses:h,iconClasses:_}=Yo({variant:d,hasError:l,disabled:s});return(0,u.jsxs)(`div`,{className:m,children:[(0,u.jsxs)(`select`,{id:e,name:t,"aria-label":n,"aria-describedby":r,"aria-invalid":l||void 0,value:a,disabled:s,required:c,onChange:f,onBlur:p,className:h,children:[o?(0,u.jsx)(`option`,{value:``,disabled:!0,children:o}):null,i.map(e=>(0,u.jsx)(`option`,{value:e.value||e.label,disabled:e.disabled,children:e.label},e.value||e.label))]}),(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-down`,className:_})]})},Xo=({id:e,label:t,description:n,checked:r=!1,disabled:i=!1,name:a,value:o,className:s=``,onChange:c,onClick:l})=>(0,u.jsxs)(`button`,{type:`button`,id:e,name:a,value:o,className:[`w-full rounded-md border px-4 py-4 transition-colors`,`flex items-center gap-3`,i?`cursor-not-allowed opacity-60`:`cursor-pointer`,r?`border-accent bg-tertiaryActive`:`border-neutral-400`,s].join(` `),onClick:()=>{i||(l&&l(),c&&c(o??e))},disabled:i,"aria-pressed":r,"aria-disabled":i,children:[(0,u.jsx)(`span`,{className:[`flex h-5 w-5 shrink-0 items-center justify-center rounded-full border`,r?`border-accent`:`border-neutral-400`].join(` `),"aria-hidden":`true`,children:r?(0,u.jsx)(`span`,{className:`h-2.5 w-2.5 rounded-full bg-accent`}):null}),(0,u.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col items-start text-left`,children:[(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-primary`,children:t}),n?(0,u.jsx)(f,{as:`span`,variant:`caption`,className:`text-secondaryActive`,children:n}):null]})]}),Zo={blocking:`Blocking`,recommended:`Recommended`,optional:`Optional`},Qo={blocking:{iconName:`asterisk`,className:`text-accent`,label:`Required`},recommended:{iconName:`triangle-exclamation`,className:`text-yellow-700`,label:`Recommended`},optional:{iconName:`circle-info`,className:`text-blue-600`,label:`Optional`}},$o={compact:`space-y-3`,comfortable:`space-y-4`},es={compact:`py-1`,comfortable:`rounded-lg border border-borderTertiary p-4`},ts={compact:`mb-1.5 flex flex-wrap items-center gap-2`,comfortable:`mb-2 flex flex-wrap items-center gap-2`},ns=e=>e===null?``:String(e),rs=e=>{if(e===null||e===``||Array.isArray(e))return``;let t=Number(e);return Number.isFinite(t)?t.toFixed(2):``},is=e=>{if(e.severity)return e.severity;if(e.required)return`blocking`},as=e=>e.required||e.severity===`blocking`,os=e=>ns(e.value).trim()===``,ss=e=>{if(e.trim()===``)return null;let t=Number(e);return Number.isNaN(t)?null:t},cs=e=>{if(!e.validationRegex)return e.state??`neutral`;let t=ns(e.value);if(!t)return e.state??`neutral`;try{return new RegExp(e.validationRegex).test(t)?e.state??`neutral`:`error`}catch{return e.state??`neutral`}},ls=e=>{if(as(e)&&os(e))return`error`;let t=cs(e);return as(e)&&t===`neutral`?`valid`:t},us=({title:e,description:t,headerAction:n,fields:r,fieldGroups:i,density:a=`compact`,severityDisplay:o=`icon`,fieldMessagePlacement:s=`inline`,submitLabel:l=`Save Changes`,cancelLabel:d=`Cancel`,cancelDisabled:p=!1,submitDisabled:m=!1,showActions:h=!0,validationSummary:_,onDynamicFormFieldChange:v,onDynamicFormSubmit:y,onDynamicFormCancel:b})=>{let x=t?.trim()??``,[S,C]=c.default.useState(),w=(e,t)=>{v?.({fieldId:e.id,value:t})},T=(e,t)=>{if(e.type===`information`)return null;let n=is(e),r=ls(e);if(t===`none`||!n||as(e)&&r===`valid`||t===`label`&&e.readOnly)return null;if(t===`label`)return(0,u.jsx)(`span`,{className:`rounded-full border border-borderTertiary px-2 py-1 text-xs font-semibold text-primary`,children:Zo[n]});let i=Qo[n],a=`${i.label} field`;return(0,u.jsx)(`span`,{role:`img`,"aria-label":a,title:a,className:`inline-flex shrink-0 items-center justify-center ${i.className}`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:i.iconName,alt:``,size:`xs`})})},E=e=>{e.preventDefault(),y?.({values:r.filter(e=>e.type!==`information`).reduce((e,t)=>({...e,[t.id]:t.value}),{})})},D=e=>{let t=ns(e.value),n=ls(e)===`error`,r=t;if(e.type===`currency`&&S!==e.id&&(r=rs(e.value)),e.type===`information`){let n=[`rounded-md border border-borderTertiary bg-adminSideNavBackground px-3 py-2 text-sm text-primary whitespace-pre-wrap`,e.informationLayout===`multiline`?`min-h-24`:`flex min-h-10 items-center`].join(` `);return(0,u.jsx)(`div`,{id:e.id,"aria-labelledby":`${e.id}-label`,className:n,children:t})}if(e.type===`select`)return(0,u.jsx)(Q,{id:e.id,name:e.id,value:t,placeholder:e.placeholder,options:e.options,disabled:e.readOnly,hasError:n,onChange:t=>w(e,t.target.value)});if(e.type===`multiSelectTiles`){let t=Array.isArray(e.value)?e.value:[],n=Math.max(e.selectionLimit??3,1),r=t.length>=n;return(0,u.jsx)(`div`,{role:`group`,"aria-labelledby":`${e.id}-label`,className:`grid grid-cols-4 gap-x-3 gap-y-4 md:grid-cols-8`,children:(e.options??[]).map(n=>{let i=t.includes(n.value),a=e.readOnly||n.disabled||r&&!i,o=`hover:border-primary`;return a&&(o=i?`cursor-not-allowed`:`cursor-not-allowed opacity-40`),(0,u.jsxs)(`button`,{type:`button`,"aria-pressed":i,disabled:a,className:[`flex min-w-0 flex-col items-center gap-1.5 text-center text-xs font-semibold text-primary`,o].join(` `),onClick:()=>w(e,i?t.filter(e=>e!==n.value):[...t,n.value]),children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:[`flex h-9 w-9 items-center justify-center border border-secondaryHover transition-shadow`,i?`ring-2 ring-primary ring-offset-2`:`ring-0`].join(` `),style:{backgroundColor:n.color},children:i?(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`check`,size:`xs`,color:n.checkIconColor??`secondary`,alt:``}):null}),(0,u.jsx)(`span`,{className:`w-full truncate`,title:n.label,children:n.label})]},n.value)})})}return e.type===`radio`?(0,u.jsx)(`div`,{role:`radiogroup`,"aria-labelledby":`${e.id}-label`,className:`grid gap-2`,children:(e.options??[]).map(n=>(0,u.jsx)(Xo,{id:`${e.id}-${n.value}`,name:e.id,label:n.label,value:n.value,checked:t===n.value,disabled:e.readOnly||n.disabled,onChange:t=>w(e,t)},n.value))}):e.type===`textarea`?(0,u.jsx)(R,{id:e.id,name:e.id,value:t,placeholder:e.placeholder,readOnly:e.readOnly,required:e.required,hasError:n,rows:e.rows,onChange:t=>w(e,t.target.value)}):(0,u.jsx)(Ho,{id:e.id,name:e.id,type:e.type===`text`||e.type===`date`?e.type:`number`,value:r,placeholder:e.placeholder,readOnly:e.readOnly,required:e.required,min:e.min,max:e.max,step:e.step,hasError:n,clearable:!0,leadingIcon:e.type===`currency`?(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`dollar-sign`,alt:``,size:`xs`}):void 0,onChange:t=>w(e,e.type===`text`||e.type===`date`?t.target.value:ss(t.target.value)),onFocus:()=>{e.type===`currency`&&C(e.id)},onBlur:()=>{e.type===`currency`&&C(void 0)},onClear:()=>w(e,e.type===`text`||e.type===`date`?``:null)})},k=e=>{let t=e.message?.trim()??``,n=e.helpText?.trim()??``;return!t&&!n?null:(0,u.jsx)(f,{variant:`free`,className:s===`below-label`?`${e.type===`multiSelectTiles`?`mb-4`:`mb-1.5`} min-w-0 text-left text-xs text-tertiary`:`ml-auto min-w-0 text-right text-xs text-tertiary`,children:t||n})},A=(e,t)=>{let n=e.label,r=e.layoutWidth===`half`?``:`md:col-span-2`;t&&(r=`md:col-span-6`,e.layoutWidth===`half`&&(r=`md:col-span-3`),e.layoutWidth===`third`&&(r=`md:col-span-2`));let i=[es[a],r].filter(Boolean).join(` `),c=k(e);return(0,u.jsxs)(`div`,{className:i,children:[(0,u.jsxs)(`div`,{className:e.type===`multiSelectTiles`&&s===`inline`?`mb-4 flex flex-wrap items-center gap-2`:ts[a],children:[e.iconName?(0,u.jsx)(g,{iconType:`fa-solid`,iconName:e.iconName,alt:``,size:`sm`,color:`secondaryHover`,className:`w-4 shrink-0`}):null,T(e,o),e.type===`radio`||e.type===`multiSelectTiles`||e.type===`information`?(0,u.jsx)(`span`,{id:`${e.id}-label`,className:`text-sm font-semibold text-primary`,children:n}):(0,u.jsx)(`label`,{htmlFor:e.id,className:`text-sm font-semibold text-primary`,children:n}),s===`inline`?c:null]}),s===`below-label`?c:null,D(e)]},e.id)},j=e=>{let t=e.some(e=>e.layoutWidth===`third`),n=e.some(e=>e.layoutWidth===`half`),r=$o[a];return n&&(r=`grid md:grid-cols-2 ${a===`compact`?`gap-3`:`gap-4`}`),t&&(r=`grid md:grid-cols-6 ${a===`compact`?`gap-3`:`gap-4`}`),(0,u.jsx)(`div`,{className:r,children:e.map(e=>A(e,t))})};return(0,u.jsxs)(`form`,{className:`space-y-5`,onSubmit:E,children:[e||x||n?(0,u.jsxs)(`header`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,u.jsxs)(`div`,{children:[e?(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:e}):null,x?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:x}):null]}),n]}):null,(()=>{if(!i?.length)return j(r);let e=new Map(r.map(e=>[e.id,e])),t=r.filter(e=>!i.some(t=>t.fieldIds.includes(e.id)));return(0,u.jsxs)(`div`,{className:`space-y-6`,children:[i.map(t=>{let n=t.fieldIds.map(t=>e.get(t)).filter(e=>!!e);return n.length?(0,u.jsxs)(`section`,{"aria-labelledby":`${t.id}-heading`,children:[(0,u.jsxs)(`div`,{className:`mb-4 flex items-center gap-3`,children:[(0,u.jsx)(f,{as:`h4`,id:`${t.id}-heading`,variant:`free`,className:`shrink-0 text-sm font-bold text-primary`,children:t.title}),(0,u.jsx)(`div`,{className:`min-w-0 flex-1 border-t border-borderTertiary`})]}),t.description?(0,u.jsx)(f,{variant:`free`,className:`mb-4 text-sm text-secondaryActive`,children:t.description}):null,j(n)]},t.id):null}),t.length?j(t):null]})})(),_,h?(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row md:justify-end`,children:[b?(0,u.jsx)(O,{label:d,variant:`outline`,intent:`primary`,disabled:p,onClick:b}):null,(0,u.jsx)(O,{label:l,variant:`solid`,intent:`primary`,type:`submit`,disabled:m})]}):null]})},ds=e=>e===`saved`?`text-saleGreen`:e===`error`?`text-accent`:`text-yellow-700`,fs=({status:e,label:t,errorMessage:n,lastSavedLabel:r})=>e===`saved`?null:(0,u.jsxs)(`div`,{className:`text-xs text-tertiary`,children:[(0,u.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[e===`saving`?(0,u.jsx)(v,{label:``,size:`xs`}):(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`circle-exclamation`,alt:``,size:`xs`,className:ds(e)}),t]}),r?(0,u.jsxs)(`span`,{className:`ml-4`,children:[`Saved `,r]}):null,n?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:n}):null]}),ps=({itemLabel:e,selectedCount:t,failedCount:n,disableAllDisabled:r,onSelectAll:i,onSelectFailed:a,onDisableAll:o,onClear:s,onCancel:c})=>(0,u.jsxs)(`div`,{"aria-label":`${e===`sheet`?`sheets`:`samples`} bulk actions`,className:`mt-3 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsxs)(f,{variant:`free`,className:`text-xs font-bold text-primary`,children:[t,` selected`]}),(0,u.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:[(0,u.jsx)(O,{label:`Select all`,variant:`outline`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,onClick:i}),(0,u.jsx)(O,{label:`Select failed checks (${n})`,variant:`outline`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,disabled:n===0,onClick:a}),(0,u.jsx)(O,{label:`Disable all`,variant:`outline`,intent:`danger`,size:`xs`,className:`shrink-0 whitespace-nowrap`,disabled:r,onClick:o})]}),(0,u.jsxs)(`div`,{className:`mt-2 flex items-center gap-1`,children:[(0,u.jsx)(O,{label:`Clear`,variant:`ghost`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,disabled:t===0,onClick:s}),(0,u.jsx)(O,{label:`Cancel`,variant:`ghost`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,onClick:c})]})]}),ms=({itemLabel:e,selectedCount:t,deleteDisabled:n,onDelete:r})=>(0,u.jsx)(`div`,{"aria-label":`${e===`sheet`?`sheets`:`samples`} bulk delete`,className:`mt-4 border-t border-borderTertiary pt-4`,children:(0,u.jsx)(O,{label:`Delete ${t} selected`,variant:`solid`,intent:`accent`,size:`sm`,fullWidth:!0,disabled:n,onClick:r})}),hs=({guide:e})=>{let t=e.segments.some(e=>e.description?.trim());return(0,u.jsxs)(`details`,{className:`rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsx)(`summary`,{className:`cursor-pointer text-sm font-bold text-primary`,children:e.title}),(0,u.jsxs)(`div`,{className:`mt-4 space-y-4`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:e.formatLabel}),(0,u.jsx)(`code`,{className:`mt-1 block break-all rounded-md bg-secondary px-3 py-2 text-sm font-bold text-primary`,children:e.format})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:e.exampleLabel}),(0,u.jsx)(`code`,{className:`mt-1 block break-all text-sm text-primary`,children:e.example})]}),(0,u.jsx)(`div`,{className:`overflow-x-auto`,children:(0,u.jsxs)(`table`,{className:`w-full text-left text-xs text-primary`,children:[(0,u.jsx)(`thead`,{className:`border-b border-borderTertiary text-tertiary`,children:(0,u.jsxs)(`tr`,{children:[(0,u.jsx)(`th`,{className:`pb-2 pr-2 font-bold`,children:`Code`}),(0,u.jsx)(`th`,{className:`pb-2 pr-2 font-bold`,children:`Field`}),(0,u.jsx)(`th`,{className:`pb-2 text-right font-bold`,children:`Example`}),t?(0,u.jsx)(`th`,{className:`pb-2 pl-2 font-bold`,children:`Meaning`}):null]})}),(0,u.jsx)(`tbody`,{children:e.segments.map(e=>(0,u.jsxs)(`tr`,{className:`border-b border-borderTertiary last:border-0`,children:[(0,u.jsxs)(`td`,{className:`py-2 pr-2 font-mono font-bold`,children:[e.pattern,(0,u.jsxs)(`span`,{className:`ml-1 text-tertiary`,children:[`(`,e.length,`)`]})]}),(0,u.jsx)(`td`,{className:`py-2 pr-2`,children:e.label}),(0,u.jsx)(`td`,{className:`py-2 text-right font-mono`,children:e.example}),t?(0,u.jsx)(`td`,{className:`py-2 pl-2`,children:e.description}):null]},e.pattern))})]})}),e.coreNote?(0,u.jsx)(f,{variant:`free`,className:`text-xs text-tertiary`,children:e.coreNote}):null,e.sampleNote?(0,u.jsx)(f,{variant:`free`,className:`rounded-md border border-borderTertiary bg-secondary p-3 text-xs text-primary`,children:e.sampleNote}):null]})]})},gs=({guide:e})=>(0,u.jsxs)(`details`,{className:`rounded-lg border border-borderTertiary bg-adminSideNavBackground p-4 shadow-sm`,children:[(0,u.jsx)(`summary`,{className:`cursor-pointer text-sm font-bold text-primary`,children:e.title}),(0,u.jsxs)(`div`,{className:`mt-4 space-y-4`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:e.formatLabel}),(0,u.jsx)(`code`,{className:`mt-1 block break-all rounded-md bg-secondary px-3 py-2 text-sm font-bold text-primary`,children:e.format})]}),(0,u.jsx)(f,{variant:`free`,className:`text-xs text-primary`,children:e.canonicalSkuNote}),(0,u.jsx)(f,{variant:`free`,className:`text-xs text-primary`,children:e.parsingNote}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:e.sizeRuleLabel}),(0,u.jsx)(`code`,{className:`mt-1 block text-sm font-bold text-primary`,children:e.sizeRule})]}),(0,u.jsx)(`div`,{className:`overflow-x-auto`,children:(0,u.jsxs)(`table`,{className:`w-full text-left text-xs text-primary`,children:[(0,u.jsx)(`thead`,{className:`border-b border-borderTertiary text-tertiary`,children:(0,u.jsxs)(`tr`,{children:[(0,u.jsx)(`th`,{className:`pb-2 pr-2 font-bold`,children:`Sample SKU`}),(0,u.jsx)(`th`,{className:`pb-2 text-right font-bold`,children:`Likely size`})]})}),(0,u.jsx)(`tbody`,{children:e.examples.map(e=>(0,u.jsxs)(`tr`,{className:`border-b border-borderTertiary last:border-0`,children:[(0,u.jsx)(`td`,{className:`py-2 pr-2 font-mono`,children:e.sku}),(0,u.jsx)(`td`,{className:`py-2 text-right`,children:e.likelySize})]},e.sku))})]})}),(0,u.jsx)(f,{variant:`free`,className:`rounded-md border border-yellow-500 bg-yellow-50 p-3 text-xs text-yellow-700`,children:e.caution})]})]}),_s=({sectionData:e,onSampleSearchChange:t,onSampleSelect:n,onAddSampleClick:r,onSampleVariantSelect:i,onNewSampleSkuChange:a,onSampleFieldChange:o,onSampleLocalizationAvailabilityChange:s,onSampleSave:c,onSampleCancel:l,onSampleCreate:d,onSampleDelete:p,onSampleBulkSelectionChange:m,onSampleBulkDelete:h,onSampleDisableAll:_,onSampleBigCommerceSync:v})=>{let{editor:y,guide:b,sampleGuide:x}=e,S={region:e.region,samples:e.items},C=S.region===`north-america`,w=null;C&&x?w=(0,u.jsx)(gs,{guide:x}):b&&(w=(0,u.jsx)(hs,{guide:b}));let T=S.samples.find(e=>e.id===y.selectedSampleId),E=T?.bigCommerceReady??!1,D=y.integration?.bigCommerceStatusLabel??(E?`Ready`:`Not found`),k=S.samples.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.size}`})),A=y.bulkSelection,j=A?.selectedIds??[],M=S.samples.filter(e=>!e.isSampleable).map(e=>e.id),N=y.saveStatus===`saving`,P=y.variantOptionsReadOnly??!1,F=y.variantGroups??[{title:`Finish`,iconName:`paint-roller`,dimension:`finish`,options:y.finishOptions,selectedValue:y.selectedFinish},{title:`Size`,iconName:`ruler-combined`,dimension:`size`,options:y.sizeOptions,selectedValue:y.selectedSize}],I={...y.implicitVariantSelections,...Object.fromEntries(F.filter(e=>e.selectedValue!==void 0).map(e=>[e.dimension,e.selectedValue]))},L=null;y.mode===`create`?L=(0,u.jsx)(O,{label:y.createLabel??`Create Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:y.createDisabled,onClick:()=>d?.({sku:y.newSkuValue,finish:y.selectedFinish??``,size:y.selectedSize??``,variantSelections:I})}):T&&(L=(0,u.jsx)(O,{label:y.controls.saveLabel,iconType:`fa-solid`,iconName:N?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:y.controls.saveDisabled||N,"aria-busy":N||void 0,onClick:()=>c?.({sampleId:T.id})}));let R=null;return y.mode===`create`?R=(0,u.jsxs)(`div`,{className:`mt-5`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-new-sample-sku`,className:`text-sm font-bold text-primary`,children:`New Sample SKU`}),(0,u.jsx)(Ho,{id:`market-readiness-new-sample-sku`,name:`newSampleSku`,value:y.newSkuValue,placeholder:`Generated sample SKU`,leadingIcon:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>a?.({value:e.target.value})})]}):T?.sourceIdentifier&&(R=(0,u.jsxs)(`div`,{className:`mt-5 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs text-tertiary`,children:`Salsify identifier`}),(0,u.jsx)(`code`,{className:`mt-1 block break-all text-sm text-primary`,children:T.sourceIdentifier})]})),(0,u.jsxs)(`section`,{role:`tabpanel`,"aria-label":`Samples`,className:`mt-5 grid gap-5 md:grid-cols-3`,children:[(0,u.jsxs)(`div`,{className:`space-y-5 md:col-span-2`,children:[(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-end`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-sample-search`,className:`text-sm font-bold text-primary`,children:`Sample SKU`}),(0,u.jsx)(Wo,{id:`market-readiness-sample-search`,name:`sampleSearch`,ariaLabel:`Sample SKU`,value:y.searchValue,options:k,valueStatus:T?.isSampleable===!1&&y.searchValue===T.sku?`inactive`:`default`,placeholder:`Search sample SKUs`,controlSize:`default`,onQueryChange:t,onClear:()=>t?.({value:``}),onOptionSelect:({option:e})=>{let t=S.samples.find(t=>t.id===e.value);t&&n?.({sampleId:t.id,sku:t.sku})}})]}),(0,u.jsx)(O,{label:y.addLabel??`Add Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:r})]})}),y.mode===`edit`&&!T?(0,u.jsxs)(`section`,{className:`rounded-lg border border-dashed border-borderTertiary bg-secondary p-8 text-center`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:y.emptyTitle}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:y.emptyMessage})]}):(0,u.jsxs)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:y.mode===`create`?`Create a new sample`:T?.sku}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-tertiary`,children:y.identifierHelpText}),R,(0,u.jsx)(`div`,{className:`mt-5 space-y-5`,children:F.map(e=>(0,u.jsx)(Vo,{...e,readOnly:P||(e.readOnly??!1),onSelect:(e,t)=>i?.({dimension:e,value:t})},e.dimension))}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(us,{fields:y.fields,density:`compact`,severityDisplay:`icon`,fieldMessagePlacement:`below-label`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>o?.({sampleId:T?.id,fieldId:e,value:t})})}),y.localizationAvailability?.length?(0,u.jsx)(`div`,{className:`mt-6 border-t border-borderTertiary pt-5`,children:(0,u.jsx)(Ko,{label:y.localizationAvailabilityLabel??`Sub-region availability`,defaultOpen:!1,options:y.localizationAvailability.map(e=>({id:`sample-localization-${e.id}`,name:`sampleLocalizationAvailability`,label:e.label,checked:e.enabled??!0,disabled:e.disabled,onChange:({checked:t})=>s?.({sampleId:T?.id,localizationId:e.id,enabled:t})}))})}):null,C&&y.mode===`edit`&&T?(0,u.jsx)(`section`,{className:`mt-6 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:`Big Commerce`}),(0,u.jsxs)(`div`,{"aria-label":`Sample Big Commerce status: ${D}`,className:`mt-2 flex items-center gap-2 text-sm text-primary`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-3 w-3 shrink-0 rounded-full ${E?`bg-saleGreen`:`bg-accent`}`}),(0,u.jsx)(`span`,{children:D})]})]}),(0,u.jsx)(O,{label:y.integration?.bigCommerceSyncLabel??`Sync`,iconType:`fa-solid`,iconName:y.integration?.bigCommerceSyncLoading?`spinner`:`arrows-rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,className:`w-24`,disabled:y.integration?.bigCommerceSyncDisabled||y.integration?.bigCommerceSyncLoading||!v,"aria-busy":y.integration?.bigCommerceSyncLoading||void 0,onClick:()=>v?.({sampleId:T.id})})]})}):null,(0,u.jsxs)(`footer`,{className:`mt-6 flex flex-col-reverse gap-3 border-t border-borderTertiary pt-5 md:flex-row md:items-end md:justify-between`,children:[(0,u.jsx)(`div`,{children:y.mode===`edit`&&T&&y.deleteLabel&&p?(0,u.jsx)(O,{label:y.deleteLabel,variant:`outline`,intent:`danger`,disabled:y.deleteDisabled||N,onClick:()=>p?.({sampleId:T.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(fs,{status:y.saveStatus,label:y.saveStatusLabel,errorMessage:y.saveErrorMessage,lastSavedLabel:y.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(O,{label:y.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:y.controls.cancelDisabled||N,onClick:l}),L]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[w,(0,u.jsxs)(`aside`,{className:`rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`sticky top-4 z-10 bg-secondary pb-1`,children:[(0,u.jsxs)(`div`,{"aria-label":`Samples list header`,className:`flex items-center justify-between gap-3`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`Samples`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[A?(0,u.jsx)(O,{iconType:A.active?`fa-solid`:`fa-regular`,iconName:A.active?`square-check`:`square`,iconAlt:A.active?`Close sample selection`:`Select samples`,variant:`ghost`,intent:A.active?`accent`:`primary`,size:`xs`,onClick:()=>m?.({active:!A.active,sampleIds:[]})}):null,(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:S.samples.length})]})]}),A?.active?(0,u.jsx)(ps,{itemLabel:`sample`,selectedCount:j.length,failedCount:M.length,disableAllDisabled:A.disableAllDisabled||S.samples.length===0||!_,onSelectAll:()=>m?.({active:!0,sampleIds:S.samples.map(e=>e.id)}),onSelectFailed:()=>m?.({active:!0,sampleIds:M}),onDisableAll:()=>_?.({sampleIds:S.samples.map(e=>e.id)}),onClear:()=>m?.({active:!0,sampleIds:[]}),onCancel:()=>m?.({active:!1,sampleIds:[]})}):null]}),S.samples.length?(0,u.jsx)(`div`,{className:`mt-4 space-y-2`,children:S.samples.map(e=>{let t=j.includes(e.id),r=A?.active?t:e.id===y.selectedSampleId;return(0,u.jsx)(pe,{sampleId:e.id,sku:e.sku,isSampleable:e.isSampleable,bigCommerceReady:S.region===`north-america`?e.bigCommerceReady:void 0,selected:r,selectionMode:A?.active??!1,onSampleClick:()=>{if(A?.active){m?.({active:!0,sampleIds:t?j.filter(t=>t!==e.id):[...j,e.id]});return}n?.({sampleId:e.id,sku:e.sku})}},e.id)})}):(0,u.jsx)(f,{variant:`free`,className:`mt-4 text-sm text-tertiary`,children:`No samples have been added to this decor.`}),A?.active&&j.length>0?(0,u.jsx)(ms,{itemLabel:`sample`,selectedCount:j.length,deleteDisabled:A.deleteDisabled||!h,onDelete:()=>h?.({sampleIds:j})}):null]})]})]})},vs=({sectionData:e,onSkuSearchChange:t,onSkuSelect:n,onAddSkuClick:r,onSkuVariantSelect:i,onNewSkuChange:a,onSkuFieldChange:o,onSkuLocalizationAvailabilityChange:s,onSkuSave:c,onSkuCancel:l,onSkuCreate:d,onSkuDelete:p,onSkuBulkSelectionChange:m,onSkuBulkDelete:h,onSkuDisableAll:_,onLxUpdate:v,onBigCommerceSync:y})=>{let{editor:b,guide:x}=e,S={region:e.region,skus:e.items},C=S.region===`north-america`,w=S.skus.find(e=>e.id===b.selectedSkuId),T=!!b.integration?.bigCommerceId?.trim(),E=b.integration?.bigCommerceStatusLabel??(T?`Ready`:`Not found`),D=b.integration?.availableForOnlineCheckout??b.integration?.availabilityLabel?.trim().toLowerCase()===`true`,k=S.skus.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.grade} · ${e.size}`})),A=b.bulkSelection,j=A?.selectedIds??[],M=S.skus.filter(e=>!e.isForSale).map(e=>e.id),N=b.saveStatus===`saving`,P=b.variantGroups??[{title:`Grade`,iconName:`layer-group`,dimension:`grade`,options:b.gradeOptions,selectedValue:b.selectedGrade},{title:`Finish`,iconName:`paint-roller`,dimension:`finish`,options:b.finishOptions,selectedValue:b.selectedFinish},{title:`Size`,iconName:`ruler-combined`,dimension:`size`,options:b.sizeOptions,selectedValue:b.selectedSize}],F={...b.implicitVariantSelections,...Object.fromEntries(P.filter(e=>e.selectedValue!==void 0).map(e=>[e.dimension,e.selectedValue]))},I=null;return b.mode===`create`?I=(0,u.jsx)(O,{label:b.createLabel??`Create SKU`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:b.createDisabled,onClick:()=>d?.({sku:b.newSkuValue,grade:b.selectedGrade??``,finish:b.selectedFinish??``,size:b.selectedSize??``,variantSelections:F})}):w&&(I=(0,u.jsx)(O,{label:b.controls.saveLabel,iconType:`fa-solid`,iconName:N?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:b.controls.saveDisabled||N,"aria-busy":N||void 0,onClick:()=>c?.({skuId:w.id})})),(0,u.jsxs)(`section`,{role:`tabpanel`,"aria-label":`Sheets`,className:`mt-5 grid gap-5 md:grid-cols-3`,children:[(0,u.jsxs)(`div`,{className:`space-y-5 md:col-span-2`,children:[(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-end`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-sku-search`,className:`text-sm font-bold text-primary`,children:`Sheet SKU`}),(0,u.jsx)(Wo,{id:`market-readiness-sku-search`,name:`skuSearch`,ariaLabel:`Sheet SKU`,value:b.searchValue,options:k,valueStatus:w?.isForSale===!1&&b.searchValue===w.sku?`inactive`:`default`,placeholder:`Search sheet SKUs`,controlSize:`default`,onQueryChange:t,onClear:()=>t?.({value:``}),onOptionSelect:({option:e})=>{let t=S.skus.find(t=>t.id===e.value);t&&n?.({skuId:t.id,sku:t.sku})}})]}),(0,u.jsx)(O,{label:b.addSkuLabel??`Add Sheet`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:r})]})}),b.mode===`edit`&&!w?(0,u.jsxs)(`section`,{className:`rounded-lg border border-dashed border-borderTertiary bg-secondary p-8 text-center`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`Select a sheet to edit`}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:`Search above or choose one from the sheet list.`})]}):(0,u.jsxs)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:b.mode===`create`?`Create a new sheet SKU`:w?.sku}),w?(0,u.jsxs)(`div`,{className:`ml-auto flex flex-wrap items-center justify-end gap-2`,children:[w.statusLabel?(0,u.jsx)(`span`,{className:`rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-primary`,children:w.statusLabel}):null,(0,u.jsxs)(`span`,{"aria-label":`Big Commerce readiness: ${E}`,className:`rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-primary`,children:[`Big Commerce: `,E]})]}):null]}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:b.mode===`create`?`Choose the variant identity. Existing combinations cannot be created twice.`:`Variant identity and selling fields remain editable. Changes are validated when you save.`})]}),b.mode===`create`?(0,u.jsxs)(`div`,{className:`mt-5`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-new-sku`,className:`text-sm font-bold text-primary`,children:`New SKU`}),(0,u.jsx)(Ho,{id:`market-readiness-new-sku`,name:`newSku`,value:b.newSkuValue,placeholder:`Generated sheet SKU`,leadingIcon:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>a?.({value:e.target.value})})]}):null,(0,u.jsx)(`div`,{className:`mt-5 grid gap-5`,children:P.map(e=>(0,u.jsx)(Vo,{...e,readOnly:e.readOnly??!1,onSelect:(e,t)=>i?.({dimension:e,value:t})},e.dimension))}),b.duplicateMessage?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`mt-4 rounded-md border border-accent bg-accent/10 p-3 text-sm text-accent`,children:b.duplicateMessage}):null,(0,u.jsxs)(`div`,{className:`mt-6 border-t border-borderTertiary pt-5`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:`Lifecycle and selling options`}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:`These values apply to the SKU across all localizations.`}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(us,{fields:b.fields,density:`compact`,severityDisplay:`icon`,fieldMessagePlacement:`below-label`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>o?.({skuId:w?.id,fieldId:e,value:t})})})]}),b.localizationAvailability?.length?(0,u.jsx)(`div`,{className:`mt-6 border-t border-borderTertiary pt-5`,children:(0,u.jsx)(Ko,{label:b.localizationAvailabilityLabel??`Sub-region availability`,defaultOpen:!1,options:b.localizationAvailability.map(e=>({id:`sheet-localization-${e.id}`,name:`sheetLocalizationAvailability`,label:e.label,checked:e.enabled??!0,disabled:e.disabled,onChange:({checked:t})=>s?.({skuId:w?.id,localizationId:e.id,enabled:t})}))})}):null,C&&b.mode===`edit`?(0,u.jsxs)(`div`,{className:`mt-6 space-y-4`,children:[(0,u.jsx)(`section`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:`Big Commerce`}),(0,u.jsxs)(`div`,{"aria-label":`Big Commerce status: ${E}`,className:`mt-2 flex items-center gap-2 text-sm text-primary`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-3 w-3 shrink-0 rounded-full ${T?`bg-saleGreen`:`bg-accent`}`}),(0,u.jsx)(`span`,{children:E})]})]}),w?(0,u.jsx)(O,{label:b.integration?.bigCommerceSyncLabel??`Sync`,iconType:`fa-solid`,iconName:b.integration?.bigCommerceSyncLoading?`spinner`:`arrows-rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,className:`w-24`,disabled:b.integration?.bigCommerceSyncDisabled||b.integration?.bigCommerceSyncLoading||!y,"aria-busy":b.integration?.bigCommerceSyncLoading||void 0,onClick:()=>y?.({skuId:w.id})}):null]})}),(0,u.jsxs)(`section`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,u.jsxs)(`div`,{"aria-label":`LX availability: ${D?`Available`:`Unavailable`}`,className:`flex items-center gap-2`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-3 w-3 shrink-0 rounded-full ${D?`bg-saleGreen`:`bg-accent`}`}),(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:`LX`})]}),w?(0,u.jsx)(O,{label:b.integration?.lxUpdateLabel??`Update`,iconType:`fa-solid`,iconName:b.integration?.lxUpdateLoading?`spinner`:`rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,className:`w-24`,disabled:b.integration?.lxUpdateDisabled||b.integration?.lxUpdateLoading||!v,"aria-busy":b.integration?.lxUpdateLoading||void 0,onClick:()=>v?.({skuId:w.id})}):null]}),(0,u.jsxs)(`dl`,{className:`mt-4 grid gap-4 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`LX SKU`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:b.integration?.lxId??`Not assigned`})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Price`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:b.integration?.priceLabel??`Not available`})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Available For Online Checkout`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:b.integration?.availabilityLabel??`Unknown`})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Last synchronized`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:b.integration?.lastSynchronizedLabel??`Never`})]})]})]})]}):null,(0,u.jsxs)(`footer`,{className:`mt-6 flex flex-col-reverse gap-3 border-t border-borderTertiary pt-5 md:flex-row md:items-end md:justify-between`,children:[(0,u.jsx)(`div`,{children:b.mode===`edit`&&w&&b.deleteLabel&&p?(0,u.jsx)(O,{label:b.deleteLabel,variant:`outline`,intent:`danger`,disabled:b.deleteDisabled||N,onClick:()=>p?.({skuId:w.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(fs,{status:b.saveStatus,label:b.saveStatusLabel,errorMessage:b.saveErrorMessage,lastSavedLabel:b.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(O,{label:b.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:b.controls.cancelDisabled||N,onClick:l}),I]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[x?(0,u.jsx)(hs,{guide:x}):null,(0,u.jsxs)(`aside`,{className:`rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`sticky top-4 z-10 bg-secondary pb-1`,children:[(0,u.jsxs)(`div`,{"aria-label":`Sheets list header`,className:`flex items-center justify-between gap-3`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`Sheets`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[A?(0,u.jsx)(O,{iconType:A.active?`fa-solid`:`fa-regular`,iconName:A.active?`square-check`:`square`,iconAlt:A.active?`Close sheet selection`:`Select sheets`,variant:`ghost`,intent:A.active?`accent`:`primary`,size:`xs`,onClick:()=>m?.({active:!A.active,skuIds:[]})}):null,(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:S.skus.length})]})]}),A?.active?(0,u.jsx)(ps,{itemLabel:`sheet`,selectedCount:j.length,failedCount:M.length,disableAllDisabled:A.disableAllDisabled||S.skus.length===0||!_,onSelectAll:()=>m?.({active:!0,skuIds:S.skus.map(e=>e.id)}),onSelectFailed:()=>m?.({active:!0,skuIds:M}),onDisableAll:()=>_?.({skuIds:S.skus.map(e=>e.id)}),onClear:()=>m?.({active:!0,skuIds:[]}),onCancel:()=>m?.({active:!1,skuIds:[]})}):null]}),(0,u.jsx)(`div`,{className:`mt-4 space-y-2`,children:S.skus.map(e=>{let t=j.includes(e.id),r=A?.active?t:e.id===b.selectedSkuId;return(0,u.jsx)(he,{skuId:e.id,sku:e.sku,lxReady:e.lxReady,bigCommerceReady:S.region===`north-america`?e.bigCommerceReady:void 0,isForSale:e.isForSale,grade:e.grade,finish:e.finish,size:e.size,selected:r,selectionMode:A?.active??!1,onSkuClick:()=>{if(A?.active){m?.({active:!0,skuIds:t?j.filter(t=>t!==e.id):[...j,e.id]});return}n?.({skuId:e.id,sku:e.sku})}},e.id)})}),A?.active&&j.length>0?(0,u.jsx)(ms,{itemLabel:`sheet`,selectedCount:j.length,deleteDisabled:A.deleteDisabled||!h,onDelete:()=>h?.({skuIds:j})}):null]})]})]})},ys=e=>e.itemType===`sheet`?(0,u.jsx)(vs,{...e}):(0,u.jsx)(_s,{...e}),bs=({children:e,layoutVariant:t=`default`})=>{let n={default:``,stacked:`flex-col md:flex-row`,separator:`min-h-10`}[t];return(0,u.jsx)(`section`,{className:`mx-auto flex max-w-6xl justify-center`,children:(0,u.jsx)(`div`,{className:`w-full`,children:(0,u.jsx)(`div`,{className:`flex w-full items-center gap-4 rounded-none bg-secondary px-4 pt-0 pb-8 md:flex-wrap md:rounded-lg md:bg-multibarBackground md:px-2 md:pt-2 md:pb-2 ${n}`.trim(),children:e})})})},xs=({buttonProps:e,mobileButtonProps:t=e,className:n=``})=>(0,u.jsxs)(`div`,{className:`justify-start text-xs ${n}`.trim(),children:[(0,u.jsx)(`div`,{className:`hidden md:block`,children:(0,u.jsx)(O,{...e})}),(0,u.jsx)(`div`,{className:`md:hidden`,children:(0,u.jsx)(O,{...t})})]}),Ss=({dropdownProps:e,className:t=`w-full md:w-70`})=>(0,u.jsx)(`div`,{className:t,children:(0,u.jsx)(Q,{...e})}),Cs={default:`w-full max-w-60`,category:`order-1 min-w-0 flex-1 md:order-0 md:w-60 md:flex-none`,wide:`w-full md:w-80`,full:`w-full`},ws=({searchBarProps:e,searchPlaceholder:t,layoutVariant:n=`default`})=>(0,u.jsx)(`div`,{className:Cs[n],children:(0,u.jsx)(Uo,{...e,placeholder:t??e.placeholder})}),Ts=({onPreviousClick:e,onNextClick:t,prevArrowButtonProps:n,nextArrowButtonProps:r,previousLabel:i=`Prev slide`,nextLabel:a=`Next slide`})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`absolute left-0 top-1/2 -translate-y-1/2 px-6`,children:(0,u.jsx)(O,{variant:`ghost`,"aria-label":i,onClick:e,intent:n?.buttonType??`ghost`,className:n?.className??``,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-left`,alt:``,size:`md`})})}),(0,u.jsx)(`div`,{className:`absolute right-0 top-1/2 -translate-y-1/2 px-6`,children:(0,u.jsx)(O,{variant:`ghost`,"aria-label":a,onClick:t,intent:r?.buttonType??`ghost`,className:r?.className??``,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`md`})})})]}),Es=({count:e,activeIndex:t,onDotClick:n,ariaLabelPrefix:r=`Go to slide`})=>e<=1?null:(0,u.jsx)(`div`,{className:`absolute bottom-4 left-1/2 flex -translate-x-1/2 gap-2`,children:Array.from({length:e},(e,i)=>(0,u.jsx)(`button`,{type:`button`,"aria-label":`${r} ${i+1}`,"aria-current":i===t?`true`:void 0,onClick:()=>n(i),className:[`h-2 w-2 rounded-full`,i===t?`bg-white`:`bg-white/40 hover:bg-white/70`].join(` `)},`dot-${i}`))}),Ds=(e,t)=>Math.max(0,Math.min(e,t-1)),Os=(e,t,n)=>n?(e+t)%t:Ds(e,t),ks=e=>!!(e.eyebrow||e.heading||e.subheading||e.body||e.ctas?.length),As=e=>`Open ${e.heading??`slide`}`,js=({slide:e,heightClassName:t})=>(0,u.jsx)(`div`,{className:`w-full overflow-hidden ${t}`,children:(0,u.jsx)(`img`,{src:e.imageSrc,alt:e.imageAlt??``,className:`w-full h-full object-cover`})}),Ms=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>(0,u.jsx)(f,{as:`a`,href:e.link,variant:`free`,className:`block w-full cursor-pointer`,onClick:n=>{r&&(n.preventDefault(),r(e,t))},children:(0,u.jsx)(js,{slide:e,heightClassName:n})}),Ns=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>(0,u.jsx)(K,{onCardClick:()=>{r(e,t)},ariaLabel:As(e),className:`block w-full cursor-pointer text-left`,children:(0,u.jsx)(js,{slide:e,heightClassName:n})}),Ps=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>e.link?(0,u.jsx)(Ms,{slide:e,index:t,heightClassName:n,onSlideClick:r}):r?(0,u.jsx)(Ns,{slide:e,index:t,heightClassName:n,onSlideClick:r}):(0,u.jsx)(js,{slide:e,heightClassName:n}),Fs=({slide:e})=>(0,u.jsx)(`div`,{className:`absolute inset-0 flex items-center md:items-end`,children:(0,u.jsx)(`div`,{className:`w-full max-w-6xl px-4 md:px-0 md:mx-auto pb-8 md:pb-16`,children:(0,u.jsxs)(`div`,{className:`max-w-2xl`,children:[e.eyebrow?(0,u.jsx)(f,{variant:`free`,className:`text-secondary text-sm font-normal md:font-bold mb-3`,children:e.eyebrow}):null,e.heading?(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-secondary text-3xl md:text-6xl mb-4`,children:e.heading}):null,e.subheading?(0,u.jsx)(f,{variant:`free`,className:`text-secondary text-lg font-bold mb-4 md:max-w-2xl`,children:e.subheading}):null,e.body?(0,u.jsx)(f,{variant:`free`,className:`text-secondary text-base leading-7 mb-6 md:max-w-xl`,children:e.body}):null,e.ctas?.length?(0,u.jsx)(`div`,{className:`flex flex-wrap justify-around md:justify-start md:gap-4`,children:e.ctas.map((e,t)=>(0,u.jsx)(O,{...e},`${e.label??`cta`}-${t}`))}):null]})})}),Is=({slides:e,initialIndex:t=0,showArrows:n=!0,showDots:r=!0,loop:i=!0,nextArrowButtonProps:a,prevArrowButtonProps:o,onSlideChange:s,onSlideClick:l,heightClassName:d=`h-112 md:h-190`,showImageOverlay:f,renderSlide:p})=>{let m=e.length,[h,g]=c.default.useState(()=>Ds(t,m)),_=c.default.useRef(e);c.default.useEffect(()=>{_.current=e},[e]),c.default.useEffect(()=>{let e=Ds(t,m);g(e),s?.(e,_.current[e])},[t,m,s]);let v=e[h],y=m>1,b=!!p,x=!b&&ks(v),S=f??!b,C=t=>{let n=Os(t,m,i);g(n),s?.(n,e[n])};return(0,u.jsxs)(`section`,{className:`relative w-full`,children:[p?p({slide:v,index:h,isActive:!0}):(0,u.jsx)(Ps,{slide:v,index:h,heightClassName:d,onSlideClick:l}),S?(0,u.jsx)(`div`,{"data-testid":`carousel-image-overlay`,className:`absolute inset-0 bg-gradient-to-r from-black/50 via-black/30 to-transparent pointer-events-none`}):null,x?(0,u.jsx)(Fs,{slide:v}):null,n&&y?(0,u.jsx)(`div`,{className:`hidden md:block`,children:(0,u.jsx)(Ts,{onPreviousClick:()=>C(h-1),onNextClick:()=>C(h+1),prevArrowButtonProps:o,nextArrowButtonProps:a})}):null,r&&y?(0,u.jsx)(Es,{count:e.length,activeIndex:h,onDotClick:C}):null]})},Ls=e=>{let t=e.slides??[];return t.length===0?null:(0,u.jsx)(Is,{...e,slides:t})},Rs=e=>[`relative flex h-6 w-6 items-center justify-center border border-secondaryHover`,e.disabled?`opacity-50 cursor-not-allowed`:`cursor-pointer`].join(` `),zs=({options:e=[],label:t,onOptionSelect:n})=>{let[r,i]=(0,c.useState)(!0),a=e=>{if(e.disabled)return;let t={id:e.id,name:e.name,label:e.label,color:e.color,checked:!(e.checked??!1)};if(n){n(t);return}e.onSelect?.(t)};return(0,u.jsx)(`section`,{children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,u.jsxs)(O,{intent:`primary`,variant:`link`,size:`sm`,onClick:()=>i(!r),className:`flex w-full gap-1`,buttonAlignment:`justify-between`,"aria-expanded":r,children:[(0,u.jsx)(f,{variant:`bold`,children:t}),(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`angle-down`,className:`flex transform text-xs text-secondaryActive transition-transform duration-300 ${r?`rotate-180`:``}`})]}),r&&(0,u.jsx)(`ul`,{className:`flex list-none flex-wrap gap-2`,"aria-label":t,children:e.map(e=>(0,u.jsx)(`li`,{children:(0,u.jsx)(`button`,{type:`button`,className:Rs(e),style:{backgroundColor:e.color},onClick:()=>a(e),disabled:e.disabled??!1,"aria-pressed":e.checked??!1,"aria-label":e.label,title:e.label,children:e.checked?(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`check`,size:`xs`,color:e.checkIconColor??`secondary`}):null})},`${e.name}-${e.id}`))})]})})},Bs=({categoryText:e,tags:t=[],onTagClick:n})=>!e&&!t.length?null:(0,u.jsxs)(`div`,{className:`absolute left-4 bottom-10 md:static`,children:[e?(0,u.jsx)(f,{variant:`free`,className:`mb-2 md:mb-0 md:absolute md:bottom-10 md:left-15 text-secondary`,children:e}):null,t.length?(0,u.jsx)(`div`,{className:`md:absolute md:bottom-10 md:right-15 flex md:flex-wrap gap-4`,children:t.map(e=>(0,u.jsx)(O,{label:e.label,size:`sm`,intent:`secondary`,onClick:()=>n?.(e)},e.id))}):null]}),Vs=({heading:e,subheading:t,body:n,eyebrow:r,ctas:i=[]})=>(0,u.jsx)(`div`,{className:`md:mx-25 w-full md:max-w-312.5`,children:(0,u.jsxs)(`div`,{className:`w-full max-w-2xl px-4 md:px-0 md:py-10 text-left`,children:[r?(0,u.jsx)(f,{variant:`standard`,className:`mb-3 md:mb-5`,children:r}):null,(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-secondary text-3xl md:text-6xl mb-4`,children:e}),t?(0,u.jsx)(f,{variant:`free`,className:`text-secondary text-xl md:text-4xl font-bold mb-4`,children:t}):null,n?(0,u.jsx)(f,{variant:`free`,className:`text-secondary text-base mb-6`,children:n}):null,i.length?(0,u.jsx)(`div`,{className:`flex flex-wrap md:gap-4`,children:i.map((e,t)=>(0,u.jsx)(O,{label:e.label,variant:e.variant??`solid`,intent:e.intent??`accent`,className:e.className??`md:w-36`,onClick:e.onCtaClick},`${e.label}-${t}`))}):null]})}),Hs=({heading:e,subheading:t,articleCategory:n,ctaLabel:r,onCtaClick:i})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`md:absolute md:bottom-10 md:left-10 w-full md:max-w-lg md:text-left`,children:[n?(0,u.jsx)(`div`,{children:(0,u.jsx)(O,{label:n,variant:`solid`,intent:`accent`,size:`sm`,className:`mx-auto md:mx-0`})}):null,(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`my-4 text-2xl md:text-4xl text-primary md:text-secondary text-center md:text-left`,children:e}),t?(0,u.jsx)(f,{variant:`eyebrow`,className:`text-primary md:text-secondary text-center md:text-left`,children:t}):null,r?(0,u.jsx)(`div`,{className:`md:hidden mt-8 w-full`,children:(0,u.jsx)(O,{variant:`solid`,intent:`accent`,label:r,className:`w-full`,onClick:i})}):null]}),r?(0,u.jsx)(`div`,{className:`hidden md:block absolute bottom-10 right-10`,children:(0,u.jsx)(O,{variant:`outline`,intent:`secondary`,size:`lg`,className:`border-2 p-2! text-secondary`,onClick:i,"aria-label":r,children:(0,u.jsx)(wo,{icon:Do,className:`h-4 w-4 -rotate-45 text-secondary`})})}):null]}),Us=({heading:e,subheading:t,body:n,linkLabel:r,onLinkClick:i})=>(0,u.jsx)(`div`,{className:`mt-10 w-full md:mt-20`,children:(0,u.jsxs)(`div`,{className:`w-full md:w-1/2 py-10 text-left`,children:[(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`mb-3! md:mb-1! text-secondary text-2xl md:text-5xl uppercase`,children:e}),t?(0,u.jsx)(f,{variant:`body`,className:`mb-6 text-secondary text-base font-light uppercase`,children:t}):null,n?(0,u.jsx)(f,{variant:`body`,className:`text-secondary text-base font-light`,children:n}):null,r?(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(O,{label:r,iconType:`fa-solid`,iconName:`fa-arrow-right`,iconPosition:`right`,variant:`link`,intent:`primary`,onClick:i,className:`border-0! px-0! text-secondary! hover:text-accent!`})}):null]})}),Ws=({links:e,className:t=``,linkClassName:n=``})=>e.length?(0,u.jsx)(`div`,{className:`flex items-center gap-3 ${t}`.trim(),children:e.map(e=>{let t=e.target??`_blank`,r=e.rel??(t===`_blank`?`noreferrer noopener`:void 0);return(0,u.jsx)(`a`,{href:e.href,"aria-label":e.label,target:t,rel:r,className:`inline-flex h-8 w-8 items-center justify-center rounded-full border border-primary text-primary transition-colors hover:bg-primary hover:text-secondary ${n}`.trim(),children:(0,u.jsx)(g,{iconType:e.iconType??`fa-brands`,iconName:e.iconName,alt:``,size:`base`})},`${e.label}-${e.href}`)})}):null,Gs=({imageSrc:e,imageAlt:t=``,label:n,onCardClick:r,body:i,aspectRatio:a=`video`})=>{let o=(0,u.jsxs)(`div`,{className:`group relative ${a===`compact`?`aspect-video md:aspect-7/6`:`aspect-video`} w-full overflow-hidden rounded-lg`,children:[(0,u.jsx)(j,{src:e,alt:t,className:`h-full w-full object-cover transition-transform duration-300 group-hover:scale-105`,quality:90}),(0,u.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-black/70 via-black/25 to-transparent`}),(0,u.jsxs)(`div`,{className:`absolute bottom-4 left-4 mr-28`,children:[(0,u.jsx)(f,{variant:`free`,className:`mb-2 text-sm font-bold text-secondary`,children:n}),i&&(0,u.jsx)(f,{variant:`free`,className:`text-sm font-light text-secondary`,children:i})]}),r?(0,u.jsx)(`span`,{className:`absolute bottom-3 right-3 inline-flex h-9 w-9 items-center justify-center rounded-md border-2 border-secondary text-secondary transition-colors group-hover:bg-secondary group-hover:text-primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`arrow-right`,color:`inherit`,className:`-rotate-45`})}):null]});return r?(0,u.jsx)(K,{onCardClick:r,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:o}):o},Ks=({videoEmbedUrl:e,videoTitle:t,videoMessage:n})=>{let r=n?.trim();return(0,u.jsxs)(`div`,{className:`w-full`,children:[(0,u.jsx)(P,{src:e,title:t,className:`aspect-video rounded-lg`}),r?(0,u.jsx)(f,{variant:`caption`,className:`mt-2`,children:r}):null]})},qs=({title:e,details:t,iconName:n=`file-pdf`,onDocumentClick:r})=>(0,u.jsx)(O,{buttonType:`primary`,variant:`outline`,buttonAlignment:`justify-start`,onClick:r,className:`w-full block shrink-0 cursor-pointer text-left border-2 border-secondaryActive rounded-lg px-5 py-4`,children:(0,u.jsxs)(`div`,{className:`w-full flex`,children:[(0,u.jsx)(`div`,{className:`flex row-span-2 mr-2`,children:(0,u.jsx)(g,{iconType:`fa-regular`,iconName:n,size:`4xl`})}),(0,u.jsxs)(`div`,{className:`flex flex-col`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary font-medium`,children:e}),(0,u.jsx)(f,{variant:`free`,className:`text-xs text-secondaryActive`,children:t})]})]})}),Js=({question:e,answer:t,initiallyOpen:n=!1})=>{let[r,i]=(0,c.useState)(n),a=(0,c.useId)();return(0,u.jsx)(K,{onCardClick:()=>i(e=>!e),ariaLabel:`${r?`Collapse`:`Expand`} ${e}`,ariaControls:a,ariaExpanded:r,className:`border border-primary rounded-lg w-full`,children:(0,u.jsxs)(`div`,{className:`flex flex-row justify-between gap-1 rounded-lg border-l-18 transition-all duration-300 ${r?`border-accent py-9 px-4 md:px-12`:`border-secondaryActive py-4 px-4 md:px-12`}`,children:[(0,u.jsxs)(`div`,{className:`w-full`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary font-medium text-left`,children:e}),(0,u.jsx)(`div`,{id:a,"aria-hidden":!r,className:`overflow-hidden transition-all duration-300 ${r?`opacity-100 pt-4`:`max-h-0 opacity-0 pt-0`}`,children:(0,u.jsx)(f,{variant:`body`,className:`text-left`,children:t})})]}),(0,u.jsx)(`div`,{className:`flex items-start`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`angle-down`,className:`transform transition-transform duration-300 text-secondaryActive text-lg ${r?`rotate-180`:``}`})})]})})},Ys=({imageSrc:e,imageAlt:t=``,headline:n,body:r,buttons:i=[],align:a=`right`,layoutVariant:o=`default`,onButtonClick:s})=>{let c=a===`right`,l=o===`underBanner`?`mt-10 md:mt-20`:``,d=n?.trim()??``,p=i.filter(e=>e.buttonLabel.trim().length>0),m=(e,t)=>{s?.({buttonLabel:e.buttonLabel,buttonHref:e.buttonHref,index:t})};return(0,u.jsxs)(`section`,{className:`w-full flex flex-col ${l} ${c?`md:flex-row-reverse`:`md:flex-row`}`,children:[(0,u.jsx)(`div`,{className:`w-full md:w-2/3`,children:(0,u.jsx)(j,{src:e,alt:t,className:`aspect-6/7 w-full object-cover rounded-lg md:aspect-video ${c?`md:rounded-l-lg`:`md:rounded-r-lg`}`,quality:90})}),(0,u.jsxs)(`div`,{className:`flex w-full flex-col justify-center bg-white px-4 md:w-1/3 md:px-0 md:py-14 ${c?`md:pr-7`:`md:pl-7`}`,children:[d&&(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`mb-4 text-center text-2xl md:mx-0 md:text-left md:text-4xl`,children:d}),(0,u.jsx)(f,{variant:`body`,className:`mb-6 text-center md:mb-20 md:text-left`,children:r}),p.length>0&&(0,u.jsx)(`div`,{"data-testid":`info-card-actions`,className:`flex w-full flex-col gap-2 md:gap-4`,children:p.map((e,t)=>(0,u.jsx)(O,{label:e.buttonLabel,variant:e.variant??`solid`,intent:e.intent??`accent`,size:e.size??`md`,fullWidth:!0,onClick:()=>m(e,t)},`${e.buttonLabel}-${t}`))})]})]})},Xs=({iconType:e,iconName:t,title:n,body:r,href:i,linkLabel:a=`Learn more`,onLinkClick:o})=>{let s=(0,u.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-accent hover:underline underline-offset-4 text-sm`,children:[(0,u.jsx)(f,{as:`span`,variant:`body`,className:`!text-inherit`,children:a}),(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`arrow-right`,size:`sm`,className:`translate-y-[1px]`})]}),c=null;return i?c=(0,u.jsx)(`a`,{href:i,onClick:o,className:`inline-flex`,children:s}):o&&(c=(0,u.jsx)(`button`,{type:`button`,onClick:o,className:`inline-flex`,children:s})),(0,u.jsx)(`section`,{className:`w-full`,children:(0,u.jsxs)(`div`,{className:`flex flex-col items-start`,children:[(0,u.jsx)(g,{iconType:e,iconName:t,size:`lg`,className:`mb-3`}),(0,u.jsx)(f,{as:`h3`,variant:`bold`,className:`mb-2`,children:n}),(0,u.jsx)(f,{variant:`body`,className:`mb-3 leading-relaxed text-sm text-light`,children:r}),c]})})},Zs=[{key:`lrv`,code:`LRV`,iconName:`fa-sun`},{key:`ral`,code:`RAL`,iconName:`fa-palette`},{key:`ncs`,code:`NCS`,iconName:`fa-swatchbook`}],Qs=e=>e!=null&&String(e).trim().length>0,$s=({colourMatching:e})=>{let t=Zs.map(t=>({...t,value:e?.[t.key]})).filter(e=>Qs(e.value));return t.length?(0,u.jsxs)(`section`,{"aria-label":`Colour Matching Information`,className:`mt-2 flex flex-col gap-2`,children:[(0,u.jsx)(f,{as:`h3`,variant:`bold`,className:`mb-0 text-sm md:text-base`,children:`Colour Matching Information`}),(0,u.jsx)(`dl`,{className:`grid grid-cols-1 gap-2 text-sm text-primary`,children:t.map(e=>(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:e.iconName,size:`sm`,color:`secondaryHover`,className:`w-4 shrink-0`}),(0,u.jsxs)(`dt`,{className:`font-medium`,children:[e.code,`:`]}),(0,u.jsx)(`dd`,{children:e.value})]},e.key))})]}):null},ec=e=>[`h-9 w-9 border-2 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),tc=({imageSrc:e,imageAlt:t,title:n,brand:r,decorNumber:i,finish:a,size:o,quantity:s,price:c,unitPrice:l,totalPrice:d,showPricing:p=!0,minQuantity:m=1,maxQuantity:h=99,isReadOnly:g=!1,removeItemLabel:_=`Remove item`,decreaseQuantityLabel:v=`Decrease quantity`,increaseQuantityLabel:y=`Increase quantity`,onQuantityChange:b,onRemoveItem:x})=>{let S=s>m,C=s<h,w=()=>{g||!S||b?.(s-1)},T=()=>{g||!C||b?.(s+1)},E=()=>{g||x?.()},D=d?.label||c?.label,k=`flex items-center gap-3 bg-tertiaryActive`;return g&&(k=p?`grid grid-cols-[minmax(0,1fr)_120px_120px_120px] items-center gap-6`:`grid grid-cols-[minmax(0,1fr)_120px] items-center gap-6`),(0,u.jsxs)(`div`,{className:`rounded-lg p-5 ${k}`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center`,children:[(0,u.jsx)(j,{src:e,alt:t||n,quality:90,className:`h-16 w-16 rounded-lg`}),(0,u.jsxs)(`div`,{className:`ml-4 min-w-0 pr-2`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs text-tertiary`,children:i}),(0,u.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-2`,children:[(0,u.jsx)(f,{variant:`bold`,className:`min-w-0 font-bold`,children:n}),a&&o?(0,u.jsxs)(f,{variant:`free`,className:`text-base text-tertiary`,children:[a,`, `,o]}):null]}),(0,u.jsx)(f,{variant:`free`,className:`text-primary text-sm`,children:r})]})]}),g?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(`div`,{className:`flex h-10 min-w-10 items-center justify-center rounded-md px-3`,children:(0,u.jsx)(f,{as:`span`,variant:`free`,className:`text-primary`,children:s})})}),p?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(f,{variant:`free`,className:`text-primary`,children:l?.label})}),(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(f,{variant:`free`,className:`font-extrabold text-primary`,children:D})})]}):null]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`flex shrink-0 items-center justify-end gap-1`,children:[S?(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":v,type:`button`,disabled:!S,onClick:w,className:ec(S)}):(0,u.jsx)(O,{iconType:`fa-regular`,iconName:`trash-can`,intent:`ghost`,variant:`solid`,"aria-label":_,type:`button`,onClick:E,className:`h-9 w-9 border-2 border-secondaryActive! text-primary! hover:text-accent!`}),(0,u.jsx)(`div`,{className:`flex min-w-7 items-center justify-center`,children:(0,u.jsx)(f,{as:`span`,variant:`free`,children:s})}),(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":y,type:`button`,disabled:!C,onClick:T,className:ec(C)})]}),p?(0,u.jsx)(`div`,{className:`flex w-24 shrink-0 justify-end`,children:D?(0,u.jsx)(f,{variant:`free`,className:`text-primary`,children:D}):null}):null]})]})},nc=/^(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?$/,rc=new Intl.DateTimeFormat(`en-US`,{month:`long`,day:`numeric`,year:`numeric`,timeZone:`UTC`}),ic=e=>{let t=nc.exec(e);if(!t)return null;let[,n,r,i,a=`0`,o=`0`,s=`0`]=t;return new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(a),Number(o),Number(s)))},ac=e=>{let t=ic(e);if(t)return t;let n=new Date(e);return Number.isNaN(n.getTime())?null:n},oc=e=>{let t=e?.trim();if(!t)return``;let n=ac(t);return n?rc.format(n):t},sc=e=>e===`mediaRightCompact`?`aspect-video h-auto md:h-full w-full rounded-lg object-cover mb-0`:`h-48 md:h-full w-full md:aspect-video rounded-lg object-cover mb-4 md:mb-0`,cc=({layoutVariant:e,mediaType:t,imageSrc:n,imageAlt:r,videoEmbedUrl:i,videoTitle:a,title:o})=>{let s=sc(e);return t===`video`&&i?(0,u.jsx)(P,{src:i,title:a??o,className:s}):n?(0,u.jsx)(j,{src:n,alt:r??``,className:s,quality:90}):null},lc=({layoutVariant:e=`default`,mediaType:t=`image`,imageSrc:n,imageAlt:r=``,videoEmbedUrl:i,videoTitle:a,category:o,title:s,publishDate:c,body:l,buttonLabel:d,onViewClick:p,actionFooter:m})=>{let h=[`w-full md:flex`,e===`mediaRightCompact`?`md:flex-row-reverse md:gap-0`:`md:flex-row md:gap-8`].join(` `),g=e===`mediaRightCompact`?`w-full md:w-2/3`:`w-full md:w-1/2`,_=[`flex w-full flex-col justify-center`,e===`mediaRightCompact`?`md:w-1/3 md:pr-14`:`md:w-1/2`].join(` `),v=oc(c),y=d.trim();return(0,u.jsxs)(`article`,{className:h,children:[(0,u.jsx)(`div`,{className:g,children:cc({layoutVariant:e,mediaType:t,imageSrc:n,imageAlt:r,videoEmbedUrl:i,videoTitle:a,title:s})}),(0,u.jsxs)(`div`,{className:_,children:[o?(0,u.jsx)(f,{as:`p`,variant:`navlink`,className:`mt-4 mb-2 md:mt-0 md:mb-4 underline underline-offset-4`,children:o}):null,(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-2xl md:text-3xl mb-2 md:mb-4`,children:s}),v?(0,u.jsx)(f,{variant:`body`,className:`mb-2 md:mb-4`,children:v}):null,(0,u.jsx)(f,{variant:`body`,className:`mb-4 md:mb-8`,children:l}),y?(0,u.jsx)(`div`,{children:(0,u.jsx)(O,{variant:`outline`,intent:`accent`,size:`sm`,label:y,onClick:p,className:`px-8 py-2`})}):null,m?(0,u.jsx)(`div`,{className:`mt-4`,children:m}):null]})]})},uc=({heading:e,body:t,buttonLabel:n,buttonHref:r,onButtonClick:i})=>(0,u.jsxs)(`article`,{className:`w-full bg-white px-6 py-12 text-center md:px-24 md:py-16`,children:[(0,u.jsx)(f,{as:`h2`,variant:`h2`,className:`mb-6`,children:e}),t?(0,u.jsx)(f,{variant:`body`,className:`mx-auto mb-6 max-w-2xl`,children:t}):null,(0,u.jsx)(O,{variant:`solid`,intent:`accent`,label:n,className:`mx-auto w-full max-w-md`,onClick:()=>{i?.({heading:e,body:t,buttonLabel:n,buttonHref:r})}})]}),dc={complete:{iconName:`check`,iconClassName:`border-saleGreen bg-saleGreen/10 text-saleGreen`,statusClassName:`text-saleGreen`},partial:{iconName:`exclamation`,iconClassName:`border-yellow-500 bg-yellow-50 text-yellow-700`,statusClassName:`text-yellow-700`},missing:{iconName:`exclamation`,iconClassName:`border-accent bg-accent/10 text-accent`,statusClassName:`text-accent`},notRequired:{iconName:`minus`,iconClassName:`border-secondaryHover bg-tertiaryActive text-secondaryActive`,statusClassName:`text-secondaryActive`}},fc=({id:e,title:t,description:n,status:r,statusLabel:i,selected:a=!1,onCardClick:o})=>{let s=dc[r],c=n?.trim()??``,l=(0,u.jsxs)(`article`,{"aria-current":a?`true`:void 0,className:[`flex w-full items-start gap-3 rounded-lg border bg-secondary p-3 text-left transition`,a?`border-primary shadow-sm`:`border-borderTertiary hover:border-secondaryActive`].join(` `),children:[(0,u.jsx)(`span`,{"aria-label":`Status: ${i}`,className:`flex h-7 w-7 shrink-0 items-center justify-center rounded-full border ${s.iconClassName}`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:s.iconName,alt:``,size:`xs`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:t}),c?(0,u.jsx)(f,{variant:`free`,className:`mt-0.5 text-xs text-primary`,children:c}):null,(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs font-medium ${s.statusClassName}`,children:i})]})]});return o?(0,u.jsx)(K,{ariaLabel:`Edit ${t} localization`,className:`block w-full cursor-pointer rounded-lg text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,onCardClick:()=>o({id:e,title:t,status:r,statusLabel:i}),children:l}):l},pc={new:{bannerText:`NEW`,bannerContainerClassName:`absolute -left-2 -right-2 top-4 md:top-8 z-10 flex h-7 md:h-8 border border-secondaryActive bg-secondary shadow-xl/50`,bannerTextClassName:`m-auto text-primary text-center font-medium text-md md:text-lg`,specialText:``,specialTextClassName:``},discontinued:{bannerText:`DISCONTINUED`,bannerContainerClassName:`absolute -left-2 -right-2 top-4 md:top-8 z-10 flex h-7 md:h-8 border border-secondaryActive bg-primary shadow-xl/50`,bannerTextClassName:`m-auto text-secondary text-center font-medium text-md md:text-lg`,specialText:``,specialTextClassName:``},comingSoon:{bannerText:`COMING SOON`,bannerContainerClassName:`absolute -left-2 -right-2 top-4 md:top-8 z-10 flex h-7 md:h-8 border border-secondaryActive bg-accent shadow-xl/50`,bannerTextClassName:`m-auto text-secondary text-center font-medium text-md md:text-lg`,specialText:`Retail Exclusive`,specialTextClassName:`text-lg font-bold md:font-extrabold text-accent`},sale:{bannerText:`SALE`,bannerContainerClassName:`absolute -left-2 -right-2 top-4 md:top-8 z-10 flex h-7 md:h-8 border border-secondaryActive bg-saleGreen shadow-xl/50`,bannerTextClassName:`m-auto text-secondary text-center font-medium text-md md:text-lg`,specialText:`Sale`,specialTextClassName:`text-lg font-bold md:font-extrabold text-saleGreen`}},mc=`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbGw9IiNFNUU1RTUiLz4KICA8cmVjdCB4PSIxIiB5PSIxIiB3aWR0aD0iMjk4IiBoZWlnaHQ9IjI5OCIgZmlsbD0iI0YzRjNGMyIgc3Ryb2tlPSIjRDBEMEQwIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBkPSJNNDggMjAzTDExMCAxNDFMMTUzIDE4NEwyMjYgMTExTDI1MiAxMzdWMjUySDQ4VjIwM1oiIGZpbGw9IiNEOEQ4RDgiLz4KICA8Y2lyY2xlIGN4PSIxMDIiIGN5PSI5MSIgcj0iMjYiIGZpbGw9IiNEOEQ4RDgiLz4KICA8dGV4dCB4PSIxNTAiIHk9IjI3OCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iIzdBN0E3QSIgZm9udC1mYW1pbHk9IkFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjE4Ij5JbWFnZSBVbmF2YWlsYWJsZTwvdGV4dD4KPC9zdmc+Cg==`,hc=({imageSrc:e,imageFallbackSrc:t,imageAlt:n,title:r,brand:i,product:a,decorNumber:o,status:s,onSwatchClick:c})=>{let l=s?pc[s]:null,d=typeof c==`function`,p=(0,u.jsx)(L,{src:e,fallbackSrc:t,placeholderSrc:mc,alt:typeof n==`string`&&n.trim().length>0?n:`${r} placeholder image`,quality:90,placeholderClassName:`block h-full w-full object-cover`,imageClassName:`absolute inset-0 block h-full w-full object-cover`}),m=`relative block aspect-square w-full overflow-hidden border-0 bg-neutral-100 p-0 text-left`;return(0,u.jsxs)(`section`,{className:`w-full flex flex-col md:flex-nowrap md:max-w-64 mx-auto items-center`,children:[(0,u.jsxs)(`div`,{className:`relative md:flex md:w-full w-52`,children:[d?(0,u.jsx)(K,{onCardClick:c,className:`${m} cursor-pointer`,ariaLabel:`Open ${r}${o}`,children:p}):(0,u.jsx)(`div`,{className:m,children:p}),l?(0,u.jsx)(`div`,{className:l.bannerContainerClassName,children:(0,u.jsx)(f,{variant:`free`,className:l.bannerTextClassName,children:l.bannerText})}):null]}),(0,u.jsxs)(`div`,{className:`mt-2 md:w-full md:px-2`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm text-tertiary`,children:o}),(0,u.jsx)(f,{variant:`free`,className:`text-primary text-lg font-bold`,children:r}),(0,u.jsx)(f,{variant:`free`,className:`text-base text-primary`,children:i}),a&&(0,u.jsx)(f,{variant:`free`,className:`text-base text-primary`,children:a}),l?.specialText?(0,u.jsx)(f,{variant:`free`,className:l.specialTextClassName,children:l.specialText}):null]})]})},gc=({address:e,defaultLabel:t=`Default address`,editLabel:n=`Edit`,removeLabel:r=`Remove`,onEditClick:i,onRemoveClick:a})=>(0,u.jsxs)(`article`,{className:`relative flex w-full flex-col rounded-lg border border-borderTertiary bg-white p-6`,children:[e.isDefault?(0,u.jsx)(`span`,{className:`mb-4 w-fit rounded-full bg-primary px-3 py-1 text-xs font-semibold text-white`,children:t}):null,(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`font-rockwell text-xl text-primary`,children:e.fullName}),e.company?(0,u.jsx)(f,{className:`mt-2`,children:e.company}):null,(0,u.jsxs)(`address`,{className:`mt-3 not-italic`,children:[e.addressLines.map(e=>(0,u.jsx)(f,{className:`text-secondaryActive`,children:e},e)),e.phoneNumber?(0,u.jsx)(f,{className:`mt-1 text-secondaryActive`,children:e.phoneNumber}):null]}),(0,u.jsxs)(`div`,{className:`mt-6 flex flex-wrap gap-3 border-t border-borderTertiary pt-4`,children:[(0,u.jsx)(O,{label:n,iconType:`fa-solid`,iconName:`pen`,iconAlt:``,variant:`link`,intent:`accent`,size:`sm`,onClick:()=>i({address:e})}),(0,u.jsx)(O,{label:r,iconType:`fa-solid`,iconName:`trash-can`,iconAlt:``,variant:`link`,intent:`danger`,size:`sm`,onClick:()=>a({address:e})})]})]}),_c={neutral:`bg-tertiaryActive text-primary`,accent:`bg-accent text-white`,success:`bg-green-50 text-primary`},vc=({orderNumber:e,orderDate:t,status:n,statusTone:r=`neutral`,projectName:i,invoiceLabel:a=`Download invoice`,onInvoiceClick:o})=>(0,u.jsx)(`header`,{className:`w-full rounded-lg border border-borderTertiary bg-adminSideNavBackground p-5 md:p-6`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-5 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,u.jsxs)(f,{as:`h1`,variant:`free`,className:`font-rockwell text-3xl text-primary`,children:[`Order #`,e]}),(0,u.jsx)(`span`,{className:`rounded-full px-3 py-1 text-sm font-semibold ${_c[r]}`,children:n})]}),(0,u.jsxs)(f,{className:`mt-3 text-secondaryActive`,children:[`Placed `,t]}),i?(0,u.jsxs)(f,{className:`mt-1 text-secondaryActive`,children:[`Project: `,i]}):null]}),o?(0,u.jsx)(`div`,{className:`md:shrink-0`,children:(0,u.jsx)(O,{label:a,iconType:`fa-solid`,iconName:`download`,iconAlt:``,intent:`primary`,onClick:o})}):null]})}),yc={neutral:`bg-tertiaryActive text-primary`,accent:`bg-accent text-white`,success:`bg-green-50 text-primary`},bc=({item:e,onProductClick:t,onTrackingClick:n})=>{let r=`${e.quantity}${e.quantityUnit?` ${e.quantityUnit}`:``}`,i=e.trackingNumber?n?(0,u.jsxs)(`button`,{type:`button`,className:`text-left text-sm font-semibold text-accent hover:underline`,onClick:()=>n({item:e}),children:[`Track shipment `,e.trackingNumber]}):(0,u.jsxs)(f,{className:`text-sm text-primary`,children:[`Tracking: `,e.trackingNumber]}):(0,u.jsx)(f,{className:`text-sm text-secondaryActive`,children:`Tracking available after shipment`});return(0,u.jsxs)(`article`,{className:`w-full rounded-lg border border-borderTertiary bg-adminSideNavBackground p-5 md:p-6`,children:[(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-6 md:grid-cols-5 md:items-center`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 gap-4 md:col-span-2`,children:[(0,u.jsx)(j,{src:e.imageSrc,alt:e.imageAlt,quality:90,className:`h-20 w-20 shrink-0 rounded-lg object-cover`}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[t?(0,u.jsx)(`button`,{type:`button`,className:`text-left font-semibold text-primary hover:text-accent hover:underline`,onClick:()=>t({item:e}),children:e.title}):(0,u.jsx)(f,{variant:`free`,className:`font-semibold text-primary`,children:e.title}),(0,u.jsxs)(f,{className:`mt-1 text-sm text-secondaryActive`,children:[`SKU `,e.sku]}),e.brand?(0,u.jsx)(f,{className:`mt-1 text-sm text-primary`,children:e.brand}):null,e.description?(0,u.jsx)(f,{className:`mt-1 text-sm text-secondaryActive`,children:e.description}):null]})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{className:`text-xs font-semibold uppercase text-secondaryActive`,children:`Quantity`}),(0,u.jsx)(f,{className:`mt-1 text-sm text-primary`,children:r})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{className:`text-xs font-semibold uppercase text-secondaryActive`,children:`Unit price`}),(0,u.jsx)(f,{className:`mt-1 text-sm text-primary`,children:e.unitPrice})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{className:`text-xs font-semibold uppercase text-secondaryActive`,children:`Total`}),(0,u.jsx)(f,{className:`mt-1 font-semibold text-primary`,children:e.total})]})]}),(0,u.jsxs)(`div`,{className:`mt-5 flex flex-col gap-3 border-t border-borderTertiary pt-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,u.jsx)(`span`,{className:`rounded-full px-3 py-1 text-sm font-semibold ${yc[e.statusTone??`neutral`]}`,children:e.status}),e.statusDetail?(0,u.jsx)(f,{className:`text-sm text-secondaryActive`,children:e.statusDetail}):null]}),i]})]})},xc=e=>[`flex w-full items-center gap-3 rounded-md px-3 py-3 text-left text-sm font-semibold transition`,e?`bg-tertiaryActive text-primary`:`text-primary hover:bg-tertiaryActive`].join(` `),Sc=({items:e,activeItemId:t,ariaLabel:n=`Admin navigation`,logo:r,menuLabel:i=`Open navigation menu`,logoutLabel:a=`Log out`,onMenuClick:o,onItemClick:s,onLogoutClick:c})=>{let l=e=>{s?.({item:e})};return(0,u.jsxs)(`nav`,{"aria-label":n,className:`flex h-full min-h-96 w-full flex-col border-r border-borderTertiary bg-secondary p-4`,children:[(0,u.jsxs)(`div`,{className:`mb-6 flex min-h-12 items-center justify-between gap-3`,children:[r?(0,u.jsx)(j,{src:r.imageUrl,alt:r.altText,className:`max-h-10 min-w-0 flex-1 object-contain object-left`,quality:90,fit:`contain`}):null,(0,u.jsx)(`button`,{type:`button`,"aria-label":i,className:`flex h-9 w-9 shrink-0 items-center justify-center rounded-md text-primary hover:bg-tertiaryActive`,onClick:o,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`bars`,alt:``,size:`md`})})]}),(0,u.jsx)(`ul`,{className:`space-y-2`,children:e.map(e=>{let n=e.id===t;return(0,u.jsx)(`li`,{children:(0,u.jsxs)(`button`,{type:`button`,"aria-current":n?`page`:void 0,className:xc(n),onClick:()=>l(e),children:[(0,u.jsx)(g,{iconType:e.iconType??`fa-solid`,iconName:e.iconName,alt:``,size:`md`,className:`shrink-0`}),(0,u.jsx)(f,{variant:`free`,className:`text-sm text-inherit`,children:e.label})]})},e.id)})}),(0,u.jsxs)(`button`,{type:`button`,className:`mt-auto flex w-full items-center gap-3 rounded-md px-3 py-3 text-left text-sm font-semibold text-primary transition hover:bg-tertiaryActive`,onClick:c,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`right-from-bracket`,alt:``,size:`md`,className:`shrink-0`}),(0,u.jsx)(f,{variant:`free`,className:`text-sm text-inherit`,children:a})]})]})},Cc=1500,wc=2e4,Tc=21,Ec=2*Math.PI*Tc,Dc=e=>Math.min(100,Math.max(0,e)),Oc=({job:e,completionDisplayDuration:t,onClick:n,onDismiss:r})=>{let[i,a]=(0,c.useState)(!1),o=Dc(e.percentDone),s=(0,c.useRef)(e),l=(0,c.useRef)(r);s.current=e,l.current=r,(0,c.useEffect)(()=>{if(o<100){a(!1);return}let e=window.setTimeout(()=>a(!0),t),n=window.setTimeout(()=>l.current(s.current),t+Cc);return()=>{window.clearTimeout(e),window.clearTimeout(n)}},[t,o]);let d=Ec-o/100*Ec,f=o===100?`text-saleGreen`:`text-primary`;return(0,u.jsx)(`li`,{className:`transition-opacity ${i?`opacity-0`:`opacity-100`}`,style:{transitionDuration:`${Cc}ms`},children:(0,u.jsxs)(`button`,{type:`button`,className:`group flex w-full items-center gap-3 rounded-lg p-2 text-left text-primary transition hover:bg-tertiaryActive focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary`,"aria-label":`${e.name}: ${e.status}, ${Math.round(o)}% complete`,title:`${e.name} - ${e.status}`,onClick:()=>n?.(e),children:[(0,u.jsxs)(`span`,{className:`relative flex h-12 w-12 shrink-0 items-center justify-center`,children:[(0,u.jsxs)(`svg`,{className:`absolute inset-0 h-full w-full -rotate-90`,viewBox:`0 0 48 48`,role:`progressbar`,"aria-label":`${e.name} progress`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(o),children:[(0,u.jsx)(`circle`,{cx:`24`,cy:`24`,r:Tc,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,className:`text-tertiaryActive`}),(0,u.jsx)(`circle`,{cx:`24`,cy:`24`,r:Tc,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,strokeDasharray:Ec,strokeDashoffset:d,className:f})]}),(0,u.jsxs)(`span`,{className:`text-xs font-bold tabular-nums`,children:[Math.round(o),`%`]})]}),(0,u.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`span`,{className:`block truncate text-sm font-semibold`,children:e.name}),(0,u.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-tertiary`,children:e.status})]})]})})},kc=({jobs:e,ariaLabel:t=`Background jobs`,completionDisplayDuration:n=wc,onJobClick:r,onJobDismiss:i})=>{let[a,o]=(0,c.useState)(e),s=(0,c.useRef)(new Set);(0,c.useEffect)(()=>{let t=new Set(e.map(({id:e})=>e));for(let e of s.current)t.has(e)||s.current.delete(e);for(let t of e)Dc(t.percentDone)<100&&s.current.delete(t.id);o(n=>{let r=n.filter(e=>Dc(e.percentDone)===100&&!t.has(e.id)&&!s.current.has(e.id));return[...e.filter(e=>!s.current.has(e.id)),...r]})},[e]);let l=(0,c.useCallback)(e=>{s.current.add(e.id),o(t=>t.filter(({id:t})=>t!==e.id)),i?.(e)},[i]);return a.length===0?null:(0,u.jsx)(`aside`,{"aria-label":t,className:`fixed right-3 top-4 z-50 w-64 rounded-xl border border-borderTertiary bg-secondary p-1.5 shadow-lg md:right-5 md:top-6`,children:(0,u.jsx)(`ul`,{className:`space-y-1`,children:a.map(e=>(0,u.jsx)(Oc,{job:e,completionDisplayDuration:n,onClick:e=>r?.({job:e}),onDismiss:l},e.id))})})},Ac={sm:`max-w-md`,md:`max-w-2xl`,lg:`max-w-4xl`},jc=({open:e,title:t,description:n,children:r,closeLabel:i=`Close modal`,size:a=`md`,onClose:o})=>{let s=n?.trim()??``,l=(0,c.useId)(),d=(0,c.useId)();return(0,c.useEffect)(()=>{let t=e=>{e.key===`Escape`&&o()};return e&&document.addEventListener(`keydown`,t),()=>{e&&document.removeEventListener(`keydown`,t)}},[o,e]),e?(0,u.jsxs)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center p-4`,children:[(0,u.jsx)(`button`,{type:`button`,"aria-label":i,className:`absolute inset-0 cursor-default bg-primary/40`,onClick:o}),(0,u.jsxs)(`section`,{role:`dialog`,"aria-modal":`true`,"aria-labelledby":l,"aria-describedby":s?d:void 0,className:`relative flex max-h-[90vh] w-full flex-col overflow-hidden rounded-lg border border-borderTertiary bg-secondary shadow-lg ${Ac[a]}`,children:[(0,u.jsxs)(`header`,{className:`flex items-start justify-between gap-4 border-b border-borderTertiary px-5 py-4`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`h2`,id:l,variant:`free`,className:`text-lg font-bold text-primary`,children:t}),s?(0,u.jsx)(f,{id:d,variant:`free`,className:`mt-1 text-sm text-primary`,children:s}):null]}),(0,u.jsx)(`button`,{type:`button`,"aria-label":i,className:`flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-primary hover:bg-tertiaryActive`,onClick:o,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`xmark`,alt:``,size:`sm`})})]}),(0,u.jsx)(`div`,{className:`overflow-y-auto p-5`,children:r})]})]}):null},Mc=({items:e,selectedId:t,onSelect:n,layoutVariant:r=`content`,visualVariant:i=`default`,className:a=``,buttonClassName:o=``,disabled:s=!1,ariaLabel:c=`Segmented control`})=>{if(!e?.length)return null;let l=e.filter(e=>!e.disabled),d=l.findIndex(e=>e.id===t),f=e=>{let t=l[e];t&&n?.(t.id)},p=e=>{if(s||!l.length)return;let t=d>=0?d:0;(e.key===`ArrowRight`||e.key===`ArrowDown`)&&(e.preventDefault(),f((t+1)%l.length)),(e.key===`ArrowLeft`||e.key===`ArrowUp`)&&(e.preventDefault(),f((t-1+l.length)%l.length)),e.key===`Home`&&(e.preventDefault(),f(0)),e.key===`End`&&(e.preventDefault(),f(l.length-1))},m=r===`equalWidth`?`inline-grid grid-flow-col auto-cols-fr`:`inline-flex`,h=i===`brandBar`;return(0,u.jsx)(`div`,{className:`${m} ${s?`opacity-60 pointer-events-none`:``} ${a}`.trim(),role:`radiogroup`,"aria-label":c,"aria-disabled":s||void 0,onKeyDown:p,children:e.map((r,i)=>{let a=r.id===t,c=i===0,l=i===e.length-1,d=[`rounded-none`,`whitespace-nowrap`,h?`border-none! bg-transparent! hover:bg-transparent! active:bg-transparent!`:``,!h&&a?`relative z-10 border-secondaryMultiButton!`:``,!h&&!a?`bg-secondaryHover`:``,!h&&c?`rounded-l-md`:``,!h&&!c?`-ml-px`:``,!h&&l?`rounded-r-md`:``,o].filter(Boolean).join(` `);return(0,u.jsx)(O,{variant:a?`solid`:`outline`,intent:a?`primary`:`muted`,size:`sm`,active:a,disabled:s||r.disabled,className:d,onClick:()=>n?.(r.id),role:`radio`,"aria-checked":a,tabIndex:a?0:-1,children:r.label},r.id)})})},Nc=({options:e,value:t,defaultValue:n,onChange:r,ariaLabel:i=`Radio buttons`,disabled:a=!1,className:o=``,containerClassName:s=``,buttonClassName:l=``,visualVariant:d=`default`})=>{let f=t!==void 0,p=(0,c.useMemo)(()=>e?.[0],[e]),[m,h]=(0,c.useState)(n&&e.includes(n)?n:p);if((0,c.useEffect)(()=>{if(!e?.length){h(void 0);return}h(t=>t&&e.includes(t)?t:n&&e.includes(n)?n:e[0])},[n,e.join(`|`)]),!e?.length)return null;let g=(f?t:m)??e[0];return(0,u.jsx)(Mc,{ariaLabel:i,disabled:a,className:[s,o].filter(Boolean).join(` `),buttonClassName:l,visualVariant:d,selectedId:g,items:e.map(e=>({id:e,label:e})),onSelect:t=>{let n=e.indexOf(t);h(t),r?.(t,n)}})},Pc=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Fc=e=>{if(!Pc(e))return e;let t=e.value??e.jsonValue;return t===void 0?e:Fc(t)},Ic=(e,t,n=!0)=>{let r=Fc(e);if(typeof r==`string`)return n?r:``;if(!Pc(r))return``;for(let e of t){let t=r[e];if(typeof t==`string`)return t}return``},Lc=(e,t)=>{let n=Fc(t);return Pc(n)?`${e}${typeof n.querystring==`string`?n.querystring:``}${typeof n.anchor==`string`?n.anchor:``}`:e},Rc=e=>Ic(e,[`text`,`title`,`label`,`href`,`url`]).trim(),zc=e=>{let t=Ic(e,[`href`,`url`]).trim();return t?Lc(t,e):``},Bc=(e,t)=>Ic(e,[`target`],!1).trim()||t,Vc=(e,t)=>Ic(e,[`rel`],!1).trim()||t,Hc=({brands:e=[],showProPortalSelector:t=!1,isNorthAmerica:n=!0,selectedCustomerType:r=`Commercial`,onBrandClick:i,onCustomerTypeChange:a})=>{let o=t&&n;return(0,u.jsx)(`div`,{className:`bg-primary text-white text-sm w-full`,children:(0,u.jsxs)(`div`,{className:`flex w-full justify-center md:justify-around h-9 pl-4 pr-8 py-2`,children:[(0,u.jsx)(`div`,{className:`flex w-full justify-center gap-6 pt-1 md:w-1/2 md:justify-around`,children:e.map((e,t)=>{let n=Rc(e.label),r=zc(e.href),a=je(n),o=`${n||r||`brand`}-${r||t}`;return(0,u.jsx)(`button`,{type:`button`,className:`flex items-center hover:opacity-90`,"aria-label":n,onClick:()=>i?.(e),children:a?(0,u.jsx)(`img`,{src:a,alt:n,className:`h-5 w-auto`,loading:`eager`,decoding:`async`}):(0,u.jsx)(`span`,{className:`hover:underline`,children:n})},o)})}),(0,u.jsx)(`div`,{className:`hidden md:block md:w-1/4`}),(0,u.jsx)(`div`,{className:`hidden md:flex md:w-1/4 md:justify-end`,children:o?(0,u.jsx)(Nc,{ariaLabel:`Customer type`,defaultValue:r,buttonClassName:`aria-checked:font-bold text-secondary`,visualVariant:`brandBar`,onChange:e=>a?.(e),options:[`Commercial`,`Residential`]}):null})]})})},Uc=({activeItem:e,onMegaMenuLinkClick:t})=>e?(0,u.jsx)(`div`,{className:`w-full px-10 pt-6 pb-8`,children:(0,u.jsx)(`div`,{className:`grid grid-cols-4 gap-x-10 gap-y-8`,children:(e.subcategories??[]).map(e=>(0,u.jsxs)(`div`,{className:`min-w-0 text-left`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-semibold text-primary`,children:e.label}),(0,u.jsx)(`ul`,{className:`mt-4 flex min-w-0 list-none flex-col gap-4 p-0`,children:e.items.map(e=>(0,u.jsx)(`li`,{className:`m-0 p-0`,children:(0,u.jsx)(`button`,{type:`button`,className:`flex w-full items-center justify-between gap-3 border-0 bg-transparent p-0 text-left text-xs text-tertiary cursor-pointer hover:underline`,onClick:()=>t?.(e),children:(0,u.jsx)(f,{variant:`free`,children:e.label})})},e.id))})]},e.id))})}):null,Wc=e=>[e.title,e.subtitle].filter(Boolean).join(` `),Gc=({id:e,items:t=[],viewAllLabel:n=`View all results`,layoutVariant:r=`popover`,onResultClick:i,onViewAllClick:a})=>t.length?(0,u.jsxs)(`div`,{id:e,className:`${r===`contained`?`w-full`:`w-80`} overflow-hidden rounded-md border border-gray-200 bg-white text-primary shadow-lg`,role:`region`,"aria-label":`Search results`,children:[(0,u.jsx)(`ul`,{className:`max-h-96 divide-y divide-gray-200 overflow-y-auto`,children:t.map(e=>(0,u.jsx)(`li`,{children:(0,u.jsxs)(K,{ariaLabel:Wc(e),className:`flex w-full items-center gap-3 px-3 py-2 text-left hover:bg-gray-50 focus:bg-gray-50 focus:outline-none`,onCardClick:()=>i?.({item:e}),children:[e.imageSrc?(0,u.jsx)(j,{src:e.imageSrc,alt:e.imageAlt??``,className:`h-10 w-10 shrink-0 rounded-sm object-cover`,quality:80}):(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-10 w-10 shrink-0 rounded-sm bg-gray-100`}),(0,u.jsxs)(`span`,{className:`min-w-0`,children:[(0,u.jsx)(`span`,{className:`block text-sm leading-snug break-words text-primary`,children:e.title}),e.variant===`product`&&e.subtitle?(0,u.jsx)(`span`,{className:`mt-0.5 block text-xs leading-snug break-words text-secondary`,children:e.subtitle}):null,e.variant===`article`&&e.description?(0,u.jsx)(`span`,{className:`mt-0.5 block text-xs leading-snug break-words text-secondary`,children:e.description}):null]})]})},e.id))}),(0,u.jsx)(`div`,{className:`border-t border-gray-200 px-3 py-2`,children:(0,u.jsx)(O,{variant:`link`,label:n,className:`w-full justify-start px-0 text-left text-tertiary underline-offset-2 hover:underline`,onClick:a})})]}):null,Kc=300,qc=({Countries:e,countries:t,selectedCountry:n,Login:r,Account:i,Cart:a={hasCart:!1,itemCount:0},showCart:o=!0,showFavorites:s=!0,showLogin:l=!0,searchResultItems:d=[],searchViewAllLabel:f,onSearchClick:p,onSearchChange:m,onSearchSubmit:h,onSearchResultClick:g,onSearchViewAllClick:_,onCartClick:v,onLoginClick:y,onAccountClick:b,onFavoritesClick:x,onCountrySelect:S})=>{let[C,w]=(0,c.useState)(!1),[T,E]=(0,c.useState)(``),D=(0,c.useRef)(!1),k=a.hasCart&&a.itemCount>0,A=e??t??[],j=i?.loggedIn??r.loggedIn??!1,M=T.trim(),N=d.length>0;return(0,c.useEffect)(()=>{if(!D.current)return;let e=window.setTimeout(()=>{m?.({query:T})},Kc);return()=>{window.clearTimeout(e)}},[m,T]),(0,u.jsxs)(`div`,{className:`flex items-center justify-end-safe space-x-3`,children:[(0,u.jsxs)(`div`,{className:`relative flex items-center gap-2`,children:[(0,u.jsx)(`div`,{className:[`overflow-hidden transition-all duration-200 ease-out`,C?`w-56 opacity-100`:`w-0 opacity-0`].join(` `),"aria-hidden":!C,children:C?(0,u.jsx)(Uo,{id:`top-nav-search`,value:T,placeholder:`Search`,autoComplete:`off`,autoFocus:!0,onChange:e=>{D.current=!0,E(e.target.value)},onBlur:()=>{T.trim()||w(!1)},onKeyDown:e=>{if(e.key===`Enter`&&M){h?.({query:M});return}e.key===`Escape`&&(E(``),w(!1))}}):null}),(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`magnifying-glass`,iconAlt:`Search`,variant:`ghost`,onClick:()=>{if(!C){w(!0),p?.();return}if(M){h?.({query:M});return}w(!1)},"aria-expanded":C,"aria-controls":`top-nav-search`}),C&&N?(0,u.jsx)(`div`,{className:`absolute top-full right-0 z-30 mt-2`,children:(0,u.jsx)(Gc,{id:`top-nav-search-results`,items:d,viewAllLabel:f,onResultClick:e=>{g?.(e),w(!1)},onViewAllClick:()=>{_?.({query:M}),w(!1)}})}):null]}),(0,u.jsx)(`div`,{className:`h-4 border-l my-6`}),(0,u.jsx)(`div`,{className:`my-3`,children:(0,u.jsx)(Lo,{countries:A,selectedCountry:n,onCountrySelect:S})}),(0,u.jsxs)(`div`,{className:`my-2 flex items-center space-x-1`,children:[o?(0,u.jsxs)(`div`,{className:`relative`,children:[(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`cart-shopping`,iconAlt:`Cart`,intent:k?`accent`:`primary`,variant:`ghost`,onClick:v}),k?(0,u.jsx)(`span`,{className:`absolute -top-0 -right-0 flex h-4 min-w-4 items-center justify-center rounded-full bg-accent px-1 text-[10px] leading-none text-white`,children:a.itemCount}):null]}):null,s?(0,u.jsx)(O,{iconType:`fa-regular`,iconName:`heart`,iconAlt:`Favorites`,variant:`ghost`,onClick:x}):null]}),l?(0,u.jsx)(`div`,{children:j?(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`user`,iconAlt:``,variant:`ghost`,intent:`primary`,"aria-label":`Open account menu`,"aria-haspopup":`dialog`,onClick:b}):(0,u.jsx)(O,{className:`my-3 rounded-md p-4`,size:`sm`,intent:`accent`,variant:`solid`,label:r.label,onClick:y})}):null]})},Jc=750,Yc=`
559
559
  @keyframes top-nav-account-drawer-slide-in {
560
560
  from { transform: translate3d(100%, 0, 0); }
561
561
  to { transform: translate3d(0, 0, 0); }
@@ -607,4 +607,4 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
607
607
  }
608
608
  }
609
609
 
610
- `,Yc=({isOpen:e,customerName:t,title:n=`Account`,orderHistoryLabel:r=`Order History`,favoritesLabel:i=`Favorites`,profileLabel:a=`Profile & Addresses`,logoutLabel:o=`Log Out`,onClose:s,onOrderHistoryClick:l,onFavoritesClick:p,onProfileClick:m,onLogoutClick:h})=>{let[_,v]=(0,c.useState)(e),[y,b]=(0,c.useState)(e?`opening`:`open`);if((0,c.useEffect)(()=>{let t;return e?(v(!0),b(`opening`)):_&&(b(`closing`),t=window.setTimeout(()=>v(!1),qc)),()=>window.clearTimeout(t)},[e,_]),(0,c.useEffect)(()=>{if(!_)return;let e=document.body.style.overflow,t=document.body.style.paddingRight,n=window.innerWidth-document.documentElement.clientWidth,r=e=>{e.key===`Escape`&&s()};if(n>0){let e=Number.parseFloat(window.getComputedStyle(document.body).paddingRight);document.body.style.paddingRight=`${e+n}px`}return document.body.style.overflow=`hidden`,document.addEventListener(`keydown`,r),()=>{document.body.style.overflow=e,document.body.style.paddingRight=t,document.removeEventListener(`keydown`,r)}},[s,_]),!_||typeof document>`u`)return null;let x=e=>{e?.(),s()};return(0,d.createPortal)((0,u.jsxs)(`div`,{className:`fixed inset-0 z-60 ${e?``:`pointer-events-none`}`,children:[(0,u.jsx)(`style`,{children:Jc}),(0,u.jsx)(`button`,{type:`button`,"aria-label":`Close account overlay`,"data-phase":y,className:`top-nav-account-drawer-backdrop absolute inset-0 bg-black/40`,onClick:s}),(0,u.jsxs)(`aside`,{role:`dialog`,"aria-modal":`true`,"aria-labelledby":`top-nav-account-title`,"data-phase":y,className:`top-nav-account-drawer-panel fixed inset-y-0 right-0 z-10 flex h-dvh w-full max-w-md flex-col bg-secondary shadow-xl will-change-transform`,onAnimationEnd:e=>{e.target===e.currentTarget&&(y===`opening`?b(`open`):y===`closing`&&v(!1))},children:[(0,u.jsxs)(`header`,{className:`flex items-start justify-between gap-4 border-b border-borderTertiary px-6 py-5`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,u.jsx)(`span`,{className:`flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-tertiaryActive text-primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`user`,alt:``,size:`lg`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(f,{id:`top-nav-account-title`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:n}),t?(0,u.jsx)(f,{className:`mt-1 truncate text-sm text-secondaryActive`,children:t}):null]})]}),(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`xmark`,iconAlt:``,variant:`ghost`,intent:`primary`,"aria-label":`Close account menu`,onClick:s})]}),(0,u.jsx)(`nav`,{"aria-label":`Account sections`,className:`flex-1 px-4 py-4`,children:(0,u.jsxs)(`div`,{className:`flex flex-col`,children:[(0,u.jsx)(O,{label:r,iconType:`fa-solid`,iconName:`receipt`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`primary`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>x(l)}),(0,u.jsx)(O,{label:i,iconType:`fa-regular`,iconName:`heart`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`primary`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>x(p)}),(0,u.jsx)(O,{label:a,iconType:`fa-solid`,iconName:`address-card`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`primary`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>x(m)})]})}),(0,u.jsx)(`footer`,{className:`border-t border-borderTertiary px-4 py-5`,children:(0,u.jsx)(O,{label:o,iconType:`fa-solid`,iconName:`arrow-right-from-bracket`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`danger`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>x(h)})})]})]}),document.body)},Xc=`__mobile-menu-open__`,Zc=300,Qc=({NavMenuWithSubItems:e=[],countries:t,selectedCountry:n,Login:r,Account:i,Cart:a,showCart:o=!0,showFavorites:s=!0,showLogin:l=!0,Logo:d,searchResultItems:f,searchViewAllLabel:p,onLogoClick:m,onNavItemClick:h,onMegaMenuLinkClick:g,onSearchClick:_,onSearchChange:v,onSearchSubmit:y,onSearchResultClick:b,onSearchViewAllClick:x,onCartClick:S,onLoginClick:C,onAccountClick:w,onOrderHistoryClick:T,onProfileClick:E,onLogoutClick:D,onFavoritesClick:k,onCountrySelect:A})=>{let M=(0,c.useRef)(null),[N,P]=(0,c.useState)(null),[F,I]=(0,c.useState)(null),[L,R]=(0,c.useState)(!1),[ee,te]=(0,c.useState)(!1),[z,ne]=(0,c.useState)(``),re=(0,c.useRef)(!1),B=F!==null,ie=e.find(e=>e.id===N),V=t??[],H=r??{label:`Log In`,href:`/login`},U={hasCart:a?.hasCart??!1,itemCount:a?.itemCount??0},W=i??{loggedIn:H.loggedIn??!1},G=()=>{R(!0),w?.()},ae=`Formica`,oe=d?.src??ae,se=ke(oe),ce=je(ae)??``,le=je(oe,ce)??ce,K=d?.alt??`${oe} Logo`,ue=se===`broadview`?`w-36 md:w-44`:`w-24`,de=se===`broadview`?`h-12 md:h-14`:`h-7 md:h-10`,fe=d?.containerClassName??ue,pe=d?.className??de;(0,c.useEffect)(()=>{if(!N)return;let e=e=>{M.current?.contains(e.target)||P(null)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[N]),(0,c.useEffect)(()=>{if(!re.current)return;let e=window.setTimeout(()=>{v?.({query:z})},Zc);return()=>window.clearTimeout(e)},[z,v]);let me=()=>{te(!0),_?.()},he=()=>{te(!1)},ge=()=>{let e=z.trim();e&&y?.({query:e})},_e=e=>{b?.(e),he()},ve=()=>{x?.({query:z.trim()}),he()},ye=()=>{I(null)},be=(e,t={})=>{t.closeMobile&&ye(),P(null),h?.(e)},xe=(e,t)=>{if(e.subcategories?.length&&!e.href){P(N===t?null:t);return}be(e)},Se=(e,t={})=>{P(null),t.closeMobile&&ye(),g?.(e)},Ce=e=>{I(t=>t===e?Xc:e)};return(0,u.jsxs)(`header`,{ref:M,className:[`sticky top-0 z-50 w-full bg-white`,`shadow-[0_18px_45px_-18px_rgba(0,0,0,0.45)]`,`md:z-30`].join(` `),children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between px-4 py-3 md:hidden`,children:[(0,u.jsx)(O,{variant:`ghost`,className:`p-0 bg-transparent shadow-none border-0 ${fe} hover:bg-secondary`,onClick:m,"aria-label":`Go to home page`,children:(0,u.jsx)(j,{src:le,alt:``,className:pe,quality:90})}),(0,u.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,u.jsx)(O,{variant:`ghost`,iconType:`fa-solid`,iconName:`magnifying-glass`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":`Search`,"aria-haspopup":`dialog`,"aria-expanded":ee,onClick:me}),o?(0,u.jsx)(O,{variant:`ghost`,iconType:`fa-solid`,iconName:`cart-shopping`,iconSize:`lg`,className:`relative h-9 w-9 p-0`,"aria-label":`Cart${U.itemCount?` (${U.itemCount})`:``}`,onClick:S,children:U.itemCount?(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-accent px-1 text-[10px] font-bold leading-none text-secondary`,children:U.itemCount}):null}):null,l&&W.loggedIn?(0,u.jsx)(O,{variant:`ghost`,iconType:`fa-solid`,iconName:`user`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":`Open account menu`,"aria-haspopup":`dialog`,onClick:G}):null,(0,u.jsx)(O,{variant:`ghost`,iconType:`fa-solid`,iconName:B?`xmark`:`bars`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":B?`Close menu`:`Open menu`,onClick:()=>{I(e=>e===null?Xc:null)},"aria-expanded":B})]})]}),B?(0,u.jsxs)(`nav`,{className:`border-t border-gray-200 px-3 py-2 md:hidden`,children:[e.map(e=>{let t=e.id,n=!!e.subcategories?.length,r=F===t;return n?(0,u.jsxs)(`div`,{className:`border-b border-gray-200`,children:[(0,u.jsx)(O,{variant:`link`,label:e.label,className:`w-full min-w-0 px-0 py-3 text-left whitespace-normal break-words`,buttonAlignment:`justify-start`,onClick:()=>Ce(t),"aria-expanded":r}),r?(0,u.jsx)(`div`,{className:`pb-3 pl-2`,children:e.subcategories?.map(e=>(0,u.jsxs)(`div`,{className:`py-2`,children:[(0,u.jsx)(`div`,{className:`text-sm font-bold text-primary whitespace-normal break-words`,children:e.label}),(0,u.jsx)(`div`,{className:`mt-2 ml-2 flex w-full min-w-0 flex-col items-start gap-2`,children:e.items?.map(e=>(0,u.jsx)(O,{variant:`link`,label:e.label,className:`w-full min-w-0 px-0 py-1 text-left whitespace-normal break-words`,buttonAlignment:`justify-start`,onClick:()=>Se(e,{closeMobile:!0})},e.id))})]},e.id))}):null]},t):(0,u.jsx)(O,{variant:`link`,label:e.label,className:`w-full min-w-0 px-0 py-3 text-left whitespace-normal break-words`,buttonAlignment:`justify-start`,onClick:()=>be(e,{closeMobile:!0})},t)}),l&&!W.loggedIn?(0,u.jsx)(`div`,{className:`border-t border-gray-200 pt-2`,children:(0,u.jsx)(O,{variant:`link`,label:H.label,className:`w-full min-w-0 px-0 py-3 text-left`,buttonAlignment:`justify-start`,onClick:()=>{ye(),C?.()}})}):null]}):null,(0,u.jsxs)(`div`,{className:`hidden items-center justify-between md:flex md:px-8`,children:[(0,u.jsx)(O,{variant:`ghost`,className:`p-0 bg-transparent shadow-none border-0 ${fe} hover:bg-secondary!`,onClick:m,"aria-label":`Go to home page`,children:(0,u.jsx)(j,{src:le,alt:K,className:pe,quality:90})}),(0,u.jsxs)(`div`,{className:`flex items-center space-x-3`,children:[(0,u.jsx)(`nav`,{className:`flex space-x-5 p-3`,children:e.map(e=>{let t=e.id;return(0,u.jsx)(O,{variant:`link`,label:e.label,onClick:()=>xe(e,t),active:N===t},t)})}),(0,u.jsx)(Kc,{Countries:V,selectedCountry:n,Login:H,Account:W,Cart:U,showCart:o,showFavorites:s,showLogin:l,searchResultItems:f,searchViewAllLabel:p,onSearchClick:_,onSearchChange:v,onSearchSubmit:y,onSearchResultClick:b,onSearchViewAllClick:x,onCartClick:S,onLoginClick:C,onAccountClick:G,onFavoritesClick:k,onCountrySelect:A})]})]}),(0,u.jsx)(`div`,{className:[`absolute inset-x-0 top-full z-20 origin-top bg-white`,`hidden md:block`,`shadow-[0_4px_6px_-4px_rgba(0,0,0,0.2)]`,`transition-transform duration-300 ease-out border-t border-borderTertiary`,N?`scale-y-100`:`scale-y-0`].join(` `),children:(0,u.jsx)(`div`,{className:`px-8`,children:(0,u.jsx)(`div`,{className:`max-w-screen-xl mx-auto`,children:(0,u.jsx)(Hc,{activeItem:ie,onMegaMenuLinkClick:Se})})})}),(0,u.jsx)(Yc,{...W,isOpen:L,onClose:()=>R(!1),onOrderHistoryClick:T,onFavoritesClick:k,onProfileClick:E,onLogoutClick:D??C}),(0,u.jsx)(`div`,{className:`md:hidden`,children:(0,u.jsx)(Ac,{open:ee,title:`Search`,closeLabel:`Close search`,size:`sm`,onClose:he,children:(0,u.jsxs)(`div`,{className:`space-y-4`,children:[(0,u.jsx)(Ho,{id:`top-nav-mobile-search`,ariaLabel:`Search`,value:z,placeholder:`Search`,controlSize:`default`,autoComplete:`off`,autoFocus:!0,onChange:e=>{re.current=!0,ne(e.target.value)},onSearchSubmit:ge}),(0,u.jsx)(Wc,{id:`top-nav-mobile-search-results`,items:f,viewAllLabel:p,layoutVariant:`contained`,onResultClick:_e,onViewAllClick:ve})]})})})]})},$c=({message:e,buttonLabel:t,onButtonClick:n,children:r})=>{let i=e?.trim();return i?(0,u.jsx)(`div`,{className:`w-full bg-primary`,children:(0,u.jsxs)(`div`,{className:`mx-auto flex min-h-14 max-w-6xl flex-col items-center justify-center gap-3 px-4 py-3 text-center md:flex-row md:justify-center md:gap-5 md:py-2`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold leading-5 text-secondary`,children:i}),r?(0,u.jsx)(`div`,{className:`shrink-0`,children:r}):null,!r&&t?(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(O,{label:t,size:`sm`,variant:`solid`,intent:`accent`,onClick:n,className:`border-2 border-white`})}):null]})}):null},el=({Breadcrumbs:e=[],onBreadcrumbClick:t})=>{if(!e.length)return null;let n=e.at(-1),r=e.slice(0,-1),i=(e,n)=>{!t||!n.href||(e.preventDefault(),t(n.href,n))};return(0,u.jsx)(`section`,{className:`w-full flex justify-center`,children:(0,u.jsx)(`div`,{className:`w-full max-w-6xl px-4 md:px-0`,children:(0,u.jsx)(`nav`,{"aria-label":`Breadcrumbs`,className:`md:mt-4`,children:(0,u.jsxs)(`ol`,{className:`flex items-center gap-2`,children:[r.map(e=>(0,u.jsxs)(`li`,{className:`flex items-center gap-2`,children:[e.href?(0,u.jsx)(f,{as:`a`,href:e.href,variant:`breadcrumb`,className:`text-sm md:text-base`,onClick:t=>i(t,e),children:e.label}):(0,u.jsx)(f,{as:`span`,variant:`breadcrumb`,className:`text-sm md:text-base`,children:e.label}),(0,u.jsx)(`span`,{"aria-hidden":`true`,children:`/`})]},e.id)),n&&(0,u.jsx)(`li`,{children:(0,u.jsx)(f,{as:`span`,variant:`nav`,className:`text-sm md:text-base`,"aria-current":`page`,children:n.label})},n.id)]})})})})},tl=({img:e,size:t=`default`})=>{let n={default:`h-10 w-auto`,primary:`h-24 w-auto mb-3`,parent:`h-10 w-auto opacity-95`,affiliate:`h-5 w-auto opacity-90 hover:opacity-100 transition`}[t],r=Lc(e.src),i=Lc(e.alt),a=e.label?Lc(e.label):``,o=e.alt===void 0||e.alt===null?a:i,s=Ae(r,Ae(a||i))??``;if(!s)return null;let c=(0,u.jsx)(j,{src:s,alt:o,className:n,loading:`lazy`,decoding:`async`,quality:90}),l=Rc(e.href);if(!l)return c;let d=zc(e.href,e.target)??`_self`;return(0,u.jsx)(`a`,{href:l,target:d,rel:Bc(e.href,e.rel)??(d===`_blank`?`noreferrer noopener`:void 0),className:`inline-flex`,children:c})},nl=({primaryLogo:e,phoneLine:t,socials:n=[]})=>{let r=t?Lc(t):``;return(0,u.jsxs)(`div`,{className:`space-y-6`,children:[(0,u.jsx)(tl,{img:e,size:`primary`}),r?(0,u.jsx)(f,{variant:`body`,className:`text-sm font-light text-secondary`,children:r}):null,n.length?(0,u.jsx)(`div`,{className:`flex items-center gap-3 pt-3`,children:n.map(e=>{let t=Lc(e.label),n=Rc(e.href),r=e.iconSrc?Lc(e.iconSrc):``;return n?(0,u.jsxs)(`a`,{href:n,"aria-label":t,target:`_blank`,rel:`noreferrer noopener`,className:`w-9 h-9 inline-flex items-center justify-center rounded-full bg-white text-black hover:bg-white/90 transition-colors`,children:[r?(0,u.jsx)(`img`,{src:r,alt:t,className:`w-4 h-4`}):null,!r&&e.faIcon?(0,u.jsx)(Co,{icon:e.faIcon,className:`w-4 h-4 text-black`}):null]},`${t}-${n}`):null})}):null]})},rl=({item:e,variant:t=`default`})=>{let n={default:`text-xs mt-4 text-secondary/85 hover:underline`,mobile:`text-sm text-secondary hover:underline`,legal:`text-white/80 hover:text-white hover:underline text-xs`}[t],r=Lc(e.label),i=Rc(e.href),a=zc(e.href,e.target)??`_self`,o=Bc(e.href,e.rel)??(a===`_blank`?`noreferrer noopener`:void 0);return i?(0,u.jsx)(f,{as:`a`,href:i,target:a,rel:o,variant:`body`,className:n,children:r}):(0,u.jsx)(f,{variant:`body`,className:n,children:r})},il=({columns:e})=>(0,u.jsx)(`div`,{className:`w-fit`,children:(0,u.jsx)(`div`,{className:`grid grid-cols-3 gap-y-8 gap-x-20`,children:e.map((e,t)=>{let n=Lc(e.heading);return(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`body`,className:`font-semibold mb-4 text-sm text-secondary`,children:n}),(0,u.jsx)(`ul`,{className:`space-y-2`,children:e.links.map((e,t)=>(0,u.jsx)(`li`,{children:(0,u.jsx)(rl,{item:e})},`${n}-${Lc(e.label)}-${t}`))})]},`${n}-${t}`)})})}),al=({links:e=[],utilityLink:t,disclaimerLines:n=[],copyrightLine:r})=>{let i=r?Lc(r):``,a=n.length||i;return(0,u.jsxs)(`div`,{className:`border-t border-white/15 mt-4 pt-2 space-y-4`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-5 gap-y-2`,children:[e.map((e,t)=>(0,u.jsx)(rl,{item:e,variant:`legal`},`${Lc(e.label)}-${t}`)),t?(0,u.jsx)(`div`,{className:`ml-auto`,children:(0,u.jsx)(rl,{item:t,variant:`legal`})}):null]}),a?(0,u.jsxs)(`div`,{className:`space-y-2 mt-10`,children:[n.map((e,t)=>(0,u.jsx)(f,{variant:`standard`,className:`text-white/70 text-xs leading-relaxed`,children:Lc(e)},t)),i?(0,u.jsx)(f,{variant:`standard`,className:`text-white/70 text-xs leading-relaxed`,children:i}):null]}):null]})},ol=({affiliateLogos:e=[],parentLogo:t,phoneLine:n})=>{let r=n?Lc(n):``;if(!e.length&&!t&&!r)return null;let i=t?(0,u.jsx)(`div`,{className:`ml-6 shrink-0`,children:(0,u.jsx)(tl,{img:t,size:`parent`})}):null,a=!i&&r?(0,u.jsx)(f,{variant:`body`,className:`ml-6 shrink-0 text-sm font-light text-secondary`,children:r}):null;return(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsxs)(`div`,{className:`flex flex-row items-center justify-between gap-6`,children:[(0,u.jsx)(`div`,{className:`flex flex-wrap items-center gap-x-6 gap-y-3`,children:e.map((e,t)=>(0,u.jsx)(tl,{img:e,size:`affiliate`},`${e.label?Lc(e.label):``}|${Lc(e.alt)}|${Rc(e.href)}|${Lc(e.src)}|${t}`))}),i,a]})})},sl=({brand:e,columns:t,parentLogo:n,phoneLinePlacement:r=`brand`,legal:i})=>{let a=r===`logosBar`;return(0,u.jsx)(`footer`,{className:`bg-footBackground text-secondary pt-6`,children:(0,u.jsxs)(`div`,{className:`max-w-screen-xl mx-auto px-4 py-8 md:px-6 md:py-10`,children:[(0,u.jsxs)(`div`,{className:`grid gap-8 md:grid-cols-12 md:gap-10`,children:[(0,u.jsx)(`div`,{className:`md:col-span-4`,children:(0,u.jsx)(nl,{...a?{...e,phoneLine:void 0}:e})}),(0,u.jsxs)(`div`,{className:`hidden md:col-span-8 md:block`,children:[(0,u.jsx)(`div`,{className:`flex justify-end`,children:(0,u.jsx)(il,{columns:t})}),(0,u.jsx)(`div`,{className:`block col-span-3`})]}),(0,u.jsx)(`div`,{className:`space-y-2 md:hidden`,children:t.map((e,t)=>{let n=Lc(e.heading);return(0,u.jsxs)(`details`,{className:`border-t border-white/20 py-3`,children:[(0,u.jsx)(`summary`,{className:`cursor-pointer list-none text-sm font-semibold text-secondary`,children:n}),(0,u.jsx)(`ul`,{className:`mt-3 space-y-2`,children:e.links.map((e,t)=>(0,u.jsx)(`li`,{children:(0,u.jsx)(rl,{item:e,variant:`mobile`})},`${n}-${Lc(e.label)}-${t}`))})]},`${n}-${t}`)})})]}),(0,u.jsx)(ol,{affiliateLogos:e.affiliateLogos,parentLogo:n,phoneLine:a?e.phoneLine:void 0}),(0,u.jsx)(al,{...i})]})})},cl=(...e)=>e.filter(Boolean).join(` `),ll=({imageSrc:e,imageAlt:t=`Banner image`,children:n,sectionClassName:r=`w-full flex justify-center`,bannerClassName:i=`relative h-80 md:h-119.25 w-full max-w-6xl overflow-hidden`,imageClassName:a=`h-full w-full object-cover`,overlayClassName:o=`absolute inset-0 flex`,imageQuality:s=90})=>{let c=e?.trim()?e:`https://picsum.photos/1600/900`;return(0,u.jsx)(`section`,{className:r,children:(0,u.jsxs)(`div`,{className:cl(`relative`,i),children:[(0,u.jsx)(j,{src:c,alt:t,className:a,quality:s}),(0,u.jsx)(`div`,{className:o,children:n})]})})},ul=({imageSrc:e,imageAlt:t=`Where to buy`,heading:n,productDropdownProps:r,searchInputProps:i,searchButtonLabel:a=`Search`,onProductChange:o,onSearchSubmit:s})=>{let l=!!r?.options?.length,[d,p]=c.default.useState(r?.value??``),[m,h]=c.default.useState(i.value??``);c.default.useEffect(()=>{p(r?.value??``)},[r?.value]),c.default.useEffect(()=>{h(i.value??``)},[i.value]);let g=e=>{let t=e.target.value;p(t),o?.({productValue:t})};return(0,u.jsx)(ll,{imageSrc:e,imageAlt:t,bannerClassName:`relative h-80 w-full overflow-hidden md:h-96`,overlayClassName:`absolute inset-0 flex items-center bg-black/35`,imageClassName:`h-full w-full object-cover`,children:(0,u.jsxs)(`div`,{className:`mx-auto flex w-full max-w-6xl flex-col items-center px-4 md:px-0`,children:[(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`mb-8 text-center font-rockwell text-4xl text-white md:text-5xl`,children:n}),(0,u.jsxs)(`form`,{className:`flex w-full max-w-3xl flex-col gap-3 md:flex-row md:items-center`,onSubmit:e=>{e.preventDefault(),s?.({productValue:d,searchValue:m.trim()})},children:[l&&r?(0,u.jsx)(`div`,{className:`w-full md:w-56`,children:(0,u.jsx)(Q,{...r,value:d,onChange:g})}):null,(0,u.jsx)(`div`,{className:`w-full md:flex-1`,children:(0,u.jsx)(Ho,{...i,value:m,onChange:e=>h(e.target.value)})}),(0,u.jsx)(O,{type:`submit`,variant:`solid`,intent:`accent`,size:`sm`,label:a,className:`w-full md:w-auto`})]})]})})},dl=({imageSrc:e,imageAlt:t=`Call To Action Hero`,heading:n,subheading:r,body:i,eyebrow:a,ctas:o=[]})=>(0,u.jsx)(ll,{imageSrc:e,imageAlt:t,sectionClassName:`w-full`,bannerClassName:`h-112 md:h-190 w-full overflow-hidden mb-12 md:mb-20`,overlayClassName:`absolute inset-0 flex items-center inset-shadow-[0px_-150px_70px_-50px_rgba(0,0,0,.50)]`,children:(0,u.jsx)(Bs,{heading:n,subheading:r,body:i,eyebrow:a,ctas:o})}),fl=({imageSrc:e,imageAlt:t=`Featured article banner`,heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})=>(0,u.jsx)(ll,{imageSrc:e,imageAlt:t,sectionClassName:`px-4 md:px-0 md:mx-auto mb-16 md:mb-20 flex w-full max-w-6xl`,bannerClassName:`aspect-5/6 md:aspect-video w-full flex flex-col overflow-hidden rounded-lg`,imageClassName:`h-full w-full rounded-lg object-cover`,overlayClassName:`md:absolute md:inset-0 flex items-center md:rounded-lg md:inset-shadow-[0px_-150px_70px_-50px_rgba(0,0,0,.50)]`,children:(0,u.jsx)(Vs,{heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})}),pl=({items:e,value:t,onChange:n,renderTab:r,className:i=``,durationMs:a=700,thicknessClassName:o=`h-[3px]`,baselineClassName:s=`h-px`})=>{let l=(0,c.useRef)(null),d=(0,c.useRef)([]),[f,p]=(0,c.useState)({left:0,width:0}),m=(0,c.useMemo)(()=>Math.max(0,e.findIndex(e=>(e.value??e.label)===t)),[e,t]),h=()=>{let e=l.current,t=d.current[m];if(!e||!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();p({left:r.left-n.left,width:r.width})};return(0,c.useLayoutEffect)(()=>{h();let e=new ResizeObserver(()=>h());l.current&&e.observe(l.current),window.addEventListener(`resize`,h);let t=requestAnimationFrame(h);return()=>{e.disconnect(),window.removeEventListener(`resize`,h),cancelAnimationFrame(t)}},[m,e.length]),(0,u.jsx)(`div`,{className:[`w-full`,i].join(` `),children:(0,u.jsxs)(`div`,{ref:l,className:`relative grid items-center`,style:{gridTemplateColumns:`repeat(${e.length}, minmax(0, 1fr))`},children:[e.map((e,t)=>{let i=t===m;return(0,u.jsx)(`div`,{ref:e=>{d.current[t]=e},className:`flex justify-center mb-1 md:mb-3 w-full`,children:r?r({item:e,isActive:i,onTabClick:()=>!e.disabled&&n(e.value??e.label)}):(0,u.jsx)(`button`,{type:`button`,disabled:e.disabled,onClick:()=>n(e.value??e.label),className:[`px-3 py-2 text-sm`,`transition-opacity`,i?`opacity-100 font-medium`:`opacity-60 hover:opacity-90`,e.disabled?`cursor-not-allowed opacity-30`:`cursor-pointer`].join(` `),children:e.label})},e.label)}),(0,u.jsx)(`div`,{className:[`absolute left-0 right-0 bottom-0`,s,`bg-black/60`].join(` `)}),(0,u.jsx)(`div`,{className:[`absolute bottom-0`,o,`bg-black`,`will-change-transform`].join(` `),style:{width:`${f.width}px`,transform:`translateX(${f.left}px)`,transitionProperty:`transform, width`,transitionDuration:`${a}ms`,transitionTimingFunction:`cubic-bezier(0.22, 1, 0.36, 1)`}})]})})},ml=e=>e.id||e.href||e.label,hl=({items:e,startIndex:t,desktopVisibleCount:n=e.length,activeIndex:r,setActiveIndex:i,canPrev:a,canNext:o,onPrev:s,onNext:c,loadedIds:l,favoriteIds:d,showFavorites:f=!0,onLoaded:p,onToggleFav:m,onItemClick:h,getItemId:g=ml})=>e.length?(0,u.jsxs)(`div`,{className:`mt-4 relative`,children:[(0,u.jsx)(`button`,{type:`button`,onClick:s,disabled:!a,className:[`absolute left-[-48px] top-1/2 hidden -translate-y-1/2`,`h-10 w-10 rounded-full md:grid place-items-center`,`transition-opacity`,a?`opacity-100`:`opacity-30 cursor-not-allowed`].join(` `),"aria-label":`Previous`,children:(0,u.jsx)(Co,{icon:Do,className:`text-2xl`})}),(0,u.jsx)(`button`,{type:`button`,onClick:c,disabled:!o,className:[`absolute right-[-48px] top-1/2 hidden -translate-y-1/2`,`h-10 w-10 rounded-full md:grid place-items-center`,`transition-opacity`,o?`opacity-100`:`opacity-30 cursor-not-allowed`].join(` `),"aria-label":`Next`,children:(0,u.jsx)(Co,{icon:To,className:`text-2xl`})}),(0,u.jsx)(`div`,{className:`flex flex-col md:flex-row w-full justify-center items-stretch md:items-center gap-5 overflow-hidden`,onMouseLeave:()=>i(null),children:e.map((e,a)=>{let o=a>=t&&a<t+n,s=r===a,c=r===null||s,_=r!==null&&s?7:1,v=g(e);return(0,u.jsx)(`div`,{"data-testid":`column-carousel-item-${v}`,className:[`w-full md:min-w-0 md:flex-[var(--column-carousel-flex)] md:transition-[flex-grow] md:duration-700 md:ease-in-out`,o?``:`md:hidden`].join(` `),style:{"--column-carousel-flex":`${_} 1 0`},children:(0,u.jsx)(ko,{id:v,item:e,absoluteIdx:a,isActive:s,showLabel:c,grow:_,isLoaded:l.has(v),isFav:d.has(v),showFavorites:f,setActiveIndex:i,onLoaded:p,onToggleFav:m,onItemClick:h})},v)})})]}):null,gl=4,_l=e=>{e.forEach(e=>{if(!e)return;let t=new window.Image;t.decoding=`async`,t.src=e})},vl=({heading:e,body:t,TabsWithColumns:n=[],favoriteIds:r=[],showFavorites:i=!0,onFavoriteToggle:a,onItemClick:o})=>{let[s,l]=(0,c.useState)(n?.[0]?.label??null);c.default.useEffect(()=>{if(!n?.length){l(null);return}n.some(e=>e.label===s)||l(n[0].label)},[n,s]);let d=(0,c.useMemo)(()=>n.map(e=>({label:e.label,disabled:!1})),[n]),p=(0,c.useMemo)(()=>n.find(e=>e.label===s),[n,s])?.columns?.[0]?.items??[],[m,h]=(0,c.useState)(0),[g,_]=(0,c.useState)(null);c.default.useEffect(()=>{h(0),_(null)},[s]);let v=m>0,y=m+gl<p.length,b=()=>h(e=>Math.max(0,e-1)),x=()=>h(e=>Math.min(Math.max(p.length-gl,0),e+1)),[S,C]=(0,c.useState)(new Set),w=e=>{C(t=>{if(t.has(e))return t;let n=new Set(t);return n.add(e),n})};c.default.useEffect(()=>{C(new Set)},[s]),c.default.useEffect(()=>{_l(p.slice(m,m+gl*2).map(e=>e.source).filter(Boolean))},[p,m]);let T=c.default.useMemo(()=>new Set(r),[r]);return(0,u.jsx)(`section`,{className:`flex justify-center`,children:(0,u.jsx)(`div`,{className:`max-w-6xl`,children:(0,u.jsxs)(`div`,{className:`flex flex-col mt-16 md:mt-32 mb-16 md:mb-30`,children:[e||t?(0,u.jsx)(`div`,{className:`flex flex-row mx-auto mb-7 px-4 md:px-0`,children:(0,u.jsxs)(`div`,{className:`mx-auto flex max-w-2xl flex-col text-center`,children:[e?(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`flex text-2xl md:text-4xl mb-4 justify-center-safe text-center`,children:e}):null,t?(0,u.jsx)(f,{variant:`body`,className:`flex justify-center-safe text-center text-sm md:mx-15`,children:t}):null]})}):null,(0,u.jsxs)(`div`,{className:`mx-auto w-full px-4 md:px-0`,children:[(0,u.jsx)(pl,{items:d,value:s??d[0]?.label??``,onChange:e=>l(e),className:`mb-2`,durationMs:700}),(0,u.jsx)(hl,{items:p,startIndex:m,desktopVisibleCount:gl,activeIndex:g,setActiveIndex:_,canPrev:v,canNext:y,onPrev:b,onNext:x,loadedIds:S,favoriteIds:T,showFavorites:i,onLoaded:w,onToggleFav:e=>{let t=e.id||e.href||e.label;a?.(e,!T.has(t))},onItemClick:o})]})]})})})},yl=e=>e===1?`md:grid-cols-1`:e===2?`md:grid-cols-2`:`md:grid-cols-3`,bl=(e,t)=>e===`vertical`&&t===2?`grid-cols-2`:e===`vertical`&&t===3?`grid-cols-3`:`grid-cols-1`,xl=e=>e===`underBanner`?`mt-10 md:mt-16`:``,Sl=({title:e,body:t,cards:n=[],spacing:r=`default`,footerBlurb:i,footerButtonLabel:a,footerButtonHref:o,onFooterButtonClick:s})=>{if(!n.length&&!e&&!t&&!i&&!a)return null;let c=()=>{a&&s?.({buttonLabel:a,buttonHref:o})},l=yl(n.length),d=bl(n[0]?.cardStyle,n.length);return(0,u.jsx)(`section`,{className:`flex justify-center ${xl(r)}`,children:(0,u.jsxs)(`div`,{className:`w-full max-w-6xl px-4 mb-16 md:mb-20 md:px-0`,children:[(e||t)&&(0,u.jsxs)(`div`,{className:`mx-auto max-w-md text-center mb-6 md:mb-12`,children:[e?(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-2xl md:text-4xl`,children:e}):null,t?(0,u.jsx)(f,{variant:`body`,className:`text-sm`,children:t}):null]}),(0,u.jsx)(`div`,{className:`grid ${d} gap-x-4 gap-y-6 ${l} md:gap-x-6 md:gap-y-12`,children:n.map((e,t)=>{let n=`${e.title??`card`}-${t}`;return(0,u.jsx)(Ao,{...e},n)})}),(i||a)&&(0,u.jsxs)(`div`,{className:`mx-auto mt-8 flex max-w-md flex-col items-center text-center md:mt-12`,children:[i?(0,u.jsx)(f,{variant:`body`,className:`mb-4 text-sm`,children:i}):null,a?(0,u.jsx)(O,{variant:`outline`,intent:`muted`,label:a,onClick:c,className:`w-full md:w-80`}):null]})]})})},Cl=({heading:e,body:t,cards:n,className:r=``})=>(0,u.jsx)(`section`,{className:`w-full bg-white ${r}`,children:(0,u.jsxs)(`div`,{className:`mx-auto max-w-6xl mb-16 md:mb-30 px-4 md:px-0`,children:[(0,u.jsxs)(`div`,{className:`mx-auto max-w-2xl text-left md:text-center`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-lg mb-4 md:mb-5 md:text-2xl font-Rockwell font-bold`,children:e}),t?(0,u.jsx)(f,{variant:`body`,className:`mx-auto max-w-xl leading-relaxed`,children:t}):null]}),(0,u.jsx)(`div`,{className:`mt-8 md:mt-12 grid grid-cols-2 md:grid-cols-4 gap-8 md:gap-x-10 md:gap-y-12`,children:n.map((e,t)=>(0,u.jsx)(Ys,{...e},`${e.title}-${t}`))})]})}),wl=({title:e=`Sample Order Summary`,items:t,sampleCountLabel:n,note:r=`No payment is required for sample requests.`})=>{let i=n??`${t.length} ${t.length===1?`sample`:`samples`}`;return(0,u.jsxs)(`aside`,{className:`rounded-lg border border-secondaryActive bg-white p-6`,children:[(0,u.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-xl font-extrabold text-primary`,children:e}),(0,u.jsx)(f,{variant:`free`,className:`shrink-0 text-sm font-bold text-tertiary`,children:i})]}),(0,u.jsx)(`ol`,{className:`mt-4 flex flex-col`,children:t.map((e,n)=>{let r=n===t.length-1;return(0,u.jsxs)(`li`,{children:[(0,u.jsx)(ec,{imageSrc:e.imageSrc,imageAlt:e.imageAlt||e.title,title:e.title,brand:e.brand||``,decorNumber:e.decorNumber||``,quantity:e.quantity,isReadOnly:!0,showPricing:!1}),r?null:(0,u.jsx)(`div`,{className:`border-b border-secondaryHover`})]},e.id)})}),r?(0,u.jsx)(f,{variant:`free`,className:`mt-6 text-sm text-tertiary`,children:r}):null]})},$=({id:e,label:t,errorMessage:n,hasError:r=!1,linkText:i,linkHref:a,onLinkClick:o,...s})=>(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[t||i?(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[t?(0,u.jsxs)(f,{as:`label`,htmlFor:e,className:`text-sm ${r?`text-accent!`:`text-primary`}`,children:[r?null:`${t}`,r&&n?`${n}`:null]}):(0,u.jsx)(`span`,{}),i?(0,u.jsx)(f,{as:`a`,href:a||`#`,onClick:o,className:`text-xs text-secondaryActive underline underline-offset-2`,children:i}):null]}):null,(0,u.jsx)(Vo,{id:e,hasError:r,...s})]}),Tl=({title:e=`Personal & Project Information`,idPrefix:t=`salesforce-customer`,firstName:n=``,lastName:r=``,profession:i=``,companyName:a=``,projectType:o=``,projectSquareMetres:s=``,projectName:c=``,projectDetails:l=``,phoneNumber:d=``,email:p=``,confirmEmail:m=``,firstNamePlaceholder:h=`First Name*`,lastNamePlaceholder:g=`Last Name*`,professionPlaceholder:_=`Profession*`,companyNamePlaceholder:v=`Company Name*`,projectTypePlaceholder:y=`Project Type`,projectSquareMetresPlaceholder:b=`Project Square Metres`,projectNamePlaceholder:x=`Project Name`,projectDetailsPlaceholder:S=`Project Details`,phoneNumberPlaceholder:C=`Phone Number*`,emailPlaceholder:w=`Email*`,confirmEmailPlaceholder:T=`Confirm Email*`,professionOptions:E=[],projectTypeOptions:D=[],projectSquareMetresOptions:O=[],errors:k={},onFirstNameChange:A,onLastNameChange:j,onProfessionChange:M,onCompanyNameChange:N,onProjectTypeChange:P,onProjectSquareMetresChange:F,onProjectNameChange:I,onProjectDetailsChange:R,onPhoneNumberChange:ee,onEmailChange:te,onConfirmEmailChange:z})=>(0,u.jsxs)(`section`,{className:`flex flex-col gap-6`,children:[(0,u.jsx)(f,{as:`h2`,variant:`bold`,className:`text-primary`,children:e}),(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2`,children:[(0,u.jsx)($,{id:`${t}-first-name`,name:`firstName`,placeholder:h,value:n,hasError:!!k.firstName,errorMessage:k.firstName,onChange:A}),(0,u.jsx)($,{id:`${t}-last-name`,name:`lastName`,placeholder:g,value:r,hasError:!!k.lastName,errorMessage:k.lastName,onChange:j}),(0,u.jsx)(Q,{id:`${t}-profession`,name:`profession`,placeholder:_,options:E,value:i,hasError:!!k.profession,variant:`field`,onChange:M}),(0,u.jsx)($,{id:`${t}-company-name`,name:`companyName`,placeholder:v,value:a,hasError:!!k.companyName,errorMessage:k.companyName,onChange:N}),(0,u.jsx)(Q,{id:`${t}-project-type`,name:`projectType`,placeholder:y,options:D,value:o,hasError:!!k.projectType,variant:`field`,onChange:P}),(0,u.jsx)(Q,{id:`${t}-project-square-metres`,name:`projectSquareMetres`,placeholder:b,options:O,value:s,hasError:!!k.projectSquareMetres,variant:`field`,onChange:F}),(0,u.jsx)(`div`,{className:`md:col-span-2`,children:(0,u.jsx)($,{id:`${t}-project-name`,name:`projectName`,placeholder:x,value:c,hasError:!!k.projectName,errorMessage:k.projectName,onChange:I})}),(0,u.jsx)(`div`,{className:`md:col-span-2`,children:(0,u.jsx)(L,{id:`${t}-project-details`,name:`projectDetails`,placeholder:S,value:l,rows:5,hasError:!!k.projectDetails,onChange:R})}),(0,u.jsx)($,{id:`${t}-phone-number`,name:`phoneNumber`,type:`tel`,placeholder:C,value:d,hasError:!!k.phoneNumber,errorMessage:k.phoneNumber,onChange:ee}),(0,u.jsx)($,{id:`${t}-email`,name:`email`,type:`email`,placeholder:w,value:p,hasError:!!k.email,errorMessage:k.email,onChange:te}),(0,u.jsx)(`div`,{className:`md:col-span-2`,children:(0,u.jsx)($,{id:`${t}-confirm-email`,name:`confirmEmail`,type:`email`,placeholder:T,value:m,hasError:!!k.confirmEmail,errorMessage:k.confirmEmail,onChange:z})})]})]}),El=(e,t,n)=>Math.max(t,Math.min(n,e)),Dl=e=>[`h-12 w-12 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),Ol=({initialQuantity:e=1,minQuantity:t=1,maxQuantity:n=99,onAddToWishlist:r,onAddToCart:i,onQuantityChange:a,wishlistLabel:o=`Add To Wishlist`,cartLabel:s=`Add to Cart`,decreaseQuantityLabel:l=`Decrease quantity`,increaseQuantityLabel:d=`Increase quantity`,showFavorites:p=!0,className:m=``})=>{let[h,g]=c.default.useState(()=>El(e,t,n));c.default.useEffect(()=>{g(El(e,t,n))},[e,t,n]);let _=e=>{let r=El(e,t,n);g(r),a?.(r)},v=()=>_(h-1),y=()=>_(h+1),b=h>t,x=h<n,S=()=>i(h),C=(0,u.jsxs)(`div`,{className:`flex shrink-0 items-stretch gap-3`,children:[(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":l,type:`button`,disabled:!b,onClick:v,className:Dl(b)}),(0,u.jsx)(`div`,{className:`flex min-w-10 items-center justify-center`,children:(0,u.jsx)(f,{as:`span`,variant:`free`,children:h})}),(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":d,type:`button`,disabled:!x,onClick:y,className:Dl(x)})]}),w=(0,u.jsx)(O,{type:`button`,intent:`accent`,onClick:S,className:`h-12 w-full justify-center`,children:(0,u.jsx)(f,{as:`span`,variant:`free`,children:s})});return(0,u.jsx)(`div`,{className:[`w-full`,m].join(` `),children:p?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`flex items-stretch gap-4`,children:[C,(0,u.jsx)(`div`,{className:`flex-1`,children:(0,u.jsx)(O,{iconName:`fa-heart`,iconType:`fa-solid`,label:o,type:`button`,intent:`ghost`,variant:`solid`,onClick:r,className:`h-12 w-full justify-center border-primary! text-primary! hover:text-accent!`})})]}),(0,u.jsx)(`div`,{className:`mt-4`,children:w})]}):(0,u.jsxs)(`div`,{"aria-label":`Cart actions`,className:`flex items-stretch gap-4`,children:[C,(0,u.jsx)(`div`,{className:`min-w-0 flex-1`,children:w})]})})},kl=({heading:e,items:t,value:n,onChange:r})=>{if(!t?.length)return null;let i=e=>{e.disabled||r(e.value,e)},a=(e,t)=>e===t?`text-primary! border-primary! border-2`:`border-secondaryHover! text-secondaryHover!`;return(0,u.jsxs)(`section`,{className:`w-full`,children:[!!e&&(0,u.jsx)(`div`,{className:`mb-3`,children:(0,u.jsx)(f,{as:`p`,variant:`eyebrow`,children:e})}),(0,u.jsx)(`div`,{className:`flex flex-wrap gap-3 items-start`,children:t.map(e=>(0,u.jsx)(O,{type:`button`,variant:`outline`,intent:`ghost`,size:`md`,disabled:!!e.disabled,onClick:()=>i(e),"aria-pressed":n===e.value,className:`px-3! py-2! text-sm! ${a(n,e.value)}`,children:(0,u.jsx)(f,{as:`span`,variant:`free`,children:e.label})},e.id))})]})},Al=e=>{let{title:t,decor:n,description:r,colourMatching:i,patternRepeat:a,onDownloadSwatch:o,onDownloadFullSheet:s,downloadSwatchLabel:c=`Download Swatch`,downloadFullSheetLabel:l=`Download Full Sheet`,tabs:d=[`Sample`,`Buy Now`],tabLabels:p,labels:m,activeTab:h,onTabChange:g,productOptions:_=[],gradeOptions:v=[],textureOptions:y=[],sizeOptions:b=[],selectedProduct:x,selectedGrade:S,selectedTexture:C,selectedSize:w,onQuantityChange:T,availabilityHref:E,availabilityLabel:D=`View full product availability and information`,notReturnableText:k=`This item is not returnable.`,returnPolicyHref:A,returnPolicyLabel:j=`View return policy`,onPurchaseInfoLinkClick:M,priceLabel:N,initialQuantity:P=1,minQuantity:F=1,maxQuantity:I=99,showCartActions:L=!0,showFavorites:R=!0,actionMode:ee=`cart`,contactActions:te,onAddToWishlist:z,onAddToCart:ne,onContactActionClick:re,mobileMediaSlot:B}=e,ie=d.map(e=>({label:p?.[e]??e,value:e})),V=ee===`cart`&&L&&ie.length>0,H=ee===`contact`&&!!te,U=V&&ie.length>1,W=e=>(t,n)=>{let r=`id`in n?String(n.id):null;(e.find(e=>e.value===t)??e.find(e=>e.id===r)??null)?.onOptionClick?.()},G=(e,t)=>n=>{e&&M&&(n.preventDefault(),M(e,t))};return(0,u.jsxs)(`div`,{className:[`w-full`,H?`md:relative md:aspect-square md:overflow-hidden`:``].join(` `),children:[(0,u.jsxs)(`div`,{className:[H?`md:max-h-[calc(100%-8rem)] md:overflow-y-auto md:pr-2`:``].join(` `),children:[n?(0,u.jsx)(f,{as:`p`,variant:`caption`,className:`mb-0 md:mb-1 text-lg!`,children:n}):null,t?(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`mb-2 text-2xl md:text-4xl`,children:t}):null,r?(0,u.jsx)(f,{as:`p`,variant:`body`,className:`mb-2 md:mb-3 text-md!`,children:r}):null,i?(0,u.jsx)(`div`,{className:`mb-3 md:mb-4`,children:(0,u.jsx)(Qs,{colourMatching:i})}):null,a?(0,u.jsxs)(f,{as:`p`,variant:`body`,className:`mb-4`,children:[m?.patternRepeat??`Pattern Repeat`,`: `,a]}):null,(0,u.jsxs)(`div`,{className:`flex gap-6 justify-start mb-4 md:mb-6`,children:[(0,u.jsx)(O,{label:c,iconName:`fa-download`,iconType:`fa-solid`,intent:`primary`,variant:`link`,onClick:o,className:`px-0! border-0! hover:text-accent! mr-4 md:mr-10`}),(0,u.jsx)(O,{label:l,iconName:`fa-download`,iconType:`fa-solid`,intent:`primary`,variant:`link`,onClick:s,className:`px-0! border-0! hover:text-accent!`})]}),B?(0,u.jsx)(`div`,{className:`md:hidden mb-10`,children:B}):null,U?(0,u.jsx)(`div`,{className:`mb-5`,children:(0,u.jsx)(pl,{items:ie,value:h,onChange:g,renderTab:({item:e,isActive:t,onTabClick:n})=>(0,u.jsx)(`button`,{type:`button`,onClick:n,className:[`w-full py-2 text-md`,t?`opacity-100 font-medium`:`opacity-60 hover:opacity-90`].join(` `),children:e.label})})}):null,(0,u.jsxs)(`div`,{className:`md:mb-10`,children:[(0,u.jsxs)(`div`,{className:[`space-y-5`,V?`md:min-h-[32rem]`:``].join(` `),children:[V&&_.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(f,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.product??`Product`,`:`]}),(0,u.jsx)(kl,{items:_,value:x??void 0,onChange:W(_)})]}):null,V&&v.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(f,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.grade??`Grade`,`:`]}),(0,u.jsx)(kl,{items:v,value:S??void 0,onChange:W(v)})]}):null,V&&y.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(f,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.texture??`Texture`,`:`]}),(0,u.jsx)(kl,{items:y,value:C??void 0,onChange:W(y)})]}):null,V&&b.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(f,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.size??`Size`,`:`]}),(0,u.jsx)(kl,{items:b,value:w??void 0,onChange:W(b)})]}):null,V&&h===`Buy Now`?(0,u.jsxs)(`div`,{children:[E?(0,u.jsx)(f,{as:`a`,href:E,variant:`body`,className:`text-sm underline hover:text-accent`,onClick:G(E,{kind:`availability`}),children:D}):null,(0,u.jsxs)(`div`,{className:`hidden md:block text-sm md:mt-4`,children:[(0,u.jsxs)(`span`,{className:`opacity-80`,children:[k,` `]}),A?(0,u.jsx)(f,{as:`a`,href:A,variant:`body`,className:`underline hover:text-accent`,onClick:G(A,{kind:`returnPolicy`}),children:j}):null]})]}):null,V&&h===`Buy Now`&&N?(0,u.jsx)(f,{as:`p`,variant:`h3`,className:`mt-1`,children:N}):null]}),V?(0,u.jsx)(`div`,{children:(0,u.jsx)(Ol,{initialQuantity:P,minQuantity:F,maxQuantity:I,showFavorites:R,wishlistLabel:m?.addToWishlist,decreaseQuantityLabel:m?.decreaseQuantity,increaseQuantityLabel:m?.increaseQuantity,onAddToWishlist:z,onAddToCart:ne??(()=>{}),onQuantityChange:T,cartLabel:h===`Sample`?m?.addSampleToCart??`Add Sample to Cart`:m?.addToCart})}):null,V&&h===`Buy Now`?(0,u.jsxs)(`div`,{className:`md:hidden text-sm pb-10`,children:[(0,u.jsxs)(`span`,{className:`opacity-80`,children:[k,` `]}),A?(0,u.jsx)(f,{as:`a`,href:A,variant:`body`,className:`underline hover:text-accent`,onClick:G(A,{kind:`returnPolicy`}),children:j}):null]}):null]})]}),H&&te?(0,u.jsx)(`div`,{className:`md:absolute md:inset-x-0 md:bottom-0`,children:(0,u.jsx)(le,{actions:te,onActionClick:re})}):null]})},jl=(e,t)=>Math.max(0,Math.min(e,t-1)),Ml=({items:e,initialIndex:t=0,loop:n=!0,showArrows:r=!0,arrowPosition:i=`sides`,onSelect:a,renderItem:o,className:s=``,trackClassName:l=``,ariaLabel:d=`Carousel`,header:f})=>{let p=e?.length??0,[m,h]=c.default.useState(()=>jl(t,p||1)),[_,v]=c.default.useState(()=>jl(t,p||1));if(c.default.useEffect(()=>{p>0&&(h(e=>jl(e,p)),v(e=>jl(e,p)))},[p]),p===0)return null;let y=t=>{let n=jl(t,p);h(n),a?.(n,e[n])},b=e=>{v(n?(e+p)%p:jl(e,p))},x=()=>b(_-1),S=()=>b(_+1),C=p>1,w=r&&C&&i===`top-right`,T=r&&C&&i===`sides`;return(0,u.jsxs)(`div`,{className:[`relative w-full`,s].join(` `),role:`region`,"aria-label":d,children:[i===`top-right`&&(0,u.jsxs)(`div`,{className:`mb-2 md:mb-4 flex items-center justify-between gap-4`,children:[(0,u.jsx)(`div`,{className:`min-w-0`,children:f}),w&&(0,u.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,u.jsx)(O,{variant:`ghost`,"aria-label":`Previous`,onClick:x,intent:`primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-left`,alt:``,size:`md`})}),(0,u.jsx)(O,{variant:`ghost`,"aria-label":`Next`,onClick:S,intent:`primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`md`})})]})]}),i===`sides`&&f&&(0,u.jsx)(`div`,{className:`mb-4`,children:f}),(0,u.jsxs)(`div`,{className:`relative overflow-hidden`,children:[T&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`hidden md:block absolute left-0 top-1/2 z-10 -translate-y-1/2`,children:(0,u.jsx)(O,{variant:`ghost`,"aria-label":`Previous`,onClick:x,intent:`primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-left`,alt:``,size:`md`})})}),(0,u.jsx)(`div`,{className:`hidden md:block absolute right-0 top-1/2 z-10 -translate-y-1/2`,children:(0,u.jsx)(O,{variant:`ghost`,"aria-label":`Next`,onClick:S,intent:`primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`md`})})})]}),(0,u.jsx)(`div`,{className:[`scrollbar-none overflow-x-auto md:overflow-x-visible flex gap-3 transition-transform duration-300 ease-in-out will-change-transform`,T?`md:px-10`:``,l].join(` `).trim(),style:{transform:`translateX(calc(-${_} * (1px + 0.75rem)))`},children:e.map((e,t)=>(0,u.jsx)(`div`,{className:`shrink-0`,children:o({item:e,index:t,isActive:t===m,select:()=>y(t)})},t))})]})]})},Nl=(e,t)=>Math.max(0,Math.min(e,t-1)),Pl=e=>typeof e==`string`?e.replace(/^http:\/\//i,`https://`):``,Fl=({slides:e,initialIndex:t=0,text:n,fallbackImage:r})=>{let i=e??[],a=r?{id:`fallback-image`,image:r}:null,o=i;!o.length&&a&&(o=[a]);let s=o.length,[l,d]=c.default.useState(()=>Nl(t,s||1)),[p,m]=c.default.useState(()=>new Set);if(c.default.useEffect(()=>{s>0&&d(e=>Nl(e,s))},[s]),s===0)return null;let h=o[l];if(!h?.image?.src&&!r?.src)return null;let g=(e,t)=>(!e||p.has(e)||p.has(Pl(e)))&&r?.src?r:{src:e??``,alt:t??``},_=g(h?.image?.src,h?.image?.alt),v=Pl(_.src),y=_.alt??``,b=e=>{!e||r?.src===e||m(t=>{let n=new Set(t);return n.add(e),n.add(Pl(e)),n})};return(0,u.jsxs)(`section`,{className:`w-full mx-auto`,children:[(0,u.jsx)(`div`,{className:`w-full aspect-square overflow-hidden rounded-lg`,children:(0,u.jsx)(j,{src:v,alt:y,className:`w-full h-full object-cover`,loading:`lazy`,decoding:`async`,quality:90,onError:()=>b(_.src)})}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(Ml,{items:o,initialIndex:l,loop:!0,showArrows:!0,ariaLabel:`Thumbnail carousel`,onSelect:e=>d(e),renderItem:({item:e,isActive:t,select:n,index:r})=>{let i=g(e.thumbnail?.src??e.image?.src,e.thumbnail?.alt??e.image?.alt),a=Pl(i.src),o=i.alt??``;return a?(0,u.jsx)(`button`,{type:`button`,onClick:n,"aria-label":`Show slide ${r+1}`,"aria-current":t?`true`:void 0,className:[`shrink-0 overflow-hidden border transition rounded`,t?`border-primary`:`border-transparent hover:border-primary/30`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/40`].join(` `),children:(0,u.jsx)(`div`,{className:`aspect-square w-20 overflow-hidden`,children:(0,u.jsx)(j,{src:a,alt:o,className:`w-full h-full object-cover`,loading:`lazy`,decoding:`async`,quality:80,onError:()=>b(i.src)})})},e.id??`thumb-${r}`):null}})}),(0,u.jsx)(`div`,{className:`mt-4 md:mt-6 space-y-2`,children:(0,u.jsx)(f,{as:`p`,variant:`body`,className:`text-xs md:text-sm`,children:n})})]})},Il=({carousel:e})=>{let t=!!e?.slides?.length,n=e?.fallbackImage;if(!t&&!n?.src)return(0,u.jsx)(`div`,{className:`w-full min-h-96`,"aria-hidden":`true`});let{slides:r=[],initialIndex:i=0,text:a}=e??{};return(0,u.jsx)(`div`,{className:`w-full h-full min-h-0 md:min-h-96`,children:(0,u.jsx)(Fl,{slides:r,initialIndex:i,text:a,fallbackImage:n})})},Ll=e=>{let t=e.find(e=>e.active);if(t)return t.value??t.id??null;let n=e[0];return n?n.value??n.id??null:null},Rl=(e,t)=>!!(t&&e.some(e=>(e.value??e.id)===t)),zl=e=>{let t=new Set;return e.reduce((e,n)=>!n.value||t.has(n.value)?e:(t.add(n.value),e.push({id:n.value,value:n.value,label:n.label||n.value}),e),[])},Bl=(e,t)=>!e||!t?null:`${e}x${t}`,Vl=(e,t,n)=>Math.max(t,Math.min(n,e)),Hl=(e,t=`USD`)=>new Intl.NumberFormat(`en-US`,{style:`currency`,currency:t}).format(e),Ul=e=>!!e?.length,Wl=(e,t)=>Ul(e)&&Ul(t),Gl=(e=[])=>e.some(e=>!!e.sku&&!!e.rangeId&&!!e.grade&&!!e.texture&&!!e.widthIn&&!!e.lengthIn),Kl=e=>{let{sku:t,decor:n,title:r,description:i,colourMatching:a,patternRepeat:o,onDownloadSwatch:s,onDownloadFullSheet:l,downloadSwatchLabel:d,downloadFullSheetLabel:f,carousel:p,tabs:m=[`Sample`,`Buy Now`],tabLabels:h,labels:g,initialTab:_=`Sample`,tabOptions:v,productOptions:y=[],sizeOptions:b=[],variants:x=[],currency:S,initialQuantity:C=1,minQuantity:w=1,maxQuantity:T=99,showFavorites:E=!0,actionMode:D=`cart`,contactActions:O,onAddToWishlist:k,onAddToCart:A,onContactActionClick:j,availabilityHref:M,availabilityLabel:N=`View full product availability and information`,returnPolicyHref:P,returnPolicyLabel:F=`View return policy`,notReturnableText:I=`This item is not returnable.`,onPurchaseInfoLinkClick:L}=e,R=Array.isArray(m)&&m.length?m:[`Sample`,`Buy Now`],ee=v?.Sample,te=v?.[`Buy Now`],z=ee?.productOptions??y??[],ne=ee?.sizeOptions??b??[],re=te?.productOptions??y??[],B=Wl(z,ne),ie=Ul(re)&&Gl(x),V=R.filter(e=>e===`Sample`?B:e===`Buy Now`?ie:!0),H=V[0]??`Sample`,[U,W]=c.default.useState(V.includes(_)?_:H);c.default.useEffect(()=>{if(!V.length){W(`Sample`);return}V.includes(U)||W(H)},[U,V,H]);let G=v?.[U],ae=!!G,oe=G?.minQuantity??w,se=G?.maxQuantity??T,ce=G?.productOptions??(ae?[]:y)??[],le=U===`Buy Now`,[K,ue]=c.default.useState(()=>({product:Ll(ce),grade:null,texture:null,size:null})),de=c.default.useRef(!1),fe=Rl(ce,K.product)?K.product:Ll(ce),pe=le&&fe?x.filter(e=>e.rangeId===fe):[],me=zl(pe.map(e=>({value:e.grade,label:e.grade}))),he=le?me:G?.gradeOptions??[],ge=Rl(he,K.grade)?K.grade:Ll(he),_e=ge?pe.filter(e=>e.grade===ge):pe,ve=zl(_e.map(e=>({value:e.texture,label:e.finish||e.texture}))),ye=le?ve:G?.textureOptions??[],be=Rl(ye,K.texture)?K.texture:Ll(ye),xe=be?_e.filter(e=>e.texture===be):_e,Se=new Map((G?.sizeOptions??b??[]).map(e=>[e.value??e.id,e.label])),Ce=zl(xe.map(e=>{let t=Bl(e.widthIn,e.lengthIn)??void 0;return{value:t,label:t?Se.get(t)??t:void 0}})),we=le?Ce:G?.sizeOptions??(ae?[]:b)??[],Te=Rl(we,K.size)?K.size:Ll(we);c.default.useEffect(()=>{if(!de.current){de.current=!0;return}ue({product:Ll(ce),grade:Ll(he),texture:Ll(ye),size:Ll(we)})},[U]),c.default.useEffect(()=>{ue(e=>{let t=e.product&&ce.some(t=>(t.value??t.id)===e.product)?e.product:Ll(ce),n=e.grade&&he.some(t=>(t.value??t.id)===e.grade)?e.grade:Ll(he),r=e.texture&&ye.some(t=>(t.value??t.id)===e.texture)?e.texture:Ll(ye),i=e.size&&we.some(t=>(t.value??t.id)===e.size)?e.size:Ll(we);return e.product===t&&e.grade===n&&e.texture===r&&e.size===i?e:{product:t,grade:n,texture:r,size:i}})},[ce,he,ye,we]);let Ee=c.default.useMemo(()=>{if(U!==`Buy Now`)return null;let e={product:fe,grade:ge,texture:be,size:Te},t=x.filter(t=>{let n=Bl(t.widthIn,t.lengthIn);return(t.rangeId??null)===e.product&&(t.grade??null)===e.grade&&(t.texture??null)===e.texture&&n===e.size});return t.length?t.find(e=>e.isWebEnabled)??t[0]??null:null},[U,x,fe,ge,be,Te]),De=U!==`Buy Now`||!!Ee,Oe=U===`Buy Now`&&Ee?Ee.price?.label??Hl(Ee.price?.value??0,S):``,ke=U===`Buy Now`&&Ee?Ee.price?.value??0:0,Ae=U===`Buy Now`?Ee?.sku??t:t,[je,Me]=c.default.useState(()=>Vl(C,oe,se)),Ne=c.default.useRef(U);c.default.useEffect(()=>{Me(Vl(C,oe,se))},[C,oe,se]),c.default.useEffect(()=>{Ne.current!==U&&(Ne.current=U,Me(oe))},[U,oe]);let q=(e,t)=>(t??[]).map(t=>{let n=t.value??t.id;return{id:t.id,label:t.label,disabled:t.disabled,value:n,active:K[e]===n,onOptionClick:()=>{t.disabled||(ue(t=>({...t,[e]:n})),t.onOptionClick?.(t.id))}}}),Pe={sku:Ae,title:r,decor:n,description:i,colourMatching:a,patternRepeat:o,onDownloadSwatch:s,onDownloadFullSheet:l,downloadSwatchLabel:d,downloadFullSheetLabel:f,tabs:V,tabLabels:h,labels:g,activeTab:U,onTabChange:W,productOptions:q(`product`,ce),gradeOptions:q(`grade`,he),textureOptions:q(`texture`,ye),sizeOptions:q(`size`,we),availabilityHref:M,availabilityLabel:N,returnPolicyHref:P,returnPolicyLabel:F,notReturnableText:I,priceLabel:Oe,initialQuantity:je,minQuantity:oe,maxQuantity:se,showCartActions:V.includes(U)&&De,showFavorites:E,actionMode:D,contactActions:O,selectedProduct:fe,selectedGrade:ge,selectedTexture:be,selectedSize:Te,onAddToWishlist:()=>{k?.({sku:Ae,decor:n})},onAddToCart:e=>{if(U===`Buy Now`&&!Ee)return;let t={type:U,sku:Ae,decor:n,product:fe,grade:ge,texture:be,size:Te,quantity:e,priceValue:U===`Buy Now`?ke:0,priceLabel:U===`Buy Now`?Oe:`$0.00`,currency:S,bigCommerceProductId:Ee?.bigCommerceProductId};A?.(t)},onContactActionClick:e=>{j?.({...e,sku:Ae,decor:n,title:r,activeTab:U,product:fe,grade:ge,texture:be,size:Te})},onQuantityChange:e=>Me(e),onPurchaseInfoLinkClick:L,mobileMediaSlot:(0,u.jsx)(Il,{carousel:p})};return(0,u.jsx)(`section`,{className:`w-full flex justify-center`,children:(0,u.jsx)(`div`,{className:`md:max-w-6xl px-4 md:px-0 w-full`,children:(0,u.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-8`,children:[(0,u.jsx)(`div`,{className:`hidden md:block`,children:(0,u.jsx)(Il,{carousel:p})}),(0,u.jsx)(Al,{...Pe})]})})})},ql=({imageSrc:e,imageAlt:t=`Standard Copy Hero`,heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})=>(0,u.jsx)(ll,{imageSrc:e,imageAlt:t,bannerClassName:`relative h-80 md:h-119.25 w-full mb-10 md:mb-16 overflow-hidden`,overlayClassName:`absolute inset-0 flex items-center inset-shadow-[0px_-150px_70px_-50px_rgba(0,0,0,.50)] md:inset-shadow-[800px_0_450px_-180px_rgba(0,0,0,.50)]`,children:(0,u.jsx)(`div`,{className:`mx-auto w-full max-w-6xl px-4 md:px-0`,children:(0,u.jsx)(Hs,{heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})})}),Jl=({categoryText:e,imageSrc:t,imageAlt:n=`Article Header`,tags:r=[],onTagClick:i})=>(0,u.jsx)(ll,{imageSrc:t,imageAlt:n,sectionClassName:`w-full`,bannerClassName:`h-80 md:h-119.25 w-full overflow-hidden mb-12 md:mb-20`,overlayClassName:`absolute inset-0 flex inset-shadow-[0px_-150px_70px_-50px_rgba(0,0,0,.50)]`,children:(0,u.jsx)(zs,{categoryText:e,tags:r,onTagClick:i})}),Yl=({slides:e,initialIndex:t=0,...n})=>{let[r,i]=c.default.useState(t);if(c.default.useEffect(()=>{i(t)},[t]),!e?.length)return null;let a=e[Math.max(0,Math.min(r,e.length-1))]?.imageText;return(0,u.jsx)(`section`,{className:`flex justify-center mb-16 md:mb-20`,children:(0,u.jsxs)(`div`,{className:`max-w-6xl w-full overflow-hidden`,children:[(0,u.jsx)(Is,{slides:e,initialIndex:t,onSlideChange:i,...n,showImageOverlay:!1}),a?(0,u.jsx)(`div`,{className:`w-full md:w-2/3 px-4 md:px-0 md:mx-auto mt-6 mb-6`,children:(0,u.jsx)(f,{variant:`free`,className:`text-primary font-normal text-base`,children:a})}):null,(0,u.jsx)(`div`,{className:`mx-4 md:mx-8 border-b border-2 border-secondaryHover mb-0 md:mb-6`})]})})},Xl=e=>{let{imageSrc:t=``,imageAlt:n=``}=e;return(0,u.jsx)(`section`,{className:`h-56 w-full overflow-hidden md:h-190`,children:(0,u.jsx)(j,{src:t,alt:n,className:`w-full h-full object-cover`,quality:90})})},Zl=({html:e=``,className:t=``})=>e?(0,u.jsx)(`div`,{className:`html-block ${t}`,dangerouslySetInnerHTML:{__html:e}}):null,Ql={left:`text-left`,center:`text-center`,right:`text-right`},$l={small:`text-xl md:text-4xl`,medium:`text-2xl md:text-4xl`,large:`text-3xl md:text-5xl`},eu=e=>{let{heading:t,align:n=`left`,headingAlign:r=n,subheading:i,body:a,datetimeStamp:o,headingLevel:s=`h1`,headingSize:c=`large`,addTopMargin:l=!1}=e,d=Ql[n],p=Ql[r],m=l?`mt-10 md:mt-20`:``,h=o?`mb-1`:`mb-4 md:mb-6`,g=`${p} ${$l[c]} text-primary ${h}`;return(0,u.jsxs)(`section`,{className:`w-full ${m}`.trim(),children:[t?(0,u.jsx)(f,{as:s,variant:`free`,className:g,children:t}):null,o?(0,u.jsx)(f,{variant:`caption`,className:`${d} md:text-base font-bold mb-6`,children:o}):null,i?(0,u.jsx)(f,{as:`h2`,variant:`bold`,className:`${d} text-primary mb-4`,children:i}):null,a?(0,u.jsx)(Zl,{html:a,className:d}):null]})},tu=e=>{let{body:t,heading:n,headingAlign:r=`center`,headingSize:i=`small`,...a}=e;return(0,u.jsxs)(`section`,{className:`w-full md:mt-10`,children:[n?(0,u.jsx)(eu,{...a,heading:n,headingAlign:r,headingSize:i}):null,(0,u.jsx)(`div`,{className:`w-full rounded-lg border-2 border-secondaryActive p-6 md:p-8`,children:(0,u.jsx)(eu,{...a,body:t})})]})},nu=({title:e=`Featured Products`,body:t,headerAlign:n=`center`,headerVariant:r=`default`,items:i,onItemClick:a})=>{if(!i?.length)return null;let o=n===`left`?`text-left md:mx-0`:`text-center`,s=r===`compact`?`text-tertiary text-base font-bold`:`text-primary text-2xl md:text-4xl`,c=r===`compact`?`text-tertiary text-base font-bold`:`text-primary text-xl font-bold md:font-normal md:text-2xl`,l=r===`compact`?`max-w-6xl w-full mb-8 md:mb-10 mx-auto px-4 md:px-0`:`max-w-6xl w-full mb-16 md:mb-20 mx-auto px-4 md:px-0`,d=i.length<4,p=d?`justify-evenly`:``;return(0,u.jsxs)(`section`,{className:l,children:[t?(0,u.jsxs)(`div`,{className:`mx-auto mb-4 max-w-4xl md:mb-6 ${o}`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:s,children:e}),(0,u.jsx)(f,{variant:`body`,className:`mt-4 text-primary`,children:t})]}):null,(0,u.jsx)(Ml,{items:i,ariaLabel:e,arrowPosition:`top-right`,showArrows:!d,trackClassName:p,header:t?null:(0,u.jsx)(f,{variant:`free`,className:c,children:e}),renderItem:({item:e})=>(0,u.jsx)(jo,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,title:e.title,brand:e.brand,decorNumber:e.decorNumber,onProductClick:a?()=>a(e):void 0},e.id)})]})},ru=({title:e,headerVariant:t=`default`,items:n=[]})=>n.length?(0,u.jsx)(`section`,{className:`w-full py-16 mb-10`,children:(0,u.jsxs)(`div`,{className:`mx-auto w-full max-w-6xl px-4 md:px-0`,children:[e?(0,u.jsx)(f,{as:`h2`,variant:`free`,className:t===`compact`?`mb-4 text-base font-bold text-tertiary md:mb-8`:`font-sans! font-bold md:font-normal text-xl md:text-2xl mb-4 md:mb-8`,children:e}):null,(0,u.jsx)(`div`,{className:`flex flex-col gap-4 md:gap-8`,children:n.map((e,t)=>(0,u.jsx)(c.default.Fragment,{children:(0,u.jsx)(cc,{...e})},`${e.title}-${t}`))})]})}):null,iu=({title:e,body:t,faqCards:n=[]})=>(0,u.jsx)(`section`,{className:`w-full flex justify-center mb-16 md:mt-12 md:mb-20`,children:(0,u.jsxs)(`div`,{className:`max-w-6xl md:px-6 px-4 flex flex-col items-center justify-center w-full`,children:[(0,u.jsxs)(`div`,{className:`w-full border-b-2 md:border-b border-secondaryHover`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-2xl md:text-4xl flex items-center justify-center w-full pb-4`,children:e}),t&&(0,u.jsx)(f,{variant:`free`,className:`text-sm md:mx-16 mb-8`,children:t})]}),(0,u.jsx)(`div`,{className:`w-full flex flex-col md:px-14 mt-8 md:mt-6 gap-4`,children:n.map(e=>(0,u.jsx)(qs,{question:e.question,answer:e.answer,initiallyOpen:e.initiallyOpen},e.id))})]})}),au=(e,t)=>e.id??[e.label,e.imageSrc,t].join(`-`),ou=e=>{let t=[],n=0,r=0;for(;n<e.length;){let i=r%2==0?2:3;t.push({entries:e.slice(n,n+i),columns:i}),n+=i,r+=1}return t},su=({items:e=[],onImageOverlayCardClick:t,layoutVariant:n=`uniform`})=>{if(!e.length)return null;let r=e.map((e,t)=>({item:e,index:t}));return n===`uniform`?(0,u.jsx)(`section`,{children:(0,u.jsx)(B,{className:`px-4 py-20 md:px-4`,gridClassName:`md:grid-cols-2`,columns:1,gap:`md`,children:r.map(({item:e,index:n})=>(0,u.jsx)(Ws,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,onCardClick:t?()=>t({item:e,index:n}):void 0},au(e,n)))})}):(0,u.jsx)(`section`,{className:`px-4 py-20 md:px-4`,children:ou(r).map((e,n,r)=>{let i=e.columns===3;return(0,u.jsx)(B,{className:n<r.length-1?`mb-6`:``,gridClassName:i?`md:grid-cols-3`:`md:grid-cols-2`,columns:1,gap:`md`,children:e.entries.map(({item:e,index:n})=>(0,u.jsx)(Ws,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,aspectRatio:i?`compact`:`video`,onCardClick:t?()=>t({item:e,index:n}):void 0},au(e,n)))},`image-overlay-grid-row-${n}`)})})},cu={2:`md:grid-cols-2`,3:`md:grid-cols-3`,4:`md:grid-cols-4`},lu=({locations:e,selectedLocationId:t,desktopColumns:n=4,stockedProductsLabel:r,preferredLabel:i,websiteLabel:a,directionsLabel:o,emailLabel:s,onWebsiteClick:c,onDirectionsClick:l,onPhoneClick:d,onEmailClick:f})=>e.length?(0,u.jsx)(B,{columns:1,gap:`lg`,gridClassName:cu[n],children:e.map(e=>(0,u.jsx)(`div`,{"aria-current":e.id===t?`true`:void 0,className:`h-full`,children:(0,u.jsx)(Fo,{location:e,stockedProductsLabel:r,preferredLabel:i,websiteLabel:a,directionsLabel:o,emailLabel:s,onWebsiteClick:c,onDirectionsClick:l,onPhoneClick:d,onEmailClick:f})},e.id))}):null,uu=({title:e=`Markets & Languages`,markets:t,selectedLocalizationId:n,saveAndNextLabel:r=`Save and Next`,saveAndNextHelpText:i,saveAndNextDisabled:a=!1,localizationSelectionDisabled:o=!1,onLocalizationSelect:s,onSaveAndNext:c})=>(0,u.jsxs)(`section`,{"aria-labelledby":`localization-market-collection-heading`,children:[(0,u.jsx)(f,{as:`h2`,id:`localization-market-collection-heading`,variant:`free`,className:`text-base font-bold text-primary`,children:e}),(0,u.jsx)(`div`,{className:`mt-4 space-y-3`,children:t.map(e=>(0,u.jsxs)(`div`,{className:`space-y-2`,children:[(0,u.jsx)(dc,{id:e.id,title:e.label,description:e.description,status:e.status,statusLabel:e.statusLabel,selected:e.id===n,onCardClick:e.languages?.length||o?void 0:s}),e.languages?.length?(0,u.jsx)(`div`,{className:`ml-4 space-y-2 border-l border-borderTertiary pl-3`,children:e.languages.map(e=>(0,u.jsx)(dc,{id:e.id,title:e.label,description:e.description,status:e.status,statusLabel:e.statusLabel,selected:e.id===n,onCardClick:o?void 0:s},e.id))}):null]},e.id))}),c?(0,u.jsxs)(`footer`,{className:`mt-8 border-t border-borderTertiary pt-5`,children:[(0,u.jsx)(O,{label:r,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,variant:`outline`,intent:`primary`,fullWidth:!0,disabled:a,onClick:c}),i?(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:i}):null]}):null]}),du={left:`text-left`,center:`text-center`,right:`text-right`},fu={left:`justify-start text-left`,center:`justify-center text-center`,right:`justify-end text-right`},pu={xs:`w-24`,sm:`w-32`,md:`w-48`,lg:`w-64`,xl:`w-80`},mu=e=>e==null||e===``?`-`:String(e),hu=e=>e==null?``:String(e),gu=e=>e==null||String(e).trim()===``,_u=e=>e.reduce((e,t)=>(e[t.id]={...t,values:{...t.values}},e),{}),vu=({title:e,description:t,columns:n,rows:r,rowCountLabel:i,updateLabel:a=`Update`,updateDisabled:o=!1,emptyMessage:s=`No report data available.`,ariaLabel:l,onRowUpdate:d})=>{let p=(0,c.useRef)(null),[m,h]=(0,c.useState)(_u(r)),[g,_]=(0,c.useState)(null),v=t?.trim()??``,y=i?.trim()??(r.length===1?`1 row`:`${r.length.toLocaleString()} rows`),b=r.length>0;(0,c.useEffect)(()=>{h(_u(r)),_(null)},[r]),(0,c.useEffect)(()=>{if(!g)return;let e=e=>{let t=e.target;t instanceof Element&&(t.closest(`[data-data-report-cell-editor='true']`)||_(null))};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[g]);let x=(e,t,n)=>{h(r=>{let i=r[e];return i?{...r,[e]:{...i,values:{...i.values,[t]:n}}}:r})},S=e=>{let t=m[e.id]??e;d?.({row:t,originalRow:e})},C=(e,t)=>!!(t.required||t.requiredWhen&&e.values[t.requiredWhen.columnId]===t.requiredWhen.value),w=e=>{let t=m[e.id]??e;return n.some(e=>C(t,e)&&gu(t.values[e.id]))},T=(e,t)=>{let n=(m[e.id]??e).values[t.id];return gu(n)?t.placeholder??`-`:t.editor===`select`?t.options?.find(e=>e.value===String(n))?.label??mu(n):mu(n)},E=(e,t,n,r,i)=>{let a=m[e.id]??e,s=g===n,c=t.editable!==!1,l=C(a,t),d=l&&gu(a.values[t.id]);return s?t.editor===`select`?(0,u.jsx)(`div`,{"data-data-report-cell-editor":`true`,children:(0,u.jsx)(Q,{id:`${n}-editor`,name:t.id,ariaLabel:`${t.label} for row ${e.id}`,value:hu(a.values[t.id]),options:t.options,placeholder:t.placeholder,disabled:o,required:l,hasError:d,onChange:n=>x(e.id,t.id,n.target.value)})}):(0,u.jsx)(`input`,{"aria-label":`${t.label} for row ${e.id}`,className:r,"data-data-report-cell-editor":`true`,maxLength:t.maxLength,disabled:o,required:l,"aria-invalid":d||void 0,value:hu(a.values[t.id]),onBlur:()=>_(null),onChange:n=>x(e.id,t.id,n.target.value),onKeyDown:e=>{(e.key===`Enter`||e.key===`Escape`)&&_(null)}}):c?(0,u.jsx)(`button`,{type:`button`,className:i,disabled:o,onClick:()=>_(n),children:(0,u.jsx)(`span`,{className:`min-w-0 truncate`,children:T(e,t)})}):T(e,t)};return(0,u.jsxs)(`section`,{ref:p,"aria-label":l??e,className:`w-full rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`header`,{className:`flex flex-col gap-3 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e}),v?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:v}):null]}),(0,u.jsx)(f,{variant:`free`,className:`inline-flex shrink-0 rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-tertiary`,children:y})]}),(0,u.jsx)(`div`,{className:`mt-4 overflow-hidden rounded-lg border border-borderTertiary`,children:b?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`hidden overflow-x-auto md:block`,children:(0,u.jsxs)(`table`,{className:`min-w-full table-fixed border-collapse`,children:[(0,u.jsxs)(`colgroup`,{children:[n.map(e=>(0,u.jsx)(`col`,{className:pu[e.width??`md`]},e.id)),(0,u.jsx)(`col`,{className:`w-20`})]}),(0,u.jsx)(`thead`,{className:`bg-tertiaryActive`,children:(0,u.jsxs)(`tr`,{children:[n.map(e=>(0,u.jsx)(`th`,{scope:`col`,className:`whitespace-nowrap px-4 py-3 text-xs font-bold uppercase text-tertiary ${pu[e.width??`md`]} ${du[e.alignment??`left`]}`,children:e.label},e.id)),(0,u.jsx)(`th`,{scope:`col`,className:`whitespace-nowrap px-4 py-3 text-center text-xs font-bold uppercase text-tertiary`,children:`Actions`})]})}),(0,u.jsx)(`tbody`,{className:`divide-y divide-borderTertiary`,children:r.map(e=>(0,u.jsxs)(`tr`,{className:`bg-secondary`,children:[n.map(t=>{let n=`${e.id}-${t.id}`,r=t.alignment??`left`;return(0,u.jsx)(`td`,{className:`whitespace-nowrap px-4 py-3 text-sm text-primary ${pu[t.width??`md`]} ${du[r]}`,children:E(e,t,n,`block w-full min-w-0 truncate rounded border border-borderTertiary bg-secondary px-2 py-1 text-sm text-primary outline-none focus:border-primary ${du[r]}`,`flex w-full min-w-0 cursor-pointer rounded px-2 py-1 text-sm text-primary hover:bg-tertiaryActive focus:bg-tertiaryActive focus:outline-none ${fu[r]}`)},n)}),(0,u.jsx)(`td`,{className:`whitespace-nowrap px-4 py-3 text-center`,children:(0,u.jsx)(he,{"aria-label":a,iconType:`fa-solid`,iconName:`upload`,iconAlt:``,intent:`primary`,size:`md`,disabled:o||w(e),onClick:()=>S(e)})})]},e.id))})]})}),(0,u.jsx)(`ul`,{className:`divide-y divide-borderTertiary md:hidden`,children:r.map(e=>(0,u.jsxs)(`li`,{className:`bg-secondary px-3 py-3`,children:[(0,u.jsx)(`dl`,{className:`grid grid-cols-1 gap-2`,children:n.map(t=>{let n=`${e.id}-${t.id}`;return(0,u.jsxs)(`div`,{className:`flex gap-3`,children:[(0,u.jsx)(`dt`,{className:`w-28 shrink-0 text-xs font-bold uppercase text-tertiary`,children:t.label}),(0,u.jsx)(`dd`,{className:`min-w-0 flex-1 break-words text-sm text-primary`,children:E(e,t,n,`block w-full min-w-0 rounded border border-borderTertiary bg-secondary px-2 py-1 text-sm text-primary outline-none focus:border-primary`,`w-full min-w-0 cursor-pointer rounded px-2 py-1 text-left text-sm text-primary hover:bg-tertiaryActive focus:bg-tertiaryActive focus:outline-none`)})]},n)})}),(0,u.jsx)(`div`,{className:`mt-3 flex justify-end`,children:(0,u.jsx)(he,{"aria-label":a,iconType:`fa-solid`,iconName:`upload`,iconAlt:``,intent:`primary`,size:`md`,disabled:o||w(e),onClick:()=>S(e)})})]},e.id))})]}):(0,u.jsx)(f,{variant:`free`,className:`px-3 py-4 text-sm text-primary`,children:s})})]})},yu=({groups:e,itemLabel:t=`decors`,emptyMessage:n=`No decors are available.`,showGroupHeaders:r=!0,onDecorClick:i,onDeleteDecorRequest:a})=>{let o=(0,c.useId)();return e.some(e=>e.items.length>0)?(0,u.jsx)(`div`,{className:`space-y-8`,children:e.map((e,n)=>{if(!e.items.length)return null;let s=`${o}-${n}`;return(0,u.jsxs)(`section`,{"aria-labelledby":r?s:void 0,"aria-label":r?void 0:e.label,children:[r?(0,u.jsxs)(`header`,{className:`flex items-end justify-between gap-4 border-b border-borderTertiary pb-3`,children:[(0,u.jsx)(f,{as:`h2`,id:s,variant:`free`,className:`text-base font-bold text-primary`,children:e.label}),(0,u.jsxs)(f,{variant:`free`,className:`shrink-0 text-xs font-bold text-tertiary`,children:[e.totalCount.toLocaleString(),` `,t]})]}):null,(0,u.jsx)(`div`,{className:r?`mt-3 space-y-3`:`space-y-3`,children:e.items.map(e=>(0,u.jsx)(ge,{...e,onDecorClick:i,onDeleteDecorRequest:a},e.decorId))})]},e.id)})}):(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:n})},bu=({ranges:e,emptyMessage:t=`No ranges are available.`,onRangeClick:n,onDeleteRangeRequest:r})=>e.length?(0,u.jsx)(`section`,{"aria-label":`Ranges`,className:`space-y-3`,children:e.map(e=>(0,u.jsx)(Me,{...e,onRangeClick:n,onDeleteRangeRequest:r},e.rangeId))}):(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t}),xu={lat:39.9612,lng:-82.9988},Su=()=>window,Cu=()=>Su().google,wu=e=>{let t=Su();return t.google?.maps?Promise.resolve():(t.formicaGoogleMapsPromise||=new Promise((t,n)=>{let r=document.createElement(`script`);r.src=`https://maps.googleapis.com/maps/api/js?key=${encodeURIComponent(e)}`,r.async=!0,r.defer=!0,r.onload=()=>t(),r.onerror=()=>n(Error(`Google Maps script failed to load`)),document.head.appendChild(r)}),t.formicaGoogleMapsPromise)},Tu=({center:e,locations:t,selectedLocationId:n})=>{let r=t.find(e=>e.id===n);return e??r?.coordinates??t[0]?.coordinates??xu},Eu=({googleMapsApiKey:e,mapId:t,locations:n,center:r,zoom:i=10,selectedLocationId:a,ariaLabel:o=`Locations map`,legendLabel:s,onLocationSelect:l})=>{let d=c.default.useRef(null),p=c.default.useRef(null),m=c.default.useRef([]),[h,_]=c.default.useState(e?`loading`:`missing-key`),v=c.default.useMemo(()=>Tu({center:r,locations:n,selectedLocationId:a}),[r,n,a]);c.default.useEffect(()=>{if(!e)return _(`missing-key`),()=>void 0;let t=!0;return _(`loading`),wu(e).then(()=>{t&&_(`loaded`)}).catch(()=>{t&&_(`error`)}),()=>{t=!1}},[e]),c.default.useEffect(()=>{if(h!==`loaded`||!d.current)return;let e=Cu();e&&(p.current?(p.current.setCenter(v),p.current.setZoom(i)):p.current=new e.maps.Map(d.current,{center:v,zoom:i,mapId:t,clickableIcons:!1,fullscreenControl:!0,mapTypeControl:!1,streetViewControl:!1}))},[h,t,v,i]),c.default.useEffect(()=>{if(h!==`loaded`||!p.current)return;let e=Cu();e&&(m.current.forEach(e=>e.setMap(null)),m.current=n.map((t,n)=>{let r=new e.maps.Marker({position:t.coordinates,map:p.current,title:t.name,label:String(n+1)});return r.addListener(`click`,()=>{l?.({location:t})}),r}))},[h,n,l]),c.default.useEffect(()=>{if(h!==`loaded`||!p.current||!a)return;let e=n.find(e=>e.id===a);e&&p.current.panTo(e.coordinates)},[h,n,a]),c.default.useEffect(()=>()=>{m.current.forEach(e=>e.setMap(null)),m.current=[]},[]);let y=n.slice(0,6);return(0,u.jsxs)(`section`,{className:`w-full`,"aria-label":o,children:[(0,u.jsx)(`div`,{ref:d,"data-testid":`location-map-canvas`,className:`h-80 w-full bg-secondary/10 md:h-96`,children:h===`missing-key`||h===`error`?(0,u.jsx)(`div`,{className:`flex h-full w-full flex-col justify-center gap-3 border border-secondaryHover bg-light px-6`,children:y.map((e,t)=>(0,u.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-left text-primary`,onClick:()=>l?.({location:e}),children:[(0,u.jsx)(`span`,{className:`flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-accent text-xs text-white`,children:t+1}),(0,u.jsx)(f,{as:`span`,variant:`body`,children:e.name})]},e.id))}):null}),s?(0,u.jsxs)(`div`,{className:`mt-3 flex items-center gap-2`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`location-dot`,color:`accent`,size:`sm`}),(0,u.jsx)(f,{variant:`caption`,className:`text-primary`,children:s})]}):null]})},Du={synced:{iconName:`check`,className:`border-saleGreen bg-saleGreen/10 text-saleGreen`},actionRequired:{iconName:`triangle-exclamation`,className:`border-yellow-500 bg-yellow-50 text-yellow-700`},checking:{iconName:`arrows-rotate`,className:`border-blue-500 bg-blue-50 text-blue-700`},error:{iconName:`xmark`,className:`border-accent bg-accent/10 text-accent`},notApplicable:{iconName:`minus`,className:`border-borderTertiary bg-adminSideNavBackground text-tertiary`}},Ou={match:`text-saleGreen`,mismatch:`text-accent`,neutral:`text-tertiary`},ku=e=>{let t=e.detail?.trim()??``,n=e.status??`neutral`;return(0,u.jsxs)(`div`,{className:`flex items-start justify-between gap-4 border-t border-borderTertiary py-3 first:border-t-0 first:pt-0 last:pb-0`,children:[(0,u.jsx)(`dt`,{className:`text-sm font-semibold text-primary`,children:e.label}),(0,u.jsxs)(`dd`,{className:`min-w-0 text-right`,children:[(0,u.jsx)(`div`,{className:`text-sm font-bold text-primary`,children:e.value}),t?(0,u.jsx)(`div`,{className:`mt-1 text-xs ${Ou[n]}`,children:t}):null]})]},e.id)},Au=(e,t,n)=>{let r=e.description?.trim()??``,i=e.actionHelpText?.trim()??``,a=Du[e.status];return(0,u.jsxs)(`article`,{className:`flex h-full flex-col rounded-lg border border-borderTertiary bg-adminSideNavBackground p-4 shadow-sm`,children:[(0,u.jsxs)(`header`,{children:[(0,u.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,u.jsx)(`span`,{className:`flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-adminSideNavBackground text-sm font-bold text-primary`,children:t}),(0,u.jsxs)(`span`,{"aria-label":`${e.title} status: ${e.statusLabel}`,className:`inline-flex items-center gap-2 rounded-full border px-2 py-1 text-xs font-semibold ${a.className}`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:a.iconName,alt:``,size:`xs`}),e.statusLabel]})]}),(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`mt-4 text-base font-bold`,children:e.title}),r?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:r}):null]}),(0,u.jsx)(`dl`,{className:`mt-5`,children:e.fields.map(ku)}),e.actionLabel?(0,u.jsxs)(`footer`,{className:`mt-auto pt-5`,children:[i?(0,u.jsx)(f,{variant:`free`,className:`mb-2 text-xs text-tertiary`,children:i}):null,(0,u.jsx)(O,{label:e.actionLabel,iconType:`fa-solid`,iconName:`arrows-rotate`,iconAlt:``,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:e.actionDisabled,onClick:n})]}):null]})},ju=({title:e=`Commerce Sync`,summary:t,detail:n,overallStatus:r,overallStatusLabel:i,lxStage:a,salsifyStage:o,bigCommerceStage:s,refreshLabel:c=`Check Again`,onLxSyncClick:l,onBigCommerceSyncClick:d,onRefreshClick:p})=>{let m=n?.trim()??``,h=Du[r],_=[{stage:a,onActionClick:void 0},{stage:o,onActionClick:l},{stage:s,onActionClick:d}];return(0,u.jsxs)(`section`,{"aria-labelledby":`commerce-sync-panel-heading`,children:[(0,u.jsx)(`div`,{"aria-label":`Commerce sync summary`,className:`rounded-lg border p-4 ${h.className}`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,u.jsx)(`span`,{className:`mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-current`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:h.iconName,alt:``,size:`sm`})}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(f,{as:`h2`,id:`commerce-sync-panel-heading`,variant:`free`,className:`text-base font-bold text-inherit`,children:[e,`: `,i]}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-inherit`,children:t}),m?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-inherit`,children:m}):null]})]}),p?(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(O,{label:c,iconType:`fa-solid`,iconName:`arrows-rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,onClick:p})}):null]})}),(0,u.jsx)(`div`,{"aria-label":`LX to BigCommerce sync flow`,className:`mt-5 grid gap-4 md:grid-cols-3 md:gap-6`,children:_.map((e,t)=>(0,u.jsxs)(`div`,{className:`relative min-w-0`,children:[Au(e.stage,t+1,e.onActionClick),t<_.length-1?(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`absolute -right-6 top-1/2 z-10 hidden h-6 w-6 -translate-y-1/2 items-center justify-center rounded-full border border-borderTertiary bg-secondary text-tertiary shadow-sm md:flex`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`xs`})}):null]},e.stage.title))})]})},Mu=({header:e=``,clearAllLabel:t=`Clear All`,emptyStateLabel:n=`No filters selected`,optionsList:r=[],onRemoveAll:i,onRemoveOption:a})=>{let o=e=>{a?.({id:e})};return(0,u.jsx)(`section`,{children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 px-4 md:px-0`,children:[(0,u.jsxs)(`div`,{className:`flex flex-row items-baseline gap-3`,children:[(0,u.jsx)(f,{variant:`bold`,className:`pt-2`,children:e}),r.length>0&&(0,u.jsx)(O,{intent:`neutral`,variant:`link`,onClick:()=>i(),className:`text-sm leading-none underline whitespace-nowrap`,children:t})]}),r.length>0?(0,u.jsx)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-2`,children:r.map(e=>(0,u.jsx)(`div`,{children:(0,u.jsx)(O,{intent:`neutral`,variant:`chip`,size:`xs`,iconType:`fa-solid`,iconName:`x`,iconPosition:`right`,iconSize:`xs`,className:`gap-1`,onClick:()=>o(e.id),children:e.label})},e.id))}):(0,u.jsx)(`div`,{className:`flex min-h-6 items-center`,children:(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-secondaryActive leading-none`,children:n})})]})})},Nu=({sections:e=[],header:t,headerIcon:n,appliedOptions:r,resetLabel:i=`Reset`,applyFiltersLabel:a=`Apply Filters`,onResetClick:o,onApplyFiltersClick:s,onCheckboxChange:c,onColorSelect:l})=>(0,u.jsxs)(`section`,{className:`relative pb-20 md:pb-0 w-full md:ml-2 md:w-52`,children:[(0,u.jsxs)(`div`,{className:`flex items-center w-full px-4 md:px-0 py-4 border-b border-secondaryHover`,children:[n?(0,u.jsx)(g,{iconType:`fa-solid`,iconName:n,className:`text-primary text-md mr-2`}):null,t?(0,u.jsx)(f,{variant:`free`,className:`text-lg text-primary `,children:t}):null]}),r&&(0,u.jsx)(Mu,{header:r.header,optionsList:r.optionsList,onRemoveOption:r.onRemoveOption,onRemoveAll:r.onRemoveAll}),e.map((e,t)=>(0,u.jsxs)(`div`,{className:`py-4 px-4 md:px-0 border-b border-secondaryHover`,children:[e.type===`colorSwatch`&&(0,u.jsx)(Rs,{label:e.label,options:e.options,onOptionSelect:l}),e.type===`checkbox`&&(0,u.jsx)(Go,{label:e.label,options:e.options,onOptionChange:c})]},`${e.label}-${t}`)),(0,u.jsx)(`div`,{className:`md:hidden`,children:(0,u.jsxs)(`div`,{className:`justify-around gap-2 px-4 fixed bottom-0 z-10 flex items-center w-full py-6 bg-secondary shadow-[0_-18px_30px_-18px_rgba(0,0,0,0.45)]`,children:[(0,u.jsx)(O,{variant:`outline`,intent:`accent`,size:`sm`,className:`w-full`,label:i,onClick:()=>o()}),(0,u.jsx)(O,{variant:`solid`,intent:`accent`,size:`sm`,className:`w-full`,label:a,onClick:()=>s()})]})})]}),Pu=[{label:`Architect or Designer`,value:`architectDesigner`},{label:`Builder or Construction`,value:`builderConstruction`},{label:`Dealer or Retailer`,value:`dealerRetailer`},{label:`Distributor`,value:`distributor`},{label:`Fabricator`,value:`fabricator`},{label:`General Contractor`,value:`generalContractor`},{label:`Homeowner`,value:`homeowner`},{label:`Media and Press`,value:`mediaPress`},{label:`Other`,value:`other`},{label:`Postformer`,value:`postformer`}],Fu=({htmlFor:e,label:t,errorMessage:n})=>(0,u.jsx)(f,{as:`label`,htmlFor:e,className:`text-sm ${n?`text-accent!`:`text-primary`}`,children:n||t}),Iu=({data:e,actionLabels:t,labels:n,onModeChange:r,onEmailChange:i,onPasswordChange:a,onFirstNameChange:o,onLastNameChange:s,onPhoneNumberChange:c,onUserTypeChange:l,onConfirmPasswordChange:d,onMarketingOptInChange:p,onTermsAcceptedChange:m,onEmailBlur:h,onPasswordBlur:g,onForgotPasswordClick:_,onTermsClick:v,onPrivacyClick:y,onSignInClick:b,onCreateAccountClick:x,onSecondaryClick:S})=>{let C=e.mode??`signIn`,w=C===`createAccount`,T=e.errors??{},E=e.userTypeOptions??Pu,D=[{id:`createAccount`,label:n?.createAccountMode??`Create Account`},{id:`signIn`,label:n?.signInMode??`Sign In`}],k=w?t?.createAccountPrimary??`Create Account`:t?.signInPrimary??`Sign In`,A=t?.secondary??`Cancel`;return(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-8`,children:[(0,u.jsx)(jc,{ariaLabel:n?.modeAriaLabel??`Login mode`,layoutVariant:`equalWidth`,items:D,selectedId:C,onSelect:e=>r?.(e)}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[w?(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-5 md:grid-cols-2`,children:[(0,u.jsx)($,{id:`account-access-first-name`,name:`firstName`,label:n?.firstName??`First Name*`,value:e.firstName??``,placeholder:n?.firstNamePlaceholder??`First Name*`,hasError:!!T.firstName,errorMessage:T.firstName,autoComplete:`given-name`,onChange:o}),(0,u.jsx)($,{id:`account-access-last-name`,name:`lastName`,label:n?.lastName??`Last Name`,value:e.lastName??``,placeholder:n?.lastNamePlaceholder??`Last Name`,autoComplete:`family-name`,onChange:s})]}):null,(0,u.jsx)($,{id:`account-access-email`,name:`email`,type:`email`,label:n?.email??`Email`,value:e.email??``,placeholder:w?n?.emailPlaceholder??`Email*`:``,hasError:!!T.email,errorMessage:T.email,autoComplete:`email`,onChange:i,onBlur:h}),w?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)($,{id:`account-access-phone-number`,name:`phoneNumber`,type:`tel`,label:n?.phoneNumber??`Phone Number*`,value:e.phoneNumber??``,placeholder:n?.phoneNumberPlaceholder??`Phone Number*`,hasError:!!T.phoneNumber,errorMessage:T.phoneNumber,autoComplete:`tel`,onChange:c}),(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[(0,u.jsx)(Fu,{htmlFor:`account-access-user-type`,label:n?.userType??`I am a*`,errorMessage:T.userType}),(0,u.jsx)(Q,{id:`account-access-user-type`,name:`userType`,placeholder:n?.userTypePlaceholder??`I am a*`,value:e.userType??``,hasError:!!T.userType,options:E.map(e=>({label:e.label,value:e.value,disabled:e.disabled})),onChange:e=>l?.(e.target.value)})]})]}):null,(0,u.jsx)($,{id:`account-access-password`,name:`password`,type:`password`,label:n?.password??`Password`,value:e.password??``,placeholder:w?n?.passwordPlaceholder??`Password*`:``,hasError:!!T.password,errorMessage:T.password,autoComplete:w?`new-password`:`current-password`,linkText:w?void 0:n?.forgotPassword??`Forgot Password?`,linkHref:`#`,onLinkClick:_,onChange:a,onBlur:g}),w?(0,u.jsxs)(u.Fragment,{children:[e.passwordRequirementsText?(0,u.jsx)(f,{variant:`caption`,className:`text-accent`,children:e.passwordRequirementsText}):null,(0,u.jsx)($,{id:`account-access-confirm-password`,name:`confirmPassword`,type:`password`,label:n?.confirmPassword??`Confirm Password*`,value:e.confirmPassword??``,placeholder:n?.confirmPasswordPlaceholder??`Confirm Password*`,hasError:!!T.confirmPassword,errorMessage:T.confirmPassword,autoComplete:`new-password`,onChange:d}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,u.jsxs)(`label`,{htmlFor:`account-access-marketing-opt-in`,className:`flex cursor-pointer items-center gap-3 rounded-md border border-secondaryHover bg-secondaryHover/30 py-3 pr-3 pl-5 text-sm leading-5 text-primary`,children:[(0,u.jsx)(`input`,{id:`account-access-marketing-opt-in`,name:`marketingOptIn`,type:`checkbox`,checked:e.marketingOptIn??!1,onChange:e=>p?.(e.target.checked),className:`h-4 w-4 shrink-0 accent-accent`}),(0,u.jsx)(`span`,{children:n?.marketingOptIn??`I give my permission to collect and use my information and receive updates regarding new launches, sales and marketing materials.`})]}),(0,u.jsxs)(`div`,{className:`flex items-center gap-3 rounded-md border border-secondaryHover bg-secondaryHover/30 py-3 pr-3 pl-5 text-sm leading-5 text-primary`,children:[(0,u.jsx)(`input`,{id:`account-access-terms-accepted`,name:`termsAccepted`,type:`checkbox`,"aria-label":n?.termsConsentAriaLabel??`I agree to Formica's Terms of Use and Privacy Policy`,checked:e.termsAccepted??!1,onChange:e=>m?.(e.target.checked),className:`h-4 w-4 shrink-0 accent-accent`}),(0,u.jsxs)(`span`,{children:[n?.termsConsentPrefix??`I agree to Formica's`,` `,(0,u.jsx)(O,{type:`button`,variant:`link`,intent:`accent`,className:`p-0! text-sm leading-5 align-baseline`,label:n?.termsOfUse??`Terms of Use`,onClick:v}),` `,n?.termsConsentJoin??`and`,` `,(0,u.jsx)(O,{type:`button`,variant:`link`,intent:`accent`,className:`p-0! text-sm leading-5 align-baseline`,label:n?.privacyPolicy??`Privacy Policy`,onClick:y}),`.`]})]}),T.termsAccepted?(0,u.jsx)(f,{variant:`caption`,className:`text-accent`,children:T.termsAccepted}):null]})]}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 ${w?`mb-8`:``}`,children:[(0,u.jsx)(O,{type:`button`,variant:`solid`,intent:`accent`,className:`w-full`,onClick:w?x:b,children:k}),(0,u.jsx)(O,{type:`button`,variant:`outline`,intent:`primary`,className:`w-full border-primary text-primary`,onClick:S,children:A})]})]})},Lu=({customerName:e,children:t,tabs:n,activeTabId:r,greeting:i=`Welcome back,`,logoutLabel:a=`Log out`,onTabClick:o,onLogoutClick:s})=>(0,u.jsx)(`section`,{className:`w-full bg-white`,children:(0,u.jsxs)(`div`,{className:`mx-auto w-full max-w-6xl px-4 pb-16 pt-6 md:px-0 md:pt-10`,children:[(0,u.jsxs)(`header`,{className:`flex items-center justify-between gap-4 pb-5`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-4`,children:[(0,u.jsx)(`span`,{className:`flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-tertiaryActive text-primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`user`,alt:``,size:`2xl`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(f,{variant:`caption`,children:i}),(0,u.jsx)(f,{as:`p`,variant:`free`,className:`mt-1 truncate font-rockwell text-2xl text-primary`,children:e})]})]}),(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(O,{label:a,variant:`link`,intent:`accent`,size:`sm`,onClick:s})})]}),(0,u.jsx)(`nav`,{"aria-label":`Customer account sections`,children:(0,u.jsx)(`div`,{role:`tablist`,children:(0,u.jsx)(pl,{items:n.map(e=>({label:e.label,value:e.id})),value:r,onChange:e=>{let t=n.find(t=>t.id===e);t&&o({item:t})},renderTab:({item:e,isActive:t,onTabClick:n})=>(0,u.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":t,className:`w-full px-2 py-4 text-xs font-semibold transition md:px-5 md:text-sm ${t?`text-primary`:`text-secondaryActive hover:text-primary`}`,onClick:n,children:e.label})})})}),(0,u.jsx)(`main`,{className:`pt-8 md:pt-10`,children:t})]})}),Ru=({items:e,value:t,onChange:n})=>{if(!e?.length)return null;let r=e=>{e.disabled||n(e.id,e)};return(0,u.jsx)(`div`,{className:`flex flex-row md:flex-col gap-2 md:gap-4 scrollbar-none overflow-x-auto`,children:e.map(e=>{let n=t===e.id;return(0,u.jsx)(O,{type:`button`,variant:`solid`,intent:`secondary`,active:n,disabled:!!e.disabled,onClick:()=>r(e),"aria-pressed":n,className:[`text-nowrap justify-start w-full rounded-lg px-2! md:px-4 py-3 text-left`,n?`text-primary! bg-secondaryHover!`:`border-secondaryHover! md:border-none`].join(` `),children:(0,u.jsx)(`span`,{className:`block w-full text-left`,children:e.label})},e.id)})})},zu=({data:e})=>e?(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:gap-6`,children:[!!e?.summary&&(0,u.jsx)(f,{as:`p`,variant:`body`,className:`leading-6 md:leading-7 md:max-w-4xl`,children:e.summary}),!!e?.content&&(0,u.jsx)(`div`,{children:e.content}),(0,u.jsx)(Qs,{colourMatching:e.colourMatching})]}):null,Bu=({data:e})=>e?.groups?.length?(0,u.jsx)(`div`,{className:`flex flex-col gap-6 md:gap-10 scrollbar-none overflow-x-auto`,children:e.groups.map((e,t)=>(0,u.jsxs)(`div`,{className:[`flex flex-col gap-2 md:gap-8`,t>0?`pt-2 md:pt-10 border-t border-black/10`:``].join(` `),children:[(0,u.jsx)(`div`,{children:(0,u.jsx)(f,{as:`h3`,variant:`bold`,className:`text-md`,children:e.title})}),(0,u.jsx)(`div`,{className:`flex flex-wrap gap-8`,children:e.items.map(e=>(0,u.jsxs)(`div`,{className:`flex md:flex-col gap-4 w-full md:max-w-52`,children:[(0,u.jsx)(`div`,{className:`w-full aspect-square overflow-hidden rounded-sm bg-black/5`,children:!!e.imageSrc&&(0,u.jsx)(j,{src:e.imageSrc,alt:e.imageAlt??e.title??``,className:`w-full h-full object-cover`,quality:90,loading:`eager`})}),(0,u.jsxs)(`div`,{className:`flex flex-col md:flex-none`,children:[!!e.title&&(0,u.jsx)(f,{as:`h4`,variant:`free`,className:`text-lg md:text-xl font-bold text-primary`,children:e.title}),!!e.description&&(0,u.jsx)(f,{as:`p`,variant:`body`,className:`max-w-80 leading-6`,children:e.description})]})]},e.key))})]},e.id))}):null,Vu=(e,t=!1)=>{let n=``;typeof e==`string`?n=e:typeof e?.label==`string`&&(n=e.label);let r=n.replace(/\bin\b/g,`IN`);return t?`${r} (MTO)`:r},Hu=({data:e,selectedGrade:t})=>e?(0,u.jsxs)(`div`,{className:`flex flex-col gap-8`,children:[!!e.cards?.length&&(0,u.jsx)(`div`,{className:`flex flex-row md:flex-wrap gap-4 md:gap-8 scrollbar-none overflow-x-auto`,children:e.cards.map(n=>{let r=n.items??[],i=n.mtoItems??[],a=[n.grade,n.thickness].filter(Boolean).join(` - `)||n.subtitle||``;return(0,u.jsxs)(`div`,{className:[`md:w-64 md:min-h-72 rounded-sm px-2 py-4 md:p-5 border`,(t&&t.trim().length>0?n.grade===t:e.cards?.[0]?.id===n.id)?`bg-neutral-200 border-neutral-200`:`bg-white border-neutral-400`].join(` `),children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-xl md:text-3xl leading-none mb-1`,children:n.title}),!!a&&(0,u.jsx)(f,{as:`h4`,variant:`free`,className:`mb-2 text-xs`,children:a}),(0,u.jsxs)(`div`,{className:`border-t border-primary/30 pt-4 flex`,children:[(0,u.jsx)(`div`,{className:`flex flex-col gap-2 mr-3 md:w-20`,children:r.map(e=>(0,u.jsx)(f,{as:`span`,variant:`free`,className:`text-xs text-nowrap`,children:Vu(e)},e))}),(0,u.jsx)(`div`,{className:`flex flex-col gap-2`,children:i.map(e=>(0,u.jsx)(f,{as:`span`,variant:`free`,className:`text-xs text-nowrap`,children:Vu(e,!0)},e))})]})]},n.id)})}),!!e.content&&(0,u.jsx)(`div`,{children:e.content}),!!e.summary&&(0,u.jsx)(f,{as:`p`,variant:`body`,className:`leading-7`,children:e.summary}),!!e.definitions?.length&&(0,u.jsx)(`div`,{className:`flex flex-col gap-3 w-full`,children:e.definitions.map(e=>(0,u.jsxs)(f,{as:`span`,variant:`body`,children:[(0,u.jsxs)(`span`,{className:`font-medium`,children:[e.grade,`: `]}),e.text]},e.id))})]}):null,Uu=[{label:`Product Details`,value:`details`},{label:`Texture`,value:`texture`},{label:`Size & Grade Guide`,value:`sizeAndGrade`}],Wu=(e,t)=>e?.length?t&&e.some(e=>e.id===t)?t:e[0].id:``,Gu=e=>{typeof window>`u`||e.forEach(e=>{if(!e)return;let t=new window.Image;t.src=e})},Ku=({ranges:e,defaultTab:t=`details`,tabLabels:n,defaultRangeId:r,selectedGrade:i})=>{let[a,o]=c.default.useState(t),[s,l]=c.default.useState(Wu(e,r));if(c.default.useEffect(()=>{l(Wu(e,r))},[e,r]),c.default.useEffect(()=>{let t=e?.flatMap(e=>e.texture?.groups??[]).flatMap(e=>e.items??[]).map(e=>e.imageSrc).filter(e=>!!e)??[];Gu([...new Set(t)])},[e]),!e?.length)return null;let d=Uu.map(e=>({...e,label:n?.[e.value]??e.label})),f=e.find(e=>e.id===s)??e[0];return(0,u.jsxs)(`section`,{className:`w-full flex flex-col pb-10 md:pb-0`,children:[(0,u.jsx)(`div`,{className:`w-full`,children:(0,u.jsx)(`div`,{className:`max-w-6xl w-full mx-auto px-4 md:px-6`,children:(0,u.jsx)(`div`,{className:`flex justify-start`,children:(0,u.jsx)(pl,{items:d.map(e=>({label:e.label,value:e.value,disabled:!1})),value:a,onChange:e=>o(e)})})})}),(0,u.jsx)(`div`,{className:`md:max-w-6xl md:mx-auto px-4 md:px-6 md:py-8 pt-6 w-full md:pl-32 md:min-h-[489px]`,children:(0,u.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-[240px_minmax(0,1fr)] gap-6 md:gap-10`,children:[(0,u.jsx)(`div`,{className:`md:pr-8 md:border-r border-black/10 md:min-h-40`,children:(0,u.jsx)(Ru,{items:e.map(e=>({id:e.id,label:e.label})),value:f.id,onChange:e=>l(e)})}),(0,u.jsx)(`div`,{children:(()=>{switch(a){case`details`:return(0,u.jsx)(zu,{data:f.details});case`texture`:return(0,u.jsx)(Bu,{data:f.texture});case`sizeAndGrade`:return(0,u.jsx)(Hu,{data:f.sizeAndGrade,selectedGrade:i});default:return null}})()})]})})]})},qu=({isOpen:e,title:t=`My Cart`,projectName:n=``,projectNamePlaceholder:r=`Enter project name`,emptyCartText:i=`Your cart is empty.`,goToCartLabel:a=`Go to Cart`,clearCartLabel:o=`Clear Cart`,freeLabel:s=`Free`,closeOverlayLabel:c=`Close cart overlay`,closeCartLabel:l=`Close cart`,flyoutAriaLabel:d=`Shopping cart flyout`,removeItemLabel:p=`Remove item`,decreaseQuantityLabel:m=`Decrease quantity`,increaseQuantityLabel:h=`Increase quantity`,items:g=[],className:_=``,onClose:v,onProjectNameChange:y,onQuantityChange:b,onRemoveItem:x,onClearCart:S,onGoToCart:C})=>{if(!e)return null;let w=g.length>0;return(0,u.jsxs)(`div`,{className:`fixed inset-0 z-50 flex justify-end`,children:[(0,u.jsx)(`button`,{type:`button`,"aria-label":c,className:`absolute inset-0 bg-black/40`,onClick:v}),(0,u.jsxs)(`aside`,{className:`relative z-10 flex h-full w-full max-w-md flex-col bg-white shadow-xl ${_}`,"aria-label":d,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between px-6 py-4`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-3xl text-primary`,children:t}),(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-xmark`,intent:`ghost`,variant:`ghost`,"aria-label":l,onClick:v,className:`text-secondaryActive!`})]}),(0,u.jsx)(`div`,{className:`mt-6 px-6`,children:(0,u.jsx)(`input`,{type:`text`,value:n,onChange:e=>y?.(e.target.value),placeholder:r,className:`w-full rounded-lg border border-secondaryActive px-4 py-1 text-primary outline-none focus:border-primary`})}),(0,u.jsx)(`div`,{className:`flex-1 overflow-y-auto px-6 py-5`,children:w?(0,u.jsx)(`div`,{className:`flex flex-col gap-4`,children:g.map(e=>(0,u.jsx)(ce,{sku:e.sku,imageSrc:e.imageSrc,imageAlt:e.imageAlt,title:e.title,brand:e.brand,decorNumber:e.decorNumber,productType:e.productType,quantity:e.quantity,price:e.price,minQuantity:e.minQuantity,maxQuantity:e.maxQuantity,freeLabel:s,removeItemLabel:p,decreaseQuantityLabel:m,increaseQuantityLabel:h,onQuantityChange:t=>b?.(e.id,t),onRemoveItem:()=>x?.(e.id),id:``},e.id))}):(0,u.jsx)(`div`,{className:`rounded-lg border border-secondaryActive p-6`,children:(0,u.jsx)(f,{variant:`free`,className:`text-base text-primary`,children:i})})}),(0,u.jsx)(`div`,{className:`px-6 py-5`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,u.jsx)(O,{label:a,intent:`accent`,variant:`solid`,onClick:C,disabled:!w,className:`w-full`}),(0,u.jsx)(O,{label:o,intent:`secondary`,variant:`solid`,onClick:S,disabled:!w,className:`w-full`})]})})]})]})};function Ju(e=[]){return e.reduce((e,t)=>(e[t.id]=t,e[t.value]=t,e),{})}var Yu=(e,t=[],n=null)=>t.map(t=>e[t]).filter(e=>!!e).map(e=>({id:e.id,label:e.label,value:e.value,active:n===e.id||n===e.value})),Xu=(e=[])=>{let t=new Set;return(e??[]).filter(e=>typeof e.grade==`string`&&!!e.grade).filter(e=>!e.grade||t.has(e.grade)?!1:(t.add(e.grade),!0)).map(e=>({id:e.grade,label:`Grade ${e.grade}`,value:e.grade,active:!1}))},Zu=(e=[],t=null)=>{let n=new Set;return e.reduce((e,r)=>{if(!r.isSample&&!r.sampleAvailable)return e;let i=r.texture??r.finish;return!i||n.has(i)?e:(n.add(i),e.push({id:i,label:r.finish||i,value:i,active:t===i}),e)},[])},Qu=(e=[])=>{let t=new Set;return e.reduce((e,n)=>{let r=n.rangeId;return!r||t.has(r)||(n.isSample||n.sampleAvailable)&&(t.add(r),e.push(r)),e},[])},$u=e=>(e??[]).map(e=>({id:e.id,title:e.title,subtitle:e.subtitle,grade:e.grade,thickness:e.thickness,items:e.items??[],mtoItems:e.mtoItems??[]})),ed=e=>e?`Grade ${e}`:``,td=({breadcrumbsProps:e,productData:t,showFavorites:n=!0,onDownloadSwatch:r,onDownloadFullSheet:i,onAddToWishlist:a,onAddToCart:o,onContactActionClick:s,onProductNavigate:l,cartFlyoutProps:d})=>{let f=t??{},p=f.images??[],m=f.product,h=f.content,g=f.optionSets,_=f.purchase,v=f.downloads,y=f.ranges??[],b=f.standardCopyHero,x=f.featuredProducts??[],S=m?.colourMatching,C=g?.ranges??[],w=g?.textures??[],T=g?.sizes??[],E=g?.sampleSizes??[],D=Ju(C),O=Ju(w),k=Ju(T),A=Ju(E),j=_?.tabOptions?.Sample??{},M=_?.tabOptions?.[`Buy Now`]??{},N=_?.defaults??{},P=Xu(f.variants??[]),F=f.variants?.[0]?.grade??null,[I,L]=c.default.useState(ed(F));c.default.useEffect(()=>{L(ed(F))},[F]);let R=P.map(e=>{let t=ed(e.value);return{...e,active:t===I,onOptionClick:()=>L(t)}}),ee=j.productOptionIds,te=ee?.filter(e=>!!D[e])??[],z=ee?.length?te:Qu(f.variants??[]),ne=j.textureOptionIds,re=ne?.filter(e=>!!O[e])??[],B=ne?.length?Yu(O,re,N.texture??null):Zu(f.variants??[],N.texture??null),ie=M.productOptionIds,V=ie?.filter(e=>!!D[e])??[],H=ie?V:C.map(e=>e.id),U={sku:m?.sku??``,decor:m?.decor??``,title:m?.title??``,description:m?.description??``,colourMatching:S,patternRepeat:m?.patternRepeat??``,variants:f.variants??[],onDownloadSwatch:()=>r?.(f),onDownloadFullSheet:()=>i?.(f),downloadSwatchLabel:v?.swatch?.label,downloadFullSheetLabel:v?.fullSheet?.label,carousel:{slides:p.map(e=>({id:e.id,image:{src:e.src,alt:e.alt??``},thumbnail:{src:e.thumbnailSrc??e.src,alt:e.thumbnailAlt??e.alt??``}})),initialIndex:0,text:h?.sampleDisclaimer??``,fallbackImage:{src:pc,alt:`Product image unavailable`}},tabs:g?.purchaseTabs??[`Sample`,`Buy Now`],tabLabels:h?.purchaseTabLabels,labels:h?.purchaseLabels,initialTab:h?.defaultPurchaseTab??`Buy Now`,tabOptions:{Sample:{minQuantity:j.minQuantity,maxQuantity:j.maxQuantity,productOptions:Yu(D,z,h?.defaultRangeId??C[0]?.value??null),gradeOptions:[],textureOptions:B,sizeOptions:Yu(A,j.sizeOptionIds??[],null)},"Buy Now":{minQuantity:M.minQuantity,maxQuantity:M.maxQuantity,productOptions:Yu(D,H,h?.defaultRangeId??C[0]?.value??null),gradeOptions:R,textureOptions:Yu(O,M.textureOptionIds??[],N.texture??null),sizeOptions:Yu(k,M.sizeOptionIds??[],N.size??null)}},productOptions:Yu(D,H,h?.defaultRangeId??C[0]?.value??null),gradeOptions:R,selectedGrade:I,textureOptions:Yu(O,M.textureOptionIds??[],N.texture??null),sizeOptions:Yu(k,M.sizeOptionIds??[],N.size??null),availabilityHref:h?.availabilityHref??`#`,availabilityLabel:h?.availabilityLabel??`View full product availability and information`,returnPolicyHref:h?.returnPolicyHref??`#`,returnPolicyLabel:h?.returnPolicyLabel??`View return policy`,notReturnableText:h?.notReturnableText??`This item is not returnable.`,priceLabel:m?.price?.label??``,priceValue:m?.price?.value??0,currency:m?.currency??`USD`,initialQuantity:N.quantity??1,minQuantity:N.minQuantity??1,maxQuantity:N.maxQuantity??99,showFavorites:n,actionMode:_?.actionMode??`cart`,contactActions:_?.contactActions,onAddToWishlist:e=>{a?.(e,f)},onAddToCart:e=>{o?.(e,f)},onContactActionClick:e=>{s?.(e,f)},onPurchaseInfoLinkClick:l},W={ranges:y.map(e=>{let t=e.sizeAndGrade?.definitions??[],n=$u(e.sizeAndGrade?.cards);return{id:e.id,label:e.label,details:{summary:e.details?.summary??``,content:e.details?.content,colourMatching:e.details?.colourMatching},texture:{groups:e.texture?.groups??[]},sizeAndGrade:{summary:e.sizeAndGrade?.summary??``,definitions:t,cards:n,content:e.sizeAndGrade?.content}}}),defaultTab:h?.defaultInfoTab??`details`,tabLabels:h?.productInformationTabLabels,defaultRangeId:h?.defaultRangeId??y[0]?.id??``,selectedGrade:I,className:``},G=e=>{let t=e.href||(e.rangeCode&&e.decorNumber?`/products/${e.rangeCode.toUpperCase()}/${e.decorNumber.toUpperCase()}`:``);t&&l?.(t,{source:`featured-products`,itemId:e.id,label:e.title,rangeCode:e.rangeCode,decorNumber:e.decorNumber})};return(0,u.jsxs)(`main`,{className:`mt-8 md:mt-10 w-full`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[e&&(0,u.jsx)(el,{...e}),(0,u.jsx)(Kl,{...U}),(0,u.jsx)(Ku,{...W}),(0,u.jsx)(`div`,{className:`hidden md:block`,children:b&&(0,u.jsx)(ql,{imageSrc:b.imageSrc??``,imageAlt:b.imageAlt??``,heading:b.heading??``,subheading:b.subheading??``,body:b.body??``,linkLabel:b.linkLabel,linkHref:b.linkHref??`#`})}),x.length>0&&(0,u.jsx)(nu,{title:t.featuredProductsTitle??``,items:x,onItemClick:G})]}),d?(0,u.jsx)(qu,{...d}):null]})},nd=({options:e,selectedValue:t,onSelect:n})=>{let r=e[0]?.value,i=t??r,a=e=>{let t={value:e.value,label:e.label};n?.(t)};return(0,u.jsx)(`section`,{className:`w-full flex justify-center`,children:(0,u.jsx)(`div`,{className:`w-full max-w-6xl mx-auto overflow-x-auto pb-2 md:pb-0 px-4 md:px-0 mb-8 flex gap-4`,role:`radiogroup`,"aria-label":`Multi button selection`,children:e.map(e=>{let t=i===e.value;return(0,u.jsx)(O,{label:e.label,variant:t?`solid`:`ghost`,intent:t?`neutral`:`radio`,size:`sm`,active:t,onClick:()=>a(e),"aria-pressed":t},e.value)})})})},rd=({standardCopyHeroProps:e,multiButtonBarProps:t,featuredArticleBannerProps:n,featureCardCollectionProps:r})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ql,{...e}),(0,u.jsx)(nd,{...t}),(0,u.jsx)(fl,{...n}),(0,u.jsx)(Sl,{...r})]}),id=(e,t)=>e.id??[e.decorNumber,e.title,e.brand,e.product,e.status??`standard`,t].join(`-`),ad=({swatches:e=[],onSwatchClick:t})=>(0,u.jsx)(B,{className:`mb-16 px-4 md:my-12 md:px-0`,gridClassName:`md:grid-cols-4`,columns:2,gap:`md`,children:e.map((e,n)=>{let r=t?()=>t(e,n):e.onSwatchClick;return(0,u.jsx)(mc,{imageSrc:e.imageSrc,imageFallbackSrc:e.imageFallbackSrc,imageAlt:e.imageAlt,title:e.title,brand:e.brand,product:e.product,decorNumber:String(e.decorNumber),onSwatchClick:r,status:e.status},id(e,n))})}),od=e=>e.flatMap(e=>e.options.filter(e=>e.checked).map(e=>({id:e.id,label:e.label}))),sd=(e,t,n)=>e.map(e=>({...e,options:e.options.map(e=>e.id===t?{...e,checked:n}:e)})),cd=e=>e.map(e=>({...e,options:e.options.map(e=>({...e,checked:!1}))})),ld=e=>e.tabs?.selectedValue??e.tabs?.options[0]?.value??``,ud=e=>e.filters.sort?.value??e.filters.sort?.options?.[0]?.value??e.filters.sort?.options?.[0]?.label??``,dd=e=>e.filters.search?.value??``,fd=e=>e.filters.panel?e.filters.toggleButton?.initiallyVisible??!0:!1,pd=({categoryData:e,className:t=``,onHeroLinkClick:n,onTabChange:r,onSortChange:i,onSearchChange:a,onFilterChange:o,onSwatchClick:s})=>{let[l,d]=c.default.useState(!1),[f,p]=c.default.useState(()=>fd(e)),m=e.filters.panel?.sections??[],h=ld(e),g=ud(e),_=dd(e),v=e.tabs,y=e.filters.sort,b=e.filters.search,x=e.filters.panel,S=!!(x||y||b),C=c.default.useMemo(()=>od(m),[m]),w=e.filters.labels,T=w?.panelHeader??x?.header,E=w?.clearAllLabel??x?.clearAllLabel,D=w?.applyFiltersLabel??x?.applyFiltersLabel,O=w?.appliedOptionsHeader??x?.appliedOptionsHeader,k=f?w?.hideFiltersLabel??e.filters.toggleButton?.hideLabel??`Hide Filters`:w?.showFiltersLabel??e.filters.toggleButton?.showLabel??`Show Filters`,A=w?.mobileFiltersLabel??e.filters.toggleButton?.mobileLabel??T??`Filters`,j=c.default.useCallback((t,n)=>{o?.(t,n,e)},[e,o]),M=c.default.useCallback(e=>{j(sd(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`checkbox`})},[j,m]),N=c.default.useCallback(e=>{j(sd(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`colorSwatch`})},[j,m]),P=c.default.useCallback(()=>{j(cd(m),{action:`clear-all`})},[j,m]);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)(ql,{...e.hero,onLinkClick:()=>n?.(e)}),v?(0,u.jsx)(nd,{options:v.options,selectedValue:h,onSelect:t=>{r?.(t,e)}}):null,S?(0,u.jsxs)(ys,{children:[x?(0,u.jsx)(bs,{className:`order-2 w-auto shrink-0 md:order-0`,buttonProps:{variant:`link`,intent:`primary`,label:k,onClick:()=>p(e=>!e)},mobileButtonProps:{variant:`solid`,intent:`neutral`,iconName:`sliders`,iconType:`fa-solid`,iconPosition:`left`,label:A,size:`sm`,onClick:()=>d(!0)}}):null,y?(0,u.jsx)(xs,{className:`hidden md:block md:w-70`,dropdownProps:{...y,value:g,onChange:t=>{i?.(t.target.value,e)}}}):null,b?(0,u.jsx)(Cs,{layoutVariant:`category`,searchPlaceholder:w?.searchPlaceholder??b.placeholder,searchBarProps:{...b,value:_,onChange:t=>{a?.(t.target.value,e)}}}):null]}):null,(0,u.jsxs)(`section`,{className:`mx-auto w-full md:flex md:max-w-6xl md:gap-8 md:py-6`,children:[f&&x?(0,u.jsx)(`div`,{className:`hidden md:block md:shrink-0`,children:(0,u.jsx)(Nu,{header:T,headerIcon:x.headerIcon,resetLabel:E,applyFiltersLabel:D,sections:m,appliedOptions:{header:O,clearAllLabel:E,optionsList:C,onRemoveOption:e=>{j(sd(m,e.id,!1),{action:`remove`,optionId:e.id})},onRemoveAll:P},onResetClick:P,onApplyFiltersClick:()=>void 0,onCheckboxChange:M,onColorSelect:N})}):null,l&&x?(0,u.jsx)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":T??A,className:`md:hidden`,children:(0,u.jsx)(Nu,{header:T,headerIcon:x.headerIcon,resetLabel:E,applyFiltersLabel:D,sections:m,appliedOptions:{header:O,clearAllLabel:E,optionsList:C,onRemoveOption:e=>{j(sd(m,e.id,!1),{action:`remove`,optionId:e.id})},onRemoveAll:P},onResetClick:P,onApplyFiltersClick:()=>d(!1),onCheckboxChange:M,onColorSelect:N})}):null,(0,u.jsx)(`div`,{className:`${l?`hidden`:`block`} my-8 md:my-0 md:block md:min-w-0 md:flex-1`,children:(0,u.jsx)(ad,{swatches:e.decorGrid.swatches,onSwatchClick:(t,n)=>s?.(t,n,e)})})]})]})},md=({images:e=[],onImageClick:t})=>(0,u.jsx)(B,{className:`mb-16 px-4 md:my-12 md:px-0`,gridClassName:`md:grid-cols-4`,columns:2,gap:`md`,children:e.map((e,n)=>(0,u.jsx)(`div`,{children:(0,u.jsx)(K,{className:`block w-full cursor-pointer text-left`,onCardClick:()=>t?.({image:e,index:n}),ariaLabel:`Open ${e.alt}`,children:(0,u.jsx)(j,{src:e.src,alt:e.alt,quality:e.quality,className:`aspect-square rounded-lg object-cover`})})},`${e.alt}-${n}`))}),hd=({standardCopyHeroProps:e,multiButtonBarProps:t,imageGridProps:n})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ql,{...e}),(0,u.jsx)(nd,{...t}),(0,u.jsx)(ys,{layoutVariant:`separator`}),(0,u.jsx)(md,{...n})]}),gd=({title:e,documentLinkCards:t})=>(0,u.jsx)(`section`,{className:`w-full flex justify-center mb-16 md:mt-12 md:mb-20`,children:(0,u.jsxs)(`div`,{className:`flex flex-col items-center justify-center w-full`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-2xl md:text-4xl text-center mb-4`,children:e}),(0,u.jsx)(`div`,{className:`w-full max-w-6xl px-4 md:px-0 grid grid-cols-1 md:grid-cols-2 gap-4 my-0 md:my-4 md:mx-auto`,children:t.map(e=>(0,u.jsx)(Ks,{title:e.title,details:e.details,iconName:e.iconName,onDocumentClick:e.onDocumentClick},e.id))})]})}),_d=({standardCopyHeroProps:e,multiButtonBarProps:t,warrantyCardProps:n,documentLinkCollectionProps:r,infoCardProps:i,faqCardCollectionProps:a})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ql,{...e}),(0,u.jsx)(nd,{...t}),(0,u.jsx)(z,{spacing:`section`,children:(0,u.jsx)(tu,{...n})}),(0,u.jsx)(gd,{...r}),(0,u.jsx)(z,{spacing:`section`,children:(0,u.jsx)(Js,{...i})}),(0,u.jsx)(iu,{...a})]}),vd=(e,t)=>e.id??[e.decorNumber,e.title,e.brand,e.rangeCode,t].join(`-`),yd=(e,t)=>e.slice(0,Math.max(0,Math.min(t??e.length,e.length))),bd=(e,t,n)=>n??`View ${e} more ${t}`,xd=({searchFilterProps:e,decorResultsProps:t,resourceResultsProps:n,noResultsMessage:r})=>{let i=t?.items??[],a=n?.items??[],o=yd(i,t?.visibleItemCount),s=yd(a,n?.visibleItemCount),c=i.length-o.length,l=a.length-s.length,d=e.searchBarProps.value?.trim(),p=d?`Showing results for "${d}"`:`Search Results`,m=i.length>0,h=a.length>0,g=m||h;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(z,{isFirst:!0,spacing:`compactPaddedSection`,children:[(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`mb-6 text-2xl text-primary md:text-3xl`,children:p}),(0,u.jsx)(Cs,{...e,layoutVariant:`full`})]}),m&&t?(0,u.jsxs)(z,{spacing:`compactPaddedSection`,children:[t.title?(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`mb-4 text-base font-bold text-tertiary md:mb-8`,children:t.title}):null,(0,u.jsx)(`div`,{className:`grid grid-cols-2 gap-6 md:grid-cols-5`,children:o.map((e,n)=>(0,u.jsx)(mc,{imageSrc:e.imageSrc,imageAlt:e.imageAlt??`${e.title} decor`,title:e.title,brand:e.brand??``,product:e.rangeCode,decorNumber:e.decorNumber??``,onSwatchClick:t.onItemClick?()=>t.onItemClick?.(e):void 0},vd(e,n)))}),c>0?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(O,{variant:`outline`,intent:`accent`,size:`sm`,label:bd(c,`decor results`,t.viewMoreLabel),onClick:t.onViewMoreClick})}):null]}):null,h&&n?(0,u.jsxs)(z,{spacing:`compactPaddedSection`,children:[n.title?(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`mb-4 text-base font-bold text-tertiary md:mb-8`,children:n.title}):null,(0,u.jsx)(`div`,{className:`flex flex-col gap-4 md:gap-8`,children:s.map((e,t)=>(0,u.jsx)(cc,{...e},`${e.title}-${t}`))}),l>0?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(O,{variant:`outline`,intent:`accent`,size:`sm`,label:bd(l,`resources`,n.viewMoreLabel),onClick:n.onViewMoreClick})}):null]}):null,g?null:(0,u.jsx)(z,{spacing:`paddedSection`,children:(0,u.jsx)(f,{variant:`body`,children:r})})]})},Sd=({loginImage:e,onCancelClick:t,...n})=>(0,u.jsx)(`section`,{className:`flex w-full justify-center px-4 py-10 md:py-16`,children:(0,u.jsxs)(`div`,{className:`${e?`md:grid md:max-w-5xl md:grid-cols-2 md:gap-12`:`max-w-lg`} w-full md:items-stretch`,children:[e?(0,u.jsx)(`div`,{className:`hidden min-h-96 overflow-hidden md:block`,children:(0,u.jsx)(j,{src:e.src,alt:e.alt,quality:e.quality??90,fit:e.fit??`cover`,useNetlifyImages:e.useNetlifyImages,className:`h-full w-full object-cover`})}):null,(0,u.jsx)(`div`,{className:`mx-auto w-full max-w-lg md:self-center`,children:(0,u.jsx)(Iu,{...n,onSecondaryClick:t})})]})}),Cd=e=>{let t=e.options.find(t=>t.value===e.selectedValue)??e.options[0];return t?.value??t?.label??``},wd=({data:e,className:t=``,onProductChange:n,onSearchSubmit:r,onTabChange:i,onLocationSelect:a,onWebsiteClick:o,onDirectionsClick:s,onPhoneClick:c,onEmailClick:l})=>{let d=e.locations.length>0,p=e.results.selectedLocationId??e.map.selectedLocationId,m=Cd(e.tabs);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)(ul,{...e.banner,onProductChange:t=>n?.(t,e),onSearchSubmit:t=>r?.(t,e)}),(0,u.jsx)(z,{spacing:`none`,className:`mb-8 pt-10`,innerClassName:`flex justify-center`,children:(0,u.jsx)(pl,{className:`w-full`,items:e.tabs.options.map(e=>({label:e.label,value:e.value,disabled:e.disabled})),value:m,onChange:t=>{let n=e.tabs.options.find(e=>(e.value??e.label)===t);n&&i?.({label:n.label,value:n.value},e)}})}),(0,u.jsx)(z,{spacing:`none`,className:`mb-8 pb-10 md:mb-10`,children:(0,u.jsx)(Eu,{...e.map,locations:e.locations,selectedLocationId:e.map.selectedLocationId??p,onLocationSelect:t=>a?.(t,e)})}),d?(0,u.jsx)(lu,{...e.results,locations:e.locations,selectedLocationId:p,onWebsiteClick:t=>o?.(t,e),onDirectionsClick:t=>s?.(t,e),onPhoneClick:t=>c?.(t,e),onEmailClick:t=>l?.(t,e)}):(0,u.jsx)(z,{spacing:`paddedSection`,children:(0,u.jsxs)(`div`,{className:`text-center`,children:[e.emptyState?.heading?(0,u.jsx)(f,{as:`h2`,variant:`h2`,children:e.emptyState.heading}):null,e.emptyState?.body?(0,u.jsx)(f,{variant:`body`,children:e.emptyState.body}):null]})})]})},Td=({title:e=`Order Confirmed`,message:t=`Thank you for your purchase! Your order has been confirmed and will be shipped soon.`,buttonLabel:n=`Return to Home`,onButtonClick:r})=>(0,u.jsx)(`section`,{className:`w-full bg-white`,children:(0,u.jsxs)(`div`,{className:`mx-auto flex max-w-6xl flex-col items-center px-6 py-20 text-center`,children:[(0,u.jsx)(`div`,{className:`mb-6 flex h-16 w-16 items-center justify-center rounded-full border-2 border-primary`,children:(0,u.jsx)(`span`,{className:`text-3xl leading-none text-primary`,children:`✓`})}),(0,u.jsx)(f,{as:`h1`,variant:`h1`,className:``,children:e}),(0,u.jsx)(f,{as:`p`,variant:`body`,className:`mt-4`,children:t}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(O,{type:`button`,variant:`solid`,intent:`accent`,label:n,onClick:r,className:`w-80`})})]})}),Ed=({shippingTitle:e=`Shipping Method`,paymentTitle:t=`Payment Summary`,shippingMethod:n={},paymentRows:r=[]})=>{let i=r.length>0;return(0,u.jsx)(`section`,{className:`w-full mt-10`,children:(0,u.jsxs)(`div`,{className:`flex w-full items-start justify-between gap-8`,children:[(0,u.jsxs)(`div`,{className:`${i?`w-1/2`:`w-full`} min-w-0`,children:[(0,u.jsx)(f,{as:`h3`,variant:`h3`,className:`mb-6 `,children:e}),(0,u.jsx)(`div`,{className:`rounded-lg bg-tertiaryActive p-5`,children:(0,u.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,u.jsxs)(`div`,{className:`min-w-0`,children:[n.methodLabel?(0,u.jsx)(f,{variant:`free`,className:`text-primary`,children:n.methodLabel}):null,n.estimatedDeliveryLabel?(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-sm text-tertiary`,children:n.estimatedDeliveryLabel}):null]}),n.price?(0,u.jsx)(f,{variant:`free`,className:`text-primary whitespace-nowrap`,children:n.price}):null]})})]}),i?(0,u.jsxs)(`div`,{className:`w-1/2 min-w-0`,children:[(0,u.jsx)(f,{as:`h3`,variant:`h3`,className:`mb-6 `,children:t}),(0,u.jsx)(`div`,{className:`rounded-lg bg-tertiaryActive p-5`,children:(0,u.jsx)(`div`,{className:`flex flex-col gap-5`,children:r.map((e,t)=>(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,u.jsx)(f,{variant:`free`,className:e.isEmphasized?`font-extrabold text-primary`:`text-primary`,children:e.label}),(0,u.jsx)(f,{variant:`free`,className:`${e.isEmphasized?`font-extrabold text-primary`:`text-primary`} ${e.valueClassName||``}`,children:e.value})]},`${e.label}-${t}`))})})]}):null]})})},Dd=e=>(0,u.jsxs)(`div`,{className:`min-w-0 flex flex-col gap-1`,children:[(0,u.jsx)(f,{variant:`free`,className:`font-extrabold text-primary`,children:e.title}),e.name?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:e.name}):null,e.addressLine1?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:e.addressLine1}):null,e.addressLine2?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:e.addressLine2}):null,e.addressLine3?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:e.addressLine3}):null,e.country?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:e.country}):null]}),Od=({sectionTitle:e=`Order Receipt`,orderDetails:t={},shippingAddress:n={},billingAddress:r={},className:i=``})=>(0,u.jsx)(`section`,{className:`w-full ${i}`,children:(0,u.jsxs)(`div`,{className:`w-full`,children:[(0,u.jsx)(f,{as:`h3`,variant:`h3`,className:`mb-10 border-b border-secondaryActive pb-4 `,children:e}),(0,u.jsxs)(`div`,{className:`flex w-full items-start justify-between gap-12`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 flex flex-col gap-6`,children:[(0,u.jsx)(f,{variant:`free`,className:`font-extrabold text-primary`,children:t.title||`Order Details`}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[t.orderNumberLabel?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.orderNumberLabel}):null,t.orderNumber?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.orderNumber}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[t.orderDateLabel?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.orderDateLabel}):null,t.orderDate?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.orderDate}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[t.nameLabel?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.nameLabel}):null,t.name?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.name}):null,t.email?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.email}):null,t.phone?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.phone}):null]})]}),Dd({title:n.title||`Shipping Address`,...n}),Dd({title:r.title||`Billing Address`,...r})]})]})}),kd=({sectionTitle:e=`Order Summary`,showPricing:t=!0,columnLabels:n={},items:r=[]})=>{let{orderDetails:i=`Order Details`,quantity:a=`Quantity`,unitPrice:o=`Unit Price`,total:s=`Total`}=n;return(0,u.jsx)(`section`,{className:`w-full`,children:(0,u.jsxs)(`div`,{className:`w-full`,children:[(0,u.jsx)(f,{as:`h3`,variant:`h3`,className:`mb-8`,children:e}),(0,u.jsx)(`div`,{className:`border-b border-secondaryActive pb-4`,children:(0,u.jsxs)(`div`,{className:t?`grid grid-cols-[minmax(0,1fr)_120px_120px_120px] items-center gap-6`:`grid grid-cols-[minmax(0,1fr)_120px] items-center gap-6`,children:[(0,u.jsx)(f,{variant:`free`,className:`font-extrabold text-primary`,children:i}),(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(f,{variant:`free`,className:`font-extrabold text-primary`,children:a})}),t?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(f,{variant:`free`,className:`font-extrabold text-primary`,children:o})}),(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(f,{variant:`free`,className:`font-extrabold text-primary`,children:s})})]}):null]})}),(0,u.jsx)(`div`,{className:`w-full`,children:r.map((e,n)=>(0,u.jsx)(`div`,{className:`border-b border-secondaryActive py-6`,children:(0,u.jsx)(ec,{...e,isReadOnly:!0,showPricing:t})},`${e.decorNumber||e.title||`item`}-${n}`))})]})})},Ad=({cartConfirmedHeroProps:e,cartReceiptSectionProps:t,cartSummarySectionProps:n,cartOrderSummaryProps:r})=>(0,u.jsx)(`section`,{className:`w-full flex justify-center`,children:(0,u.jsxs)(`div`,{className:`w-full max-w-6xl`,children:[(0,u.jsx)(Td,{...e}),(0,u.jsxs)(`div`,{className:`px-12 pb-16`,children:[(0,u.jsx)(`div`,{className:`mt-10`,children:(0,u.jsx)(Od,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(kd,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Ed,{...r})})]})]})}),jd=({title:e=`Ship To`,idPrefix:t=`shipping`,firstName:n=``,lastName:r=``,email:i=``,phoneNumber:a=``,companyName:o=``,userType:s=``,address:c=``,apartment:l=``,postalCode:d=``,city:p=``,country:m=`united-states`,countryLabel:h,stateProvince:_=``,addressRegionVariant:v=`default`,countryDisplayMode:y=`select`,countryOptions:b=[],stateProvinceOptions:x=[],userTypeOptions:S=[],firstNamePlaceholder:C=`First Name`,lastNamePlaceholder:w=`Last Name`,emailPlaceholder:T=`Email`,phoneNumberPlaceholder:E=`Phone Number`,companyNamePlaceholder:D=`Company Name (Optional)`,userTypePlaceholder:O=`I am a*`,addressPlaceholder:k=`Address`,apartmentPlaceholder:A=`Apartment/Suite/Building (Optional)`,cityPlaceholder:j,postalCodePlaceholder:M,stateProvincePlaceholder:N,countryPlaceholder:P=`Country`,showCompanyName:F=!0,showContactFields:I=!0,addressErrorMessage:L,errors:R={},onFirstNameChange:ee,onLastNameChange:te,onEmailChange:z,onPhoneNumberChange:ne,onCompanyNameChange:re,onUserTypeChange:B,onAddressChange:ie,onApartmentChange:V,onPostalCodeChange:H,onCityChange:U,onCountryChange:W,onStateProvinceChange:G,onFirstNameBlur:ae,onLastNameBlur:oe,onEmailBlur:se,onPhoneNumberBlur:ce,onCompanyNameBlur:le,onUserTypeBlur:K,onAddressBlur:ue,onApartmentBlur:de,onPostalCodeBlur:fe,onCityBlur:pe,onCountryBlur:me,onStateProvinceBlur:he})=>{let ge=v===`ca`||v===`mx`,_e=v===`uk`,ve=j??`City`,ye=M??`Postal Code`,be=N??(v===`ca`?`Province`:`State/Province`),xe=h??b.find(e=>e.value===m)?.label??m,Se=`${t}-address-error`,Ce=!!L,we=(0,u.jsx)($,{id:`${t}-city`,name:`city`,placeholder:ve,value:p,hasError:Ce||!!R.city,ariaDescribedBy:Ce?Se:void 0,errorMessage:R.city,onChange:U,onBlur:pe}),Te=(0,u.jsx)($,{id:`${t}-postal-code`,name:`postalCode`,placeholder:ye,value:d,hasError:Ce||!!R.postalCode,ariaDescribedBy:Ce?Se:void 0,errorMessage:R.postalCode,onChange:H,onBlur:fe}),Ee=(0,u.jsx)(Q,{id:`${t}-state-province`,name:`stateProvince`,options:x,value:_,placeholder:be,hasError:Ce||!!R.stateProvince,ariaDescribedBy:Ce?Se:void 0,variant:`field`,onChange:G,onBlur:he}),De=y===`readonly`?(0,u.jsx)($,{id:`${t}-country`,name:`country`,placeholder:P,value:xe,readOnly:!0,hasError:Ce||!!R.country,ariaDescribedBy:Ce?Se:void 0,errorMessage:R.country}):(0,u.jsx)(Q,{id:`${t}-country`,name:`country`,options:b,value:m,placeholder:P,hasError:Ce||!!R.country,ariaDescribedBy:Ce?Se:void 0,variant:`field`,onChange:W,onBlur:me}),Oe=(0,u.jsxs)(u.Fragment,{children:[Te,we,De,Ee]});return ge&&(Oe=(0,u.jsxs)(u.Fragment,{children:[we,Ee,Te,De]})),_e&&(Oe=(0,u.jsxs)(u.Fragment,{children:[we,Te,(0,u.jsx)(`div`,{className:`col-span-2`,children:De})]})),(0,u.jsxs)(`section`,{className:`flex flex-col gap-6`,children:[(0,u.jsx)(f,{as:`h2`,variant:`bold`,className:`text-primary`,children:e}),(0,u.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[I?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)($,{id:`${t}-first-name`,name:`firstName`,placeholder:C,value:n,hasError:!!R.firstName,errorMessage:R.firstName,onChange:ee,onBlur:ae}),(0,u.jsx)($,{id:`${t}-last-name`,name:`lastName`,placeholder:w,value:r,hasError:!!R.lastName,errorMessage:R.lastName,onChange:te,onBlur:oe}),(0,u.jsx)($,{id:`${t}-email`,name:`email`,type:`email`,placeholder:T,value:i,hasError:!!R.email,errorMessage:R.email,onChange:z,onBlur:se}),(0,u.jsx)($,{id:`${t}-phone-number`,name:`phoneNumber`,type:`tel`,placeholder:E,value:a,hasError:!!R.phoneNumber,errorMessage:R.phoneNumber,onChange:ne,onBlur:ce}),S.length>0?(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)(Q,{id:`${t}-user-type`,name:`userType`,options:S,value:s,placeholder:O,hasError:!!R.userType,variant:`field`,onChange:e=>B?.(e.target.value),onBlur:K})}):null,F?(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-company-name`,name:`companyName`,placeholder:D,value:o,hasError:!!R.companyName,errorMessage:R.companyName,onChange:re,onBlur:le})}):null]}):null,(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-address`,name:`address`,placeholder:k,value:c,hasError:Ce||!!R.address,ariaDescribedBy:Ce?Se:void 0,errorMessage:R.address,onChange:ie,onBlur:ue})}),(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-apartment`,name:`apartment`,placeholder:A,value:l,hasError:!!R.apartment,errorMessage:R.apartment,onChange:V,onBlur:de})}),L?(0,u.jsxs)(`div`,{id:Se,role:`alert`,className:`col-span-2 flex items-center gap-3 rounded-md border border-accent bg-accent/10 p-4`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`route`,size:`xl`,color:`accent`,className:`shrink-0`}),(0,u.jsx)(f,{variant:`body`,className:`font-bold text-accent`,children:L})]}):null,Oe]})]})},Md=({title:e,options:t=[],selectedValue:n,name:r,className:i=``,onChange:a})=>(0,u.jsxs)(`section`,{className:`flex w-full flex-col gap-4 ${i}`,children:[e?(0,u.jsx)(f,{as:`h3`,variant:`bold`,className:`text-primary`,children:e}):null,(0,u.jsx)(`div`,{className:`flex w-full flex-col gap-4`,children:t.map(e=>(0,u.jsx)(Yo,{id:e.id,name:r,value:e.value,label:e.label,description:e.description,checked:n===e.value,disabled:e.disabled,onChange:e=>a?.(e)},e.id))})]}),Nd=({steps:e=[],currentStep:t=0,onStepClick:n,className:r=``,completedColorClass:i=`text-accent!`,upcomingColorClass:a=`text-primary`,connectorCompletedClass:o=`bg-accent!`,connectorUpcomingClass:s=`bg-primary`})=>{if(!e.length)return null;let l=typeof t==`number`?t:e.findIndex(e=>e===t),d=l>=0?l:0,p=(e,t)=>e<t?{left:o,icon:i,right:o}:e===t?{left:o,icon:a,right:s}:{left:s,icon:a,right:s},m=(e,t)=>{let r=t<=d?i:a;return typeof n==`function`?(0,u.jsx)(`button`,{type:`button`,onClick:()=>n(e,t),className:`shrink-0 text-left`,children:(0,u.jsx)(f,{as:`span`,className:`${r} whitespace-nowrap`,children:e})},`step-${e}-${t}`):(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(f,{as:`span`,className:`${r} whitespace-nowrap`,children:e})},`step-${e}-${t}`)};return(0,u.jsx)(`div`,{className:`flex w-full items-center ${r}`,children:e.map((t,n)=>{if(n===e.length-1)return m(t,n);let r=p(n,d);return(0,u.jsxs)(c.default.Fragment,{children:[m(t,n),(0,u.jsxs)(`div`,{className:`mx-3 flex min-w-0 flex-1 items-center`,children:[(0,u.jsx)(`span`,{className:`block h-px flex-1 ${r.left}`}),(0,u.jsx)(g,{iconName:`fa-circle-check`,iconType:`fa-solid`,className:`mx-3 shrink-0 text-md ${r.icon}`}),(0,u.jsx)(`span`,{className:`block h-px flex-1 ${r.right}`})]})]},`${t}-${n}`)})})},Pd=({shippingAddressFormProps:e,shippingOptionSelectorProps:t,checkoutProgressIndicatorProps:n,sampleOrderSummaryPanelProps:r,submitLabel:i=`Submit Sample Order`,onSubmitSampleOrder:a})=>(0,u.jsx)(`section`,{className:`flex w-full justify-center px-4 py-10 pb-24 md:py-16 md:pb-28`,children:(0,u.jsx)(`div`,{className:`w-full max-w-6xl`,children:(0,u.jsxs)(`div`,{className:`grid w-full grid-cols-1 gap-8 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(jd,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Md,{...t})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Nd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(wl,{...r})}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(O,{label:i,intent:`accent`,fullWidth:!0,onClick:a})})]})]})})}),Fd=({title:e=`Ordered Samples`,items:t,checkoutProgressIndicatorProps:n,sampleOrderSummaryPanelProps:r,proceedToShippingLabel:i=`Proceed to Shipping`,browseMoreSamplesLabel:a=`Browse More Samples`,onQuantityChange:o,onRemoveItem:s,onProceedToShipping:c,onBrowseMoreSamples:l})=>(0,u.jsx)(`section`,{className:`flex w-full justify-center px-4 py-10 pb-24 md:py-16 md:pb-28`,children:(0,u.jsx)(`div`,{className:`w-full max-w-6xl`,children:(0,u.jsxs)(`div`,{className:`grid w-full grid-cols-1 gap-8 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{className:`rounded-lg bg-tertiaryActive`,children:[(0,u.jsx)(f,{as:`h2`,id:`bpcs-cart-samples-heading`,variant:`free`,className:`p-6 text-xl font-extrabold text-primary`,children:e}),(0,u.jsx)(`ol`,{"aria-labelledby":`bpcs-cart-samples-heading`,className:`flex min-h-96 flex-col`,children:t.map((e,n)=>{let r=n===t.length-1;return(0,u.jsxs)(`li`,{children:[(0,u.jsx)(ec,{imageSrc:e.imageSrc,imageAlt:e.imageAlt||e.title,title:e.title,brand:e.brand||``,decorNumber:e.decorNumber||``,quantity:e.quantity,minQuantity:e.minQuantity,maxQuantity:e.maxQuantity,showPricing:!1,onQuantityChange:t=>o?.(e.id,t),onRemoveItem:()=>s?.(e.id)}),r?null:(0,u.jsx)(`div`,{className:`mx-6 border-b border-secondaryHover`})]},e.id)})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Nd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(wl,{...r})}),(0,u.jsxs)(`div`,{className:`mt-8 flex flex-col gap-3 bg-white`,children:[(0,u.jsx)(O,{label:i,intent:`accent`,fullWidth:!0,onClick:c}),(0,u.jsx)(O,{label:a,intent:`muted`,variant:`outline`,fullWidth:!0,onClick:l})]})]})]})})}),Id=({customerDetailsFormProps:e,shippingAddressFormProps:t,shippingOptionSelectorProps:n,checkoutProgressIndicatorProps:r,sampleOrderSummaryPanelProps:i,privacyConsentLabel:a=`I have read and agree to the`,privacyPolicyLabel:o=`Privacy Policy`,privacyConsentChecked:s=!1,privacyConsentErrorMessage:c,submitLabel:l=`Submit Sample Order`,onPrivacyConsentChange:d,onPrivacyPolicyClick:p,onSubmitSampleOrder:m})=>(0,u.jsx)(`section`,{className:`flex w-full justify-center px-4 py-10 pb-24 md:py-16 md:pb-28`,children:(0,u.jsx)(`div`,{className:`w-full max-w-6xl`,children:(0,u.jsxs)(`div`,{className:`grid w-full grid-cols-1 gap-8 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Tl,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(jd,{...t,addressRegionVariant:`uk`,showContactFields:!1})}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Md,{...n})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Nd,{...r}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(wl,{...i})}),(0,u.jsxs)(`div`,{className:`mt-8 flex flex-wrap items-center gap-x-1 gap-y-2`,children:[(0,u.jsx)(Wo,{id:`salesforce-privacy-consent`,name:`privacyConsent`,label:a,checked:s,onChange:({checked:e})=>d?.(e)}),(0,u.jsx)(`button`,{type:`button`,className:`text-sm font-bold text-accent underline underline-offset-2`,onClick:p,children:o}),c?(0,u.jsx)(f,{role:`alert`,variant:`caption`,className:`w-full text-accent`,children:c}):null]}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(O,{label:l,intent:`accent`,fullWidth:!0,onClick:m})})]})]})})}),Ld=({cartConfirmedHeroProps:e,cartReceiptSectionProps:t,cartSummarySectionProps:n,cartOrderSummaryProps:r})=>(0,u.jsx)(`section`,{className:`w-full flex justify-center`,children:(0,u.jsxs)(`div`,{className:`w-full max-w-6xl`,children:[(0,u.jsx)(Td,{...e}),(0,u.jsxs)(`div`,{className:`px-12 pb-16`,children:[(0,u.jsx)(`div`,{className:`mt-10`,children:(0,u.jsx)(Od,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(kd,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Ed,{...r})})]})]})}),Rd=({discountCode:e=``,discountCodeStatus:t=`idle`,discountCodeMessage:n=``,subtotalLabel:r=`Sub total`,discountLabel:i=`Discount`,taxLabel:a=`Tax`,shippingLabel:o=`Shipping`,totalLabel:s=`Total`,subtotal:l=`$0.00`,discount:d=``,tax:p=`Not calculated`,shipping:m=`Not calculated`,total:h=`$0.00`,continueLabel:_=`Continue`,discountCodePlaceholder:v=`Enter discount code`,applyDiscountLabel:y=`Apply`,notCalculatedLabel:b=`Not calculated`,showDiscountCode:x=!0,onDiscountCodeChange:S,onApplyDiscount:C,onContinue:w,className:T=``})=>{let E=!!(e.trim()&&d),D=!!(p.trim()&&p!==`Not calculated`&&p!==b),k=D?p:b,A=!!(m.trim()&&m!==`Not calculated`&&m!==b),j=A?m:b,[M,N]=c.default.useState(!0),P=t!==`idle`&&!!n&&(t!==`success`||M),F=t===`success`;return c.default.useEffect(()=>{if(N(!0),t!==`success`)return;let e=window.setTimeout(()=>{N(!1)},2200);return()=>{window.clearTimeout(e)}},[t,n]),(0,u.jsxs)(`section`,{className:`flex w-full flex-col gap-8 ${T}`,children:[x?(0,u.jsxs)(`div`,{className:`flex items-start gap-4`,children:[(0,u.jsxs)(`div`,{className:`flex flex-1 flex-col gap-2`,children:[(0,u.jsx)(Vo,{id:`cart-totals-discount-code`,name:`discountCode`,value:e,placeholder:v,hasError:t===`error`,onChange:S}),P?F?(0,u.jsxs)(`div`,{className:`flex items-center gap-2 rounded-md border border-secondaryHover bg-tertiaryActive 0 px-3 py-2 `,"aria-live":`polite`,children:[(0,u.jsx)(g,{iconType:`fa-regular`,iconName:`face-grin-beam`,size:`xl`,className:`text-saleGreen`}),(0,u.jsx)(f,{variant:`body`,className:`font-bold text-shadow-saleGreen`,children:n})]}):(0,u.jsx)(f,{variant:`caption`,className:`text-accent`,"aria-live":`polite`,children:n}):null]}),(0,u.jsx)(O,{type:`button`,variant:`solid`,intent:`accent`,label:y,onClick:C,className:`min-w-20`})]}):null,(0,u.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(f,{variant:`body`,children:r}),(0,u.jsx)(f,{variant:`body`,children:l})]}),E?(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(f,{variant:`body`,children:i}),(0,u.jsx)(f,{variant:`body`,className:`text-accent`,children:d})]}):null,(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(f,{variant:`body`,children:a}),(0,u.jsx)(f,{variant:`body`,className:D?``:`text-secondaryActive`,children:k})]}),(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(f,{variant:`body`,children:o}),(0,u.jsx)(f,{variant:`body`,className:A?``:`text-secondaryActive`,children:j})]}),(0,u.jsxs)(`div`,{className:`flex items-center justify-between pt-2`,children:[(0,u.jsx)(f,{variant:`bold`,children:s}),(0,u.jsx)(f,{variant:`bold`,children:h})]})]}),(0,u.jsx)(O,{type:`button`,variant:`solid`,intent:`accent`,className:`w-full`,onClick:w,children:_})]})},zd=({paymentTypeTitle:e=`Select Payment Type`,paymentTypeSelectorProps:t,cardNumber:n=``,expirationDate:r=``,securityCode:i=``,errors:a={},onCardNumberChange:o,onExpirationDateChange:s,onSecurityCodeChange:c,onCardNumberBlur:l,onExpirationDateBlur:d,onSecurityCodeBlur:p})=>(0,u.jsxs)(`section`,{className:`flex w-full flex-col gap-6`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,u.jsx)(f,{as:`h2`,variant:`bold`,className:`text-primary`,children:e}),(0,u.jsx)(Md,{...t})]}),(0,u.jsxs)(`div`,{className:`mt-10 flex flex-col gap-4`,children:[(0,u.jsx)($,{id:`payment-card-number`,name:`cardNumber`,placeholder:`Card Number`,value:n,hasError:!!a.cardNumber,errorMessage:a.cardNumber,onChange:o,onBlur:l}),(0,u.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,u.jsx)($,{id:`payment-expiration-date`,name:`expirationDate`,placeholder:`MM/YY`,value:r,hasError:!!a.expirationDate,errorMessage:a.expirationDate,onChange:s,onBlur:d}),(0,u.jsx)($,{id:`payment-security-code`,name:`securityCode`,placeholder:`CVC`,value:i,hasError:!!a.securityCode,errorMessage:a.securityCode,onChange:c,onBlur:p})]})]})]}),Bd=({shippingMethodSelectorProps:e,cartPaymentPanelProps:t,checkoutProgressIndicatorProps:n,cartTotalsPanelProps:r})=>(0,u.jsx)(`section`,{className:`w-full flex justify-center mt-10 pb-16`,children:(0,u.jsxs)(`div`,{className:`grid w-full max-w-6xl grid-cols-2 gap-8`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Md,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(zd,{...t})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Nd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Rd,{...r})})]})]})}),Vd=({shippingAddressFormProps:e,billingAddressFormProps:t={},checkoutProgressIndicatorProps:n,cartTotalsPanelProps:r,billingSectionTitle:i=`Billing Information`,sameAsShipping:a=!0,sameAsShippingLabel:o=`My billing address is the same as my shipping address`,onSameAsShippingChange:s})=>{let[l,d]=c.default.useState(a);c.default.useEffect(()=>{d(a)},[a]);let p=t.countryOptions?.length?t.countryOptions:e.countryOptions,m=t.stateProvinceOptions?.length?t.stateProvinceOptions:e.stateProvinceOptions;return(0,u.jsx)(`section`,{className:`w-full flex justify-center mt-10 pb-16`,children:(0,u.jsxs)(`div`,{className:`grid w-full max-w-6xl grid-cols-2 gap-8`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(jd,{...e}),(0,u.jsxs)(`div`,{className:`mt-8 flex flex-col gap-4`,children:[(0,u.jsx)(f,{as:`h2`,variant:`bold`,className:`text-primary`,children:i}),(0,u.jsx)(Wo,{id:`same-as-shipping`,name:`sameAsShipping`,label:o,checked:l,onChange:e=>{d(e.checked),s?.(e)}})]}),l?null:(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(jd,{...t,idPrefix:t.idPrefix??`billing`,title:t.title??``,countryOptions:p,stateProvinceOptions:m})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Nd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Rd,{...r})})]})]})})},Hd=(e,t,n)=>new Intl.NumberFormat(t,{style:`currency`,currency:n}).format(e),Ud=({subtotal:e,shippingCost:t,items:n=[],title:r=`Order Summary`,totalLabel:i=`Total`,locale:a=`en-US`,currency:o=`USD`,removeItemLabel:s=`Remove item`,decreaseQuantityLabel:c=`Decrease quantity`,increaseQuantityLabel:l=`Increase quantity`,onQuantityChange:d,onRemoveItem:p})=>{if(n.length===0)return null;let m=e+t;return(0,u.jsx)(`section`,{"aria-labelledby":`cart-summary-heading`,children:(0,u.jsxs)(`div`,{className:`w-full rounded-lg bg-tertiaryActive min-h-[34rem]`,children:[(0,u.jsx)(f,{as:`h2`,id:`cart-summary-heading`,variant:`free`,className:`p-6 text-xl font-extrabold text-primary`,children:r}),(0,u.jsx)(`ol`,{className:`flex flex-col min-h-[24rem]`,children:n.map((e,t)=>{let r=t===n.length-1;return(0,u.jsxs)(`li`,{children:[(0,u.jsx)(ec,{imageSrc:e.imageSrc,imageAlt:e.imageAlt||e.title,title:e.title,brand:e.brand||``,decorNumber:e.decorNumber||``,quantity:e.quantity,price:e.price,minQuantity:e.minQuantity,maxQuantity:e.maxQuantity,removeItemLabel:s,decreaseQuantityLabel:c,increaseQuantityLabel:l,onQuantityChange:t=>d?.(e.id,t),onRemoveItem:()=>p?.(e.id)}),r?null:(0,u.jsx)(`div`,{className:`mx-6 border-b border-secondaryHover`})]},e.id)})}),(0,u.jsx)(`div`,{className:`px-6 pt-8 pb-8 border-t border-secondaryActive`,children:(0,u.jsxs)(`div`,{className:`flex justify-between pb-2`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-left font-bold`,children:i}),(0,u.jsx)(f,{variant:`free`,className:`text-right font-bold pr-7`,children:Hd(m,a,o)})]})})]})})},Wd=({currentStep:e=0,steps:t=[`Account`,`Shipping`,`Payment`],activeMode:n=`signIn`,email:r=``,password:i=``,firstName:a=``,lastName:o=``,phoneNumber:s=``,userType:c=``,confirmPassword:l=``,marketingOptIn:d=!1,termsAccepted:f=!1,passwordRequirementsText:p,emailError:m=``,passwordError:h=``,firstNameError:g=``,phoneNumberError:_=``,userTypeError:v=``,confirmPasswordError:y=``,termsAcceptedError:b=``,emailHasError:x=!1,passwordHasError:S=!1,firstNameHasError:C=!1,phoneNumberHasError:w=!1,userTypeHasError:T=!1,confirmPasswordHasError:E=!1,termsAcceptedHasError:D=!1,actionLabels:O,labels:k,onModeChange:A,onEmailChange:j,onPasswordChange:M,onFirstNameChange:N,onLastNameChange:P,onPhoneNumberChange:F,onUserTypeChange:I,onConfirmPasswordChange:L,onMarketingOptInChange:R,onTermsAcceptedChange:ee,onEmailBlur:te,onPasswordBlur:z,onForgotPasswordClick:ne,onTermsClick:re,onPrivacyClick:B,onContinue:ie,onContinueAsGuest:V})=>(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-8`,children:[(0,u.jsx)(Nd,{steps:t,currentStep:e}),(0,u.jsx)(Iu,{data:{mode:n,email:r,password:i,firstName:a,lastName:o,phoneNumber:s,userType:c,confirmPassword:l,marketingOptIn:d,termsAccepted:f,passwordRequirementsText:p,errors:{email:x?m:void 0,password:S?h:void 0,firstName:C?g:void 0,phoneNumber:w?_:void 0,userType:T?v:void 0,confirmPassword:E?y:void 0,termsAccepted:D?b:void 0}},actionLabels:O??{signInPrimary:`Continue`,createAccountPrimary:`Continue`,secondary:`Continue as guest`},labels:k,onModeChange:A,onEmailChange:j,onPasswordChange:M,onFirstNameChange:N,onLastNameChange:P,onPhoneNumberChange:F,onUserTypeChange:I,onConfirmPasswordChange:L,onMarketingOptInChange:R,onTermsAcceptedChange:ee,onEmailBlur:te,onPasswordBlur:z,onForgotPasswordClick:ne,onTermsClick:re,onPrivacyClick:B,onSignInClick:ie,onCreateAccountClick:ie,onSecondaryClick:V})]}),Gd=e=>e.customerState===`authenticated`?(0,u.jsx)(`section`,{className:`mt-10 flex w-full justify-center px-4 pb-16 md:px-6`,children:(0,u.jsxs)(`div`,{className:`w-full max-w-3xl`,children:[(0,u.jsx)(Nd,{...e.checkoutProgressIndicatorProps}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Ud,{...e.cartSummaryProps})}),(0,u.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,u.jsx)(O,{label:e.continueLabel??`Continue to shipping`,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`accent`,className:`w-full md:w-auto`,disabled:e.continueDisabled,onClick:e.onContinueClick})})]})}):(0,u.jsx)(`section`,{className:`mt-10 flex w-full justify-center px-4 pb-16 md:px-6`,children:(0,u.jsxs)(`div`,{className:`grid w-full max-w-6xl grid-cols-1 gap-8 md:grid-cols-2`,children:[(0,u.jsx)(Ud,{...e.cartSummaryProps}),(0,u.jsx)(Wd,{...e.checkoutAccountStepProps})]})}),Kd=({pageTitle:e,pageDescription:t,sideNavProps:n,headerLeading:r,headerActions:i,backgroundJobTrayProps:a,children:o})=>{let s=t?.trim()??``;return(0,u.jsx)(`div`,{className:`min-h-screen bg-secondary`,children:(0,u.jsxs)(`div`,{className:`flex min-h-screen overflow-hidden bg-secondary`,children:[(0,u.jsx)(`aside`,{className:`hidden w-56 shrink-0 md:block`,children:(0,u.jsx)(xc,{...n})}),(0,u.jsxs)(`main`,{className:`min-w-0 flex-1 bg-adminSideNavBackground p-4 md:p-6`,children:[(0,u.jsxs)(`header`,{className:`flex flex-col gap-4 border-b border-borderTertiary pb-5 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{className:`min-w-0`,children:[r,(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`text-2xl font-bold text-primary`,children:e}),s?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:s}):null]}),i?(0,u.jsx)(`div`,{className:`shrink-0`,children:i}):null]}),o]}),a?(0,u.jsx)(Oc,{...a}):null]})})},qd={loading:{iconName:`spinner`,iconClassName:`text-tertiary`,defaultTitle:`Loading`},empty:{iconName:`inbox`,iconClassName:`text-tertiary`,defaultTitle:`No data available`},error:{iconName:`triangle-exclamation`,iconClassName:`text-accent`,defaultTitle:`Unable to load data`}},Jd=e=>{if(e===`loading`)return`status`;if(e===`error`)return`alert`},Yd=({status:e,action:t,onRetryClick:n})=>{if(e.state===`ready`)return null;let r=qd[e.state],i=e.title?.trim()||r.defaultTitle,a=e.message?.trim()??``,o=e.detail?.trim()??``;return(0,u.jsx)(`section`,{role:Jd(e.state),"aria-live":e.state===`loading`?`polite`:void 0,className:`mt-5 flex min-h-64 items-center justify-center rounded-lg border border-borderTertiary bg-secondary p-6 text-center shadow-sm`,children:(0,u.jsxs)(`div`,{className:`max-w-lg`,children:[e.state===`loading`?(0,u.jsx)(v,{label:``,size:`2xl`}):(0,u.jsx)(g,{iconType:`fa-solid`,iconName:r.iconName,alt:``,size:`2xl`,className:r.iconClassName}),(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`mt-4 text-lg font-bold text-primary`,children:i}),a?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:a}):null,o?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-xs text-tertiary`,children:o}):null,t?(0,u.jsx)(`div`,{className:`mt-5`,children:t}):null,!t&&e.state===`error`&&e.retryLabel?(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(O,{label:e.retryLabel,iconType:`fa-solid`,iconName:`rotate`,iconAlt:``,variant:`solid`,intent:`primary`,onClick:n})}):null]})})},Xd=e=>e===`error`?`border-accent bg-accent/10`:e===`warning`?`border-yellow-500 bg-yellow-50`:e===`success`?`border-saleGreen bg-green-50`:`border-borderTertiary bg-adminSideNavBackground`,Zd=e=>e===`saved`?`text-saleGreen`:e===`error`?`text-accent`:`text-yellow-700`,Qd=({status:e,label:t,errorMessage:n,lastSavedLabel:r})=>e===`saved`?null:(0,u.jsxs)(`div`,{className:`text-xs text-tertiary`,children:[(0,u.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[e===`saving`?(0,u.jsx)(v,{label:``,size:`xs`}):(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`circle-exclamation`,alt:``,size:`xs`,className:Zd(e)}),t]}),r?(0,u.jsxs)(`span`,{className:`ml-4`,children:[`Saved `,r]}):null,n?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:n}):null]}),$d=e=>{let t=e.onBackClick?(0,u.jsx)(O,{label:e.backLabel??`Back to browse`,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`ghost`,intent:`primary`,size:`sm`,className:`px-0`,onClick:e.onBackClick}):void 0;if(!(`data`in e)){let n=e.state===`notFound`||e.state===`empty`?`empty`:e.state;return(0,u.jsxs)(Kd,{pageTitle:e.pageTitle,sideNavProps:e.sideNavProps,backgroundJobTrayProps:e.backgroundJobTrayProps,children:[t?(0,u.jsx)(`div`,{className:`mt-5`,children:t}):null,(0,u.jsx)(Yd,{status:{state:n,message:e.message,retryLabel:e.state===`error`?e.actionLabel:void 0},onRetryClick:`onActionClick`in e?e.onActionClick:void 0})]})}let{data:n,sideNavProps:r={items:[]},backgroundJobTrayProps:i,onTabSelect:a,onLocalizationSelect:o,onDecorFieldChange:s,onDecorSave:c,onDecorCancel:l,onDeleteDecorClick:d,onLxImport:p,onNoticeActionClick:m}=e,{decor:h,decorEditor:_}=n,y=n.availableTabs??[`decor`,`sheets`,`samples`],b=n.mode===`create`,x=n.region===`north-america`,S=n.lxImport?.state===`loading`,C=x&&!b&&!!n.lxImport,w=h.name.trim()||`New decor`,T=`Decor ${h.decorCode} · Range ${h.rangeCode}`;b&&(T=`Enter a decor code to begin`,h.decorCode.trim()&&(T=`Decor ${h.decorCode}`,h.rangeCode.trim()&&(T+=` · Range ${h.rangeCode}`)));let E=_.activeLocalization.saveStatus===`saving`,D=_.searchColorFieldId?[..._.sharedFields,..._.localizedFields].filter(e=>e.id===_.searchColorFieldId):[],k=_.decorFlagFieldId?_.sharedFields.filter(e=>e.id===_.decorFlagFieldId):[],A=_.sharedFields.filter(e=>e.id!==_.searchColorFieldId&&e.id!==_.decorFlagFieldId),M=_.localizedFields.filter(e=>e.id!==_.searchColorFieldId);return(0,u.jsxs)(Kd,{pageTitle:n.pageTitle,pageDescription:n.pageDescription,sideNavProps:r,backgroundJobTrayProps:i,children:[(0,u.jsxs)(`section`,{className:`mt-5 flex items-center gap-4 rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[h.imageUrl?(0,u.jsx)(j,{src:h.imageUrl,alt:h.imageAlt??``,quality:85,className:`h-16 w-16 rounded-md border border-borderTertiary object-cover`}):(0,u.jsx)(`span`,{className:`flex h-16 w-16 shrink-0 items-center justify-center rounded-md border border-borderTertiary bg-adminSideNavBackground`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`swatchbook`,alt:``,size:`xl`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:w}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:T})]})]}),t?(0,u.jsx)(`div`,{className:`mt-3`,children:t}):null,n.notice?(0,u.jsxs)(`section`,{role:n.notice.tone===`error`?`alert`:`status`,className:`mt-4 rounded-lg border p-4 ${Xd(n.notice.tone)}`,children:[n.notice.title?(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:n.notice.title}):null,(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:n.notice.message}),n.notice.actionLabel?(0,u.jsx)(`div`,{className:`mt-3`,children:(0,u.jsx)(O,{label:n.notice.actionLabel,variant:`outline`,intent:`primary`,size:`sm`,onClick:m})}):null]}):null,(0,u.jsx)(`div`,{role:`tablist`,"aria-label":`Market readiness editor`,className:`mt-5 flex gap-2 border-b border-borderTertiary`,children:[{id:`decor`,label:`Decor`},{id:`sheets`,label:`Buy Now (${n.skus.length})`},{id:`samples`,label:`Samples (${n.samples.length})`}].filter(e=>y.includes(e.id)).map(e=>{let t=n.activeTabId===e.id;return(0,u.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":t,className:`border-b-4 px-5 py-3 text-sm font-bold ${t?`border-primary text-primary`:`border-transparent text-tertiary hover:text-primary`}`,onClick:()=>a?.({tabId:e.id}),children:e.label},e.id)})}),C&&S?(0,u.jsx)(`section`,{role:`status`,"aria-live":`polite`,className:`mt-5 rounded-lg border border-borderTertiary bg-secondary p-4`,children:(0,u.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,u.jsx)(v,{label:``,size:`sm`}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:`Loading SKUs from LX`}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:`Buy Now and Samples will fill in as LX records are added.`})]})]})}):null,C&&n.lxImport?.state===`error`?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`mt-5 rounded-lg border border-accent bg-accent/10 p-4 text-sm text-accent`,children:n.lxImport.errorMessage??`LX SKUs could not be loaded. Try again.`}):null,n.activeTabId===`decor`?(0,u.jsxs)(`section`,{role:`tabpanel`,"aria-label":`Decor`,className:`mt-5 grid gap-5 md:grid-cols-3`,children:[(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:col-span-2`,children:(0,u.jsx)(ls,{title:`Decor details`,description:_.sharedDescription,headerAction:C?(0,u.jsx)(O,{label:`LX`,"aria-label":`Load Buy Now and sample SKUs from LX`,iconType:`fa-solid`,iconName:S?`spinner`:`server`,iconAlt:``,variant:`outline`,intent:`neutral`,size:`xs`,disabled:n.lxImport?.disabled||S||!p,"aria-busy":S||void 0,onClick:()=>p?.({decorId:h.id,decorCode:h.decorCode})}):null,fields:[...M,...A,...k,...D],fieldGroups:[{id:`localized-decor-fields`,title:`${_.activeLocalization.heading} content`,description:_.localizationDescription??`These fields change with the selected locale.`,fieldIds:M.map(e=>e.id)},{id:`shared-decor-fields`,title:_.sharedTitle??`Shared decor details`,fieldIds:A.map(e=>e.id)}],density:`compact`,severityDisplay:`icon`,fieldMessagePlacement:`below-label`,showActions:!1,validationSummary:(0,u.jsxs)(`div`,{className:`flex flex-col-reverse gap-4 border-t border-borderTertiary pt-5 md:flex-row md:items-end md:justify-between`,children:[(0,u.jsx)(`div`,{children:_.deleteLabel?(0,u.jsx)(O,{label:_.deleteLabel,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,variant:`outline`,intent:`danger`,disabled:_.deleteDisabled||E,onClick:()=>d?.({decorId:h.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(Qd,{status:_.activeLocalization.saveStatus,label:_.activeLocalization.saveStatusLabel,errorMessage:_.activeLocalization.saveErrorMessage,lastSavedLabel:_.activeLocalization.lastSavedLabel}),_.controls.saveHelpText?(0,u.jsx)(f,{variant:`free`,className:`max-w-md text-right text-xs text-tertiary`,children:_.controls.saveHelpText}):null,(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(O,{label:_.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:_.controls.cancelDisabled||E,onClick:()=>l?.({decorId:h.id,localizationId:_.activeLocalization.id})}),(0,u.jsx)(O,{label:_.controls.saveLabel,iconType:`fa-solid`,iconName:E?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:_.controls.saveDisabled||E,"aria-busy":E||void 0,onClick:()=>c?.({decorId:h.id,localizationId:_.activeLocalization.id})})]})]})]}),onDynamicFormFieldChange:({fieldId:e,value:t})=>{let n=_.sharedFields.some(t=>t.id===e);s?.({decorId:h.id,localizationId:n?void 0:_.activeLocalization.id,scope:n?`shared`:`localized`,fieldId:e,value:t})}})}),(0,u.jsx)(`aside`,{className:`rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:(0,u.jsx)(uu,{title:`Decor localizations`,markets:_.markets,selectedLocalizationId:_.activeLocalization.id,localizationSelectionDisabled:E,onLocalizationSelect:o})})]}):null,n.activeTabId===`sheets`?(0,u.jsx)(vs,{...e,itemType:`sheet`,sectionData:{region:n.region,items:n.skus,editor:n.skuEditor,guide:n.region?n.skuGuides?.[n.region]:void 0}}):null,n.activeTabId===`samples`?(0,u.jsx)(vs,{...e,itemType:`sample`,sectionData:{region:n.region,items:n.samples,editor:n.sampleEditor,guide:n.region?n.skuGuides?.[n.region]:void 0,sampleGuide:n.sampleGuide}}):null]})},ef=({pageTitle:e,welcomeTitle:t,welcomeMessage:n,aboutTitle:r,aboutDescription:i,sideNavProps:a})=>(0,u.jsx)(`div`,{className:`min-h-screen bg-secondary`,children:(0,u.jsxs)(`div`,{className:`flex min-h-screen overflow-hidden bg-secondary`,children:[(0,u.jsx)(`aside`,{className:`hidden w-56 shrink-0 md:block`,children:(0,u.jsx)(xc,{...a})}),(0,u.jsxs)(`main`,{className:`min-w-0 flex-1 bg-adminSideNavBackground p-4 md:p-6`,children:[(0,u.jsx)(`header`,{className:`border-b border-borderTertiary pb-5`,children:(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`text-2xl font-bold text-primary`,children:e})}),(0,u.jsxs)(`section`,{"aria-labelledby":`admin-dashboard-welcome-heading`,className:`mt-6 max-w-3xl rounded-lg border border-borderTertiary bg-secondary p-6 shadow-sm md:p-8`,children:[(0,u.jsx)(`div`,{className:`flex h-12 w-12 items-center justify-center rounded-full bg-adminSideNavBackground`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`database`,alt:``,size:`xl`,className:`text-primary`})}),(0,u.jsx)(f,{as:`h2`,id:`admin-dashboard-welcome-heading`,variant:`free`,className:`mt-5 text-xl font-bold text-primary`,children:t}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:n}),(0,u.jsxs)(`div`,{className:`mt-6 border-t border-borderTertiary pt-6`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:r}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:i})]})]})]})]})}),tf=e=>e===`admin`?`Admin`:`User`,nf=({message:e,tone:t=`default`})=>(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5`,children:(0,u.jsx)(f,{variant:`free`,className:`text-sm ${t===`error`?`text-accent`:`text-primary`}`,children:e})}),rf=({message:e})=>{let t=e?.trim()??``;return t?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-accent`,children:t}):null},af=({pageTitle:e,pageDescription:t,sideNavProps:n,hasAdminAccess:r,accessRequiredTitle:i=`Admin Access Required`,accessRequiredMessage:a=`Your account can use Data Forge, but only admins can manage the allow list.`,state:o,loadingMessage:s=`Loading authorization users...`,errorMessage:c=`Data Forge could not load the allow list.`,createUserDraft:l,roleOptions:d,regionOptions:p,users:m,defaultRegionLabel:h=`Default Region`,defaultRegionPlaceholder:g=`Select region`,createMessage:_,updateMessage:v,deleteMessage:y,createPending:b=!1,updatePending:x=!1,deletePending:S=!1,deleteUserEmail:C,addUserLabel:w=`Add User`,addingUserLabel:T=`Adding...`,updateLabel:E=`Update`,updatingLabel:D=`Updating...`,activateLabel:k=`Activate`,suspendLabel:A=`Suspend`,removeLabel:j=`Remove`,removingLabel:M=`Removing...`,cancelLabel:N=`Cancel`,onNewUserEmailChange:P,onNewUserRoleChange:F,onNewUserActiveChange:I,onNewUserDefaultRegionChange:L,onCreateUser:R,onRowUpdate:ee,onUserActiveToggle:te,onDeleteUserRequest:z,onDeleteModalClose:ne,onDeleteUserConfirm:re})=>{let B=t?.trim()??``,ie=l.active&&!l.defaultRegion.trim(),V=m.map(e=>({id:e.email,values:{active:e.active?`active`:`inactive`,email:e.email,role:e.role,defaultRegion:e.defaultRegion}})),H=`${m.length.toLocaleString()} ${m.length===1?`user`:`users`}`,U=e=>(0,u.jsxs)(`article`,{className:`grid gap-3 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3 md:grid-cols-[minmax(0,1fr)_auto] md:items-center`,children:[(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(f,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:e.email}),(0,u.jsxs)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:[tf(e.role),` - `,e.active?`Active`:`Inactive`,e.isCurrentUser?` - Current user`:``]})]}),(0,u.jsxs)(`div`,{className:`flex flex-wrap gap-2 md:justify-end`,children:[(0,u.jsx)(O,{disabled:x||e.activeToggleDisabled||!e.active&&!e.defaultRegion.trim(),iconAlt:``,iconName:e.active?`user-slash`:`user-check`,iconType:`fa-solid`,intent:`primary`,label:e.active?A:k,size:`sm`,type:`button`,variant:`outline`,onClick:()=>te?.({user:e})}),(0,u.jsx)(O,{disabled:S||e.removeDisabled,iconAlt:``,iconName:`trash`,iconType:`fa-solid`,intent:`danger`,label:j,size:`sm`,type:`button`,variant:`outline`,onClick:()=>z?.({user:e})})]})]},e.email);return(0,u.jsxs)(`div`,{className:`min-h-screen bg-secondary`,children:[(0,u.jsxs)(`div`,{className:`flex min-h-screen overflow-hidden bg-secondary`,children:[(0,u.jsx)(`aside`,{className:`hidden w-56 shrink-0 md:block`,children:(0,u.jsx)(xc,{...n})}),(0,u.jsxs)(`main`,{className:`min-w-0 flex-1 bg-adminSideNavBackground p-4 md:p-6`,children:[(0,u.jsxs)(`header`,{className:`border-b border-borderTertiary pb-5`,children:[(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`text-2xl font-bold text-primary`,children:e}),B?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:B}):null]}),r?(0,u.jsxs)(`div`,{className:`mt-5 grid gap-5`,children:[(0,u.jsxs)(`form`,{"aria-label":`Add authorization user`,className:`grid gap-4 rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:grid-cols-6 md:items-end`,onSubmit:e=>{e.preventDefault(),R?.({user:l})},children:[(0,u.jsxs)(`div`,{className:`grid gap-2 md:col-span-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-email`,children:`Email`}),(0,u.jsx)(Vo,{id:`authorization-user-email`,name:`email`,type:`email`,value:l.email,placeholder:`person@formica.com`,disabled:b,autoComplete:`email`,onChange:e=>P?.({value:e.target.value})})]}),(0,u.jsxs)(`div`,{className:`grid gap-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-role`,children:`Role`}),(0,u.jsx)(Q,{id:`authorization-user-role`,name:`role`,value:l.role,disabled:b,options:d,onChange:e=>F?.({role:e.target.value})})]}),(0,u.jsxs)(`div`,{className:`grid gap-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-default-region`,children:h}),(0,u.jsx)(Q,{id:`authorization-user-default-region`,name:`defaultRegion`,value:l.defaultRegion,placeholder:g,disabled:b,required:l.active,hasError:ie,options:p,onChange:e=>L?.({region:e.target.value})})]}),(0,u.jsxs)(`div`,{className:`grid gap-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-active`,children:`Status`}),(0,u.jsx)(Q,{id:`authorization-user-active`,name:`active`,value:l.active?`active`:`inactive`,disabled:b,options:[{label:`Active`,value:`active`},{label:`Inactive`,value:`inactive`}],onChange:e=>I?.({active:e.target.value===`active`})})]}),(0,u.jsx)(O,{disabled:b||ie,iconAlt:``,iconName:`user-plus`,iconType:`fa-solid`,intent:`primary`,label:b?T:w,type:`submit`,variant:`solid`})]}),(0,u.jsx)(rf,{message:_}),o===`loading`?(0,u.jsx)(nf,{message:s}):null,o===`error`?(0,u.jsx)(nf,{message:c,tone:`error`}):null,(0,u.jsx)(vu,{ariaLabel:`Authorization users`,columns:[{editable:!1,id:`email`,label:`Email`,width:`xl`},{id:`role`,label:`Role`,maxLength:5,width:`sm`,editor:`select`,options:d},{id:`active`,label:`Status`,maxLength:8,width:`sm`,editor:`select`,options:[{label:`Active`,value:`active`},{label:`Inactive`,value:`inactive`}]},{id:`defaultRegion`,label:h,width:`md`,editor:`select`,options:p,placeholder:g,requiredWhen:{columnId:`active`,value:`active`}}],description:`Edit role, status, or default region inline, then use Update on that row.`,emptyMessage:`No allow-list users are configured.`,rowCountLabel:H,rows:V,title:`Allow List`,updateLabel:x?D:E,updateDisabled:x,onRowUpdate:ee}),(0,u.jsx)(rf,{message:v}),(0,u.jsxs)(`section`,{"aria-label":`Authorization user actions`,className:`grid gap-3 rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`User Actions`}),(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:`Use these actions for status changes and removals. Inline table edits are still available for role and status updates.`})]}),(0,u.jsx)(`div`,{className:`grid gap-2`,children:m.map(U)}),(0,u.jsx)(rf,{message:y})]})]}):(0,u.jsxs)(`section`,{className:`mt-5 rounded-lg border border-borderTertiary bg-secondary p-5`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:i}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:a})]})]})]}),(0,u.jsx)(Ac,{closeLabel:N,open:!!C,size:`md`,title:`Remove User?`,onClose:()=>ne?.(),children:(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(f,{variant:`free`,className:`text-sm text-primary`,children:[`Remove `,C,` from the Data Forge allow list?`]}),(0,u.jsxs)(`div`,{className:`flex justify-end gap-3`,children:[(0,u.jsx)(O,{disabled:S,intent:`primary`,label:N,size:`sm`,type:`button`,variant:`outline`,onClick:()=>ne?.()}),(0,u.jsx)(O,{disabled:S,iconAlt:``,iconName:`trash`,iconType:`fa-solid`,intent:`danger`,label:S?M:j,size:`sm`,type:`button`,variant:`solid`,onClick:()=>{C&&re?.({email:C})}})]})]})})]})},of={loading:{iconName:`spinner`,iconClassName:`text-tertiary`,iconSurfaceClassName:`bg-tertiaryActive`},info:{iconName:`circle-info`,iconClassName:`text-blue-600`,iconSurfaceClassName:`bg-blue-50`},warning:{iconName:`triangle-exclamation`,iconClassName:`text-yellow-700`,iconSurfaceClassName:`bg-yellow-50`},error:{iconName:`circle-exclamation`,iconClassName:`text-accent`,iconSurfaceClassName:`bg-accent/10`}},sf=e=>{if(e===`loading`)return`status`;if(e===`error`)return`alert`},cf=({eyebrow:e,title:t,description:n,detail:r,tone:i,primaryAction:a,secondaryAction:o,informationGroups:s=[],onActionClick:c})=>{let l=e?.trim()??``,d=r?.trim()??``,p=of[i],m=(e,t)=>(0,u.jsx)(O,{label:e.label,iconAlt:``,iconName:e.loading?`spinner`:e.iconName,iconType:e.loading||e.iconName?`fa-solid`:void 0,intent:`primary`,variant:t,disabled:e.disabled||e.loading,"aria-busy":e.loading||void 0,onClick:()=>c?.({actionId:e.id})},e.id);return(0,u.jsx)(`main`,{className:`flex min-h-screen items-center justify-center bg-tertiaryActive px-4 py-10`,children:(0,u.jsxs)(`section`,{role:sf(i),"aria-live":i===`loading`?`polite`:void 0,"aria-busy":i===`loading`||void 0,className:`w-full max-w-2xl rounded-lg border border-borderTertiary bg-secondary p-6 text-center shadow-sm md:p-10`,children:[(0,u.jsx)(`div`,{"data-testid":`admin-auth-status-icon`,className:`mx-auto flex h-16 w-16 items-center justify-center rounded-full ${p.iconSurfaceClassName}`,children:i===`loading`?(0,u.jsx)(v,{label:``,size:`2xl`}):(0,u.jsx)(g,{iconType:`fa-solid`,iconName:p.iconName,alt:``,size:`2xl`,className:p.iconClassName})}),l?(0,u.jsx)(f,{variant:`free`,className:`mt-6 text-xs font-bold uppercase tracking-wide text-tertiary`,children:l}):null,(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`${l?`mt-2`:`mt-6`} text-2xl font-bold text-primary`,children:t}),(0,u.jsx)(f,{variant:`free`,className:`mx-auto mt-3 max-w-xl text-primary`,children:n}),d?(0,u.jsx)(f,{variant:`free`,className:`mx-auto mt-3 max-w-xl text-sm text-tertiary`,children:d}):null,s.length?(0,u.jsx)(`div`,{className:`mt-6 grid gap-4 text-left md:grid-cols-2`,children:s.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`admin-auth-status-${e.id}`,className:`rounded-lg border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(f,{as:`h2`,id:`admin-auth-status-${e.id}`,variant:`free`,className:`text-sm font-bold text-primary`,children:e.title}),(0,u.jsx)(`ul`,{className:`mt-3 space-y-2`,children:e.items.map(e=>(0,u.jsx)(`li`,{className:`rounded-md bg-secondary px-3 py-2 font-mono text-xs text-primary`,children:e},e))})]},e.id))}):null,a||o?(0,u.jsxs)(`div`,{className:`mt-6 flex flex-col-reverse justify-center gap-3 md:flex-row`,children:[o?m(o,`outline`):null,a?m(a,`solid`):null]}):null]})})},lf=({pageTitle:e,pageDescription:t,sideNavProps:n,regionOptions:r,regionValue:i,regionLabel:a=`Region`,regionPlaceholder:o=`Select region`,regionHelpText:s=`Searches and changes will use product data from this region.`,regionDisabled:l=!1,searchValue:d,searchLabel:p=`Search decors`,searchPlaceholder:m,searchDisabled:h=!1,browseMode:g=`decors`,manageRangesLabel:_=`Manage ranges`,rangeOptions:y,rangeResults:b=[],rangeResultCount:x=0,selectedRangeId:S,rangePromptTitle:C=`Select a range to view its decors`,rangePromptMessage:w=`Choose a range above to load its market-readiness records.`,emptyRangeTitle:T=`No decors found`,emptyRangeMessage:E=`Click the button to add the first decor to this range.`,resultCount:D,resultLabel:k=`decors`,addDecorLabel:A=`Add a new decor`,addFirstDecorLabel:j=`Add the first decor`,addRangeLabel:M=`New Range`,groups:N,status:P={state:`ready`},hasMore:F=!1,loadingMore:I=!1,loadMoreLabel:L,deleteDecorTarget:R,deleteDecorConfirmationValue:ee=``,deleteDecorPending:te=!1,deleteDecorErrorMessage:z,deleteDecorTitle:ne=`Delete decor?`,deleteDecorLabel:re=`Delete decor`,deletingDecorLabel:B=`Deleting...`,deleteDecorCancelLabel:ie=`Cancel`,deleteDecorCloseLabel:V=`Close delete decor dialog`,deleteRangeTarget:H,deleteRangeConfirmationValue:U=``,deleteRangePending:W=!1,deleteRangeErrorMessage:G,deleteRangeTitle:ae=`Delete range?`,deleteRangeLabel:oe=`Delete range`,deletingRangeLabel:se=`Deleting...`,deleteRangeCancelLabel:ce=`Cancel`,deleteRangeCloseLabel:le=`Close delete range dialog`,onRegionChange:K,onSearchChange:ue,onSearchSubmit:de,onRangeSelect:fe,onManageRangesClick:pe,onAddDecorClick:me,onAddRangeClick:ge,onRangeClick:_e,onDeleteRangeRequest:ve,onDeleteRangeConfirmationChange:ye,onDeleteRangeCancel:be,onDeleteRangeConfirm:xe,onDecorClick:Se,onDeleteDecorRequest:Ce,onDeleteDecorConfirmationChange:we,onDeleteDecorCancel:Te,onDeleteDecorConfirm:Ee,onLoadMore:De,onRetryClick:Oe})=>{let ke=(0,c.useRef)(null),Ae=(0,c.useRef)({options:y,selectedRangeId:S});P.state!==`loading`&&(Ae.current={options:y,selectedRangeId:S});let je=P.state===`loading`&&y.length===0?Ae.current.options:y,Me=P.state===`loading`&&S===void 0?Ae.current.selectedRangeId:S,Ne=!i.trim()||l,q=g===`ranges`,Pe=q?x:D,Fe=k;q&&(Fe=x===1?`range`:`ranges`);let Ie=`${Pe.toLocaleString()} ${Fe}`,Le=L??(q?`Load more ranges`:`Load more decors`),Re=q?b.length:N.reduce((e,t)=>e+t.items.length,0),J=je.find(e=>e.id===Me),ze=!!Me,Be=!!d.trim(),Ve=q?`Search ranges`:p,He=m??(q?`Search ranges`:`Search decors across all ranges`),Ue=!!(R&&ee.trim()===R.decorCode),Y=R?`${R.sheetCount.toLocaleString()} ${R.sheetCount===1?`sheet`:`sheets`} and ${R.sampleCount.toLocaleString()} ${R.sampleCount===1?`sample`:`samples`}`:``,We=!!(H&&U.trim()===H.rangeCode),Ge=ze&&!Be&&D===0;(0,c.useEffect)(()=>{let e=ke.current;if(!e||!q&&!ze&&!Be||P.state!==`ready`||!F||I||!De||typeof IntersectionObserver>`u`)return;let t=!1,n=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&!t&&(t=!0,De())});return n.observe(e),()=>n.disconnect()},[F,I,De,d,Me,q,P.state]);let Ke=null;return I?Ke=(0,u.jsx)(v,{label:`Loading more ${Fe}`,size:`md`}):F&&(Ke=(0,u.jsx)(O,{label:Le,variant:`outline`,intent:`primary`,disabled:!De,onClick:De})),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kd,{pageTitle:e,pageDescription:t,sideNavProps:n,headerActions:(0,u.jsx)(Ro,{options:r,value:i,label:a,placeholder:o,helpText:s,disabled:l,name:`market-readiness-browse-region`,onChange:K}),children:(0,u.jsxs)(`div`,{className:`mt-5 max-w-6xl`,children:[(0,u.jsxs)(`section`,{"aria-label":q?`Browse range controls`:`Browse decor controls`,children:[(0,u.jsx)(Ho,{id:`market-readiness-decor-search`,name:q?`rangeSearch`:`decorSearch`,ariaLabel:Ve,value:d,placeholder:He,controlSize:`default`,disabled:h||Ne,onChange:e=>ue({value:e.target.value}),onClear:()=>ue({value:``}),onSearchSubmit:de}),(0,u.jsxs)(`div`,{className:`mt-3`,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Ranges`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,u.jsx)(he,{iconType:`fa-solid`,iconName:`list`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:q?`primary`:`neutral`,"aria-label":_,"aria-pressed":q,disabled:Ne||P.state===`loading`||!pe,onClick:pe}),(0,u.jsx)(he,{iconType:`fa-solid`,iconName:`plus`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`primary`,"aria-label":M,disabled:Ne||P.state===`loading`||!ge,onClick:()=>ge?.({region:i})})]})]}),(0,u.jsx)(`div`,{className:`mt-2`,children:(0,u.jsx)(zo,{ranges:je,selectedRangeId:Me,disabled:Ne,onRangeSelect:fe})})]})]}),P.state===`loading`?(0,u.jsx)(`section`,{"aria-label":q?`Range results`:`Decor results`,"aria-busy":`true`,className:`mt-5 flex min-h-64 items-center justify-center rounded-lg border border-borderTertiary bg-secondary p-6 text-center shadow-sm`,children:(0,u.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,u.jsx)(v,{label:P.message?.trim()||`Loading ${q?`ranges`:`decors`}`,size:`2xl`}),(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:P.message?.trim()||`Loading ${q?`ranges`:`decors`}...`})]})}):null,P.state!==`ready`&&P.state!==`loading`?(0,u.jsx)(Yd,{status:P,onRetryClick:Oe}):null,P.state===`ready`&&!q&&!ze&&!Be?(0,u.jsx)(Yd,{status:{state:`empty`,title:C,message:w}}):null,P.state===`ready`&&q?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center justify-between gap-4`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:Be?`Range search results`:`Ranges`}),(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-tertiary`,children:Ie})]}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(bu,{ranges:b,emptyMessage:`No ranges are available.`,onRangeClick:Ne?void 0:_e,onDeleteRangeRequest:Ne?void 0:ve})})]}):null,P.state===`ready`&&!q&&(ze||Be)?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`mt-6 flex items-center justify-between gap-4`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:Be?`Search results`:J?.label??`Selected range`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-tertiary`,children:Ie}),(0,u.jsx)(he,{iconType:`fa-solid`,iconName:`plus`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`primary`,"aria-label":J&&!Be?`${A} to ${J.label}`:A,disabled:Ne||!me,onClick:()=>me?.({rangeId:Me})})]})]}),Ge?(0,u.jsx)(Yd,{status:{state:`empty`,title:T,message:E},action:(0,u.jsx)(O,{label:j,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:Ne||!me,onClick:()=>me?.({rangeId:Me})})}):(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(yu,{groups:N,itemLabel:k,showGroupHeaders:!1,onDecorClick:Ne?void 0:Se,onDeleteDecorRequest:Ne?void 0:Ce})})]}):null,(q||ze||Be)&&P.state===`ready`&&(Re>0||F)?(0,u.jsxs)(`div`,{ref:ke,className:`mt-6 flex flex-col items-center gap-3 border-t border-borderTertiary pt-5`,children:[(0,u.jsxs)(f,{variant:`free`,className:`text-sm text-tertiary`,children:[`Showing `,Re.toLocaleString(),` of`,` `,Pe.toLocaleString(),` `,Fe]}),Ke]}):null]})}),(0,u.jsx)(Ac,{open:!!R,title:ne,description:`This permanently removes the decor and all records that belong to it. This action cannot be undone.`,closeLabel:V,size:`sm`,onClose:()=>{te||Te?.()},children:R?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(`div`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:R.name}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 font-mono text-xs text-tertiary`,children:R.decorCode}),(0,u.jsxs)(f,{variant:`free`,className:`mt-2 text-xs text-primary`,children:[`Deleting this decor also removes `,Y,`.`]})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`label`,{htmlFor:`market-readiness-delete-confirmation`,className:`text-sm font-bold text-primary`,children:[`Type `,R.decorCode,` to confirm`]}),(0,u.jsx)(Vo,{id:`market-readiness-delete-confirmation`,name:`deleteDecorConfirmation`,value:ee,placeholder:R.decorCode,autoComplete:`off`,autoFocus:!0,disabled:te,hasError:!!z,onChange:e=>we?.({value:e.target.value})}),z?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`mt-2 text-sm text-accent`,children:z}):null]}),(0,u.jsxs)(`div`,{className:`flex justify-end gap-3`,children:[(0,u.jsx)(O,{label:ie,size:`sm`,variant:`outline`,intent:`primary`,disabled:te,onClick:()=>Te?.()}),(0,u.jsx)(O,{label:te?B:re,iconType:`fa-solid`,iconName:te?`spinner`:`trash`,iconAlt:``,size:`sm`,variant:`solid`,intent:`accent`,disabled:!Ue||te||!Ee,onClick:()=>Ee?.(R)})]})]}):null}),(0,u.jsx)(Ac,{open:!!H,title:ae,description:`This permanently removes the empty range. This action cannot be undone.`,closeLabel:le,size:`sm`,onClose:()=>{W||be?.()},children:H?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(`div`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:H.name}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:H.rangeCode}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:[H.company,H.region,H.subRegion].filter(e=>e.trim()).join(` · `)})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`label`,{htmlFor:`market-readiness-range-delete-confirmation`,className:`text-sm font-bold text-primary`,children:[`Type `,H.rangeCode,` to confirm`]}),(0,u.jsx)(Vo,{id:`market-readiness-range-delete-confirmation`,name:`deleteRangeConfirmation`,value:U,placeholder:H.rangeCode,autoComplete:`off`,autoFocus:!0,disabled:W,hasError:!!G,onChange:e=>ye?.({value:e.target.value})}),G?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`mt-2 text-sm text-accent`,children:G}):null]}),(0,u.jsxs)(`div`,{className:`flex justify-end gap-3`,children:[(0,u.jsx)(O,{label:ce,size:`sm`,variant:`outline`,intent:`primary`,disabled:W,onClick:()=>be?.()}),(0,u.jsx)(O,{label:W?se:oe,iconType:`fa-solid`,iconName:W?`spinner`:`trash`,iconAlt:``,size:`sm`,variant:`solid`,intent:`accent`,disabled:!We||W||!xe,onClick:()=>xe?.(H)})]})]}):null})]})},uf=({pageTitle:e,pageDescription:t,sideNavProps:n,mode:r,rangeId:i,name:a,bynderName:o,rangeCode:s,productFamilyCode:c=``,company:l,companyCode:d,region:p,subRegion:m=``,companyOptions:h,productFamilyOptions:_=[],regionOptions:v,subRegionOptions:y,status:b={state:`ready`},fieldErrors:x={},formDisabled:S=!1,saveDisabled:C=!1,savePending:w=!1,saveErrorMessage:T,deleteDialogOpen:E=!1,deleteConfirmationValue:D=``,deletePending:k=!1,deleteErrorMessage:A,detailsTitle:M=`Range details`,detailsDescription:N=`These details determine where the range appears in Market Readiness.`,saveLabel:P=r===`create`?`Create range`:`Save changes`,savingLabel:F=`Saving...`,cancelLabel:I=`Cancel`,deleteTitle:L=`Delete range?`,deleteLabel:R=`Delete range`,deletingLabel:ee=`Deleting...`,deleteCancelLabel:te=`Cancel`,deleteCloseLabel:z=`Close delete range dialog`,onNameChange:ne,onBynderNameChange:re,onRangeCodeChange:B,onProductFamilyCodeChange:ie,onCompanyChange:V,onCompanyCodeChange:H,onRegionChange:U,onSubRegionChange:W,onSaveClick:G,onCancelClick:ae,onDeleteRequest:oe,onDeleteConfirmationChange:se,onDeleteCancel:ce,onDeleteConfirm:le,onRetryClick:K})=>{let ue=Ae(l),de=S||w,fe=!!y?.length,pe=p===`europe`||p===`asia`,me=p===`europe`?`Product Family (EU)`:`Product Family (AS)`,he=y??[],ge=pe&&!m.trim()?`ALL`:m,_e=a.trim()||`New range`,ve=h.find(e=>e.value===l)?.label??l,ye=v.find(e=>e.value===p)?.label??p,be=he.find(e=>e.value===ge)?.label??ge,xe=d.trim()?`${ve} (${d})`:ve,Se=[s.trim()?`Range ${s}`:``,xe,ye,pe||fe?be:``].filter(e=>e.trim()).join(` · `),Ce=i?{rangeId:i}:{},we=i?{rangeId:i,rangeCode:s}:void 0,Te=!!(we&&s.trim()&&D.trim()===s.trim());return(0,u.jsxs)(Kd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:[b.state===`ready`?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`section`,{className:`mt-5 flex items-center gap-4 rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsx)(`span`,{className:`flex h-16 w-16 shrink-0 items-center justify-center rounded-md border border-primary bg-primary p-2`,children:ue?(0,u.jsx)(j,{src:ue,alt:`${l} logo`,quality:85,fit:`contain`,className:`h-full w-full object-contain`}):(0,u.jsx)(g,{iconType:`fa-regular`,iconName:`building`,alt:`No company logo available`,size:`xl`,className:`text-secondary`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:_e}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:Se||`Enter the range details below`})]})]}),(0,u.jsxs)(`form`,{className:`mt-5 max-w-4xl rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,onSubmit:e=>{e.preventDefault(),G?.(Ce)},children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:M}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:N}),(0,u.jsxs)(`div`,{className:`mt-5 grid gap-5 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-name`,className:`text-sm font-bold text-primary`,children:`Name`}),(0,u.jsx)(Vo,{id:`market-readiness-range-name`,name:`rangeName`,value:a,placeholder:`Marketing name`,autoComplete:`off`,required:!0,disabled:de,hasError:!!x.name,ariaDescribedBy:x.name?`market-readiness-range-name-error`:void 0,onChange:e=>ne?.({value:e.target.value})}),x.name?(0,u.jsx)(f,{id:`market-readiness-range-name-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.name}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-bynder-name`,className:`text-sm font-bold text-primary`,children:`Bynder Name`}),(0,u.jsx)(Vo,{id:`market-readiness-range-bynder-name`,name:`bynderName`,value:o,placeholder:`Bynder name`,autoComplete:`off`,disabled:de,hasError:!!x.bynderName,ariaDescribedBy:x.bynderName?`market-readiness-range-bynder-name-error`:void 0,onChange:e=>re?.({value:e.target.value})}),x.bynderName?(0,u.jsx)(f,{id:`market-readiness-range-bynder-name-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.bynderName}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-code`,className:`text-sm font-bold text-primary`,children:`Range Code`}),(0,u.jsx)(Vo,{id:`market-readiness-range-code`,name:`rangeCode`,value:s,placeholder:`Short code`,autoComplete:`off`,required:!0,disabled:de,hasError:!!x.rangeCode,ariaDescribedBy:x.rangeCode?`market-readiness-range-code-error`:void 0,onChange:e=>B?.({value:e.target.value})}),x.rangeCode?(0,u.jsx)(f,{id:`market-readiness-range-code-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.rangeCode}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-company`,className:`text-sm font-bold text-primary`,children:`Company`}),(0,u.jsx)(Q,{id:`market-readiness-range-company`,name:`rangeCompany`,value:l,placeholder:`Select a company`,options:h,required:!0,disabled:de,hasError:!!x.company,ariaDescribedBy:x.company?`market-readiness-range-company-error`:void 0,onChange:e=>V?.({value:e.target.value})}),x.company?(0,u.jsx)(f,{id:`market-readiness-range-company-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.company}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-company-code`,className:`text-sm font-bold text-primary`,children:`Company Code`}),(0,u.jsx)(Vo,{id:`market-readiness-company-code`,name:`companyCode`,value:d,placeholder:`Short code`,autoComplete:`off`,required:!0,disabled:de,hasError:!!x.companyCode,ariaDescribedBy:x.companyCode?`market-readiness-company-code-error`:void 0,onChange:e=>H?.({value:e.target.value})}),x.companyCode?(0,u.jsx)(f,{id:`market-readiness-company-code-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.companyCode}):null]}),(0,u.jsxs)(`div`,{role:`group`,"aria-label":`Range location`,className:`grid gap-5 md:col-span-2 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{className:pe||!fe?`md:col-span-2`:void 0,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-region`,className:`text-sm font-bold text-primary`,children:`Region`}),(0,u.jsx)(Q,{id:`market-readiness-range-region`,name:`rangeRegion`,value:p,placeholder:`Select a region`,options:v,required:!0,disabled:de,hasError:!!x.region,ariaDescribedBy:x.region?`market-readiness-range-region-error`:void 0,onChange:e=>U?.({value:e.target.value})}),x.region?(0,u.jsx)(f,{id:`market-readiness-range-region-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.region}):null]}),pe?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-product-family-code`,className:`text-sm font-bold text-primary`,children:me}),(0,u.jsx)(Q,{id:`market-readiness-product-family-code`,name:`productFamilyCode`,value:c,placeholder:`Select a product family`,options:_,required:!0,disabled:de,hasError:!!x.productFamilyCode,ariaDescribedBy:x.productFamilyCode?`market-readiness-product-family-code-error`:void 0,onChange:e=>ie?.({value:e.target.value})}),x.productFamilyCode?(0,u.jsx)(f,{id:`market-readiness-product-family-code-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.productFamilyCode}):null]}):null,pe?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-subregion`,className:`text-sm font-bold text-primary`,children:`Subregion`}),(0,u.jsx)(Vo,{id:`market-readiness-range-subregion`,name:`rangeSubRegion`,value:ge,placeholder:`Enter a subregion`,autoComplete:`off`,disabled:de,hasError:!!x.subRegion,ariaDescribedBy:x.subRegion?`market-readiness-range-subregion-error`:void 0,onChange:e=>W?.({value:e.target.value})}),x.subRegion?(0,u.jsx)(f,{id:`market-readiness-range-subregion-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.subRegion}):null]}):null,!pe&&fe?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-subregion`,className:`text-sm font-bold text-primary`,children:`Subregion`}),(0,u.jsx)(Q,{id:`market-readiness-range-subregion`,name:`rangeSubRegion`,value:m,placeholder:`Select a subregion`,options:he,required:!0,disabled:de,hasError:!!x.subRegion,ariaDescribedBy:x.subRegion?`market-readiness-range-subregion-error`:void 0,onChange:e=>W?.({value:e.target.value})}),x.subRegion?(0,u.jsx)(f,{id:`market-readiness-range-subregion-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.subRegion}):null]}):null]})]}),(0,u.jsxs)(`div`,{className:`mt-6 flex flex-col-reverse gap-3 border-t border-borderTertiary pt-5 md:flex-row md:items-center md:justify-end`,children:[T?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`text-sm text-accent md:mr-auto`,children:T}):null,r===`edit`&&we&&oe?(0,u.jsx)(O,{type:`button`,label:R,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,variant:`outline`,intent:`danger`,disabled:de,className:`md:mr-auto`,onClick:()=>oe(we)}):null,(0,u.jsx)(O,{label:I,variant:`outline`,intent:`primary`,disabled:de,onClick:()=>ae?.(Ce)}),(0,u.jsx)(O,{type:`submit`,label:w?F:P,iconType:`fa-solid`,iconName:w?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:de||C||!G,"aria-busy":w||void 0})]})]})]}):(0,u.jsx)(Yd,{status:b,onRetryClick:K}),(0,u.jsx)(Ac,{open:!!(E&&we),title:L,description:`This permanently removes the range. This action cannot be undone.`,closeLabel:z,size:`sm`,onClose:()=>{k||ce?.()},children:we?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(`div`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:_e}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 font-mono text-xs text-tertiary`,children:s})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`label`,{htmlFor:`market-readiness-range-delete-confirmation`,className:`text-sm font-bold text-primary`,children:[`Type `,s,` to confirm`]}),(0,u.jsx)(Vo,{id:`market-readiness-range-delete-confirmation`,name:`deleteRangeConfirmation`,value:D,placeholder:s,autoComplete:`off`,autoFocus:!0,disabled:k,hasError:!!A,onChange:e=>se?.({value:e.target.value})}),A?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`mt-2 text-sm text-accent`,children:A}):null]}),(0,u.jsxs)(`div`,{className:`flex justify-end gap-3`,children:[(0,u.jsx)(O,{label:te,size:`sm`,variant:`outline`,intent:`primary`,disabled:k,onClick:()=>ce?.()}),(0,u.jsx)(O,{label:k?ee:R,iconType:`fa-solid`,iconName:k?`spinner`:`trash`,iconAlt:``,size:`sm`,variant:`solid`,intent:`accent`,disabled:!Te||k||!le,onClick:()=>le?.(we)})]})]}):null})]})},df=({pageTitle:e,pageDescription:t,backLabel:n,sideNavProps:r,report:i,status:a={state:`ready`},pagination:o,onBackClick:s,onRetryClick:c,onPreviousPageClick:l,onNextPageClick:d})=>(0,u.jsx)(Kd,{pageTitle:e,pageDescription:t,sideNavProps:r,headerLeading:n?(0,u.jsx)(O,{label:n,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`ghost`,intent:`primary`,size:`sm`,className:`mb-3 px-0`,onClick:s}):void 0,children:a.state===`ready`?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(vu,{...i})}),o?(0,u.jsxs)(`nav`,{"aria-label":`Report pagination`,className:`mt-5 flex justify-end gap-3`,children:[(0,u.jsx)(O,{label:o.previousLabel,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`outline`,intent:`primary`,disabled:o.previousDisabled,onClick:l}),(0,u.jsx)(O,{label:o.nextLabel,iconType:`fa-solid`,iconName:`chevron-right`,iconAlt:``,iconPosition:`right`,variant:`outline`,intent:`primary`,disabled:o.nextDisabled,onClick:d})]}):null]}):(0,u.jsx)(Yd,{status:a,onRetryClick:c})}),ff=e=>new Intl.NumberFormat(`en-US`).format(e),pf=({title:e,description:t,iconName:n,children:r})=>(0,u.jsxs)(`article`,{className:`flex w-full flex-col rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:flex-row md:items-start md:gap-6`,children:[(0,u.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,u.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-borderTertiary bg-adminSideNavBackground text-primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:n,alt:``,size:`md`})}),(0,u.jsxs)(`div`,{className:`min-w-0 md:w-72`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:t})]})]}),(0,u.jsx)(`div`,{className:`mt-5 flex flex-1 flex-col md:mt-0`,children:r})]}),mf=({status:e,message:t})=>{let n=t?.trim()??``;if(!n||e===`idle`)return null;let r=`text-primary`;return e===`error`?r=`text-accent`:e===`success`&&(r=`text-saleGreen`),(0,u.jsx)(f,{role:e===`error`?`alert`:`status`,variant:`free`,className:`mt-3 text-sm ${r}`,children:n})},hf=({dataSource:e})=>(0,u.jsxs)(`dl`,{className:`grid gap-3 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Source`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm font-semibold text-primary`,children:e.source.label})]}),(0,u.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Locale`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:e.source.locale})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Records`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:ff(e.recordCount)})]})]}),(0,u.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Created`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:e.createdAt})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Updated`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:e.updatedAt})]})]}),e.latestReport?.label?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Latest Report`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:e.latestReport.label})]}):null]}),gf=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},dataSource:i,existingDataTitle:a=`Continue with saved data`,existingDataEmptyTitle:o=`No saved data set yet`,existingDataEmptyDescription:s=`Start by uploading a Salsify report or downloading the latest data directly from Salsify.`,useExistingDataLabel:l=`Use Saved Data`,uploadTitle:d=`Upload a Salsify report`,uploadDescription:p=`Use a report exported from Salsify when you already have the file ready.`,uploadDropLabel:m=`Drag a report file here`,uploadBrowseLabel:h=`Select File`,uploadHelpText:_=`JSON exports from Salsify are supported.`,selectedFile:v,uploadStatus:y=`idle`,uploadStatusMessage:b,uploadLabel:x=`Upload Report`,uploadDisabled:S=!1,clearFileLabel:C=`Clear File`,directDownloadTitle:w=`Download from Salsify`,directDownloadDescription:T=`Choose a product range and Data Forge will request the latest records for you.`,rangeLabel:E=`Product Range`,rangePlaceholder:D=`Select a range`,rangeOptions:k,selectedRangeValue:A=``,directDownloadLabel:j=`Download Latest Data`,downloadStatus:M=`idle`,downloadStatusMessage:N,downloadDisabled:P=!1,onUseExistingDataClick:F,onReportFileSelect:I,onUploadClick:L,onClearSelectedFileClick:R,onRangeChange:ee,onDirectDownloadClick:te,onRetryClick:z})=>{let ne=(0,c.useRef)(null),re=y===`pending`,B=M===`pending`,ie=e=>I?.({files:Array.from(e??[])});return(0,u.jsx)(Kd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:r.state===`ready`?(0,u.jsxs)(`section`,{"aria-label":`Choose data source`,className:`mt-6 flex flex-col gap-4`,children:[(0,u.jsx)(pf,{title:i?a:o,description:i?`Review the saved data set and continue if it is the right source for this review.`:s,iconName:i?`database`:`circle-info`,children:i?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(hf,{dataSource:i}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(O,{label:l,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`primary`,fullWidth:!0,onClick:F})})]}):(0,u.jsx)(`div`,{className:`rounded-md border border-dashed border-borderTertiary bg-adminSideNavBackground p-4`,children:(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:s})})}),(0,u.jsxs)(pf,{title:d,description:p,iconName:`file-arrow-up`,children:[(0,u.jsxs)(`div`,{className:`flex min-h-40 flex-col items-center justify-center rounded-lg border border-dashed border-secondaryActive bg-adminSideNavBackground p-5 text-center transition hover:border-primary`,onDragOver:e=>e.preventDefault(),onDrop:e=>{e.preventDefault(),ie(e.dataTransfer.files)},children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`,className:`text-primary`}),(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:m}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:`Drop it here, or select it from your computer.`}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(O,{label:h,iconType:`fa-solid`,iconName:`folder-open`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,disabled:re,onClick:()=>ne.current?.click()})}),(0,u.jsx)(`input`,{ref:ne,id:`salsify-report-upload`,type:`file`,className:`sr-only`,disabled:re,onChange:e=>ie(e.target.files)})]}),(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:_}),v?(0,u.jsxs)(`div`,{className:`mt-4 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`file`,alt:``,size:`lg`,className:`text-primary`}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(f,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:v.name}),v.sizeLabel?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:v.sizeLabel}):null]})]}),(0,u.jsxs)(`div`,{className:`mt-4 flex flex-col gap-2 md:flex-row md:justify-end`,children:[(0,u.jsx)(O,{label:C,variant:`outline`,intent:`primary`,size:`sm`,disabled:re,onClick:R}),(0,u.jsx)(O,{label:x,iconType:`fa-solid`,iconName:`cloud-arrow-up`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,disabled:S||re,"aria-busy":re||void 0,onClick:L})]})]}):null,(0,u.jsx)(mf,{status:y,message:b})]}),(0,u.jsxs)(pf,{title:w,description:T,iconName:`cloud-arrow-down`,children:[(0,u.jsxs)(`div`,{className:`space-y-2`,children:[(0,u.jsx)(`label`,{htmlFor:`salsify-range`,className:`text-sm font-bold text-primary`,children:E}),(0,u.jsx)(Q,{id:`salsify-range`,name:`salsifyRange`,value:A,placeholder:D,options:k,disabled:B,onChange:e=>ee?.({value:e.target.value})})]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(O,{label:j,iconType:`fa-solid`,iconName:`cloud-arrow-down`,iconAlt:``,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:P||B,"aria-busy":B||void 0,onClick:te})}),(0,u.jsx)(mf,{status:M,message:N})]})]}):(0,u.jsx)(Yd,{status:r,onRetryClick:z})})},_f=(e,t,n)=>`${e.toLocaleString()} ${e===1?t:n}`,vf=({status:e,message:t})=>{let n=t?.trim()??``;return!n||e===`idle`?null:(0,u.jsx)(f,{role:e===`error`?`alert`:`status`,variant:`free`,className:`mt-3 text-sm ${e===`error`?`text-accent`:`text-primary`}`,children:n})},yf=({label:e,options:t,value:n,disabled:r=!1,onSelect:i})=>(0,u.jsxs)(`fieldset`,{children:[(0,u.jsx)(`legend`,{className:`text-sm font-bold text-primary`,children:e}),(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":e,"aria-required":`true`,"aria-invalid":!n||void 0,className:`mt-3 flex flex-wrap gap-2`,children:t.map(e=>{let t=e.value===n;return(0,u.jsx)(O,{label:e.label,variant:t?`solid`:`outline`,intent:`primary`,size:`sm`,role:`radio`,"aria-checked":t,disabled:r,onClick:()=>i(e.value)},e.value)})}),n?null:(0,u.jsxs)(f,{variant:`free`,className:`mt-2 text-xs text-accent`,children:[`Select one `,e.toLowerCase(),`.`]})]}),bf=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},existingImportSet:i,regionOptions:a,selectedRegion:o,localityOptions:s,selectedLocality:l,localityDisabled:d=!1,intentOptions:p,selectedIntent:m,selectedFile:h,uploadStatus:_=`idle`,uploadStatusMessage:v,uploadDisabled:y=!1,continueExistingLabel:b=`Continue Import Set`,uploadLabel:x=`Upload and Continue`,clearFileLabel:S=`Clear File`,onContinueExistingClick:C,onRegionChange:w,onLocalityChange:T,onIntentChange:E,onFileSelect:D,onClearSelectedFileClick:k,onUploadClick:A,onRetryClick:j})=>{let M=(0,c.useRef)(null),N=(0,c.useId)(),P=_===`pending`,F=P||!o.trim()||!l.trim()||!m,I=e=>D?.({files:Array.from(e??[]).slice(0,1)});return(0,u.jsx)(Kd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:r.state===`ready`?(0,u.jsxs)(`div`,{className:`mt-6 grid gap-6`,children:[i?(0,u.jsxs)(`section`,{"aria-labelledby":`existing-import-set-title`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`h2`,id:`existing-import-set-title`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Existing Import Set`}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-xs font-bold uppercase text-tertiary`,children:`Private and expiring`}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 font-bold text-primary`,children:i.fileName}),(0,u.jsxs)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:[i.regionLabel,` ·`,` `,i.localityLabel,` ·`,` `,i.intentLabel]}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:[i.rangeCount===void 0?null:_f(i.rangeCount,`range`,`ranges`),i.decorCount===void 0?null:_f(i.decorCount,`decor`,`decors`),i.skuCount===void 0?null:_f(i.skuCount,`SKU`,`SKUs`)].filter(Boolean).join(` · `)})]}),(0,u.jsx)(f,{variant:`free`,className:`shrink-0 rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-tertiary`,children:i.expiresLabel})]}),(0,u.jsx)(`div`,{className:`mt-5 flex justify-end`,children:(0,u.jsx)(O,{label:b,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,onClick:C})})]}):null,(0,u.jsxs)(`section`,{"aria-labelledby":`new-import-title`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsx)(f,{as:`h2`,id:`new-import-title`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Start a New Import`}),(0,u.jsxs)(`div`,{className:`mt-5 grid gap-6`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`mb-3 text-sm font-bold text-primary`,children:`Region`}),(0,u.jsx)(Ro,{options:a,value:o,onChange:w})]}),(0,u.jsx)(yf,{label:`Locality`,options:s,value:l,disabled:d,onSelect:e=>T({locality:e})}),(0,u.jsx)(yf,{label:`Import Intent`,options:p,value:m,onSelect:e=>E({intent:e})}),(0,u.jsxs)(`fieldset`,{children:[(0,u.jsx)(`legend`,{className:`text-sm font-bold text-primary`,children:`Source File`}),(0,u.jsxs)(`div`,{className:`mt-3 flex min-h-40 flex-col items-center justify-center rounded-lg border border-dashed border-secondaryActive bg-adminSideNavBackground p-5 text-center transition hover:border-primary`,"aria-disabled":F||void 0,onDragOver:e=>e.preventDefault(),onDrop:e=>{e.preventDefault(),F||I(e.dataTransfer.files)},children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`,className:`text-primary`}),(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:`Drag an .xlsx file here`}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:`Drop it here, or select it from your computer.`}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(O,{label:`Select File`,iconType:`fa-solid`,iconName:`folder-open`,iconAlt:``,variant:`outline`,size:`sm`,disabled:F,onClick:()=>M.current?.click()})}),(0,u.jsx)(`input`,{ref:M,id:`${N}-import-upload`,type:`file`,accept:`.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,className:`sr-only`,disabled:F,onChange:e=>I(e.target.files)})]}),h?(0,u.jsxs)(`div`,{className:`mt-4 flex flex-col gap-4 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`file-excel`,alt:``,size:`lg`}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(f,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:h.name}),h.sizeLabel?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:h.sizeLabel}):null]})]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row`,children:[(0,u.jsx)(O,{label:S,variant:`outline`,size:`sm`,disabled:P,onClick:k}),(0,u.jsx)(O,{label:x,iconType:`fa-solid`,iconName:P?`spinner`:`cloud-arrow-up`,iconAlt:``,size:`sm`,disabled:y||F,"aria-busy":P||void 0,onClick:A})]})]}):null,(0,u.jsx)(vf,{status:_,message:v})]})]})]})]}):(0,u.jsx)(Yd,{status:r,onRetryClick:j})})},xf={error:{iconName:`circle-exclamation`,label:`Error`,className:`text-accent`},warning:{iconName:`triangle-exclamation`,label:`Warning`,className:`text-primary`},info:{iconName:`circle-info`,label:`Information`,className:`text-primary`}},Sf=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},fileName:i,scopeLabel:a,summary:o,groups:s,backLabel:c=`Back to Upload`,continueLabel:l=`Continue to Review`,continueDisabled:d=!1,onBackClick:p,onContinueClick:m,onRetryClick:h})=>(0,u.jsx)(Kd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:r.state===`ready`?(0,u.jsxs)(`div`,{className:`mt-6 grid gap-5`,children:[(0,u.jsxs)(`section`,{"aria-label":`Import issue summary`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Validation Summary`}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm font-bold text-primary`,children:i}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:a})]}),(0,u.jsxs)(f,{variant:`free`,className:`shrink-0 rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-tertiary`,children:[o.totalCount.toLocaleString(),` issues`]})]}),(0,u.jsxs)(`dl`,{className:`mt-5 grid gap-3 md:grid-cols-3`,children:[(0,u.jsxs)(`div`,{className:`rounded-md bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Issues`}),(0,u.jsx)(`dd`,{className:`mt-1 text-2xl font-bold text-primary`,children:o.totalCount.toLocaleString()})]}),(0,u.jsxs)(`div`,{className:`rounded-md bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Blocking`}),(0,u.jsx)(`dd`,{className:`mt-1 text-2xl font-bold text-accent`,children:o.blockingCount.toLocaleString()})]}),(0,u.jsxs)(`div`,{className:`rounded-md bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Warnings`}),(0,u.jsx)(`dd`,{className:`mt-1 text-2xl font-bold text-primary`,children:o.warningCount.toLocaleString()})]})]})]}),(0,u.jsx)(`section`,{"aria-label":`Import issues`,className:`grid gap-4`,children:s.map(e=>(0,u.jsxs)(`article`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e.title}),e.description?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:e.description}):null]}),(0,u.jsxs)(f,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:[e.issues.length.toLocaleString(),` `,e.issues.length===1?`issue`:`issues`]})]}),(0,u.jsx)(`ul`,{className:`mt-4 divide-y divide-borderTertiary rounded-md border border-borderTertiary`,children:e.issues.map(e=>{let t=xf[e.severity];return(0,u.jsxs)(`li`,{className:`flex items-start gap-3 p-4`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:t.iconName,alt:``,className:`mt-0.5 shrink-0 ${t.className}`}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold uppercase ${t.className}`,children:t.label}),(0,u.jsx)(f,{variant:`free`,className:`rounded-full px-2 py-0.5 text-xs font-bold ${e.blocking?`bg-accent text-secondary`:`bg-tertiaryActive text-tertiary`}`,children:e.blocking?`Blocking`:`Non-blocking`}),e.location||e.identifier?(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:[e.location,e.identifier?`${e.identifier.label}: ${e.identifier.value}`:null].filter(Boolean).join(` · `)}):null]}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:e.message})]})]},e.id)})})]},e.id))}),(0,u.jsxs)(`div`,{className:`flex flex-col-reverse gap-3 md:flex-row md:justify-end`,children:[(0,u.jsx)(O,{label:c,variant:`outline`,onClick:p}),(0,u.jsx)(O,{label:l,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,disabled:d,onClick:m})]})]}):(0,u.jsx)(Yd,{status:r,onRetryClick:h})}),Cf={added:`Added`,updated:`Updated`,unchanged:`Unchanged`},wf=e=>e===`added`?`bg-saleGreen text-secondary`:e===`updated`?`bg-tertiaryActive text-primary`:`bg-adminSideNavBackground text-tertiary`,Tf=({changeType:e})=>(0,u.jsx)(f,{variant:`free`,className:`inline-flex rounded-full px-2 py-0.5 text-xs font-bold ${wf(e)}`,children:Cf[e]}),Ef=({row:e})=>{let t=e.currentValue?.trim()||`—`,n=e.afterValue?.trim()||`—`;return(0,u.jsxs)(`div`,{className:`grid border-t border-borderTertiary md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 p-4`,children:[(0,u.jsx)(f,{variant:`free`,className:`mb-2 text-xs font-bold uppercase text-tertiary md:hidden`,children:`Current`}),(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:e.label}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 break-words text-sm text-primary`,children:t})]}),(0,u.jsxs)(`div`,{className:`min-w-0 border-t border-borderTertiary bg-adminSideNavBackground p-4 md:border-l md:border-t-0`,children:[(0,u.jsx)(f,{variant:`free`,className:`mb-2 text-xs font-bold uppercase text-tertiary md:hidden`,children:`After`}),(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:e.label}),e.changeType===`unchanged`?null:(0,u.jsx)(Tf,{changeType:e.changeType})]}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 break-words text-sm ${e.changeType===`unchanged`?`text-tertiary`:`font-bold text-primary`}`,children:e.changeType===`unchanged`?t:n})]})]})},Df=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},fileName:i,scopeLabel:a,ranges:o,cancelLabel:s=`Cancel Import`,continueLabel:c=`Apply Import`,continueDisabled:l=!1,cancelConfirmation:d,onCancelClick:p,onCancelConfirm:m,onCancelClose:h,onContinueClick:g,onRetryClick:_})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:r.state===`ready`?(0,u.jsxs)(`div`,{className:`mt-6 grid gap-5`,children:[(0,u.jsxs)(`section`,{"aria-label":`Import review summary`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Final Import Review`}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm font-bold text-primary`,children:i}),(0,u.jsxs)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:[a,` · `,o.length.toLocaleString(),` `,o.length===1?`range`:`ranges`]})]}),(0,u.jsx)(`section`,{"aria-label":`Changes in this import`,className:`grid gap-5`,children:o.map(e=>(0,u.jsxs)(`article`,{className:`overflow-hidden rounded-lg border border-borderTertiary bg-secondary shadow-sm`,children:[(0,u.jsxs)(`header`,{className:`flex flex-col gap-2 border-b border-borderTertiary p-5 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:`Range`}),(0,u.jsxs)(f,{as:`h2`,variant:`free`,className:`mt-1 text-lg font-bold text-primary`,children:[e.name,e.code?` · ${e.code}`:``]})]}),(0,u.jsx)(Tf,{changeType:e.changeType})]}),(0,u.jsx)(`div`,{className:`grid gap-5 p-5`,children:e.decors.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`${e.id}-title`,className:`overflow-hidden rounded-lg border border-borderTertiary`,children:[(0,u.jsxs)(`header`,{className:`flex flex-col gap-2 bg-tertiaryActive p-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:`Decor`}),(0,u.jsxs)(f,{as:`h3`,id:`${e.id}-title`,variant:`free`,className:`mt-1 text-base font-bold text-primary`,children:[e.code,e.name?` · ${e.name}`:``]})]}),(0,u.jsx)(Tf,{changeType:e.changeType})]}),(0,u.jsx)(`div`,{className:`grid gap-5 p-4`,children:e.sections.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`${e.id}-title`,children:[(0,u.jsx)(f,{as:`h4`,id:`${e.id}-title`,variant:`free`,className:`text-sm font-bold text-primary`,children:e.title}),(0,u.jsxs)(`div`,{className:`mt-3 overflow-hidden rounded-md border border-borderTertiary`,children:[(0,u.jsxs)(`div`,{className:`hidden grid-cols-2 bg-tertiaryActive md:grid`,children:[(0,u.jsx)(f,{variant:`free`,className:`px-4 py-3 text-xs font-bold uppercase text-tertiary`,children:`Current`}),(0,u.jsx)(f,{variant:`free`,className:`border-l border-borderTertiary px-4 py-3 text-xs font-bold uppercase text-tertiary`,children:`After`})]}),e.rows.map(e=>(0,u.jsx)(Ef,{row:e},e.id))]})]},e.id))})]},e.id))})]},e.id))}),(0,u.jsxs)(`div`,{className:`flex flex-col-reverse gap-3 md:flex-row md:justify-end`,children:[(0,u.jsx)(O,{label:s,variant:`outline`,intent:`danger`,onClick:p}),(0,u.jsx)(O,{label:c,iconType:`fa-solid`,iconName:`check`,iconAlt:``,disabled:l,onClick:g})]})]}):(0,u.jsx)(Yd,{status:r,onRetryClick:_})}),(0,u.jsx)(Ac,{open:d?.open??!1,title:d?.title??`Cancel import?`,closeLabel:d?.cancelLabel,size:`sm`,onClose:h??(()=>void 0),children:d?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:d.message}),(0,u.jsxs)(`div`,{className:`flex flex-col-reverse gap-2 md:flex-row md:justify-end`,children:[(0,u.jsx)(O,{label:d.cancelLabel??`Keep Import Set`,variant:`outline`,disabled:d.pending,onClick:h}),(0,u.jsx)(O,{label:d.confirmLabel??`Delete Import Set`,intent:`danger`,disabled:d.pending,"aria-busy":d.pending||void 0,onClick:m})]})]}):null})]}),Of=e=>e===`error`?`text-accent`:e===`success`?`text-saleGreen`:`text-primary`,kf=({status:e,message:t})=>{let n=t?.trim()??``;return!n||e===`idle`?null:(0,u.jsx)(f,{role:e===`error`?`alert`:`status`,variant:`free`,className:`mt-3 text-sm ${Of(e)}`,children:n})},Af=({guide:e,uploadDropLabel:t,uploadBrowseLabel:n,uploadLabel:r,clearFileLabel:i,completeLabel:a,onGuideFileSelect:o,onUploadClick:s,onClearSelectedFileClick:l})=>{let d=(0,c.useRef)(null),p=(0,c.useId)(),m=e.actionStatus??`idle`,h=m===`validating`||m===`pending`,_=(e.availability??`available`)===`available`,v=e.uploadDropLabel??t,y=e.uploadBrowseLabel??n,b=e.uploadLabel??r,x=e.completeLabel??a,S=t=>o?.({guideId:e.id,files:Array.from(t??[])});return(0,u.jsxs)(`article`,{className:`flex w-full flex-col rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:flex-row md:items-start md:gap-6`,children:[(0,u.jsxs)(`div`,{className:`flex items-start gap-4`,children:[e.logo?(0,u.jsx)(`span`,{className:`flex h-10 w-20 shrink-0 items-center justify-center rounded-md border border-borderTertiary bg-adminSideNavBackground px-3`,children:(0,u.jsx)(`img`,{src:e.logo.src,alt:e.logo.alt??``,className:`max-h-6 w-full object-contain opacity-70 brightness-0`,loading:`eager`,decoding:`async`})}):(0,u.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-borderTertiary bg-adminSideNavBackground text-primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`book-open`,alt:``,size:`md`})}),(0,u.jsxs)(`div`,{className:`min-w-0 md:w-72`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e.title}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:e.description})]})]}),(0,u.jsx)(`div`,{className:`mt-5 min-w-0 flex-1 md:mt-0`,children:_?(0,u.jsxs)(u.Fragment,{children:[m===`success`?(0,u.jsxs)(`div`,{role:`status`,className:`mb-5 flex items-center gap-2 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`circle-check`,alt:``,className:`shrink-0 text-saleGreen`}),(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:x})]}):null,(0,u.jsxs)(`div`,{className:`flex min-h-40 flex-col items-center justify-center rounded-lg border border-dashed border-secondaryActive bg-adminSideNavBackground p-5 text-center transition hover:border-primary`,onDragOver:e=>e.preventDefault(),onDrop:e=>{e.preventDefault(),S(e.dataTransfer.files)},children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`,className:`text-primary`}),(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:v}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:`Drop it here, or select it from your computer.`}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(O,{label:y,iconType:`fa-solid`,iconName:`folder-open`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,disabled:h,onClick:()=>d.current?.click()})}),(0,u.jsx)(`input`,{ref:d,id:`${p}-product-guide-upload`,type:`file`,accept:e.fileAccept??`.pdf,application/pdf`,className:`sr-only`,disabled:h,onChange:e=>S(e.target.files)})]}),e.selectedFile?(0,u.jsxs)(`div`,{className:`mt-4 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`file`,alt:``,size:`lg`,className:`text-primary`}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(f,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:e.selectedFile.name}),e.selectedFile.sizeLabel?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:e.selectedFile.sizeLabel}):null]})]}),(0,u.jsxs)(`div`,{className:`mt-4 flex flex-col gap-2 md:flex-row md:justify-end`,children:[(0,u.jsx)(O,{label:i,variant:`outline`,intent:`primary`,size:`sm`,disabled:h,onClick:()=>l?.({guideId:e.id})}),(0,u.jsx)(O,{label:b,iconType:`fa-solid`,iconName:`cloud-arrow-up`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,disabled:e.uploadDisabled||h,"aria-busy":h||void 0,onClick:()=>s?.({guideId:e.id})})]})]}):null,e.validationIssues?.length?(0,u.jsxs)(`div`,{role:`alert`,className:`mt-4 rounded-md border border-accent bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-accent`,children:`Validation issues`}),(0,u.jsx)(`ul`,{className:`mt-2 list-disc space-y-1 pl-5`,children:e.validationIssues.map((e,t)=>(0,u.jsxs)(`li`,{className:`text-xs text-primary`,children:[(0,u.jsx)(`span`,{className:`font-bold`,children:e.path}),`:`,` `,e.message]},`${e.path}-${e.message}-${t}`))})]}):null,m===`success`?null:(0,u.jsx)(kf,{status:m,message:e.actionStatusMessage})]}):(0,u.jsxs)(`div`,{role:`status`,className:`flex min-h-36 flex-col items-center justify-center rounded-lg border border-dashed border-borderTertiary bg-adminSideNavBackground p-5 text-center`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`clock`,alt:``,size:`xl`,className:`text-tertiary`}),(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:e.availabilityMessage??`Upload support is coming soon.`})]})})]})},jf=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},guides:i,emptyTitle:a=`No product guides configured`,emptyDescription:o=`Add a product-guide configuration before uploading data.`,uploadDropLabel:s=`Drag a product guide PDF file here`,uploadBrowseLabel:c=`Select PDF File`,uploadLabel:l=`Replace Active Guide`,clearFileLabel:d=`Clear File`,completeLabel:p=`Complete`,onGuideFileSelect:m,onUploadClick:h,onClearSelectedFileClick:_,onRetryClick:v})=>{let y;return y=r.state===`ready`?i.length===0?(0,u.jsxs)(`section`,{className:`mt-6 rounded-lg border border-borderTertiary bg-secondary p-6 text-center shadow-sm`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`book`,alt:``,size:`2xl`,className:`text-tertiary`}),(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`mt-4 text-lg font-bold text-primary`,children:a}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:o})]}):(0,u.jsx)(`section`,{"aria-label":`Product guides`,className:`mt-6 grid gap-4`,children:i.map(e=>(0,u.jsx)(Af,{guide:e,uploadDropLabel:s,uploadBrowseLabel:c,uploadLabel:l,clearFileLabel:d,completeLabel:p,onGuideFileSelect:m,onUploadClick:h,onClearSelectedFileClick:_},e.id))}):(0,u.jsx)(Yd,{status:r,onRetryClick:v}),(0,u.jsx)(Kd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:y})},Mf=({shellProps:e,items:t,emptyTitle:n=`No favorite products yet`,emptyMessage:r=`Save products you love and they will appear here.`,browseLabel:i=`Browse products`,onFavoriteClick:a,onBrowseClick:o})=>(0,u.jsxs)(Lu,{...e,activeTabId:`favorites`,children:[(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`font-rockwell text-3xl text-primary`,children:`Favorites`}),(0,u.jsx)(f,{className:`mt-2 text-secondaryActive`,children:`Your saved products, all in one place.`}),t.length>0?(0,u.jsx)(`section`,{"aria-label":`Favorite products`,className:`mt-8 grid grid-cols-1 gap-6 md:grid-cols-3`,children:t.map(e=>(0,u.jsx)(mc,{...e,onSwatchClick:()=>a({item:e})},e.id))}):(0,u.jsxs)(`section`,{className:`mt-6 flex min-h-72 flex-col items-center justify-center rounded-lg border border-borderTertiary bg-white p-8 text-center`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`heart`,alt:``,size:`4xl`,color:`secondaryHover`}),(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`mt-5 font-rockwell text-2xl text-primary`,children:n}),(0,u.jsx)(f,{className:`mt-2 text-secondaryActive`,children:r}),(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(O,{label:i,intent:`accent`,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,onClick:o})})]})]}),Nf=({shellProps:e,personalInformation:t,password:n,shippingAddresses:r,billingAddresses:i,onAddAddressClick:a,onEditAddressClick:o,onRemoveAddressClick:s})=>{let c=t.errors??{},l=n.errors??{};return(0,u.jsxs)(Lu,{...e,activeTabId:`account-settings`,children:[(0,u.jsx)(`h1`,{className:`sr-only`,children:`Account Settings`}),(0,u.jsxs)(`section`,{"aria-labelledby":`personal-information-heading`,children:[(0,u.jsx)(f,{id:`personal-information-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Personal Information`}),(0,u.jsxs)(`div`,{className:`mt-4 rounded-lg border border-borderTertiary bg-white p-6`,children:[(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-5 md:grid-cols-2`,children:[(0,u.jsx)($,{id:`customer-first-name`,name:`firstName`,label:`First name`,value:t.firstName,autoComplete:`given-name`,hasError:!!c.firstName,errorMessage:c.firstName,onChange:t.onFirstNameChange}),(0,u.jsx)($,{id:`customer-last-name`,name:`lastName`,label:`Last name`,value:t.lastName,autoComplete:`family-name`,hasError:!!c.lastName,errorMessage:c.lastName,onChange:t.onLastNameChange}),(0,u.jsx)($,{id:`customer-email`,name:`email`,type:`email`,label:`Email address`,value:t.email,autoComplete:`email`,hasError:!!c.email,errorMessage:c.email,onChange:t.onEmailChange}),(0,u.jsx)($,{id:`customer-phone-number`,name:`phoneNumber`,type:`tel`,label:`Phone number`,placeholder:`Phone number`,value:t.phoneNumber??``,autoComplete:`tel`,hasError:!!c.phoneNumber,errorMessage:c.phoneNumber,onChange:t.onPhoneNumberChange})]}),(0,u.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,u.jsx)(O,{label:`Save changes`,intent:`accent`,disabled:t.saveDisabled,onClick:t.onSaveClick})})]})]}),(0,u.jsxs)(`section`,{className:`mt-10`,"aria-labelledby":`change-password-heading`,children:[(0,u.jsx)(f,{id:`change-password-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Change Password`}),(0,u.jsxs)(`div`,{className:`mt-4 rounded-lg border border-borderTertiary bg-white p-6`,children:[(0,u.jsxs)(`div`,{className:`flex max-w-xl flex-col gap-5`,children:[(0,u.jsx)($,{id:`customer-current-password`,name:`currentPassword`,type:`password`,label:`Current password`,placeholder:`Enter current password`,value:n.currentPassword,autoComplete:`current-password`,hasError:!!l.currentPassword,errorMessage:l.currentPassword,onChange:n.onCurrentPasswordChange}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)($,{id:`customer-new-password`,name:`newPassword`,type:`password`,label:`New password`,placeholder:`Enter new password`,value:n.newPassword,autoComplete:`new-password`,hasError:!!l.newPassword,errorMessage:l.newPassword,onChange:n.onNewPasswordChange}),n.passwordRequirements?(0,u.jsx)(f,{variant:`caption`,className:`mt-2`,children:n.passwordRequirements}):null]}),(0,u.jsx)($,{id:`customer-confirm-password`,name:`confirmPassword`,type:`password`,label:`Confirm new password`,placeholder:`Repeat new password`,value:n.confirmPassword,autoComplete:`new-password`,hasError:!!l.confirmPassword,errorMessage:l.confirmPassword,onChange:n.onConfirmPasswordChange})]}),(0,u.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,u.jsx)(O,{label:`Update password`,intent:`accent`,disabled:n.submitDisabled,onClick:n.onSubmitClick})})]})]}),(0,u.jsxs)(`section`,{className:`mt-10`,"aria-labelledby":`shipping-addresses-heading`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsx)(f,{id:`shipping-addresses-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Shipping Addresses`}),(0,u.jsx)(O,{label:`Add shipping address`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,intent:`accent`,onClick:()=>a({addressType:`shipping`})})]}),r.length>0?(0,u.jsx)(`div`,{className:`mt-4 grid grid-cols-1 gap-6 md:grid-cols-2`,children:r.map(e=>(0,u.jsx)(hc,{address:e,onEditClick:({address:e})=>o({addressType:`shipping`,address:e}),onRemoveClick:({address:e})=>s({addressType:`shipping`,address:e})},e.id))}):(0,u.jsx)(f,{className:`mt-4 text-secondaryActive`,children:`No shipping addresses have been saved.`})]}),(0,u.jsxs)(`section`,{className:`mt-10 border-t border-borderTertiary pt-10`,"aria-labelledby":`billing-addresses-heading`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsx)(f,{id:`billing-addresses-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Billing Addresses`}),(0,u.jsx)(O,{label:`Add billing address`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,intent:`accent`,onClick:()=>a({addressType:`billing`})})]}),i.length>0?(0,u.jsx)(`div`,{className:`mt-4 grid grid-cols-1 gap-6 md:grid-cols-2`,children:i.map(e=>(0,u.jsx)(hc,{address:e,onEditClick:({address:e})=>o({addressType:`billing`,address:e}),onRemoveClick:({address:e})=>s({addressType:`billing`,address:e})},e.id))}):(0,u.jsx)(f,{className:`mt-4 text-secondaryActive`,children:`No billing addresses have been saved.`})]})]})},Pf=({shellProps:e,status:t,period:n,statusOptions:r,periodOptions:i,orders:a,totalOrderCount:o,hasMoreOrders:s=!1,isLoadingMore:c=!1,seeMoreLabel:l=`See more orders`,searchDisabled:d=!1,emptyMessage:p=`No orders match your current filters.`,onStatusChange:m,onPeriodChange:h,onSearchClick:g,onOrderClick:_,onSeeMoreClick:v})=>{let y=s&&!!v;return(0,u.jsxs)(Lu,{...e,activeTabId:`order-history`,children:[(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`font-rockwell text-3xl text-primary`,children:`Order History`}),(0,u.jsx)(`section`,{"aria-label":`Search orders`,className:`mt-5 rounded-lg border border-borderTertiary bg-white p-6`,children:(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-5 md:grid-cols-3 md:items-end`,children:[(0,u.jsxs)(`label`,{className:`flex flex-col gap-2 text-sm font-semibold text-primary`,children:[`Status`,(0,u.jsx)(Q,{id:`customer-order-status`,name:`status`,value:t,options:r,onChange:m})]}),(0,u.jsxs)(`label`,{className:`flex flex-col gap-2 text-sm font-semibold text-primary`,children:[`Period`,(0,u.jsx)(Q,{id:`customer-order-period`,name:`period`,value:n,options:i,onChange:h})]}),(0,u.jsx)(O,{label:`Search orders`,iconType:`fa-solid`,iconName:`magnifying-glass`,iconAlt:``,intent:`accent`,disabled:d,onClick:g})]})}),a.length>0?(0,u.jsxs)(`section`,{"aria-label":`Orders`,className:`mt-6 space-y-4`,children:[(0,u.jsxs)(`div`,{className:`hidden grid-cols-5 gap-4 rounded-lg bg-tertiaryActive px-6 py-3 text-sm font-semibold text-primary md:grid`,children:[(0,u.jsx)(`span`,{children:`Order`}),(0,u.jsx)(`span`,{children:`Date`}),(0,u.jsx)(`span`,{children:`Status`}),(0,u.jsx)(`span`,{children:`Total`}),(0,u.jsx)(`span`,{children:`Tracking`})]}),a.map(e=>(0,u.jsxs)(`article`,{className:`grid grid-cols-1 gap-4 rounded-lg border border-borderTertiary bg-white p-6 md:grid-cols-5 md:items-center`,children:[(0,u.jsxs)(`button`,{type:`button`,className:`text-left font-semibold text-accent hover:underline`,onClick:()=>_({order:e}),children:[`#`,e.orderNumber]}),(0,u.jsx)(`span`,{className:`text-sm text-primary`,children:e.date}),(0,u.jsx)(`span`,{className:`text-sm text-primary`,children:e.status}),(0,u.jsx)(`span`,{className:`text-sm font-semibold text-primary`,children:e.total}),(0,u.jsx)(`span`,{className:`text-sm text-primary`,children:e.trackingNumber??`Not available`})]},e.id)),y?(0,u.jsxs)(`div`,{className:`flex flex-col items-center gap-3 pt-2`,children:[o?(0,u.jsxs)(f,{variant:`caption`,children:[`Showing `,a.length,` of `,o,` orders`]}):null,(0,u.jsx)(O,{label:c?`Loading orders…`:l,variant:`outline`,intent:`primary`,disabled:c,onClick:v})]}):null]}):(0,u.jsx)(`section`,{className:`mt-6 rounded-lg border border-borderTertiary bg-white p-10 text-center`,children:(0,u.jsx)(f,{className:`text-secondaryActive`,children:p})})]})},Ff=(e,t)=>(0,u.jsxs)(`section`,{"aria-label":e,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`font-semibold text-primary`,children:e}),(0,u.jsxs)(`address`,{className:`mt-3 not-italic`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.name}),t.lines.map((e,t)=>(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:e},`${e}-${t}`))]})]}),If=({shellProps:e,orderNumber:t,orderDate:n,status:r,statusTone:i=`neutral`,projectName:a,fulfillmentGroups:o,shippingAddress:s,billingAddress:c,paymentMethod:l,summaryRows:d,backLabel:p=`Back to order history`,invoiceLabel:m=`Download invoice`,helpLabel:h=`Get help with this order`,onBackClick:g,onInvoiceClick:_,onHelpClick:v,onProductClick:y,onTrackingClick:b})=>(0,u.jsxs)(Lu,{...e,activeTabId:`order-history`,children:[(0,u.jsx)(`div`,{className:`flex justify-start`,children:(0,u.jsx)(O,{label:p,iconType:`fa-solid`,iconName:`arrow-left`,iconAlt:``,variant:`link`,intent:`primary`,size:`sm`,onClick:g})}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(_c,{orderNumber:t,orderDate:n,status:r,statusTone:i,projectName:a,invoiceLabel:m,onInvoiceClick:_})}),(0,u.jsxs)(`section`,{className:`mt-8`,"aria-labelledby":`order-items-heading`,children:[(0,u.jsx)(f,{id:`order-items-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Items`}),(0,u.jsx)(`div`,{className:`mt-4 space-y-8`,children:o.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`${e.id}-heading`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 border-b border-borderTertiary pb-3 md:flex-row md:items-end md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{id:`${e.id}-heading`,as:`h3`,variant:`free`,className:`font-rockwell text-xl text-primary`,children:e.title}),e.facility?(0,u.jsxs)(f,{className:`mt-1 text-sm text-secondaryActive`,children:[`Ships from `,e.facility]}):null]}),(0,u.jsxs)(`div`,{className:`text-left md:text-right`,children:[(0,u.jsxs)(f,{className:`text-sm font-semibold text-primary`,children:[e.shippingMethod.name,` · `,e.shippingCost]}),e.shippingMethod.estimatedDelivery?(0,u.jsx)(f,{className:`mt-1 text-sm text-secondaryActive`,children:e.shippingMethod.estimatedDelivery}):null]})]}),(0,u.jsx)(`div`,{className:`mt-4 space-y-4`,children:e.items.map(e=>(0,u.jsx)(yc,{item:e,onProductClick:y,onTrackingClick:b},e.id))})]},e.id))})]}),(0,u.jsxs)(`div`,{className:`mt-8 grid grid-cols-1 gap-6 md:grid-cols-2`,children:[(0,u.jsxs)(`section`,{className:`rounded-lg border border-borderTertiary bg-white p-5 md:p-6`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Delivery details`}),(0,u.jsx)(`div`,{className:`mt-5`,children:Ff(`Shipping address`,s)}),c||l?(0,u.jsxs)(`div`,{className:`mt-6 grid grid-cols-1 gap-6 border-t border-borderTertiary pt-6 md:grid-cols-2`,children:[c?Ff(`Billing address`,c):null,l?(0,u.jsxs)(`section`,{"aria-label":`Payment method`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`font-semibold text-primary`,children:`Payment method`}),(0,u.jsx)(f,{className:`mt-3 text-sm text-primary`,children:l})]}):null]}):null]}),(0,u.jsxs)(`section`,{className:`rounded-lg bg-tertiaryActive p-5 md:p-6`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Order total`}),(0,u.jsx)(`dl`,{className:`mt-5 space-y-4`,children:d.map((e,t)=>(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-6 ${e.isEmphasized?`border-t border-borderTertiary pt-4`:``}`,children:[(0,u.jsx)(`dt`,{className:e.isEmphasized?`font-semibold text-primary`:`text-sm text-primary`,children:e.label}),(0,u.jsx)(`dd`,{className:`${e.isEmphasized?`font-semibold text-primary`:`text-sm text-primary`} ${e.tone===`accent`?`text-accent`:``}`,children:e.value})]},`${e.label}-${t}`))})]})]}),v?(0,u.jsx)(`div`,{className:`mt-8 flex justify-end`,children:(0,u.jsx)(O,{label:h,variant:`outline`,intent:`primary`,onClick:v})}):null]});exports.AccountAccessPanel=Iu,exports.AdminAuthStatusTemplate=cf,exports.AdminBackgroundJobTray=Oc,exports.AdminDashboardTemplate=ef,exports.AdminDataIssuesSourceTemplate=gf,exports.AdminDataReportTemplate=df,exports.AdminImportDataIssuesTemplate=Sf,exports.AdminImportDataReviewTemplate=Df,exports.AdminImportDataSourceTemplate=bf,exports.AdminPageTemplateShell=Kd,exports.AdminProductGuidesTemplate=jf,exports.AdminRegionSelector=Ro,exports.AdminSideNav=xc,exports.AdminUsersTemplate=af,exports.AnnouncementBar=$c,exports.ArticleBanner=Jl,exports.ArticleBannerContent=zs,exports.ArticleLandingPageTemplate=rd,exports.BpcsCartConfirmationTemplate=Ad,exports.BpcsCartSamplesTemplate=Fd,exports.BpcsCartShippingTemplate=Pd,exports.BrandNavBar=Vc,exports.Breadcrumbs=el,exports.BusinessInfoCard=ae,exports.Button=O,exports.CallToActionHero=dl,exports.CallToActionHeroContent=Bs,exports.CarouselArrowControls=ws,exports.CarouselDots=Ts,exports.CartItemCard=ce,exports.CategoryPageTemplate=pd,exports.ClickableCard=K,exports.ColourMatchingChart=Qs,exports.ColumnBanner=vl,exports.ColumnCarouselCard=ko,exports.CommerceSyncPanel=ju,exports.ContentCarousel=Yl,exports.ContentContainer=z,exports.ContentGrid=B,exports.CountrySelector=Io,exports.CustomerAccountFavoritesTemplate=Mf,exports.CustomerAccountOrderDetailTemplate=If,exports.CustomerAccountOrderHistoryTemplate=Pf,exports.CustomerAccountSettingsTemplate=Nf,exports.CustomerAccountShell=Lu,exports.CustomerAddressCard=hc,exports.DataReportCollection=vu,exports.DecorSummaryCard=ge,exports.DecorSummaryCollection=yu,exports.DocumentLinkCard=Ks,exports.DropdownFilter=xs,exports.DynamicForm=ls,exports.EcommCartConfirmationTemplate=Ld,exports.EcommCartPaymentTemplate=Bd,exports.EcommCartShippingTemplate=Vd,exports.EcommCartSummaryTemplate=Gd,exports.EmbeddedVideo=P,exports.EmbeddedVideoCard=Gs,exports.FaqCard=qs,exports.FaqCardCollection=iu,exports.FeatureCard=Ao,exports.FeatureCardCollection=Sl,exports.FeaturedArticleBanner=fl,exports.FeaturedArticleBannerContent=Vs,exports.FeaturedProductCard=jo,exports.FeaturedProductsCarousel=nu,exports.FilterBar=ys,exports.FilterBarButton=bs,exports.FlowRow=U,exports.Footer=sl,exports.FormicaText=f,exports.GalleryTemplate=hd,exports.Icon=g,exports.Image=j,exports.ImageCard=Xl,exports.ImageOverlayCard=Ws,exports.ImageOverlayGrid=su,exports.InfoCard=Js,exports.LocalizationMarketCollection=uu,exports.LocalizationStatusCard=dc,exports.LocationCard=Fo,exports.LocationCardCollection=lu,exports.LocationMap=Eu,exports.LoginTemplate=Sd,exports.MarketReadinessBrowseTemplate=lf,exports.MarketReadinessItemSkuSection=vs,exports.MarketReadinessRangeSelector=zo,exports.MarketReadinessRangeTemplate=uf,exports.MarketReadinessSampleCard=fe,exports.MarketReadinessSkuCard=me,exports.MarketReadinessStatusDots=ue,exports.MarketReadinessTemplate=$d,exports.MarketReadinessVariantOptions=Bo,exports.Modal=Ac,exports.MoreInfoHighlightsCard=Ys,exports.MoreInfoHighlightsCollection=Cl,exports.OrderDetailHeaderCard=_c,exports.OrderItemDetailCard=yc,exports.ProResourceTemplate=_d,exports.ProductContactActions=le,exports.ProductDetailPageTemplate=td,exports.QuantityCheckoutCard=ec,exports.RangeSummaryCard=Me,exports.RangeSummaryCollection=bu,exports.RecentArticleCard=cc,exports.RecentArticleCollection=ru,exports.ResilientImage=I,exports.SalesforceCartShippingTemplate=Id,exports.SalesforceCustomerDetailsForm=Tl,exports.SampleOrderSummaryPanel=wl,exports.SearchCombobox=Uo,exports.SearchFilter=Cs,exports.SearchResultsTemplate=xd,exports.SingleButtonCard=lc,exports.SocialLinkRow=Us,exports.Spinner=v,exports.StandardBannerContainer=ll,exports.StandardCarousel=Is,exports.StandardCopyBannerContent=Hs,exports.StandardCopyHero=ql,exports.SwatchCard=mc,exports.SwatchPurchasePanel=Kl,exports.TextCard=eu,exports.Textarea=L,exports.TopNavAccountDrawer=Yc,exports.TopNavActions=Kc,exports.TopNavBar=Qc,exports.TopNavMegaMenu=Hc,exports.TopNavSearchResults=Wc,exports.VerticalCheckboxListCollection=Nu,exports.VerticalColorSwatchList=Rs,exports.WarrantyCard=tu,exports.WhereToBuySearchBanner=ul,exports.WhereToBuyTemplate=wd,exports.userTypeOptions=Pu;
610
+ `,Xc=({isOpen:e,customerName:t,title:n=`Account`,orderHistoryLabel:r=`Order History`,favoritesLabel:i=`Favorites`,profileLabel:a=`Profile & Addresses`,logoutLabel:o=`Log Out`,onClose:s,onOrderHistoryClick:l,onFavoritesClick:p,onProfileClick:m,onLogoutClick:h})=>{let[_,v]=(0,c.useState)(e),[y,b]=(0,c.useState)(e?`opening`:`open`);if((0,c.useEffect)(()=>{let t;return e?(v(!0),b(`opening`)):_&&(b(`closing`),t=window.setTimeout(()=>v(!1),Jc)),()=>window.clearTimeout(t)},[e,_]),(0,c.useEffect)(()=>{if(!_)return;let e=document.body.style.overflow,t=document.body.style.paddingRight,n=window.innerWidth-document.documentElement.clientWidth,r=e=>{e.key===`Escape`&&s()};if(n>0){let e=Number.parseFloat(window.getComputedStyle(document.body).paddingRight);document.body.style.paddingRight=`${e+n}px`}return document.body.style.overflow=`hidden`,document.addEventListener(`keydown`,r),()=>{document.body.style.overflow=e,document.body.style.paddingRight=t,document.removeEventListener(`keydown`,r)}},[s,_]),!_||typeof document>`u`)return null;let x=e=>{e?.(),s()};return(0,d.createPortal)((0,u.jsxs)(`div`,{className:`fixed inset-0 z-60 ${e?``:`pointer-events-none`}`,children:[(0,u.jsx)(`style`,{children:Yc}),(0,u.jsx)(`button`,{type:`button`,"aria-label":`Close account overlay`,"data-phase":y,className:`top-nav-account-drawer-backdrop absolute inset-0 bg-black/40`,onClick:s}),(0,u.jsxs)(`aside`,{role:`dialog`,"aria-modal":`true`,"aria-labelledby":`top-nav-account-title`,"data-phase":y,className:`top-nav-account-drawer-panel fixed inset-y-0 right-0 z-10 flex h-dvh w-full max-w-md flex-col bg-secondary shadow-xl will-change-transform`,onAnimationEnd:e=>{e.target===e.currentTarget&&(y===`opening`?b(`open`):y===`closing`&&v(!1))},children:[(0,u.jsxs)(`header`,{className:`flex items-start justify-between gap-4 border-b border-borderTertiary px-6 py-5`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,u.jsx)(`span`,{className:`flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-tertiaryActive text-primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`user`,alt:``,size:`lg`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(f,{id:`top-nav-account-title`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:n}),t?(0,u.jsx)(f,{className:`mt-1 truncate text-sm text-secondaryActive`,children:t}):null]})]}),(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`xmark`,iconAlt:``,variant:`ghost`,intent:`primary`,"aria-label":`Close account menu`,onClick:s})]}),(0,u.jsx)(`nav`,{"aria-label":`Account sections`,className:`flex-1 px-4 py-4`,children:(0,u.jsxs)(`div`,{className:`flex flex-col`,children:[(0,u.jsx)(O,{label:r,iconType:`fa-solid`,iconName:`receipt`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`primary`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>x(l)}),(0,u.jsx)(O,{label:i,iconType:`fa-regular`,iconName:`heart`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`primary`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>x(p)}),(0,u.jsx)(O,{label:a,iconType:`fa-solid`,iconName:`address-card`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`primary`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>x(m)})]})}),(0,u.jsx)(`footer`,{className:`border-t border-borderTertiary px-4 py-5`,children:(0,u.jsx)(O,{label:o,iconType:`fa-solid`,iconName:`arrow-right-from-bracket`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`danger`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>x(h)})})]})]}),document.body)},Zc=`__mobile-menu-open__`,Qc=300,$c=({NavMenuWithSubItems:e=[],countries:t,selectedCountry:n,Login:r,Account:i,Cart:a,showCart:o=!0,showFavorites:s=!0,showLogin:l=!0,Logo:d,searchResultItems:f,searchViewAllLabel:p,onLogoClick:m,onNavItemClick:h,onMegaMenuLinkClick:g,onSearchClick:_,onSearchChange:v,onSearchSubmit:y,onSearchResultClick:b,onSearchViewAllClick:x,onCartClick:S,onLoginClick:C,onAccountClick:w,onOrderHistoryClick:T,onProfileClick:E,onLogoutClick:D,onFavoritesClick:k,onCountrySelect:A})=>{let M=(0,c.useRef)(null),[N,P]=(0,c.useState)(null),[F,I]=(0,c.useState)(null),[L,R]=(0,c.useState)(!1),[ee,te]=(0,c.useState)(!1),[ne,z]=(0,c.useState)(``),re=(0,c.useRef)(!1),ie=F!==null,B=e.find(e=>e.id===N),V=t??[],H=r??{label:`Log In`,href:`/login`},U={hasCart:a?.hasCart??!1,itemCount:a?.itemCount??0},W=i??{loggedIn:H.loggedIn??!1},G=()=>{R(!0),w?.()},ae=`Formica`,oe=d?.src??ae,se=Ae(oe),ce=Me(ae)??``,le=Me(oe,ce)??ce,ue=d?.alt??`${oe} Logo`,K=se===`broadview`?`w-36 md:w-44`:`w-24`,de=se===`broadview`?`h-12 md:h-14`:`h-7 md:h-10`,fe=d?.containerClassName??K,pe=d?.className??de;(0,c.useEffect)(()=>{if(!N)return;let e=e=>{M.current?.contains(e.target)||P(null)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[N]),(0,c.useEffect)(()=>{if(!re.current)return;let e=window.setTimeout(()=>{v?.({query:ne})},Qc);return()=>window.clearTimeout(e)},[ne,v]);let me=()=>{te(!0),_?.()},he=()=>{te(!1)},ge=()=>{let e=ne.trim();e&&y?.({query:e})},_e=e=>{b?.(e),he()},ve=()=>{x?.({query:ne.trim()}),he()},ye=()=>{I(null)},be=(e,t={})=>{t.closeMobile&&ye(),P(null),h?.(e)},xe=(e,t)=>{if(e.subcategories?.length&&!e.href){P(N===t?null:t);return}be(e)},Se=(e,t={})=>{P(null),t.closeMobile&&ye(),g?.(e)},Ce=e=>{I(t=>t===e?Zc:e)};return(0,u.jsxs)(`header`,{ref:M,className:[`sticky top-0 z-50 w-full bg-white`,`shadow-[0_18px_45px_-18px_rgba(0,0,0,0.45)]`,`md:z-30`].join(` `),children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between px-4 py-3 md:hidden`,children:[(0,u.jsx)(O,{variant:`ghost`,className:`p-0 bg-transparent shadow-none border-0 ${fe} hover:bg-secondary`,onClick:m,"aria-label":`Go to home page`,children:(0,u.jsx)(j,{src:le,alt:``,className:pe,quality:90})}),(0,u.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,u.jsx)(O,{variant:`ghost`,iconType:`fa-solid`,iconName:`magnifying-glass`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":`Search`,"aria-haspopup":`dialog`,"aria-expanded":ee,onClick:me}),o?(0,u.jsx)(O,{variant:`ghost`,iconType:`fa-solid`,iconName:`cart-shopping`,iconSize:`lg`,className:`relative h-9 w-9 p-0`,"aria-label":`Cart${U.itemCount?` (${U.itemCount})`:``}`,onClick:S,children:U.itemCount?(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-accent px-1 text-[10px] font-bold leading-none text-secondary`,children:U.itemCount}):null}):null,l&&W.loggedIn?(0,u.jsx)(O,{variant:`ghost`,iconType:`fa-solid`,iconName:`user`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":`Open account menu`,"aria-haspopup":`dialog`,onClick:G}):null,(0,u.jsx)(O,{variant:`ghost`,iconType:`fa-solid`,iconName:ie?`xmark`:`bars`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":ie?`Close menu`:`Open menu`,onClick:()=>{I(e=>e===null?Zc:null)},"aria-expanded":ie})]})]}),ie?(0,u.jsxs)(`nav`,{className:`border-t border-gray-200 px-3 py-2 md:hidden`,children:[e.map(e=>{let t=e.id,n=!!e.subcategories?.length,r=F===t;return n?(0,u.jsxs)(`div`,{className:`border-b border-gray-200`,children:[(0,u.jsx)(O,{variant:`link`,label:e.label,className:`w-full min-w-0 px-0 py-3 text-left whitespace-normal break-words`,buttonAlignment:`justify-start`,onClick:()=>Ce(t),"aria-expanded":r}),r?(0,u.jsx)(`div`,{className:`pb-3 pl-2`,children:e.subcategories?.map(e=>(0,u.jsxs)(`div`,{className:`py-2`,children:[(0,u.jsx)(`div`,{className:`text-sm font-bold text-primary whitespace-normal break-words`,children:e.label}),(0,u.jsx)(`div`,{className:`mt-2 ml-2 flex w-full min-w-0 flex-col items-start gap-2`,children:e.items?.map(e=>(0,u.jsx)(O,{variant:`link`,label:e.label,className:`w-full min-w-0 px-0 py-1 text-left whitespace-normal break-words`,buttonAlignment:`justify-start`,onClick:()=>Se(e,{closeMobile:!0})},e.id))})]},e.id))}):null]},t):(0,u.jsx)(O,{variant:`link`,label:e.label,className:`w-full min-w-0 px-0 py-3 text-left whitespace-normal break-words`,buttonAlignment:`justify-start`,onClick:()=>be(e,{closeMobile:!0})},t)}),l&&!W.loggedIn?(0,u.jsx)(`div`,{className:`border-t border-gray-200 pt-2`,children:(0,u.jsx)(O,{variant:`link`,label:H.label,className:`w-full min-w-0 px-0 py-3 text-left`,buttonAlignment:`justify-start`,onClick:()=>{ye(),C?.()}})}):null]}):null,(0,u.jsxs)(`div`,{className:`hidden items-center justify-between md:flex md:px-8`,children:[(0,u.jsx)(O,{variant:`ghost`,className:`p-0 bg-transparent shadow-none border-0 ${fe} hover:bg-secondary!`,onClick:m,"aria-label":`Go to home page`,children:(0,u.jsx)(j,{src:le,alt:ue,className:pe,quality:90})}),(0,u.jsxs)(`div`,{className:`flex items-center space-x-3`,children:[(0,u.jsx)(`nav`,{className:`flex space-x-5 p-3`,children:e.map(e=>{let t=e.id;return(0,u.jsx)(O,{variant:`link`,label:e.label,onClick:()=>xe(e,t),active:N===t},t)})}),(0,u.jsx)(qc,{Countries:V,selectedCountry:n,Login:H,Account:W,Cart:U,showCart:o,showFavorites:s,showLogin:l,searchResultItems:f,searchViewAllLabel:p,onSearchClick:_,onSearchChange:v,onSearchSubmit:y,onSearchResultClick:b,onSearchViewAllClick:x,onCartClick:S,onLoginClick:C,onAccountClick:G,onFavoritesClick:k,onCountrySelect:A})]})]}),(0,u.jsx)(`div`,{className:[`absolute inset-x-0 top-full z-20 origin-top bg-white`,`hidden md:block`,`shadow-[0_4px_6px_-4px_rgba(0,0,0,0.2)]`,`transition-transform duration-300 ease-out border-t border-borderTertiary`,N?`scale-y-100`:`scale-y-0`].join(` `),children:(0,u.jsx)(`div`,{className:`px-8`,children:(0,u.jsx)(`div`,{className:`max-w-screen-xl mx-auto`,children:(0,u.jsx)(Uc,{activeItem:B,onMegaMenuLinkClick:Se})})})}),(0,u.jsx)(Xc,{...W,isOpen:L,onClose:()=>R(!1),onOrderHistoryClick:T,onFavoritesClick:k,onProfileClick:E,onLogoutClick:D??C}),(0,u.jsx)(`div`,{className:`md:hidden`,children:(0,u.jsx)(jc,{open:ee,title:`Search`,closeLabel:`Close search`,size:`sm`,onClose:he,children:(0,u.jsxs)(`div`,{className:`space-y-4`,children:[(0,u.jsx)(Uo,{id:`top-nav-mobile-search`,ariaLabel:`Search`,value:ne,placeholder:`Search`,controlSize:`default`,autoComplete:`off`,autoFocus:!0,onChange:e=>{re.current=!0,z(e.target.value)},onSearchSubmit:ge}),(0,u.jsx)(Gc,{id:`top-nav-mobile-search-results`,items:f,viewAllLabel:p,layoutVariant:`contained`,onResultClick:_e,onViewAllClick:ve})]})})})]})},el=({message:e,buttonLabel:t,onButtonClick:n,children:r})=>{let i=e?.trim();return i?(0,u.jsx)(`div`,{className:`w-full bg-primary`,children:(0,u.jsxs)(`div`,{className:`mx-auto flex min-h-14 max-w-6xl flex-col items-center justify-center gap-3 px-4 py-3 text-center md:flex-row md:justify-center md:gap-5 md:py-2`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold leading-5 text-secondary`,children:i}),r?(0,u.jsx)(`div`,{className:`shrink-0`,children:r}):null,!r&&t?(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(O,{label:t,size:`sm`,variant:`solid`,intent:`accent`,onClick:n,className:`border-2 border-white`})}):null]})}):null},tl=({Breadcrumbs:e=[],onBreadcrumbClick:t})=>{if(!e.length)return null;let n=e.at(-1),r=e.slice(0,-1),i=(e,n)=>{!t||!n.href||(e.preventDefault(),t(n.href,n))};return(0,u.jsx)(`section`,{className:`w-full flex justify-center`,children:(0,u.jsx)(`div`,{className:`w-full max-w-6xl px-4 md:px-0`,children:(0,u.jsx)(`nav`,{"aria-label":`Breadcrumbs`,className:`md:mt-4`,children:(0,u.jsxs)(`ol`,{className:`flex items-center gap-2`,children:[r.map(e=>(0,u.jsxs)(`li`,{className:`flex items-center gap-2`,children:[e.href?(0,u.jsx)(f,{as:`a`,href:e.href,variant:`breadcrumb`,className:`text-sm md:text-base`,onClick:t=>i(t,e),children:e.label}):(0,u.jsx)(f,{as:`span`,variant:`breadcrumb`,className:`text-sm md:text-base`,children:e.label}),(0,u.jsx)(`span`,{"aria-hidden":`true`,children:`/`})]},e.id)),n&&(0,u.jsx)(`li`,{children:(0,u.jsx)(f,{as:`span`,variant:`nav`,className:`text-sm md:text-base`,"aria-current":`page`,children:n.label})},n.id)]})})})})},nl=({img:e,size:t=`default`})=>{let n={default:`h-10 w-auto`,primary:`h-24 w-auto mb-3`,parent:`h-10 w-auto opacity-95`,affiliate:`h-5 w-auto opacity-90 hover:opacity-100 transition`}[t],r=Rc(e.src),i=Rc(e.alt),a=e.label?Rc(e.label):``,o=e.alt===void 0||e.alt===null?a:i,s=je(r,je(a||i))??``;if(!s)return null;let c=(0,u.jsx)(j,{src:s,alt:o,className:n,loading:`lazy`,decoding:`async`,quality:90}),l=zc(e.href);if(!l)return c;let d=Bc(e.href,e.target)??`_self`;return(0,u.jsx)(`a`,{href:l,target:d,rel:Vc(e.href,e.rel)??(d===`_blank`?`noreferrer noopener`:void 0),className:`inline-flex`,children:c})},rl=({primaryLogo:e,phoneLine:t,socials:n=[]})=>{let r=t?Rc(t):``;return(0,u.jsxs)(`div`,{className:`space-y-6`,children:[(0,u.jsx)(nl,{img:e,size:`primary`}),r?(0,u.jsx)(f,{variant:`body`,className:`text-sm font-light text-secondary`,children:r}):null,n.length?(0,u.jsx)(`div`,{className:`flex items-center gap-3 pt-3`,children:n.map(e=>{let t=Rc(e.label),n=zc(e.href),r=e.iconSrc?Rc(e.iconSrc):``;return n?(0,u.jsxs)(`a`,{href:n,"aria-label":t,target:`_blank`,rel:`noreferrer noopener`,className:`w-9 h-9 inline-flex items-center justify-center rounded-full bg-white text-black hover:bg-white/90 transition-colors`,children:[r?(0,u.jsx)(`img`,{src:r,alt:t,className:`w-4 h-4`}):null,!r&&e.faIcon?(0,u.jsx)(wo,{icon:e.faIcon,className:`w-4 h-4 text-black`}):null]},`${t}-${n}`):null})}):null]})},il=({item:e,variant:t=`default`})=>{let n={default:`text-xs mt-4 text-secondary/85 hover:underline`,mobile:`text-sm text-secondary hover:underline`,legal:`text-white/80 hover:text-white hover:underline text-xs`}[t],r=Rc(e.label),i=zc(e.href),a=Bc(e.href,e.target)??`_self`,o=Vc(e.href,e.rel)??(a===`_blank`?`noreferrer noopener`:void 0);return i?(0,u.jsx)(f,{as:`a`,href:i,target:a,rel:o,variant:`body`,className:n,children:r}):(0,u.jsx)(f,{variant:`body`,className:n,children:r})},al=({columns:e})=>(0,u.jsx)(`div`,{className:`w-fit`,children:(0,u.jsx)(`div`,{className:`grid grid-cols-3 gap-y-8 gap-x-20`,children:e.map((e,t)=>{let n=Rc(e.heading);return(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`body`,className:`font-semibold mb-4 text-sm text-secondary`,children:n}),(0,u.jsx)(`ul`,{className:`space-y-2`,children:e.links.map((e,t)=>(0,u.jsx)(`li`,{children:(0,u.jsx)(il,{item:e})},`${n}-${Rc(e.label)}-${t}`))})]},`${n}-${t}`)})})}),ol=({links:e=[],utilityLink:t,disclaimerLines:n=[],copyrightLine:r})=>{let i=r?Rc(r):``,a=n.length||i;return(0,u.jsxs)(`div`,{className:`border-t border-white/15 mt-4 pt-2 space-y-4`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-5 gap-y-2`,children:[e.map((e,t)=>(0,u.jsx)(il,{item:e,variant:`legal`},`${Rc(e.label)}-${t}`)),t?(0,u.jsx)(`div`,{className:`ml-auto`,children:(0,u.jsx)(il,{item:t,variant:`legal`})}):null]}),a?(0,u.jsxs)(`div`,{className:`space-y-2 mt-10`,children:[n.map((e,t)=>(0,u.jsx)(f,{variant:`standard`,className:`text-white/70 text-xs leading-relaxed`,children:Rc(e)},t)),i?(0,u.jsx)(f,{variant:`standard`,className:`text-white/70 text-xs leading-relaxed`,children:i}):null]}):null]})},sl=({affiliateLogos:e=[],parentLogo:t,phoneLine:n})=>{let r=n?Rc(n):``;if(!e.length&&!t&&!r)return null;let i=t?(0,u.jsx)(`div`,{className:`ml-6 shrink-0`,children:(0,u.jsx)(nl,{img:t,size:`parent`})}):null,a=!i&&r?(0,u.jsx)(f,{variant:`body`,className:`ml-6 shrink-0 text-sm font-light text-secondary`,children:r}):null;return(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsxs)(`div`,{className:`flex flex-row items-center justify-between gap-6`,children:[(0,u.jsx)(`div`,{className:`flex flex-wrap items-center gap-x-6 gap-y-3`,children:e.map((e,t)=>(0,u.jsx)(nl,{img:e,size:`affiliate`},`${e.label?Rc(e.label):``}|${Rc(e.alt)}|${zc(e.href)}|${Rc(e.src)}|${t}`))}),i,a]})})},cl=({brand:e,columns:t,parentLogo:n,phoneLinePlacement:r=`brand`,legal:i})=>{let a=r===`logosBar`;return(0,u.jsx)(`footer`,{className:`bg-footBackground text-secondary pt-6`,children:(0,u.jsxs)(`div`,{className:`max-w-screen-xl mx-auto px-4 py-8 md:px-6 md:py-10`,children:[(0,u.jsxs)(`div`,{className:`grid gap-8 md:grid-cols-12 md:gap-10`,children:[(0,u.jsx)(`div`,{className:`md:col-span-4`,children:(0,u.jsx)(rl,{...a?{...e,phoneLine:void 0}:e})}),(0,u.jsxs)(`div`,{className:`hidden md:col-span-8 md:block`,children:[(0,u.jsx)(`div`,{className:`flex justify-end`,children:(0,u.jsx)(al,{columns:t})}),(0,u.jsx)(`div`,{className:`block col-span-3`})]}),(0,u.jsx)(`div`,{className:`space-y-2 md:hidden`,children:t.map((e,t)=>{let n=Rc(e.heading);return(0,u.jsxs)(`details`,{className:`border-t border-white/20 py-3`,children:[(0,u.jsx)(`summary`,{className:`cursor-pointer list-none text-sm font-semibold text-secondary`,children:n}),(0,u.jsx)(`ul`,{className:`mt-3 space-y-2`,children:e.links.map((e,t)=>(0,u.jsx)(`li`,{children:(0,u.jsx)(il,{item:e,variant:`mobile`})},`${n}-${Rc(e.label)}-${t}`))})]},`${n}-${t}`)})})]}),(0,u.jsx)(sl,{affiliateLogos:e.affiliateLogos,parentLogo:n,phoneLine:a?e.phoneLine:void 0}),(0,u.jsx)(ol,{...i})]})})},ll=(...e)=>e.filter(Boolean).join(` `),ul=({imageSrc:e,imageAlt:t=`Banner image`,children:n,sectionClassName:r=`w-full flex justify-center`,bannerClassName:i=`relative h-80 md:h-119.25 w-full max-w-6xl overflow-hidden`,imageClassName:a=`h-full w-full object-cover`,overlayClassName:o=`absolute inset-0 flex`,imageQuality:s=90})=>{let c=e?.trim()?e:`https://picsum.photos/1600/900`;return(0,u.jsx)(`section`,{className:r,children:(0,u.jsxs)(`div`,{className:ll(`relative`,i),children:[(0,u.jsx)(j,{src:c,alt:t,className:a,quality:s}),(0,u.jsx)(`div`,{className:o,children:n})]})})},dl=({imageSrc:e,imageAlt:t=`Where to buy`,heading:n,productDropdownProps:r,searchInputProps:i,searchButtonLabel:a=`Search`,onProductChange:o,onSearchSubmit:s})=>{let l=!!r?.options?.length,[d,p]=c.default.useState(r?.value??``),[m,h]=c.default.useState(i.value??``);c.default.useEffect(()=>{p(r?.value??``)},[r?.value]),c.default.useEffect(()=>{h(i.value??``)},[i.value]);let g=e=>{let t=e.target.value;p(t),o?.({productValue:t})};return(0,u.jsx)(ul,{imageSrc:e,imageAlt:t,bannerClassName:`relative h-80 w-full overflow-hidden md:h-96`,overlayClassName:`absolute inset-0 flex items-center bg-black/35`,imageClassName:`h-full w-full object-cover`,children:(0,u.jsxs)(`div`,{className:`mx-auto flex w-full max-w-6xl flex-col items-center px-4 md:px-0`,children:[(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`mb-8 text-center font-rockwell text-4xl text-white md:text-5xl`,children:n}),(0,u.jsxs)(`form`,{className:`flex w-full max-w-3xl flex-col gap-3 md:flex-row md:items-center`,onSubmit:e=>{e.preventDefault(),s?.({productValue:d,searchValue:m.trim()})},children:[l&&r?(0,u.jsx)(`div`,{className:`w-full md:w-56`,children:(0,u.jsx)(Q,{...r,value:d,onChange:g})}):null,(0,u.jsx)(`div`,{className:`w-full md:flex-1`,children:(0,u.jsx)(Uo,{...i,value:m,onChange:e=>h(e.target.value)})}),(0,u.jsx)(O,{type:`submit`,variant:`solid`,intent:`accent`,size:`sm`,label:a,className:`w-full md:w-auto`})]})]})})},fl=({imageSrc:e,imageAlt:t=`Call To Action Hero`,heading:n,subheading:r,body:i,eyebrow:a,ctas:o=[]})=>(0,u.jsx)(ul,{imageSrc:e,imageAlt:t,sectionClassName:`w-full`,bannerClassName:`h-112 md:h-190 w-full overflow-hidden mb-12 md:mb-20`,overlayClassName:`absolute inset-0 flex items-center inset-shadow-[0px_-150px_70px_-50px_rgba(0,0,0,.50)]`,children:(0,u.jsx)(Vs,{heading:n,subheading:r,body:i,eyebrow:a,ctas:o})}),pl=({imageSrc:e,imageAlt:t=`Featured article banner`,heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})=>(0,u.jsx)(ul,{imageSrc:e,imageAlt:t,sectionClassName:`px-4 md:px-0 md:mx-auto mb-16 md:mb-20 flex w-full max-w-6xl`,bannerClassName:`aspect-5/6 md:aspect-video w-full flex flex-col overflow-hidden rounded-lg`,imageClassName:`h-full w-full rounded-lg object-cover`,overlayClassName:`md:absolute md:inset-0 flex items-center md:rounded-lg md:inset-shadow-[0px_-150px_70px_-50px_rgba(0,0,0,.50)]`,children:(0,u.jsx)(Hs,{heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})}),ml=({items:e,value:t,onChange:n,renderTab:r,className:i=``,durationMs:a=700,thicknessClassName:o=`h-[3px]`,baselineClassName:s=`h-px`})=>{let l=(0,c.useRef)(null),d=(0,c.useRef)([]),[f,p]=(0,c.useState)({left:0,width:0}),m=(0,c.useMemo)(()=>Math.max(0,e.findIndex(e=>(e.value??e.label)===t)),[e,t]),h=()=>{let e=l.current,t=d.current[m];if(!e||!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();p({left:r.left-n.left,width:r.width})};return(0,c.useLayoutEffect)(()=>{h();let e=new ResizeObserver(()=>h());l.current&&e.observe(l.current),window.addEventListener(`resize`,h);let t=requestAnimationFrame(h);return()=>{e.disconnect(),window.removeEventListener(`resize`,h),cancelAnimationFrame(t)}},[m,e.length]),(0,u.jsx)(`div`,{className:[`w-full`,i].join(` `),children:(0,u.jsxs)(`div`,{ref:l,className:`relative grid items-center`,style:{gridTemplateColumns:`repeat(${e.length}, minmax(0, 1fr))`},children:[e.map((e,t)=>{let i=t===m;return(0,u.jsx)(`div`,{ref:e=>{d.current[t]=e},className:`flex justify-center mb-1 md:mb-3 w-full`,children:r?r({item:e,isActive:i,onTabClick:()=>!e.disabled&&n(e.value??e.label)}):(0,u.jsx)(`button`,{type:`button`,disabled:e.disabled,onClick:()=>n(e.value??e.label),className:[`px-3 py-2 text-sm`,`transition-opacity`,i?`opacity-100 font-medium`:`opacity-60 hover:opacity-90`,e.disabled?`cursor-not-allowed opacity-30`:`cursor-pointer`].join(` `),children:e.label})},e.label)}),(0,u.jsx)(`div`,{className:[`absolute left-0 right-0 bottom-0`,s,`bg-black/60`].join(` `)}),(0,u.jsx)(`div`,{className:[`absolute bottom-0`,o,`bg-black`,`will-change-transform`].join(` `),style:{width:`${f.width}px`,transform:`translateX(${f.left}px)`,transitionProperty:`transform, width`,transitionDuration:`${a}ms`,transitionTimingFunction:`cubic-bezier(0.22, 1, 0.36, 1)`}})]})})},hl=e=>e.id||e.href||e.label,gl=({items:e,startIndex:t,desktopVisibleCount:n=e.length,activeIndex:r,setActiveIndex:i,canPrev:a,canNext:o,onPrev:s,onNext:c,loadedIds:l,favoriteIds:d,showFavorites:f=!0,onLoaded:p,onToggleFav:m,onItemClick:h,getItemId:g=hl})=>e.length?(0,u.jsxs)(`div`,{className:`mt-4 relative`,children:[(0,u.jsx)(`button`,{type:`button`,onClick:s,disabled:!a,className:[`absolute left-[-48px] top-1/2 hidden -translate-y-1/2`,`h-10 w-10 rounded-full md:grid place-items-center`,`transition-opacity`,a?`opacity-100`:`opacity-30 cursor-not-allowed`].join(` `),"aria-label":`Previous`,children:(0,u.jsx)(wo,{icon:Oo,className:`text-2xl`})}),(0,u.jsx)(`button`,{type:`button`,onClick:c,disabled:!o,className:[`absolute right-[-48px] top-1/2 hidden -translate-y-1/2`,`h-10 w-10 rounded-full md:grid place-items-center`,`transition-opacity`,o?`opacity-100`:`opacity-30 cursor-not-allowed`].join(` `),"aria-label":`Next`,children:(0,u.jsx)(wo,{icon:Eo,className:`text-2xl`})}),(0,u.jsx)(`div`,{className:`flex flex-col md:flex-row w-full justify-center items-stretch md:items-center gap-5 overflow-hidden`,onMouseLeave:()=>i(null),children:e.map((e,a)=>{let o=a>=t&&a<t+n,s=r===a,c=r===null||s,_=r!==null&&s?7:1,v=g(e);return(0,u.jsx)(`div`,{"data-testid":`column-carousel-item-${v}`,className:[`w-full md:min-w-0 md:flex-[var(--column-carousel-flex)] md:transition-[flex-grow] md:duration-700 md:ease-in-out`,o?``:`md:hidden`].join(` `),style:{"--column-carousel-flex":`${_} 1 0`},children:(0,u.jsx)(Ao,{id:v,item:e,absoluteIdx:a,isActive:s,showLabel:c,grow:_,isLoaded:l.has(v),isFav:d.has(v),showFavorites:f,setActiveIndex:i,onLoaded:p,onToggleFav:m,onItemClick:h})},v)})})]}):null,_l=4,vl=e=>{e.forEach(e=>{if(!e)return;let t=new window.Image;t.decoding=`async`,t.src=e})},yl=({heading:e,body:t,TabsWithColumns:n=[],favoriteIds:r=[],showFavorites:i=!0,onFavoriteToggle:a,onItemClick:o})=>{let[s,l]=(0,c.useState)(n?.[0]?.label??null);c.default.useEffect(()=>{if(!n?.length){l(null);return}n.some(e=>e.label===s)||l(n[0].label)},[n,s]);let d=(0,c.useMemo)(()=>n.map(e=>({label:e.label,disabled:!1})),[n]),p=(0,c.useMemo)(()=>n.find(e=>e.label===s),[n,s])?.columns?.[0]?.items??[],[m,h]=(0,c.useState)(0),[g,_]=(0,c.useState)(null);c.default.useEffect(()=>{h(0),_(null)},[s]);let v=m>0,y=m+_l<p.length,b=()=>h(e=>Math.max(0,e-1)),x=()=>h(e=>Math.min(Math.max(p.length-_l,0),e+1)),[S,C]=(0,c.useState)(new Set),w=e=>{C(t=>{if(t.has(e))return t;let n=new Set(t);return n.add(e),n})};c.default.useEffect(()=>{C(new Set)},[s]),c.default.useEffect(()=>{vl(p.slice(m,m+_l*2).map(e=>e.source).filter(Boolean))},[p,m]);let T=c.default.useMemo(()=>new Set(r),[r]);return(0,u.jsx)(`section`,{className:`flex justify-center`,children:(0,u.jsx)(`div`,{className:`max-w-6xl`,children:(0,u.jsxs)(`div`,{className:`flex flex-col mt-16 md:mt-32 mb-16 md:mb-30`,children:[e||t?(0,u.jsx)(`div`,{className:`flex flex-row mx-auto mb-7 px-4 md:px-0`,children:(0,u.jsxs)(`div`,{className:`mx-auto flex max-w-2xl flex-col text-center`,children:[e?(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`flex text-2xl md:text-4xl mb-4 justify-center-safe text-center`,children:e}):null,t?(0,u.jsx)(f,{variant:`body`,className:`flex justify-center-safe text-center text-sm md:mx-15`,children:t}):null]})}):null,(0,u.jsxs)(`div`,{className:`mx-auto w-full px-4 md:px-0`,children:[(0,u.jsx)(ml,{items:d,value:s??d[0]?.label??``,onChange:e=>l(e),className:`mb-2`,durationMs:700}),(0,u.jsx)(gl,{items:p,startIndex:m,desktopVisibleCount:_l,activeIndex:g,setActiveIndex:_,canPrev:v,canNext:y,onPrev:b,onNext:x,loadedIds:S,favoriteIds:T,showFavorites:i,onLoaded:w,onToggleFav:e=>{let t=e.id||e.href||e.label;a?.(e,!T.has(t))},onItemClick:o})]})]})})})},bl=e=>e===1?`md:grid-cols-1`:e===2?`md:grid-cols-2`:`md:grid-cols-3`,xl=(e,t)=>e===`vertical`&&t===2?`grid-cols-2`:e===`vertical`&&t===3?`grid-cols-3`:`grid-cols-1`,Sl=e=>e===`underBanner`?`mt-10 md:mt-16`:``,Cl=({title:e,body:t,cards:n=[],spacing:r=`default`,footerBlurb:i,footerButtonLabel:a,footerButtonHref:o,onFooterButtonClick:s})=>{if(!n.length&&!e&&!t&&!i&&!a)return null;let c=()=>{a&&s?.({buttonLabel:a,buttonHref:o})},l=bl(n.length),d=xl(n[0]?.cardStyle,n.length);return(0,u.jsx)(`section`,{className:`flex justify-center ${Sl(r)}`,children:(0,u.jsxs)(`div`,{className:`w-full max-w-6xl px-4 mb-16 md:mb-20 md:px-0`,children:[(e||t)&&(0,u.jsxs)(`div`,{className:`mx-auto max-w-md text-center mb-6 md:mb-12`,children:[e?(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-2xl md:text-4xl`,children:e}):null,t?(0,u.jsx)(f,{variant:`body`,className:`text-sm`,children:t}):null]}),(0,u.jsx)(`div`,{className:`grid ${d} gap-x-4 gap-y-6 ${l} md:gap-x-6 md:gap-y-12`,children:n.map((e,t)=>{let n=`${e.title??`card`}-${t}`;return(0,u.jsx)(jo,{...e},n)})}),(i||a)&&(0,u.jsxs)(`div`,{className:`mx-auto mt-8 flex max-w-md flex-col items-center text-center md:mt-12`,children:[i?(0,u.jsx)(f,{variant:`body`,className:`mb-4 text-sm`,children:i}):null,a?(0,u.jsx)(O,{variant:`outline`,intent:`muted`,label:a,onClick:c,className:`w-full md:w-80`}):null]})]})})},wl=({heading:e,body:t,cards:n,className:r=``})=>(0,u.jsx)(`section`,{className:`w-full bg-white ${r}`,children:(0,u.jsxs)(`div`,{className:`mx-auto max-w-6xl mb-16 md:mb-30 px-4 md:px-0`,children:[(0,u.jsxs)(`div`,{className:`mx-auto max-w-2xl text-left md:text-center`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-lg mb-4 md:mb-5 md:text-2xl font-Rockwell font-bold`,children:e}),t?(0,u.jsx)(f,{variant:`body`,className:`mx-auto max-w-xl leading-relaxed`,children:t}):null]}),(0,u.jsx)(`div`,{className:`mt-8 md:mt-12 grid grid-cols-2 md:grid-cols-4 gap-8 md:gap-x-10 md:gap-y-12`,children:n.map((e,t)=>(0,u.jsx)(Xs,{...e},`${e.title}-${t}`))})]})}),Tl=({title:e=`Sample Order Summary`,items:t,sampleCountLabel:n,note:r=`No payment is required for sample requests.`})=>{let i=n??`${t.length} ${t.length===1?`sample`:`samples`}`;return(0,u.jsxs)(`aside`,{className:`rounded-lg border border-secondaryActive bg-white p-6`,children:[(0,u.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-xl font-extrabold text-primary`,children:e}),(0,u.jsx)(f,{variant:`free`,className:`shrink-0 text-sm font-bold text-tertiary`,children:i})]}),(0,u.jsx)(`ol`,{className:`mt-4 flex flex-col`,children:t.map((e,n)=>{let r=n===t.length-1;return(0,u.jsxs)(`li`,{children:[(0,u.jsx)(tc,{imageSrc:e.imageSrc,imageAlt:e.imageAlt||e.title,title:e.title,brand:e.brand||``,decorNumber:e.decorNumber||``,quantity:e.quantity,isReadOnly:!0,showPricing:!1}),r?null:(0,u.jsx)(`div`,{className:`border-b border-secondaryHover`})]},e.id)})}),r?(0,u.jsx)(f,{variant:`free`,className:`mt-6 text-sm text-tertiary`,children:r}):null]})},$=({id:e,label:t,errorMessage:n,hasError:r=!1,linkText:i,linkHref:a,onLinkClick:o,...s})=>(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[t||i?(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[t?(0,u.jsxs)(f,{as:`label`,htmlFor:e,className:`text-sm ${r?`text-accent!`:`text-primary`}`,children:[r?null:`${t}`,r&&n?`${n}`:null]}):(0,u.jsx)(`span`,{}),i?(0,u.jsx)(f,{as:`a`,href:a||`#`,onClick:o,className:`text-xs text-secondaryActive underline underline-offset-2`,children:i}):null]}):null,(0,u.jsx)(Ho,{id:e,hasError:r,...s})]}),El=({title:e=`Personal & Project Information`,idPrefix:t=`salesforce-customer`,firstName:n=``,lastName:r=``,profession:i=``,companyName:a=``,projectType:o=``,projectSquareMetres:s=``,projectName:c=``,projectDetails:l=``,phoneNumber:d=``,email:p=``,confirmEmail:m=``,firstNamePlaceholder:h=`First Name*`,lastNamePlaceholder:g=`Last Name*`,professionPlaceholder:_=`Profession*`,companyNamePlaceholder:v=`Company Name*`,projectTypePlaceholder:y=`Project Type`,projectSquareMetresPlaceholder:b=`Project Square Metres`,projectNamePlaceholder:x=`Project Name`,projectDetailsPlaceholder:S=`Project Details`,phoneNumberPlaceholder:C=`Phone Number*`,emailPlaceholder:w=`Email*`,confirmEmailPlaceholder:T=`Confirm Email*`,professionOptions:E=[],projectTypeOptions:D=[],projectSquareMetresOptions:O=[],errors:k={},onFirstNameChange:A,onLastNameChange:j,onProfessionChange:M,onCompanyNameChange:N,onProjectTypeChange:P,onProjectSquareMetresChange:F,onProjectNameChange:I,onProjectDetailsChange:L,onPhoneNumberChange:ee,onEmailChange:te,onConfirmEmailChange:ne})=>(0,u.jsxs)(`section`,{className:`flex flex-col gap-6`,children:[(0,u.jsx)(f,{as:`h2`,variant:`bold`,className:`text-primary`,children:e}),(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2`,children:[(0,u.jsx)($,{id:`${t}-first-name`,name:`firstName`,placeholder:h,value:n,hasError:!!k.firstName,errorMessage:k.firstName,onChange:A}),(0,u.jsx)($,{id:`${t}-last-name`,name:`lastName`,placeholder:g,value:r,hasError:!!k.lastName,errorMessage:k.lastName,onChange:j}),(0,u.jsx)(Q,{id:`${t}-profession`,name:`profession`,placeholder:_,options:E,value:i,hasError:!!k.profession,variant:`field`,onChange:M}),(0,u.jsx)($,{id:`${t}-company-name`,name:`companyName`,placeholder:v,value:a,hasError:!!k.companyName,errorMessage:k.companyName,onChange:N}),(0,u.jsx)(Q,{id:`${t}-project-type`,name:`projectType`,placeholder:y,options:D,value:o,hasError:!!k.projectType,variant:`field`,onChange:P}),(0,u.jsx)(Q,{id:`${t}-project-square-metres`,name:`projectSquareMetres`,placeholder:b,options:O,value:s,hasError:!!k.projectSquareMetres,variant:`field`,onChange:F}),(0,u.jsx)(`div`,{className:`md:col-span-2`,children:(0,u.jsx)($,{id:`${t}-project-name`,name:`projectName`,placeholder:x,value:c,hasError:!!k.projectName,errorMessage:k.projectName,onChange:I})}),(0,u.jsx)(`div`,{className:`md:col-span-2`,children:(0,u.jsx)(R,{id:`${t}-project-details`,name:`projectDetails`,placeholder:S,value:l,rows:5,hasError:!!k.projectDetails,onChange:L})}),(0,u.jsx)($,{id:`${t}-phone-number`,name:`phoneNumber`,type:`tel`,placeholder:C,value:d,hasError:!!k.phoneNumber,errorMessage:k.phoneNumber,onChange:ee}),(0,u.jsx)($,{id:`${t}-email`,name:`email`,type:`email`,placeholder:w,value:p,hasError:!!k.email,errorMessage:k.email,onChange:te}),(0,u.jsx)(`div`,{className:`md:col-span-2`,children:(0,u.jsx)($,{id:`${t}-confirm-email`,name:`confirmEmail`,type:`email`,placeholder:T,value:m,hasError:!!k.confirmEmail,errorMessage:k.confirmEmail,onChange:ne})})]})]}),Dl=(e,t,n)=>Math.max(t,Math.min(n,e)),Ol=e=>[`h-12 w-12 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),kl=({initialQuantity:e=1,minQuantity:t=1,maxQuantity:n=99,onAddToWishlist:r,onAddToCart:i,onQuantityChange:a,wishlistLabel:o=`Add To Wishlist`,cartLabel:s=`Add to Cart`,decreaseQuantityLabel:l=`Decrease quantity`,increaseQuantityLabel:d=`Increase quantity`,showFavorites:p=!0,className:m=``})=>{let[h,g]=c.default.useState(()=>Dl(e,t,n));c.default.useEffect(()=>{g(Dl(e,t,n))},[e,t,n]);let _=e=>{let r=Dl(e,t,n);g(r),a?.(r)},v=()=>_(h-1),y=()=>_(h+1),b=h>t,x=h<n,S=()=>i(h),C=(0,u.jsxs)(`div`,{className:`flex shrink-0 items-stretch gap-3`,children:[(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":l,type:`button`,disabled:!b,onClick:v,className:Ol(b)}),(0,u.jsx)(`div`,{className:`flex min-w-10 items-center justify-center`,children:(0,u.jsx)(f,{as:`span`,variant:`free`,children:h})}),(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":d,type:`button`,disabled:!x,onClick:y,className:Ol(x)})]}),w=(0,u.jsx)(O,{type:`button`,intent:`accent`,onClick:S,className:`h-12 w-full justify-center`,children:(0,u.jsx)(f,{as:`span`,variant:`free`,children:s})});return(0,u.jsx)(`div`,{className:[`w-full`,m].join(` `),children:p?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`flex items-stretch gap-4`,children:[C,(0,u.jsx)(`div`,{className:`flex-1`,children:(0,u.jsx)(O,{iconName:`fa-heart`,iconType:`fa-solid`,label:o,type:`button`,intent:`ghost`,variant:`solid`,onClick:r,className:`h-12 w-full justify-center border-primary! text-primary! hover:text-accent!`})})]}),(0,u.jsx)(`div`,{className:`mt-4`,children:w})]}):(0,u.jsxs)(`div`,{"aria-label":`Cart actions`,className:`flex items-stretch gap-4`,children:[C,(0,u.jsx)(`div`,{className:`min-w-0 flex-1`,children:w})]})})},Al=({heading:e,items:t,value:n,onChange:r})=>{if(!t?.length)return null;let i=e=>{e.disabled||r(e.value,e)},a=(e,t)=>e===t?`text-primary! border-primary! border-2`:`border-secondaryHover! text-secondaryHover!`;return(0,u.jsxs)(`section`,{className:`w-full`,children:[!!e&&(0,u.jsx)(`div`,{className:`mb-3`,children:(0,u.jsx)(f,{as:`p`,variant:`eyebrow`,children:e})}),(0,u.jsx)(`div`,{className:`flex flex-wrap gap-3 items-start`,children:t.map(e=>(0,u.jsx)(O,{type:`button`,variant:`outline`,intent:`ghost`,size:`md`,disabled:!!e.disabled,onClick:()=>i(e),"aria-pressed":n===e.value,className:`px-3! py-2! text-sm! ${a(n,e.value)}`,children:(0,u.jsx)(f,{as:`span`,variant:`free`,children:e.label})},e.id))})]})},jl=e=>{let{title:t,decor:n,description:r,colourMatching:i,patternRepeat:a,onDownloadSwatch:o,onDownloadFullSheet:s,downloadSwatchLabel:c=`Download Swatch`,downloadFullSheetLabel:l=`Download Full Sheet`,tabs:d=[`Sample`,`Buy Now`],tabLabels:p,labels:m,activeTab:h,onTabChange:g,productOptions:_=[],gradeOptions:v=[],textureOptions:y=[],sizeOptions:b=[],selectedProduct:x,selectedGrade:S,selectedTexture:C,selectedSize:w,onQuantityChange:T,availabilityHref:E,availabilityLabel:D=`View full product availability and information`,notReturnableText:k=`This item is not returnable.`,returnPolicyHref:A,returnPolicyLabel:j=`View return policy`,onPurchaseInfoLinkClick:M,priceLabel:N,initialQuantity:P=1,minQuantity:F=1,maxQuantity:I=99,showCartActions:L=!0,showFavorites:R=!0,actionMode:ee=`cart`,contactActions:te,onAddToWishlist:ne,onAddToCart:z,onContactActionClick:re,mobileMediaSlot:ie}=e,B=d.map(e=>({label:p?.[e]??e,value:e})),V=ee===`cart`&&L&&B.length>0,H=ee===`contact`&&!!te,U=V&&B.length>1,W=e=>(t,n)=>{let r=`id`in n?String(n.id):null;(e.find(e=>e.value===t)??e.find(e=>e.id===r)??null)?.onOptionClick?.()},G=(e,t)=>n=>{e&&M&&(n.preventDefault(),M(e,t))};return(0,u.jsxs)(`div`,{className:[`w-full`,H?`md:relative md:aspect-square md:overflow-hidden`:``].join(` `),children:[(0,u.jsxs)(`div`,{className:[H?`md:max-h-[calc(100%-8rem)] md:overflow-y-auto md:pr-2`:``].join(` `),children:[n?(0,u.jsx)(f,{as:`p`,variant:`caption`,className:`mb-0 md:mb-1 text-lg!`,children:n}):null,t?(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`mb-2 text-2xl md:text-4xl`,children:t}):null,r?(0,u.jsx)(f,{as:`p`,variant:`body`,className:`mb-2 md:mb-3 text-md!`,children:r}):null,i?(0,u.jsx)(`div`,{className:`mb-3 md:mb-4`,children:(0,u.jsx)($s,{colourMatching:i})}):null,a?(0,u.jsxs)(f,{as:`p`,variant:`body`,className:`mb-4`,children:[m?.patternRepeat??`Pattern Repeat`,`: `,a]}):null,(0,u.jsxs)(`div`,{className:`flex gap-6 justify-start mb-4 md:mb-6`,children:[(0,u.jsx)(O,{label:c,iconName:`fa-download`,iconType:`fa-solid`,intent:`primary`,variant:`link`,onClick:o,className:`px-0! border-0! hover:text-accent! mr-4 md:mr-10`}),(0,u.jsx)(O,{label:l,iconName:`fa-download`,iconType:`fa-solid`,intent:`primary`,variant:`link`,onClick:s,className:`px-0! border-0! hover:text-accent!`})]}),ie?(0,u.jsx)(`div`,{className:`md:hidden mb-10`,children:ie}):null,U?(0,u.jsx)(`div`,{className:`mb-5`,children:(0,u.jsx)(ml,{items:B,value:h,onChange:g,renderTab:({item:e,isActive:t,onTabClick:n})=>(0,u.jsx)(`button`,{type:`button`,onClick:n,className:[`w-full py-2 text-md`,t?`opacity-100 font-medium`:`opacity-60 hover:opacity-90`].join(` `),children:e.label})})}):null,(0,u.jsxs)(`div`,{className:`md:mb-10`,children:[(0,u.jsxs)(`div`,{className:[`space-y-5`,V?`md:min-h-[32rem]`:``].join(` `),children:[V&&_.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(f,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.product??`Product`,`:`]}),(0,u.jsx)(Al,{items:_,value:x??void 0,onChange:W(_)})]}):null,V&&v.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(f,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.grade??`Grade`,`:`]}),(0,u.jsx)(Al,{items:v,value:S??void 0,onChange:W(v)})]}):null,V&&y.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(f,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.texture??`Texture`,`:`]}),(0,u.jsx)(Al,{items:y,value:C??void 0,onChange:W(y)})]}):null,V&&b.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(f,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.size??`Size`,`:`]}),(0,u.jsx)(Al,{items:b,value:w??void 0,onChange:W(b)})]}):null,V&&h===`Buy Now`?(0,u.jsxs)(`div`,{children:[E?(0,u.jsx)(f,{as:`a`,href:E,variant:`body`,className:`text-sm underline hover:text-accent`,onClick:G(E,{kind:`availability`}),children:D}):null,(0,u.jsxs)(`div`,{className:`hidden md:block text-sm md:mt-4`,children:[(0,u.jsxs)(`span`,{className:`opacity-80`,children:[k,` `]}),A?(0,u.jsx)(f,{as:`a`,href:A,variant:`body`,className:`underline hover:text-accent`,onClick:G(A,{kind:`returnPolicy`}),children:j}):null]})]}):null,V&&h===`Buy Now`&&N?(0,u.jsx)(f,{as:`p`,variant:`h3`,className:`mt-1`,children:N}):null]}),V?(0,u.jsx)(`div`,{children:(0,u.jsx)(kl,{initialQuantity:P,minQuantity:F,maxQuantity:I,showFavorites:R,wishlistLabel:m?.addToWishlist,decreaseQuantityLabel:m?.decreaseQuantity,increaseQuantityLabel:m?.increaseQuantity,onAddToWishlist:ne,onAddToCart:z??(()=>{}),onQuantityChange:T,cartLabel:h===`Sample`?m?.addSampleToCart??`Add Sample to Cart`:m?.addToCart})}):null,V&&h===`Buy Now`?(0,u.jsxs)(`div`,{className:`md:hidden text-sm pb-10`,children:[(0,u.jsxs)(`span`,{className:`opacity-80`,children:[k,` `]}),A?(0,u.jsx)(f,{as:`a`,href:A,variant:`body`,className:`underline hover:text-accent`,onClick:G(A,{kind:`returnPolicy`}),children:j}):null]}):null]})]}),H&&te?(0,u.jsx)(`div`,{className:`md:absolute md:inset-x-0 md:bottom-0`,children:(0,u.jsx)(ue,{actions:te,onActionClick:re})}):null]})},Ml=(e,t)=>Math.max(0,Math.min(e,t-1)),Nl=({items:e,initialIndex:t=0,loop:n=!0,showArrows:r=!0,arrowPosition:i=`sides`,onSelect:a,renderItem:o,className:s=``,trackClassName:l=``,ariaLabel:d=`Carousel`,header:f})=>{let p=e?.length??0,[m,h]=c.default.useState(()=>Ml(t,p||1)),[_,v]=c.default.useState(()=>Ml(t,p||1));if(c.default.useEffect(()=>{p>0&&(h(e=>Ml(e,p)),v(e=>Ml(e,p)))},[p]),p===0)return null;let y=t=>{let n=Ml(t,p);h(n),a?.(n,e[n])},b=e=>{v(n?(e+p)%p:Ml(e,p))},x=()=>b(_-1),S=()=>b(_+1),C=p>1,w=r&&C&&i===`top-right`,T=r&&C&&i===`sides`;return(0,u.jsxs)(`div`,{className:[`relative w-full`,s].join(` `),role:`region`,"aria-label":d,children:[i===`top-right`&&(0,u.jsxs)(`div`,{className:`mb-2 md:mb-4 flex items-center justify-between gap-4`,children:[(0,u.jsx)(`div`,{className:`min-w-0`,children:f}),w&&(0,u.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,u.jsx)(O,{variant:`ghost`,"aria-label":`Previous`,onClick:x,intent:`primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-left`,alt:``,size:`md`})}),(0,u.jsx)(O,{variant:`ghost`,"aria-label":`Next`,onClick:S,intent:`primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`md`})})]})]}),i===`sides`&&f&&(0,u.jsx)(`div`,{className:`mb-4`,children:f}),(0,u.jsxs)(`div`,{className:`relative overflow-hidden`,children:[T&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`hidden md:block absolute left-0 top-1/2 z-10 -translate-y-1/2`,children:(0,u.jsx)(O,{variant:`ghost`,"aria-label":`Previous`,onClick:x,intent:`primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-left`,alt:``,size:`md`})})}),(0,u.jsx)(`div`,{className:`hidden md:block absolute right-0 top-1/2 z-10 -translate-y-1/2`,children:(0,u.jsx)(O,{variant:`ghost`,"aria-label":`Next`,onClick:S,intent:`primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`md`})})})]}),(0,u.jsx)(`div`,{className:[`scrollbar-none overflow-x-auto md:overflow-x-visible flex gap-3 transition-transform duration-300 ease-in-out will-change-transform`,T?`md:px-10`:``,l].join(` `).trim(),style:{transform:`translateX(calc(-${_} * (1px + 0.75rem)))`},children:e.map((e,t)=>(0,u.jsx)(`div`,{className:`shrink-0`,children:o({item:e,index:t,isActive:t===m,select:()=>y(t)})},t))})]})]})},Pl=(e,t)=>Math.max(0,Math.min(e,t-1)),Fl=e=>typeof e==`string`?e.replace(/^http:\/\//i,`https://`):``,Il=({slides:e,initialIndex:t=0,text:n,fallbackImage:r})=>{let i=e??[],a=r?{id:`fallback-image`,image:r}:null,o=i;!o.length&&a&&(o=[a]);let s=o.length,[l,d]=c.default.useState(()=>Pl(t,s||1)),[p,m]=c.default.useState(()=>new Set);if(c.default.useEffect(()=>{s>0&&d(e=>Pl(e,s))},[s]),s===0)return null;let h=o[l];if(!h?.image?.src&&!r?.src)return null;let g=(e,t)=>(!e||p.has(e)||p.has(Fl(e)))&&r?.src?r:{src:e??``,alt:t??``},_=g(h?.image?.src,h?.image?.alt),v=Fl(_.src),y=_.alt??``,b=e=>{!e||r?.src===e||m(t=>{let n=new Set(t);return n.add(e),n.add(Fl(e)),n})};return(0,u.jsxs)(`section`,{className:`w-full mx-auto`,children:[(0,u.jsx)(`div`,{className:`w-full aspect-square overflow-hidden rounded-lg`,children:(0,u.jsx)(j,{src:v,alt:y,className:`w-full h-full object-cover`,loading:`lazy`,decoding:`async`,quality:90,onError:()=>b(_.src)})}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(Nl,{items:o,initialIndex:l,loop:!0,showArrows:!0,ariaLabel:`Thumbnail carousel`,onSelect:e=>d(e),renderItem:({item:e,isActive:t,select:n,index:r})=>{let i=g(e.thumbnail?.src??e.image?.src,e.thumbnail?.alt??e.image?.alt),a=Fl(i.src),o=i.alt??``;return a?(0,u.jsx)(`button`,{type:`button`,onClick:n,"aria-label":`Show slide ${r+1}`,"aria-current":t?`true`:void 0,className:[`shrink-0 overflow-hidden border transition rounded`,t?`border-primary`:`border-transparent hover:border-primary/30`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/40`].join(` `),children:(0,u.jsx)(`div`,{className:`aspect-square w-20 overflow-hidden`,children:(0,u.jsx)(j,{src:a,alt:o,className:`w-full h-full object-cover`,loading:`lazy`,decoding:`async`,quality:80,onError:()=>b(i.src)})})},e.id??`thumb-${r}`):null}})}),(0,u.jsx)(`div`,{className:`mt-4 md:mt-6 space-y-2`,children:(0,u.jsx)(f,{as:`p`,variant:`body`,className:`text-xs md:text-sm`,children:n})})]})},Ll=({carousel:e})=>{let t=!!e?.slides?.length,n=e?.fallbackImage;if(!t&&!n?.src)return(0,u.jsx)(`div`,{className:`w-full min-h-96`,"aria-hidden":`true`});let{slides:r=[],initialIndex:i=0,text:a}=e??{};return(0,u.jsx)(`div`,{className:`w-full h-full min-h-0 md:min-h-96`,children:(0,u.jsx)(Il,{slides:r,initialIndex:i,text:a,fallbackImage:n})})},Rl=e=>{let t=e.find(e=>e.active);if(t)return t.value??t.id??null;let n=e[0];return n?n.value??n.id??null:null},zl=(e,t)=>!!(t&&e.some(e=>(e.value??e.id)===t)),Bl=e=>{let t=new Set;return e.reduce((e,n)=>!n.value||t.has(n.value)?e:(t.add(n.value),e.push({id:n.value,value:n.value,label:n.label||n.value}),e),[])},Vl=(e,t)=>!e||!t?null:`${e}x${t}`,Hl=(e,t,n)=>Math.max(t,Math.min(n,e)),Ul=(e,t=`USD`)=>new Intl.NumberFormat(`en-US`,{style:`currency`,currency:t}).format(e),Wl=e=>!!e?.length,Gl=(e,t)=>Wl(e)&&Wl(t),Kl=(e=[])=>e.some(e=>!!e.sku&&!!e.rangeId&&!!e.grade&&!!e.texture&&!!e.widthIn&&!!e.lengthIn),ql=e=>{let{sku:t,decor:n,title:r,description:i,colourMatching:a,patternRepeat:o,onDownloadSwatch:s,onDownloadFullSheet:l,downloadSwatchLabel:d,downloadFullSheetLabel:f,carousel:p,tabs:m=[`Sample`,`Buy Now`],tabLabels:h,labels:g,initialTab:_=`Sample`,tabOptions:v,productOptions:y=[],sizeOptions:b=[],variants:x=[],currency:S,initialQuantity:C=1,minQuantity:w=1,maxQuantity:T=99,showFavorites:E=!0,actionMode:D=`cart`,contactActions:O,onAddToWishlist:k,onAddToCart:A,onContactActionClick:j,availabilityHref:M,availabilityLabel:N=`View full product availability and information`,returnPolicyHref:P,returnPolicyLabel:F=`View return policy`,notReturnableText:I=`This item is not returnable.`,onPurchaseInfoLinkClick:L}=e,R=Array.isArray(m)&&m.length?m:[`Sample`,`Buy Now`],ee=v?.Sample,te=v?.[`Buy Now`],ne=ee?.productOptions??y??[],z=ee?.sizeOptions??b??[],re=te?.productOptions??y??[],ie=Gl(ne,z),B=Wl(re)&&Kl(x),V=R.filter(e=>e===`Sample`?ie:e===`Buy Now`?B:!0),H=V[0]??`Sample`,[U,W]=c.default.useState(V.includes(_)?_:H);c.default.useEffect(()=>{if(!V.length){W(`Sample`);return}V.includes(U)||W(H)},[U,V,H]);let G=v?.[U],ae=!!G,oe=G?.minQuantity??w,se=G?.maxQuantity??T,ce=G?.productOptions??(ae?[]:y)??[],le=U===`Buy Now`,[ue,K]=c.default.useState(()=>({product:Rl(ce),grade:null,texture:null,size:null})),de=c.default.useRef(!1),fe=zl(ce,ue.product)?ue.product:Rl(ce),pe=le&&fe?x.filter(e=>e.rangeId===fe):[],me=Bl(pe.map(e=>({value:e.grade,label:e.grade}))),he=le?me:G?.gradeOptions??[],ge=zl(he,ue.grade)?ue.grade:Rl(he),_e=ge?pe.filter(e=>e.grade===ge):pe,ve=Bl(_e.map(e=>({value:e.texture,label:e.finish||e.texture}))),ye=le?ve:G?.textureOptions??[],be=zl(ye,ue.texture)?ue.texture:Rl(ye),xe=be?_e.filter(e=>e.texture===be):_e,Se=new Map((G?.sizeOptions??b??[]).map(e=>[e.value??e.id,e.label])),Ce=Bl(xe.map(e=>{let t=Vl(e.widthIn,e.lengthIn)??void 0;return{value:t,label:t?Se.get(t)??t:void 0}})),we=le?Ce:G?.sizeOptions??(ae?[]:b)??[],Te=zl(we,ue.size)?ue.size:Rl(we);c.default.useEffect(()=>{if(!de.current){de.current=!0;return}K({product:Rl(ce),grade:Rl(he),texture:Rl(ye),size:Rl(we)})},[U]),c.default.useEffect(()=>{K(e=>{let t=e.product&&ce.some(t=>(t.value??t.id)===e.product)?e.product:Rl(ce),n=e.grade&&he.some(t=>(t.value??t.id)===e.grade)?e.grade:Rl(he),r=e.texture&&ye.some(t=>(t.value??t.id)===e.texture)?e.texture:Rl(ye),i=e.size&&we.some(t=>(t.value??t.id)===e.size)?e.size:Rl(we);return e.product===t&&e.grade===n&&e.texture===r&&e.size===i?e:{product:t,grade:n,texture:r,size:i}})},[ce,he,ye,we]);let Ee=c.default.useMemo(()=>{if(U!==`Buy Now`)return null;let e={product:fe,grade:ge,texture:be,size:Te},t=x.filter(t=>{let n=Vl(t.widthIn,t.lengthIn);return(t.rangeId??null)===e.product&&(t.grade??null)===e.grade&&(t.texture??null)===e.texture&&n===e.size});return t.length?t.find(e=>e.isWebEnabled)??t[0]??null:null},[U,x,fe,ge,be,Te]),De=U!==`Buy Now`||!!Ee,Oe=U===`Buy Now`&&Ee?Ee.price?.label??Ul(Ee.price?.value??0,S):``,ke=U===`Buy Now`&&Ee?Ee.price?.value??0:0,Ae=U===`Buy Now`?Ee?.sku??t:t,[je,Me]=c.default.useState(()=>Hl(C,oe,se)),Ne=c.default.useRef(U);c.default.useEffect(()=>{Me(Hl(C,oe,se))},[C,oe,se]),c.default.useEffect(()=>{Ne.current!==U&&(Ne.current=U,Me(oe))},[U,oe]);let q=(e,t)=>(t??[]).map(t=>{let n=t.value??t.id;return{id:t.id,label:t.label,disabled:t.disabled,value:n,active:ue[e]===n,onOptionClick:()=>{t.disabled||(K(t=>({...t,[e]:n})),t.onOptionClick?.(t.id))}}}),Pe={sku:Ae,title:r,decor:n,description:i,colourMatching:a,patternRepeat:o,onDownloadSwatch:s,onDownloadFullSheet:l,downloadSwatchLabel:d,downloadFullSheetLabel:f,tabs:V,tabLabels:h,labels:g,activeTab:U,onTabChange:W,productOptions:q(`product`,ce),gradeOptions:q(`grade`,he),textureOptions:q(`texture`,ye),sizeOptions:q(`size`,we),availabilityHref:M,availabilityLabel:N,returnPolicyHref:P,returnPolicyLabel:F,notReturnableText:I,priceLabel:Oe,initialQuantity:je,minQuantity:oe,maxQuantity:se,showCartActions:V.includes(U)&&De,showFavorites:E,actionMode:D,contactActions:O,selectedProduct:fe,selectedGrade:ge,selectedTexture:be,selectedSize:Te,onAddToWishlist:()=>{k?.({sku:Ae,decor:n})},onAddToCart:e=>{if(U===`Buy Now`&&!Ee)return;let t={type:U,sku:Ae,decor:n,product:fe,grade:ge,texture:be,size:Te,quantity:e,priceValue:U===`Buy Now`?ke:0,priceLabel:U===`Buy Now`?Oe:`$0.00`,currency:S,bigCommerceProductId:Ee?.bigCommerceProductId};A?.(t)},onContactActionClick:e=>{j?.({...e,sku:Ae,decor:n,title:r,activeTab:U,product:fe,grade:ge,texture:be,size:Te})},onQuantityChange:e=>Me(e),onPurchaseInfoLinkClick:L,mobileMediaSlot:(0,u.jsx)(Ll,{carousel:p})};return(0,u.jsx)(`section`,{className:`w-full flex justify-center`,children:(0,u.jsx)(`div`,{className:`md:max-w-6xl px-4 md:px-0 w-full`,children:(0,u.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-8`,children:[(0,u.jsx)(`div`,{className:`hidden md:block`,children:(0,u.jsx)(Ll,{carousel:p})}),(0,u.jsx)(jl,{...Pe})]})})})},Jl=({imageSrc:e,imageAlt:t=`Standard Copy Hero`,heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})=>(0,u.jsx)(ul,{imageSrc:e,imageAlt:t,bannerClassName:`relative h-80 md:h-119.25 w-full mb-10 md:mb-16 overflow-hidden`,overlayClassName:`absolute inset-0 flex items-center inset-shadow-[0px_-150px_70px_-50px_rgba(0,0,0,.50)] md:inset-shadow-[800px_0_450px_-180px_rgba(0,0,0,.50)]`,children:(0,u.jsx)(`div`,{className:`mx-auto w-full max-w-6xl px-4 md:px-0`,children:(0,u.jsx)(Us,{heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})})}),Yl=({categoryText:e,imageSrc:t,imageAlt:n=`Article Header`,tags:r=[],onTagClick:i})=>(0,u.jsx)(ul,{imageSrc:t,imageAlt:n,sectionClassName:`w-full`,bannerClassName:`h-80 md:h-119.25 w-full overflow-hidden mb-12 md:mb-20`,overlayClassName:`absolute inset-0 flex inset-shadow-[0px_-150px_70px_-50px_rgba(0,0,0,.50)]`,children:(0,u.jsx)(Bs,{categoryText:e,tags:r,onTagClick:i})}),Xl=({slides:e,initialIndex:t=0,...n})=>{let[r,i]=c.default.useState(t);if(c.default.useEffect(()=>{i(t)},[t]),!e?.length)return null;let a=e[Math.max(0,Math.min(r,e.length-1))]?.imageText;return(0,u.jsx)(`section`,{className:`flex justify-center mb-16 md:mb-20`,children:(0,u.jsxs)(`div`,{className:`max-w-6xl w-full overflow-hidden`,children:[(0,u.jsx)(Ls,{slides:e,initialIndex:t,onSlideChange:i,...n,showImageOverlay:!1}),a?(0,u.jsx)(`div`,{className:`w-full md:w-2/3 px-4 md:px-0 md:mx-auto mt-6 mb-6`,children:(0,u.jsx)(f,{variant:`free`,className:`text-primary font-normal text-base`,children:a})}):null,(0,u.jsx)(`div`,{className:`mx-4 md:mx-8 border-b border-2 border-secondaryHover mb-0 md:mb-6`})]})})},Zl=e=>{let{imageSrc:t=``,imageAlt:n=``}=e;return(0,u.jsx)(`section`,{className:`h-56 w-full overflow-hidden md:h-190`,children:(0,u.jsx)(j,{src:t,alt:n,className:`w-full h-full object-cover`,quality:90})})},Ql=({html:e=``,className:t=``})=>e?(0,u.jsx)(`div`,{className:`html-block ${t}`,dangerouslySetInnerHTML:{__html:e}}):null,$l={left:`text-left`,center:`text-center`,right:`text-right`},eu={small:`text-xl md:text-4xl`,medium:`text-2xl md:text-4xl`,large:`text-3xl md:text-5xl`},tu=e=>{let{heading:t,align:n=`left`,headingAlign:r=n,subheading:i,body:a,datetimeStamp:o,headingLevel:s=`h1`,headingSize:c=`large`,addTopMargin:l=!1}=e,d=$l[n],p=$l[r],m=l?`mt-10 md:mt-20`:``,h=o?`mb-1`:`mb-4 md:mb-6`,g=`${p} ${eu[c]} text-primary ${h}`;return(0,u.jsxs)(`section`,{className:`w-full ${m}`.trim(),children:[t?(0,u.jsx)(f,{as:s,variant:`free`,className:g,children:t}):null,o?(0,u.jsx)(f,{variant:`caption`,className:`${d} md:text-base font-bold mb-6`,children:o}):null,i?(0,u.jsx)(f,{as:`h2`,variant:`bold`,className:`${d} text-primary mb-4`,children:i}):null,a?(0,u.jsx)(Ql,{html:a,className:d}):null]})},nu=e=>{let{body:t,heading:n,headingAlign:r=`center`,headingSize:i=`small`,...a}=e;return(0,u.jsxs)(`section`,{className:`w-full md:mt-10`,children:[n?(0,u.jsx)(tu,{...a,heading:n,headingAlign:r,headingSize:i}):null,(0,u.jsx)(`div`,{className:`w-full rounded-lg border-2 border-secondaryActive p-6 md:p-8`,children:(0,u.jsx)(tu,{...a,body:t})})]})},ru=({title:e=`Featured Products`,body:t,headerAlign:n=`center`,headerVariant:r=`default`,items:i,onItemClick:a})=>{if(!i?.length)return null;let o=n===`left`?`text-left md:mx-0`:`text-center`,s=r===`compact`?`text-tertiary text-base font-bold`:`text-primary text-2xl md:text-4xl`,c=r===`compact`?`text-tertiary text-base font-bold`:`text-primary text-xl font-bold md:font-normal md:text-2xl`,l=r===`compact`?`max-w-6xl w-full mb-8 md:mb-10 mx-auto px-4 md:px-0`:`max-w-6xl w-full mb-16 md:mb-20 mx-auto px-4 md:px-0`,d=i.length<4,p=d?`justify-evenly`:``;return(0,u.jsxs)(`section`,{className:l,children:[t?(0,u.jsxs)(`div`,{className:`mx-auto mb-4 max-w-4xl md:mb-6 ${o}`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:s,children:e}),(0,u.jsx)(f,{variant:`body`,className:`mt-4 text-primary`,children:t})]}):null,(0,u.jsx)(Nl,{items:i,ariaLabel:e,arrowPosition:`top-right`,showArrows:!d,trackClassName:p,header:t?null:(0,u.jsx)(f,{variant:`free`,className:c,children:e}),renderItem:({item:e})=>(0,u.jsx)(Mo,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,title:e.title,brand:e.brand,decorNumber:e.decorNumber,onProductClick:a?()=>a(e):void 0},e.id)})]})},iu=({title:e,headerVariant:t=`default`,items:n=[]})=>n.length?(0,u.jsx)(`section`,{className:`w-full py-16 mb-10`,children:(0,u.jsxs)(`div`,{className:`mx-auto w-full max-w-6xl px-4 md:px-0`,children:[e?(0,u.jsx)(f,{as:`h2`,variant:`free`,className:t===`compact`?`mb-4 text-base font-bold text-tertiary md:mb-8`:`font-sans! font-bold md:font-normal text-xl md:text-2xl mb-4 md:mb-8`,children:e}):null,(0,u.jsx)(`div`,{className:`flex flex-col gap-4 md:gap-8`,children:n.map((e,t)=>(0,u.jsx)(c.default.Fragment,{children:(0,u.jsx)(lc,{...e})},`${e.title}-${t}`))})]})}):null,au=({title:e,body:t,faqCards:n=[]})=>(0,u.jsx)(`section`,{className:`w-full flex justify-center mb-16 md:mt-12 md:mb-20`,children:(0,u.jsxs)(`div`,{className:`max-w-6xl md:px-6 px-4 flex flex-col items-center justify-center w-full`,children:[(0,u.jsxs)(`div`,{className:`w-full border-b-2 md:border-b border-secondaryHover`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-2xl md:text-4xl flex items-center justify-center w-full pb-4`,children:e}),t&&(0,u.jsx)(f,{variant:`free`,className:`text-sm md:mx-16 mb-8`,children:t})]}),(0,u.jsx)(`div`,{className:`w-full flex flex-col md:px-14 mt-8 md:mt-6 gap-4`,children:n.map(e=>(0,u.jsx)(Js,{question:e.question,answer:e.answer,initiallyOpen:e.initiallyOpen},e.id))})]})}),ou=(e,t)=>e.id??[e.label,e.imageSrc,t].join(`-`),su=e=>{let t=[],n=0,r=0;for(;n<e.length;){let i=r%2==0?2:3;t.push({entries:e.slice(n,n+i),columns:i}),n+=i,r+=1}return t},cu=({items:e=[],onImageOverlayCardClick:t,layoutVariant:n=`uniform`})=>{if(!e.length)return null;let r=e.map((e,t)=>({item:e,index:t}));return n===`uniform`?(0,u.jsx)(`section`,{children:(0,u.jsx)(B,{className:`px-4 py-20 md:px-4`,gridClassName:`md:grid-cols-2`,columns:1,gap:`md`,children:r.map(({item:e,index:n})=>(0,u.jsx)(Gs,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,onCardClick:t?()=>t({item:e,index:n}):void 0},ou(e,n)))})}):(0,u.jsx)(`section`,{className:`px-4 py-20 md:px-4`,children:su(r).map((e,n,r)=>{let i=e.columns===3;return(0,u.jsx)(B,{className:n<r.length-1?`mb-6`:``,gridClassName:i?`md:grid-cols-3`:`md:grid-cols-2`,columns:1,gap:`md`,children:e.entries.map(({item:e,index:n})=>(0,u.jsx)(Gs,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,aspectRatio:i?`compact`:`video`,onCardClick:t?()=>t({item:e,index:n}):void 0},ou(e,n)))},`image-overlay-grid-row-${n}`)})})},lu={2:`md:grid-cols-2`,3:`md:grid-cols-3`,4:`md:grid-cols-4`},uu=({locations:e,selectedLocationId:t,desktopColumns:n=4,stockedProductsLabel:r,preferredLabel:i,websiteLabel:a,directionsLabel:o,emailLabel:s,onWebsiteClick:c,onDirectionsClick:l,onPhoneClick:d,onEmailClick:f})=>e.length?(0,u.jsx)(B,{columns:1,gap:`lg`,gridClassName:lu[n],children:e.map(e=>(0,u.jsx)(`div`,{"aria-current":e.id===t?`true`:void 0,className:`h-full`,children:(0,u.jsx)(Io,{location:e,stockedProductsLabel:r,preferredLabel:i,websiteLabel:a,directionsLabel:o,emailLabel:s,onWebsiteClick:c,onDirectionsClick:l,onPhoneClick:d,onEmailClick:f})},e.id))}):null,du=({title:e=`Markets & Languages`,markets:t,selectedLocalizationId:n,saveAndNextLabel:r=`Save and Next`,saveAndNextHelpText:i,saveAndNextDisabled:a=!1,localizationSelectionDisabled:o=!1,onLocalizationSelect:s,onSaveAndNext:c})=>(0,u.jsxs)(`section`,{"aria-labelledby":`localization-market-collection-heading`,children:[(0,u.jsx)(f,{as:`h2`,id:`localization-market-collection-heading`,variant:`free`,className:`text-base font-bold text-primary`,children:e}),(0,u.jsx)(`div`,{className:`mt-4 space-y-3`,children:t.map(e=>(0,u.jsxs)(`div`,{className:`space-y-2`,children:[(0,u.jsx)(fc,{id:e.id,title:e.label,description:e.description,status:e.status,statusLabel:e.statusLabel,selected:e.id===n,onCardClick:e.languages?.length||o?void 0:s}),e.languages?.length?(0,u.jsx)(`div`,{className:`ml-4 space-y-2 border-l border-borderTertiary pl-3`,children:e.languages.map(e=>(0,u.jsx)(fc,{id:e.id,title:e.label,description:e.description,status:e.status,statusLabel:e.statusLabel,selected:e.id===n,onCardClick:o?void 0:s},e.id))}):null]},e.id))}),c?(0,u.jsxs)(`footer`,{className:`mt-8 border-t border-borderTertiary pt-5`,children:[(0,u.jsx)(O,{label:r,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,variant:`outline`,intent:`primary`,fullWidth:!0,disabled:a,onClick:c}),i?(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:i}):null]}):null]}),fu={left:`text-left`,center:`text-center`,right:`text-right`},pu={left:`justify-start text-left`,center:`justify-center text-center`,right:`justify-end text-right`},mu={xs:`w-24`,sm:`w-32`,md:`w-48`,lg:`w-64`,xl:`w-80`},hu=e=>e==null||e===``?`-`:String(e),gu=e=>e==null?``:String(e),_u=e=>e==null||String(e).trim()===``,vu=e=>e.reduce((e,t)=>(e[t.id]={...t,values:{...t.values}},e),{}),yu=({title:e,description:t,columns:n,rows:r,rowCountLabel:i,updateLabel:a=`Update`,updateDisabled:o=!1,emptyMessage:s=`No report data available.`,ariaLabel:l,onRowUpdate:d})=>{let p=(0,c.useRef)(null),[m,h]=(0,c.useState)(vu(r)),[g,_]=(0,c.useState)(null),v=t?.trim()??``,y=i?.trim()??(r.length===1?`1 row`:`${r.length.toLocaleString()} rows`),b=r.length>0;(0,c.useEffect)(()=>{h(vu(r)),_(null)},[r]),(0,c.useEffect)(()=>{if(!g)return;let e=e=>{let t=e.target;t instanceof Element&&(t.closest(`[data-data-report-cell-editor='true']`)||_(null))};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[g]);let x=(e,t,n)=>{h(r=>{let i=r[e];return i?{...r,[e]:{...i,values:{...i.values,[t]:n}}}:r})},S=e=>{let t=m[e.id]??e;d?.({row:t,originalRow:e})},C=(e,t)=>!!(t.required||t.requiredWhen&&e.values[t.requiredWhen.columnId]===t.requiredWhen.value),w=e=>{let t=m[e.id]??e;return n.some(e=>C(t,e)&&_u(t.values[e.id]))},T=(e,t)=>{let n=(m[e.id]??e).values[t.id];return _u(n)?t.placeholder??`-`:t.editor===`select`?t.options?.find(e=>e.value===String(n))?.label??hu(n):hu(n)},E=(e,t,n,r,i)=>{let a=m[e.id]??e,s=g===n,c=t.editable!==!1,l=C(a,t),d=l&&_u(a.values[t.id]);return s?t.editor===`select`?(0,u.jsx)(`div`,{"data-data-report-cell-editor":`true`,children:(0,u.jsx)(Q,{id:`${n}-editor`,name:t.id,ariaLabel:`${t.label} for row ${e.id}`,value:gu(a.values[t.id]),options:t.options,placeholder:t.placeholder,disabled:o,required:l,hasError:d,onChange:n=>x(e.id,t.id,n.target.value)})}):(0,u.jsx)(`input`,{"aria-label":`${t.label} for row ${e.id}`,className:r,"data-data-report-cell-editor":`true`,maxLength:t.maxLength,disabled:o,required:l,"aria-invalid":d||void 0,value:gu(a.values[t.id]),onBlur:()=>_(null),onChange:n=>x(e.id,t.id,n.target.value),onKeyDown:e=>{(e.key===`Enter`||e.key===`Escape`)&&_(null)}}):c?(0,u.jsx)(`button`,{type:`button`,className:i,disabled:o,onClick:()=>_(n),children:(0,u.jsx)(`span`,{className:`min-w-0 truncate`,children:T(e,t)})}):T(e,t)};return(0,u.jsxs)(`section`,{ref:p,"aria-label":l??e,className:`w-full rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`header`,{className:`flex flex-col gap-3 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e}),v?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:v}):null]}),(0,u.jsx)(f,{variant:`free`,className:`inline-flex shrink-0 rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-tertiary`,children:y})]}),(0,u.jsx)(`div`,{className:`mt-4 overflow-hidden rounded-lg border border-borderTertiary`,children:b?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`hidden overflow-x-auto md:block`,children:(0,u.jsxs)(`table`,{className:`min-w-full table-fixed border-collapse`,children:[(0,u.jsxs)(`colgroup`,{children:[n.map(e=>(0,u.jsx)(`col`,{className:mu[e.width??`md`]},e.id)),(0,u.jsx)(`col`,{className:`w-20`})]}),(0,u.jsx)(`thead`,{className:`bg-tertiaryActive`,children:(0,u.jsxs)(`tr`,{children:[n.map(e=>(0,u.jsx)(`th`,{scope:`col`,className:`whitespace-nowrap px-4 py-3 text-xs font-bold uppercase text-tertiary ${mu[e.width??`md`]} ${fu[e.alignment??`left`]}`,children:e.label},e.id)),(0,u.jsx)(`th`,{scope:`col`,className:`whitespace-nowrap px-4 py-3 text-center text-xs font-bold uppercase text-tertiary`,children:`Actions`})]})}),(0,u.jsx)(`tbody`,{className:`divide-y divide-borderTertiary`,children:r.map(e=>(0,u.jsxs)(`tr`,{className:`bg-secondary`,children:[n.map(t=>{let n=`${e.id}-${t.id}`,r=t.alignment??`left`;return(0,u.jsx)(`td`,{className:`whitespace-nowrap px-4 py-3 text-sm text-primary ${mu[t.width??`md`]} ${fu[r]}`,children:E(e,t,n,`block w-full min-w-0 truncate rounded border border-borderTertiary bg-secondary px-2 py-1 text-sm text-primary outline-none focus:border-primary ${fu[r]}`,`flex w-full min-w-0 cursor-pointer rounded px-2 py-1 text-sm text-primary hover:bg-tertiaryActive focus:bg-tertiaryActive focus:outline-none ${pu[r]}`)},n)}),(0,u.jsx)(`td`,{className:`whitespace-nowrap px-4 py-3 text-center`,children:(0,u.jsx)(ge,{"aria-label":a,iconType:`fa-solid`,iconName:`upload`,iconAlt:``,intent:`primary`,size:`md`,disabled:o||w(e),onClick:()=>S(e)})})]},e.id))})]})}),(0,u.jsx)(`ul`,{className:`divide-y divide-borderTertiary md:hidden`,children:r.map(e=>(0,u.jsxs)(`li`,{className:`bg-secondary px-3 py-3`,children:[(0,u.jsx)(`dl`,{className:`grid grid-cols-1 gap-2`,children:n.map(t=>{let n=`${e.id}-${t.id}`;return(0,u.jsxs)(`div`,{className:`flex gap-3`,children:[(0,u.jsx)(`dt`,{className:`w-28 shrink-0 text-xs font-bold uppercase text-tertiary`,children:t.label}),(0,u.jsx)(`dd`,{className:`min-w-0 flex-1 break-words text-sm text-primary`,children:E(e,t,n,`block w-full min-w-0 rounded border border-borderTertiary bg-secondary px-2 py-1 text-sm text-primary outline-none focus:border-primary`,`w-full min-w-0 cursor-pointer rounded px-2 py-1 text-left text-sm text-primary hover:bg-tertiaryActive focus:bg-tertiaryActive focus:outline-none`)})]},n)})}),(0,u.jsx)(`div`,{className:`mt-3 flex justify-end`,children:(0,u.jsx)(ge,{"aria-label":a,iconType:`fa-solid`,iconName:`upload`,iconAlt:``,intent:`primary`,size:`md`,disabled:o||w(e),onClick:()=>S(e)})})]},e.id))})]}):(0,u.jsx)(f,{variant:`free`,className:`px-3 py-4 text-sm text-primary`,children:s})})]})},bu=({groups:e,itemLabel:t=`decors`,emptyMessage:n=`No decors are available.`,showGroupHeaders:r=!0,onDecorClick:i,onDeleteDecorRequest:a})=>{let o=(0,c.useId)();return e.some(e=>e.items.length>0)?(0,u.jsx)(`div`,{className:`space-y-8`,children:e.map((e,n)=>{if(!e.items.length)return null;let s=`${o}-${n}`;return(0,u.jsxs)(`section`,{"aria-labelledby":r?s:void 0,"aria-label":r?void 0:e.label,children:[r?(0,u.jsxs)(`header`,{className:`flex items-end justify-between gap-4 border-b border-borderTertiary pb-3`,children:[(0,u.jsx)(f,{as:`h2`,id:s,variant:`free`,className:`text-base font-bold text-primary`,children:e.label}),(0,u.jsxs)(f,{variant:`free`,className:`shrink-0 text-xs font-bold text-tertiary`,children:[e.totalCount.toLocaleString(),` `,t]})]}):null,(0,u.jsx)(`div`,{className:r?`mt-3 space-y-3`:`space-y-3`,children:e.items.map(e=>(0,u.jsx)(_e,{...e,onDecorClick:i,onDeleteDecorRequest:a},e.decorId))})]},e.id)})}):(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:n})},xu=({ranges:e,emptyMessage:t=`No ranges are available.`,onRangeClick:n,onDeleteRangeRequest:r})=>e.length?(0,u.jsx)(`section`,{"aria-label":`Ranges`,className:`space-y-3`,children:e.map(e=>(0,u.jsx)(Ne,{...e,onRangeClick:n,onDeleteRangeRequest:r},e.rangeId))}):(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t}),Su={lat:39.9612,lng:-82.9988},Cu=()=>window,wu=()=>Cu().google,Tu=e=>{let t=Cu();return t.google?.maps?Promise.resolve():(t.formicaGoogleMapsPromise||=new Promise((t,n)=>{let r=document.createElement(`script`);r.src=`https://maps.googleapis.com/maps/api/js?key=${encodeURIComponent(e)}`,r.async=!0,r.defer=!0,r.onload=()=>t(),r.onerror=()=>n(Error(`Google Maps script failed to load`)),document.head.appendChild(r)}),t.formicaGoogleMapsPromise)},Eu=({center:e,locations:t,selectedLocationId:n})=>{let r=t.find(e=>e.id===n);return e??r?.coordinates??t[0]?.coordinates??Su},Du=({googleMapsApiKey:e,mapId:t,locations:n,center:r,zoom:i=10,selectedLocationId:a,ariaLabel:o=`Locations map`,legendLabel:s,onLocationSelect:l})=>{let d=c.default.useRef(null),p=c.default.useRef(null),m=c.default.useRef([]),[h,_]=c.default.useState(e?`loading`:`missing-key`),v=c.default.useMemo(()=>Eu({center:r,locations:n,selectedLocationId:a}),[r,n,a]);c.default.useEffect(()=>{if(!e)return _(`missing-key`),()=>void 0;let t=!0;return _(`loading`),Tu(e).then(()=>{t&&_(`loaded`)}).catch(()=>{t&&_(`error`)}),()=>{t=!1}},[e]),c.default.useEffect(()=>{if(h!==`loaded`||!d.current)return;let e=wu();e&&(p.current?(p.current.setCenter(v),p.current.setZoom(i)):p.current=new e.maps.Map(d.current,{center:v,zoom:i,mapId:t,clickableIcons:!1,fullscreenControl:!0,mapTypeControl:!1,streetViewControl:!1}))},[h,t,v,i]),c.default.useEffect(()=>{if(h!==`loaded`||!p.current)return;let e=wu();e&&(m.current.forEach(e=>e.setMap(null)),m.current=n.map((t,n)=>{let r=new e.maps.Marker({position:t.coordinates,map:p.current,title:t.name,label:String(n+1)});return r.addListener(`click`,()=>{l?.({location:t})}),r}))},[h,n,l]),c.default.useEffect(()=>{if(h!==`loaded`||!p.current||!a)return;let e=n.find(e=>e.id===a);e&&p.current.panTo(e.coordinates)},[h,n,a]),c.default.useEffect(()=>()=>{m.current.forEach(e=>e.setMap(null)),m.current=[]},[]);let y=n.slice(0,6);return(0,u.jsxs)(`section`,{className:`w-full`,"aria-label":o,children:[(0,u.jsx)(`div`,{ref:d,"data-testid":`location-map-canvas`,className:`h-80 w-full bg-secondary/10 md:h-96`,children:h===`missing-key`||h===`error`?(0,u.jsx)(`div`,{className:`flex h-full w-full flex-col justify-center gap-3 border border-secondaryHover bg-light px-6`,children:y.map((e,t)=>(0,u.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-left text-primary`,onClick:()=>l?.({location:e}),children:[(0,u.jsx)(`span`,{className:`flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-accent text-xs text-white`,children:t+1}),(0,u.jsx)(f,{as:`span`,variant:`body`,children:e.name})]},e.id))}):null}),s?(0,u.jsxs)(`div`,{className:`mt-3 flex items-center gap-2`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`location-dot`,color:`accent`,size:`sm`}),(0,u.jsx)(f,{variant:`caption`,className:`text-primary`,children:s})]}):null]})},Ou={synced:{iconName:`check`,className:`border-saleGreen bg-saleGreen/10 text-saleGreen`},actionRequired:{iconName:`triangle-exclamation`,className:`border-yellow-500 bg-yellow-50 text-yellow-700`},checking:{iconName:`arrows-rotate`,className:`border-blue-500 bg-blue-50 text-blue-700`},error:{iconName:`xmark`,className:`border-accent bg-accent/10 text-accent`},notApplicable:{iconName:`minus`,className:`border-borderTertiary bg-adminSideNavBackground text-tertiary`}},ku={match:`text-saleGreen`,mismatch:`text-accent`,neutral:`text-tertiary`},Au=e=>{let t=e.detail?.trim()??``,n=e.status??`neutral`;return(0,u.jsxs)(`div`,{className:`flex items-start justify-between gap-4 border-t border-borderTertiary py-3 first:border-t-0 first:pt-0 last:pb-0`,children:[(0,u.jsx)(`dt`,{className:`text-sm font-semibold text-primary`,children:e.label}),(0,u.jsxs)(`dd`,{className:`min-w-0 text-right`,children:[(0,u.jsx)(`div`,{className:`text-sm font-bold text-primary`,children:e.value}),t?(0,u.jsx)(`div`,{className:`mt-1 text-xs ${ku[n]}`,children:t}):null]})]},e.id)},ju=(e,t,n)=>{let r=e.description?.trim()??``,i=e.actionHelpText?.trim()??``,a=Ou[e.status];return(0,u.jsxs)(`article`,{className:`flex h-full flex-col rounded-lg border border-borderTertiary bg-adminSideNavBackground p-4 shadow-sm`,children:[(0,u.jsxs)(`header`,{children:[(0,u.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,u.jsx)(`span`,{className:`flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-adminSideNavBackground text-sm font-bold text-primary`,children:t}),(0,u.jsxs)(`span`,{"aria-label":`${e.title} status: ${e.statusLabel}`,className:`inline-flex items-center gap-2 rounded-full border px-2 py-1 text-xs font-semibold ${a.className}`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:a.iconName,alt:``,size:`xs`}),e.statusLabel]})]}),(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`mt-4 text-base font-bold`,children:e.title}),r?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:r}):null]}),(0,u.jsx)(`dl`,{className:`mt-5`,children:e.fields.map(Au)}),e.actionLabel?(0,u.jsxs)(`footer`,{className:`mt-auto pt-5`,children:[i?(0,u.jsx)(f,{variant:`free`,className:`mb-2 text-xs text-tertiary`,children:i}):null,(0,u.jsx)(O,{label:e.actionLabel,iconType:`fa-solid`,iconName:`arrows-rotate`,iconAlt:``,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:e.actionDisabled,onClick:n})]}):null]})},Mu=({title:e=`Commerce Sync`,summary:t,detail:n,overallStatus:r,overallStatusLabel:i,lxStage:a,salsifyStage:o,bigCommerceStage:s,refreshLabel:c=`Check Again`,onLxSyncClick:l,onBigCommerceSyncClick:d,onRefreshClick:p})=>{let m=n?.trim()??``,h=Ou[r],_=[{stage:a,onActionClick:void 0},{stage:o,onActionClick:l},{stage:s,onActionClick:d}];return(0,u.jsxs)(`section`,{"aria-labelledby":`commerce-sync-panel-heading`,children:[(0,u.jsx)(`div`,{"aria-label":`Commerce sync summary`,className:`rounded-lg border p-4 ${h.className}`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,u.jsx)(`span`,{className:`mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-current`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:h.iconName,alt:``,size:`sm`})}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(f,{as:`h2`,id:`commerce-sync-panel-heading`,variant:`free`,className:`text-base font-bold text-inherit`,children:[e,`: `,i]}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-inherit`,children:t}),m?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-inherit`,children:m}):null]})]}),p?(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(O,{label:c,iconType:`fa-solid`,iconName:`arrows-rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,onClick:p})}):null]})}),(0,u.jsx)(`div`,{"aria-label":`LX to BigCommerce sync flow`,className:`mt-5 grid gap-4 md:grid-cols-3 md:gap-6`,children:_.map((e,t)=>(0,u.jsxs)(`div`,{className:`relative min-w-0`,children:[ju(e.stage,t+1,e.onActionClick),t<_.length-1?(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`absolute -right-6 top-1/2 z-10 hidden h-6 w-6 -translate-y-1/2 items-center justify-center rounded-full border border-borderTertiary bg-secondary text-tertiary shadow-sm md:flex`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`xs`})}):null]},e.stage.title))})]})},Nu=({header:e=``,clearAllLabel:t=`Clear All`,emptyStateLabel:n=`No filters selected`,optionsList:r=[],onRemoveAll:i,onRemoveOption:a})=>{let o=e=>{a?.({id:e})};return(0,u.jsx)(`section`,{children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 px-4 md:px-0`,children:[(0,u.jsxs)(`div`,{className:`flex flex-row items-baseline gap-3`,children:[(0,u.jsx)(f,{variant:`bold`,className:`pt-2`,children:e}),r.length>0&&(0,u.jsx)(O,{intent:`neutral`,variant:`link`,onClick:()=>i(),className:`text-sm leading-none underline whitespace-nowrap`,children:t})]}),r.length>0?(0,u.jsx)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-2`,children:r.map(e=>(0,u.jsx)(`div`,{children:(0,u.jsx)(O,{intent:`neutral`,variant:`chip`,size:`xs`,iconType:`fa-solid`,iconName:`x`,iconPosition:`right`,iconSize:`xs`,className:`gap-1`,onClick:()=>o(e.id),children:e.label})},e.id))}):(0,u.jsx)(`div`,{className:`flex min-h-6 items-center`,children:(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-secondaryActive leading-none`,children:n})})]})})},Pu=({sections:e=[],header:t,headerIcon:n,appliedOptions:r,resetLabel:i=`Reset`,applyFiltersLabel:a=`Apply Filters`,onResetClick:o,onApplyFiltersClick:s,onCheckboxChange:c,onColorSelect:l})=>(0,u.jsxs)(`section`,{className:`relative pb-20 md:pb-0 w-full md:ml-2 md:w-52`,children:[(0,u.jsxs)(`div`,{className:`flex items-center w-full px-4 md:px-0 py-4 border-b border-secondaryHover`,children:[n?(0,u.jsx)(g,{iconType:`fa-solid`,iconName:n,className:`text-primary text-md mr-2`}):null,t?(0,u.jsx)(f,{variant:`free`,className:`text-lg text-primary `,children:t}):null]}),r&&(0,u.jsx)(Nu,{header:r.header,optionsList:r.optionsList,onRemoveOption:r.onRemoveOption,onRemoveAll:r.onRemoveAll}),e.map((e,t)=>(0,u.jsxs)(`div`,{className:`py-4 px-4 md:px-0 border-b border-secondaryHover`,children:[e.type===`colorSwatch`&&(0,u.jsx)(zs,{label:e.label,options:e.options,onOptionSelect:l}),e.type===`checkbox`&&(0,u.jsx)(Ko,{label:e.label,options:e.options,onOptionChange:c})]},`${e.label}-${t}`)),(0,u.jsx)(`div`,{className:`md:hidden`,children:(0,u.jsxs)(`div`,{className:`justify-around gap-2 px-4 fixed bottom-0 z-10 flex items-center w-full py-6 bg-secondary shadow-[0_-18px_30px_-18px_rgba(0,0,0,0.45)]`,children:[(0,u.jsx)(O,{variant:`outline`,intent:`accent`,size:`sm`,className:`w-full`,label:i,onClick:()=>o()}),(0,u.jsx)(O,{variant:`solid`,intent:`accent`,size:`sm`,className:`w-full`,label:a,onClick:()=>s()})]})})]}),Fu=[{label:`Architect or Designer`,value:`architectDesigner`},{label:`Builder or Construction`,value:`builderConstruction`},{label:`Dealer or Retailer`,value:`dealerRetailer`},{label:`Distributor`,value:`distributor`},{label:`Fabricator`,value:`fabricator`},{label:`General Contractor`,value:`generalContractor`},{label:`Homeowner`,value:`homeowner`},{label:`Media and Press`,value:`mediaPress`},{label:`Other`,value:`other`},{label:`Postformer`,value:`postformer`}],Iu=({htmlFor:e,label:t,errorMessage:n})=>(0,u.jsx)(f,{as:`label`,htmlFor:e,className:`text-sm ${n?`text-accent!`:`text-primary`}`,children:n||t}),Lu=({data:e,actionLabels:t,labels:n,onModeChange:r,onEmailChange:i,onPasswordChange:a,onFirstNameChange:o,onLastNameChange:s,onPhoneNumberChange:c,onUserTypeChange:l,onConfirmPasswordChange:d,onMarketingOptInChange:p,onTermsAcceptedChange:m,onEmailBlur:h,onPasswordBlur:g,onForgotPasswordClick:_,onTermsClick:v,onPrivacyClick:y,onSignInClick:b,onCreateAccountClick:x,onSecondaryClick:S})=>{let C=e.mode??`signIn`,w=C===`createAccount`,T=e.errors??{},E=e.userTypeOptions??Fu,D=[{id:`createAccount`,label:n?.createAccountMode??`Create Account`},{id:`signIn`,label:n?.signInMode??`Sign In`}],k=w?t?.createAccountPrimary??`Create Account`:t?.signInPrimary??`Sign In`,A=t?.secondary??`Cancel`;return(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-8`,children:[(0,u.jsx)(Mc,{ariaLabel:n?.modeAriaLabel??`Login mode`,layoutVariant:`equalWidth`,items:D,selectedId:C,onSelect:e=>r?.(e)}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[w?(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-5 md:grid-cols-2`,children:[(0,u.jsx)($,{id:`account-access-first-name`,name:`firstName`,label:n?.firstName??`First Name*`,value:e.firstName??``,placeholder:n?.firstNamePlaceholder??`First Name*`,hasError:!!T.firstName,errorMessage:T.firstName,autoComplete:`given-name`,onChange:o}),(0,u.jsx)($,{id:`account-access-last-name`,name:`lastName`,label:n?.lastName??`Last Name`,value:e.lastName??``,placeholder:n?.lastNamePlaceholder??`Last Name`,autoComplete:`family-name`,onChange:s})]}):null,(0,u.jsx)($,{id:`account-access-email`,name:`email`,type:`email`,label:n?.email??`Email`,value:e.email??``,placeholder:w?n?.emailPlaceholder??`Email*`:``,hasError:!!T.email,errorMessage:T.email,autoComplete:`email`,onChange:i,onBlur:h}),w?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)($,{id:`account-access-phone-number`,name:`phoneNumber`,type:`tel`,label:n?.phoneNumber??`Phone Number*`,value:e.phoneNumber??``,placeholder:n?.phoneNumberPlaceholder??`Phone Number*`,hasError:!!T.phoneNumber,errorMessage:T.phoneNumber,autoComplete:`tel`,onChange:c}),(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[(0,u.jsx)(Iu,{htmlFor:`account-access-user-type`,label:n?.userType??`I am a*`,errorMessage:T.userType}),(0,u.jsx)(Q,{id:`account-access-user-type`,name:`userType`,placeholder:n?.userTypePlaceholder??`I am a*`,value:e.userType??``,hasError:!!T.userType,options:E.map(e=>({label:e.label,value:e.value,disabled:e.disabled})),onChange:e=>l?.(e.target.value)})]})]}):null,(0,u.jsx)($,{id:`account-access-password`,name:`password`,type:`password`,label:n?.password??`Password`,value:e.password??``,placeholder:w?n?.passwordPlaceholder??`Password*`:``,hasError:!!T.password,errorMessage:T.password,autoComplete:w?`new-password`:`current-password`,linkText:w?void 0:n?.forgotPassword??`Forgot Password?`,linkHref:`#`,onLinkClick:_,onChange:a,onBlur:g}),w?(0,u.jsxs)(u.Fragment,{children:[e.passwordRequirementsText?(0,u.jsx)(f,{variant:`caption`,className:`text-accent`,children:e.passwordRequirementsText}):null,(0,u.jsx)($,{id:`account-access-confirm-password`,name:`confirmPassword`,type:`password`,label:n?.confirmPassword??`Confirm Password*`,value:e.confirmPassword??``,placeholder:n?.confirmPasswordPlaceholder??`Confirm Password*`,hasError:!!T.confirmPassword,errorMessage:T.confirmPassword,autoComplete:`new-password`,onChange:d}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,u.jsxs)(`label`,{htmlFor:`account-access-marketing-opt-in`,className:`flex cursor-pointer items-center gap-3 rounded-md border border-secondaryHover bg-secondaryHover/30 py-3 pr-3 pl-5 text-sm leading-5 text-primary`,children:[(0,u.jsx)(`input`,{id:`account-access-marketing-opt-in`,name:`marketingOptIn`,type:`checkbox`,checked:e.marketingOptIn??!1,onChange:e=>p?.(e.target.checked),className:`h-4 w-4 shrink-0 accent-accent`}),(0,u.jsx)(`span`,{children:n?.marketingOptIn??`I give my permission to collect and use my information and receive updates regarding new launches, sales and marketing materials.`})]}),(0,u.jsxs)(`div`,{className:`flex items-center gap-3 rounded-md border border-secondaryHover bg-secondaryHover/30 py-3 pr-3 pl-5 text-sm leading-5 text-primary`,children:[(0,u.jsx)(`input`,{id:`account-access-terms-accepted`,name:`termsAccepted`,type:`checkbox`,"aria-label":n?.termsConsentAriaLabel??`I agree to Formica's Terms of Use and Privacy Policy`,checked:e.termsAccepted??!1,onChange:e=>m?.(e.target.checked),className:`h-4 w-4 shrink-0 accent-accent`}),(0,u.jsxs)(`span`,{children:[n?.termsConsentPrefix??`I agree to Formica's`,` `,(0,u.jsx)(O,{type:`button`,variant:`link`,intent:`accent`,className:`p-0! text-sm leading-5 align-baseline`,label:n?.termsOfUse??`Terms of Use`,onClick:v}),` `,n?.termsConsentJoin??`and`,` `,(0,u.jsx)(O,{type:`button`,variant:`link`,intent:`accent`,className:`p-0! text-sm leading-5 align-baseline`,label:n?.privacyPolicy??`Privacy Policy`,onClick:y}),`.`]})]}),T.termsAccepted?(0,u.jsx)(f,{variant:`caption`,className:`text-accent`,children:T.termsAccepted}):null]})]}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 ${w?`mb-8`:``}`,children:[(0,u.jsx)(O,{type:`button`,variant:`solid`,intent:`accent`,className:`w-full`,onClick:w?x:b,children:k}),(0,u.jsx)(O,{type:`button`,variant:`outline`,intent:`primary`,className:`w-full border-primary text-primary`,onClick:S,children:A})]})]})},Ru=({customerName:e,children:t,tabs:n,activeTabId:r,greeting:i=`Welcome back,`,logoutLabel:a=`Log out`,onTabClick:o,onLogoutClick:s})=>(0,u.jsx)(`section`,{className:`w-full bg-white`,children:(0,u.jsxs)(`div`,{className:`mx-auto w-full max-w-6xl px-4 pb-16 pt-6 md:px-0 md:pt-10`,children:[(0,u.jsxs)(`header`,{className:`flex items-center justify-between gap-4 pb-5`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-4`,children:[(0,u.jsx)(`span`,{className:`flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-tertiaryActive text-primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`user`,alt:``,size:`2xl`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(f,{variant:`caption`,children:i}),(0,u.jsx)(f,{as:`p`,variant:`free`,className:`mt-1 truncate font-rockwell text-2xl text-primary`,children:e})]})]}),(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(O,{label:a,variant:`link`,intent:`accent`,size:`sm`,onClick:s})})]}),(0,u.jsx)(`nav`,{"aria-label":`Customer account sections`,children:(0,u.jsx)(`div`,{role:`tablist`,children:(0,u.jsx)(ml,{items:n.map(e=>({label:e.label,value:e.id})),value:r,onChange:e=>{let t=n.find(t=>t.id===e);t&&o({item:t})},renderTab:({item:e,isActive:t,onTabClick:n})=>(0,u.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":t,className:`w-full px-2 py-4 text-xs font-semibold transition md:px-5 md:text-sm ${t?`text-primary`:`text-secondaryActive hover:text-primary`}`,onClick:n,children:e.label})})})}),(0,u.jsx)(`main`,{className:`pt-8 md:pt-10`,children:t})]})}),zu=({items:e,value:t,onChange:n})=>{if(!e?.length)return null;let r=e=>{e.disabled||n(e.id,e)};return(0,u.jsx)(`div`,{className:`flex flex-row md:flex-col gap-2 md:gap-4 scrollbar-none overflow-x-auto`,children:e.map(e=>{let n=t===e.id;return(0,u.jsx)(O,{type:`button`,variant:`solid`,intent:`secondary`,active:n,disabled:!!e.disabled,onClick:()=>r(e),"aria-pressed":n,className:[`text-nowrap justify-start w-full rounded-lg px-2! md:px-4 py-3 text-left`,n?`text-primary! bg-secondaryHover!`:`border-secondaryHover! md:border-none`].join(` `),children:(0,u.jsx)(`span`,{className:`block w-full text-left`,children:e.label})},e.id)})})},Bu=({data:e})=>e?(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:gap-6`,children:[!!e?.summary&&(0,u.jsx)(f,{as:`p`,variant:`body`,className:`leading-6 md:leading-7 md:max-w-4xl`,children:e.summary}),!!e?.content&&(0,u.jsx)(`div`,{children:e.content}),(0,u.jsx)($s,{colourMatching:e.colourMatching})]}):null,Vu=({data:e})=>e?.groups?.length?(0,u.jsx)(`div`,{className:`flex flex-col gap-6 md:gap-10 scrollbar-none overflow-x-auto`,children:e.groups.map((e,t)=>(0,u.jsxs)(`div`,{className:[`flex flex-col gap-2 md:gap-8`,t>0?`pt-2 md:pt-10 border-t border-black/10`:``].join(` `),children:[(0,u.jsx)(`div`,{children:(0,u.jsx)(f,{as:`h3`,variant:`bold`,className:`text-md`,children:e.title})}),(0,u.jsx)(`div`,{className:`flex flex-wrap gap-8`,children:e.items.map(e=>(0,u.jsxs)(`div`,{className:`flex md:flex-col gap-4 w-full md:max-w-52`,children:[(0,u.jsx)(`div`,{className:`w-full aspect-square overflow-hidden rounded-sm bg-black/5`,children:!!e.imageSrc&&(0,u.jsx)(j,{src:e.imageSrc,alt:e.imageAlt??e.title??``,className:`w-full h-full object-cover`,quality:90,loading:`eager`})}),(0,u.jsxs)(`div`,{className:`flex flex-col md:flex-none`,children:[!!e.title&&(0,u.jsx)(f,{as:`h4`,variant:`free`,className:`text-lg md:text-xl font-bold text-primary`,children:e.title}),!!e.description&&(0,u.jsx)(f,{as:`p`,variant:`body`,className:`max-w-80 leading-6`,children:e.description})]})]},e.key))})]},e.id))}):null,Hu=(e,t=!1)=>{let n=``;typeof e==`string`?n=e:typeof e?.label==`string`&&(n=e.label);let r=n.replace(/\bin\b/g,`IN`);return t?`${r} (MTO)`:r},Uu=({data:e,selectedGrade:t})=>e?(0,u.jsxs)(`div`,{className:`flex flex-col gap-8`,children:[!!e.cards?.length&&(0,u.jsx)(`div`,{className:`flex flex-row md:flex-wrap gap-4 md:gap-8 scrollbar-none overflow-x-auto`,children:e.cards.map(n=>{let r=n.items??[],i=n.mtoItems??[],a=[n.grade,n.thickness].filter(Boolean).join(` - `)||n.subtitle||``;return(0,u.jsxs)(`div`,{className:[`md:w-64 md:min-h-72 rounded-sm px-2 py-4 md:p-5 border`,(t&&t.trim().length>0?n.grade===t:e.cards?.[0]?.id===n.id)?`bg-neutral-200 border-neutral-200`:`bg-white border-neutral-400`].join(` `),children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-xl md:text-3xl leading-none mb-1`,children:n.title}),!!a&&(0,u.jsx)(f,{as:`h4`,variant:`free`,className:`mb-2 text-xs`,children:a}),(0,u.jsxs)(`div`,{className:`border-t border-primary/30 pt-4 flex`,children:[(0,u.jsx)(`div`,{className:`flex flex-col gap-2 mr-3 md:w-20`,children:r.map(e=>(0,u.jsx)(f,{as:`span`,variant:`free`,className:`text-xs text-nowrap`,children:Hu(e)},e))}),(0,u.jsx)(`div`,{className:`flex flex-col gap-2`,children:i.map(e=>(0,u.jsx)(f,{as:`span`,variant:`free`,className:`text-xs text-nowrap`,children:Hu(e,!0)},e))})]})]},n.id)})}),!!e.content&&(0,u.jsx)(`div`,{children:e.content}),!!e.summary&&(0,u.jsx)(f,{as:`p`,variant:`body`,className:`leading-7`,children:e.summary}),!!e.definitions?.length&&(0,u.jsx)(`div`,{className:`flex flex-col gap-3 w-full`,children:e.definitions.map(e=>(0,u.jsxs)(f,{as:`span`,variant:`body`,children:[(0,u.jsxs)(`span`,{className:`font-medium`,children:[e.grade,`: `]}),e.text]},e.id))})]}):null,Wu=[{label:`Product Details`,value:`details`},{label:`Texture`,value:`texture`},{label:`Size & Grade Guide`,value:`sizeAndGrade`}],Gu=(e,t)=>e?.length?t&&e.some(e=>e.id===t)?t:e[0].id:``,Ku=e=>{typeof window>`u`||e.forEach(e=>{if(!e)return;let t=new window.Image;t.src=e})},qu=({ranges:e,defaultTab:t=`details`,tabLabels:n,defaultRangeId:r,selectedGrade:i})=>{let[a,o]=c.default.useState(t),[s,l]=c.default.useState(Gu(e,r));if(c.default.useEffect(()=>{l(Gu(e,r))},[e,r]),c.default.useEffect(()=>{let t=e?.flatMap(e=>e.texture?.groups??[]).flatMap(e=>e.items??[]).map(e=>e.imageSrc).filter(e=>!!e)??[];Ku([...new Set(t)])},[e]),!e?.length)return null;let d=Wu.map(e=>({...e,label:n?.[e.value]??e.label})),f=e.find(e=>e.id===s)??e[0];return(0,u.jsxs)(`section`,{className:`w-full flex flex-col pb-10 md:pb-0`,children:[(0,u.jsx)(`div`,{className:`w-full`,children:(0,u.jsx)(`div`,{className:`max-w-6xl w-full mx-auto px-4 md:px-6`,children:(0,u.jsx)(`div`,{className:`flex justify-start`,children:(0,u.jsx)(ml,{items:d.map(e=>({label:e.label,value:e.value,disabled:!1})),value:a,onChange:e=>o(e)})})})}),(0,u.jsx)(`div`,{className:`md:max-w-6xl md:mx-auto px-4 md:px-6 md:py-8 pt-6 w-full md:pl-32 md:min-h-[489px]`,children:(0,u.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-[240px_minmax(0,1fr)] gap-6 md:gap-10`,children:[(0,u.jsx)(`div`,{className:`md:pr-8 md:border-r border-black/10 md:min-h-40`,children:(0,u.jsx)(zu,{items:e.map(e=>({id:e.id,label:e.label})),value:f.id,onChange:e=>l(e)})}),(0,u.jsx)(`div`,{children:(()=>{switch(a){case`details`:return(0,u.jsx)(Bu,{data:f.details});case`texture`:return(0,u.jsx)(Vu,{data:f.texture});case`sizeAndGrade`:return(0,u.jsx)(Uu,{data:f.sizeAndGrade,selectedGrade:i});default:return null}})()})]})})]})},Ju=({isOpen:e,title:t=`My Cart`,projectName:n=``,projectNamePlaceholder:r=`Enter project name`,emptyCartText:i=`Your cart is empty.`,goToCartLabel:a=`Go to Cart`,clearCartLabel:o=`Clear Cart`,freeLabel:s=`Free`,closeOverlayLabel:c=`Close cart overlay`,closeCartLabel:l=`Close cart`,flyoutAriaLabel:d=`Shopping cart flyout`,removeItemLabel:p=`Remove item`,decreaseQuantityLabel:m=`Decrease quantity`,increaseQuantityLabel:h=`Increase quantity`,items:g=[],className:_=``,onClose:v,onProjectNameChange:y,onQuantityChange:b,onRemoveItem:x,onClearCart:S,onGoToCart:C})=>{if(!e)return null;let w=g.length>0;return(0,u.jsxs)(`div`,{className:`fixed inset-0 z-50 flex justify-end`,children:[(0,u.jsx)(`button`,{type:`button`,"aria-label":c,className:`absolute inset-0 bg-black/40`,onClick:v}),(0,u.jsxs)(`aside`,{className:`relative z-10 flex h-full w-full max-w-md flex-col bg-white shadow-xl ${_}`,"aria-label":d,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between px-6 py-4`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-3xl text-primary`,children:t}),(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-xmark`,intent:`ghost`,variant:`ghost`,"aria-label":l,onClick:v,className:`text-secondaryActive!`})]}),(0,u.jsx)(`div`,{className:`mt-6 px-6`,children:(0,u.jsx)(`input`,{type:`text`,value:n,onChange:e=>y?.(e.target.value),placeholder:r,className:`w-full rounded-lg border border-secondaryActive px-4 py-1 text-primary outline-none focus:border-primary`})}),(0,u.jsx)(`div`,{className:`flex-1 overflow-y-auto px-6 py-5`,children:w?(0,u.jsx)(`div`,{className:`flex flex-col gap-4`,children:g.map(e=>(0,u.jsx)(le,{sku:e.sku,imageSrc:e.imageSrc,imageAlt:e.imageAlt,title:e.title,brand:e.brand,decorNumber:e.decorNumber,productType:e.productType,quantity:e.quantity,price:e.price,minQuantity:e.minQuantity,maxQuantity:e.maxQuantity,freeLabel:s,removeItemLabel:p,decreaseQuantityLabel:m,increaseQuantityLabel:h,onQuantityChange:t=>b?.(e.id,t),onRemoveItem:()=>x?.(e.id),id:``},e.id))}):(0,u.jsx)(`div`,{className:`rounded-lg border border-secondaryActive p-6`,children:(0,u.jsx)(f,{variant:`free`,className:`text-base text-primary`,children:i})})}),(0,u.jsx)(`div`,{className:`px-6 py-5`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,u.jsx)(O,{label:a,intent:`accent`,variant:`solid`,onClick:C,disabled:!w,className:`w-full`}),(0,u.jsx)(O,{label:o,intent:`secondary`,variant:`solid`,onClick:S,disabled:!w,className:`w-full`})]})})]})]})};function Yu(e=[]){return e.reduce((e,t)=>(e[t.id]=t,e[t.value]=t,e),{})}var Xu=(e,t=[],n=null)=>t.map(t=>e[t]).filter(e=>!!e).map(e=>({id:e.id,label:e.label,value:e.value,active:n===e.id||n===e.value})),Zu=(e=[])=>{let t=new Set;return(e??[]).filter(e=>typeof e.grade==`string`&&!!e.grade).filter(e=>!e.grade||t.has(e.grade)?!1:(t.add(e.grade),!0)).map(e=>({id:e.grade,label:`Grade ${e.grade}`,value:e.grade,active:!1}))},Qu=(e=[],t=null)=>{let n=new Set;return e.reduce((e,r)=>{if(!r.isSample&&!r.sampleAvailable)return e;let i=r.texture??r.finish;return!i||n.has(i)?e:(n.add(i),e.push({id:i,label:r.finish||i,value:i,active:t===i}),e)},[])},$u=(e=[])=>{let t=new Set;return e.reduce((e,n)=>{let r=n.rangeId;return!r||t.has(r)||(n.isSample||n.sampleAvailable)&&(t.add(r),e.push(r)),e},[])},ed=e=>(e??[]).map(e=>({id:e.id,title:e.title,subtitle:e.subtitle,grade:e.grade,thickness:e.thickness,items:e.items??[],mtoItems:e.mtoItems??[]})),td=e=>e?`Grade ${e}`:``,nd=({breadcrumbsProps:e,productData:t,showFavorites:n=!0,onDownloadSwatch:r,onDownloadFullSheet:i,onAddToWishlist:a,onAddToCart:o,onContactActionClick:s,onProductNavigate:l,cartFlyoutProps:d})=>{let f=t??{},p=f.images??[],m=f.product,h=f.content,g=f.optionSets,_=f.purchase,v=f.downloads,y=f.ranges??[],b=f.standardCopyHero,x=f.featuredProducts??[],S=m?.colourMatching,C=g?.ranges??[],w=g?.textures??[],T=g?.sizes??[],E=g?.sampleSizes??[],D=Yu(C),O=Yu(w),k=Yu(T),A=Yu(E),j=_?.tabOptions?.Sample??{},M=_?.tabOptions?.[`Buy Now`]??{},N=_?.defaults??{},P=Zu(f.variants??[]),F=f.variants?.[0]?.grade??null,[I,L]=c.default.useState(td(F));c.default.useEffect(()=>{L(td(F))},[F]);let R=P.map(e=>{let t=td(e.value);return{...e,active:t===I,onOptionClick:()=>L(t)}}),ee=j.productOptionIds,te=ee?.filter(e=>!!D[e])??[],ne=ee?.length?te:$u(f.variants??[]),z=j.textureOptionIds,re=z?.filter(e=>!!O[e])??[],ie=z?.length?Xu(O,re,N.texture??null):Qu(f.variants??[],N.texture??null),B=M.productOptionIds,V=B?.filter(e=>!!D[e])??[],H=B?V:C.map(e=>e.id),U={sku:m?.sku??``,decor:m?.decor??``,title:m?.title??``,description:m?.description??``,colourMatching:S,patternRepeat:m?.patternRepeat??``,variants:f.variants??[],onDownloadSwatch:()=>r?.(f),onDownloadFullSheet:()=>i?.(f),downloadSwatchLabel:v?.swatch?.label,downloadFullSheetLabel:v?.fullSheet?.label,carousel:{slides:p.map(e=>({id:e.id,image:{src:e.src,alt:e.alt??``},thumbnail:{src:e.thumbnailSrc??e.src,alt:e.thumbnailAlt??e.alt??``}})),initialIndex:0,text:h?.sampleDisclaimer??``,fallbackImage:{src:mc,alt:`Product image unavailable`}},tabs:g?.purchaseTabs??[`Sample`,`Buy Now`],tabLabels:h?.purchaseTabLabels,labels:h?.purchaseLabels,initialTab:h?.defaultPurchaseTab??`Buy Now`,tabOptions:{Sample:{minQuantity:j.minQuantity,maxQuantity:j.maxQuantity,productOptions:Xu(D,ne,h?.defaultRangeId??C[0]?.value??null),gradeOptions:[],textureOptions:ie,sizeOptions:Xu(A,j.sizeOptionIds??[],null)},"Buy Now":{minQuantity:M.minQuantity,maxQuantity:M.maxQuantity,productOptions:Xu(D,H,h?.defaultRangeId??C[0]?.value??null),gradeOptions:R,textureOptions:Xu(O,M.textureOptionIds??[],N.texture??null),sizeOptions:Xu(k,M.sizeOptionIds??[],N.size??null)}},productOptions:Xu(D,H,h?.defaultRangeId??C[0]?.value??null),gradeOptions:R,selectedGrade:I,textureOptions:Xu(O,M.textureOptionIds??[],N.texture??null),sizeOptions:Xu(k,M.sizeOptionIds??[],N.size??null),availabilityHref:h?.availabilityHref??`#`,availabilityLabel:h?.availabilityLabel??`View full product availability and information`,returnPolicyHref:h?.returnPolicyHref??`#`,returnPolicyLabel:h?.returnPolicyLabel??`View return policy`,notReturnableText:h?.notReturnableText??`This item is not returnable.`,priceLabel:m?.price?.label??``,priceValue:m?.price?.value??0,currency:m?.currency??`USD`,initialQuantity:N.quantity??1,minQuantity:N.minQuantity??1,maxQuantity:N.maxQuantity??99,showFavorites:n,actionMode:_?.actionMode??`cart`,contactActions:_?.contactActions,onAddToWishlist:e=>{a?.(e,f)},onAddToCart:e=>{o?.(e,f)},onContactActionClick:e=>{s?.(e,f)},onPurchaseInfoLinkClick:l},W={ranges:y.map(e=>{let t=e.sizeAndGrade?.definitions??[],n=ed(e.sizeAndGrade?.cards);return{id:e.id,label:e.label,details:{summary:e.details?.summary??``,content:e.details?.content,colourMatching:e.details?.colourMatching},texture:{groups:e.texture?.groups??[]},sizeAndGrade:{summary:e.sizeAndGrade?.summary??``,definitions:t,cards:n,content:e.sizeAndGrade?.content}}}),defaultTab:h?.defaultInfoTab??`details`,tabLabels:h?.productInformationTabLabels,defaultRangeId:h?.defaultRangeId??y[0]?.id??``,selectedGrade:I,className:``},G=e=>{let t=e.href||(e.rangeCode&&e.decorNumber?`/products/${e.rangeCode.toUpperCase()}/${e.decorNumber.toUpperCase()}`:``);t&&l?.(t,{source:`featured-products`,itemId:e.id,label:e.title,rangeCode:e.rangeCode,decorNumber:e.decorNumber})};return(0,u.jsxs)(`main`,{className:`mt-8 md:mt-10 w-full`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[e&&(0,u.jsx)(tl,{...e}),(0,u.jsx)(ql,{...U}),(0,u.jsx)(qu,{...W}),(0,u.jsx)(`div`,{className:`hidden md:block`,children:b&&(0,u.jsx)(Jl,{imageSrc:b.imageSrc??``,imageAlt:b.imageAlt??``,heading:b.heading??``,subheading:b.subheading??``,body:b.body??``,linkLabel:b.linkLabel,linkHref:b.linkHref??`#`})}),x.length>0&&(0,u.jsx)(ru,{title:t.featuredProductsTitle??``,items:x,onItemClick:G})]}),d?(0,u.jsx)(Ju,{...d}):null]})},rd=({options:e,selectedValue:t,onSelect:n})=>{let r=e[0]?.value,i=t??r,a=e=>{let t={value:e.value,label:e.label};n?.(t)};return(0,u.jsx)(`section`,{className:`w-full flex justify-center`,children:(0,u.jsx)(`div`,{className:`w-full max-w-6xl mx-auto overflow-x-auto pb-2 md:pb-0 px-4 md:px-0 mb-8 flex gap-4`,role:`radiogroup`,"aria-label":`Multi button selection`,children:e.map(e=>{let t=i===e.value;return(0,u.jsx)(O,{label:e.label,variant:t?`solid`:`ghost`,intent:t?`neutral`:`radio`,size:`sm`,active:t,onClick:()=>a(e),"aria-pressed":t},e.value)})})})},id=({standardCopyHeroProps:e,multiButtonBarProps:t,featuredArticleBannerProps:n,featureCardCollectionProps:r})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Jl,{...e}),(0,u.jsx)(rd,{...t}),(0,u.jsx)(pl,{...n}),(0,u.jsx)(Cl,{...r})]}),ad=(e,t)=>e.id??[e.decorNumber,e.title,e.brand,e.product,e.status??`standard`,t].join(`-`),od=({swatches:e=[],onSwatchClick:t})=>(0,u.jsx)(B,{className:`mb-16 px-4 md:my-12 md:px-0`,gridClassName:`md:grid-cols-4`,columns:2,gap:`md`,children:e.map((e,n)=>{let r=t?()=>t(e,n):e.onSwatchClick;return(0,u.jsx)(hc,{imageSrc:e.imageSrc,imageFallbackSrc:e.imageFallbackSrc,imageAlt:e.imageAlt,title:e.title,brand:e.brand,product:e.product,decorNumber:String(e.decorNumber),onSwatchClick:r,status:e.status},ad(e,n))})}),sd=e=>e.flatMap(e=>e.options.filter(e=>e.checked).map(e=>({id:e.id,label:e.label}))),cd=(e,t,n)=>e.map(e=>({...e,options:e.options.map(e=>e.id===t?{...e,checked:n}:e)})),ld=e=>e.map(e=>({...e,options:e.options.map(e=>({...e,checked:!1}))})),ud=e=>e.tabs?.selectedValue??e.tabs?.options[0]?.value??``,dd=e=>e.filters.sort?.value??e.filters.sort?.options?.[0]?.value??e.filters.sort?.options?.[0]?.label??``,fd=e=>e.filters.search?.value??``,pd=e=>e.filters.panel?e.filters.toggleButton?.initiallyVisible??!0:!1,md=({categoryData:e,className:t=``,onHeroLinkClick:n,onTabChange:r,onSortChange:i,onSearchChange:a,onFilterChange:o,onSwatchClick:s})=>{let[l,d]=c.default.useState(!1),[f,p]=c.default.useState(()=>pd(e)),m=e.filters.panel?.sections??[],h=ud(e),g=dd(e),_=fd(e),v=e.tabs,y=e.filters.sort,b=e.filters.search,x=e.filters.panel,S=!!(x||y||b),C=c.default.useMemo(()=>sd(m),[m]),w=e.filters.labels,T=w?.panelHeader??x?.header,E=w?.clearAllLabel??x?.clearAllLabel,D=w?.applyFiltersLabel??x?.applyFiltersLabel,O=w?.appliedOptionsHeader??x?.appliedOptionsHeader,k=f?w?.hideFiltersLabel??e.filters.toggleButton?.hideLabel??`Hide Filters`:w?.showFiltersLabel??e.filters.toggleButton?.showLabel??`Show Filters`,A=w?.mobileFiltersLabel??e.filters.toggleButton?.mobileLabel??T??`Filters`,j=c.default.useCallback((t,n)=>{o?.(t,n,e)},[e,o]),M=c.default.useCallback(e=>{j(cd(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`checkbox`})},[j,m]),N=c.default.useCallback(e=>{j(cd(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`colorSwatch`})},[j,m]),P=c.default.useCallback(()=>{j(ld(m),{action:`clear-all`})},[j,m]);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)(Jl,{...e.hero,onLinkClick:()=>n?.(e)}),v?(0,u.jsx)(rd,{options:v.options,selectedValue:h,onSelect:t=>{r?.(t,e)}}):null,S?(0,u.jsxs)(bs,{children:[x?(0,u.jsx)(xs,{className:`order-2 w-auto shrink-0 md:order-0`,buttonProps:{variant:`link`,intent:`primary`,label:k,onClick:()=>p(e=>!e)},mobileButtonProps:{variant:`solid`,intent:`neutral`,iconName:`sliders`,iconType:`fa-solid`,iconPosition:`left`,label:A,size:`sm`,onClick:()=>d(!0)}}):null,y?(0,u.jsx)(Ss,{className:`hidden md:block md:w-70`,dropdownProps:{...y,value:g,onChange:t=>{i?.(t.target.value,e)}}}):null,b?(0,u.jsx)(ws,{layoutVariant:`category`,searchPlaceholder:w?.searchPlaceholder??b.placeholder,searchBarProps:{...b,value:_,onChange:t=>{a?.(t.target.value,e)}}}):null]}):null,(0,u.jsxs)(`section`,{className:`mx-auto w-full md:flex md:max-w-6xl md:gap-8 md:py-6`,children:[f&&x?(0,u.jsx)(`div`,{className:`hidden md:block md:shrink-0`,children:(0,u.jsx)(Pu,{header:T,headerIcon:x.headerIcon,resetLabel:E,applyFiltersLabel:D,sections:m,appliedOptions:{header:O,clearAllLabel:E,optionsList:C,onRemoveOption:e=>{j(cd(m,e.id,!1),{action:`remove`,optionId:e.id})},onRemoveAll:P},onResetClick:P,onApplyFiltersClick:()=>void 0,onCheckboxChange:M,onColorSelect:N})}):null,l&&x?(0,u.jsx)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":T??A,className:`md:hidden`,children:(0,u.jsx)(Pu,{header:T,headerIcon:x.headerIcon,resetLabel:E,applyFiltersLabel:D,sections:m,appliedOptions:{header:O,clearAllLabel:E,optionsList:C,onRemoveOption:e=>{j(cd(m,e.id,!1),{action:`remove`,optionId:e.id})},onRemoveAll:P},onResetClick:P,onApplyFiltersClick:()=>d(!1),onCheckboxChange:M,onColorSelect:N})}):null,(0,u.jsx)(`div`,{className:`${l?`hidden`:`block`} my-8 md:my-0 md:block md:min-w-0 md:flex-1`,children:(0,u.jsx)(od,{swatches:e.decorGrid.swatches,onSwatchClick:(t,n)=>s?.(t,n,e)})})]})]})},hd=({images:e=[],onImageClick:t})=>(0,u.jsx)(B,{className:`mb-16 px-4 md:my-12 md:px-0`,gridClassName:`md:grid-cols-4`,columns:2,gap:`md`,children:e.map((e,n)=>(0,u.jsx)(`div`,{children:(0,u.jsx)(K,{className:`block w-full cursor-pointer text-left`,onCardClick:()=>t?.({image:e,index:n}),ariaLabel:`Open ${e.alt}`,children:(0,u.jsx)(j,{src:e.src,alt:e.alt,quality:e.quality,className:`aspect-square rounded-lg object-cover`})})},`${e.alt}-${n}`))}),gd=({standardCopyHeroProps:e,multiButtonBarProps:t,imageGridProps:n})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Jl,{...e}),(0,u.jsx)(rd,{...t}),(0,u.jsx)(bs,{layoutVariant:`separator`}),(0,u.jsx)(hd,{...n})]}),_d=({title:e,documentLinkCards:t})=>(0,u.jsx)(`section`,{className:`w-full flex justify-center mb-16 md:mt-12 md:mb-20`,children:(0,u.jsxs)(`div`,{className:`flex flex-col items-center justify-center w-full`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-2xl md:text-4xl text-center mb-4`,children:e}),(0,u.jsx)(`div`,{className:`w-full max-w-6xl px-4 md:px-0 grid grid-cols-1 md:grid-cols-2 gap-4 my-0 md:my-4 md:mx-auto`,children:t.map(e=>(0,u.jsx)(qs,{title:e.title,details:e.details,iconName:e.iconName,onDocumentClick:e.onDocumentClick},e.id))})]})}),vd=({standardCopyHeroProps:e,multiButtonBarProps:t,warrantyCardProps:n,documentLinkCollectionProps:r,infoCardProps:i,faqCardCollectionProps:a})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Jl,{...e}),(0,u.jsx)(rd,{...t}),(0,u.jsx)(z,{spacing:`section`,children:(0,u.jsx)(nu,{...n})}),(0,u.jsx)(_d,{...r}),(0,u.jsx)(z,{spacing:`section`,children:(0,u.jsx)(Ys,{...i})}),(0,u.jsx)(au,{...a})]}),yd=(e,t)=>e.id??[e.decorNumber,e.title,e.brand,e.rangeCode,t].join(`-`),bd=(e,t)=>e.slice(0,Math.max(0,Math.min(t??e.length,e.length))),xd=(e,t,n)=>n??`View ${e} more ${t}`,Sd=({searchFilterProps:e,decorResultsProps:t,resourceResultsProps:n,noResultsMessage:r})=>{let i=t?.items??[],a=n?.items??[],o=bd(i,t?.visibleItemCount),s=bd(a,n?.visibleItemCount),c=i.length-o.length,l=a.length-s.length,d=e.searchBarProps.value?.trim(),p=d?`Showing results for "${d}"`:`Search Results`,m=i.length>0,h=a.length>0,g=m||h;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(z,{isFirst:!0,spacing:`compactPaddedSection`,children:[(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`mb-6 text-2xl text-primary md:text-3xl`,children:p}),(0,u.jsx)(ws,{...e,layoutVariant:`full`})]}),m&&t?(0,u.jsxs)(z,{spacing:`compactPaddedSection`,children:[t.title?(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`mb-4 text-base font-bold text-tertiary md:mb-8`,children:t.title}):null,(0,u.jsx)(`div`,{className:`grid grid-cols-2 gap-6 md:grid-cols-5`,children:o.map((e,n)=>(0,u.jsx)(hc,{imageSrc:e.imageSrc,imageAlt:e.imageAlt??`${e.title} decor`,title:e.title,brand:e.brand??``,product:e.rangeCode,decorNumber:e.decorNumber??``,onSwatchClick:t.onItemClick?()=>t.onItemClick?.(e):void 0},yd(e,n)))}),c>0?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(O,{variant:`outline`,intent:`accent`,size:`sm`,label:xd(c,`decor results`,t.viewMoreLabel),onClick:t.onViewMoreClick})}):null]}):null,h&&n?(0,u.jsxs)(z,{spacing:`compactPaddedSection`,children:[n.title?(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`mb-4 text-base font-bold text-tertiary md:mb-8`,children:n.title}):null,(0,u.jsx)(`div`,{className:`flex flex-col gap-4 md:gap-8`,children:s.map((e,t)=>(0,u.jsx)(lc,{...e},`${e.title}-${t}`))}),l>0?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(O,{variant:`outline`,intent:`accent`,size:`sm`,label:xd(l,`resources`,n.viewMoreLabel),onClick:n.onViewMoreClick})}):null]}):null,g?null:(0,u.jsx)(z,{spacing:`paddedSection`,children:(0,u.jsx)(f,{variant:`body`,children:r})})]})},Cd=({loginImage:e,onCancelClick:t,...n})=>(0,u.jsx)(`section`,{className:`flex w-full justify-center px-4 py-10 md:py-16`,children:(0,u.jsxs)(`div`,{className:`${e?`md:grid md:max-w-5xl md:grid-cols-2 md:gap-12`:`max-w-lg`} w-full md:items-stretch`,children:[e?(0,u.jsx)(`div`,{className:`hidden min-h-96 overflow-hidden md:block`,children:(0,u.jsx)(j,{src:e.src,alt:e.alt,quality:e.quality??90,fit:e.fit??`cover`,useNetlifyImages:e.useNetlifyImages,className:`h-full w-full object-cover`})}):null,(0,u.jsx)(`div`,{className:`mx-auto w-full max-w-lg md:self-center`,children:(0,u.jsx)(Lu,{...n,onSecondaryClick:t})})]})}),wd=e=>{let t=e.options.find(t=>t.value===e.selectedValue)??e.options[0];return t?.value??t?.label??``},Td=({data:e,className:t=``,onProductChange:n,onSearchSubmit:r,onTabChange:i,onLocationSelect:a,onWebsiteClick:o,onDirectionsClick:s,onPhoneClick:c,onEmailClick:l})=>{let d=e.locations.length>0,p=e.results.selectedLocationId??e.map.selectedLocationId,m=wd(e.tabs);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)(dl,{...e.banner,onProductChange:t=>n?.(t,e),onSearchSubmit:t=>r?.(t,e)}),(0,u.jsx)(z,{spacing:`none`,className:`mb-8 pt-10`,innerClassName:`flex justify-center`,children:(0,u.jsx)(ml,{className:`w-full`,items:e.tabs.options.map(e=>({label:e.label,value:e.value,disabled:e.disabled})),value:m,onChange:t=>{let n=e.tabs.options.find(e=>(e.value??e.label)===t);n&&i?.({label:n.label,value:n.value},e)}})}),(0,u.jsx)(z,{spacing:`none`,className:`mb-8 pb-10 md:mb-10`,children:(0,u.jsx)(Du,{...e.map,locations:e.locations,selectedLocationId:e.map.selectedLocationId??p,onLocationSelect:t=>a?.(t,e)})}),d?(0,u.jsx)(uu,{...e.results,locations:e.locations,selectedLocationId:p,onWebsiteClick:t=>o?.(t,e),onDirectionsClick:t=>s?.(t,e),onPhoneClick:t=>c?.(t,e),onEmailClick:t=>l?.(t,e)}):(0,u.jsx)(z,{spacing:`paddedSection`,children:(0,u.jsxs)(`div`,{className:`text-center`,children:[e.emptyState?.heading?(0,u.jsx)(f,{as:`h2`,variant:`h2`,children:e.emptyState.heading}):null,e.emptyState?.body?(0,u.jsx)(f,{variant:`body`,children:e.emptyState.body}):null]})})]})},Ed=({title:e=`Order Confirmed`,message:t=`Thank you for your purchase! Your order has been confirmed and will be shipped soon.`,buttonLabel:n=`Return to Home`,onButtonClick:r})=>(0,u.jsx)(`section`,{className:`w-full bg-white`,children:(0,u.jsxs)(`div`,{className:`mx-auto flex max-w-6xl flex-col items-center px-6 py-20 text-center`,children:[(0,u.jsx)(`div`,{className:`mb-6 flex h-16 w-16 items-center justify-center rounded-full border-2 border-primary`,children:(0,u.jsx)(`span`,{className:`text-3xl leading-none text-primary`,children:`✓`})}),(0,u.jsx)(f,{as:`h1`,variant:`h1`,className:``,children:e}),(0,u.jsx)(f,{as:`p`,variant:`body`,className:`mt-4`,children:t}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(O,{type:`button`,variant:`solid`,intent:`accent`,label:n,onClick:r,className:`w-80`})})]})}),Dd=({shippingTitle:e=`Shipping Method`,paymentTitle:t=`Payment Summary`,shippingMethod:n={},paymentRows:r=[]})=>{let i=r.length>0;return(0,u.jsx)(`section`,{className:`w-full mt-10`,children:(0,u.jsxs)(`div`,{className:`flex w-full items-start justify-between gap-8`,children:[(0,u.jsxs)(`div`,{className:`${i?`w-1/2`:`w-full`} min-w-0`,children:[(0,u.jsx)(f,{as:`h3`,variant:`h3`,className:`mb-6 `,children:e}),(0,u.jsx)(`div`,{className:`rounded-lg bg-tertiaryActive p-5`,children:(0,u.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,u.jsxs)(`div`,{className:`min-w-0`,children:[n.methodLabel?(0,u.jsx)(f,{variant:`free`,className:`text-primary`,children:n.methodLabel}):null,n.estimatedDeliveryLabel?(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-sm text-tertiary`,children:n.estimatedDeliveryLabel}):null]}),n.price?(0,u.jsx)(f,{variant:`free`,className:`text-primary whitespace-nowrap`,children:n.price}):null]})})]}),i?(0,u.jsxs)(`div`,{className:`w-1/2 min-w-0`,children:[(0,u.jsx)(f,{as:`h3`,variant:`h3`,className:`mb-6 `,children:t}),(0,u.jsx)(`div`,{className:`rounded-lg bg-tertiaryActive p-5`,children:(0,u.jsx)(`div`,{className:`flex flex-col gap-5`,children:r.map((e,t)=>(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,u.jsx)(f,{variant:`free`,className:e.isEmphasized?`font-extrabold text-primary`:`text-primary`,children:e.label}),(0,u.jsx)(f,{variant:`free`,className:`${e.isEmphasized?`font-extrabold text-primary`:`text-primary`} ${e.valueClassName||``}`,children:e.value})]},`${e.label}-${t}`))})})]}):null]})})},Od=e=>(0,u.jsxs)(`div`,{className:`min-w-0 flex flex-col gap-1`,children:[(0,u.jsx)(f,{variant:`free`,className:`font-extrabold text-primary`,children:e.title}),e.name?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:e.name}):null,e.addressLine1?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:e.addressLine1}):null,e.addressLine2?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:e.addressLine2}):null,e.addressLine3?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:e.addressLine3}):null,e.country?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:e.country}):null]}),kd=({sectionTitle:e=`Order Receipt`,orderDetails:t={},shippingAddress:n={},billingAddress:r={},className:i=``})=>(0,u.jsx)(`section`,{className:`w-full ${i}`,children:(0,u.jsxs)(`div`,{className:`w-full`,children:[(0,u.jsx)(f,{as:`h3`,variant:`h3`,className:`mb-10 border-b border-secondaryActive pb-4 `,children:e}),(0,u.jsxs)(`div`,{className:`flex w-full items-start justify-between gap-12`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 flex flex-col gap-6`,children:[(0,u.jsx)(f,{variant:`free`,className:`font-extrabold text-primary`,children:t.title||`Order Details`}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[t.orderNumberLabel?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.orderNumberLabel}):null,t.orderNumber?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.orderNumber}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[t.orderDateLabel?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.orderDateLabel}):null,t.orderDate?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.orderDate}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[t.nameLabel?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.nameLabel}):null,t.name?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.name}):null,t.email?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.email}):null,t.phone?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.phone}):null]})]}),Od({title:n.title||`Shipping Address`,...n}),Od({title:r.title||`Billing Address`,...r})]})]})}),Ad=({sectionTitle:e=`Order Summary`,showPricing:t=!0,columnLabels:n={},items:r=[]})=>{let{orderDetails:i=`Order Details`,quantity:a=`Quantity`,unitPrice:o=`Unit Price`,total:s=`Total`}=n;return(0,u.jsx)(`section`,{className:`w-full`,children:(0,u.jsxs)(`div`,{className:`w-full`,children:[(0,u.jsx)(f,{as:`h3`,variant:`h3`,className:`mb-8`,children:e}),(0,u.jsx)(`div`,{className:`border-b border-secondaryActive pb-4`,children:(0,u.jsxs)(`div`,{className:t?`grid grid-cols-[minmax(0,1fr)_120px_120px_120px] items-center gap-6`:`grid grid-cols-[minmax(0,1fr)_120px] items-center gap-6`,children:[(0,u.jsx)(f,{variant:`free`,className:`font-extrabold text-primary`,children:i}),(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(f,{variant:`free`,className:`font-extrabold text-primary`,children:a})}),t?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(f,{variant:`free`,className:`font-extrabold text-primary`,children:o})}),(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(f,{variant:`free`,className:`font-extrabold text-primary`,children:s})})]}):null]})}),(0,u.jsx)(`div`,{className:`w-full`,children:r.map((e,n)=>(0,u.jsx)(`div`,{className:`border-b border-secondaryActive py-6`,children:(0,u.jsx)(tc,{...e,isReadOnly:!0,showPricing:t})},`${e.decorNumber||e.title||`item`}-${n}`))})]})})},jd=({cartConfirmedHeroProps:e,cartReceiptSectionProps:t,cartSummarySectionProps:n,cartOrderSummaryProps:r})=>(0,u.jsx)(`section`,{className:`w-full flex justify-center`,children:(0,u.jsxs)(`div`,{className:`w-full max-w-6xl`,children:[(0,u.jsx)(Ed,{...e}),(0,u.jsxs)(`div`,{className:`px-12 pb-16`,children:[(0,u.jsx)(`div`,{className:`mt-10`,children:(0,u.jsx)(kd,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Ad,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Dd,{...r})})]})]})}),Md=({title:e=`Ship To`,idPrefix:t=`shipping`,firstName:n=``,lastName:r=``,email:i=``,phoneNumber:a=``,companyName:o=``,userType:s=``,address:c=``,apartment:l=``,postalCode:d=``,city:p=``,country:m=`united-states`,countryLabel:h,stateProvince:_=``,addressRegionVariant:v=`default`,countryDisplayMode:y=`select`,countryOptions:b=[],stateProvinceOptions:x=[],userTypeOptions:S=[],firstNamePlaceholder:C=`First Name`,lastNamePlaceholder:w=`Last Name`,emailPlaceholder:T=`Email`,phoneNumberPlaceholder:E=`Phone Number`,companyNamePlaceholder:D=`Company Name (Optional)`,userTypePlaceholder:O=`I am a*`,addressPlaceholder:k=`Address`,apartmentPlaceholder:A=`Apartment/Suite/Building (Optional)`,cityPlaceholder:j,postalCodePlaceholder:M,stateProvincePlaceholder:N,countryPlaceholder:P=`Country`,showCompanyName:F=!0,showContactFields:I=!0,addressErrorMessage:L,errors:R={},onFirstNameChange:ee,onLastNameChange:te,onEmailChange:ne,onPhoneNumberChange:z,onCompanyNameChange:re,onUserTypeChange:ie,onAddressChange:B,onApartmentChange:V,onPostalCodeChange:H,onCityChange:U,onCountryChange:W,onStateProvinceChange:G,onFirstNameBlur:ae,onLastNameBlur:oe,onEmailBlur:se,onPhoneNumberBlur:ce,onCompanyNameBlur:le,onUserTypeBlur:ue,onAddressBlur:K,onApartmentBlur:de,onPostalCodeBlur:fe,onCityBlur:pe,onCountryBlur:me,onStateProvinceBlur:he})=>{let ge=v===`ca`||v===`mx`,_e=v===`uk`,ve=j??`City`,ye=M??`Postal Code`,be=N??(v===`ca`?`Province`:`State/Province`),xe=h??b.find(e=>e.value===m)?.label??m,Se=`${t}-address-error`,Ce=!!L,we=(0,u.jsx)($,{id:`${t}-city`,name:`city`,placeholder:ve,value:p,hasError:Ce||!!R.city,ariaDescribedBy:Ce?Se:void 0,errorMessage:R.city,onChange:U,onBlur:pe}),Te=(0,u.jsx)($,{id:`${t}-postal-code`,name:`postalCode`,placeholder:ye,value:d,hasError:Ce||!!R.postalCode,ariaDescribedBy:Ce?Se:void 0,errorMessage:R.postalCode,onChange:H,onBlur:fe}),Ee=(0,u.jsx)(Q,{id:`${t}-state-province`,name:`stateProvince`,options:x,value:_,placeholder:be,hasError:Ce||!!R.stateProvince,ariaDescribedBy:Ce?Se:void 0,variant:`field`,onChange:G,onBlur:he}),De=y===`readonly`?(0,u.jsx)($,{id:`${t}-country`,name:`country`,placeholder:P,value:xe,readOnly:!0,hasError:Ce||!!R.country,ariaDescribedBy:Ce?Se:void 0,errorMessage:R.country}):(0,u.jsx)(Q,{id:`${t}-country`,name:`country`,options:b,value:m,placeholder:P,hasError:Ce||!!R.country,ariaDescribedBy:Ce?Se:void 0,variant:`field`,onChange:W,onBlur:me}),Oe=(0,u.jsxs)(u.Fragment,{children:[Te,we,De,Ee]});return ge&&(Oe=(0,u.jsxs)(u.Fragment,{children:[we,Ee,Te,De]})),_e&&(Oe=(0,u.jsxs)(u.Fragment,{children:[we,Te,(0,u.jsx)(`div`,{className:`col-span-2`,children:De})]})),(0,u.jsxs)(`section`,{className:`flex flex-col gap-6`,children:[(0,u.jsx)(f,{as:`h2`,variant:`bold`,className:`text-primary`,children:e}),(0,u.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[I?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)($,{id:`${t}-first-name`,name:`firstName`,placeholder:C,value:n,hasError:!!R.firstName,errorMessage:R.firstName,onChange:ee,onBlur:ae}),(0,u.jsx)($,{id:`${t}-last-name`,name:`lastName`,placeholder:w,value:r,hasError:!!R.lastName,errorMessage:R.lastName,onChange:te,onBlur:oe}),(0,u.jsx)($,{id:`${t}-email`,name:`email`,type:`email`,placeholder:T,value:i,hasError:!!R.email,errorMessage:R.email,onChange:ne,onBlur:se}),(0,u.jsx)($,{id:`${t}-phone-number`,name:`phoneNumber`,type:`tel`,placeholder:E,value:a,hasError:!!R.phoneNumber,errorMessage:R.phoneNumber,onChange:z,onBlur:ce}),S.length>0?(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)(Q,{id:`${t}-user-type`,name:`userType`,options:S,value:s,placeholder:O,hasError:!!R.userType,variant:`field`,onChange:e=>ie?.(e.target.value),onBlur:ue})}):null,F?(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-company-name`,name:`companyName`,placeholder:D,value:o,hasError:!!R.companyName,errorMessage:R.companyName,onChange:re,onBlur:le})}):null]}):null,(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-address`,name:`address`,placeholder:k,value:c,hasError:Ce||!!R.address,ariaDescribedBy:Ce?Se:void 0,errorMessage:R.address,onChange:B,onBlur:K})}),(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-apartment`,name:`apartment`,placeholder:A,value:l,hasError:!!R.apartment,errorMessage:R.apartment,onChange:V,onBlur:de})}),L?(0,u.jsxs)(`div`,{id:Se,role:`alert`,className:`col-span-2 flex items-center gap-3 rounded-md border border-accent bg-accent/10 p-4`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`route`,size:`xl`,color:`accent`,className:`shrink-0`}),(0,u.jsx)(f,{variant:`body`,className:`font-bold text-accent`,children:L})]}):null,Oe]})]})},Nd=({title:e,options:t=[],selectedValue:n,name:r,className:i=``,onChange:a})=>(0,u.jsxs)(`section`,{className:`flex w-full flex-col gap-4 ${i}`,children:[e?(0,u.jsx)(f,{as:`h3`,variant:`bold`,className:`text-primary`,children:e}):null,(0,u.jsx)(`div`,{className:`flex w-full flex-col gap-4`,children:t.map(e=>(0,u.jsx)(Xo,{id:e.id,name:r,value:e.value,label:e.label,description:e.description,checked:n===e.value,disabled:e.disabled,onChange:e=>a?.(e)},e.id))})]}),Pd=({steps:e=[],currentStep:t=0,onStepClick:n,className:r=``,completedColorClass:i=`text-accent!`,upcomingColorClass:a=`text-primary`,connectorCompletedClass:o=`bg-accent!`,connectorUpcomingClass:s=`bg-primary`})=>{if(!e.length)return null;let l=typeof t==`number`?t:e.findIndex(e=>e===t),d=l>=0?l:0,p=(e,t)=>e<t?{left:o,icon:i,right:o}:e===t?{left:o,icon:a,right:s}:{left:s,icon:a,right:s},m=(e,t)=>{let r=t<=d?i:a;return typeof n==`function`?(0,u.jsx)(`button`,{type:`button`,onClick:()=>n(e,t),className:`shrink-0 text-left`,children:(0,u.jsx)(f,{as:`span`,className:`${r} whitespace-nowrap`,children:e})},`step-${e}-${t}`):(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(f,{as:`span`,className:`${r} whitespace-nowrap`,children:e})},`step-${e}-${t}`)};return(0,u.jsx)(`div`,{className:`flex w-full items-center ${r}`,children:e.map((t,n)=>{if(n===e.length-1)return m(t,n);let r=p(n,d);return(0,u.jsxs)(c.default.Fragment,{children:[m(t,n),(0,u.jsxs)(`div`,{className:`mx-3 flex min-w-0 flex-1 items-center`,children:[(0,u.jsx)(`span`,{className:`block h-px flex-1 ${r.left}`}),(0,u.jsx)(g,{iconName:`fa-circle-check`,iconType:`fa-solid`,className:`mx-3 shrink-0 text-md ${r.icon}`}),(0,u.jsx)(`span`,{className:`block h-px flex-1 ${r.right}`})]})]},`${t}-${n}`)})})},Fd=({shippingAddressFormProps:e,shippingOptionSelectorProps:t,checkoutProgressIndicatorProps:n,sampleOrderSummaryPanelProps:r,submitLabel:i=`Submit Sample Order`,onSubmitSampleOrder:a})=>(0,u.jsx)(`section`,{className:`flex w-full justify-center px-4 py-10 pb-24 md:py-16 md:pb-28`,children:(0,u.jsx)(`div`,{className:`w-full max-w-6xl`,children:(0,u.jsxs)(`div`,{className:`grid w-full grid-cols-1 gap-8 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Md,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Nd,{...t})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Pd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Tl,{...r})}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(O,{label:i,intent:`accent`,fullWidth:!0,onClick:a})})]})]})})}),Id=({title:e=`Ordered Samples`,items:t,checkoutProgressIndicatorProps:n,sampleOrderSummaryPanelProps:r,proceedToShippingLabel:i=`Proceed to Shipping`,browseMoreSamplesLabel:a=`Browse More Samples`,onQuantityChange:o,onRemoveItem:s,onProceedToShipping:c,onBrowseMoreSamples:l})=>(0,u.jsx)(`section`,{className:`flex w-full justify-center px-4 py-10 pb-24 md:py-16 md:pb-28`,children:(0,u.jsx)(`div`,{className:`w-full max-w-6xl`,children:(0,u.jsxs)(`div`,{className:`grid w-full grid-cols-1 gap-8 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{className:`rounded-lg bg-tertiaryActive`,children:[(0,u.jsx)(f,{as:`h2`,id:`bpcs-cart-samples-heading`,variant:`free`,className:`p-6 text-xl font-extrabold text-primary`,children:e}),(0,u.jsx)(`ol`,{"aria-labelledby":`bpcs-cart-samples-heading`,className:`flex min-h-96 flex-col`,children:t.map((e,n)=>{let r=n===t.length-1;return(0,u.jsxs)(`li`,{children:[(0,u.jsx)(tc,{imageSrc:e.imageSrc,imageAlt:e.imageAlt||e.title,title:e.title,brand:e.brand||``,decorNumber:e.decorNumber||``,quantity:e.quantity,minQuantity:e.minQuantity,maxQuantity:e.maxQuantity,showPricing:!1,onQuantityChange:t=>o?.(e.id,t),onRemoveItem:()=>s?.(e.id)}),r?null:(0,u.jsx)(`div`,{className:`mx-6 border-b border-secondaryHover`})]},e.id)})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Pd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Tl,{...r})}),(0,u.jsxs)(`div`,{className:`mt-8 flex flex-col gap-3 bg-white`,children:[(0,u.jsx)(O,{label:i,intent:`accent`,fullWidth:!0,onClick:c}),(0,u.jsx)(O,{label:a,intent:`muted`,variant:`outline`,fullWidth:!0,onClick:l})]})]})]})})}),Ld=({customerDetailsFormProps:e,shippingAddressFormProps:t,shippingOptionSelectorProps:n,checkoutProgressIndicatorProps:r,sampleOrderSummaryPanelProps:i,privacyConsentLabel:a=`I have read and agree to the`,privacyPolicyLabel:o=`Privacy Policy`,privacyConsentChecked:s=!1,privacyConsentErrorMessage:c,submitLabel:l=`Submit Sample Order`,onPrivacyConsentChange:d,onPrivacyPolicyClick:p,onSubmitSampleOrder:m})=>(0,u.jsx)(`section`,{className:`flex w-full justify-center px-4 py-10 pb-24 md:py-16 md:pb-28`,children:(0,u.jsx)(`div`,{className:`w-full max-w-6xl`,children:(0,u.jsxs)(`div`,{className:`grid w-full grid-cols-1 gap-8 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(El,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Md,{...t,addressRegionVariant:`uk`,showContactFields:!1})}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Nd,{...n})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Pd,{...r}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Tl,{...i})}),(0,u.jsxs)(`div`,{className:`mt-8 flex flex-wrap items-center gap-x-1 gap-y-2`,children:[(0,u.jsx)(Go,{id:`salesforce-privacy-consent`,name:`privacyConsent`,label:a,checked:s,onChange:({checked:e})=>d?.(e)}),(0,u.jsx)(`button`,{type:`button`,className:`text-sm font-bold text-accent underline underline-offset-2`,onClick:p,children:o}),c?(0,u.jsx)(f,{role:`alert`,variant:`caption`,className:`w-full text-accent`,children:c}):null]}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(O,{label:l,intent:`accent`,fullWidth:!0,onClick:m})})]})]})})}),Rd=({cartConfirmedHeroProps:e,cartReceiptSectionProps:t,cartSummarySectionProps:n,cartOrderSummaryProps:r})=>(0,u.jsx)(`section`,{className:`w-full flex justify-center`,children:(0,u.jsxs)(`div`,{className:`w-full max-w-6xl`,children:[(0,u.jsx)(Ed,{...e}),(0,u.jsxs)(`div`,{className:`px-12 pb-16`,children:[(0,u.jsx)(`div`,{className:`mt-10`,children:(0,u.jsx)(kd,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Ad,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Dd,{...r})})]})]})}),zd=({discountCode:e=``,discountCodeStatus:t=`idle`,discountCodeMessage:n=``,subtotalLabel:r=`Sub total`,discountLabel:i=`Discount`,taxLabel:a=`Tax`,shippingLabel:o=`Shipping`,totalLabel:s=`Total`,subtotal:l=`$0.00`,discount:d=``,tax:p=`Not calculated`,shipping:m=`Not calculated`,total:h=`$0.00`,continueLabel:_=`Continue`,discountCodePlaceholder:v=`Enter discount code`,applyDiscountLabel:y=`Apply`,notCalculatedLabel:b=`Not calculated`,showDiscountCode:x=!0,onDiscountCodeChange:S,onApplyDiscount:C,onContinue:w,className:T=``})=>{let E=!!(e.trim()&&d),D=!!(p.trim()&&p!==`Not calculated`&&p!==b),k=D?p:b,A=!!(m.trim()&&m!==`Not calculated`&&m!==b),j=A?m:b,[M,N]=c.default.useState(!0),P=t!==`idle`&&!!n&&(t!==`success`||M),F=t===`success`;return c.default.useEffect(()=>{if(N(!0),t!==`success`)return;let e=window.setTimeout(()=>{N(!1)},2200);return()=>{window.clearTimeout(e)}},[t,n]),(0,u.jsxs)(`section`,{className:`flex w-full flex-col gap-8 ${T}`,children:[x?(0,u.jsxs)(`div`,{className:`flex items-start gap-4`,children:[(0,u.jsxs)(`div`,{className:`flex flex-1 flex-col gap-2`,children:[(0,u.jsx)(Ho,{id:`cart-totals-discount-code`,name:`discountCode`,value:e,placeholder:v,hasError:t===`error`,onChange:S}),P?F?(0,u.jsxs)(`div`,{className:`flex items-center gap-2 rounded-md border border-secondaryHover bg-tertiaryActive 0 px-3 py-2 `,"aria-live":`polite`,children:[(0,u.jsx)(g,{iconType:`fa-regular`,iconName:`face-grin-beam`,size:`xl`,className:`text-saleGreen`}),(0,u.jsx)(f,{variant:`body`,className:`font-bold text-shadow-saleGreen`,children:n})]}):(0,u.jsx)(f,{variant:`caption`,className:`text-accent`,"aria-live":`polite`,children:n}):null]}),(0,u.jsx)(O,{type:`button`,variant:`solid`,intent:`accent`,label:y,onClick:C,className:`min-w-20`})]}):null,(0,u.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(f,{variant:`body`,children:r}),(0,u.jsx)(f,{variant:`body`,children:l})]}),E?(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(f,{variant:`body`,children:i}),(0,u.jsx)(f,{variant:`body`,className:`text-accent`,children:d})]}):null,(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(f,{variant:`body`,children:a}),(0,u.jsx)(f,{variant:`body`,className:D?``:`text-secondaryActive`,children:k})]}),(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(f,{variant:`body`,children:o}),(0,u.jsx)(f,{variant:`body`,className:A?``:`text-secondaryActive`,children:j})]}),(0,u.jsxs)(`div`,{className:`flex items-center justify-between pt-2`,children:[(0,u.jsx)(f,{variant:`bold`,children:s}),(0,u.jsx)(f,{variant:`bold`,children:h})]})]}),(0,u.jsx)(O,{type:`button`,variant:`solid`,intent:`accent`,className:`w-full`,onClick:w,children:_})]})},Bd=({paymentTypeTitle:e=`Select Payment Type`,paymentTypeSelectorProps:t,cardNumber:n=``,expirationDate:r=``,securityCode:i=``,errors:a={},onCardNumberChange:o,onExpirationDateChange:s,onSecurityCodeChange:c,onCardNumberBlur:l,onExpirationDateBlur:d,onSecurityCodeBlur:p})=>(0,u.jsxs)(`section`,{className:`flex w-full flex-col gap-6`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,u.jsx)(f,{as:`h2`,variant:`bold`,className:`text-primary`,children:e}),(0,u.jsx)(Nd,{...t})]}),(0,u.jsxs)(`div`,{className:`mt-10 flex flex-col gap-4`,children:[(0,u.jsx)($,{id:`payment-card-number`,name:`cardNumber`,placeholder:`Card Number`,value:n,hasError:!!a.cardNumber,errorMessage:a.cardNumber,onChange:o,onBlur:l}),(0,u.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,u.jsx)($,{id:`payment-expiration-date`,name:`expirationDate`,placeholder:`MM/YY`,value:r,hasError:!!a.expirationDate,errorMessage:a.expirationDate,onChange:s,onBlur:d}),(0,u.jsx)($,{id:`payment-security-code`,name:`securityCode`,placeholder:`CVC`,value:i,hasError:!!a.securityCode,errorMessage:a.securityCode,onChange:c,onBlur:p})]})]})]}),Vd=({shippingMethodSelectorProps:e,cartPaymentPanelProps:t,checkoutProgressIndicatorProps:n,cartTotalsPanelProps:r})=>(0,u.jsx)(`section`,{className:`w-full flex justify-center mt-10 pb-16`,children:(0,u.jsxs)(`div`,{className:`grid w-full max-w-6xl grid-cols-2 gap-8`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Nd,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Bd,{...t})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Pd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(zd,{...r})})]})]})}),Hd=({shippingAddressFormProps:e,billingAddressFormProps:t={},checkoutProgressIndicatorProps:n,cartTotalsPanelProps:r,billingSectionTitle:i=`Billing Information`,sameAsShipping:a=!0,sameAsShippingLabel:o=`My billing address is the same as my shipping address`,onSameAsShippingChange:s})=>{let[l,d]=c.default.useState(a);c.default.useEffect(()=>{d(a)},[a]);let p=t.countryOptions?.length?t.countryOptions:e.countryOptions,m=t.stateProvinceOptions?.length?t.stateProvinceOptions:e.stateProvinceOptions;return(0,u.jsx)(`section`,{className:`w-full flex justify-center mt-10 pb-16`,children:(0,u.jsxs)(`div`,{className:`grid w-full max-w-6xl grid-cols-2 gap-8`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Md,{...e}),(0,u.jsxs)(`div`,{className:`mt-8 flex flex-col gap-4`,children:[(0,u.jsx)(f,{as:`h2`,variant:`bold`,className:`text-primary`,children:i}),(0,u.jsx)(Go,{id:`same-as-shipping`,name:`sameAsShipping`,label:o,checked:l,onChange:e=>{d(e.checked),s?.(e)}})]}),l?null:(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(Md,{...t,idPrefix:t.idPrefix??`billing`,title:t.title??``,countryOptions:p,stateProvinceOptions:m})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Pd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(zd,{...r})})]})]})})},Ud=(e,t,n)=>new Intl.NumberFormat(t,{style:`currency`,currency:n}).format(e),Wd=({subtotal:e,shippingCost:t,items:n=[],title:r=`Order Summary`,totalLabel:i=`Total`,locale:a=`en-US`,currency:o=`USD`,removeItemLabel:s=`Remove item`,decreaseQuantityLabel:c=`Decrease quantity`,increaseQuantityLabel:l=`Increase quantity`,onQuantityChange:d,onRemoveItem:p})=>{if(n.length===0)return null;let m=e+t;return(0,u.jsx)(`section`,{"aria-labelledby":`cart-summary-heading`,children:(0,u.jsxs)(`div`,{className:`w-full rounded-lg bg-tertiaryActive min-h-[34rem]`,children:[(0,u.jsx)(f,{as:`h2`,id:`cart-summary-heading`,variant:`free`,className:`p-6 text-xl font-extrabold text-primary`,children:r}),(0,u.jsx)(`ol`,{className:`flex flex-col min-h-[24rem]`,children:n.map((e,t)=>{let r=t===n.length-1;return(0,u.jsxs)(`li`,{children:[(0,u.jsx)(tc,{imageSrc:e.imageSrc,imageAlt:e.imageAlt||e.title,title:e.title,brand:e.brand||``,decorNumber:e.decorNumber||``,quantity:e.quantity,price:e.price,minQuantity:e.minQuantity,maxQuantity:e.maxQuantity,removeItemLabel:s,decreaseQuantityLabel:c,increaseQuantityLabel:l,onQuantityChange:t=>d?.(e.id,t),onRemoveItem:()=>p?.(e.id)}),r?null:(0,u.jsx)(`div`,{className:`mx-6 border-b border-secondaryHover`})]},e.id)})}),(0,u.jsx)(`div`,{className:`px-6 pt-8 pb-8 border-t border-secondaryActive`,children:(0,u.jsxs)(`div`,{className:`flex justify-between pb-2`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-left font-bold`,children:i}),(0,u.jsx)(f,{variant:`free`,className:`text-right font-bold pr-7`,children:Ud(m,a,o)})]})})]})})},Gd=({currentStep:e=0,steps:t=[`Account`,`Shipping`,`Payment`],activeMode:n=`signIn`,email:r=``,password:i=``,firstName:a=``,lastName:o=``,phoneNumber:s=``,userType:c=``,confirmPassword:l=``,marketingOptIn:d=!1,termsAccepted:f=!1,passwordRequirementsText:p,emailError:m=``,passwordError:h=``,firstNameError:g=``,phoneNumberError:_=``,userTypeError:v=``,confirmPasswordError:y=``,termsAcceptedError:b=``,emailHasError:x=!1,passwordHasError:S=!1,firstNameHasError:C=!1,phoneNumberHasError:w=!1,userTypeHasError:T=!1,confirmPasswordHasError:E=!1,termsAcceptedHasError:D=!1,actionLabels:O,labels:k,onModeChange:A,onEmailChange:j,onPasswordChange:M,onFirstNameChange:N,onLastNameChange:P,onPhoneNumberChange:F,onUserTypeChange:I,onConfirmPasswordChange:L,onMarketingOptInChange:R,onTermsAcceptedChange:ee,onEmailBlur:te,onPasswordBlur:ne,onForgotPasswordClick:z,onTermsClick:re,onPrivacyClick:ie,onContinue:B,onContinueAsGuest:V})=>(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-8`,children:[(0,u.jsx)(Pd,{steps:t,currentStep:e}),(0,u.jsx)(Lu,{data:{mode:n,email:r,password:i,firstName:a,lastName:o,phoneNumber:s,userType:c,confirmPassword:l,marketingOptIn:d,termsAccepted:f,passwordRequirementsText:p,errors:{email:x?m:void 0,password:S?h:void 0,firstName:C?g:void 0,phoneNumber:w?_:void 0,userType:T?v:void 0,confirmPassword:E?y:void 0,termsAccepted:D?b:void 0}},actionLabels:O??{signInPrimary:`Continue`,createAccountPrimary:`Continue`,secondary:`Continue as guest`},labels:k,onModeChange:A,onEmailChange:j,onPasswordChange:M,onFirstNameChange:N,onLastNameChange:P,onPhoneNumberChange:F,onUserTypeChange:I,onConfirmPasswordChange:L,onMarketingOptInChange:R,onTermsAcceptedChange:ee,onEmailBlur:te,onPasswordBlur:ne,onForgotPasswordClick:z,onTermsClick:re,onPrivacyClick:ie,onSignInClick:B,onCreateAccountClick:B,onSecondaryClick:V})]}),Kd=e=>e.customerState===`authenticated`?(0,u.jsx)(`section`,{className:`mt-10 flex w-full justify-center px-4 pb-16 md:px-6`,children:(0,u.jsxs)(`div`,{className:`w-full max-w-3xl`,children:[(0,u.jsx)(Pd,{...e.checkoutProgressIndicatorProps}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Wd,{...e.cartSummaryProps})}),(0,u.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,u.jsx)(O,{label:e.continueLabel??`Continue to shipping`,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`accent`,className:`w-full md:w-auto`,disabled:e.continueDisabled,onClick:e.onContinueClick})})]})}):(0,u.jsx)(`section`,{className:`mt-10 flex w-full justify-center px-4 pb-16 md:px-6`,children:(0,u.jsxs)(`div`,{className:`grid w-full max-w-6xl grid-cols-1 gap-8 md:grid-cols-2`,children:[(0,u.jsx)(Wd,{...e.cartSummaryProps}),(0,u.jsx)(Gd,{...e.checkoutAccountStepProps})]})}),qd=({pageTitle:e,pageDescription:t,sideNavProps:n,headerLeading:r,headerActions:i,backgroundJobTrayProps:a,children:o})=>{let s=t?.trim()??``;return(0,u.jsx)(`div`,{className:`min-h-screen bg-secondary`,children:(0,u.jsxs)(`div`,{className:`flex min-h-screen overflow-hidden bg-secondary`,children:[(0,u.jsx)(`aside`,{className:`hidden w-56 shrink-0 md:block`,children:(0,u.jsx)(Sc,{...n})}),(0,u.jsxs)(`main`,{className:`min-w-0 flex-1 bg-adminSideNavBackground p-4 md:p-6`,children:[(0,u.jsxs)(`header`,{className:`flex flex-col gap-4 border-b border-borderTertiary pb-5 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{className:`min-w-0`,children:[r,(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`text-2xl font-bold text-primary`,children:e}),s?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:s}):null]}),i?(0,u.jsx)(`div`,{className:`shrink-0`,children:i}):null]}),o]}),a?(0,u.jsx)(kc,{...a}):null]})})},Jd={loading:{iconName:`spinner`,iconClassName:`text-tertiary`,defaultTitle:`Loading`},empty:{iconName:`inbox`,iconClassName:`text-tertiary`,defaultTitle:`No data available`},error:{iconName:`triangle-exclamation`,iconClassName:`text-accent`,defaultTitle:`Unable to load data`}},Yd=e=>{if(e===`loading`)return`status`;if(e===`error`)return`alert`},Xd=({status:e,action:t,onRetryClick:n})=>{if(e.state===`ready`)return null;let r=Jd[e.state],i=e.title?.trim()||r.defaultTitle,a=e.message?.trim()??``,o=e.detail?.trim()??``;return(0,u.jsx)(`section`,{role:Yd(e.state),"aria-live":e.state===`loading`?`polite`:void 0,className:`mt-5 flex min-h-64 items-center justify-center rounded-lg border border-borderTertiary bg-secondary p-6 text-center shadow-sm`,children:(0,u.jsxs)(`div`,{className:`max-w-lg`,children:[e.state===`loading`?(0,u.jsx)(v,{label:``,size:`2xl`}):(0,u.jsx)(g,{iconType:`fa-solid`,iconName:r.iconName,alt:``,size:`2xl`,className:r.iconClassName}),(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`mt-4 text-lg font-bold text-primary`,children:i}),a?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:a}):null,o?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-xs text-tertiary`,children:o}):null,t?(0,u.jsx)(`div`,{className:`mt-5`,children:t}):null,!t&&e.state===`error`&&e.retryLabel?(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(O,{label:e.retryLabel,iconType:`fa-solid`,iconName:`rotate`,iconAlt:``,variant:`solid`,intent:`primary`,onClick:n})}):null]})})},Zd=e=>e===`error`?`border-accent bg-accent/10`:e===`warning`?`border-yellow-500 bg-yellow-50`:e===`success`?`border-saleGreen bg-green-50`:`border-borderTertiary bg-adminSideNavBackground`,Qd=e=>e===`saved`?`text-saleGreen`:e===`error`?`text-accent`:`text-yellow-700`,$d=({status:e,label:t,errorMessage:n,lastSavedLabel:r})=>e===`saved`?null:(0,u.jsxs)(`div`,{className:`text-xs text-tertiary`,children:[(0,u.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[e===`saving`?(0,u.jsx)(v,{label:``,size:`xs`}):(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`circle-exclamation`,alt:``,size:`xs`,className:Qd(e)}),t]}),r?(0,u.jsxs)(`span`,{className:`ml-4`,children:[`Saved `,r]}):null,n?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:n}):null]}),ef=e=>{let t=e.onBackClick?(0,u.jsx)(O,{label:e.backLabel??`Back to browse`,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`ghost`,intent:`primary`,size:`sm`,className:`px-0`,onClick:e.onBackClick}):void 0;if(!(`data`in e)){let n=e.state===`notFound`||e.state===`empty`?`empty`:e.state;return(0,u.jsxs)(qd,{pageTitle:e.pageTitle,sideNavProps:e.sideNavProps,backgroundJobTrayProps:e.backgroundJobTrayProps,children:[t?(0,u.jsx)(`div`,{className:`mt-5`,children:t}):null,(0,u.jsx)(Xd,{status:{state:n,message:e.message,retryLabel:e.state===`error`?e.actionLabel:void 0},onRetryClick:`onActionClick`in e?e.onActionClick:void 0})]})}let{data:n,sideNavProps:r={items:[]},backgroundJobTrayProps:i,onTabSelect:a,onLocalizationSelect:o,onDecorFieldChange:s,onDecorSave:c,onDecorCancel:l,onDeleteDecorClick:d,onLxImport:p,onNoticeActionClick:m}=e,{decor:h,decorEditor:_}=n,y=n.availableTabs??[`decor`,`sheets`,`samples`],b=n.mode===`create`,x=n.region===`north-america`,S=n.lxImport?.state===`loading`,C=x&&!b&&!!n.lxImport,w=h.name.trim()||`New decor`,T=`Decor ${h.decorCode} · Range ${h.rangeCode}`;b&&(T=`Enter a decor code to begin`,h.decorCode.trim()&&(T=`Decor ${h.decorCode}`,h.rangeCode.trim()&&(T+=` · Range ${h.rangeCode}`)));let E=_.activeLocalization.saveStatus===`saving`,D=_.searchColorFieldId?[..._.sharedFields,..._.localizedFields].filter(e=>e.id===_.searchColorFieldId):[],k=_.decorFlagFieldId?_.sharedFields.filter(e=>e.id===_.decorFlagFieldId):[],A=_.sharedFields.filter(e=>e.id!==_.searchColorFieldId&&e.id!==_.decorFlagFieldId),M=_.localizedFields.filter(e=>e.id!==_.searchColorFieldId);return(0,u.jsxs)(qd,{pageTitle:n.pageTitle,pageDescription:n.pageDescription,sideNavProps:r,backgroundJobTrayProps:i,children:[(0,u.jsxs)(`section`,{className:`mt-5 flex items-center gap-4 rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[h.imageUrl?(0,u.jsx)(j,{src:h.imageUrl,alt:h.imageAlt??``,quality:85,className:`h-16 w-16 rounded-md border border-borderTertiary object-cover`}):(0,u.jsx)(`span`,{className:`flex h-16 w-16 shrink-0 items-center justify-center rounded-md border border-borderTertiary bg-adminSideNavBackground`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`swatchbook`,alt:``,size:`xl`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:w}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:T})]})]}),t?(0,u.jsx)(`div`,{className:`mt-3`,children:t}):null,n.notice?(0,u.jsxs)(`section`,{role:n.notice.tone===`error`?`alert`:`status`,className:`mt-4 rounded-lg border p-4 ${Zd(n.notice.tone)}`,children:[n.notice.title?(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:n.notice.title}):null,(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:n.notice.message}),n.notice.actionLabel?(0,u.jsx)(`div`,{className:`mt-3`,children:(0,u.jsx)(O,{label:n.notice.actionLabel,variant:`outline`,intent:`primary`,size:`sm`,onClick:m})}):null]}):null,(0,u.jsx)(`div`,{role:`tablist`,"aria-label":`Market readiness editor`,className:`mt-5 flex gap-2 border-b border-borderTertiary`,children:[{id:`decor`,label:`Decor`},{id:`sheets`,label:`Buy Now (${n.skus.length})`},{id:`samples`,label:`Samples (${n.samples.length})`}].filter(e=>y.includes(e.id)).map(e=>{let t=n.activeTabId===e.id;return(0,u.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":t,className:`border-b-4 px-5 py-3 text-sm font-bold ${t?`border-primary text-primary`:`border-transparent text-tertiary hover:text-primary`}`,onClick:()=>a?.({tabId:e.id}),children:e.label},e.id)})}),C&&S?(0,u.jsx)(`section`,{role:`status`,"aria-live":`polite`,className:`mt-5 rounded-lg border border-borderTertiary bg-secondary p-4`,children:(0,u.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,u.jsx)(v,{label:``,size:`sm`}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:`Loading SKUs from LX`}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:`Buy Now and Samples will fill in as LX records are added.`})]})]})}):null,C&&n.lxImport?.state===`error`?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`mt-5 rounded-lg border border-accent bg-accent/10 p-4 text-sm text-accent`,children:n.lxImport.errorMessage??`LX SKUs could not be loaded. Try again.`}):null,n.activeTabId===`decor`?(0,u.jsxs)(`section`,{role:`tabpanel`,"aria-label":`Decor`,className:`mt-5 grid gap-5 md:grid-cols-3`,children:[(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:col-span-2`,children:(0,u.jsx)(us,{title:`Decor details`,description:_.sharedDescription,headerAction:C?(0,u.jsx)(O,{label:`LX`,"aria-label":`Load Buy Now and sample SKUs from LX`,iconType:`fa-solid`,iconName:S?`spinner`:`server`,iconAlt:``,variant:`outline`,intent:`neutral`,size:`xs`,disabled:n.lxImport?.disabled||S||!p,"aria-busy":S||void 0,onClick:()=>p?.({decorId:h.id,decorCode:h.decorCode})}):null,fields:[...M,...A,...k,...D],fieldGroups:[{id:`localized-decor-fields`,title:`${_.activeLocalization.heading} content`,description:_.localizationDescription??`These fields change with the selected locale.`,fieldIds:M.map(e=>e.id)},{id:`shared-decor-fields`,title:_.sharedTitle??`Shared decor details`,fieldIds:A.map(e=>e.id)}],density:`compact`,severityDisplay:`icon`,fieldMessagePlacement:`below-label`,showActions:!1,validationSummary:(0,u.jsxs)(`div`,{className:`flex flex-col-reverse gap-4 border-t border-borderTertiary pt-5 md:flex-row md:items-end md:justify-between`,children:[(0,u.jsx)(`div`,{children:_.deleteLabel?(0,u.jsx)(O,{label:_.deleteLabel,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,variant:`outline`,intent:`danger`,disabled:_.deleteDisabled||E,onClick:()=>d?.({decorId:h.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)($d,{status:_.activeLocalization.saveStatus,label:_.activeLocalization.saveStatusLabel,errorMessage:_.activeLocalization.saveErrorMessage,lastSavedLabel:_.activeLocalization.lastSavedLabel}),_.controls.saveHelpText?(0,u.jsx)(f,{variant:`free`,className:`max-w-md text-right text-xs text-tertiary`,children:_.controls.saveHelpText}):null,(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(O,{label:_.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:_.controls.cancelDisabled||E,onClick:()=>l?.({decorId:h.id,localizationId:_.activeLocalization.id})}),(0,u.jsx)(O,{label:_.controls.saveLabel,iconType:`fa-solid`,iconName:E?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:_.controls.saveDisabled||E,"aria-busy":E||void 0,onClick:()=>c?.({decorId:h.id,localizationId:_.activeLocalization.id})})]})]})]}),onDynamicFormFieldChange:({fieldId:e,value:t})=>{let n=_.sharedFields.some(t=>t.id===e);s?.({decorId:h.id,localizationId:n?void 0:_.activeLocalization.id,scope:n?`shared`:`localized`,fieldId:e,value:t})}})}),(0,u.jsx)(`aside`,{className:`rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:(0,u.jsx)(du,{title:`Decor localizations`,markets:_.markets,selectedLocalizationId:_.activeLocalization.id,localizationSelectionDisabled:E,onLocalizationSelect:o})})]}):null,n.activeTabId===`sheets`?(0,u.jsx)(ys,{...e,itemType:`sheet`,sectionData:{region:n.region,items:n.skus,editor:n.skuEditor,guide:n.region?n.skuGuides?.[n.region]:void 0}}):null,n.activeTabId===`samples`?(0,u.jsx)(ys,{...e,itemType:`sample`,sectionData:{region:n.region,items:n.samples,editor:n.sampleEditor,guide:n.region?n.skuGuides?.[n.region]:void 0,sampleGuide:n.sampleGuide}}):null]})},tf=({pageTitle:e,welcomeTitle:t,welcomeMessage:n,aboutTitle:r,aboutDescription:i,sideNavProps:a})=>(0,u.jsx)(`div`,{className:`min-h-screen bg-secondary`,children:(0,u.jsxs)(`div`,{className:`flex min-h-screen overflow-hidden bg-secondary`,children:[(0,u.jsx)(`aside`,{className:`hidden w-56 shrink-0 md:block`,children:(0,u.jsx)(Sc,{...a})}),(0,u.jsxs)(`main`,{className:`min-w-0 flex-1 bg-adminSideNavBackground p-4 md:p-6`,children:[(0,u.jsx)(`header`,{className:`border-b border-borderTertiary pb-5`,children:(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`text-2xl font-bold text-primary`,children:e})}),(0,u.jsxs)(`section`,{"aria-labelledby":`admin-dashboard-welcome-heading`,className:`mt-6 max-w-3xl rounded-lg border border-borderTertiary bg-secondary p-6 shadow-sm md:p-8`,children:[(0,u.jsx)(`div`,{className:`flex h-12 w-12 items-center justify-center rounded-full bg-adminSideNavBackground`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`database`,alt:``,size:`xl`,className:`text-primary`})}),(0,u.jsx)(f,{as:`h2`,id:`admin-dashboard-welcome-heading`,variant:`free`,className:`mt-5 text-xl font-bold text-primary`,children:t}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:n}),(0,u.jsxs)(`div`,{className:`mt-6 border-t border-borderTertiary pt-6`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:r}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:i})]})]})]})]})}),nf=e=>e===`admin`?`Admin`:`User`,rf=({message:e,tone:t=`default`})=>(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5`,children:(0,u.jsx)(f,{variant:`free`,className:`text-sm ${t===`error`?`text-accent`:`text-primary`}`,children:e})}),af=({message:e})=>{let t=e?.trim()??``;return t?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-accent`,children:t}):null},of=({pageTitle:e,pageDescription:t,sideNavProps:n,hasAdminAccess:r,accessRequiredTitle:i=`Admin Access Required`,accessRequiredMessage:a=`Your account can use Data Forge, but only admins can manage the allow list.`,state:o,loadingMessage:s=`Loading authorization users...`,errorMessage:c=`Data Forge could not load the allow list.`,createUserDraft:l,roleOptions:d,regionOptions:p,users:m,defaultRegionLabel:h=`Default Region`,defaultRegionPlaceholder:g=`Select region`,createMessage:_,updateMessage:v,deleteMessage:y,createPending:b=!1,updatePending:x=!1,deletePending:S=!1,deleteUserEmail:C,addUserLabel:w=`Add User`,addingUserLabel:T=`Adding...`,updateLabel:E=`Update`,updatingLabel:D=`Updating...`,activateLabel:k=`Activate`,suspendLabel:A=`Suspend`,removeLabel:j=`Remove`,removingLabel:M=`Removing...`,cancelLabel:N=`Cancel`,onNewUserEmailChange:P,onNewUserRoleChange:F,onNewUserActiveChange:I,onNewUserDefaultRegionChange:L,onCreateUser:R,onRowUpdate:ee,onUserActiveToggle:te,onDeleteUserRequest:ne,onDeleteModalClose:z,onDeleteUserConfirm:re})=>{let ie=t?.trim()??``,B=l.active&&!l.defaultRegion.trim(),V=m.map(e=>({id:e.email,values:{active:e.active?`active`:`inactive`,email:e.email,role:e.role,defaultRegion:e.defaultRegion}})),H=`${m.length.toLocaleString()} ${m.length===1?`user`:`users`}`,U=e=>(0,u.jsxs)(`article`,{className:`grid gap-3 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3 md:grid-cols-[minmax(0,1fr)_auto] md:items-center`,children:[(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(f,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:e.email}),(0,u.jsxs)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:[nf(e.role),` - `,e.active?`Active`:`Inactive`,e.isCurrentUser?` - Current user`:``]})]}),(0,u.jsxs)(`div`,{className:`flex flex-wrap gap-2 md:justify-end`,children:[(0,u.jsx)(O,{disabled:x||e.activeToggleDisabled||!e.active&&!e.defaultRegion.trim(),iconAlt:``,iconName:e.active?`user-slash`:`user-check`,iconType:`fa-solid`,intent:`primary`,label:e.active?A:k,size:`sm`,type:`button`,variant:`outline`,onClick:()=>te?.({user:e})}),(0,u.jsx)(O,{disabled:S||e.removeDisabled,iconAlt:``,iconName:`trash`,iconType:`fa-solid`,intent:`danger`,label:j,size:`sm`,type:`button`,variant:`outline`,onClick:()=>ne?.({user:e})})]})]},e.email);return(0,u.jsxs)(`div`,{className:`min-h-screen bg-secondary`,children:[(0,u.jsxs)(`div`,{className:`flex min-h-screen overflow-hidden bg-secondary`,children:[(0,u.jsx)(`aside`,{className:`hidden w-56 shrink-0 md:block`,children:(0,u.jsx)(Sc,{...n})}),(0,u.jsxs)(`main`,{className:`min-w-0 flex-1 bg-adminSideNavBackground p-4 md:p-6`,children:[(0,u.jsxs)(`header`,{className:`border-b border-borderTertiary pb-5`,children:[(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`text-2xl font-bold text-primary`,children:e}),ie?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:ie}):null]}),r?(0,u.jsxs)(`div`,{className:`mt-5 grid gap-5`,children:[(0,u.jsxs)(`form`,{"aria-label":`Add authorization user`,className:`grid gap-4 rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:grid-cols-6 md:items-end`,onSubmit:e=>{e.preventDefault(),R?.({user:l})},children:[(0,u.jsxs)(`div`,{className:`grid gap-2 md:col-span-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-email`,children:`Email`}),(0,u.jsx)(Ho,{id:`authorization-user-email`,name:`email`,type:`email`,value:l.email,placeholder:`person@formica.com`,disabled:b,autoComplete:`email`,onChange:e=>P?.({value:e.target.value})})]}),(0,u.jsxs)(`div`,{className:`grid gap-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-role`,children:`Role`}),(0,u.jsx)(Q,{id:`authorization-user-role`,name:`role`,value:l.role,disabled:b,options:d,onChange:e=>F?.({role:e.target.value})})]}),(0,u.jsxs)(`div`,{className:`grid gap-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-default-region`,children:h}),(0,u.jsx)(Q,{id:`authorization-user-default-region`,name:`defaultRegion`,value:l.defaultRegion,placeholder:g,disabled:b,required:l.active,hasError:B,options:p,onChange:e=>L?.({region:e.target.value})})]}),(0,u.jsxs)(`div`,{className:`grid gap-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-active`,children:`Status`}),(0,u.jsx)(Q,{id:`authorization-user-active`,name:`active`,value:l.active?`active`:`inactive`,disabled:b,options:[{label:`Active`,value:`active`},{label:`Inactive`,value:`inactive`}],onChange:e=>I?.({active:e.target.value===`active`})})]}),(0,u.jsx)(O,{disabled:b||B,iconAlt:``,iconName:`user-plus`,iconType:`fa-solid`,intent:`primary`,label:b?T:w,type:`submit`,variant:`solid`})]}),(0,u.jsx)(af,{message:_}),o===`loading`?(0,u.jsx)(rf,{message:s}):null,o===`error`?(0,u.jsx)(rf,{message:c,tone:`error`}):null,(0,u.jsx)(yu,{ariaLabel:`Authorization users`,columns:[{editable:!1,id:`email`,label:`Email`,width:`xl`},{id:`role`,label:`Role`,maxLength:5,width:`sm`,editor:`select`,options:d},{id:`active`,label:`Status`,maxLength:8,width:`sm`,editor:`select`,options:[{label:`Active`,value:`active`},{label:`Inactive`,value:`inactive`}]},{id:`defaultRegion`,label:h,width:`md`,editor:`select`,options:p,placeholder:g,requiredWhen:{columnId:`active`,value:`active`}}],description:`Edit role, status, or default region inline, then use Update on that row.`,emptyMessage:`No allow-list users are configured.`,rowCountLabel:H,rows:V,title:`Allow List`,updateLabel:x?D:E,updateDisabled:x,onRowUpdate:ee}),(0,u.jsx)(af,{message:v}),(0,u.jsxs)(`section`,{"aria-label":`Authorization user actions`,className:`grid gap-3 rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`User Actions`}),(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:`Use these actions for status changes and removals. Inline table edits are still available for role and status updates.`})]}),(0,u.jsx)(`div`,{className:`grid gap-2`,children:m.map(U)}),(0,u.jsx)(af,{message:y})]})]}):(0,u.jsxs)(`section`,{className:`mt-5 rounded-lg border border-borderTertiary bg-secondary p-5`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:i}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:a})]})]})]}),(0,u.jsx)(jc,{closeLabel:N,open:!!C,size:`md`,title:`Remove User?`,onClose:()=>z?.(),children:(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(f,{variant:`free`,className:`text-sm text-primary`,children:[`Remove `,C,` from the Data Forge allow list?`]}),(0,u.jsxs)(`div`,{className:`flex justify-end gap-3`,children:[(0,u.jsx)(O,{disabled:S,intent:`primary`,label:N,size:`sm`,type:`button`,variant:`outline`,onClick:()=>z?.()}),(0,u.jsx)(O,{disabled:S,iconAlt:``,iconName:`trash`,iconType:`fa-solid`,intent:`danger`,label:S?M:j,size:`sm`,type:`button`,variant:`solid`,onClick:()=>{C&&re?.({email:C})}})]})]})})]})},sf={loading:{iconName:`spinner`,iconClassName:`text-tertiary`,iconSurfaceClassName:`bg-tertiaryActive`},info:{iconName:`circle-info`,iconClassName:`text-blue-600`,iconSurfaceClassName:`bg-blue-50`},warning:{iconName:`triangle-exclamation`,iconClassName:`text-yellow-700`,iconSurfaceClassName:`bg-yellow-50`},error:{iconName:`circle-exclamation`,iconClassName:`text-accent`,iconSurfaceClassName:`bg-accent/10`}},cf=e=>{if(e===`loading`)return`status`;if(e===`error`)return`alert`},lf=({eyebrow:e,title:t,description:n,detail:r,tone:i,primaryAction:a,secondaryAction:o,informationGroups:s=[],onActionClick:c})=>{let l=e?.trim()??``,d=r?.trim()??``,p=sf[i],m=(e,t)=>(0,u.jsx)(O,{label:e.label,iconAlt:``,iconName:e.loading?`spinner`:e.iconName,iconType:e.loading||e.iconName?`fa-solid`:void 0,intent:`primary`,variant:t,disabled:e.disabled||e.loading,"aria-busy":e.loading||void 0,onClick:()=>c?.({actionId:e.id})},e.id);return(0,u.jsx)(`main`,{className:`flex min-h-screen items-center justify-center bg-tertiaryActive px-4 py-10`,children:(0,u.jsxs)(`section`,{role:cf(i),"aria-live":i===`loading`?`polite`:void 0,"aria-busy":i===`loading`||void 0,className:`w-full max-w-2xl rounded-lg border border-borderTertiary bg-secondary p-6 text-center shadow-sm md:p-10`,children:[(0,u.jsx)(`div`,{"data-testid":`admin-auth-status-icon`,className:`mx-auto flex h-16 w-16 items-center justify-center rounded-full ${p.iconSurfaceClassName}`,children:i===`loading`?(0,u.jsx)(v,{label:``,size:`2xl`}):(0,u.jsx)(g,{iconType:`fa-solid`,iconName:p.iconName,alt:``,size:`2xl`,className:p.iconClassName})}),l?(0,u.jsx)(f,{variant:`free`,className:`mt-6 text-xs font-bold uppercase tracking-wide text-tertiary`,children:l}):null,(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`${l?`mt-2`:`mt-6`} text-2xl font-bold text-primary`,children:t}),(0,u.jsx)(f,{variant:`free`,className:`mx-auto mt-3 max-w-xl text-primary`,children:n}),d?(0,u.jsx)(f,{variant:`free`,className:`mx-auto mt-3 max-w-xl text-sm text-tertiary`,children:d}):null,s.length?(0,u.jsx)(`div`,{className:`mt-6 grid gap-4 text-left md:grid-cols-2`,children:s.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`admin-auth-status-${e.id}`,className:`rounded-lg border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(f,{as:`h2`,id:`admin-auth-status-${e.id}`,variant:`free`,className:`text-sm font-bold text-primary`,children:e.title}),(0,u.jsx)(`ul`,{className:`mt-3 space-y-2`,children:e.items.map(e=>(0,u.jsx)(`li`,{className:`rounded-md bg-secondary px-3 py-2 font-mono text-xs text-primary`,children:e},e))})]},e.id))}):null,a||o?(0,u.jsxs)(`div`,{className:`mt-6 flex flex-col-reverse justify-center gap-3 md:flex-row`,children:[o?m(o,`outline`):null,a?m(a,`solid`):null]}):null]})})},uf=({pageTitle:e,pageDescription:t,sideNavProps:n,regionOptions:r,regionValue:i,regionLabel:a=`Region`,regionPlaceholder:o=`Select region`,regionHelpText:s=`Searches and changes will use product data from this region.`,regionDisabled:l=!1,searchValue:d,searchLabel:p=`Search decors`,searchPlaceholder:m,searchDisabled:h=!1,browseMode:g=`decors`,manageRangesLabel:_=`Manage ranges`,rangeOptions:y,rangeResults:b=[],rangeResultCount:x=0,selectedRangeId:S,rangePromptTitle:C=`Select a range to view its decors`,rangePromptMessage:w=`Choose a range above to load its market-readiness records.`,emptyRangeTitle:T=`No decors found`,emptyRangeMessage:E=`Click the button to add the first decor to this range.`,resultCount:D,resultLabel:k=`decors`,addDecorLabel:A=`Add a new decor`,addFirstDecorLabel:j=`Add the first decor`,addRangeLabel:M=`New Range`,groups:N,status:P={state:`ready`},hasMore:F=!1,loadingMore:I=!1,loadMoreLabel:L,deleteDecorTarget:R,deleteDecorConfirmationValue:ee=``,deleteDecorPending:te=!1,deleteDecorErrorMessage:ne,deleteDecorTitle:z=`Delete decor?`,deleteDecorLabel:re=`Delete decor`,deletingDecorLabel:ie=`Deleting...`,deleteDecorCancelLabel:B=`Cancel`,deleteDecorCloseLabel:V=`Close delete decor dialog`,deleteRangeTarget:H,deleteRangeConfirmationValue:U=``,deleteRangePending:W=!1,deleteRangeErrorMessage:G,deleteRangeTitle:ae=`Delete range?`,deleteRangeLabel:oe=`Delete range`,deletingRangeLabel:se=`Deleting...`,deleteRangeCancelLabel:ce=`Cancel`,deleteRangeCloseLabel:le=`Close delete range dialog`,onRegionChange:ue,onSearchChange:K,onSearchSubmit:de,onRangeSelect:fe,onManageRangesClick:pe,onAddDecorClick:me,onAddRangeClick:he,onRangeClick:_e,onDeleteRangeRequest:ve,onDeleteRangeConfirmationChange:ye,onDeleteRangeCancel:be,onDeleteRangeConfirm:xe,onDecorClick:Se,onDeleteDecorRequest:Ce,onDeleteDecorConfirmationChange:we,onDeleteDecorCancel:Te,onDeleteDecorConfirm:Ee,onLoadMore:De,onRetryClick:Oe})=>{let ke=(0,c.useRef)(null),Ae=(0,c.useRef)({options:y,selectedRangeId:S});P.state!==`loading`&&(Ae.current={options:y,selectedRangeId:S});let je=P.state===`loading`&&y.length===0?Ae.current.options:y,Me=P.state===`loading`&&S===void 0?Ae.current.selectedRangeId:S,Ne=!i.trim()||l,q=g===`ranges`,Pe=q?x:D,Fe=k;q&&(Fe=x===1?`range`:`ranges`);let Ie=`${Pe.toLocaleString()} ${Fe}`,Le=L??(q?`Load more ranges`:`Load more decors`),Re=q?b.length:N.reduce((e,t)=>e+t.items.length,0),ze=je.find(e=>e.id===Me),J=!!Me,Be=!!d.trim(),Ve=q?`Search ranges`:p,He=m??(q?`Search ranges`:`Search decors across all ranges`),Ue=!!(R&&ee.trim()===R.decorCode),We=R?`${R.sheetCount.toLocaleString()} ${R.sheetCount===1?`sheet`:`sheets`} and ${R.sampleCount.toLocaleString()} ${R.sampleCount===1?`sample`:`samples`}`:``,Y=!!(H&&U.trim()===H.rangeCode),Ge=J&&!Be&&D===0;(0,c.useEffect)(()=>{let e=ke.current;if(!e||!q&&!J&&!Be||P.state!==`ready`||!F||I||!De||typeof IntersectionObserver>`u`)return;let t=!1,n=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&!t&&(t=!0,De())});return n.observe(e),()=>n.disconnect()},[F,I,De,d,Me,q,P.state]);let Ke=null;return I?Ke=(0,u.jsx)(v,{label:`Loading more ${Fe}`,size:`md`}):F&&(Ke=(0,u.jsx)(O,{label:Le,variant:`outline`,intent:`primary`,disabled:!De,onClick:De})),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(qd,{pageTitle:e,pageDescription:t,sideNavProps:n,headerActions:(0,u.jsx)(zo,{options:r,value:i,label:a,placeholder:o,helpText:s,disabled:l,name:`market-readiness-browse-region`,onChange:ue}),children:(0,u.jsxs)(`div`,{className:`mt-5 max-w-6xl`,children:[(0,u.jsxs)(`section`,{"aria-label":q?`Browse range controls`:`Browse decor controls`,children:[(0,u.jsx)(Uo,{id:`market-readiness-decor-search`,name:q?`rangeSearch`:`decorSearch`,ariaLabel:Ve,value:d,placeholder:He,controlSize:`default`,disabled:h||Ne,onChange:e=>K({value:e.target.value}),onClear:()=>K({value:``}),onSearchSubmit:de}),(0,u.jsxs)(`div`,{className:`mt-3`,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Ranges`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,u.jsx)(ge,{iconType:`fa-solid`,iconName:`list`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:q?`primary`:`neutral`,"aria-label":_,"aria-pressed":q,disabled:Ne||P.state===`loading`||!pe,onClick:pe}),(0,u.jsx)(ge,{iconType:`fa-solid`,iconName:`plus`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`primary`,"aria-label":M,disabled:Ne||P.state===`loading`||!he,onClick:()=>he?.({region:i})})]})]}),(0,u.jsx)(`div`,{className:`mt-2`,children:(0,u.jsx)(Bo,{ranges:je,selectedRangeId:Me,disabled:Ne,onRangeSelect:fe})})]})]}),P.state===`loading`?(0,u.jsx)(`section`,{"aria-label":q?`Range results`:`Decor results`,"aria-busy":`true`,className:`mt-5 flex min-h-64 items-center justify-center rounded-lg border border-borderTertiary bg-secondary p-6 text-center shadow-sm`,children:(0,u.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,u.jsx)(v,{label:P.message?.trim()||`Loading ${q?`ranges`:`decors`}`,size:`2xl`}),(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:P.message?.trim()||`Loading ${q?`ranges`:`decors`}...`})]})}):null,P.state!==`ready`&&P.state!==`loading`?(0,u.jsx)(Xd,{status:P,onRetryClick:Oe}):null,P.state===`ready`&&!q&&!J&&!Be?(0,u.jsx)(Xd,{status:{state:`empty`,title:C,message:w}}):null,P.state===`ready`&&q?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center justify-between gap-4`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:Be?`Range search results`:`Ranges`}),(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-tertiary`,children:Ie})]}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(xu,{ranges:b,emptyMessage:`No ranges are available.`,onRangeClick:Ne?void 0:_e,onDeleteRangeRequest:Ne?void 0:ve})})]}):null,P.state===`ready`&&!q&&(J||Be)?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`mt-6 flex items-center justify-between gap-4`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:Be?`Search results`:ze?.label??`Selected range`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-tertiary`,children:Ie}),(0,u.jsx)(ge,{iconType:`fa-solid`,iconName:`plus`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`primary`,"aria-label":ze&&!Be?`${A} to ${ze.label}`:A,disabled:Ne||!me,onClick:()=>me?.({rangeId:Me})})]})]}),Ge?(0,u.jsx)(Xd,{status:{state:`empty`,title:T,message:E},action:(0,u.jsx)(O,{label:j,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:Ne||!me,onClick:()=>me?.({rangeId:Me})})}):(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(bu,{groups:N,itemLabel:k,showGroupHeaders:!1,onDecorClick:Ne?void 0:Se,onDeleteDecorRequest:Ne?void 0:Ce})})]}):null,(q||J||Be)&&P.state===`ready`&&(Re>0||F)?(0,u.jsxs)(`div`,{ref:ke,className:`mt-6 flex flex-col items-center gap-3 border-t border-borderTertiary pt-5`,children:[(0,u.jsxs)(f,{variant:`free`,className:`text-sm text-tertiary`,children:[`Showing `,Re.toLocaleString(),` of`,` `,Pe.toLocaleString(),` `,Fe]}),Ke]}):null]})}),(0,u.jsx)(jc,{open:!!R,title:z,description:`This permanently removes the decor and all records that belong to it. This action cannot be undone.`,closeLabel:V,size:`sm`,onClose:()=>{te||Te?.()},children:R?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(`div`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:R.name}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 font-mono text-xs text-tertiary`,children:R.decorCode}),(0,u.jsxs)(f,{variant:`free`,className:`mt-2 text-xs text-primary`,children:[`Deleting this decor also removes `,We,`.`]})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`label`,{htmlFor:`market-readiness-delete-confirmation`,className:`text-sm font-bold text-primary`,children:[`Type `,R.decorCode,` to confirm`]}),(0,u.jsx)(Ho,{id:`market-readiness-delete-confirmation`,name:`deleteDecorConfirmation`,value:ee,placeholder:R.decorCode,autoComplete:`off`,autoFocus:!0,disabled:te,hasError:!!ne,onChange:e=>we?.({value:e.target.value})}),ne?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`mt-2 text-sm text-accent`,children:ne}):null]}),(0,u.jsxs)(`div`,{className:`flex justify-end gap-3`,children:[(0,u.jsx)(O,{label:B,size:`sm`,variant:`outline`,intent:`primary`,disabled:te,onClick:()=>Te?.()}),(0,u.jsx)(O,{label:te?ie:re,iconType:`fa-solid`,iconName:te?`spinner`:`trash`,iconAlt:``,size:`sm`,variant:`solid`,intent:`accent`,disabled:!Ue||te||!Ee,onClick:()=>Ee?.(R)})]})]}):null}),(0,u.jsx)(jc,{open:!!H,title:ae,description:`This permanently removes the empty range. This action cannot be undone.`,closeLabel:le,size:`sm`,onClose:()=>{W||be?.()},children:H?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(`div`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:H.name}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:H.rangeCode}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:[H.company,H.region,H.subRegion].filter(e=>e.trim()).join(` · `)})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`label`,{htmlFor:`market-readiness-range-delete-confirmation`,className:`text-sm font-bold text-primary`,children:[`Type `,H.rangeCode,` to confirm`]}),(0,u.jsx)(Ho,{id:`market-readiness-range-delete-confirmation`,name:`deleteRangeConfirmation`,value:U,placeholder:H.rangeCode,autoComplete:`off`,autoFocus:!0,disabled:W,hasError:!!G,onChange:e=>ye?.({value:e.target.value})}),G?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`mt-2 text-sm text-accent`,children:G}):null]}),(0,u.jsxs)(`div`,{className:`flex justify-end gap-3`,children:[(0,u.jsx)(O,{label:ce,size:`sm`,variant:`outline`,intent:`primary`,disabled:W,onClick:()=>be?.()}),(0,u.jsx)(O,{label:W?se:oe,iconType:`fa-solid`,iconName:W?`spinner`:`trash`,iconAlt:``,size:`sm`,variant:`solid`,intent:`accent`,disabled:!Y||W||!xe,onClick:()=>xe?.(H)})]})]}):null})]})},df=({pageTitle:e,pageDescription:t,sideNavProps:n,mode:r,rangeId:i,name:a,bynderName:o,rangeCode:s,productFamilyCode:c=``,company:l,companyCode:d,region:p,subRegion:m=``,companyOptions:h,productFamilyOptions:_=[],regionOptions:v,subRegionOptions:y,status:b={state:`ready`},fieldErrors:x={},formDisabled:S=!1,saveDisabled:C=!1,savePending:w=!1,saveErrorMessage:T,deleteDialogOpen:E=!1,deleteConfirmationValue:D=``,deletePending:k=!1,deleteErrorMessage:A,detailsTitle:M=`Range details`,detailsDescription:N=`These details determine where the range appears in Market Readiness.`,saveLabel:P=r===`create`?`Create range`:`Save changes`,savingLabel:F=`Saving...`,cancelLabel:I=`Cancel`,deleteTitle:L=`Delete range?`,deleteLabel:R=`Delete range`,deletingLabel:ee=`Deleting...`,deleteCancelLabel:te=`Cancel`,deleteCloseLabel:ne=`Close delete range dialog`,onNameChange:z,onBynderNameChange:re,onRangeCodeChange:ie,onProductFamilyCodeChange:B,onCompanyChange:V,onCompanyCodeChange:H,onRegionChange:U,onSubRegionChange:W,onSaveClick:G,onCancelClick:ae,onDeleteRequest:oe,onDeleteConfirmationChange:se,onDeleteCancel:ce,onDeleteConfirm:le,onRetryClick:ue})=>{let K=je(l),de=S||w,fe=!!y?.length,pe=p===`europe`||p===`asia`,me=p===`europe`?`Product Family (EU)`:`Product Family (AS)`,he=y??[],ge=pe&&!m.trim()?`ALL`:m,_e=a.trim()||`New range`,ve=h.find(e=>e.value===l)?.label??l,ye=v.find(e=>e.value===p)?.label??p,be=he.find(e=>e.value===ge)?.label??ge,xe=d.trim()?`${ve} (${d})`:ve,Se=[s.trim()?`Range ${s}`:``,xe,ye,pe||fe?be:``].filter(e=>e.trim()).join(` · `),Ce=i?{rangeId:i}:{},we=i?{rangeId:i,rangeCode:s}:void 0,Te=!!(we&&s.trim()&&D.trim()===s.trim());return(0,u.jsxs)(qd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:[b.state===`ready`?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`section`,{className:`mt-5 flex items-center gap-4 rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsx)(`span`,{className:`flex h-16 w-16 shrink-0 items-center justify-center rounded-md border border-primary bg-primary p-2`,children:K?(0,u.jsx)(j,{src:K,alt:`${l} logo`,quality:85,fit:`contain`,className:`h-full w-full object-contain`}):(0,u.jsx)(g,{iconType:`fa-regular`,iconName:`building`,alt:`No company logo available`,size:`xl`,className:`text-secondary`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:_e}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:Se||`Enter the range details below`})]})]}),(0,u.jsxs)(`form`,{className:`mt-5 max-w-4xl rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,onSubmit:e=>{e.preventDefault(),G?.(Ce)},children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:M}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:N}),(0,u.jsxs)(`div`,{className:`mt-5 grid gap-5 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-name`,className:`text-sm font-bold text-primary`,children:`Name`}),(0,u.jsx)(Ho,{id:`market-readiness-range-name`,name:`rangeName`,value:a,placeholder:`Marketing name`,autoComplete:`off`,required:!0,disabled:de,hasError:!!x.name,ariaDescribedBy:x.name?`market-readiness-range-name-error`:void 0,onChange:e=>z?.({value:e.target.value})}),x.name?(0,u.jsx)(f,{id:`market-readiness-range-name-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.name}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-bynder-name`,className:`text-sm font-bold text-primary`,children:`Bynder Name`}),(0,u.jsx)(Ho,{id:`market-readiness-range-bynder-name`,name:`bynderName`,value:o,placeholder:`Bynder name`,autoComplete:`off`,disabled:de,hasError:!!x.bynderName,ariaDescribedBy:x.bynderName?`market-readiness-range-bynder-name-error`:void 0,onChange:e=>re?.({value:e.target.value})}),x.bynderName?(0,u.jsx)(f,{id:`market-readiness-range-bynder-name-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.bynderName}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-code`,className:`text-sm font-bold text-primary`,children:`Range Code`}),(0,u.jsx)(Ho,{id:`market-readiness-range-code`,name:`rangeCode`,value:s,placeholder:`Short code`,autoComplete:`off`,required:!0,disabled:de,hasError:!!x.rangeCode,ariaDescribedBy:x.rangeCode?`market-readiness-range-code-error`:void 0,onChange:e=>ie?.({value:e.target.value})}),x.rangeCode?(0,u.jsx)(f,{id:`market-readiness-range-code-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.rangeCode}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-company`,className:`text-sm font-bold text-primary`,children:`Company`}),(0,u.jsx)(Q,{id:`market-readiness-range-company`,name:`rangeCompany`,value:l,placeholder:`Select a company`,options:h,required:!0,disabled:de,hasError:!!x.company,ariaDescribedBy:x.company?`market-readiness-range-company-error`:void 0,onChange:e=>V?.({value:e.target.value})}),x.company?(0,u.jsx)(f,{id:`market-readiness-range-company-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.company}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-company-code`,className:`text-sm font-bold text-primary`,children:`Company Code`}),(0,u.jsx)(Ho,{id:`market-readiness-company-code`,name:`companyCode`,value:d,placeholder:`Short code`,autoComplete:`off`,required:!0,disabled:de,hasError:!!x.companyCode,ariaDescribedBy:x.companyCode?`market-readiness-company-code-error`:void 0,onChange:e=>H?.({value:e.target.value})}),x.companyCode?(0,u.jsx)(f,{id:`market-readiness-company-code-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.companyCode}):null]}),(0,u.jsxs)(`div`,{role:`group`,"aria-label":`Range location`,className:`grid gap-5 md:col-span-2 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{className:pe||!fe?`md:col-span-2`:void 0,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-region`,className:`text-sm font-bold text-primary`,children:`Region`}),(0,u.jsx)(Q,{id:`market-readiness-range-region`,name:`rangeRegion`,value:p,placeholder:`Select a region`,options:v,required:!0,disabled:de,hasError:!!x.region,ariaDescribedBy:x.region?`market-readiness-range-region-error`:void 0,onChange:e=>U?.({value:e.target.value})}),x.region?(0,u.jsx)(f,{id:`market-readiness-range-region-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.region}):null]}),pe?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-product-family-code`,className:`text-sm font-bold text-primary`,children:me}),(0,u.jsx)(Q,{id:`market-readiness-product-family-code`,name:`productFamilyCode`,value:c,placeholder:`Select a product family`,options:_,required:!0,disabled:de,hasError:!!x.productFamilyCode,ariaDescribedBy:x.productFamilyCode?`market-readiness-product-family-code-error`:void 0,onChange:e=>B?.({value:e.target.value})}),x.productFamilyCode?(0,u.jsx)(f,{id:`market-readiness-product-family-code-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.productFamilyCode}):null]}):null,pe?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-subregion`,className:`text-sm font-bold text-primary`,children:`Subregion`}),(0,u.jsx)(Ho,{id:`market-readiness-range-subregion`,name:`rangeSubRegion`,value:ge,placeholder:`Enter a subregion`,autoComplete:`off`,disabled:de,hasError:!!x.subRegion,ariaDescribedBy:x.subRegion?`market-readiness-range-subregion-error`:void 0,onChange:e=>W?.({value:e.target.value})}),x.subRegion?(0,u.jsx)(f,{id:`market-readiness-range-subregion-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.subRegion}):null]}):null,!pe&&fe?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-subregion`,className:`text-sm font-bold text-primary`,children:`Subregion`}),(0,u.jsx)(Q,{id:`market-readiness-range-subregion`,name:`rangeSubRegion`,value:m,placeholder:`Select a subregion`,options:he,required:!0,disabled:de,hasError:!!x.subRegion,ariaDescribedBy:x.subRegion?`market-readiness-range-subregion-error`:void 0,onChange:e=>W?.({value:e.target.value})}),x.subRegion?(0,u.jsx)(f,{id:`market-readiness-range-subregion-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:x.subRegion}):null]}):null]})]}),(0,u.jsxs)(`div`,{className:`mt-6 flex flex-col-reverse gap-3 border-t border-borderTertiary pt-5 md:flex-row md:items-center md:justify-end`,children:[T?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`text-sm text-accent md:mr-auto`,children:T}):null,r===`edit`&&we&&oe?(0,u.jsx)(O,{type:`button`,label:R,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,variant:`outline`,intent:`danger`,disabled:de,className:`md:mr-auto`,onClick:()=>oe(we)}):null,(0,u.jsx)(O,{label:I,variant:`outline`,intent:`primary`,disabled:de,onClick:()=>ae?.(Ce)}),(0,u.jsx)(O,{type:`submit`,label:w?F:P,iconType:`fa-solid`,iconName:w?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:de||C||!G,"aria-busy":w||void 0})]})]})]}):(0,u.jsx)(Xd,{status:b,onRetryClick:ue}),(0,u.jsx)(jc,{open:!!(E&&we),title:L,description:`This permanently removes the range. This action cannot be undone.`,closeLabel:ne,size:`sm`,onClose:()=>{k||ce?.()},children:we?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(`div`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:_e}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 font-mono text-xs text-tertiary`,children:s})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`label`,{htmlFor:`market-readiness-range-delete-confirmation`,className:`text-sm font-bold text-primary`,children:[`Type `,s,` to confirm`]}),(0,u.jsx)(Ho,{id:`market-readiness-range-delete-confirmation`,name:`deleteRangeConfirmation`,value:D,placeholder:s,autoComplete:`off`,autoFocus:!0,disabled:k,hasError:!!A,onChange:e=>se?.({value:e.target.value})}),A?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`mt-2 text-sm text-accent`,children:A}):null]}),(0,u.jsxs)(`div`,{className:`flex justify-end gap-3`,children:[(0,u.jsx)(O,{label:te,size:`sm`,variant:`outline`,intent:`primary`,disabled:k,onClick:()=>ce?.()}),(0,u.jsx)(O,{label:k?ee:R,iconType:`fa-solid`,iconName:k?`spinner`:`trash`,iconAlt:``,size:`sm`,variant:`solid`,intent:`accent`,disabled:!Te||k||!le,onClick:()=>le?.(we)})]})]}):null})]})},ff=({pageTitle:e,pageDescription:t,backLabel:n,sideNavProps:r,report:i,status:a={state:`ready`},pagination:o,onBackClick:s,onRetryClick:c,onPreviousPageClick:l,onNextPageClick:d})=>(0,u.jsx)(qd,{pageTitle:e,pageDescription:t,sideNavProps:r,headerLeading:n?(0,u.jsx)(O,{label:n,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`ghost`,intent:`primary`,size:`sm`,className:`mb-3 px-0`,onClick:s}):void 0,children:a.state===`ready`?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(yu,{...i})}),o?(0,u.jsxs)(`nav`,{"aria-label":`Report pagination`,className:`mt-5 flex justify-end gap-3`,children:[(0,u.jsx)(O,{label:o.previousLabel,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`outline`,intent:`primary`,disabled:o.previousDisabled,onClick:l}),(0,u.jsx)(O,{label:o.nextLabel,iconType:`fa-solid`,iconName:`chevron-right`,iconAlt:``,iconPosition:`right`,variant:`outline`,intent:`primary`,disabled:o.nextDisabled,onClick:d})]}):null]}):(0,u.jsx)(Xd,{status:a,onRetryClick:c})}),pf=e=>new Intl.NumberFormat(`en-US`).format(e),mf=({title:e,description:t,iconName:n,children:r})=>(0,u.jsxs)(`article`,{className:`flex w-full flex-col rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:flex-row md:items-start md:gap-6`,children:[(0,u.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,u.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-borderTertiary bg-adminSideNavBackground text-primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:n,alt:``,size:`md`})}),(0,u.jsxs)(`div`,{className:`min-w-0 md:w-72`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:t})]})]}),(0,u.jsx)(`div`,{className:`mt-5 flex flex-1 flex-col md:mt-0`,children:r})]}),hf=({status:e,message:t})=>{let n=t?.trim()??``;if(!n||e===`idle`)return null;let r=`text-primary`;return e===`error`?r=`text-accent`:e===`success`&&(r=`text-saleGreen`),(0,u.jsx)(f,{role:e===`error`?`alert`:`status`,variant:`free`,className:`mt-3 text-sm ${r}`,children:n})},gf=({dataSource:e})=>(0,u.jsxs)(`dl`,{className:`grid gap-3 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Source`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm font-semibold text-primary`,children:e.source.label})]}),(0,u.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Locale`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:e.source.locale})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Records`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:pf(e.recordCount)})]})]}),(0,u.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Created`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:e.createdAt})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Updated`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:e.updatedAt})]})]}),e.latestReport?.label?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Latest Report`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:e.latestReport.label})]}):null]}),_f=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},dataSource:i,existingDataTitle:a=`Continue with saved data`,existingDataEmptyTitle:o=`No saved data set yet`,existingDataEmptyDescription:s=`Start by uploading a Salsify report or downloading the latest data directly from Salsify.`,useExistingDataLabel:l=`Use Saved Data`,uploadTitle:d=`Upload a Salsify report`,uploadDescription:p=`Use a report exported from Salsify when you already have the file ready.`,uploadDropLabel:m=`Drag a report file here`,uploadBrowseLabel:h=`Select File`,uploadHelpText:_=`JSON exports from Salsify are supported.`,selectedFile:v,uploadStatus:y=`idle`,uploadStatusMessage:b,uploadLabel:x=`Upload Report`,uploadDisabled:S=!1,clearFileLabel:C=`Clear File`,directDownloadTitle:w=`Download from Salsify`,directDownloadDescription:T=`Choose a product range and Data Forge will request the latest records for you.`,rangeLabel:E=`Product Range`,rangePlaceholder:D=`Select a range`,rangeOptions:k,selectedRangeValue:A=``,directDownloadLabel:j=`Download Latest Data`,downloadStatus:M=`idle`,downloadStatusMessage:N,downloadDisabled:P=!1,onUseExistingDataClick:F,onReportFileSelect:I,onUploadClick:L,onClearSelectedFileClick:R,onRangeChange:ee,onDirectDownloadClick:te,onRetryClick:ne})=>{let z=(0,c.useRef)(null),re=y===`pending`,ie=M===`pending`,B=e=>I?.({files:Array.from(e??[])});return(0,u.jsx)(qd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:r.state===`ready`?(0,u.jsxs)(`section`,{"aria-label":`Choose data source`,className:`mt-6 flex flex-col gap-4`,children:[(0,u.jsx)(mf,{title:i?a:o,description:i?`Review the saved data set and continue if it is the right source for this review.`:s,iconName:i?`database`:`circle-info`,children:i?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(gf,{dataSource:i}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(O,{label:l,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`primary`,fullWidth:!0,onClick:F})})]}):(0,u.jsx)(`div`,{className:`rounded-md border border-dashed border-borderTertiary bg-adminSideNavBackground p-4`,children:(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:s})})}),(0,u.jsxs)(mf,{title:d,description:p,iconName:`file-arrow-up`,children:[(0,u.jsxs)(`div`,{className:`flex min-h-40 flex-col items-center justify-center rounded-lg border border-dashed border-secondaryActive bg-adminSideNavBackground p-5 text-center transition hover:border-primary`,onDragOver:e=>e.preventDefault(),onDrop:e=>{e.preventDefault(),B(e.dataTransfer.files)},children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`,className:`text-primary`}),(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:m}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:`Drop it here, or select it from your computer.`}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(O,{label:h,iconType:`fa-solid`,iconName:`folder-open`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,disabled:re,onClick:()=>z.current?.click()})}),(0,u.jsx)(`input`,{ref:z,id:`salsify-report-upload`,type:`file`,className:`sr-only`,disabled:re,onChange:e=>B(e.target.files)})]}),(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:_}),v?(0,u.jsxs)(`div`,{className:`mt-4 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`file`,alt:``,size:`lg`,className:`text-primary`}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(f,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:v.name}),v.sizeLabel?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:v.sizeLabel}):null]})]}),(0,u.jsxs)(`div`,{className:`mt-4 flex flex-col gap-2 md:flex-row md:justify-end`,children:[(0,u.jsx)(O,{label:C,variant:`outline`,intent:`primary`,size:`sm`,disabled:re,onClick:R}),(0,u.jsx)(O,{label:x,iconType:`fa-solid`,iconName:`cloud-arrow-up`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,disabled:S||re,"aria-busy":re||void 0,onClick:L})]})]}):null,(0,u.jsx)(hf,{status:y,message:b})]}),(0,u.jsxs)(mf,{title:w,description:T,iconName:`cloud-arrow-down`,children:[(0,u.jsxs)(`div`,{className:`space-y-2`,children:[(0,u.jsx)(`label`,{htmlFor:`salsify-range`,className:`text-sm font-bold text-primary`,children:E}),(0,u.jsx)(Q,{id:`salsify-range`,name:`salsifyRange`,value:A,placeholder:D,options:k,disabled:ie,onChange:e=>ee?.({value:e.target.value})})]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(O,{label:j,iconType:`fa-solid`,iconName:`cloud-arrow-down`,iconAlt:``,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:P||ie,"aria-busy":ie||void 0,onClick:te})}),(0,u.jsx)(hf,{status:M,message:N})]})]}):(0,u.jsx)(Xd,{status:r,onRetryClick:ne})})},vf=(e,t,n)=>`${e.toLocaleString()} ${e===1?t:n}`,yf=({status:e,message:t})=>{let n=t?.trim()??``;return!n||e===`idle`?null:(0,u.jsx)(f,{role:e===`error`?`alert`:`status`,variant:`free`,className:`mt-3 text-sm ${e===`error`?`text-accent`:`text-primary`}`,children:n})},bf=({label:e,options:t,value:n,disabled:r=!1,onSelect:i})=>(0,u.jsxs)(`fieldset`,{children:[(0,u.jsxs)(`legend`,{className:`text-sm font-bold text-primary`,children:[e,n?null:(0,u.jsxs)(`span`,{className:`ml-3 text-xs font-normal text-accent`,children:[`Select one `,e.toLowerCase(),`.`]})]}),(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":e,"aria-required":`true`,"aria-invalid":!n||void 0,className:`mt-4 flex flex-wrap gap-2`,children:t.map(e=>{let t=e.value===n;return(0,u.jsx)(O,{label:e.label,variant:t?`solid`:`outline`,intent:`primary`,size:`sm`,role:`radio`,"aria-checked":t,disabled:r,onClick:()=>i(e.value)},e.value)})})]}),xf=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},existingImportSet:i,regionOptions:a,selectedRegion:o,localityOptions:s,selectedLocality:l,localityDisabled:d=!1,intentOptions:p,selectedIntent:m,selectedFile:h,uploadStatus:_=`idle`,uploadStatusMessage:v,uploadDisabled:y=!1,continueExistingLabel:b=`Continue Import Set`,uploadLabel:x=`Upload and Continue`,clearFileLabel:S=`Clear File`,onContinueExistingClick:C,onRegionChange:w,onLocalityChange:T,onIntentChange:E,onFileSelect:D,onClearSelectedFileClick:k,onUploadClick:A,onRetryClick:j})=>{let M=(0,c.useRef)(null),N=(0,c.useId)(),P=_===`pending`,F=P||!o.trim()||!l.trim()||!m,I=e=>D?.({files:Array.from(e??[]).slice(0,1)});return(0,u.jsx)(qd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:r.state===`ready`?(0,u.jsxs)(`div`,{className:`mt-6 grid gap-6`,children:[i?(0,u.jsxs)(`section`,{"aria-labelledby":`existing-import-set-title`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`h2`,id:`existing-import-set-title`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Existing Import Set`}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-xs font-bold uppercase text-tertiary`,children:`Private and expiring`}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 font-bold text-primary`,children:i.fileName}),(0,u.jsxs)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:[i.regionLabel,` ·`,` `,i.localityLabel,` ·`,` `,i.intentLabel]}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:[i.rangeCount===void 0?null:vf(i.rangeCount,`range`,`ranges`),i.decorCount===void 0?null:vf(i.decorCount,`decor`,`decors`),i.skuCount===void 0?null:vf(i.skuCount,`SKU`,`SKUs`)].filter(Boolean).join(` · `)})]}),(0,u.jsx)(f,{variant:`free`,className:`shrink-0 rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-tertiary`,children:i.expiresLabel})]}),(0,u.jsx)(`div`,{className:`mt-5 flex justify-end`,children:(0,u.jsx)(O,{label:b,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,onClick:C})})]}):null,(0,u.jsxs)(`section`,{"aria-labelledby":`new-import-title`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsx)(f,{as:`h2`,id:`new-import-title`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Start a New Import`}),(0,u.jsxs)(`div`,{className:`mt-5 grid gap-6`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-3 gap-y-1`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:`Region`}),o.trim()?null:(0,u.jsx)(f,{variant:`free`,className:`text-xs text-accent`,children:`Select one region.`})]}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(zo,{options:a,value:o,placeholder:``,onChange:w})})]}),(0,u.jsx)(bf,{label:`Locality`,options:s,value:l,disabled:d,onSelect:e=>T({locality:e})}),(0,u.jsx)(bf,{label:`Import Intent`,options:p,value:m,onSelect:e=>E({intent:e})}),(0,u.jsxs)(`fieldset`,{children:[(0,u.jsx)(`legend`,{className:`text-sm font-bold text-primary`,children:`Source File`}),(0,u.jsxs)(`div`,{className:`mt-3 flex min-h-40 flex-col items-center justify-center rounded-lg border border-dashed border-secondaryActive bg-adminSideNavBackground p-5 text-center transition hover:border-primary`,"aria-disabled":F||void 0,onDragOver:e=>e.preventDefault(),onDrop:e=>{e.preventDefault(),F||I(e.dataTransfer.files)},children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`,className:`text-primary`}),(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:`Drag an .xlsx file here`}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:`Drop it here, or select it from your computer.`}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(O,{label:`Select File`,iconType:`fa-solid`,iconName:`folder-open`,iconAlt:``,variant:`outline`,size:`sm`,disabled:F,onClick:()=>M.current?.click()})}),(0,u.jsx)(`input`,{ref:M,id:`${N}-import-upload`,type:`file`,accept:`.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,className:`sr-only`,disabled:F,onChange:e=>I(e.target.files)})]}),h?(0,u.jsxs)(`div`,{className:`mt-4 flex flex-col gap-4 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`file-excel`,alt:``,size:`lg`}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(f,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:h.name}),h.sizeLabel?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:h.sizeLabel}):null]})]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row`,children:[(0,u.jsx)(O,{label:S,variant:`outline`,size:`sm`,disabled:P,onClick:k}),(0,u.jsx)(O,{label:x,iconType:`fa-solid`,iconName:P?`spinner`:`cloud-arrow-up`,iconAlt:``,size:`sm`,disabled:y||F,"aria-busy":P||void 0,onClick:A})]})]}):null,(0,u.jsx)(yf,{status:_,message:v})]})]})]})]}):(0,u.jsx)(Xd,{status:r,onRetryClick:j})})},Sf={error:{iconName:`circle-exclamation`,label:`Error`,className:`text-accent`},warning:{iconName:`triangle-exclamation`,label:`Warning`,className:`text-primary`},info:{iconName:`circle-info`,label:`Information`,className:`text-primary`}},Cf=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},fileName:i,scopeLabel:a,summary:o,groups:s,backLabel:c=`Back to Upload`,continueLabel:l=`Continue to Review`,continueDisabled:d=!1,onBackClick:p,onContinueClick:m,onRetryClick:h})=>(0,u.jsx)(qd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:r.state===`ready`?(0,u.jsxs)(`div`,{className:`mt-6 grid gap-5`,children:[(0,u.jsxs)(`section`,{"aria-label":`Import issue summary`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Validation Summary`}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm font-bold text-primary`,children:i}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:a})]}),(0,u.jsxs)(f,{variant:`free`,className:`shrink-0 rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-tertiary`,children:[o.totalCount.toLocaleString(),` issues`]})]}),(0,u.jsxs)(`dl`,{className:`mt-5 grid gap-3 md:grid-cols-3`,children:[(0,u.jsxs)(`div`,{className:`rounded-md bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Issues`}),(0,u.jsx)(`dd`,{className:`mt-1 text-2xl font-bold text-primary`,children:o.totalCount.toLocaleString()})]}),(0,u.jsxs)(`div`,{className:`rounded-md bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Blocking`}),(0,u.jsx)(`dd`,{className:`mt-1 text-2xl font-bold text-accent`,children:o.blockingCount.toLocaleString()})]}),(0,u.jsxs)(`div`,{className:`rounded-md bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Warnings`}),(0,u.jsx)(`dd`,{className:`mt-1 text-2xl font-bold text-primary`,children:o.warningCount.toLocaleString()})]})]})]}),(0,u.jsx)(`section`,{"aria-label":`Import issues`,className:`grid gap-4`,children:s.map(e=>(0,u.jsxs)(`article`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e.title}),e.description?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:e.description}):null]}),(0,u.jsxs)(f,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:[e.issues.length.toLocaleString(),` `,e.issues.length===1?`issue`:`issues`]})]}),(0,u.jsx)(`ul`,{className:`mt-4 divide-y divide-borderTertiary rounded-md border border-borderTertiary`,children:e.issues.map(e=>{let t=Sf[e.severity];return(0,u.jsxs)(`li`,{className:`flex items-start gap-3 p-4`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:t.iconName,alt:``,className:`mt-0.5 shrink-0 ${t.className}`}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold uppercase ${t.className}`,children:t.label}),(0,u.jsx)(f,{variant:`free`,className:`rounded-full px-2 py-0.5 text-xs font-bold ${e.blocking?`bg-accent text-secondary`:`bg-tertiaryActive text-tertiary`}`,children:e.blocking?`Blocking`:`Non-blocking`}),e.location||e.identifier?(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:[e.location,e.identifier?`${e.identifier.label}: ${e.identifier.value}`:null].filter(Boolean).join(` · `)}):null]}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:e.message})]})]},e.id)})})]},e.id))}),(0,u.jsxs)(`div`,{className:`flex flex-col-reverse gap-3 md:flex-row md:justify-end`,children:[(0,u.jsx)(O,{label:c,variant:`outline`,onClick:p}),(0,u.jsx)(O,{label:l,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,disabled:d,onClick:m})]})]}):(0,u.jsx)(Xd,{status:r,onRetryClick:h})}),wf={added:`Added`,updated:`Updated`,unchanged:`Unchanged`},Tf=({changeType:e})=>{let t=wf[e];return(0,u.jsx)(`span`,{"aria-label":t,title:t,className:`mt-0.5 flex h-5 w-5 shrink-0 self-start items-center justify-center rounded-full bg-tertiary text-secondary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:e===`added`?`plus`:`pencil`,alt:``,size:`xs`})})},Ef=({row:e})=>{let t=e.currentValue?.trim()||`—`,n=e.afterValue?.trim()||`—`;return(0,u.jsxs)(`div`,{className:`grid border-t border-borderTertiary md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 p-4`,children:[(0,u.jsx)(f,{variant:`free`,className:`mb-2 text-xs font-bold uppercase text-tertiary md:hidden`,children:`Current`}),(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:e.label}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 break-words text-sm text-primary`,children:t})]}),(0,u.jsxs)(`div`,{className:`min-w-0 border-t border-borderTertiary bg-adminSideNavBackground p-4 md:border-l md:border-t-0`,children:[(0,u.jsx)(f,{variant:`free`,className:`mb-2 text-xs font-bold uppercase text-tertiary md:hidden`,children:`After`}),(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:e.label}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 break-words text-sm ${e.changeType===`unchanged`?`text-tertiary`:`font-bold text-primary`}`,children:e.changeType===`unchanged`?t:n})]})]})},Df=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},fileName:i,scopeLabel:a,ranges:o,cancelLabel:s=`Cancel Import`,continueLabel:c=`Apply Import`,continueDisabled:l=!1,cancelConfirmation:d,onCancelClick:p,onCancelConfirm:m,onCancelClose:h,onContinueClick:g,onRetryClick:_})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(qd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:r.state===`ready`?(0,u.jsxs)(`div`,{className:`mt-6 grid gap-5`,children:[(0,u.jsxs)(`section`,{"aria-label":`Import review summary`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Final Import Review`}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm font-bold text-primary`,children:i}),(0,u.jsxs)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:[a,` · `,o.length.toLocaleString(),` `,o.length===1?`range`:`ranges`]})]}),(0,u.jsx)(`section`,{"aria-label":`Changes in this import`,className:`grid gap-5`,children:o.map(e=>(0,u.jsxs)(`article`,{className:`overflow-hidden rounded-lg border border-borderTertiary bg-secondary shadow-sm`,children:[(0,u.jsxs)(`header`,{className:`flex flex-col gap-2 border-b border-borderTertiary p-5 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:`Range`}),(0,u.jsxs)(f,{as:`h2`,variant:`free`,className:`mt-1 text-lg font-bold text-primary`,children:[e.name,e.code?` · ${e.code}`:``]})]}),(0,u.jsx)(Tf,{changeType:e.changeType})]}),(0,u.jsx)(`div`,{className:`grid gap-5 p-5`,children:e.decors.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`${e.id}-title`,className:`overflow-hidden rounded-lg border border-borderTertiary`,children:[(0,u.jsxs)(`header`,{className:`flex flex-col gap-2 bg-tertiaryActive p-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:`Decor`}),(0,u.jsxs)(f,{as:`h3`,id:`${e.id}-title`,variant:`free`,className:`mt-1 text-base font-bold text-primary`,children:[e.code,e.name?` · ${e.name}`:``]})]}),(0,u.jsx)(Tf,{changeType:e.changeType})]}),(0,u.jsx)(`div`,{className:`grid gap-5 p-4`,children:e.sections.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`${e.id}-title`,children:[(0,u.jsx)(f,{as:`h4`,id:`${e.id}-title`,variant:`free`,className:`text-sm font-bold text-primary`,children:e.title}),(0,u.jsxs)(`div`,{className:`mt-3 overflow-hidden rounded-md border border-borderTertiary`,children:[(0,u.jsxs)(`div`,{className:`hidden grid-cols-2 bg-tertiaryActive md:grid`,children:[(0,u.jsx)(f,{variant:`free`,className:`px-4 py-3 text-xs font-bold uppercase text-tertiary`,children:`Current`}),(0,u.jsx)(f,{variant:`free`,className:`border-l border-borderTertiary px-4 py-3 text-xs font-bold uppercase text-tertiary`,children:`After`})]}),e.rows.map(e=>(0,u.jsx)(Ef,{row:e},e.id))]})]},e.id))})]},e.id))})]},e.id))}),(0,u.jsxs)(`div`,{className:`flex flex-col-reverse gap-3 md:flex-row md:justify-end`,children:[(0,u.jsx)(O,{label:s,variant:`outline`,intent:`danger`,onClick:p}),(0,u.jsx)(O,{label:c,iconType:`fa-solid`,iconName:`check`,iconAlt:``,disabled:l,onClick:g})]})]}):(0,u.jsx)(Xd,{status:r,onRetryClick:_})}),(0,u.jsx)(jc,{open:d?.open??!1,title:d?.title??`Cancel import?`,closeLabel:d?.cancelLabel,size:`sm`,onClose:h??(()=>void 0),children:d?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsx)(f,{variant:`free`,className:`whitespace-pre-line text-sm text-primary`,children:d.message}),(0,u.jsxs)(`div`,{className:`flex flex-col-reverse gap-2 md:flex-row md:justify-end`,children:[(0,u.jsx)(O,{label:d.cancelLabel??`Keep Import Set`,variant:`outline`,disabled:d.pending,onClick:h}),(0,u.jsx)(O,{label:d.confirmLabel??`Delete Import Set`,intent:`danger`,disabled:d.pending,"aria-busy":d.pending||void 0,onClick:m})]})]}):null})]}),Of=e=>e===`error`?`text-accent`:e===`success`?`text-saleGreen`:`text-primary`,kf=({status:e,message:t})=>{let n=t?.trim()??``;return!n||e===`idle`?null:(0,u.jsx)(f,{role:e===`error`?`alert`:`status`,variant:`free`,className:`mt-3 text-sm ${Of(e)}`,children:n})},Af=({guide:e,uploadDropLabel:t,uploadBrowseLabel:n,uploadLabel:r,clearFileLabel:i,completeLabel:a,onGuideFileSelect:o,onUploadClick:s,onClearSelectedFileClick:l})=>{let d=(0,c.useRef)(null),p=(0,c.useId)(),m=e.actionStatus??`idle`,h=m===`validating`||m===`pending`,_=(e.availability??`available`)===`available`,v=e.uploadDropLabel??t,y=e.uploadBrowseLabel??n,b=e.uploadLabel??r,x=e.completeLabel??a,S=t=>o?.({guideId:e.id,files:Array.from(t??[])});return(0,u.jsxs)(`article`,{className:`flex w-full flex-col rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:flex-row md:items-start md:gap-6`,children:[(0,u.jsxs)(`div`,{className:`flex items-start gap-4`,children:[e.logo?(0,u.jsx)(`span`,{className:`flex h-10 w-20 shrink-0 items-center justify-center rounded-md border border-borderTertiary bg-adminSideNavBackground px-3`,children:(0,u.jsx)(`img`,{src:e.logo.src,alt:e.logo.alt??``,className:`max-h-6 w-full object-contain opacity-70 brightness-0`,loading:`eager`,decoding:`async`})}):(0,u.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-borderTertiary bg-adminSideNavBackground text-primary`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`book-open`,alt:``,size:`md`})}),(0,u.jsxs)(`div`,{className:`min-w-0 md:w-72`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e.title}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:e.description})]})]}),(0,u.jsx)(`div`,{className:`mt-5 min-w-0 flex-1 md:mt-0`,children:_?(0,u.jsxs)(u.Fragment,{children:[m===`success`?(0,u.jsxs)(`div`,{role:`status`,className:`mb-5 flex items-center gap-2 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`circle-check`,alt:``,className:`shrink-0 text-saleGreen`}),(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:x})]}):null,(0,u.jsxs)(`div`,{className:`flex min-h-40 flex-col items-center justify-center rounded-lg border border-dashed border-secondaryActive bg-adminSideNavBackground p-5 text-center transition hover:border-primary`,onDragOver:e=>e.preventDefault(),onDrop:e=>{e.preventDefault(),S(e.dataTransfer.files)},children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`,className:`text-primary`}),(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:v}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:`Drop it here, or select it from your computer.`}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(O,{label:y,iconType:`fa-solid`,iconName:`folder-open`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,disabled:h,onClick:()=>d.current?.click()})}),(0,u.jsx)(`input`,{ref:d,id:`${p}-product-guide-upload`,type:`file`,accept:e.fileAccept??`.pdf,application/pdf`,className:`sr-only`,disabled:h,onChange:e=>S(e.target.files)})]}),e.selectedFile?(0,u.jsxs)(`div`,{className:`mt-4 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`file`,alt:``,size:`lg`,className:`text-primary`}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(f,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:e.selectedFile.name}),e.selectedFile.sizeLabel?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:e.selectedFile.sizeLabel}):null]})]}),(0,u.jsxs)(`div`,{className:`mt-4 flex flex-col gap-2 md:flex-row md:justify-end`,children:[(0,u.jsx)(O,{label:i,variant:`outline`,intent:`primary`,size:`sm`,disabled:h,onClick:()=>l?.({guideId:e.id})}),(0,u.jsx)(O,{label:b,iconType:`fa-solid`,iconName:`cloud-arrow-up`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,disabled:e.uploadDisabled||h,"aria-busy":h||void 0,onClick:()=>s?.({guideId:e.id})})]})]}):null,e.validationIssues?.length?(0,u.jsxs)(`div`,{role:`alert`,className:`mt-4 rounded-md border border-accent bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-accent`,children:`Validation issues`}),(0,u.jsx)(`ul`,{className:`mt-2 list-disc space-y-1 pl-5`,children:e.validationIssues.map((e,t)=>(0,u.jsxs)(`li`,{className:`text-xs text-primary`,children:[(0,u.jsx)(`span`,{className:`font-bold`,children:e.path}),`:`,` `,e.message]},`${e.path}-${e.message}-${t}`))})]}):null,m===`success`?null:(0,u.jsx)(kf,{status:m,message:e.actionStatusMessage})]}):(0,u.jsxs)(`div`,{role:`status`,className:`flex min-h-36 flex-col items-center justify-center rounded-lg border border-dashed border-borderTertiary bg-adminSideNavBackground p-5 text-center`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`clock`,alt:``,size:`xl`,className:`text-tertiary`}),(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:e.availabilityMessage??`Upload support is coming soon.`})]})})]})},jf=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},guides:i,emptyTitle:a=`No product guides configured`,emptyDescription:o=`Add a product-guide configuration before uploading data.`,uploadDropLabel:s=`Drag a product guide PDF file here`,uploadBrowseLabel:c=`Select PDF File`,uploadLabel:l=`Replace Active Guide`,clearFileLabel:d=`Clear File`,completeLabel:p=`Complete`,onGuideFileSelect:m,onUploadClick:h,onClearSelectedFileClick:_,onRetryClick:v})=>{let y;return y=r.state===`ready`?i.length===0?(0,u.jsxs)(`section`,{className:`mt-6 rounded-lg border border-borderTertiary bg-secondary p-6 text-center shadow-sm`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`book`,alt:``,size:`2xl`,className:`text-tertiary`}),(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`mt-4 text-lg font-bold text-primary`,children:a}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:o})]}):(0,u.jsx)(`section`,{"aria-label":`Product guides`,className:`mt-6 grid gap-4`,children:i.map(e=>(0,u.jsx)(Af,{guide:e,uploadDropLabel:s,uploadBrowseLabel:c,uploadLabel:l,clearFileLabel:d,completeLabel:p,onGuideFileSelect:m,onUploadClick:h,onClearSelectedFileClick:_},e.id))}):(0,u.jsx)(Xd,{status:r,onRetryClick:v}),(0,u.jsx)(qd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:y})},Mf=({shellProps:e,items:t,emptyTitle:n=`No favorite products yet`,emptyMessage:r=`Save products you love and they will appear here.`,browseLabel:i=`Browse products`,onFavoriteClick:a,onBrowseClick:o})=>(0,u.jsxs)(Ru,{...e,activeTabId:`favorites`,children:[(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`font-rockwell text-3xl text-primary`,children:`Favorites`}),(0,u.jsx)(f,{className:`mt-2 text-secondaryActive`,children:`Your saved products, all in one place.`}),t.length>0?(0,u.jsx)(`section`,{"aria-label":`Favorite products`,className:`mt-8 grid grid-cols-1 gap-6 md:grid-cols-3`,children:t.map(e=>(0,u.jsx)(hc,{...e,onSwatchClick:()=>a({item:e})},e.id))}):(0,u.jsxs)(`section`,{className:`mt-6 flex min-h-72 flex-col items-center justify-center rounded-lg border border-borderTertiary bg-white p-8 text-center`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`heart`,alt:``,size:`4xl`,color:`secondaryHover`}),(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`mt-5 font-rockwell text-2xl text-primary`,children:n}),(0,u.jsx)(f,{className:`mt-2 text-secondaryActive`,children:r}),(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(O,{label:i,intent:`accent`,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,onClick:o})})]})]}),Nf=({shellProps:e,personalInformation:t,password:n,shippingAddresses:r,billingAddresses:i,onAddAddressClick:a,onEditAddressClick:o,onRemoveAddressClick:s})=>{let c=t.errors??{},l=n.errors??{};return(0,u.jsxs)(Ru,{...e,activeTabId:`account-settings`,children:[(0,u.jsx)(`h1`,{className:`sr-only`,children:`Account Settings`}),(0,u.jsxs)(`section`,{"aria-labelledby":`personal-information-heading`,children:[(0,u.jsx)(f,{id:`personal-information-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Personal Information`}),(0,u.jsxs)(`div`,{className:`mt-4 rounded-lg border border-borderTertiary bg-white p-6`,children:[(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-5 md:grid-cols-2`,children:[(0,u.jsx)($,{id:`customer-first-name`,name:`firstName`,label:`First name`,value:t.firstName,autoComplete:`given-name`,hasError:!!c.firstName,errorMessage:c.firstName,onChange:t.onFirstNameChange}),(0,u.jsx)($,{id:`customer-last-name`,name:`lastName`,label:`Last name`,value:t.lastName,autoComplete:`family-name`,hasError:!!c.lastName,errorMessage:c.lastName,onChange:t.onLastNameChange}),(0,u.jsx)($,{id:`customer-email`,name:`email`,type:`email`,label:`Email address`,value:t.email,autoComplete:`email`,hasError:!!c.email,errorMessage:c.email,onChange:t.onEmailChange}),(0,u.jsx)($,{id:`customer-phone-number`,name:`phoneNumber`,type:`tel`,label:`Phone number`,placeholder:`Phone number`,value:t.phoneNumber??``,autoComplete:`tel`,hasError:!!c.phoneNumber,errorMessage:c.phoneNumber,onChange:t.onPhoneNumberChange})]}),(0,u.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,u.jsx)(O,{label:`Save changes`,intent:`accent`,disabled:t.saveDisabled,onClick:t.onSaveClick})})]})]}),(0,u.jsxs)(`section`,{className:`mt-10`,"aria-labelledby":`change-password-heading`,children:[(0,u.jsx)(f,{id:`change-password-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Change Password`}),(0,u.jsxs)(`div`,{className:`mt-4 rounded-lg border border-borderTertiary bg-white p-6`,children:[(0,u.jsxs)(`div`,{className:`flex max-w-xl flex-col gap-5`,children:[(0,u.jsx)($,{id:`customer-current-password`,name:`currentPassword`,type:`password`,label:`Current password`,placeholder:`Enter current password`,value:n.currentPassword,autoComplete:`current-password`,hasError:!!l.currentPassword,errorMessage:l.currentPassword,onChange:n.onCurrentPasswordChange}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)($,{id:`customer-new-password`,name:`newPassword`,type:`password`,label:`New password`,placeholder:`Enter new password`,value:n.newPassword,autoComplete:`new-password`,hasError:!!l.newPassword,errorMessage:l.newPassword,onChange:n.onNewPasswordChange}),n.passwordRequirements?(0,u.jsx)(f,{variant:`caption`,className:`mt-2`,children:n.passwordRequirements}):null]}),(0,u.jsx)($,{id:`customer-confirm-password`,name:`confirmPassword`,type:`password`,label:`Confirm new password`,placeholder:`Repeat new password`,value:n.confirmPassword,autoComplete:`new-password`,hasError:!!l.confirmPassword,errorMessage:l.confirmPassword,onChange:n.onConfirmPasswordChange})]}),(0,u.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,u.jsx)(O,{label:`Update password`,intent:`accent`,disabled:n.submitDisabled,onClick:n.onSubmitClick})})]})]}),(0,u.jsxs)(`section`,{className:`mt-10`,"aria-labelledby":`shipping-addresses-heading`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsx)(f,{id:`shipping-addresses-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Shipping Addresses`}),(0,u.jsx)(O,{label:`Add shipping address`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,intent:`accent`,onClick:()=>a({addressType:`shipping`})})]}),r.length>0?(0,u.jsx)(`div`,{className:`mt-4 grid grid-cols-1 gap-6 md:grid-cols-2`,children:r.map(e=>(0,u.jsx)(gc,{address:e,onEditClick:({address:e})=>o({addressType:`shipping`,address:e}),onRemoveClick:({address:e})=>s({addressType:`shipping`,address:e})},e.id))}):(0,u.jsx)(f,{className:`mt-4 text-secondaryActive`,children:`No shipping addresses have been saved.`})]}),(0,u.jsxs)(`section`,{className:`mt-10 border-t border-borderTertiary pt-10`,"aria-labelledby":`billing-addresses-heading`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsx)(f,{id:`billing-addresses-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Billing Addresses`}),(0,u.jsx)(O,{label:`Add billing address`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,intent:`accent`,onClick:()=>a({addressType:`billing`})})]}),i.length>0?(0,u.jsx)(`div`,{className:`mt-4 grid grid-cols-1 gap-6 md:grid-cols-2`,children:i.map(e=>(0,u.jsx)(gc,{address:e,onEditClick:({address:e})=>o({addressType:`billing`,address:e}),onRemoveClick:({address:e})=>s({addressType:`billing`,address:e})},e.id))}):(0,u.jsx)(f,{className:`mt-4 text-secondaryActive`,children:`No billing addresses have been saved.`})]})]})},Pf=({shellProps:e,status:t,period:n,statusOptions:r,periodOptions:i,orders:a,totalOrderCount:o,hasMoreOrders:s=!1,isLoadingMore:c=!1,seeMoreLabel:l=`See more orders`,searchDisabled:d=!1,emptyMessage:p=`No orders match your current filters.`,onStatusChange:m,onPeriodChange:h,onSearchClick:g,onOrderClick:_,onSeeMoreClick:v})=>{let y=s&&!!v;return(0,u.jsxs)(Ru,{...e,activeTabId:`order-history`,children:[(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`font-rockwell text-3xl text-primary`,children:`Order History`}),(0,u.jsx)(`section`,{"aria-label":`Search orders`,className:`mt-5 rounded-lg border border-borderTertiary bg-white p-6`,children:(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-5 md:grid-cols-3 md:items-end`,children:[(0,u.jsxs)(`label`,{className:`flex flex-col gap-2 text-sm font-semibold text-primary`,children:[`Status`,(0,u.jsx)(Q,{id:`customer-order-status`,name:`status`,value:t,options:r,onChange:m})]}),(0,u.jsxs)(`label`,{className:`flex flex-col gap-2 text-sm font-semibold text-primary`,children:[`Period`,(0,u.jsx)(Q,{id:`customer-order-period`,name:`period`,value:n,options:i,onChange:h})]}),(0,u.jsx)(O,{label:`Search orders`,iconType:`fa-solid`,iconName:`magnifying-glass`,iconAlt:``,intent:`accent`,disabled:d,onClick:g})]})}),a.length>0?(0,u.jsxs)(`section`,{"aria-label":`Orders`,className:`mt-6 space-y-4`,children:[(0,u.jsxs)(`div`,{className:`hidden grid-cols-5 gap-4 rounded-lg bg-tertiaryActive px-6 py-3 text-sm font-semibold text-primary md:grid`,children:[(0,u.jsx)(`span`,{children:`Order`}),(0,u.jsx)(`span`,{children:`Date`}),(0,u.jsx)(`span`,{children:`Status`}),(0,u.jsx)(`span`,{children:`Total`}),(0,u.jsx)(`span`,{children:`Tracking`})]}),a.map(e=>(0,u.jsxs)(`article`,{className:`grid grid-cols-1 gap-4 rounded-lg border border-borderTertiary bg-white p-6 md:grid-cols-5 md:items-center`,children:[(0,u.jsxs)(`button`,{type:`button`,className:`text-left font-semibold text-accent hover:underline`,onClick:()=>_({order:e}),children:[`#`,e.orderNumber]}),(0,u.jsx)(`span`,{className:`text-sm text-primary`,children:e.date}),(0,u.jsx)(`span`,{className:`text-sm text-primary`,children:e.status}),(0,u.jsx)(`span`,{className:`text-sm font-semibold text-primary`,children:e.total}),(0,u.jsx)(`span`,{className:`text-sm text-primary`,children:e.trackingNumber??`Not available`})]},e.id)),y?(0,u.jsxs)(`div`,{className:`flex flex-col items-center gap-3 pt-2`,children:[o?(0,u.jsxs)(f,{variant:`caption`,children:[`Showing `,a.length,` of `,o,` orders`]}):null,(0,u.jsx)(O,{label:c?`Loading orders…`:l,variant:`outline`,intent:`primary`,disabled:c,onClick:v})]}):null]}):(0,u.jsx)(`section`,{className:`mt-6 rounded-lg border border-borderTertiary bg-white p-10 text-center`,children:(0,u.jsx)(f,{className:`text-secondaryActive`,children:p})})]})},Ff=(e,t)=>(0,u.jsxs)(`section`,{"aria-label":e,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`font-semibold text-primary`,children:e}),(0,u.jsxs)(`address`,{className:`mt-3 not-italic`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:t.name}),t.lines.map((e,t)=>(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:e},`${e}-${t}`))]})]}),If=({shellProps:e,orderNumber:t,orderDate:n,status:r,statusTone:i=`neutral`,projectName:a,fulfillmentGroups:o,shippingAddress:s,billingAddress:c,paymentMethod:l,summaryRows:d,backLabel:p=`Back to order history`,invoiceLabel:m=`Download invoice`,helpLabel:h=`Get help with this order`,onBackClick:g,onInvoiceClick:_,onHelpClick:v,onProductClick:y,onTrackingClick:b})=>(0,u.jsxs)(Ru,{...e,activeTabId:`order-history`,children:[(0,u.jsx)(`div`,{className:`flex justify-start`,children:(0,u.jsx)(O,{label:p,iconType:`fa-solid`,iconName:`arrow-left`,iconAlt:``,variant:`link`,intent:`primary`,size:`sm`,onClick:g})}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(vc,{orderNumber:t,orderDate:n,status:r,statusTone:i,projectName:a,invoiceLabel:m,onInvoiceClick:_})}),(0,u.jsxs)(`section`,{className:`mt-8`,"aria-labelledby":`order-items-heading`,children:[(0,u.jsx)(f,{id:`order-items-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Items`}),(0,u.jsx)(`div`,{className:`mt-4 space-y-8`,children:o.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`${e.id}-heading`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 border-b border-borderTertiary pb-3 md:flex-row md:items-end md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{id:`${e.id}-heading`,as:`h3`,variant:`free`,className:`font-rockwell text-xl text-primary`,children:e.title}),e.facility?(0,u.jsxs)(f,{className:`mt-1 text-sm text-secondaryActive`,children:[`Ships from `,e.facility]}):null]}),(0,u.jsxs)(`div`,{className:`text-left md:text-right`,children:[(0,u.jsxs)(f,{className:`text-sm font-semibold text-primary`,children:[e.shippingMethod.name,` · `,e.shippingCost]}),e.shippingMethod.estimatedDelivery?(0,u.jsx)(f,{className:`mt-1 text-sm text-secondaryActive`,children:e.shippingMethod.estimatedDelivery}):null]})]}),(0,u.jsx)(`div`,{className:`mt-4 space-y-4`,children:e.items.map(e=>(0,u.jsx)(bc,{item:e,onProductClick:y,onTrackingClick:b},e.id))})]},e.id))})]}),(0,u.jsxs)(`div`,{className:`mt-8 grid grid-cols-1 gap-6 md:grid-cols-2`,children:[(0,u.jsxs)(`section`,{className:`rounded-lg border border-borderTertiary bg-white p-5 md:p-6`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Delivery details`}),(0,u.jsx)(`div`,{className:`mt-5`,children:Ff(`Shipping address`,s)}),c||l?(0,u.jsxs)(`div`,{className:`mt-6 grid grid-cols-1 gap-6 border-t border-borderTertiary pt-6 md:grid-cols-2`,children:[c?Ff(`Billing address`,c):null,l?(0,u.jsxs)(`section`,{"aria-label":`Payment method`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`font-semibold text-primary`,children:`Payment method`}),(0,u.jsx)(f,{className:`mt-3 text-sm text-primary`,children:l})]}):null]}):null]}),(0,u.jsxs)(`section`,{className:`rounded-lg bg-tertiaryActive p-5 md:p-6`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Order total`}),(0,u.jsx)(`dl`,{className:`mt-5 space-y-4`,children:d.map((e,t)=>(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-6 ${e.isEmphasized?`border-t border-borderTertiary pt-4`:``}`,children:[(0,u.jsx)(`dt`,{className:e.isEmphasized?`font-semibold text-primary`:`text-sm text-primary`,children:e.label}),(0,u.jsx)(`dd`,{className:`${e.isEmphasized?`font-semibold text-primary`:`text-sm text-primary`} ${e.tone===`accent`?`text-accent`:``}`,children:e.value})]},`${e.label}-${t}`))})]})]}),v?(0,u.jsx)(`div`,{className:`mt-8 flex justify-end`,children:(0,u.jsx)(O,{label:h,variant:`outline`,intent:`primary`,onClick:v})}):null]});exports.AccountAccessPanel=Lu,exports.AdminAuthStatusTemplate=lf,exports.AdminBackgroundJobTray=kc,exports.AdminDashboardTemplate=tf,exports.AdminDataIssuesSourceTemplate=_f,exports.AdminDataReportTemplate=ff,exports.AdminImportDataIssuesTemplate=Cf,exports.AdminImportDataReviewTemplate=Df,exports.AdminImportDataSourceTemplate=xf,exports.AdminPageTemplateShell=qd,exports.AdminProductGuidesTemplate=jf,exports.AdminRegionSelector=zo,exports.AdminSideNav=Sc,exports.AdminUsersTemplate=of,exports.AnnouncementBar=el,exports.ArticleBanner=Yl,exports.ArticleBannerContent=Bs,exports.ArticleLandingPageTemplate=id,exports.BpcsCartConfirmationTemplate=jd,exports.BpcsCartSamplesTemplate=Id,exports.BpcsCartShippingTemplate=Fd,exports.BrandNavBar=Hc,exports.Breadcrumbs=tl,exports.BusinessInfoCard=oe,exports.Button=O,exports.CallToActionHero=fl,exports.CallToActionHeroContent=Vs,exports.CarouselArrowControls=Ts,exports.CarouselDots=Es,exports.CartItemCard=le,exports.CategoryPageTemplate=md,exports.ClickableCard=K,exports.ColourMatchingChart=$s,exports.ColumnBanner=yl,exports.ColumnCarouselCard=Ao,exports.CommerceSyncPanel=Mu,exports.ContentCarousel=Xl,exports.ContentContainer=z,exports.ContentGrid=B,exports.CountrySelector=Lo,exports.CustomerAccountFavoritesTemplate=Mf,exports.CustomerAccountOrderDetailTemplate=If,exports.CustomerAccountOrderHistoryTemplate=Pf,exports.CustomerAccountSettingsTemplate=Nf,exports.CustomerAccountShell=Ru,exports.CustomerAddressCard=gc,exports.DataReportCollection=yu,exports.DecorSummaryCard=_e,exports.DecorSummaryCollection=bu,exports.DocumentLinkCard=qs,exports.DropdownFilter=Ss,exports.DynamicForm=us,exports.EcommCartConfirmationTemplate=Rd,exports.EcommCartPaymentTemplate=Vd,exports.EcommCartShippingTemplate=Hd,exports.EcommCartSummaryTemplate=Kd,exports.EmbeddedVideo=P,exports.EmbeddedVideoCard=Ks,exports.FaqCard=Js,exports.FaqCardCollection=au,exports.FeatureCard=jo,exports.FeatureCardCollection=Cl,exports.FeaturedArticleBanner=pl,exports.FeaturedArticleBannerContent=Hs,exports.FeaturedProductCard=Mo,exports.FeaturedProductsCarousel=ru,exports.FilterBar=bs,exports.FilterBarButton=xs,exports.FlowRow=W,exports.Footer=cl,exports.FormicaText=f,exports.GalleryTemplate=gd,exports.Icon=g,exports.Image=j,exports.ImageCard=Zl,exports.ImageOverlayCard=Gs,exports.ImageOverlayGrid=cu,exports.InfoCard=Ys,exports.Interactive3DViewer=F,exports.LocalizationMarketCollection=du,exports.LocalizationStatusCard=fc,exports.LocationCard=Io,exports.LocationCardCollection=uu,exports.LocationMap=Du,exports.LoginTemplate=Cd,exports.MarketReadinessBrowseTemplate=uf,exports.MarketReadinessItemSkuSection=ys,exports.MarketReadinessRangeSelector=Bo,exports.MarketReadinessRangeTemplate=df,exports.MarketReadinessSampleCard=pe,exports.MarketReadinessSkuCard=he,exports.MarketReadinessStatusDots=de,exports.MarketReadinessTemplate=ef,exports.MarketReadinessVariantOptions=Vo,exports.Modal=jc,exports.MoreInfoHighlightsCard=Xs,exports.MoreInfoHighlightsCollection=wl,exports.OrderDetailHeaderCard=vc,exports.OrderItemDetailCard=bc,exports.ProResourceTemplate=vd,exports.ProductContactActions=ue,exports.ProductDetailPageTemplate=nd,exports.QuantityCheckoutCard=tc,exports.RangeSummaryCard=Ne,exports.RangeSummaryCollection=xu,exports.RecentArticleCard=lc,exports.RecentArticleCollection=iu,exports.ResilientImage=L,exports.SalesforceCartShippingTemplate=Ld,exports.SalesforceCustomerDetailsForm=El,exports.SampleOrderSummaryPanel=Tl,exports.SearchCombobox=Wo,exports.SearchFilter=ws,exports.SearchResultsTemplate=Sd,exports.SingleButtonCard=uc,exports.SocialLinkRow=Ws,exports.Spinner=v,exports.StandardBannerContainer=ul,exports.StandardCarousel=Ls,exports.StandardCopyBannerContent=Us,exports.StandardCopyHero=Jl,exports.SwatchCard=hc,exports.SwatchPurchasePanel=ql,exports.TextCard=tu,exports.Textarea=R,exports.TopNavAccountDrawer=Xc,exports.TopNavActions=qc,exports.TopNavBar=$c,exports.TopNavMegaMenu=Uc,exports.TopNavSearchResults=Gc,exports.VerticalCheckboxListCollection=Pu,exports.VerticalColorSwatchList=zs,exports.WarrantyCard=nu,exports.WhereToBuySearchBanner=dl,exports.WhereToBuyTemplate=Td,exports.userTypeOptions=Fu;