formica-ui-lib 1.0.269 → 1.0.270

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`);var d=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})},f={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`},p={inherit:`text-inherit`,primary:`text-primary`,secondary:`text-secondary`,secondaryHover:`text-secondaryHover`,accent:`text-accent`},m=e=>e?e.startsWith(`fa-`)?e:`fa-${e}`:``,h=({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=f[r],l=p[i],d=m(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})})},g={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`},_=({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:`${g[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]})},v=`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`,y={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`},b={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`},x={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`},S={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`},C={"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`},w={"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`},T=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?S[r]:b[r],d=t===`chip`?x[r]:u;return[v,y[t],d,C[l],i?w[l]??``:``,a?`w-full`:``,c,s].filter(Boolean).join(` `)},E=()=>`body`,D=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:f,size:p=`md`,buttonAlignment:m=`justify-center`,className:g=``,active:v=!1,fullWidth:y=!1,type:b=`button`,...x}=e,S=null;r&&i&&(S=i===`spinner`?(0,u.jsx)(_,{label:``,size:o}):(0,u.jsx)(h,{iconType:r,iconName:i,alt:a,size:o}));let C=T({variant:c,intent:f??l,size:p,active:v,fullWidth:y,iconOnly:!t&&!n&&!!S,className:g,buttonAlignment:m}),w=(0,u.jsxs)(u.Fragment,{children:[s===`left`&&S,n??(t?(0,u.jsx)(d,{as:`span`,variant:E(),className:`text-inherit!`,children:t}):null),s===`right`&&S]});return(0,u.jsx)(`button`,{type:b,className:C,...x,children:w})};function O({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 k(){return typeof process<`u`&&process?.env?.NETLIFY===`true`}var A=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??k(),p=typeof e==`string`&&e.startsWith(`http`),m=typeof a==`number`?a:void 0,h=e;return f&&p&&(h=O({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})});A.displayName=`Image`;var j=`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,M=({src:e,title:t,className:n=``,allow:r=j,allowFullScreen:i=!0,loading:a=`lazy`,...o})=>(0,u.jsx)(`iframe`,{src:e,title:t,className:`w-full ${n}`.trim(),allow:r,allowFullScreen:i,loading:a,...o}),N=e=>typeof e==`string`&&e.trim().length>0?e:void 0,P=({src:e,fallbackSrc:t,placeholderSrc:n,alt:r,imageClassName:i=``,placeholderClassName:a=``,onImageStatusChange:o,...s})=>{let l=c.default.useRef(null),d=N(e),f=N(t),p=N(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)(A,{...s,ref:l,src:m,alt:r,className:`${i} ${g===`loaded`?`opacity-100`:`opacity-0`}`.trim(),onError:b,onLoad:y}):null]})},ee=({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})=>(0,u.jsx)(`textarea`,{id:e,name:t,value:n,placeholder:r,"aria-label":i,disabled:a,readOnly:o,required:s,rows:l,className:[`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(` `),onChange:d,onBlur:f,onFocus:p}),F={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`},I={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`,L=({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:``} ${I[a]} ${t}`.trim(),children:(0,u.jsx)(`div`,{className:`mx-auto w-full ${F[i]} ${n}`.trim(),children:e})}),R={1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`},z={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)(L,{className:t,maxWidth:r,spacing:i,children:(0,u.jsx)(`div`,{className:`grid ${R[a]} ${z[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}),ne=`font-bold text-primary`,G=(e,t,n)=>{e?.({label:t,href:n})},K=({heading:e,address:t,mapLink:n,hours:r,phone:i,email:a,onAddressClick:o,onMapClick:s,onPhoneClick:c,onEmailClick:l})=>{let f=t?.lines.join(` `);return(0,u.jsxs)(`article`,{className:`w-full bg-white py-10 md:py-16`,children:[(0,u.jsx)(d,{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)(d,{variant:`bold`,className:`text-primary`,children:t.label??`Address:`}),(0,u.jsx)(`div`,{children:t.href?(0,u.jsx)(d,{as:`a`,variant:`link`,href:t.href,onClick:()=>G(o,f??``,t.href),children:f}):(0,u.jsx)(d,{as:`span`,variant:`body`,className:`text-base`,children:f})})]}):null,n?(0,u.jsx)(`div`,{children:n.href?(0,u.jsx)(d,{as:`a`,variant:`link`,href:n.href,onClick:()=>G(s,n.label,n.href),children:n.label}):(0,u.jsx)(d,{as:`span`,variant:`body`,className:`text-base`,children:n.label})}):null]}):null,r?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{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:ne,children:[e.dayLabel,`:`]}),(0,u.jsx)(`dd`,{children:e.hours})]},e.dayLabel))})]}):null,i?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{variant:`bold`,className:`text-primary`,children:i.label??`Telephone Number:`}),(0,u.jsx)(`div`,{children:i.href?(0,u.jsx)(d,{as:`a`,variant:`link`,href:i.href,onClick:()=>G(c,i.value,i.href),children:i.value}):(0,u.jsx)(d,{as:`span`,variant:`body`,className:`text-base`,children:i.value})})]}):null,a?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{variant:`bold`,className:`text-primary`,children:a.label??`Email Address:`}),(0,u.jsx)(`div`,{children:a.href?(0,u.jsx)(d,{as:`a`,variant:`link`,href:a.href,onClick:()=>G(l,a.value,a.href),children:a.value}):(0,u.jsx)(d,{as:`span`,variant:`body`,className:`text-base`,children:a.value})})]}):null]})]})},q=(e,t,n)=>Math.max(t,Math.min(n,e)),re=e=>[`h-12 w-12 border-2 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),ie=({imageSrc:e,imageAlt:t,title:n,brand:r,decorNumber:i,productType:a,quantity:o,price:s,minQuantity:c=1,maxQuantity:l=99,onQuantityChange:f,onRemoveItem:p})=>{let m=q(o,c,l),h=()=>{let e=q(m-1,c,l);e!==m&&f?.(e)},g=()=>{let e=q(m+1,c,l);e!==m&&f?.(e)},_=m>c,v=m<l;return(0,u.jsxs)(`div`,{className:`relative flex rounded-lg bg-tertiaryActive p-5`,children:[(0,u.jsx)(D,{className:`absolute top-5 right-5`,iconType:`fa-regular`,iconName:`trash-can`,intent:`primary`,variant:`ghost`,onClick:p,"aria-label":`Remove ${n} from cart`}),(0,u.jsx)(A,{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)(d,{variant:`free`,className:`text-sm text-tertiary`,children:i}):null,(0,u.jsx)(d,{variant:`free`,className:`text-primary text-md font-extrabold`,children:n}),(0,u.jsxs)(`div`,{className:`flex justify-between`,children:[r?(0,u.jsx)(d,{variant:`free`,className:`text-md text-primary`,children:r}):null,(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-md font-bold text-primary`,children:a===`sample`&&s.value===0?`Free`:s.label})]}),(0,u.jsxs)(`div`,{className:`mt-2 flex items-stretch gap-1`,children:[(0,u.jsx)(D,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":`Decrease quantity`,type:`button`,disabled:!_,onClick:h,className:re(_)}),(0,u.jsx)(`div`,{className:`flex min-w-10 items-center justify-center`,children:(0,u.jsx)(d,{as:`span`,variant:`free`,className:`text-xl`,children:m})}),(0,u.jsx)(D,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":`Increase quantity`,type:`button`,disabled:!v,onClick:g,className:re(v)})]})]})]})},ae=({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)(D,{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)})})},J=({children:e,onCardClick:t,ariaLabel:n,ariaControls:r,ariaExpanded:i,className:a})=>(0,u.jsx)(`button`,{type:`button`,onClick:t,"aria-label":n,"aria-controls":r,"aria-expanded":i,className:a||`block text-left bg-transparent border-0 p-0 cursor-pointer`,children:e}),oe=(e,t)=>`${e.toLocaleString()} ${t}${e===1?``:`s`}`,se=({decorId:e,decorCode:t,name:n,imageUrl:r,imageAlt:i=``,sheetCount:a,sampleCount:o,sheetLabel:s=`sheet`,sampleLabel:c=`sample`,openLabel:l=`Open`,disabled:f=!1,onDecorClick:p})=>{let m=(0,u.jsxs)(`article`,{className:`flex w-full items-center gap-3 rounded-md border border-borderTertiary bg-secondary p-3 shadow-sm transition group-hover:border-primary md:gap-4 md:p-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)(A,{src:r,alt:i,quality:85,fit:`cover`,className:`h-full w-full object-cover`}):(0,u.jsx)(h,{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:grid md:grid-cols-[minmax(0,1fr)_10rem] md:items-center md:gap-4`,children:[(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`truncate text-sm font-bold text-primary md:text-base`,children:n}),(0,u.jsx)(d,{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:justify-end`,children:[(0,u.jsx)(`span`,{children:oe(a,s)}),(0,u.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,u.jsx)(`span`,{children:oe(o,c)})]})]}),(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`sm`,className:`shrink-0 text-tertiary`})]});return!p||f?m:(0,u.jsx)(J,{ariaLabel:`${l} ${n} (${t})`,className:`group block w-full cursor-pointer rounded-md text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2`,onCardClick:()=>{f||p({decorId:e,decorCode:t})},children:m})};function ce(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 le(e){if(Array.isArray(e))return e}function ue(e){if(Array.isArray(e))return ce(e)}function de(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function fe(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,Ce(r.key),r)}}function pe(e,t,n){return t&&fe(e.prototype,t),n&&fe(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function me(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Te(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 Y(e,t,n){return(t=Ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ge(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 _e(){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 ve(){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 ye(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 X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ye(Object(n),!0).forEach(function(t){Y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function be(e,t){return le(e)||ge(e,t)||Te(e,t)||_e()}function xe(e){return ue(e)||he(e)||Te(e)||ve()}function Se(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 Ce(e){var t=Se(e,`string`);return typeof t==`symbol`?t:t+``}function we(e){"@babel/helpers - typeof";return we=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},we(e)}function Te(e,t){if(e){if(typeof e==`string`)return ce(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)?ce(e,t):void 0}}var Ee=function(){},De={},Oe={},ke=null,Ae={mark:Ee,measure:Ee};try{typeof window<`u`&&(De=window),typeof document<`u`&&(Oe=document),typeof MutationObserver<`u`&&(ke=MutationObserver),typeof performance<`u`&&(Ae=performance)}catch{}var je=(De.navigator||{}).userAgent,Me=je===void 0?``:je,Ne=De,Z=Oe,Pe=ke,Fe=Ae;Ne.document;var Ie=!!Z.documentElement&&!!Z.head&&typeof Z.addEventListener==`function`&&typeof Z.createElement==`function`,Le=~Me.indexOf(`MSIE`)||~Me.indexOf(`Trident/`),Re,ze=/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)?[\-\ ]/,Be=/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,Ve={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`}},He={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},Ue=[`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`],We=`classic`,Ge=`duotone`,Ke=`sharp`,qe=`sharp-duotone`,Je=`chisel`,Ye=`etch`,Xe=`graphite`,Ze=`jelly`,Qe=`jelly-duo`,$e=`jelly-fill`,et=`notdog`,tt=`notdog-duo`,nt=`slab`,rt=`slab-press`,it=`thumbprint`,at=`utility`,ot=`utility-duo`,st=`utility-fill`,ct=`whiteboard`,lt=`Classic`,ut=`Duotone`,dt=`Sharp`,ft=`Sharp Duotone`,pt=`Chisel`,mt=`Etch`,ht=`Graphite`,gt=`Jelly`,_t=`Jelly Duo`,vt=`Jelly Fill`,yt=`Notdog`,bt=`Notdog Duo`,xt=`Slab`,St=`Slab Press`,Ct=`Thumbprint`,wt=`Utility`,Tt=`Utility Duo`,Et=`Utility Fill`,Dt=`Whiteboard`,Ot=[We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct];Re={},Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Re,We,lt),Ge,ut),Ke,dt),qe,ft),Je,pt),Ye,mt),Xe,ht),Ze,gt),Qe,_t),$e,vt),Y(Y(Y(Y(Y(Y(Y(Y(Y(Re,et,yt),tt,bt),nt,xt),rt,St),it,Ct),at,wt),ot,Tt),st,Et),ct,Dt);var kt={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`}},At={"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`}},jt=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}]]),Mt={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`}},Nt=[`fak`,`fa-kit`,`fakd`,`fa-kit-duotone`],Pt={kit:{fak:`kit`,"fa-kit":`kit`},"kit-duotone":{fakd:`kit-duotone`,"fa-kit-duotone":`kit-duotone`}},Ft=[`kit`];Y(Y({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var It={kit:{"fa-kit":`fak`},"kit-duotone":{"fa-kit-duotone":`fakd`}},Lt={"Font Awesome Kit":{400:`fak`,normal:`fak`},"Font Awesome Kit Duotone":{400:`fakd`,normal:`fakd`}},Rt={kit:{fak:`fa-kit`},"kit-duotone":{fakd:`fa-kit-duotone`}},zt={kit:{kit:`fak`},"kit-duotone":{"kit-duotone":`fakd`}},Bt,Vt={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},Ht=[`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`];Bt={},Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Bt,`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`),Y(Y(Y(Y(Y(Y(Y(Y(Y(Bt,`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`),Y(Y({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var Ut={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`}},Wt={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`]},Gt={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`}},Kt=`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(Ht,[`fa-solid`,`fa-regular`,`fa-light`,`fa-thin`,`fa-duotone`,`fa-brands`,`fa-semibold`]),qt=[`solid`,`regular`,`light`,`thin`,`duotone`,`brands`,`semibold`],Jt=[1,2,3,4,5,6,7,8,9,10],Yt=Jt.concat([11,12,13,14,15,16,17,18,19,20]),Xt=[].concat(xe(Object.keys(Wt)),qt,[`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`,Vt.GROUP,Vt.SWAP_OPACITY,Vt.PRIMARY,Vt.SECONDARY],Jt.map(function(e){return`${e}x`}),Yt.map(function(e){return`w-${e}`})),Zt={"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`}},Qt=`___FONT_AWESOME___`,$t=16,en=`fa`,tn=`svg-inline--fa`,nn=`data-fa-i2svg`,rn=`data-fa-pseudo-element`,an=`data-fa-pseudo-element-pending`,on=`data-prefix`,sn=`data-icon`,cn=`fontawesome-i2svg`,ln=`async`,un=[`HTML`,`HEAD`,`STYLE`,`SCRIPT`],dn=[`::before`,`::after`,`:before`,`:after`],fn=function(){try{return process.env.NODE_ENV===`production`}catch{return!1}}();function pn(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[We]}})}var mn=X({},Ve);mn[We]=X(X(X(X({},{"fa-duotone":`duotone`}),Ve[We]),Pt.kit),Pt[`kit-duotone`]);var hn=pn(mn),gn=X({},Mt);gn[We]=X(X(X(X({},{duotone:`fad`}),gn[We]),zt.kit),zt[`kit-duotone`]);var _n=pn(gn),vn=X({},Gt);vn[We]=X(X({},vn[We]),Rt.kit);var yn=pn(vn),bn=X({},Ut);bn[We]=X(X({},bn[We]),It.kit),pn(bn);var xn=ze,Sn=`fa-layers-text`,Cn=Be;pn(X({},kt));var wn=[`class`,`data-prefix`,`data-icon`,`data-fa-transform`,`data-fa-mask`],Tn=He,En=[].concat(xe(Ft),xe(Xt)),Dn=Ne.FontAwesomeConfig||{};function On(e){var t=Z.querySelector(`script[`+e+`]`);if(t)return t.getAttribute(e)}function kn(e){return e===``?!0:e===`false`?!1:e===`true`?!0:e}Z&&typeof Z.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=be(e,2),n=t[0],r=t[1],i=kn(On(n));i!=null&&(Dn[r]=i)});var An={styleDefault:`solid`,familyDefault:We,cssPrefix:en,replacementClass:tn,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:`async`,keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Dn.familyPrefix&&(Dn.cssPrefix=Dn.familyPrefix);var jn=X(X({},An),Dn);jn.autoReplaceSvg||(jn.observeMutations=!1);var Q={};Object.keys(An).forEach(function(e){Object.defineProperty(Q,e,{enumerable:!0,set:function(t){jn[e]=t,Mn.forEach(function(e){return e(Q)})},get:function(){return jn[e]}})}),Object.defineProperty(Q,`familyPrefix`,{enumerable:!0,set:function(e){jn.cssPrefix=e,Mn.forEach(function(e){return e(Q)})},get:function(){return jn.cssPrefix}}),Ne.FontAwesomeConfig=Q;var Mn=[];function Nn(e){return Mn.push(e),function(){Mn.splice(Mn.indexOf(e),1)}}var Pn=$t,Fn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function In(e){if(!(!e||!Ie)){var t=Z.createElement(`style`);t.setAttribute(`type`,`text/css`),t.innerHTML=e;for(var n=Z.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 Z.head.insertBefore(t,r),e}}var Ln=`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`;function Rn(){for(var e=12,t=``;e-- >0;)t+=Ln[Math.random()*62|0];return t}function zn(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Bn(e){return e.classList?zn(e.classList):(e.getAttribute(`class`)||``).split(` `).filter(function(e){return e})}function Vn(e){return`${e}`.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function Hn(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}="${Vn(e[n])}" `},``).trim()}function Un(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}: ${e[n].trim()};`},``)}function Wn(e){return e.size!==Fn.size||e.x!==Fn.x||e.y!==Fn.y||e.rotate!==Fn.rotate||e.flipX||e.flipY}function Gn(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 Kn(e){var t=e.transform,n=e.width,r=n===void 0?$t:n,i=e.height,a=i===void 0?$t:i,o=e.startCentered,s=o===void 0?!1:o,c=``;return s&&Le?c+=`translate(${t.x/Pn-r/2}em, ${t.y/Pn-a/2}em) `:s?c+=`translate(calc(-50% + ${t.x/Pn}em), calc(-50% + ${t.y/Pn}em)) `:c+=`translate(${t.x/Pn}em, ${t.y/Pn}em) `,c+=`scale(${t.size/Pn*(t.flipX?-1:1)}, ${t.size/Pn*(t.flipY?-1:1)}) `,c+=`rotate(${t.rotate}deg) `,c}var qn=`: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=({src:e,title:t,className:n=``,allow:r=M,allowFullScreen:i=!0,loading:a=`lazy`,...o})=>(0,u.jsx)(`iframe`,{src:e,title:t,className:`w-full ${n}`.trim(),allow:r,allowFullScreen:i,loading:a,...o}),P=e=>typeof e==`string`&&e.trim().length>0?e:void 0,F=({src:e,fallbackSrc:t,placeholderSrc:n,alt:r,imageClassName:i=``,placeholderClassName:a=``,onImageStatusChange:o,...s})=>{let l=c.default.useRef(null),d=P(e),f=P(t),p=P(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]})},I=({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})=>(0,u.jsx)(`textarea`,{id:e,name:t,value:n,placeholder:r,"aria-label":i,disabled:a,readOnly:o,required:s,rows:l,className:[`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(` `),onChange:d,onBlur:f,onFocus:p}),L={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`,R=({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 ${L[i]} ${n}`.trim(),children:e})}),z={1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`},B={sm:`gap-3`,md:`gap-6`,lg:`gap-8`,xl:`gap-12`},V=({children:e,className:t=``,gridClassName:n=``,maxWidth:r=`6xl`,spacing:i=`none`,columns:a=3,gap:o=`md`})=>(0,u.jsx)(R,{className:t,maxWidth:r,spacing:i,children:(0,u.jsx)(`div`,{className:`grid ${z[a]} ${B[o]} ${n}`.trim(),children:e})}),H={sm:`gap-2`,md:`gap-4`,lg:`gap-6`,xl:`gap-8`},U={start:`items-start`,center:`items-center`,end:`items-end`,stretch:`items-stretch`},W={start:`justify-start`,center:`justify-center`,end:`justify-end`,between:`justify-between`,around:`justify-around`,evenly:`justify-evenly`},ne=({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`} ${H[n]} ${U[r]} ${W[i]} ${t}`.trim(),children:e}),G=`font-bold text-primary`,K=(e,t,n)=>{e?.({label:t,href:n})},q=({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:()=>K(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:()=>K(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:()=>K(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:()=>K(l,a.value,a.href),children:a.value}):(0,u.jsx)(f,{as:`span`,variant:`body`,className:`text-base`,children:a.value})})]}):null]})]})},re=(e,t,n)=>Math.max(t,Math.min(n,e)),ie=e=>[`h-12 w-12 border-2 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),ae=({imageSrc:e,imageAlt:t,title:n,brand:r,decorNumber:i,productType:a,quantity:o,price:s,minQuantity:c=1,maxQuantity:l=99,onQuantityChange:d,onRemoveItem:p})=>{let m=re(o,c,l),h=()=>{let e=re(m-1,c,l);e!==m&&d?.(e)},g=()=>{let e=re(m+1,c,l);e!==m&&d?.(e)},_=m>c,v=m<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:p,"aria-label":`Remove ${n} from cart`}),(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?`Free`: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":`Decrease quantity`,type:`button`,disabled:!_,onClick:h,className:ie(_)}),(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:m})}),(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":`Increase quantity`,type:`button`,disabled:!v,onClick:g,className:ie(v)})]})]})]})},oe=({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)})})},J=({children:e,onCardClick:t,ariaLabel:n,ariaControls:r,ariaExpanded:i,className:a})=>(0,u.jsx)(`button`,{type:`button`,onClick:t,"aria-label":n,"aria-controls":r,"aria-expanded":i,className:a||`block text-left bg-transparent border-0 p-0 cursor-pointer`,children:e}),se=(e,t)=>`${e.toLocaleString()} ${t}${e===1?``:`s`}`,ce=({decorId:e,decorCode:t,name:n,imageUrl:r,imageAlt:i=``,sheetCount:a,sampleCount:o,sheetLabel:s=`sheet`,sampleLabel:c=`sample`,openLabel:l=`Open`,disabled:d=!1,onDecorClick:p})=>{let m=(0,u.jsxs)(`article`,{className:`flex w-full items-center gap-3 rounded-md border border-borderTertiary bg-secondary p-3 shadow-sm transition group-hover:border-primary md:gap-4 md:p-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:grid md:grid-cols-[minmax(0,1fr)_10rem] md:items-center md:gap-4`,children:[(0,u.jsxs)(`div`,{className:`min-w-0`,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:justify-end`,children:[(0,u.jsx)(`span`,{children:se(a,s)}),(0,u.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,u.jsx)(`span`,{children:se(o,c)})]})]}),(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`sm`,className:`shrink-0 text-tertiary`})]});return!p||d?m:(0,u.jsx)(J,{ariaLabel:`${l} ${n} (${t})`,className:`group block w-full cursor-pointer rounded-md text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2`,onCardClick:()=>{d||p({decorId:e,decorCode:t})},children:m})};function le(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 ue(e){if(Array.isArray(e))return e}function de(e){if(Array.isArray(e))return le(e)}function fe(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function pe(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,we(r.key),r)}}function me(e,t,n){return t&&pe(e.prototype,t),n&&pe(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function he(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Ee(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 Y(e,t,n){return(t=we(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function _e(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 ye(){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 be(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 X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?be(Object(n),!0).forEach(function(t){Y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xe(e,t){return ue(e)||_e(e,t)||Ee(e,t)||ve()}function Se(e){return de(e)||ge(e)||Ee(e)||ye()}function Ce(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 we(e){var t=Ce(e,`string`);return typeof t==`symbol`?t:t+``}function Te(e){"@babel/helpers - typeof";return Te=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},Te(e)}function Ee(e,t){if(e){if(typeof e==`string`)return le(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)?le(e,t):void 0}}var De=function(){},Oe={},ke={},Ae=null,je={mark:De,measure:De};try{typeof window<`u`&&(Oe=window),typeof document<`u`&&(ke=document),typeof MutationObserver<`u`&&(Ae=MutationObserver),typeof performance<`u`&&(je=performance)}catch{}var Me=(Oe.navigator||{}).userAgent,Ne=Me===void 0?``:Me,Pe=Oe,Z=ke,Fe=Ae,Ie=je;Pe.document;var Le=!!Z.documentElement&&!!Z.head&&typeof Z.addEventListener==`function`&&typeof Z.createElement==`function`,Re=~Ne.indexOf(`MSIE`)||~Ne.indexOf(`Trident/`),ze,Be=/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)?[\-\ ]/,Ve=/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,He={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`}},Ue={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},We=[`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`],Ge=`classic`,Ke=`duotone`,qe=`sharp`,Je=`sharp-duotone`,Ye=`chisel`,Xe=`etch`,Ze=`graphite`,Qe=`jelly`,$e=`jelly-duo`,et=`jelly-fill`,tt=`notdog`,nt=`notdog-duo`,rt=`slab`,it=`slab-press`,at=`thumbprint`,ot=`utility`,st=`utility-duo`,ct=`utility-fill`,lt=`whiteboard`,ut=`Classic`,dt=`Duotone`,ft=`Sharp`,pt=`Sharp Duotone`,mt=`Chisel`,ht=`Etch`,gt=`Graphite`,_t=`Jelly`,vt=`Jelly Duo`,yt=`Jelly Fill`,bt=`Notdog`,xt=`Notdog Duo`,St=`Slab`,Ct=`Slab Press`,wt=`Thumbprint`,Tt=`Utility`,Et=`Utility Duo`,Dt=`Utility Fill`,Ot=`Whiteboard`,kt=[Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt];ze={},Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(ze,Ge,ut),Ke,dt),qe,ft),Je,pt),Ye,mt),Xe,ht),Ze,gt),Qe,_t),$e,vt),et,yt),Y(Y(Y(Y(Y(Y(Y(Y(Y(ze,tt,bt),nt,xt),rt,St),it,Ct),at,wt),ot,Tt),st,Et),ct,Dt),lt,Ot);var At={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`}},jt={"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`}},Mt=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}]]),Nt={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`}},Pt=[`fak`,`fa-kit`,`fakd`,`fa-kit-duotone`],Ft={kit:{fak:`kit`,"fa-kit":`kit`},"kit-duotone":{fakd:`kit-duotone`,"fa-kit-duotone":`kit-duotone`}},It=[`kit`];Y(Y({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var Lt={kit:{"fa-kit":`fak`},"kit-duotone":{"fa-kit-duotone":`fakd`}},Rt={"Font Awesome Kit":{400:`fak`,normal:`fak`},"Font Awesome Kit Duotone":{400:`fakd`,normal:`fakd`}},zt={kit:{fak:`fa-kit`},"kit-duotone":{fakd:`fa-kit-duotone`}},Bt={kit:{kit:`fak`},"kit-duotone":{"kit-duotone":`fakd`}},Vt,Ht={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},Ut=[`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`];Vt={},Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Vt,`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`),Y(Y(Y(Y(Y(Y(Y(Y(Y(Vt,`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`),Y(Y({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var Wt={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`}},Gt={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`]},Kt={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`}},qt=`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(Ut,[`fa-solid`,`fa-regular`,`fa-light`,`fa-thin`,`fa-duotone`,`fa-brands`,`fa-semibold`]),Jt=[`solid`,`regular`,`light`,`thin`,`duotone`,`brands`,`semibold`],Yt=[1,2,3,4,5,6,7,8,9,10],Xt=Yt.concat([11,12,13,14,15,16,17,18,19,20]),Zt=[].concat(Se(Object.keys(Gt)),Jt,[`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`,Ht.GROUP,Ht.SWAP_OPACITY,Ht.PRIMARY,Ht.SECONDARY],Yt.map(function(e){return`${e}x`}),Xt.map(function(e){return`w-${e}`})),Qt={"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`}},$t=`___FONT_AWESOME___`,en=16,tn=`fa`,nn=`svg-inline--fa`,rn=`data-fa-i2svg`,an=`data-fa-pseudo-element`,on=`data-fa-pseudo-element-pending`,sn=`data-prefix`,cn=`data-icon`,ln=`fontawesome-i2svg`,un=`async`,dn=[`HTML`,`HEAD`,`STYLE`,`SCRIPT`],fn=[`::before`,`::after`,`:before`,`:after`],pn=function(){try{return process.env.NODE_ENV===`production`}catch{return!1}}();function mn(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[Ge]}})}var hn=X({},He);hn[Ge]=X(X(X(X({},{"fa-duotone":`duotone`}),He[Ge]),Ft.kit),Ft[`kit-duotone`]);var gn=mn(hn),_n=X({},Nt);_n[Ge]=X(X(X(X({},{duotone:`fad`}),_n[Ge]),Bt.kit),Bt[`kit-duotone`]);var vn=mn(_n),yn=X({},Kt);yn[Ge]=X(X({},yn[Ge]),zt.kit);var bn=mn(yn),xn=X({},Wt);xn[Ge]=X(X({},xn[Ge]),Lt.kit),mn(xn);var Sn=Be,Cn=`fa-layers-text`,wn=Ve;mn(X({},At));var Tn=[`class`,`data-prefix`,`data-icon`,`data-fa-transform`,`data-fa-mask`],En=Ue,Dn=[].concat(Se(It),Se(Zt)),On=Pe.FontAwesomeConfig||{};function kn(e){var t=Z.querySelector(`script[`+e+`]`);if(t)return t.getAttribute(e)}function An(e){return e===``?!0:e===`false`?!1:e===`true`?!0:e}Z&&typeof Z.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=xe(e,2),n=t[0],r=t[1],i=An(kn(n));i!=null&&(On[r]=i)});var jn={styleDefault:`solid`,familyDefault:Ge,cssPrefix:tn,replacementClass:nn,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:`async`,keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};On.familyPrefix&&(On.cssPrefix=On.familyPrefix);var Mn=X(X({},jn),On);Mn.autoReplaceSvg||(Mn.observeMutations=!1);var Q={};Object.keys(jn).forEach(function(e){Object.defineProperty(Q,e,{enumerable:!0,set:function(t){Mn[e]=t,Nn.forEach(function(e){return e(Q)})},get:function(){return Mn[e]}})}),Object.defineProperty(Q,`familyPrefix`,{enumerable:!0,set:function(e){Mn.cssPrefix=e,Nn.forEach(function(e){return e(Q)})},get:function(){return Mn.cssPrefix}}),Pe.FontAwesomeConfig=Q;var Nn=[];function Pn(e){return Nn.push(e),function(){Nn.splice(Nn.indexOf(e),1)}}var Fn=en,In={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Ln(e){if(!(!e||!Le)){var t=Z.createElement(`style`);t.setAttribute(`type`,`text/css`),t.innerHTML=e;for(var n=Z.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 Z.head.insertBefore(t,r),e}}var Rn=`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`;function zn(){for(var e=12,t=``;e-- >0;)t+=Rn[Math.random()*62|0];return t}function Bn(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Vn(e){return e.classList?Bn(e.classList):(e.getAttribute(`class`)||``).split(` `).filter(function(e){return e})}function Hn(e){return`${e}`.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function Un(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}="${Hn(e[n])}" `},``).trim()}function Wn(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}: ${e[n].trim()};`},``)}function Gn(e){return e.size!==In.size||e.x!==In.x||e.y!==In.y||e.rotate!==In.rotate||e.flipX||e.flipY}function Kn(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 qn(e){var t=e.transform,n=e.width,r=n===void 0?en:n,i=e.height,a=i===void 0?en:i,o=e.startCentered,s=o===void 0?!1:o,c=``;return s&&Re?c+=`translate(${t.x/Fn-r/2}em, ${t.y/Fn-a/2}em) `:s?c+=`translate(calc(-50% + ${t.x/Fn}em), calc(-50% + ${t.y/Fn}em)) `:c+=`translate(${t.x/Fn}em, ${t.y/Fn}em) `,c+=`scale(${t.size/Fn*(t.flipX?-1:1)}, ${t.size/Fn*(t.flipY?-1:1)}) `,c+=`rotate(${t.rotate}deg) `,c}var Jn=`: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,7 +552,59 @@ 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 Jn(){var e=en,t=tn,n=Q.cssPrefix,r=Q.replacementClass,i=qn;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 Yn=!1;function Xn(){Q.autoAddCss&&!Yn&&(In(Jn()),Yn=!0)}var Zn={mixout:function(){return{dom:{css:Jn,insertCss:Xn}}},hooks:function(){return{beforeDOMElementCreation:function(){Xn()},beforeI2svg:function(){Xn()}}}},Qn=Ne||{};Qn[Qt]||(Qn[Qt]={}),Qn[Qt].styles||(Qn[Qt].styles={}),Qn[Qt].hooks||(Qn[Qt].hooks={}),Qn[Qt].shims||(Qn[Qt].shims=[]);var $n=Qn[Qt],er=[],tr=function(){Z.removeEventListener(`DOMContentLoaded`,tr),nr=1,er.map(function(e){return e()})},nr=!1;Ie&&(nr=(Z.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Z.readyState),nr||Z.addEventListener(`DOMContentLoaded`,tr));function rr(e){Ie&&(nr?setTimeout(e,0):er.push(e))}function ir(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`?Vn(e):`<${t} ${Hn(r)}>${a.map(ir).join(``)}</${t}>`}function ar(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var or=function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}},sr=function(e,t,n,r){var i=Object.keys(e),a=i.length,o=r===void 0?t:or(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 cr(e){return xe(e).length===1?e.codePointAt(0).toString(16):null}function lr(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 ur(e,t){var n=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).skipHooks,r=n===void 0?!1:n,i=lr(t);typeof $n.hooks.addPack==`function`&&!r?$n.hooks.addPack(e,lr(t)):$n.styles[e]=X(X({},$n.styles[e]||{}),i),e===`fas`&&ur(`fa`,t)}var dr=$n.styles,fr=$n.shims,pr=Object.keys(yn),mr=pr.reduce(function(e,t){return e[t]=Object.keys(yn[t]),e},{}),hr=null,gr={},_r={},vr={},yr={},br={};function xr(e){return~En.indexOf(e)}function Sr(e,t){var n=t.split(`-`),r=n[0],i=n.slice(1).join(`-`);return r===e&&i!==``&&!xr(i)?i:null}var Cr=function(){var e=function(e){return sr(dr,function(t,n,r){return t[r]=sr(n,e,{}),t},{})};gr=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}),_r=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}),br=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 dr||Q.autoFetchSvg,n=sr(fr,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:{}});vr=n.names,yr=n.unicodes,hr=Mr(Q.styleDefault,{family:Q.familyDefault})};Nn(function(e){hr=Mr(e.styleDefault,{family:Q.familyDefault})}),Cr();function wr(e,t){return(gr[e]||{})[t]}function Tr(e,t){return(_r[e]||{})[t]}function Er(e,t){return(br[e]||{})[t]}function Dr(e){return vr[e]||{prefix:null,iconName:null}}function Or(e){var t=yr[e],n=wr(`fas`,e);return t||(n?{prefix:`fas`,iconName:n}:null)||{prefix:null,iconName:null}}function kr(){return hr}var Ar=function(){return{prefix:null,iconName:null,rest:[]}};function jr(e){var t=We,n=pr.reduce(function(e,t){return e[t]=`${Q.cssPrefix}-${t}`,e},{});return Ot.forEach(function(r){(e.includes(n[r])||e.some(function(e){return mr[r].includes(e)}))&&(t=r)}),t}function Mr(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).family,n=t===void 0?We:t,r=hn[n][e];if(n===Ge&&!e)return`fad`;var i=_n[n][e]||_n[n][r],a=e in $n.styles?e:null;return i||a||null}function Nr(e){var t=[],n=null;return e.forEach(function(e){var r=Sr(Q.cssPrefix,e);r?n=r:e&&t.push(e)}),{iconName:n,rest:t}}function Pr(e){return e.sort().filter(function(e,t,n){return n.indexOf(e)===t})}var Fr=Kt.concat(Nt);function Ir(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).skipLookups,n=t===void 0?!1:t,r=null,i=Pr(e.filter(function(e){return Fr.includes(e)})),a=Pr(e.filter(function(e){return!Fr.includes(e)})),o=be(i.filter(function(e){return r=e,!Ue.includes(e)}),1)[0],s=o===void 0?null:o,c=jr(i),l=X(X({},Nr(a)),{},{prefix:Mr(s,{family:c})});return X(X(X({},l),Br({values:e,family:c,styles:dr,config:Q,canonical:l,givenPrefix:r})),Lr(n,r,l))}function Lr(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var a=t===`fa`?Dr(i):{},o=Er(r,i);return i=a.iconName||o||i,r=a.prefix||r,r===`far`&&!dr.far&&dr.fas&&!Q.autoFetchSvg&&(r=`fas`),{prefix:r,iconName:i}}var Rr=Ot.filter(function(e){return e!==We||e!==Ge}),zr=Object.keys(Gt).filter(function(e){return e!==We}).map(function(e){return Object.keys(Gt[e])}).flat();function Br(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===Ge,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&&Rr.includes(n)&&(Object.keys(s).find(function(e){return zr.includes(e)})||l.autoFetchSvg)&&(r.prefix=jt.get(n).defaultShortPrefixId,r.iconName=Er(r.prefix,r.iconName)||r.iconName),(r.prefix===`fa`||a===`fa`)&&(r.prefix=kr()||`fas`),r}var Vr=function(){function e(){de(this,e),this.definitions={}}return pe(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]=X(X({},e.definitions[t]||{}),i[t]),ur(t,i[t]);var n=yn[We][t];n&&ur(n,i[t]),Cr()})}},{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}}])}(),Hr=[],Ur={},Wr={},Gr=Object.keys(Wr);function Kr(e,t){var n=t.mixoutsTo;return Hr=e,Ur={},Object.keys(Wr).forEach(function(e){Gr.indexOf(e)===-1&&delete Wr[e]}),Hr.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){typeof t[e]==`function`&&(n[e]=t[e]),we(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){Ur[e]||(Ur[e]=[]),Ur[e].push(r[e])})}e.provides&&e.provides(Wr)}),n}function qr(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(Ur[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(r))}),t}function Jr(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Ur[e]||[]).forEach(function(e){e.apply(null,n)})}function Yr(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Wr[e]?Wr[e].apply(null,t):void 0}function Xr(e){e.prefix===`fa`&&(e.prefix=`fas`);var t=e.iconName,n=e.prefix||kr();if(t)return t=Er(n,t)||t,ar(Zr.definitions,n,t)||ar($n.styles,n,t)}var Zr=new Vr,Qr={noAuto:function(){Q.autoReplaceSvg=!1,Q.observeMutations=!1,Jr(`noAuto`)},config:Q,dom:{i2svg:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ie?(Jr(`beforeI2svg`,e),Yr(`pseudoElements2svg`,e),Yr(`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;Q.autoReplaceSvg===!1&&(Q.autoReplaceSvg=!0),Q.observeMutations=!0,rr(function(){$r({autoReplaceSvgRoot:t}),Jr(`watch`,e)})}},parse:{icon:function(e){if(e===null)return null;if(we(e)===`object`&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Er(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=Mr(e[0]);return{prefix:n,iconName:Er(n,t)||t}}if(typeof e==`string`&&(e.indexOf(`${Q.cssPrefix}-`)>-1||e.match(xn))){var r=Ir(e.split(` `),{skipLookups:!0});return{prefix:r.prefix||kr(),iconName:Er(r.prefix,r.iconName)||r.iconName}}if(typeof e==`string`){var i=kr();return{prefix:i,iconName:Er(i,e)||e}}}},library:Zr,findIconDefinition:Xr,toHtml:ir},$r=function(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).autoReplaceSvgRoot,t=e===void 0?Z:e;(Object.keys($n.styles).length>0||Q.autoFetchSvg)&&Ie&&Q.autoReplaceSvg&&Qr.dom.i2svg({node:t})};function ei(e,t){return Object.defineProperty(e,`abstract`,{get:t}),Object.defineProperty(e,`html`,{get:function(){return e.abstract.map(function(e){return ir(e)})}}),Object.defineProperty(e,`node`,{get:function(){if(Ie){var t=Z.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(Wn(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=Un(X(X({},a),{},{"transform-origin":`${s.x+o.x/16}em ${s.y+o.y/16}em`}))}return[{tag:`svg`,attributes:i,children:t}]}function ni(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=a===!0?`${t}-${Q.cssPrefix}-${n}`:a;return[{tag:`svg`,attributes:{style:`display: none;`},children:[{tag:`symbol`,attributes:X(X({},i),{},{id:o}),children:r}]}]}function ri(e){return[`aria-label`,`aria-labelledby`,`title`,`role`].some(function(t){return t in e})}function ii(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=[Q.replacementClass,a?`${Q.cssPrefix}-${a}`:``].filter(function(e){return l.classes.indexOf(e)===-1}).filter(function(e){return e!==``||!!e}).concat(l.classes).join(` `),g={children:[],attributes:X(X({},l.attributes),{},{"data-prefix":i,"data-icon":a,class:h,role:l.attributes.role||`img`,viewBox:`0 0 ${p} ${m}`})};!ri(l.attributes)&&!l.attributes[`aria-hidden`]&&(g.attributes[`aria-hidden`]=`true`),d&&(g.attributes[nn]=``);var _=X(X({},g),{},{prefix:i,iconName:a,main:n,mask:r,maskId:c,transform:o,symbol:s,styles:X({},l.styles)}),v=r.found&&n.found?Yr(`generateAbstractMask`,_)||{children:[],attributes:{}}:Yr(`generateAbstractIcon`,_)||{children:[],attributes:{}},y=v.children,b=v.attributes;return _.children=y,_.attributes=b,s?ni(_):ti(_)}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=X(X({},a.attributes),{},{class:a.classes.join(` `)});s&&(c[nn]=``);var l=X({},a.styles);Wn(i)&&(l.transform=Kn({transform:i,startCentered:!0,width:n,height:r}),l[`-webkit-transform`]=l.transform);var u=Un(l);u.length>0&&(c.style=u);var d=[];return d.push({tag:`span`,attributes:c,children:[t]}),d}function oi(e){var t=e.content,n=e.extra,r=X(X({},n.attributes),{},{class:n.classes.join(` `)}),i=Un(n.styles);i.length>0&&(r.style=i);var a=[];return a.push({tag:`span`,attributes:r,children:[t]}),a}var si=$n.styles;function ci(e){var t=e[0],n=e[1],r=be(e.slice(4),1)[0],i=null;return i=Array.isArray(r)?{tag:`g`,attributes:{class:`${Q.cssPrefix}-${Tn.GROUP}`},children:[{tag:`path`,attributes:{class:`${Q.cssPrefix}-${Tn.SECONDARY}`,fill:`currentColor`,d:r[0]}},{tag:`path`,attributes:{class:`${Q.cssPrefix}-${Tn.PRIMARY}`,fill:`currentColor`,d:r[1]}}]}:{tag:`path`,attributes:{fill:`currentColor`,d:r}},{found:!0,width:t,height:n,icon:i}}var li={found:!1,width:512,height:512};function ui(e,t){!fn&&!Q.showMissingIcons&&e&&console.error(`Icon with name "${e}" and prefix "${t}" is missing.`)}function di(e,t){var n=t;return t===`fa`&&Q.styleDefault!==null&&(t=kr()),new Promise(function(r,i){if(n===`fa`){var a=Dr(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&si[t]&&si[t][e]){var o=si[t][e];return r(ci(o))}ui(e,t),r(X(X({},li),{},{icon:Q.showMissingIcons&&e&&Yr(`missingIconAbstract`)||{}}))})}var fi=function(){},pi=Q.measurePerformance&&Fe&&Fe.mark&&Fe.measure?Fe:{mark:fi,measure:fi},mi=`FA "7.2.0"`,hi=function(e){return pi.mark(`${mi} ${e} begins`),function(){return gi(e)}},gi=function(e){pi.mark(`${mi} ${e} ends`),pi.measure(`${mi} ${e}`,`${mi} ${e} begins`,`${mi} ${e} ends`)},_i={begin:hi,end:gi},vi=function(){};function yi(e){return typeof(e.getAttribute?e.getAttribute(nn):null)==`string`}function bi(e){var t=e.getAttribute?e.getAttribute(on):null,n=e.getAttribute?e.getAttribute(sn):null;return t&&n}function xi(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Q.replacementClass)}function Si(){return Q.autoReplaceSvg===!0?Di.replace:Di[Q.autoReplaceSvg]||Di.replace}function Ci(e){return Z.createElementNS(`http://www.w3.org/2000/svg`,e)}function wi(e){return Z.createElement(e)}function Ti(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).ceFn,n=t===void 0?e.tag===`svg`?Ci:wi:t;if(typeof e==`string`)return Z.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(Ti(e,{ceFn:n}))}),r}function Ei(e){var t=` ${e.outerHTML} `;return t=`${t}Font Awesome fontawesome.com `,t}var Di={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Ti(e),t)}),t.getAttribute(nn)===null&&Q.keepOriginalSource){var n=Z.createComment(Ei(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~Bn(t).indexOf(Q.replacementClass))return Di.replace(e);var r=RegExp(`${Q.cssPrefix}-.*`);if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(` `).reduce(function(e,t){return t===Q.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 ir(e)}).join(`
556
- `);t.setAttribute(nn,``),t.innerHTML=a}};function Oi(e){e()}function ki(e,t){var n=typeof t==`function`?t:vi;if(e.length===0)n();else{var r=Oi;Q.mutateApproach===ln&&(r=Ne.requestAnimationFrame||Oi),r(function(){var t=Si(),r=_i.begin(`mutate`);e.map(t),r(),n()})}}var Ai=!1;function ji(){Ai=!0}function Mi(){Ai=!1}var Ni=null;function Pi(e){if(Pe&&Q.observeMutations){var t=e.treeCallback,n=t===void 0?vi:t,r=e.nodeCallback,i=r===void 0?vi:r,a=e.pseudoElementsCallback,o=a===void 0?vi:a,s=e.observeMutationsRoot,c=s===void 0?Z:s;Ni=new Pe(function(e){if(!Ai){var t=kr();zn(e).forEach(function(e){if(e.type===`childList`&&e.addedNodes.length>0&&!yi(e.addedNodes[0])&&(Q.searchPseudoElements&&o(e.target),n(e.target)),e.type===`attributes`&&e.target.parentNode&&Q.searchPseudoElements&&o([e.target],!0),e.type===`attributes`&&yi(e.target)&&~wn.indexOf(e.attributeName))if(e.attributeName===`class`&&bi(e.target)){var r=Ir(Bn(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(on,a||t),s&&e.target.setAttribute(sn,s)}else xi(e.target)&&i(e.target)})}}),Ie&&Ni.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Fi(){Ni&&Ni.disconnect()}function Ii(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 Li(e){var t=e.getAttribute(`data-prefix`),n=e.getAttribute(`data-icon`),r=e.innerText===void 0?``:e.innerText.trim(),i=Ir(Bn(e));return i.prefix||=kr(),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix?i:(i.prefix&&r.length>0&&(i.iconName=Tr(i.prefix,e.innerText)||wr(i.prefix,cr(e.innerText))),!i.iconName&&Q.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data),i)}function Ri(e){return zn(e.attributes).reduce(function(e,t){return e.name!==`class`&&e.name!==`style`&&(e[t.name]=t.value),e},{})}function zi(){return{iconName:null,prefix:null,transform:Fn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Bi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Li(e),r=n.iconName,i=n.prefix,a=n.rest,o=Ri(e),s=qr(`parseNodeAttributes`,{},e);return X({iconName:r,prefix:i,transform:Fn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:t.styleParser?Ii(e):[],attributes:o}},s)}var Vi=$n.styles;function Hi(e){var t=Q.autoReplaceSvg===`nest`?Bi(e,{styleParser:!1}):Bi(e);return~t.extra.classes.indexOf(Sn)?Yr(`generateLayersText`,e,t):Yr(`generateSvgReplacementMutation`,e,t)}function Ui(){return[].concat(xe(Nt),xe(Kt))}function Wi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Ie)return Promise.resolve();var n=Z.documentElement.classList,r=function(e){return n.add(`${cn}-${e}`)},i=function(e){return n.remove(`${cn}-${e}`)},a=Q.autoFetchSvg?Ui():Ue.concat(Object.keys(Vi));a.includes(`fa`)||a.push(`fa`);var o=[`.${Sn}:not([${nn}])`].concat(a.map(function(e){return`.${e}:not([${nn}])`})).join(`, `);if(o.length===0)return Promise.resolve();var s=[];try{s=zn(e.querySelectorAll(o))}catch{}if(s.length>0)r(`pending`),i(`complete`);else return Promise.resolve();var c=_i.begin(`onTree`),l=s.reduce(function(e,t){try{var n=Hi(t);n&&e.push(n)}catch(e){fn||e.name===`MissingIcon`&&console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(l).then(function(n){ki(n,function(){r(`active`),r(`complete`),i(`pending`),typeof t==`function`&&t(),c(),e()})}).catch(function(e){c(),n(e)})})}function Gi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Hi(e).then(function(e){e&&ki([e],t)})}function Ki(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Xr(t||{}),i=n.mask;return i&&=(i||{}).icon?i:Xr(i||{}),e(r,X(X({},n),{},{mask:i}))}}var qi=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?Fn: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 ei(X({type:`icon`},e),function(){return Jr(`beforeDOMElementCreation`,{iconDefinition:e,params:t}),ii({icons:{main:ci(v),mask:s?ci(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:_,transform:X(X({},Fn),r),symbol:a,maskId:l,extra:{attributes:p,styles:h,classes:d}})})}},Ji={mixout:function(){return{icon:Ki(qi)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Wi,e.nodeCallback=Gi,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=t===void 0?Z:t,r=e.callback;return Wi(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([di(n,r),o.iconName?di(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(o){var l=be(o,2),u=l[0],d=l[1];t([e,ii({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=Un(a);o.length>0&&(n.style=o);var s;return Wn(i)&&(s=Yr(`generateAbstractTransformGrouping`,{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},Yi={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 ei({type:`layer`},function(){Jr(`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:[`${Q.cssPrefix}-layers`].concat(xe(r)).join(` `)},children:n}]})}}}},Xi={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 ei({type:`counter`,content:e},function(){return Jr(`beforeDOMElementCreation`,{content:e,params:t}),oi({content:e.toString(),title:r,extra:{attributes:s,styles:l,classes:[`${Q.cssPrefix}-layers-counter`].concat(xe(a))}})})}}}},Zi={mixout:function(){return{text:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?Fn: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 ei({type:`text`,content:e},function(){return Jr(`beforeDOMElementCreation`,{content:e,params:t}),ai({content:e,transform:X(X({},Fn),r),extra:{attributes:s,styles:l,classes:[`${Q.cssPrefix}-layers-text`].concat(xe(a))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.transform,r=t.extra,i=null,a=null;if(Le){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})])}}},Qi=RegExp(`"`,`ug`),$i=[1105920,1112319],ea=X(X(X(X({},{FontAwesome:{normal:`fas`,400:`fas`}}),At),Zt),Lt),ta=Object.keys(ea).reduce(function(e,t){return e[t.toLowerCase()]=ea[t],e},{}),na=Object.keys(ta).reduce(function(e,t){var n=ta[t];return e[t]=n[900]||xe(Object.entries(n))[0][1],e},{});function ra(e){return cr(xe(e.replace(Qi,``))[0]||``)}function ia(e){var t=e.getPropertyValue(`font-feature-settings`).includes(`ss01`),n=e.getPropertyValue(`content`).replace(Qi,``),r=n.codePointAt(0),i=r>=$i[0]&&r<=$i[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(ta[n]||{})[i]||na[n]}function oa(e,t){var n=`${an}${t.replace(`:`,`-`)}`;return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var a=zn(e.children).filter(function(e){return e.getAttribute(rn)===t})[0],o=Ne.getComputedStyle(e,t),s=o.getPropertyValue(`font-family`),c=s.match(Cn),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=ra(d),m=c[0].startsWith(`FontAwesome`),h=ia(o),g=wr(f,p),_=g;if(m){var v=Or(p);v.iconName&&v.prefix&&(g=v.iconName,f=v.prefix)}if(g&&!h&&(!a||a.getAttribute(on)!==f||a.getAttribute(sn)!==_)){e.setAttribute(n,_),a&&e.removeChild(a);var y=zi(),b=y.extra;b.attributes[rn]=t,di(g,f).then(function(i){var a=ii(X(X({},y),{},{icons:{main:i,mask:Ar()},prefix:f,iconName:_,extra:b,watchable:!0})),o=Z.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 ir(e)}).join(`
557
- `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function sa(e){return Promise.all([oa(e,`::before`),oa(e,`::after`)])}function ca(e){return e.parentNode!==document.head&&!~un.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(rn)&&(!e.parentNode||e.parentNode.tagName!==`svg`)}var la=function(e){return!!e&&dn.some(function(t){return e.includes(t)})},ua=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=me(n),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(la(a)){var o=dn.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 da(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ie){var n;if(t)n=e;else if(Q.searchPseudoElementsFullScan)n=e.querySelectorAll(`*`);else{var r=new Set,i=me(document.styleSheets),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;try{var s=me(o.cssRules),c;try{for(s.s();!(c=s.n()).done;){var l=c.value,u=me(ua(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){Q.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=zn(n).filter(ca).map(sa),i=_i.begin(`searchPseudoElements`);ji(),Promise.all(r).then(function(){i(),Mi(),e()}).catch(function(){i(),Mi(),t()})})}}var fa={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=da,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=t===void 0?Z:t;Q.searchPseudoElements&&da(n)}}},pa=!1,ma={mixout:function(){return{dom:{unwatch:function(){ji(),pa=!0}}}},hooks:function(){return{bootstrap:function(){Pi(qr(`mutationObserverCallbacks`,{}))},noAuto:function(){Fi()},watch:function(e){var t=e.observeMutationsRoot;pa?Mi():Pi(qr(`mutationObserverCallbacks`,{observeMutationsRoot:t}))}}}},ha=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})},ga={mixout:function(){return{parse:{transform:function(e){return ha(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-transform`);return n&&(e.transform=ha(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:X({},a.outer),children:[{tag:`g`,attributes:X({},a.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:X(X({},t.icon.attributes),a.path)}]}]}}}},_a={x:0,y:0,width:`100%`,height:`100%`};function va(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 ya(e){return e.tag===`g`?e.children:[e]}Kr([Zn,Ji,Yi,Xi,Zi,fa,ma,ga,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-mask`),r=n?Ir(n.split(` `).map(function(e){return e.trim()})):Ar();return r.prefix||=kr(),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=Gn({transform:o,containerWidth:l,iconWidth:s}),f={tag:`rect`,attributes:X(X({},_a),{},{fill:`white`})},p=c.children?{children:c.children.map(va)}:{},m={tag:`g`,attributes:X({},d.inner),children:[va(X({tag:c.tag,attributes:X(X({},c.attributes),d.path)},p))]},h={tag:`g`,attributes:X({},d.outer),children:[m]},g=`mask-${a||Rn()}`,_=`clip-${a||Rn()}`,v={tag:`mask`,attributes:X(X({},_a),{},{id:g,maskUnits:`userSpaceOnUse`,maskContentUnits:`userSpaceOnUse`}),children:[f,h]},y={tag:`defs`,children:[{tag:`clipPath`,attributes:{id:_},children:ya(u)},v]};return t.push(y,{tag:`rect`,attributes:X({fill:`currentColor`,"clip-path":`url(#${_})`,mask:`url(#${g})`},_a)}),{children:t,attributes:n}}}},{provides:function(e){var t=!1;Ne.matchMedia&&(t=Ne.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:X(X({},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=X(X({},r),{},{attributeName:`opacity`}),a={tag:`circle`,attributes:X(X({},n),{},{cx:`256`,cy:`364`,r:`28`}),children:[]};return t||a.children.push({tag:`animate`,attributes:X(X({},r),{},{attributeName:`r`,values:`28;14;28;28;14;28;`})},{tag:`animate`,attributes:X(X({},i),{},{values:`1;0;1;1;0;1;`})}),e.push(a),e.push({tag:`path`,attributes:X(X({},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:X(X({},i),{},{values:`1;0;0;0;0;1;`})}]}),t||e.push({tag:`path`,attributes:X(X({},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:X(X({},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:Qr}),Qr.noAuto;var ba=Qr.config;Qr.library,Qr.dom;var xa=Qr.parse;Qr.findIconDefinition,Qr.toHtml;var Sa=Qr.icon;Qr.layer,Qr.text,Qr.counter;function Ca(e){return e-=0,e===e}function wa(e){return Ca(e)?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():``),e.charAt(0).toLowerCase()+e.slice(1))}var Ta=(e,t)=>l.default.createElement(`stop`,{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function Ea(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Da=new Map,Oa=1e3;function ka(e){if(Da.has(e))return Da.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=wa(n);t[e.startsWith(`webkit`)?Ea(e):e]=r}}}n=a+1}if(Da.size===Oa){let e=Da.keys().next().value;e&&Da.delete(e)}return Da.set(e,t),t}function Aa(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}}),Aa(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=ka(String(t));break;case e.startsWith(`aria-`):case e.startsWith(`data-`):a[e.toLowerCase()]=t;break;default:a[wa(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(Ta)))}return e(t.tag,{...a,...u},...r)}var ja=Aa.bind(null,l.default.createElement),Ma=(e,t)=>{let n=(0,l.useId)();return e||(t?n:void 0)},Na=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 Pa=`searchPseudoElementsFullScan`in ba&&typeof ba.searchPseudoElementsFullScan==`boolean`?`7.0.0`:`6.0.0`,Fa=Number.parseInt(Pa)>=7,Ia=()=>Fa,La=`fa`,Ra={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`},za={left:`fa-pull-left`,right:`fa-pull-right`},Ba={90:`fa-rotate-90`,180:`fa-rotate-180`,270:`fa-rotate-270`},Va={"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`},Ha={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`},Ua={default:`fa-layers`};function Wa(e){let t=ba.cssPrefix||ba.familyPrefix||La;return t===La?e:e.replace(new RegExp(String.raw`(?<=^|\s)${La}-`,`g`),`${t}-`)}function Ga(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(Ra.beat),n&&x.push(Ra.fade),r&&x.push(Ra.beatFade),i&&x.push(Ra.bounce),a&&x.push(Ra.shake),o&&x.push(Ra.spin),c&&x.push(Ra.spinReverse),s&&x.push(Ra.spinPulse),l&&x.push(Ra.pulse),u&&x.push(Ha.fixedWidth),d&&x.push(Ha.inverse),f&&x.push(Ha.border),p===!0&&x.push(Ha.flip),(p===`horizontal`||p===`both`)&&x.push(Ha.flipHorizontal),(p===`vertical`||p===`both`)&&x.push(Ha.flipVertical),m!=null&&x.push(Va[m]),h!=null&&h!==0&&x.push(Ba[h]),g!=null&&x.push(za[g]),_&&x.push(Ha.swapOpacity),Ia()?(v&&x.push(Ha.rotateBy),y&&x.push(Ha.widthAuto),(ba.cssPrefix||ba.familyPrefix||La)===La?x:x.map(Wa)):x}var Ka=e=>typeof e==`object`&&`icon`in e&&!!e.icon;function qa(e){if(e)return Ka(e)?e:xa.icon(e)}function Ja(e){return Object.keys(e)}var Ya=new Na(`FontAwesomeIcon`),Xa={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},Za=new Set(Object.keys(Xa)),Qa=l.default.forwardRef((e,t)=>{let n={...Xa,...e},{icon:r,mask:i,symbol:a,title:o,titleId:s,maskId:c,transform:l}=n,u=Ma(c,!!i),d=Ma(s,!!o),f=qa(r);if(!f)return Ya.error(`Icon lookup is undefined`,r),null;let p=Ga(n),m=typeof l==`string`?xa.transform(l):l,h=qa(i),g=Sa(f,{...p.length>0&&{classes:p},...m&&{transform:m},...h&&{mask:h},symbol:a,title:o,titleId:d,maskId:u});if(!g)return Ya.error(`Could not find icon`,f),null;let{abstract:_}=g,v={ref:t};for(let e of Ja(n))Za.has(e)||(v[e]=n[e]);return ja(_[0],v)});Qa.displayName=`FontAwesomeIcon`,`${Ua.default}${Ha.fixedWidth}`;var $a={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`]},to={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`]},no={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`]},ro={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`]},io=({id:e,item:t,absoluteIdx:n,isActive:r,showLabel:i,grow:a,isLoaded:o,isFav:s,showFavorites:l=!0,setActiveIndex:f,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:()=>f(n),onFocus:()=>f(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)(A,{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)(d,{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)(D,{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)(Qa,{icon:to,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)(D,{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)(Qa,{icon:s?$a:ro,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`,f=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)(A,{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)(d,{variant:`free`,className:`text-primary text-lg font-bold mb-2`,children:n}),(0,u.jsx)(d,{variant:`body`,className:`mb-4 text-primary text-sm`,children:r})]}),f===`button`&&i?(0,u.jsx)(D,{intent:`accent`,variant:`outline`,label:i,className:`w-full md:w-48`,type:`button`,onClick:p}):null,f===`text`&&i?(0,u.jsx)(d,{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)(A,{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)(d,{variant:`free`,className:`text-primary text-lg font-bold mb-2`,children:n}),(0,u.jsx)(d,{variant:`body`,className:`mb-0 text-primary text-sm`,children:r})]}),f===`button`&&i?(0,u.jsx)(D,{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,f===`text`&&i?(0,u.jsx)(d,{variant:`body`,className:`text-sm font-bold text-primary`,children:i}):null]})]});return s?(0,u.jsx)(J,{onCardClick:s,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:m}):m},oo=({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)(A,{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)(d,{variant:`free`,className:`text-xs text-tertiary`,children:i}),(0,u.jsx)(d,{variant:`free`,className:`text-sm font-bold leading-tight text-primary`,children:n}),(0,u.jsx)(d,{variant:`free`,className:`text-xs leading-tight text-primary`,children:r})]})]});return a?(0,u.jsx)(J,{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})},so=e=>{if(e.distance)return e.distance.label??`${e.distance.value.toLocaleString(void 0,{maximumFractionDigits:2})} ${e.distance.unit}`},co=e=>[e.city,e.region,e.postalCode].filter(Boolean).join(` `),lo=(e,t,n)=>{e?.({location:t,href:n})},uo=({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 f=so(e),p=co(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)(h,{iconType:`fa-solid`,iconName:`location-dot`,color:`secondaryHover`,size:`lg`,alt:n,className:`mt-1 shrink-0`}):null,(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`text-lg font-bold min-h-12`,children:e.name})]}),f?(0,u.jsxs)(`div`,{className:`inline-flex items-start gap-2`,children:[(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`location-dot`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsx)(d,{variant:`caption`,className:`text-primary text-sm`,children:f})]}):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)(h,{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)(d,{variant:`body`,className:`text-sm`,children:e},`${e}-${t}`)),(0,u.jsx)(d,{variant:`body`,className:`text-sm`,children:p})]})]}),e.directionsUrl?(0,u.jsx)(`div`,{children:(0,u.jsxs)(d,{as:`a`,variant:`body`,href:e.directionsUrl,className:`group inline-flex items-start gap-2 text-sm hover:text-accent hover:underline`,onClick:()=>lo(s,e,e.directionsUrl),children:[(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`diamond-turn-right`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),i,(0,u.jsx)(h,{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)(h,{iconType:`fa-solid`,iconName:`mobile-screen`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),(0,u.jsx)(d,{as:`a`,variant:`body`,className:`text-sm hover:text-accent hover:underline`,href:e.phoneHref,onClick:()=>lo(c,e,e.phoneHref),children:e.phone})]}):(0,u.jsxs)(`div`,{className:`inline-flex items-start gap-2`,children:[(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`mobile-screen`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsx)(d,{as:`span`,variant:`body`,className:`text-sm`,children:e.phone})]}):null}),!e.email&&!e.emailHref?null:(0,u.jsx)(`div`,{children:(0,u.jsxs)(d,{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:()=>lo(l,e,e.emailHref),children:[(0,u.jsx)(h,{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)(d,{as:`a`,variant:`body`,className:`group inline-flex items-start gap-2 text-sm hover:text-accent hover:underline`,href:e.websiteUrl,onClick:()=>lo(o,e,e.websiteUrl),children:[(0,u.jsx)(h,{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)(h,{iconType:`fa-solid`,iconName:`box-open`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsx)(d,{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)(d,{as:`span`,variant:`body`,className:`text-xs`,children:e.label})},e.id))}):null]}):null]})},fo=({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)(D,{intent:`primary`,variant:`link`,type:`button`,onClick:()=>i(!r),"aria-haspopup":`listbox`,"aria-expanded":r,children:[(0,u.jsxs)(d,{variant:`navlink`,className:`text-sm`,children:[o?.label??`Select Country`,o?.locale?` (${o.locale})`:``]}),(0,u.jsx)(h,{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)(d,{variant:`navlink`,className:`text-sm text-gray-700`,children:e.label}),(0,u.jsxs)(d,{variant:`nav`,className:`ml-1 mt-0.5 whitespace-nowrap text-xs text-gray-500`,children:[`(`,e.locale,`)`]})]})},`${e.href}-${t}`))})]})},po=e=>{let t=e.trim().split(/\s+/).filter(Boolean);return(t.length>1?t.map(e=>e[0]).join(``):e.slice(0,2)).toUpperCase()},mo=({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)(h,{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??po(e.label)})]},e.value))}),c?(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-xs text-accent`,children:r}):null,i?(0,u.jsx)(d,{id:l,variant:`free`,className:`sr-only`,children:i}):null]})},ho=({ranges:e,selectedRangeId:t,disabled:n=!1,ariaLabel:r=`Filter by range`,onRangeSelect:i})=>(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":r,className:`flex flex-wrap gap-2`,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)(D,{label:e.label,title:e.title,variant:r?`solid`:`outline`,intent:`primary`,size:`sm`,role:`radio`,"aria-checked":r,disabled:n,onClick:()=>i({rangeId:e.id})},e.id)})}),go=({children:e,className:t=``,barClassName:n=``})=>(0,u.jsx)(`section`,{className:`mx-auto flex max-w-6xl justify-center ${t}`.trim(),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})})}),_o=({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)(D,{...e})}),(0,u.jsx)(`div`,{className:`md:hidden`,children:(0,u.jsx)(D,{...t})})]}),vo={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`},yo={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`}},bo=({variant:e,hasError:t,disabled:n})=>{let r=yo[e];return{wrapperClasses:[vo.wrapper,r.wrapper,t?`border-accent`:`border-secondaryHover`,n?`cursor-not-allowed opacity-60`:``].join(` `),selectClasses:[vo.select,r.select].join(` `),iconClasses:[vo.icon,r.icon].join(` `)}},xo=({id:e,name:t,ariaLabel:n,options:r=[],value:i=``,placeholder:a=``,disabled:o=!1,required:s=!1,hasError:c=!1,variant:l=`field`,onChange:d,onBlur:f})=>{let{wrapperClasses:p,selectClasses:m,iconClasses:g}=bo({variant:l,hasError:c,disabled:o});return(0,u.jsxs)(`div`,{className:p,children:[(0,u.jsxs)(`select`,{id:e,name:t,"aria-label":n,value:i,disabled:o,required:s,onChange:d,onBlur:f,className:m,children:[a?(0,u.jsx)(`option`,{value:``,disabled:!0,children:a}):null,r.map(e=>(0,u.jsx)(`option`,{value:e.value||e.label,disabled:e.disabled,children:e.label},e.value||e.label))]}),(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`chevron-down`,className:g})]})},So=({dropdownProps:e,className:t=`w-full md:w-70`})=>(0,u.jsx)(`div`,{className:t,children:(0,u.jsx)(xo,{...e})}),Co=({id:e,name:t,type:n=`text`,value:r=``,placeholder:i=``,ariaLabel:a,disabled:o=!1,readOnly:s=!1,required:l=!1,hasError:d=!1,clearable:f=!1,clearLabel:p=`Clear input`,className:m=``,inputClassName:g=``,autoComplete:_,autoFocus:v,leadingIcon:y,trailingIcon:b,onChange:x,onBlur:S,onFocus:C,onKeyDown:w,onClear:T})=>{let[E,D]=(0,c.useState)(!1),O=n===`password`,k=String(r),A=f&&!!k&&!o&&!s&&!O&&!b,j=(0,c.useMemo)(()=>O?E?`text`:`password`:n,[n,O,E]),M=(O?(0,u.jsx)(`button`,{type:`button`,onClick:()=>D(e=>!e),className:`absolute right-3 top-1/2 -translate-y-1/2`,"aria-label":E?`Hide password`:`Show password`,children:(0,u.jsx)(h,{iconName:E?`fa-eye-slash`:`fa-eye`,iconType:`fa-solid`,className:`text-sm text-secondaryActive`})}):null)||(A?(0,u.jsx)(`button`,{type:`button`,"aria-label":p,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:()=>T?.({value:k}),children:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`xmark`,alt:``,size:`sm`})}):b?(0,u.jsx)(`span`,{className:`absolute right-3 top-1/2 -translate-y-1/2`,children:b}):null),N=[`w-full rounded-md border bg-white py-3 text-sm outline-none transition-colors placeholder-tertiary`,d?`border-accent text-accent`:`border-secondaryHover text-primary`,o?`cursor-not-allowed opacity-60`:``,y?`pl-10 pr-4`:`px-4`,M?`pr-12`:``,g].filter(Boolean).join(` `);return(0,u.jsxs)(`div`,{className:`relative w-full ${m}`.trim(),children:[y?(0,u.jsx)(`span`,{className:`absolute left-3 top-1/2 -translate-y-1/2`,children:y}):null,(0,u.jsx)(`input`,{id:e,name:t,type:j,value:k,placeholder:i,"aria-label":a,disabled:o,readOnly:s,required:l,autoComplete:_,autoFocus:v,className:N,onChange:x,onBlur:S,onFocus:C,onKeyDown:w}),M]})},wo=({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)(Co,{...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)(h,{iconType:`fa-solid`,iconName:`magnifying-glass`,className:`text-sm text-secondaryHover`})})},To={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`},Eo=({searchBarProps:e,searchPlaceholder:t,layoutVariant:n=`default`})=>(0,u.jsx)(`div`,{className:To[n],children:(0,u.jsx)(wo,{...e,placeholder:t??e.placeholder})}),Do=({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:f,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&&!f&&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)(wo,{id:e,name:t,ariaLabel:n,placeholder:r,value:E,disabled:l,readOnly:f,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)(d,{variant:`free`,className:`text-sm font-bold text-primary`,children:e.label}),e.description?(0,u.jsx)(d,{variant:`free`,className:`mt-0.5 text-xs text-tertiary`,children:e.description}):null]})},e.id)})}):(0,u.jsx)(d,{variant:`free`,className:`px-3 py-3 text-sm text-primary`,children:o})}):null]})},Oo=({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)(D,{variant:`ghost`,"aria-label":i,onClick:e,intent:n?.buttonType??`ghost`,className:n?.className??``,children:(0,u.jsx)(h,{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)(D,{variant:`ghost`,"aria-label":a,onClick:t,intent:r?.buttonType??`ghost`,className:r?.className??``,children:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`md`})})})]}),ko=({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}`))}),Ao=(e,t)=>Math.max(0,Math.min(e,t-1)),jo=(e,t,n)=>n?(e+t)%t:Ao(e,t),Mo=e=>!!(e.eyebrow||e.heading||e.subheading||e.body||e.ctas?.length),No=e=>`Open ${e.heading??`slide`}`,Po=({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`})}),Fo=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>(0,u.jsx)(d,{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)(Po,{slide:e,heightClassName:n})}),Io=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>(0,u.jsx)(J,{onCardClick:()=>{r(e,t)},ariaLabel:No(e),className:`block w-full cursor-pointer text-left`,children:(0,u.jsx)(Po,{slide:e,heightClassName:n})}),Lo=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>e.link?(0,u.jsx)(Fo,{slide:e,index:t,heightClassName:n,onSlideClick:r}):r?(0,u.jsx)(Io,{slide:e,index:t,heightClassName:n,onSlideClick:r}):(0,u.jsx)(Po,{slide:e,heightClassName:n}),Ro=({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)(d,{variant:`free`,className:`text-secondary text-sm font-normal md:font-bold mb-3`,children:e.eyebrow}):null,e.heading?(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`text-secondary text-3xl md:text-6xl mb-4`,children:e.heading}):null,e.subheading?(0,u.jsx)(d,{variant:`free`,className:`text-secondary text-lg font-bold mb-4 md:max-w-2xl`,children:e.subheading}):null,e.body?(0,u.jsx)(d,{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)(D,{...e},`${e.label??`cta`}-${t}`))}):null]})})}),zo=({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(()=>Ao(t,m)),_=c.default.useRef(e);c.default.useEffect(()=>{_.current=e},[e]),c.default.useEffect(()=>{let e=Ao(t,m);g(e),s?.(e,_.current[e])},[t,m,s]);let v=e[h],y=m>1,b=!!p,x=!b&&Mo(v),S=f??!b,C=t=>{let n=jo(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)(Lo,{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)(Ro,{slide:v}):null,n&&y?(0,u.jsx)(`div`,{className:`hidden md:block`,children:(0,u.jsx)(Oo,{onPreviousClick:()=>C(h-1),onNextClick:()=>C(h+1),prevArrowButtonProps:o,nextArrowButtonProps:a})}):null,r&&y?(0,u.jsx)(ko,{count:e.length,activeIndex:h,onDotClick:C}):null]})},Bo=e=>{let t=e.slides??[];return t.length===0?null:(0,u.jsx)(zo,{...e,slides:t})},Vo=e=>[`relative flex h-6 w-6 items-center justify-center border border-secondaryHover`,e.disabled?`opacity-50 cursor-not-allowed`:`cursor-pointer`].join(` `),Ho=({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)(D,{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)(d,{variant:`bold`,children:t}),(0,u.jsx)(h,{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:Vo(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)(h,{iconType:`fa-solid`,iconName:`check`,size:`xs`,color:e.checkIconColor??`secondary`}):null})},`${e.name}-${e.id}`))})]})})},Uo=({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)(d,{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)(D,{label:e.label,size:`sm`,intent:`secondary`,onClick:()=>n?.(e)},e.id))}):null]}),Wo=({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)(d,{variant:`standard`,className:`mb-3 md:mb-5`,children:r}):null,(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`text-secondary text-3xl md:text-6xl mb-4`,children:e}),t?(0,u.jsx)(d,{variant:`free`,className:`text-secondary text-xl md:text-4xl font-bold mb-4`,children:t}):null,n?(0,u.jsx)(d,{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)(D,{label:e.label,variant:e.variant??`solid`,intent:e.intent??`accent`,className:e.className??`md:w-36`,onClick:e.onCtaClick},`${e.label}-${t}`))}):null]})}),Go=({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)(D,{label:n,variant:`solid`,intent:`accent`,size:`sm`,className:`mx-auto md:mx-0`})}):null,(0,u.jsx)(d,{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)(d,{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)(D,{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)(D,{variant:`outline`,intent:`secondary`,size:`lg`,className:`border-2 p-2! text-secondary`,onClick:i,"aria-label":r,children:(0,u.jsx)(Qa,{icon:to,className:`h-4 w-4 -rotate-45 text-secondary`})})}):null]}),Ko=({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)(d,{as:`h1`,variant:`free`,className:`mb-3! md:mb-1! text-secondary text-2xl md:text-5xl uppercase`,children:e}),t?(0,u.jsx)(d,{variant:`body`,className:`mb-6 text-secondary text-base font-light uppercase`,children:t}):null,n?(0,u.jsx)(d,{variant:`body`,className:`text-secondary text-base font-light`,children:n}):null,r?(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(D,{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]})}),qo=({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)(h,{iconType:e.iconType??`fa-brands`,iconName:e.iconName,alt:``,size:`base`})},`${e.label}-${e.href}`)})}):null,Jo=({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)(A,{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)(d,{variant:`free`,className:`mb-2 text-sm font-bold text-secondary`,children:n}),i&&(0,u.jsx)(d,{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)(h,{iconType:`fa-solid`,iconName:`arrow-right`,color:`inherit`,className:`-rotate-45`})}):null]});return r?(0,u.jsx)(J,{onCardClick:r,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:o}):o},Yo=({videoEmbedUrl:e,videoTitle:t,videoMessage:n})=>{let r=n?.trim();return(0,u.jsxs)(`div`,{className:`w-full`,children:[(0,u.jsx)(M,{src:e,title:t,className:`aspect-video rounded-lg`}),r?(0,u.jsx)(d,{variant:`caption`,className:`mt-2`,children:r}):null]})},Xo=({title:e,details:t,iconName:n=`file-pdf`,onDocumentClick:r})=>(0,u.jsx)(D,{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)(h,{iconType:`fa-regular`,iconName:n,size:`4xl`})}),(0,u.jsxs)(`div`,{className:`flex flex-col`,children:[(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary font-medium`,children:e}),(0,u.jsx)(d,{variant:`free`,className:`text-xs text-secondaryActive`,children:t})]})]})}),Zo=({question:e,answer:t,initiallyOpen:n=!1})=>{let[r,i]=(0,c.useState)(n),a=(0,c.useId)();return(0,u.jsx)(J,{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)(d,{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)(d,{variant:`body`,className:`text-left`,children:t})})]}),(0,u.jsx)(`div`,{className:`flex items-start`,children:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`angle-down`,className:`transform transition-transform duration-300 text-secondaryActive text-lg ${r?`rotate-180`:``}`})})]})})},Qo=({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`:``,f=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)(A,{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:[f&&(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`mb-4 text-center text-2xl md:mx-0 md:text-left md:text-4xl`,children:f}),(0,u.jsx)(d,{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)(D,{label:e.buttonLabel,variant:e.variant??`solid`,intent:e.intent??`accent`,size:e.size??`md`,fullWidth:!0,onClick:()=>m(e,t)},`${e.buttonLabel}-${t}`))})]})]})},$o=({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)(d,{as:`span`,variant:`body`,className:`!text-inherit`,children:a}),(0,u.jsx)(h,{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)(h,{iconType:e,iconName:t,size:`lg`,className:`mb-3`}),(0,u.jsx)(d,{as:`h3`,variant:`bold`,className:`mb-2`,children:n}),(0,u.jsx)(d,{variant:`body`,className:`mb-3 leading-relaxed text-sm text-light`,children:r}),c]})})},es=[{key:`lrv`,code:`LRV`,iconName:`fa-sun`},{key:`ral`,code:`RAL`,iconName:`fa-palette`},{key:`ncs`,code:`NCS`,iconName:`fa-swatchbook`}],ts=e=>e!=null&&String(e).trim().length>0,ns=({colourMatching:e})=>{let t=es.map(t=>({...t,value:e?.[t.key]})).filter(e=>ts(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)(d,{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)(h,{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},rs=e=>[`h-9 w-9 border-2 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),is=({imageSrc:e,imageAlt:t,title:n,brand:r,decorNumber:i,finish:a,size:o,quantity:s,price:c,unitPrice:l,totalPrice:f,showPricing:p=!0,minQuantity:m=1,maxQuantity:h=99,isReadOnly:g=!1,onQuantityChange:_,onRemoveItem:v})=>{let y=s>m,b=s<h,x=()=>{g||!y||_?.(s-1)},S=()=>{g||!b||_?.(s+1)},C=()=>{g||v?.()},w=f?.label||c?.label,T=`flex items-center gap-3 bg-tertiaryActive`;return g&&(T=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 ${T}`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center`,children:[(0,u.jsx)(A,{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)(d,{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)(d,{variant:`bold`,className:`min-w-0 font-bold`,children:n}),a&&o?(0,u.jsxs)(d,{variant:`free`,className:`text-base text-tertiary`,children:[a,`, `,o]}):null]}),(0,u.jsx)(d,{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)(d,{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)(d,{variant:`free`,className:`text-primary`,children:l?.label})}),(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(d,{variant:`free`,className:`font-extrabold text-primary`,children:w})})]}):null]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`flex shrink-0 items-center justify-end gap-1`,children:[y?(0,u.jsx)(D,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":`Decrease quantity`,type:`button`,disabled:!y,onClick:x,className:rs(y)}):(0,u.jsx)(D,{iconType:`fa-regular`,iconName:`trash-can`,intent:`ghost`,variant:`solid`,"aria-label":`Remove item`,type:`button`,onClick:C,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)(d,{as:`span`,variant:`free`,children:s})}),(0,u.jsx)(D,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":`Increase quantity`,type:`button`,disabled:!b,onClick:S,className:rs(b)})]}),p?(0,u.jsx)(`div`,{className:`flex w-24 shrink-0 justify-end`,children:w?(0,u.jsx)(d,{variant:`free`,className:`text-primary`,children:w}):null}):null]})]})},as=/^(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?$/,os=new Intl.DateTimeFormat(`en-US`,{month:`long`,day:`numeric`,year:`numeric`,timeZone:`UTC`}),ss=e=>{let t=as.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)))},cs=e=>{let t=ss(e);if(t)return t;let n=new Date(e);return Number.isNaN(n.getTime())?null:n},ls=e=>{let t=e?.trim();if(!t)return``;let n=cs(t);return n?os.format(n):t},us=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`,ds=({layoutVariant:e,mediaType:t,imageSrc:n,imageAlt:r,videoEmbedUrl:i,videoTitle:a,title:o})=>{let s=us(e);return t===`video`&&i?(0,u.jsx)(M,{src:i,title:a??o,className:s}):n?(0,u.jsx)(A,{src:n,alt:r??``,className:s,quality:90}):null},fs=({layoutVariant:e=`default`,mediaType:t=`image`,imageSrc:n,imageAlt:r=``,videoEmbedUrl:i,videoTitle:a,category:o,title:s,publishDate:c,body:l,buttonLabel:f,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=ls(c),y=f.trim();return(0,u.jsxs)(`article`,{className:h,children:[(0,u.jsx)(`div`,{className:g,children:ds({layoutVariant:e,mediaType:t,imageSrc:n,imageAlt:r,videoEmbedUrl:i,videoTitle:a,title:s})}),(0,u.jsxs)(`div`,{className:_,children:[o?(0,u.jsx)(d,{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)(d,{as:`h2`,variant:`free`,className:`text-2xl md:text-3xl mb-2 md:mb-4`,children:s}),v?(0,u.jsx)(d,{variant:`body`,className:`mb-2 md:mb-4`,children:v}):null,(0,u.jsx)(d,{variant:`body`,className:`mb-4 md:mb-8`,children:l}),y?(0,u.jsx)(`div`,{children:(0,u.jsx)(D,{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]})]})},ps=({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)(d,{as:`h2`,variant:`h2`,className:`mb-6`,children:e}),t?(0,u.jsx)(d,{variant:`body`,className:`mx-auto mb-6 max-w-2xl`,children:t}):null,(0,u.jsx)(D,{variant:`solid`,intent:`accent`,label:n,className:`mx-auto w-full max-w-md`,onClick:()=>{i?.({heading:e,body:t,buttonLabel:n,buttonHref:r})}})]}),ms=e=>Math.min(Math.max(e,0),100),hs={good:`text-saleGreen`,warning:`text-yellow-700`,critical:`text-accent`},gs=({title:e,score:t,scoreLabel:n,status:r=`good`,summary:i,detail:a,ariaLabel:o})=>{let s=ms(t),c=a?.trim()??``,l=hs[r];return(0,u.jsxs)(`article`,{"aria-label":o??e,className:`flex min-h-56 w-full flex-col rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`text-xs font-bold uppercase text-primary`,children:e}),(0,u.jsxs)(`div`,{className:`mt-4 flex flex-col gap-4 md:flex-row md:items-center`,children:[(0,u.jsx)(`div`,{"aria-label":`${s}% ${n}`,className:`flex h-28 w-28 shrink-0 items-center justify-center rounded-full ${l}`,"data-testid":`data-health-summary-card-score`,style:{background:`conic-gradient(currentColor ${s}%, #e5e7eb 0)`},children:(0,u.jsxs)(`div`,{className:`flex h-20 w-20 flex-col items-center justify-center rounded-full bg-secondary text-center`,children:[(0,u.jsxs)(d,{as:`span`,variant:`free`,className:`text-2xl font-bold text-primary`,children:[s,`%`]}),(0,u.jsx)(d,{as:`span`,variant:`free`,className:`text-xs font-semibold ${l}`,children:n})]})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(d,{variant:`free`,className:`text-sm font-bold text-primary`,children:i}),c?(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-primary`,children:c}):null]})]})]})},_s={primary:`text-primary`,blue:`text-blue-600`,purple:`text-purple-700`,green:`text-saleGreen`,red:`text-accent`,gray:`text-tertiary`},vs={primary:`text-primary!`,blue:`text-blue-600!`,purple:`text-purple-700!`,green:`text-saleGreen!`,red:`text-accent!`,gray:`text-tertiary!`},ys=({value:e,label:t,detail:n,iconName:r,iconType:i=`fa-solid`,iconAlt:a=``,tone:o=`primary`,ariaLabel:s})=>{let c=n?.trim()??``,l=_s[o],f=vs[o];return(0,u.jsxs)(`article`,{"aria-label":s??t,className:`flex min-h-56 w-full flex-col items-center justify-center rounded-lg border border-borderTertiary bg-secondary p-5 text-center shadow-sm`,children:[(0,u.jsx)(h,{iconType:i,iconName:r,alt:a,size:`xl`,className:f}),(0,u.jsx)(d,{as:`p`,variant:`free`,className:`mt-4 text-3xl font-bold ${l}`,children:e}),(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm font-bold text-primary`,children:t}),c?(0,u.jsx)(d,{variant:`free`,className:`mt-3 text-sm text-primary`,children:c}):null]})},bs={safe:{iconName:`screwdriver-wrench`,iconClassName:`border-saleGreen text-saleGreen`,accentClassName:`border-l-saleGreen`,pillClassName:`bg-saleGreen/10 text-saleGreen`},warning:{iconName:`triangle-exclamation`,iconClassName:`border-yellow-500 text-yellow-700`,accentClassName:`border-l-yellow-500`,pillClassName:`bg-yellow-50 text-yellow-700`},error:{iconName:`circle-exclamation`,iconClassName:`border-accent text-accent`,accentClassName:`border-l-accent`,pillClassName:`bg-accent/10 text-accent`},review:{iconName:`users`,iconClassName:`border-purple-700 text-purple-700`,accentClassName:`border-l-purple-700`,pillClassName:`bg-purple-50 text-purple-700`},resolved:{iconName:`check`,iconClassName:`border-borderTertiary text-tertiary`,accentClassName:`border-l-borderTertiary`,pillClassName:`bg-tertiaryActive text-tertiary`}},xs={success:`text-saleGreen`,warning:`text-orange-600`,error:`text-accent`,review:`text-purple-700`,neutral:`text-primary`},Ss=({id:e,title:t,groupCountLabel:n,description:r,status:i,stepNumber:a,recommendedActionTitle:o=`Recommended Action`,recommendedActions:s,confidenceLabel:c,confidenceTone:l=`neutral`,primaryActionLabel:f,primaryActionIconName:p=`wand-magic-sparkles`,primaryActionVariant:m=`solid`,secondaryActionLabel:g,secondaryActionIconName:_,ariaLabel:v,onPrimaryActionClick:y,onSecondaryActionClick:b})=>{let x=bs[i],S=c?.trim()??``;return(0,u.jsx)(`article`,{"aria-label":v??t,className:`w-full rounded-lg border border-l-4 border-borderTertiary bg-secondary p-4 shadow-sm ${x.accentClassName}`,children:(0,u.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-[1.4fr_1.3fr_0.55fr_9rem] md:items-center`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 gap-3`,children:[(0,u.jsxs)(`span`,{"aria-label":`${i}: ${t}`,className:`relative flex h-9 w-9 shrink-0 items-center justify-center rounded-full border ${x.iconClassName}`,children:[(0,u.jsx)(h,{iconType:`fa-solid`,iconName:x.iconName,alt:``,size:`sm`}),a?(0,u.jsx)(`span`,{"aria-label":`Step ${a}`,className:`absolute -right-1.5 -top-1.5 flex h-5 min-w-5 items-center justify-center rounded-full border-2 border-secondary bg-primary px-1 text-[10px] font-bold leading-none text-secondary`,children:a}):null]}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:t}),(0,u.jsx)(`span`,{className:`rounded-full px-2 py-1 text-xs font-semibold ${x.pillClassName}`,children:n})]}),(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:r})]})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{variant:`free`,className:`text-xs font-bold text-primary`,children:o}),(0,u.jsx)(`ul`,{className:`mt-1 space-y-1`,children:s.map(e=>(0,u.jsxs)(`li`,{className:`flex gap-2 text-xs text-tertiary`,children:[(0,u.jsx)(`span`,{className:`mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-tertiary`}),(0,u.jsx)(`span`,{children:e})]},e))})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{variant:`free`,className:`text-xs text-primary`,children:`Confidence`}),S?(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm font-bold ${xs[l]}`,children:S}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[g?(0,u.jsx)(D,{label:g,variant:`outline`,intent:`primary`,size:`sm`,fullWidth:!0,className:`whitespace-nowrap`,iconType:_?`fa-solid`:void 0,iconName:_,iconAlt:``,onClick:()=>b?.({issueId:e})}):null,f?(0,u.jsx)(D,{label:f,iconType:`fa-solid`,iconName:p,iconAlt:``,variant:m,intent:`primary`,size:`sm`,fullWidth:!0,className:`whitespace-nowrap`,onClick:()=>y?.({issueId:e})}):null]})]})})},Cs={green:`bg-saleGreen`,yellow:`bg-yellow-500`,orange:`bg-orange-500`,red:`bg-accent`,purple:`bg-purple-700`,gray:`bg-borderTertiary`,blue:`bg-blue-600`},ws=({title:e,groupColumnLabel:t=`Groups`,recordColumnLabel:n=`Records`,items:r,ariaLabel:i})=>(0,u.jsxs)(`article`,{"aria-label":i??e,className:`min-h-56 w-full rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`grid grid-cols-[1fr_5rem_5rem] items-center gap-3`,children:[(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`text-xs font-bold uppercase text-primary`,children:e}),(0,u.jsx)(d,{variant:`free`,className:`text-right text-xs text-primary`,children:t}),(0,u.jsx)(d,{variant:`free`,className:`text-right text-xs text-primary`,children:n})]}),(0,u.jsx)(`ul`,{className:`mt-3 space-y-2`,children:r.map(e=>(0,u.jsxs)(`li`,{className:`grid grid-cols-[1fr_5rem_5rem] items-center gap-3`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,u.jsx)(`span`,{"aria-label":`${e.label} marker`,className:`h-2.5 w-2.5 shrink-0 rounded-full ${Cs[e.tone]}`}),(0,u.jsx)(d,{variant:`free`,className:`truncate text-sm text-primary`,children:e.label})]}),(0,u.jsx)(d,{variant:`free`,className:`text-right text-sm font-semibold text-primary`,children:e.groupCount}),(0,u.jsx)(d,{variant:`free`,className:`text-right text-sm font-semibold text-primary`,children:e.recordCount})]},e.id))})]}),Ts=({title:e,description:t,totalGroupsLabel:n,visibleRangeLabel:r,issueTypeLabel:i,hasMore:a=!1,ariaLabel:o})=>{let s=t?.trim()??``,c=i?.trim()??``;return(0,u.jsxs)(`article`,{"aria-label":o??e,className:`w-full rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,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 min-w-0 gap-3`,children:[(0,u.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-purple-700 bg-purple-50 text-purple-700`,children:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`users`,alt:``,size:`md`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:e}),s?(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm text-primary`,children:s}):null]})]}),(0,u.jsxs)(`div`,{className:`grid gap-3 md:grid-cols-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:`Total Groups`}),(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm font-bold text-primary`,children:n})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:`Showing`}),(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm font-bold text-primary`,children:r})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:`Status`}),(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm font-bold text-primary`,children:a?`More groups available`:`End of queue`})]})]})]}),c?(0,u.jsx)(`div`,{className:`mt-4 inline-flex rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-tertiary`,children:c}):null]})},Es=e=>e===void 0||e===``?`--`:e,Ds=({groupId:e,recordId:t,hierarchyLevel:n,itemPartNumber:r,itemSku:i,productName:a,salsifyId:o,score:s,selected:c=!1,selectLabel:l=`Select`,selectedLabel:f=`Selected`,onSelect:p})=>(0,u.jsx)(`article`,{"aria-label":a?`${a} ${i}`:t,className:`w-full rounded-lg border bg-secondary p-3 ${c?`border-primary shadow-sm`:`border-borderTertiary`}`,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`,{className:`min-w-0`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2`,children:[(0,u.jsx)(`span`,{"aria-label":c?`Selected record`:`Unselected record`,className:`mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full border ${c?`border-primary bg-primary text-secondary`:`border-borderTertiary text-tertiary`}`,children:c?(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`check`,alt:``,size:`xs`}):null}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(d,{variant:`free`,className:`text-sm font-bold text-primary`,children:Es(a)}),(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:Es(i)})]})]}),(0,u.jsxs)(`dl`,{className:`mt-3 grid gap-2 text-xs md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`font-bold text-tertiary`,children:`Item Part Number`}),(0,u.jsx)(`dd`,{className:`mt-1 text-primary`,children:Es(r)})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`font-bold text-tertiary`,children:`Hierarchy Level`}),(0,u.jsx)(`dd`,{className:`mt-1 text-primary`,children:Es(n)})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`font-bold text-tertiary`,children:`Salsify ID`}),(0,u.jsx)(`dd`,{className:`mt-1 break-words text-primary`,children:Es(o)})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`font-bold text-tertiary`,children:`Score`}),(0,u.jsx)(`dd`,{className:`mt-1 text-primary`,children:Es(s)})]})]})]}),(0,u.jsx)(D,{label:c?f:l,iconType:c?`fa-solid`:void 0,iconName:c?`check`:void 0,iconAlt:``,variant:c?`solid`:`outline`,intent:`primary`,size:`sm`,className:`whitespace-nowrap`,onClick:()=>p?.({groupId:e,recordId:t})})]})}),Os=({groupId:e,issueType:t,reason:n,matchReasons:r=[],conflictFields:i=[],records:a,selectedRecordId:o,resolveLabel:s=`Resolve Group`,selectLabel:c=`Select`,selectedLabel:l=`Selected`,resolveDisabled:f=!1,statusMessage:p,ariaLabel:m,onRecordSelect:g,onResolveClick:_})=>{let v=a.find(e=>e.recordId===o);return(0,u.jsxs)(`article`,{"aria-label":m??`Issue group ${e}`,className:`w-full rounded-lg border border-borderTertiary bg-secondary p-4 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`,{className:`min-w-0`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 gap-3`,children:[(0,u.jsx)(`span`,{className:`flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-purple-700 bg-purple-50 text-purple-700`,children:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`users`,alt:``,size:`sm`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:n}),(0,u.jsxs)(d,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:[`Group ID: `,e]})]})]}),t?(0,u.jsx)(`div`,{className:`mt-3 inline-flex rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-tertiary`,children:t}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:items-end`,children:[(0,u.jsx)(D,{label:s,iconType:`fa-solid`,iconName:`wand-magic-sparkles`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,className:`whitespace-nowrap`,disabled:!v||f,onClick:()=>_?.({groupId:e,selectedRecordId:o})}),(0,u.jsx)(d,{variant:`free`,className:`text-xs text-tertiary`,children:p||(v?`Keeping ${v.itemSku??v.recordId}`:`Select the record to keep`)})]})]}),r.length>0?(0,u.jsx)(`ul`,{className:`mt-4 space-y-1`,children:r.map(e=>(0,u.jsxs)(`li`,{className:`flex gap-2 text-xs text-tertiary`,children:[(0,u.jsx)(`span`,{className:`mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-tertiary`}),(0,u.jsx)(`span`,{children:e})]},e))}):null,i.length>0?(0,u.jsxs)(`div`,{className:`mt-4 rounded-lg border border-yellow-500 bg-yellow-50 p-3`,children:[(0,u.jsx)(d,{variant:`free`,className:`text-xs font-bold text-yellow-700`,children:`Fields needing review`}),(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-xs text-yellow-700`,children:i.join(`, `)})]}):null,(0,u.jsx)(`div`,{className:`mt-4 grid gap-3 md:grid-cols-2`,children:a.map(t=>(0,u.jsx)(Ds,{...t,groupId:e,selected:t.recordId===o,selectLabel:c,selectedLabel:l,onSelect:g},t.recordId))})]})},ks=({title:e,description:t,recalculateLabel:n=`Recalculate`,recalculating:r=!1,ariaLabel:i,onRecalculateClick:a})=>(0,u.jsx)(`article`,{"aria-label":i??e,className:`w-full rounded-lg p-2 border border-tertiary bg-adminSideNavBackground shadow-sm`,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 min-w-0 gap-3`,children:[(0,u.jsx)(`span`,{"aria-label":`Recommended next step`,className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-yellow-500 bg-yellow-50 text-yellow-700`,children:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`lightbulb`,alt:``,size:`md`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(d,{variant:`free`,className:`text-sm font-bold text-primary`,children:e}),(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm text-primary`,children:t})]})]}),(0,u.jsx)(D,{label:n,iconType:`fa-solid`,iconName:r?`spinner`:`rotate`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,className:`shrink-0 whitespace-nowrap`,disabled:r,"aria-busy":r||void 0,onClick:a})]})}),As={error:{iconName:`xmark`,className:`border-accent bg-accent/10 text-accent`},warning:{iconName:`exclamation`,className:`border-yellow-500 bg-yellow-50 text-yellow-700`},info:{iconName:`info`,className:`border-secondaryActive bg-tertiaryActive text-secondaryActive`},success:{iconName:`check`,className:`border-saleGreen bg-saleGreen/10 text-saleGreen`}},js=({item:e})=>{let t=As[e.status];return(0,u.jsx)(`span`,{"aria-label":`${e.status}: ${e.title}`,className:`flex h-5 w-5 shrink-0 items-center justify-center rounded-full border text-[0.625rem] ${t.className}`,children:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:t.iconName,alt:``,size:`xs`})})},Ms=({title:e,items:t,viewAllLabel:n=`View all`,emptyMessage:r=`No messages`,ariaLabel:i,onViewAllClick:a,onMessageClick:o})=>{let s=t.length>0,c=i??e,l=e=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,u.jsx)(js,{item:e}),(0,u.jsx)(d,{variant:`free`,className:`truncate text-sm font-semibold text-primary`,children:e.title})]}),(0,u.jsx)(d,{variant:`free`,className:`truncate text-sm text-primary`,children:e.context}),(0,u.jsx)(d,{variant:`free`,className:`truncate text-sm text-primary`,children:e.message}),(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,u.jsx)(d,{variant:`free`,className:`whitespace-nowrap text-sm text-primary`,children:e.timestamp}),o?(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`xs`,className:`shrink-0 text-primary`}):null]})]});return(0,u.jsxs)(`article`,{"aria-label":c,className:`w-full rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`header`,{className:`flex items-center justify-between gap-4`,children:[(0,u.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,u.jsx)(h,{iconType:`fa-regular`,iconName:`bell`,alt:``,size:`lg`,className:`text-primary`}),(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:e})]}),a?(0,u.jsx)(D,{label:n,variant:`link`,intent:`primary`,size:`sm`,onClick:a}):null]}),(0,u.jsx)(`div`,{className:`mt-3 overflow-hidden rounded-lg border border-borderTertiary`,children:s?(0,u.jsx)(`ul`,{className:`divide-y divide-borderTertiary`,children:t.map(e=>(0,u.jsx)(`li`,{children:o?(0,u.jsx)(`button`,{type:`button`,className:`grid w-full grid-cols-1 items-center gap-2 px-3 py-3 text-left hover:bg-tertiaryActive md:grid-cols-[1.2fr_1.1fr_2fr_0.8fr]`,onClick:()=>o({item:e}),children:l(e)}):(0,u.jsx)(`div`,{className:`grid grid-cols-1 items-center gap-2 px-3 py-3 md:grid-cols-[1.2fr_1.1fr_2fr_0.8fr]`,children:l(e)})},e.id))}):(0,u.jsx)(d,{variant:`free`,className:`px-3 py-4 text-sm text-primary`,children:r})})]})},Ns=(e,t,n)=>Math.min(Math.max(e,t),n),Ps=({validCheckpointCount:e,totalCheckpointCount:t,summary:n,detail:r,syncLabel:i=`Sync`,syncIconName:a=`right-left`,refreshLabel:o=`Refresh`,refreshIconName:s=`arrows-rotate`,ariaLabel:c=`Status flow actions`,onSyncClick:l,onRefreshClick:f})=>{let p=Math.max(t,0),m=Ns(e,0,p),h=p>0?m/p*100:0,g=`${m}/${p}`,_=r?.trim()??``;return(0,u.jsx)(`article`,{"aria-label":c,className:`w-full rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,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-center gap-4`,children:[(0,u.jsx)(`div`,{"aria-label":`${m} of ${p} checkpoints valid`,className:`flex h-16 w-16 shrink-0 items-center justify-center rounded-full text-primary`,"data-testid":`status-flow-action-card-progress`,style:{background:`conic-gradient(currentColor ${h}%, #e5e7eb 0)`},children:(0,u.jsx)(`span`,{className:`flex h-12 w-12 items-center justify-center rounded-full bg-secondary text-sm font-bold text-primary`,children:g})}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:n}),_?(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm text-primary`,children:_}):null]})]}),(0,u.jsxs)(`div`,{"data-testid":`status-flow-action-card-actions`,className:`flex w-full flex-col gap-2 md:w-44`,children:[(0,u.jsx)(D,{label:i,iconType:`fa-solid`,iconName:a,iconAlt:``,variant:`solid`,intent:`primary`,size:`md`,fullWidth:!0,className:`h-11`,onClick:l}),(0,u.jsx)(D,{label:o,iconType:`fa-solid`,iconName:s,iconAlt:``,variant:`outline`,intent:`primary`,size:`md`,fullWidth:!0,className:`h-11`,onClick:f})]})]})})},Fs={active:{lineClassName:`border-saleGreen`},degraded:{lineClassName:`border-secondaryActive`},failed:{lineClassName:`border-accent`}},Is={ok:{iconName:`check`,label:`OK`,markerClassName:`border-saleGreen bg-saleGreen/10 text-saleGreen`},warning:{iconName:`exclamation`,label:`Warning`,markerClassName:`border-yellow-500 bg-yellow-50 text-yellow-700`},error:{iconName:`xmark`,label:`Error`,markerClassName:`border-accent bg-accent/10 text-accent`},info:{iconName:`info`,label:`Info`,markerClassName:`border-primary bg-secondary text-primary`},unknown:{iconName:`question`,label:`Unknown`,markerClassName:`border-secondaryActive bg-tertiaryActive text-secondaryActive`}},Ls={default:{lineClassName:`h-8 border-l md:h-0 md:w-8 md:border-l-0 md:border-t`,markerClassName:`h-8 w-8 text-sm`,arrowheadClassName:`h-2 w-2`},compact:{lineClassName:`h-5 border-l md:h-0 md:w-3 md:border-l-0 md:border-t`,markerClassName:`h-6 w-6 text-xs`,arrowheadClassName:`h-1.5 w-1.5`}},Rs={solid:`border-solid`,dotted:`border-dashed`},zs=({variant:e=`default`,state:t=`active`,checkpointStatus:n=`ok`,checkpointLabel:r,size:i=`default`,lineVariant:a=`solid`})=>{let o=Fs[t],s=Is[n],c=Ls[i],l=Rs[a],d=r??s.label;return e===`skeleton`?(0,u.jsxs)(`div`,{"aria-label":`Flow connector loading`,"aria-busy":`true`,className:`flex flex-col items-center justify-center md:flex-row`,children:[(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-line-start`,className:`${c.lineClassName} ${l} animate-pulse border-borderTertiary`}),(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-marker`,className:`shrink-0 animate-pulse rounded-full border border-borderTertiary bg-tertiaryActive ${c.markerClassName}`}),(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-line-end`,className:`${c.lineClassName} ${l} animate-pulse border-borderTertiary`}),(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-arrowhead`,className:`hidden -translate-x-1 rotate-45 animate-pulse border-r border-t border-borderTertiary md:block ${c.arrowheadClassName}`})]}):(0,u.jsxs)(`div`,{"aria-label":`Flow connector: ${d}`,className:`flex flex-col items-center justify-center md:flex-row`,children:[(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-line-start`,className:`${c.lineClassName} ${l} ${o.lineClassName}`}),(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-marker`,className:`flex shrink-0 items-center justify-center rounded-full border ${c.markerClassName} ${s.markerClassName}`,children:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:s.iconName,alt:d,size:`xs`})}),(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-line-end`,className:`${c.lineClassName} ${l} ${o.lineClassName}`}),(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-arrowhead`,className:`hidden -translate-x-1 rotate-45 border-r border-t md:block ${c.arrowheadClassName} ${o.lineClassName}`})]})},Bs=[{label:`OK`,iconName:`check`,className:`border-saleGreen bg-saleGreen/10 text-saleGreen`},{label:`Warning`,iconName:`exclamation`,className:`border-yellow-500 bg-yellow-50 text-yellow-700`},{label:`Error`,iconName:`xmark`,className:`border-accent bg-accent/10 text-accent`},{label:`Checkpoint`,iconName:`check`,className:`border-secondaryActive bg-tertiaryActive text-secondaryActive`}],Vs=[{label:`Flow active`,lineClassName:`border-saleGreen border-solid`},{label:`Degraded`,lineClassName:`border-secondaryActive border-dashed`},{label:`Failed`,lineClassName:`border-accent border-dashed`}],Hs=({ariaLabel:e=`Status flow legend`,heading:t=`Legend`})=>(0,u.jsxs)(`article`,{"aria-label":e,className:`flex min-h-32 w-full flex-col rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:t}),(0,u.jsxs)(`div`,{"data-testid":`status-flow-legend-content`,className:`flex flex-1 flex-col items-center justify-center`,children:[(0,u.jsx)(`div`,{className:`flex flex-wrap items-center justify-center gap-x-7 gap-y-3`,children:Bs.map(e=>(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(`span`,{className:`flex h-5 w-5 items-center justify-center rounded-full border text-[0.625rem] ${e.className}`,children:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:e.iconName,alt:``,size:`xs`})}),(0,u.jsx)(d,{variant:`free`,className:`text-xs font-medium text-primary`,children:e.label})]},e.label))}),(0,u.jsx)(`div`,{className:`mt-5 flex flex-wrap items-center justify-center gap-x-8 gap-y-3`,children:Vs.map(e=>(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(`span`,{"data-testid":`status-flow-legend-line-${e.label.toLowerCase().replaceAll(` `,`-`)}`,className:`block w-12 border-t ${e.lineClassName}`}),(0,u.jsx)(d,{variant:`free`,className:`text-xs font-medium text-primary`,children:e.label})]},e.label))})]})]}),Us={ok:{badgeClassName:`border-saleGreen bg-saleGreen/10 text-saleGreen`,rowClassName:`text-saleGreen`,iconName:`check`,iconAlt:`OK`},warning:{badgeClassName:`border-yellow-500 bg-yellow-50 text-yellow-700`,rowClassName:`text-yellow-700`,iconName:`exclamation`,iconAlt:`Warning`},error:{badgeClassName:`border-accent bg-accent/10 text-accent`,rowClassName:`text-accent`,iconName:`xmark`,iconAlt:`Error`},info:{badgeClassName:`border-primary bg-secondary text-primary`,rowClassName:`text-primary`,iconName:`info`,iconAlt:`Info`},unknown:{badgeClassName:`border-secondaryActive bg-tertiaryActive text-secondaryActive`,rowClassName:`text-secondaryActive`,iconName:`question`,iconAlt:`Unknown`}},Ws=({id:e,title:t,description:n,iconName:r,iconType:i=`fa-solid`,iconAlt:a=``,status:o,statusLabel:s,variant:c=`default`,layoutVariant:l=`default`,onCardClick:f})=>{let p=c===`skeleton`,m=Us[o],g=n?.trim()??``,_=l===`compact`,v=_?`right-2 top-2 h-5 w-5 text-[0.625rem]`:`right-2 top-2 h-6 w-6 text-xs`,y=_?`min-h-24 px-3 pb-3 pt-6`:`min-h-32 px-5 pb-5 pt-8`,b=_?`xl`:`2xl`,x=_?`mt-2 text-sm font-bold text-primary`:`mt-3 text-base font-bold text-primary`,S=_?`mt-1 text-xs text-primary`:`mt-1 text-sm text-primary`,C=_?`mx-3 border-t border-borderTertiary`:`mx-5 border-t border-borderTertiary`,w=_?`gap-1 px-3 py-2 text-xs`:`gap-2 px-5 py-3 text-sm`,T=(0,u.jsxs)(`article`,{"aria-label":`${t} loading`,"aria-busy":`true`,className:`relative flex w-full flex-col overflow-hidden rounded-lg border border-tertiary bg-secondary shadow-sm`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-6 w-6 absolute animate-pulse rounded-full bg-borderTertiary ${v}`}),(0,u.jsxs)(`div`,{className:`flex flex-col items-center justify-center text-center ${y}`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:_?`h-9 w-9 animate-pulse rounded-lg bg-borderTertiary`:`h-12 w-12 animate-pulse rounded-lg bg-borderTertiary`}),(0,u.jsx)(`span`,{"aria-hidden":`true`,className:_?`mt-3 h-3 w-10 animate-pulse rounded-full bg-borderTertiary`:`mt-4 h-4 w-12 animate-pulse rounded-full bg-borderTertiary`}),(0,u.jsx)(`span`,{"aria-hidden":`true`,className:_?`mt-2 h-2.5 w-12 animate-pulse rounded-full bg-borderTertiary`:`mt-2 h-3 w-14 animate-pulse rounded-full bg-borderTertiary`})]}),(0,u.jsx)(`div`,{className:C}),(0,u.jsx)(`div`,{"data-testid":`status-summary-card-status`,className:`flex items-center justify-center ${w}`,children:(0,u.jsx)(`span`,{"aria-hidden":`true`,className:_?`h-2.5 w-14 animate-pulse rounded-full bg-borderTertiary`:`h-3 w-16 animate-pulse rounded-full bg-borderTertiary`})})]});if(p)return T;let E=(0,u.jsxs)(`article`,{className:`relative flex w-full flex-col overflow-hidden rounded-lg border border-tertiary bg-secondary shadow-sm`,children:[(0,u.jsx)(`span`,{"aria-label":`Status: ${s}`,className:`absolute flex items-center justify-center rounded-full border ${v} ${m.badgeClassName}`,children:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:m.iconName,alt:``,size:`xs`})}),(0,u.jsxs)(`div`,{className:`flex flex-col items-center justify-center text-center ${y}`,children:[(0,u.jsx)(h,{iconType:i,iconName:r,alt:a,size:b,className:`text-tertiary`}),(0,u.jsx)(d,{as:`h3`,variant:`free`,className:x,children:t}),g?(0,u.jsx)(d,{variant:`free`,className:S,children:g}):null]}),(0,u.jsx)(`div`,{className:C}),(0,u.jsxs)(`div`,{"data-testid":`status-summary-card-status`,className:`flex items-center justify-center font-semibold ${w} ${m.rowClassName}`,children:[(0,u.jsx)(h,{iconType:`fa-solid`,iconName:m.iconName,alt:m.iconAlt,size:`xs`,className:`text-tertiary`}),(0,u.jsx)(`span`,{children:s})]})]});return f?(0,u.jsx)(J,{ariaLabel:`View ${t} details`,className:`block w-full cursor-pointer text-left transition hover:opacity-90 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,onCardClick:()=>f({id:e,title:t,description:n,status:o,statusLabel:s}),children:E}):E},Gs={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`}},Ks=({id:e,title:t,description:n,status:r,statusLabel:i,selected:a=!1,onCardClick:o})=>{let s=Gs[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)(h,{iconType:`fa-solid`,iconName:s.iconName,alt:``,size:`xs`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:t}),c?(0,u.jsx)(d,{variant:`free`,className:`mt-0.5 text-xs text-primary`,children:c}):null,(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-xs font-medium ${s.statusClassName}`,children:i})]})]});return o?(0,u.jsx)(J,{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},qs={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`}},Js=`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbGw9IiNFNUU1RTUiLz4KICA8cmVjdCB4PSIxIiB5PSIxIiB3aWR0aD0iMjk4IiBoZWlnaHQ9IjI5OCIgZmlsbD0iI0YzRjNGMyIgc3Ryb2tlPSIjRDBEMEQwIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBkPSJNNDggMjAzTDExMCAxNDFMMTUzIDE4NEwyMjYgMTExTDI1MiAxMzdWMjUySDQ4VjIwM1oiIGZpbGw9IiNEOEQ4RDgiLz4KICA8Y2lyY2xlIGN4PSIxMDIiIGN5PSI5MSIgcj0iMjYiIGZpbGw9IiNEOEQ4RDgiLz4KICA8dGV4dCB4PSIxNTAiIHk9IjI3OCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iIzdBN0E3QSIgZm9udC1mYW1pbHk9IkFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjE4Ij5JbWFnZSBVbmF2YWlsYWJsZTwvdGV4dD4KPC9zdmc+Cg==`,Ys=({imageSrc:e,imageFallbackSrc:t,imageAlt:n,title:r,brand:i,product:a,decorNumber:o,status:s,onSwatchClick:c})=>{let l=s?qs[s]:null,f=typeof c==`function`,p=(0,u.jsx)(P,{src:e,fallbackSrc:t,placeholderSrc:Js,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:[f?(0,u.jsx)(J,{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)(d,{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)(d,{variant:`free`,className:`text-sm text-tertiary`,children:o}),(0,u.jsx)(d,{variant:`free`,className:`text-primary text-lg font-bold`,children:r}),(0,u.jsx)(d,{variant:`free`,className:`text-base text-primary`,children:i}),a&&(0,u.jsx)(d,{variant:`free`,className:`text-base text-primary`,children:a}),l?.specialText?(0,u.jsx)(d,{variant:`free`,className:l.specialTextClassName,children:l.specialText}):null]})]})},Xs=({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)(d,{as:`h2`,variant:`free`,className:`font-rockwell text-xl text-primary`,children:e.fullName}),e.company?(0,u.jsx)(d,{className:`mt-2`,children:e.company}):null,(0,u.jsxs)(`address`,{className:`mt-3 not-italic`,children:[e.addressLines.map(e=>(0,u.jsx)(d,{className:`text-secondaryActive`,children:e},e)),e.phoneNumber?(0,u.jsx)(d,{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)(D,{label:n,iconType:`fa-solid`,iconName:`pen`,iconAlt:``,variant:`link`,intent:`accent`,size:`sm`,onClick:()=>i({address:e})}),(0,u.jsx)(D,{label:r,iconType:`fa-solid`,iconName:`trash-can`,iconAlt:``,variant:`link`,intent:`danger`,size:`sm`,onClick:()=>a({address:e})})]})]}),Zs=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(` `),Qs=({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)(A,{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)(h,{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:Zs(n),onClick:()=>l(e),children:[(0,u.jsx)(h,{iconType:e.iconType??`fa-solid`,iconName:e.iconName,alt:``,size:`md`,className:`shrink-0`}),(0,u.jsx)(d,{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)(h,{iconType:`fa-solid`,iconName:`right-from-bracket`,alt:``,size:`md`,className:`shrink-0`}),(0,u.jsx)(d,{variant:`free`,className:`text-sm text-inherit`,children:a})]})]})},$s=({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)(d,{as:`span`,variant:`body`,className:`text-primary`,children:t}),n?(0,u.jsx)(d,{as:`span`,variant:`caption`,className:`text-secondaryActive`,children:n}):null]})]}),ec={blocking:`Blocking`,recommended:`Recommended`,optional:`Optional`},tc={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`}},nc={compact:`space-y-3`,comfortable:`space-y-4`},rc={compact:`py-1`,comfortable:`rounded-lg border border-borderTertiary p-4`},ic={compact:`mb-1.5 flex flex-wrap items-center gap-2`,comfortable:`mb-2 flex flex-wrap items-center gap-2`},ac=e=>e===null?``:String(e),oc=e=>{if(e.severity)return e.severity;if(e.required)return`blocking`},sc=e=>e.required||e.severity===`blocking`,cc=e=>ac(e.value).trim()===``,lc=e=>{if(e.trim()===``)return null;let t=Number(e);return Number.isNaN(t)?null:t},uc=e=>{if(!e.validationRegex)return e.state??`neutral`;let t=ac(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`}},dc=e=>{if(sc(e)&&cc(e))return`error`;let t=uc(e);return sc(e)&&t===`neutral`?`valid`:t},fc=({title:e,description:t,fields:n,fieldGroups:r,density:i=`compact`,severityDisplay:a=`icon`,submitLabel:o=`Save Changes`,cancelLabel:s=`Cancel`,cancelDisabled:c=!1,submitDisabled:l=!1,showActions:f=!0,validationSummary:p,onDynamicFormFieldChange:m,onDynamicFormSubmit:g,onDynamicFormCancel:_})=>{let v=t?.trim()??``,y=(e,t)=>{m?.({fieldId:e.id,value:t})},b=(e,t)=>{if(e.type===`information`)return null;let n=oc(e),r=dc(e);if(t===`none`||!n||sc(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:ec[n]});let i=tc[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)(h,{iconType:`fa-solid`,iconName:i.iconName,alt:``,size:`xs`})})},x=e=>{e.preventDefault(),g?.({values:n.filter(e=>e.type!==`information`).reduce((e,t)=>({...e,[t.id]:t.value}),{})})},S=e=>{let t=ac(e.value),n=dc(e)===`error`;if(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)(xo,{id:e.id,name:e.id,value:t,placeholder:e.placeholder,options:e.options,disabled:e.readOnly,hasError:n,onChange:t=>y(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:()=>y(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)(h,{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)($s,{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=>y(e,t)},n.value))}):e.type===`textarea`?(0,u.jsx)(ee,{id:e.id,name:e.id,value:t,placeholder:e.placeholder,readOnly:e.readOnly,required:e.required,hasError:n,rows:e.rows,onChange:t=>y(e,t.target.value)}):(0,u.jsx)(Co,{id:e.id,name:e.id,type:e.type===`text`||e.type===`date`?e.type:`number`,value:t,placeholder:e.placeholder,readOnly:e.readOnly,required:e.required,hasError:n,clearable:!0,leadingIcon:e.type===`currency`?(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`dollar-sign`,alt:``,size:`xs`}):void 0,onChange:t=>y(e,e.type===`text`||e.type===`date`?t.target.value:lc(t.target.value)),onClear:()=>y(e,e.type===`text`||e.type===`date`?``:null)})},C=e=>{let t=e.message?.trim()??``,n=e.helpText?.trim()??``;return!t&&!n?null:(0,u.jsx)(d,{variant:`free`,className:`ml-auto min-w-0 text-right text-xs text-tertiary`,children:t||n})},w=(e,t)=>{let n=e.label,r=e.layoutWidth===`half`?``:`md:col-span-2`;return t&&(r=`md:col-span-6`,e.layoutWidth===`half`&&(r=`md:col-span-3`),e.layoutWidth===`third`&&(r=`md:col-span-2`)),(0,u.jsxs)(`div`,{className:[rc[i],r].filter(Boolean).join(` `),children:[(0,u.jsxs)(`div`,{className:ic[i],children:[e.iconName?(0,u.jsx)(h,{iconType:`fa-solid`,iconName:e.iconName,alt:``,size:`sm`,color:`secondaryHover`,className:`w-4 shrink-0`}):null,b(e,a),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}),C(e)]}),S(e)]},e.id)},T=e=>{let t=e.some(e=>e.layoutWidth===`third`),n=e.some(e=>e.layoutWidth===`half`),r=nc[i];return n&&(r=`grid md:grid-cols-2 ${i===`compact`?`gap-3`:`gap-4`}`),t&&(r=`grid md:grid-cols-6 ${i===`compact`?`gap-3`:`gap-4`}`),(0,u.jsx)(`div`,{className:r,children:e.map(e=>w(e,t))})};return(0,u.jsxs)(`form`,{className:`space-y-5`,onSubmit:x,children:[e||v?(0,u.jsxs)(`header`,{children:[e?(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:e}):null,v?(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm text-primary`,children:v}):null]}):null,(()=>{if(!r?.length)return T(n);let e=new Map(n.map(e=>[e.id,e])),t=n.filter(e=>!r.some(t=>t.fieldIds.includes(e.id)));return(0,u.jsxs)(`div`,{className:`space-y-6`,children:[r.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)(d,{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)(d,{variant:`free`,className:`mb-4 text-sm text-secondaryActive`,children:t.description}):null,T(n)]},t.id):null}),t.length?T(t):null]})})(),p,f?(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row md:justify-end`,children:[_?(0,u.jsx)(D,{label:s,variant:`outline`,intent:`primary`,disabled:c,onClick:_}):null,(0,u.jsx)(D,{label:o,variant:`solid`,intent:`primary`,type:`submit`,disabled:l})]}):null]})},pc={sm:`max-w-md`,md:`max-w-2xl`,lg:`max-w-4xl`},mc=({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)(),f=(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?f:void 0,className:`relative flex max-h-[90vh] w-full flex-col overflow-hidden rounded-lg border border-borderTertiary bg-secondary shadow-lg ${pc[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)(d,{as:`h2`,id:l,variant:`free`,className:`text-lg font-bold text-primary`,children:t}),s?(0,u.jsx)(d,{id:f,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)(h,{iconType:`fa-solid`,iconName:`xmark`,alt:``,size:`sm`})})]}),(0,u.jsx)(`div`,{className:`overflow-y-auto p-5`,children:r})]})]}):null},hc=({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)(D,{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)})})},gc=({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)(hc,{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)}})},_c=`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`,vc=`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`,yc=`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`,bc=`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`,xc=`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`,Sc=`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`,Cc=`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`,wc=`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`,Tc=`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`,Ec={formica:_c,hartsonkennedy:xc,trespa:Cc,arpa:bc,homapal:Sc,fenix:yc,broadview:wc},Dc=e=>/^https?:\/\//i.test(e)||e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`),Oc=e=>e.trim().toLowerCase().replace(/\s+/g,``).replace(/[^a-z0-9]/g,``);function kc(e){if(!e||Dc(e))return;let t=Oc(e);return Ec[t]?t:void 0}function Ac(e,t){return e?Dc(e)?e:Ec[Oc(e)]??t:t}function jc(e,t){if(!e)return t;if(Dc(e))return e;let n=Oc(e);return n===`formica`?vc:n===`broadview`?Tc:Ec[n]??t}var Mc=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Nc=e=>{if(!Mc(e))return e;let t=e.value??e.jsonValue;return t===void 0?e:Nc(t)},Pc=(e,t,n=!0)=>{let r=Nc(e);if(typeof r==`string`)return n?r:``;if(!Mc(r))return``;for(let e of t){let t=r[e];if(typeof t==`string`)return t}return``},Fc=(e,t)=>{let n=Nc(t);return Mc(n)?`${e}${typeof n.querystring==`string`?n.querystring:``}${typeof n.anchor==`string`?n.anchor:``}`:e},Ic=e=>Pc(e,[`text`,`title`,`label`,`href`,`url`]).trim(),Lc=e=>{let t=Pc(e,[`href`,`url`]).trim();return t?Fc(t,e):``},Rc=(e,t)=>Pc(e,[`target`],!1).trim()||t,zc=(e,t)=>Pc(e,[`rel`],!1).trim()||t,Bc=({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=Ic(e.label),r=Lc(e.href),a=Ac(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)(gc,{ariaLabel:`Customer type`,defaultValue:r,buttonClassName:`aria-checked:font-bold text-secondary`,visualVariant:`brandBar`,onChange:e=>a?.(e),options:[`Commercial`,`Residential`]}):null})]})})},Vc=({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)(d,{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)(d,{variant:`free`,children:e.label})})},e.id))})]},e.id))})}):null,Hc=e=>[e.title,e.subtitle].filter(Boolean).join(` `),Uc=({id:e,items:t=[],viewAllLabel:n=`View all results`,onResultClick:r,onViewAllClick:i})=>t.length?(0,u.jsxs)(`div`,{id:e,className:`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)(J,{ariaLabel:Hc(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:()=>r?.({item:e}),children:[e.imageSrc?(0,u.jsx)(A,{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)(D,{variant:`link`,label:n,className:`w-full justify-start px-0 text-left text-tertiary underline-offset-2 hover:underline`,onClick:i})})]}):null,Wc=300,Gc=({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)(``),O=(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(!O.current)return;let e=window.setTimeout(()=>{m?.({query:T})},Wc);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)(wo,{id:`top-nav-search`,value:T,placeholder:`Search`,autoComplete:`off`,autoFocus:!0,onChange:e=>{O.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)(D,{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)(Uc,{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)(fo,{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)(D,{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)(D,{iconType:`fa-regular`,iconName:`heart`,iconAlt:`Favorites`,variant:`ghost`,onClick:x}):null]}),l?(0,u.jsx)(`div`,{children:j?(0,u.jsx)(D,{iconType:`fa-solid`,iconName:`user`,iconAlt:``,variant:`ghost`,intent:`primary`,"aria-label":`Open account menu`,"aria-haspopup":`dialog`,onClick:b}):(0,u.jsx)(D,{className:`my-3 rounded-md p-4`,size:`sm`,intent:`accent`,variant:`solid`,label:r.label,onClick:y})}):null]})},Kc=({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:f,onProfileClick:p,onLogoutClick:m})=>{if((0,c.useEffect)(()=>{if(!e)return;let t=e=>{e.key===`Escape`&&s()};return document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)},[e,s]),!e)return null;let g=e=>{e?.(),s()};return(0,u.jsxs)(`div`,{className:`fixed inset-0 z-50 flex justify-end`,children:[(0,u.jsx)(`button`,{type:`button`,"aria-label":`Close account overlay`,className:`absolute inset-0 bg-black/40`,onClick:s}),(0,u.jsxs)(`aside`,{role:`dialog`,"aria-modal":`true`,"aria-labelledby":`top-nav-account-title`,className:`relative z-10 flex h-full w-full max-w-sm flex-col bg-white shadow-xl`,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)(h,{iconType:`fa-solid`,iconName:`user`,alt:``,size:`lg`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(d,{id:`top-nav-account-title`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:n}),t?(0,u.jsx)(d,{className:`mt-1 truncate text-sm text-secondaryActive`,children:t}):null]})]}),(0,u.jsx)(D,{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)(D,{label:r,iconType:`fa-solid`,iconName:`receipt`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`primary`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>g(l)}),(0,u.jsx)(D,{label:i,iconType:`fa-regular`,iconName:`heart`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`primary`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>g(f)}),(0,u.jsx)(D,{label:a,iconType:`fa-solid`,iconName:`address-card`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`primary`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>g(p)})]})}),(0,u.jsx)(`footer`,{className:`border-t border-borderTertiary px-4 py-5`,children:(0,u.jsx)(D,{label:o,iconType:`fa-solid`,iconName:`arrow-right-from-bracket`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`danger`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>g(m)})})]})]})},qc=`__mobile-menu-open__`,Jc=({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:O,onFavoritesClick:k,onCountrySelect:j})=>{let M=(0,c.useRef)(null),[N,P]=(0,c.useState)(null),[ee,F]=(0,c.useState)(null),[I,te]=(0,c.useState)(!1),L=ee!==null,R=e.find(e=>e.id===N),z=t??[],B=r??{label:`Log In`,href:`/login`},V={hasCart:a?.hasCart??!1,itemCount:a?.itemCount??0},H=i??{loggedIn:B.loggedIn??!1},U=()=>{te(!0),w?.()},W=`Formica`,ne=d?.src??W,G=kc(ne),K=jc(W)??``,q=jc(ne,K)??K,re=d?.alt??`${ne} Logo`,ie=G===`broadview`?`w-36 md:w-44`:`w-24`,ae=G===`broadview`?`h-12 md:h-14`:`h-7 md:h-10`,J=d?.containerClassName??ie,oe=d?.className??ae;(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]);let se=()=>{F(null)},ce=(e,t={})=>{t.closeMobile&&se(),P(null),h?.(e)},le=(e,t)=>{if(e.subcategories?.length&&!e.href){P(N===t?null:t);return}ce(e)},ue=(e,t={})=>{P(null),t.closeMobile&&se(),g?.(e)},de=e=>{F(t=>t===e?qc: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)(D,{variant:`ghost`,className:`p-0 bg-transparent shadow-none border-0 ${J} hover:bg-secondary`,onClick:m,"aria-label":`Go to home page`,children:(0,u.jsx)(A,{src:q,alt:``,className:oe,quality:90})}),(0,u.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,u.jsx)(D,{variant:`ghost`,iconType:`fa-solid`,iconName:`magnifying-glass`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":`Search`,onClick:_}),o?(0,u.jsx)(D,{variant:`ghost`,iconType:`fa-solid`,iconName:`cart-shopping`,iconSize:`lg`,className:`relative h-9 w-9 p-0`,"aria-label":`Cart${V.itemCount?` (${V.itemCount})`:``}`,onClick:S,children:V.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:V.itemCount}):null}):null,l&&H.loggedIn?(0,u.jsx)(D,{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:U}):null,(0,u.jsx)(D,{variant:`ghost`,iconType:`fa-solid`,iconName:L?`xmark`:`bars`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":L?`Close menu`:`Open menu`,onClick:()=>{F(e=>e===null?qc:null)},"aria-expanded":L})]})]}),L?(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=ee===t;return n?(0,u.jsxs)(`div`,{className:`border-b border-gray-200`,children:[(0,u.jsx)(D,{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:()=>de(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)(D,{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:()=>ue(e,{closeMobile:!0})},e.id))})]},e.id))}):null]},t):(0,u.jsx)(D,{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(e,{closeMobile:!0})},t)}),l&&!H.loggedIn?(0,u.jsx)(`div`,{className:`border-t border-gray-200 pt-2`,children:(0,u.jsx)(D,{variant:`link`,label:B.label,className:`w-full min-w-0 px-0 py-3 text-left`,buttonAlignment:`justify-start`,onClick:()=>{se(),C?.()}})}):null]}):null,(0,u.jsxs)(`div`,{className:`hidden items-center justify-between md:flex md:px-8`,children:[(0,u.jsx)(D,{variant:`ghost`,className:`p-0 bg-transparent shadow-none border-0 ${J} hover:bg-secondary!`,onClick:m,"aria-label":`Go to home page`,children:(0,u.jsx)(A,{src:q,alt:re,className:oe,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)(D,{variant:`link`,label:e.label,onClick:()=>le(e,t),active:N===t},t)})}),(0,u.jsx)(Gc,{Countries:z,selectedCountry:n,Login:B,Account:H,Cart:V,showCart:o,showFavorites:s,showLogin:l,searchResultItems:f,searchViewAllLabel:p,onSearchClick:_,onSearchChange:v,onSearchSubmit:y,onSearchResultClick:b,onSearchViewAllClick:x,onCartClick:S,onLoginClick:C,onAccountClick:U,onFavoritesClick:k,onCountrySelect:j})]})]}),(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)(Vc,{activeItem:R,onMegaMenuLinkClick:ue})})})}),(0,u.jsx)(Kc,{...H,isOpen:I,onClose:()=>te(!1),onOrderHistoryClick:T,onFavoritesClick:k,onProfileClick:E,onLogoutClick:O??C})]})},Yc=({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)(d,{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)(D,{label:t,size:`sm`,variant:`solid`,intent:`accent`,onClick:n,className:`border-2 border-white`})}):null]})}):null},Xc=({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)(d,{as:`a`,href:e.href,variant:`breadcrumb`,className:`text-sm md:text-base`,onClick:t=>i(t,e),children:e.label}):(0,u.jsx)(d,{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)(d,{as:`span`,variant:`nav`,className:`text-sm md:text-base`,"aria-current":`page`,children:n.label})},n.id)]})})})})},Zc=({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=Ic(e.src),i=Ic(e.alt),a=e.label?Ic(e.label):``,o=e.alt===void 0||e.alt===null?a:i,s=Ac(r,Ac(a||i))??``;if(!s)return null;let c=(0,u.jsx)(A,{src:s,alt:o,className:n,loading:`lazy`,decoding:`async`,quality:90}),l=Lc(e.href);if(!l)return c;let d=Rc(e.href,e.target)??`_self`;return(0,u.jsx)(`a`,{href:l,target:d,rel:zc(e.href,e.rel)??(d===`_blank`?`noreferrer noopener`:void 0),className:`inline-flex`,children:c})},Qc=({primaryLogo:e,phoneLine:t,socials:n=[]})=>{let r=t?Ic(t):``;return(0,u.jsxs)(`div`,{className:`space-y-6`,children:[(0,u.jsx)(Zc,{img:e,size:`primary`}),r?(0,u.jsx)(d,{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=Ic(e.label),n=Lc(e.href),r=e.iconSrc?Ic(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)(Qa,{icon:e.faIcon,className:`w-4 h-4 text-black`}):null]},`${t}-${n}`):null})}):null]})},$c=({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=Ic(e.label),i=Lc(e.href),a=Rc(e.href,e.target)??`_self`,o=zc(e.href,e.rel)??(a===`_blank`?`noreferrer noopener`:void 0);return i?(0,u.jsx)(d,{as:`a`,href:i,target:a,rel:o,variant:`body`,className:n,children:r}):(0,u.jsx)(d,{variant:`body`,className:n,children:r})},el=({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=Ic(e.heading);return(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{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)($c,{item:e})},`${n}-${Ic(e.label)}-${t}`))})]},`${n}-${t}`)})})}),tl=({links:e=[],utilityLink:t,disclaimerLines:n=[],copyrightLine:r})=>{let i=r?Ic(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)($c,{item:e,variant:`legal`},`${Ic(e.label)}-${t}`)),t?(0,u.jsx)(`div`,{className:`ml-auto`,children:(0,u.jsx)($c,{item:t,variant:`legal`})}):null]}),a?(0,u.jsxs)(`div`,{className:`space-y-2 mt-10`,children:[n.map((e,t)=>(0,u.jsx)(d,{variant:`standard`,className:`text-white/70 text-xs leading-relaxed`,children:Ic(e)},t)),i?(0,u.jsx)(d,{variant:`standard`,className:`text-white/70 text-xs leading-relaxed`,children:i}):null]}):null]})},nl=({affiliateLogos:e=[],parentLogo:t,phoneLine:n})=>{let r=n?Ic(n):``;if(!e.length&&!t&&!r)return null;let i=t?(0,u.jsx)(`div`,{className:`ml-6 shrink-0`,children:(0,u.jsx)(Zc,{img:t,size:`parent`})}):null,a=!i&&r?(0,u.jsx)(d,{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)(Zc,{img:e,size:`affiliate`},`${e.label?Ic(e.label):``}|${Ic(e.alt)}|${Lc(e.href)}|${Ic(e.src)}|${t}`))}),i,a]})})},rl=({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)(Qc,{...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)(el,{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=Ic(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)($c,{item:e,variant:`mobile`})},`${n}-${Ic(e.label)}-${t}`))})]},`${n}-${t}`)})})]}),(0,u.jsx)(nl,{affiliateLogos:e.affiliateLogos,parentLogo:n,phoneLine:a?e.phoneLine:void 0}),(0,u.jsx)(tl,{...i})]})})},il=(...e)=>e.filter(Boolean).join(` `),al=({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:il(`relative`,i),children:[(0,u.jsx)(A,{src:c,alt:t,className:a,quality:s}),(0,u.jsx)(`div`,{className:o,children:n})]})})},ol=({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,[f,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)(al,{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)(d,{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:f,searchValue:m.trim()})},children:[l&&r?(0,u.jsx)(`div`,{className:`w-full md:w-56`,children:(0,u.jsx)(xo,{...r,value:f,onChange:g})}):null,(0,u.jsx)(`div`,{className:`w-full md:flex-1`,children:(0,u.jsx)(wo,{...i,value:m,onChange:e=>h(e.target.value)})}),(0,u.jsx)(D,{type:`submit`,variant:`solid`,intent:`accent`,size:`sm`,label:a,className:`w-full md:w-auto`})]})]})})},sl=({imageSrc:e,imageAlt:t=`Call To Action Hero`,heading:n,subheading:r,body:i,eyebrow:a,ctas:o=[]})=>(0,u.jsx)(al,{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)(Wo,{heading:n,subheading:r,body:i,eyebrow:a,ctas:o})}),cl=({imageSrc:e,imageAlt:t=`Featured article banner`,heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})=>(0,u.jsx)(al,{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)(Go,{heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})}),ll=({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.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.label)}):(0,u.jsx)(`button`,{type:`button`,disabled:e.disabled,onClick:()=>n(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)`}})]})})},ul=e=>e.id||e.href||e.label,dl=({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=ul})=>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)(Qa,{icon:no,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)(Qa,{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)(io,{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,fl=4,pl=e=>{e.forEach(e=>{if(!e)return;let t=new window.Image;t.decoding=`async`,t.src=e})},ml=({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 f=(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+fl<p.length,b=()=>h(e=>Math.max(0,e-1)),x=()=>h(e=>Math.min(Math.max(p.length-fl,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(()=>{pl(p.slice(m,m+fl*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)(d,{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)(d,{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)(ll,{items:f,value:s??f[0]?.label??``,onChange:e=>l(e),className:`mb-2`,durationMs:700}),(0,u.jsx)(dl,{items:p,startIndex:m,desktopVisibleCount:fl,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})]})]})})})},hl=e=>e===1?`md:grid-cols-1`:e===2?`md:grid-cols-2`:`md:grid-cols-3`,gl=(e,t)=>e===`vertical`&&t===2?`grid-cols-2`:e===`vertical`&&t===3?`grid-cols-3`:`grid-cols-1`,_l=e=>e===`underBanner`?`mt-10 md:mt-16`:``,vl=({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=hl(n.length),f=gl(n[0]?.cardStyle,n.length);return(0,u.jsx)(`section`,{className:`flex justify-center ${_l(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)(d,{as:`h2`,variant:`free`,className:`text-2xl md:text-4xl`,children:e}):null,t?(0,u.jsx)(d,{variant:`body`,className:`text-sm`,children:t}):null]}),(0,u.jsx)(`div`,{className:`grid ${f} 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)(d,{variant:`body`,className:`mb-4 text-sm`,children:i}):null,a?(0,u.jsx)(D,{variant:`outline`,intent:`muted`,label:a,onClick:c,className:`w-full md:w-80`}):null]})]})})},yl=({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)(d,{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)(d,{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)($o,{...e},`${e.title}-${t}`))})]})}),bl=({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)(d,{as:`h2`,variant:`free`,className:`text-xl font-extrabold text-primary`,children:e}),(0,u.jsx)(d,{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)(is,{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)(d,{variant:`free`,className:`mt-6 text-sm text-tertiary`,children:r}):null]})},xl=(e,t,n)=>Math.max(t,Math.min(n,e)),Sl=e=>[`h-12 w-12 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),Cl=({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`,showFavorites:l=!0,className:f=``})=>{let[p,m]=c.default.useState(()=>xl(e,t,n));c.default.useEffect(()=>{m(xl(e,t,n))},[e,t,n]);let h=e=>{let r=xl(e,t,n);m(r),a?.(r)},g=()=>h(p-1),_=()=>h(p+1),v=p>t,y=p<n,b=()=>i(p),x=(0,u.jsxs)(`div`,{className:`flex shrink-0 items-stretch gap-3`,children:[(0,u.jsx)(D,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":`Decrease quantity`,type:`button`,disabled:!v,onClick:g,className:Sl(v)}),(0,u.jsx)(`div`,{className:`flex min-w-10 items-center justify-center`,children:(0,u.jsx)(d,{as:`span`,variant:`free`,children:p})}),(0,u.jsx)(D,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":`Increase quantity`,type:`button`,disabled:!y,onClick:_,className:Sl(y)})]}),S=(0,u.jsx)(D,{type:`button`,intent:`accent`,onClick:b,className:`h-12 w-full justify-center`,children:(0,u.jsx)(d,{as:`span`,variant:`free`,children:s})});return(0,u.jsx)(`div`,{className:[`w-full`,f].join(` `),children:l?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`flex items-stretch gap-4`,children:[x,(0,u.jsx)(`div`,{className:`flex-1`,children:(0,u.jsx)(D,{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:S})]}):(0,u.jsxs)(`div`,{"aria-label":`Cart actions`,className:`flex items-stretch gap-4`,children:[x,(0,u.jsx)(`div`,{className:`min-w-0 flex-1`,children:S})]})})},wl=({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)(d,{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)(D,{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)(d,{as:`span`,variant:`free`,children:e.label})},e.id))})]})},Tl=e=>{let{title:t,decor:n,description:r,colourMatching:i,patternRepeat:a,onDownloadSwatch:o,onDownloadFullSheet:s,tabs:c=[`Sample`,`Buy Now`],activeTab:l,onTabChange:f,productOptions:p=[],gradeOptions:m=[],textureOptions:h=[],sizeOptions:g=[],selectedProduct:_,selectedGrade:v,selectedTexture:y,selectedSize:b,onQuantityChange:x,availabilityHref:S,availabilityLabel:C=`View full product availability and information`,notReturnableText:w=`This item is not returnable.`,returnPolicyHref:T,returnPolicyLabel:E=`View return policy`,onPurchaseInfoLinkClick:O,priceLabel:k,initialQuantity:A=1,minQuantity:j=1,maxQuantity:M=99,showCartActions:N=!0,showFavorites:P=!0,actionMode:ee=`cart`,contactActions:F,onAddToWishlist:I,onAddToCart:te,onContactActionClick:L,mobileMediaSlot:R}=e,z=c.map(e=>({label:e})),B=ee===`cart`&&N&&z.length>0,V=ee===`contact`&&!!F,H=B&&z.length>1,U=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?.()},W=(e,t)=>n=>{e&&O&&(n.preventDefault(),O(e,t))};return(0,u.jsxs)(`div`,{className:[`w-full`,V?`md:relative md:aspect-square md:overflow-hidden`:``].join(` `),children:[(0,u.jsxs)(`div`,{className:[V?`md:max-h-[calc(100%-8rem)] md:overflow-y-auto md:pr-2`:``].join(` `),children:[n?(0,u.jsx)(d,{as:`p`,variant:`caption`,className:`mb-0 md:mb-1 text-lg!`,children:n}):null,t?(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`mb-2 text-2xl md:text-4xl`,children:t}):null,r?(0,u.jsx)(d,{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)(ns,{colourMatching:i})}):null,a?(0,u.jsxs)(d,{as:`p`,variant:`body`,className:`mb-4`,children:[`Pattern Repeat: `,a]}):null,(0,u.jsxs)(`div`,{className:`flex gap-6 justify-start mb-4 md:mb-6`,children:[(0,u.jsx)(D,{label:`Download Swatch`,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)(D,{label:`Download Full Sheet`,iconName:`fa-download`,iconType:`fa-solid`,intent:`primary`,variant:`link`,onClick:s,className:`px-0! border-0! hover:text-accent!`})]}),R?(0,u.jsx)(`div`,{className:`md:hidden mb-10`,children:R}):null,H?(0,u.jsx)(`div`,{className:`mb-5`,children:(0,u.jsx)(ll,{items:z,value:l,onChange:f,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`,B?`md:min-h-[32rem]`:``].join(` `),children:[B&&p.length?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:`Product:`}),(0,u.jsx)(wl,{items:p,value:_??void 0,onChange:U(p)})]}):null,B&&m.length?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:`Grade:`}),(0,u.jsx)(wl,{items:m,value:v??void 0,onChange:U(m)})]}):null,B&&h.length?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:`Texture:`}),(0,u.jsx)(wl,{items:h,value:y??void 0,onChange:U(h)})]}):null,B&&g.length?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:`Size:`}),(0,u.jsx)(wl,{items:g,value:b??void 0,onChange:U(g)})]}):null,B&&l===`Buy Now`?(0,u.jsxs)(`div`,{children:[S?(0,u.jsx)(d,{as:`a`,href:S,variant:`body`,className:`text-sm underline hover:text-accent`,onClick:W(S,{kind:`availability`}),children:C}):null,(0,u.jsxs)(`div`,{className:`hidden md:block text-sm md:mt-4`,children:[(0,u.jsxs)(`span`,{className:`opacity-80`,children:[w,` `]}),T?(0,u.jsx)(d,{as:`a`,href:T,variant:`body`,className:`underline hover:text-accent`,onClick:W(T,{kind:`returnPolicy`}),children:E}):null]})]}):null,B&&l===`Buy Now`&&k?(0,u.jsx)(d,{as:`p`,variant:`h3`,className:`mt-1`,children:k}):null]}),B?(0,u.jsx)(`div`,{children:(0,u.jsx)(Cl,{initialQuantity:A,minQuantity:j,maxQuantity:M,showFavorites:P,onAddToWishlist:I,onAddToCart:te??(()=>{}),onQuantityChange:x,cartLabel:l===`Sample`?`Add Sample to Cart`:void 0})}):null,B&&l===`Buy Now`?(0,u.jsxs)(`div`,{className:`md:hidden text-sm pb-10`,children:[(0,u.jsxs)(`span`,{className:`opacity-80`,children:[w,` `]}),T?(0,u.jsx)(d,{as:`a`,href:T,variant:`body`,className:`underline hover:text-accent`,onClick:W(T,{kind:`returnPolicy`}),children:E}):null]}):null]})]}),V&&F?(0,u.jsx)(`div`,{className:`md:absolute md:inset-x-0 md:bottom-0`,children:(0,u.jsx)(ae,{actions:F,onActionClick:L})}):null]})},El=(e,t)=>Math.max(0,Math.min(e,t-1)),Dl=({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,g]=c.default.useState(()=>El(t,p||1)),[_,v]=c.default.useState(()=>El(t,p||1));if(c.default.useEffect(()=>{p>0&&(g(e=>El(e,p)),v(e=>El(e,p)))},[p]),p===0)return null;let y=t=>{let n=El(t,p);g(n),a?.(n,e[n])},b=e=>{v(n?(e+p)%p:El(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)(D,{variant:`ghost`,"aria-label":`Previous`,onClick:x,intent:`primary`,children:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`chevron-left`,alt:``,size:`md`})}),(0,u.jsx)(D,{variant:`ghost`,"aria-label":`Next`,onClick:S,intent:`primary`,children:(0,u.jsx)(h,{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)(D,{variant:`ghost`,"aria-label":`Previous`,onClick:x,intent:`primary`,children:(0,u.jsx)(h,{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)(D,{variant:`ghost`,"aria-label":`Next`,onClick:S,intent:`primary`,children:(0,u.jsx)(h,{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))})]})]})},Ol=(e,t)=>Math.max(0,Math.min(e,t-1)),kl=e=>typeof e==`string`?e.replace(/^http:\/\//i,`https://`):``,Al=({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,f]=c.default.useState(()=>Ol(t,s||1)),[p,m]=c.default.useState(()=>new Set);if(c.default.useEffect(()=>{s>0&&f(e=>Ol(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(kl(e)))&&r?.src?r:{src:e??``,alt:t??``},_=g(h?.image?.src,h?.image?.alt),v=kl(_.src),y=_.alt??``,b=e=>{!e||r?.src===e||m(t=>{let n=new Set(t);return n.add(e),n.add(kl(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)(A,{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)(Dl,{items:o,initialIndex:l,loop:!0,showArrows:!0,ariaLabel:`Thumbnail carousel`,onSelect:e=>f(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=kl(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)(A,{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)(d,{as:`p`,variant:`body`,className:`text-xs md:text-sm`,children:n})})]})},jl=({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)(Al,{slides:r,initialIndex:i,text:a,fallbackImage:n})})},Ml=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},Nl=(e,t)=>!!(t&&e.some(e=>(e.value??e.id)===t)),Pl=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),[])},Fl=(e,t)=>!e||!t?null:`${e}x${t}`,Il=(e,t,n)=>Math.max(t,Math.min(n,e)),Ll=(e,t=`USD`)=>new Intl.NumberFormat(`en-US`,{style:`currency`,currency:t}).format(e),Rl=e=>!!e?.length,zl=(e,t)=>Rl(e)&&Rl(t),Bl=(e=[])=>e.some(e=>!!e.sku&&!!e.rangeId&&!!e.grade&&!!e.texture&&!!e.widthIn&&!!e.lengthIn),Vl=e=>{let{sku:t,decor:n,title:r,description:i,colourMatching:a,patternRepeat:o,onDownloadSwatch:s,onDownloadFullSheet:l,carousel:d,tabs:f=[`Sample`,`Buy Now`],initialTab:p=`Sample`,tabOptions:m,productOptions:h=[],sizeOptions:g=[],variants:_=[],currency:v,initialQuantity:y=1,minQuantity:b=1,maxQuantity:x=99,showFavorites:S=!0,actionMode:C=`cart`,contactActions:w,onAddToWishlist:T,onAddToCart:E,onContactActionClick:D,availabilityHref:O,availabilityLabel:k=`View full product availability and information`,returnPolicyHref:A,returnPolicyLabel:j=`View return policy`,notReturnableText:M=`This item is not returnable.`,onPurchaseInfoLinkClick:N}=e,P=Array.isArray(f)&&f.length?f:[`Sample`,`Buy Now`],ee=m?.Sample,F=m?.[`Buy Now`],I=ee?.productOptions??h??[],te=ee?.sizeOptions??g??[],L=F?.productOptions??h??[],R=zl(I,te),z=Rl(L)&&Bl(_),B=P.filter(e=>e===`Sample`?R:e===`Buy Now`?z:!0),V=B[0]??`Sample`,[H,U]=c.default.useState(B.includes(p)?p:V);c.default.useEffect(()=>{if(!B.length){U(`Sample`);return}B.includes(H)||U(V)},[H,B,V]);let W=m?.[H],ne=!!W,G=W?.minQuantity??b,K=W?.maxQuantity??x,q=W?.productOptions??(ne?[]:h)??[],re=H===`Buy Now`,[ie,ae]=c.default.useState(()=>({product:Ml(q),grade:null,texture:null,size:null})),J=c.default.useRef(!1),oe=Nl(q,ie.product)?ie.product:Ml(q),se=re&&oe?_.filter(e=>e.rangeId===oe):[],ce=Pl(se.map(e=>({value:e.grade,label:e.grade}))),le=re?ce:W?.gradeOptions??[],ue=Nl(le,ie.grade)?ie.grade:Ml(le),de=ue?se.filter(e=>e.grade===ue):se,fe=Pl(de.map(e=>({value:e.texture,label:e.finish||e.texture}))),pe=re?fe:W?.textureOptions??[],me=Nl(pe,ie.texture)?ie.texture:Ml(pe),Y=me?de.filter(e=>e.texture===me):de,he=new Map((W?.sizeOptions??g??[]).map(e=>[e.value??e.id,e.label])),ge=Pl(Y.map(e=>{let t=Fl(e.widthIn,e.lengthIn)??void 0;return{value:t,label:t?he.get(t)??t:void 0}})),_e=re?ge:W?.sizeOptions??(ne?[]:g)??[],ve=Nl(_e,ie.size)?ie.size:Ml(_e);c.default.useEffect(()=>{if(!J.current){J.current=!0;return}ae({product:Ml(q),grade:Ml(le),texture:Ml(pe),size:Ml(_e)})},[H]),c.default.useEffect(()=>{ae(e=>{let t=e.product&&q.some(t=>(t.value??t.id)===e.product)?e.product:Ml(q),n=e.grade&&le.some(t=>(t.value??t.id)===e.grade)?e.grade:Ml(le),r=e.texture&&pe.some(t=>(t.value??t.id)===e.texture)?e.texture:Ml(pe),i=e.size&&_e.some(t=>(t.value??t.id)===e.size)?e.size:Ml(_e);return e.product===t&&e.grade===n&&e.texture===r&&e.size===i?e:{product:t,grade:n,texture:r,size:i}})},[q,le,pe,_e]);let ye=c.default.useMemo(()=>{if(H!==`Buy Now`)return null;let e={product:oe,grade:ue,texture:me,size:ve},t=_.filter(t=>{let n=Fl(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},[H,_,oe,ue,me,ve]),X=H!==`Buy Now`||!!ye,be=H===`Buy Now`&&ye?ye.price?.label??Ll(ye.price?.value??0,v):``,xe=H===`Buy Now`&&ye?ye.price?.value??0:0,Se=H===`Buy Now`?ye?.sku??t:t,[Ce,we]=c.default.useState(()=>Il(y,G,K)),Te=c.default.useRef(H);c.default.useEffect(()=>{we(Il(y,G,K))},[y,G,K]),c.default.useEffect(()=>{Te.current!==H&&(Te.current=H,we(G))},[H,G]);let Ee=(e,t)=>(t??[]).map(t=>{let n=t.value??t.id;return{id:t.id,label:t.label,disabled:t.disabled,value:n,active:ie[e]===n,onOptionClick:()=>{t.disabled||(ae(t=>({...t,[e]:n})),t.onOptionClick?.(t.id))}}}),De={sku:Se,title:r,decor:n,description:i,colourMatching:a,patternRepeat:o,onDownloadSwatch:s,onDownloadFullSheet:l,tabs:B,activeTab:H,onTabChange:U,productOptions:Ee(`product`,q),gradeOptions:Ee(`grade`,le),textureOptions:Ee(`texture`,pe),sizeOptions:Ee(`size`,_e),availabilityHref:O,availabilityLabel:k,returnPolicyHref:A,returnPolicyLabel:j,notReturnableText:M,priceLabel:be,initialQuantity:Ce,minQuantity:G,maxQuantity:K,showCartActions:B.includes(H)&&X,showFavorites:S,actionMode:C,contactActions:w,selectedProduct:oe,selectedGrade:ue,selectedTexture:me,selectedSize:ve,onAddToWishlist:()=>{T?.({sku:Se,decor:n})},onAddToCart:e=>{if(H===`Buy Now`&&!ye)return;let t={type:H,sku:Se,decor:n,product:oe,grade:ue,texture:me,size:ve,quantity:e,priceValue:H===`Buy Now`?xe:0,priceLabel:H===`Buy Now`?be:`$0.00`,currency:v,bigCommerceProductId:ye?.bigCommerceProductId};E?.(t)},onContactActionClick:e=>{D?.({...e,sku:Se,decor:n,title:r,activeTab:H,product:oe,grade:ue,texture:me,size:ve})},onQuantityChange:e=>we(e),onPurchaseInfoLinkClick:N,mobileMediaSlot:(0,u.jsx)(jl,{carousel:d})};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)(jl,{carousel:d})}),(0,u.jsx)(Tl,{...De})]})})})},Hl=({imageSrc:e,imageAlt:t=`Standard Copy Hero`,heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})=>(0,u.jsx)(al,{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)(Ko,{heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})})}),Ul=({categoryText:e,imageSrc:t,imageAlt:n=`Article Header`,tags:r=[],onTagClick:i})=>(0,u.jsx)(al,{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)(Uo,{categoryText:e,tags:r,onTagClick:i})}),Wl=({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)(Bo,{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)(d,{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`})]})})},Gl=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)(A,{src:t,alt:n,className:`w-full h-full object-cover`,quality:90})})},Kl=({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`},Jl={small:`text-xl md:text-4xl`,medium:`text-2xl md:text-4xl`,large:`text-3xl md:text-5xl`},Yl=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,f=ql[n],p=ql[r],m=l?`mt-10 md:mt-20`:``,h=o?`mb-1`:`mb-4 md:mb-6`,g=`${p} ${Jl[c]} text-primary ${h}`;return(0,u.jsxs)(`section`,{className:`w-full ${m}`.trim(),children:[t?(0,u.jsx)(d,{as:s,variant:`free`,className:g,children:t}):null,o?(0,u.jsx)(d,{variant:`caption`,className:`${f} md:text-base font-bold mb-6`,children:o}):null,i?(0,u.jsx)(d,{as:`h2`,variant:`bold`,className:`${f} text-primary mb-4`,children:i}):null,a?(0,u.jsx)(Kl,{html:a,className:f}):null]})},Xl=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)(Yl,{...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)(Yl,{...a,body:t})})]})},Zl=({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`,f=i.length<4,p=f?`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)(d,{as:`h2`,variant:`free`,className:s,children:e}),(0,u.jsx)(d,{variant:`body`,className:`mt-4 text-primary`,children:t})]}):null,(0,u.jsx)(Dl,{items:i,ariaLabel:e,arrowPosition:`top-right`,showArrows:!f,trackClassName:p,header:t?null:(0,u.jsx)(d,{variant:`free`,className:c,children:e}),renderItem:({item:e})=>(0,u.jsx)(oo,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,title:e.title,brand:e.brand,decorNumber:e.decorNumber,onProductClick:a?()=>a(e):void 0},e.id)})]})},Ql=({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)(d,{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)(fs,{...e})},`${e.title}-${t}`))})]})}):null,$l=({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)(d,{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)(d,{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)(Zo,{question:e.question,answer:e.answer,initiallyOpen:e.initiallyOpen},e.id))})]})}),eu=(e,t)=>e.id??[e.label,e.imageSrc,t].join(`-`),tu=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},nu=({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)(Jo,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,onCardClick:t?()=>t({item:e,index:n}):void 0},eu(e,n)))})}):(0,u.jsx)(`section`,{className:`px-4 py-20 md:px-4`,children:tu(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)(Jo,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,aspectRatio:i?`compact`:`video`,onCardClick:t?()=>t({item:e,index:n}):void 0},eu(e,n)))},`image-overlay-grid-row-${n}`)})})},ru={2:`md:grid-cols-2`,3:`md:grid-cols-3`,4:`md:grid-cols-4`},iu=({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:ru[n],children:e.map(e=>(0,u.jsx)(`div`,{"aria-current":e.id===t?`true`:void 0,className:`h-full`,children:(0,u.jsx)(uo,{location:e,stockedProductsLabel:r,preferredLabel:i,websiteLabel:a,directionsLabel:o,emailLabel:s,onWebsiteClick:c,onDirectionsClick:l,onPhoneClick:d,onEmailClick:f})},e.id))}):null,au=({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)(d,{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)(Ks,{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)(Ks,{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)(D,{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)(d,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:i}):null]}):null]}),ou=e=>(0,u.jsx)(D,{variant:`ghost`,size:`md`,...e}),su={left:`text-left`,center:`text-center`,right:`text-right`},cu={left:`justify-start text-left`,center:`justify-center text-center`,right:`justify-end text-right`},lu={xs:`w-24`,sm:`w-32`,md:`w-48`,lg:`w-64`,xl:`w-80`},uu=e=>e==null||e===``?`-`:String(e),du=e=>e==null?``:String(e),fu=e=>e==null||String(e).trim()===``,pu=e=>e.reduce((e,t)=>(e[t.id]={...t,values:{...t.values}},e),{}),mu=({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:f})=>{let p=(0,c.useRef)(null),[m,h]=(0,c.useState)(pu(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(pu(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;f?.({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)&&fu(t.values[e.id]))},T=(e,t)=>{let n=(m[e.id]??e).values[t.id];return fu(n)?t.placeholder??`-`:t.editor===`select`?t.options?.find(e=>e.value===String(n))?.label??uu(n):uu(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&&fu(a.values[t.id]);return s?t.editor===`select`?(0,u.jsx)(`div`,{"data-data-report-cell-editor":`true`,children:(0,u.jsx)(xo,{id:`${n}-editor`,name:t.id,ariaLabel:`${t.label} for row ${e.id}`,value:du(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:du(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)(d,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e}),v?(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm text-primary`,children:v}):null]}),(0,u.jsx)(d,{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:lu[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 ${lu[e.width??`md`]} ${su[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 ${lu[t.width??`md`]} ${su[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 ${su[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 ${cu[r]}`)},n)}),(0,u.jsx)(`td`,{className:`whitespace-nowrap px-4 py-3 text-center`,children:(0,u.jsx)(ou,{"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)(ou,{"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)(d,{variant:`free`,className:`px-3 py-4 text-sm text-primary`,children:s})})]})},hu=({groups:e,itemLabel:t=`decors`,emptyMessage:n=`No decors are available.`,showGroupHeaders:r=!0,onDecorClick:i})=>{let a=(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 o=`${a}-${n}`;return(0,u.jsxs)(`section`,{"aria-labelledby":r?o: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)(d,{as:`h2`,id:o,variant:`free`,className:`text-base font-bold text-primary`,children:e.label}),(0,u.jsxs)(d,{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)(se,{...e,onDecorClick:i},e.decorId))})]},e.id)})}):(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:n})},gu={lat:39.9612,lng:-82.9988},_u=()=>window,vu=()=>_u().google,yu=e=>{let t=_u();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)},bu=({center:e,locations:t,selectedLocationId:n})=>{let r=t.find(e=>e.id===n);return e??r?.coordinates??t[0]?.coordinates??gu},xu=({googleMapsApiKey:e,mapId:t,locations:n,center:r,zoom:i=10,selectedLocationId:a,legendLabel:o,onLocationSelect:s})=>{let l=c.default.useRef(null),f=c.default.useRef(null),p=c.default.useRef([]),[m,g]=c.default.useState(e?`loading`:`missing-key`),_=c.default.useMemo(()=>bu({center:r,locations:n,selectedLocationId:a}),[r,n,a]);c.default.useEffect(()=>{if(!e)return g(`missing-key`),()=>void 0;let t=!0;return g(`loading`),yu(e).then(()=>{t&&g(`loaded`)}).catch(()=>{t&&g(`error`)}),()=>{t=!1}},[e]),c.default.useEffect(()=>{if(m!==`loaded`||!l.current)return;let e=vu();e&&(f.current?(f.current.setCenter(_),f.current.setZoom(i)):f.current=new e.maps.Map(l.current,{center:_,zoom:i,mapId:t,clickableIcons:!1,fullscreenControl:!0,mapTypeControl:!1,streetViewControl:!1}))},[m,t,_,i]),c.default.useEffect(()=>{if(m!==`loaded`||!f.current)return;let e=vu();e&&(p.current.forEach(e=>e.setMap(null)),p.current=n.map((t,n)=>{let r=new e.maps.Marker({position:t.coordinates,map:f.current,title:t.name,label:String(n+1)});return r.addListener(`click`,()=>{s?.({location:t})}),r}))},[m,n,s]),c.default.useEffect(()=>{if(m!==`loaded`||!f.current||!a)return;let e=n.find(e=>e.id===a);e&&f.current.panTo(e.coordinates)},[m,n,a]),c.default.useEffect(()=>()=>{p.current.forEach(e=>e.setMap(null)),p.current=[]},[]);let v=n.slice(0,6);return(0,u.jsxs)(`section`,{className:`w-full`,"aria-label":`Locations map`,children:[(0,u.jsx)(`div`,{ref:l,"data-testid":`location-map-canvas`,className:`h-80 w-full bg-secondary/10 md:h-96`,children:m===`missing-key`||m===`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:v.map((e,t)=>(0,u.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-left text-primary`,onClick:()=>s?.({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)(d,{as:`span`,variant:`body`,children:e.name})]},e.id))}):null}),o?(0,u.jsxs)(`div`,{className:`mt-3 flex items-center gap-2`,children:[(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`location-dot`,color:`accent`,size:`sm`}),(0,u.jsx)(d,{variant:`caption`,className:`text-primary`,children:o})]}):null]})},Su=({ariaLabel:e=`Status flow`,surfaceVariant:t=`card`,children:n})=>(0,u.jsx)(`section`,{"aria-label":e,className:t===`plain`?`w-full`:`w-full rounded-lg border border-borderTertiary bg-secondary p-4`,children:(0,u.jsx)(`div`,{"data-testid":`status-flow-diagram-content`,className:`flex flex-col items-center justify-center gap-2 md:flex-row`,children:n})}),Cu=({title:e,description:t,iconName:n,iconType:r=`fa-solid`,iconAlt:i=``,variant:a=`default`,mediaAssetCount:o,children:s})=>{let c=t?.trim()??``,l=a===`skeleton`,f=typeof o==`number`,p=o??0,m=p===1?`1 media asset`:`${p} media assets`,g=p>0;return(0,u.jsxs)(`section`,{"aria-label":e,className:`relative w-full rounded-lg border border-tertiary bg-adminSideNavBackground p-4 shadow-sm`,children:[f&&l?(0,u.jsxs)(`span`,{"aria-label":`Media asset check loading`,"aria-busy":`true`,"data-testid":`status-flow-group-media-assets`,className:`absolute right-3 top-3 inline-flex items-center gap-1.5`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-5 w-5 animate-pulse rounded-sm bg-borderTertiary`}),(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`-ml-3 -mt-3 h-5 w-5 animate-pulse rounded-full border border-borderTertiary bg-tertiaryActive`})]}):null,f&&!l?(0,u.jsxs)(`span`,{"aria-label":m,"data-testid":`status-flow-group-media-assets`,className:`absolute right-3 top-3 inline-flex items-center gap-1.5 text-xs font-semibold`,children:[(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`image`,alt:``,size:`xl`,className:`shrink-0 text-tertiary`}),(0,u.jsx)(`span`,{className:`-ml-3 -mt-3 inline-flex h-5 w-5 items-center justify-center rounded-full border text-[0.625rem] leading-none ${g?`border-saleGreen bg-saleGreen/10 text-saleGreen`:`border-accent bg-accent/10 text-accent`}`,children:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:g?`check`:`xmark`,alt:``,size:`xs`,className:`text-tertiary`})})]}):null,(0,u.jsxs)(`header`,{className:`flex flex-col items-center text-center`,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-center gap-2`,children:[(0,u.jsx)(h,{iconType:r,iconName:n,alt:i,size:`2xl`,className:`text-tertiary`}),(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:e})]}),c?(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm text-primary`,children:c}):null]}),(0,u.jsx)(`div`,{"data-testid":`status-flow-group-content`,className:`mt-5 flex flex-col items-center justify-center gap-2 md:flex-row`,children:s})]})},wu=({message:e,iconName:t})=>(0,u.jsx)(`div`,{className:`mt-6 flex min-h-80 items-center justify-center rounded-lg border border-tertiary bg-adminSideNavBackground p-6 text-center`,children:(0,u.jsxs)(`div`,{className:`flex max-w-sm flex-col items-center gap-3`,children:[(0,u.jsx)(h,{iconType:`fa-solid`,iconName:t,alt:``,size:`xl`,className:`text-primary`}),(0,u.jsx)(d,{variant:`free`,className:`text-base font-semibold text-primary`,children:e})]})}),Tu=({title:e,description:t,iconName:n=`diagram-project`,iconType:r=`fa-solid`,iconAlt:i=``,lastCheckedLabel:a,state:o=`ready`,startupMessage:s=`Enter a SKU to get started.`,errorMessage:c=`Unable to load data for this SKU.`,diagram:l,legend:f,actionCardProps:p,actions:m})=>{let g=t?.trim()??``,_=a?.trim()??``,v=m??(p?(0,u.jsx)(Ps,{...p}):null);return(0,u.jsxs)(`section`,{"aria-label":e,"aria-busy":o===`loading`,className:`w-full rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`header`,{className:`flex flex-col gap-4 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,u.jsx)(h,{iconType:r,iconName:n,alt:i,size:`lg`,className:`text-primary`}),(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:e})]}),g?(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-primary`,children:g}):null]}),_?(0,u.jsx)(d,{variant:`free`,className:`text-xs text-primary`,children:_}):null]}),o===`idle`?(0,u.jsx)(wu,{message:s,iconName:`magnifying-glass`}):null,o===`error`?(0,u.jsx)(wu,{message:c,iconName:`triangle-exclamation`}):null,o===`ready`||o===`loading`?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{"data-testid":`status-flow-panel-diagram`,className:`mt-6`,children:l}),o===`ready`?(0,u.jsxs)(`div`,{"data-testid":`status-flow-panel-support`,className:`mt-6 grid gap-4 md:grid-cols-2`,children:[f,v]}):null]}):null]})},Eu={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`}},Du={match:`text-saleGreen`,mismatch:`text-accent`,neutral:`text-tertiary`},Ou=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 ${Du[n]}`,children:t}):null]})]},e.id)},ku=(e,t,n)=>{let r=e.description?.trim()??``,i=e.actionHelpText?.trim()??``,a=Eu[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)(h,{iconType:`fa-solid`,iconName:a.iconName,alt:``,size:`xs`}),e.statusLabel]})]}),(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`mt-4 text-base font-bold`,children:e.title}),r?(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:r}):null]}),(0,u.jsx)(`dl`,{className:`mt-5`,children:e.fields.map(Ou)}),e.actionLabel?(0,u.jsxs)(`footer`,{className:`mt-auto pt-5`,children:[i?(0,u.jsx)(d,{variant:`free`,className:`mb-2 text-xs text-tertiary`,children:i}):null,(0,u.jsx)(D,{label:e.actionLabel,iconType:`fa-solid`,iconName:`arrows-rotate`,iconAlt:``,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:e.actionDisabled,onClick:n})]}):null]})},Au=({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:f,onRefreshClick:p})=>{let m=n?.trim()??``,g=Eu[r],_=[{stage:a,onActionClick:void 0},{stage:o,onActionClick:l},{stage:s,onActionClick:f}];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 ${g.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)(h,{iconType:`fa-solid`,iconName:g.iconName,alt:``,size:`sm`})}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(d,{as:`h2`,id:`commerce-sync-panel-heading`,variant:`free`,className:`text-base font-bold text-inherit`,children:[e,`: `,i]}),(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm text-inherit`,children:t}),m?(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-xs text-inherit`,children:m}):null]})]}),p?(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(D,{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:[ku(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)(h,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`xs`})}):null]},e.stage.title))})]})},ju=({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)(d,{as:`span`,variant:`body`,className:`text-primary`,children:n})]}),Mu=({options:e=[],label:t,onOptionChange:n})=>{let[r,i]=(0,c.useState)(!0);return(0,u.jsx)(`section`,{children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,u.jsxs)(D,{intent:`primary`,variant:`link`,size:`sm`,onClick:()=>i(!r),className:`flex gap-1 w-full`,buttonAlignment:`justify-between`,"aria-expanded":r,children:[(0,u.jsx)(d,{variant:`bold`,children:t}),(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`angle-down`,className:`flex transform transition-transform duration-300 text-secondaryActive text-xs ${r?`rotate-180`:``}`})]}),r&&(0,u.jsx)(`ul`,{className:`list-none`,children:e.map(e=>(0,u.jsx)(`li`,{children:(0,u.jsx)(ju,{id:e.id,name:e.name,label:e.label,checked:e.checked??!1,disabled:e.disabled??!1,onChange:n??e.onChange,checkboxColor:`accent-primary`})},`${e.name}-${e.id}`))})]})})},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)(d,{variant:`bold`,className:`pt-2`,children:e}),r.length>0&&(0,u.jsx)(D,{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)(D,{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)(d,{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)(h,{iconType:`fa-solid`,iconName:n,className:`text-primary text-md mr-2`}):null,t?(0,u.jsx)(d,{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)(Ho,{label:e.label,options:e.options,onOptionSelect:l}),e.type===`checkbox`&&(0,u.jsx)(Mu,{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)(D,{variant:`outline`,intent:`accent`,size:`sm`,className:`w-full`,label:i,onClick:()=>o()}),(0,u.jsx)(D,{variant:`solid`,intent:`accent`,size:`sm`,className:`w-full`,label:a,onClick:()=>s()})]})})]}),$=({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)(d,{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)(d,{as:`a`,href:a||`#`,onClick:o,className:`text-xs text-secondaryActive underline underline-offset-2`,children:i}):null]}):null,(0,u.jsx)(Co,{id:e,hasError:r,...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=[{id:`createAccount`,label:`Create Account`},{id:`signIn`,label:`Sign In`}],Lu=({htmlFor:e,label:t,errorMessage:n})=>(0,u.jsx)(d,{as:`label`,htmlFor:e,className:`text-sm ${n?`text-accent!`:`text-primary`}`,children:n||t}),Ru=({data:e,actionLabels:t,onModeChange:n,onEmailChange:r,onPasswordChange:i,onFirstNameChange:a,onLastNameChange:o,onPhoneNumberChange:s,onUserTypeChange:c,onConfirmPasswordChange:l,onMarketingOptInChange:f,onTermsAcceptedChange:p,onEmailBlur:m,onPasswordBlur:h,onForgotPasswordClick:g,onTermsClick:_,onPrivacyClick:v,onSignInClick:y,onCreateAccountClick:b,onSecondaryClick:x})=>{let S=e.mode??`signIn`,C=S===`createAccount`,w=e.errors??{},T=e.userTypeOptions??Fu,E=C?t?.createAccountPrimary??`Create Account`:t?.signInPrimary??`Sign In`,O=t?.secondary??`Cancel`;return(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-8`,children:[(0,u.jsx)(hc,{ariaLabel:`Login mode`,layoutVariant:`equalWidth`,items:Iu,selectedId:S,onSelect:e=>n?.(e)}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[C?(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:`First Name*`,value:e.firstName??``,placeholder:`First Name*`,hasError:!!w.firstName,errorMessage:w.firstName,autoComplete:`given-name`,onChange:a}),(0,u.jsx)($,{id:`account-access-last-name`,name:`lastName`,label:`Last Name`,value:e.lastName??``,placeholder:`Last Name`,autoComplete:`family-name`,onChange:o})]}):null,(0,u.jsx)($,{id:`account-access-email`,name:`email`,type:`email`,label:`Email`,value:e.email??``,placeholder:C?`Email*`:``,hasError:!!w.email,errorMessage:w.email,autoComplete:`email`,onChange:r,onBlur:m}),C?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)($,{id:`account-access-phone-number`,name:`phoneNumber`,type:`tel`,label:`Phone Number*`,value:e.phoneNumber??``,placeholder:`Phone Number*`,hasError:!!w.phoneNumber,errorMessage:w.phoneNumber,autoComplete:`tel`,onChange:s}),(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[(0,u.jsx)(Lu,{htmlFor:`account-access-user-type`,label:`I am a*`,errorMessage:w.userType}),(0,u.jsx)(xo,{id:`account-access-user-type`,name:`userType`,placeholder:`I am a*`,value:e.userType??``,hasError:!!w.userType,options:T.map(e=>({label:e.label,value:e.value,disabled:e.disabled})),onChange:e=>c?.(e.target.value)})]})]}):null,(0,u.jsx)($,{id:`account-access-password`,name:`password`,type:`password`,label:`Password`,value:e.password??``,placeholder:C?`Password*`:``,hasError:!!w.password,errorMessage:w.password,autoComplete:C?`new-password`:`current-password`,linkText:C?void 0:`Forgot Password?`,linkHref:`#`,onLinkClick:g,onChange:i,onBlur:h}),C?(0,u.jsxs)(u.Fragment,{children:[e.passwordRequirementsText?(0,u.jsx)(d,{variant:`caption`,className:`text-accent`,children:e.passwordRequirementsText}):null,(0,u.jsx)($,{id:`account-access-confirm-password`,name:`confirmPassword`,type:`password`,label:`Confirm Password*`,value:e.confirmPassword??``,placeholder:`Confirm Password*`,hasError:!!w.confirmPassword,errorMessage:w.confirmPassword,autoComplete:`new-password`,onChange:l}),(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=>f?.(e.target.checked),className:`h-4 w-4 shrink-0 accent-accent`}),(0,u.jsx)(`span`,{children:`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":`I agree to Formica's Terms of Use and Privacy Policy`,checked:e.termsAccepted??!1,onChange:e=>p?.(e.target.checked),className:`h-4 w-4 shrink-0 accent-accent`}),(0,u.jsxs)(`span`,{children:[`I agree to Formica's`,` `,(0,u.jsx)(D,{type:`button`,variant:`link`,intent:`accent`,className:`p-0! text-sm leading-5 align-baseline`,label:`Terms of Use`,onClick:_}),` `,`and`,` `,(0,u.jsx)(D,{type:`button`,variant:`link`,intent:`accent`,className:`p-0! text-sm leading-5 align-baseline`,label:`Privacy Policy`,onClick:v}),`.`]})]}),w.termsAccepted?(0,u.jsx)(d,{variant:`caption`,className:`text-accent`,children:w.termsAccepted}):null]})]}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 ${C?`mb-8`:``}`,children:[(0,u.jsx)(D,{type:`button`,variant:`solid`,intent:`accent`,className:`w-full`,onClick:C?b:y,children:E}),(0,u.jsx)(D,{type:`button`,variant:`outline`,intent:`primary`,className:`w-full border-primary text-primary`,onClick:x,children:O})]})]})},zu=({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 border-b border-borderTertiary 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)(h,{iconType:`fa-solid`,iconName:`user`,alt:``,size:`2xl`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(d,{variant:`caption`,children:i}),(0,u.jsx)(d,{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)(D,{label:a,variant:`link`,intent:`accent`,size:`sm`,onClick:s})})]}),(0,u.jsx)(`nav`,{"aria-label":`Customer account sections`,children:(0,u.jsx)(`div`,{className:`flex w-full`,role:`tablist`,children:n.map(e=>{let t=e.id===r;return(0,u.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":t,className:`min-w-0 flex-1 border-b-2 px-2 py-4 text-xs font-semibold transition md:px-5 md:text-sm ${t?`border-primary text-primary`:`border-transparent text-secondaryActive hover:border-borderTertiary hover:text-primary`}`,onClick:()=>o({item:e}),children:e.label},e.id)})})}),(0,u.jsx)(`main`,{className:`pt-8 md:pt-10`,children:t})]})}),Bu=({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)(D,{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)})})},Vu=({data:e})=>e?(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:gap-6`,children:[!!e?.summary&&(0,u.jsx)(d,{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)(ns,{colourMatching:e.colourMatching})]}):null,Hu=({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)(d,{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)(A,{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)(d,{as:`h4`,variant:`free`,className:`text-lg md:text-xl font-bold text-primary`,children:e.title}),!!e.description&&(0,u.jsx)(d,{as:`p`,variant:`body`,className:`max-w-80 leading-6`,children:e.description})]})]},e.key))})]},e.id))}):null,Uu=(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},Wu=({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)(d,{as:`h3`,variant:`free`,className:`text-xl md:text-3xl leading-none mb-1`,children:n.title}),!!a&&(0,u.jsx)(d,{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)(d,{as:`span`,variant:`free`,className:`text-xs text-nowrap`,children:Uu(e)},e))}),(0,u.jsx)(`div`,{className:`flex flex-col gap-2`,children:i.map(e=>(0,u.jsx)(d,{as:`span`,variant:`free`,className:`text-xs text-nowrap`,children:Uu(e,!0)},e))})]})]},n.id)})}),!!e.content&&(0,u.jsx)(`div`,{children:e.content}),!!e.summary&&(0,u.jsx)(d,{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)(d,{as:`span`,variant:`body`,children:[(0,u.jsxs)(`span`,{className:`font-medium`,children:[e.grade,`: `]}),e.text]},e.id))})]}):null,Gu=[{label:`Product Details`,value:`details`},{label:`Texture`,value:`texture`},{label:`Size & Grade Guide`,value:`sizeAndGrade`}],Ku=(e,t)=>e?.length?t&&e.some(e=>e.id===t)?t:e[0].id:``,qu=e=>{typeof window>`u`||e.forEach(e=>{if(!e)return;let t=new window.Image;t.src=e})},Ju=({ranges:e,defaultTab:t=`details`,defaultRangeId:n,selectedGrade:r})=>{let[i,a]=c.default.useState(t),[o,s]=c.default.useState(Ku(e,n));if(c.default.useEffect(()=>{s(Ku(e,n))},[e,n]),c.default.useEffect(()=>{let t=e?.flatMap(e=>e.texture?.groups??[]).flatMap(e=>e.items??[]).map(e=>e.imageSrc).filter(e=>!!e)??[];qu([...new Set(t)])},[e]),!e?.length)return null;let l=e.find(e=>e.id===o)??e[0],d=e=>Gu.find(t=>t.value===e)?.label??Gu[0].label,f=e=>Gu.find(t=>t.label===e)?.value??`details`;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)(ll,{items:Gu.map(e=>({label:e.label,disabled:!1})),value:d(i),onChange:e=>a(f(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)(Bu,{items:e.map(e=>({id:e.id,label:e.label})),value:l.id,onChange:e=>s(e)})}),(0,u.jsx)(`div`,{children:(()=>{switch(i){case`details`:return(0,u.jsx)(Vu,{data:l.details});case`texture`:return(0,u.jsx)(Hu,{data:l.texture});case`sizeAndGrade`:return(0,u.jsx)(Wu,{data:l.sizeAndGrade,selectedGrade:r});default:return null}})()})]})})]})},Yu=({isOpen:e,title:t=`My Cart`,projectName:n=``,items:r=[],className:i=``,onClose:a,onProjectNameChange:o,onQuantityChange:s,onRemoveItem:c,onClearCart:l,onGoToCart:f})=>{if(!e)return null;let p=r.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":`Close cart overlay`,className:`absolute inset-0 bg-black/40`,onClick:a}),(0,u.jsxs)(`aside`,{className:`relative z-10 flex h-full w-full max-w-md flex-col bg-white shadow-xl ${i}`,"aria-label":`Shopping cart flyout`,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between px-6 py-4`,children:[(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`text-3xl text-primary`,children:t}),(0,u.jsx)(D,{iconType:`fa-solid`,iconName:`fa-xmark`,intent:`ghost`,variant:`ghost`,"aria-label":`Close cart`,onClick:a,className:`text-secondaryActive!`})]}),(0,u.jsx)(`div`,{className:`mt-6 px-6`,children:(0,u.jsx)(`input`,{type:`text`,value:n,onChange:e=>o?.(e.target.value),placeholder:`Enter project name`,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:p?(0,u.jsx)(`div`,{className:`flex flex-col gap-4`,children:r.map(e=>(0,u.jsx)(ie,{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,onQuantityChange:t=>s?.(e.id,t),onRemoveItem:()=>c?.(e.id),id:``},e.id))}):(0,u.jsx)(`div`,{className:`rounded-lg border border-secondaryActive p-6`,children:(0,u.jsx)(d,{variant:`free`,className:`text-base text-primary`,children:`Your cart is empty.`})})}),(0,u.jsx)(`div`,{className:`px-6 py-5`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,u.jsx)(D,{label:`Go to Cart`,intent:`accent`,variant:`solid`,onClick:f,disabled:!p,className:`w-full`}),(0,u.jsx)(D,{label:`Clear Cart`,intent:`secondary`,variant:`solid`,onClick:l,disabled:!p,className:`w-full`})]})})]})]})};function Xu(e=[]){return e.reduce((e,t)=>(e[t.id]=t,e[t.value]=t,e),{})}var Zu=(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})),Qu=(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}))},$u=(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)},[])},ed=(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},[])},td=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??[]})),nd=e=>e?`Grade ${e}`:``,rd=({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.ranges??[],y=f.standardCopyHero,b=f.featuredProducts??[],x=m?.colourMatching,S=g?.ranges??[],C=g?.textures??[],w=g?.sizes??[],T=g?.sampleSizes??[],E=Xu(S),D=Xu(C),O=Xu(w),k=Xu(T),A=_?.tabOptions?.Sample??{},j=_?.tabOptions?.[`Buy Now`]??{},M=_?.defaults??{},N=Qu(f.variants??[]),P=f.variants?.[0]?.grade??null,[ee,F]=c.default.useState(nd(P));c.default.useEffect(()=>{F(nd(P))},[P]);let I=N.map(e=>{let t=nd(e.value);return{...e,active:t===ee,onOptionClick:()=>F(t)}}),te=A.productOptionIds,L=te?.filter(e=>!!E[e])??[],R=te?.length?L:ed(f.variants??[]),z=A.textureOptionIds,B=z?.filter(e=>!!D[e])??[],V=z?.length?Zu(D,B,M.texture??null):$u(f.variants??[],M.texture??null),H=j.productOptionIds,U=H?.filter(e=>!!E[e])??[],W=H?U:S.map(e=>e.id),ne={sku:m?.sku??``,decor:m?.decor??``,title:m?.title??``,description:m?.description??``,colourMatching:x,patternRepeat:m?.patternRepeat??``,variants:f.variants??[],onDownloadSwatch:()=>r?.(f),onDownloadFullSheet:()=>i?.(f),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:Js,alt:`Product image unavailable`}},tabs:g?.purchaseTabs??[`Sample`,`Buy Now`],initialTab:h?.defaultPurchaseTab??`Buy Now`,tabOptions:{Sample:{minQuantity:A.minQuantity,maxQuantity:A.maxQuantity,productOptions:Zu(E,R,h?.defaultRangeId??S[0]?.value??null),gradeOptions:[],textureOptions:V,sizeOptions:Zu(k,A.sizeOptionIds??[],null)},"Buy Now":{minQuantity:j.minQuantity,maxQuantity:j.maxQuantity,productOptions:Zu(E,W,h?.defaultRangeId??S[0]?.value??null),gradeOptions:I,textureOptions:Zu(D,j.textureOptionIds??[],M.texture??null),sizeOptions:Zu(O,j.sizeOptionIds??[],M.size??null)}},productOptions:Zu(E,W,h?.defaultRangeId??S[0]?.value??null),gradeOptions:I,selectedGrade:ee,textureOptions:Zu(D,j.textureOptionIds??[],M.texture??null),sizeOptions:Zu(O,j.sizeOptionIds??[],M.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:M.quantity??1,minQuantity:M.minQuantity??1,maxQuantity:M.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},G={ranges:v.map(e=>{let t=e.sizeAndGrade?.definitions??[],n=td(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`,defaultRangeId:h?.defaultRangeId??v[0]?.id??``,selectedGrade:ee,className:``},K=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)(Xc,{...e}),(0,u.jsx)(Vl,{...ne}),(0,u.jsx)(Ju,{...G}),(0,u.jsx)(`div`,{className:`hidden md:block`,children:y&&(0,u.jsx)(Hl,{imageSrc:y.imageSrc??``,imageAlt:y.imageAlt??`Visualize This Product`,heading:y.heading??`Visualize This Product`,subheading:y.subheading??``,body:y.body??``,linkLabel:y.linkLabel??`See In Situation`,linkHref:y.linkHref??`#`})}),b.length>0&&(0,u.jsx)(Zl,{title:`Trending Products`,items:b,onItemClick:K})]}),d?(0,u.jsx)(Yu,{...d}):null]})},id=({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)(D,{label:e.label,variant:t?`solid`:`ghost`,intent:t?`neutral`:`radio`,size:`sm`,active:t,onClick:()=>a(e),"aria-pressed":t},e.value)})})})},ad=({standardCopyHeroProps:e,multiButtonBarProps:t,featuredArticleBannerProps:n,featureCardCollectionProps:r})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Hl,{...e}),(0,u.jsx)(id,{...t}),(0,u.jsx)(cl,{...n}),(0,u.jsx)(vl,{...r})]}),od=(e,t)=>e.id??[e.decorNumber,e.title,e.brand,e.product,e.status??`standard`,t].join(`-`),sd=({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)(Ys,{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},od(e,n))})}),cd=e=>e.flatMap(e=>e.options.filter(e=>e.checked).map(e=>({id:e.id,label:e.label}))),ld=(e,t,n)=>e.map(e=>({...e,options:e.options.map(e=>e.id===t?{...e,checked:n}:e)})),ud=e=>e.map(e=>({...e,options:e.options.map(e=>({...e,checked:!1}))})),dd=e=>e.tabs?.selectedValue??e.tabs?.options[0]?.value??``,fd=e=>e.filters.sort?.value??e.filters.sort?.options?.[0]?.value??e.filters.sort?.options?.[0]?.label??``,pd=e=>e.filters.search?.value??``,md=e=>e.filters.panel?e.filters.toggleButton?.initiallyVisible??!0:!1,hd=({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(()=>md(e)),m=e.filters.panel?.sections??[],h=dd(e),g=fd(e),_=pd(e),v=e.tabs,y=e.filters.sort,b=e.filters.search,x=e.filters.panel,S=!!(x||y||b),C=c.default.useMemo(()=>cd(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(ld(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`checkbox`})},[j,m]),N=c.default.useCallback(e=>{j(ld(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`colorSwatch`})},[j,m]),P=c.default.useCallback(()=>{j(ud(m),{action:`clear-all`})},[j,m]);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)(Hl,{...e.hero,onLinkClick:()=>n?.(e)}),v?(0,u.jsx)(id,{options:v.options,selectedValue:h,onSelect:t=>{r?.(t,e)}}):null,S?(0,u.jsxs)(go,{barClassName:e.filters.barClassName,children:[x?(0,u.jsx)(_o,{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)(So,{className:`hidden md:block md:w-70`,dropdownProps:{...y,value:g,onChange:t=>{i?.(t.target.value,e)}}}):null,b?(0,u.jsx)(Eo,{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(ld(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(ld(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)(sd,{swatches:e.decorGrid.swatches,onSwatchClick:(t,n)=>s?.(t,n,e)})})]})]})},gd=({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)(J,{className:`block w-full cursor-pointer text-left`,onCardClick:()=>t?.({image:e,index:n}),ariaLabel:`Open ${e.alt}`,children:(0,u.jsx)(A,{src:e.src,alt:e.alt,quality:e.quality,className:`aspect-square rounded-lg object-cover`})})},`${e.alt}-${n}`))}),_d=({standardCopyHeroProps:e,multiButtonBarProps:t,filterBarProps:n,dropdownFilterPropsList:r,imageGridProps:i})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Hl,{...e}),(0,u.jsx)(id,{...t}),(0,u.jsx)(go,{...n,children:r.map(e=>(0,u.jsx)(So,{...e},e.dropdownProps.id))}),(0,u.jsx)(gd,{...i})]}),vd=({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)(d,{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)(Xo,{title:e.title,details:e.details,iconName:e.iconName,onDocumentClick:e.onDocumentClick},e.id))})]})}),yd=({standardCopyHeroProps:e,multiButtonBarProps:t,warrantyCardProps:n,documentLinkCollectionProps:r,infoCardProps:i,faqCardCollectionProps:a})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Hl,{...e}),(0,u.jsx)(id,{...t}),(0,u.jsx)(L,{spacing:`section`,children:(0,u.jsx)(Xl,{...n})}),(0,u.jsx)(vd,{...r}),(0,u.jsx)(L,{spacing:`section`,children:(0,u.jsx)(Qo,{...i})}),(0,u.jsx)($l,{...a})]}),bd=(e,t)=>e.id??[e.decorNumber,e.title,e.brand,e.rangeCode,t].join(`-`),xd=(e,t)=>e.slice(0,Math.max(0,Math.min(t??e.length,e.length))),Sd=(e,t,n)=>n??`View ${e} more ${t}`,Cd=({searchFilterProps:e,decorResultsProps:t,resourceResultsProps:n,noResultsMessage:r})=>{let i=t?.items??[],a=n?.items??[],o=xd(i,t?.visibleItemCount),s=xd(a,n?.visibleItemCount),c=i.length-o.length,l=a.length-s.length,f=e.searchBarProps.value?.trim(),p=f?`Showing results for "${f}"`:`Search Results`,m=i.length>0,h=a.length>0,g=m||h;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(L,{isFirst:!0,spacing:`compactPaddedSection`,children:[(0,u.jsx)(d,{as:`h1`,variant:`free`,className:`mb-6 text-2xl text-primary md:text-3xl`,children:p}),(0,u.jsx)(Eo,{...e,layoutVariant:`full`})]}),m&&t?(0,u.jsxs)(L,{spacing:`compactPaddedSection`,children:[t.title?(0,u.jsx)(d,{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)(Ys,{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},bd(e,n)))}),c>0?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(D,{variant:`outline`,intent:`accent`,size:`sm`,label:Sd(c,`decor results`,t.viewMoreLabel),onClick:t.onViewMoreClick})}):null]}):null,h&&n?(0,u.jsxs)(L,{spacing:`compactPaddedSection`,children:[n.title?(0,u.jsx)(d,{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)(fs,{...e},`${e.title}-${t}`))}),l>0?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(D,{variant:`outline`,intent:`accent`,size:`sm`,label:Sd(l,`resources`,n.viewMoreLabel),onClick:n.onViewMoreClick})}):null]}):null,g?null:(0,u.jsx)(L,{spacing:`paddedSection`,children:(0,u.jsx)(d,{variant:`body`,children:r})})]})},wd=({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)(A,{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)(Ru,{...n,onSecondaryClick:t})})]})}),Td=e=>(e.options.find(t=>t.value===e.selectedValue)??e.options[0])?.label??``,Ed=({data:e,className:t=``,onProductChange:n,onSearchSubmit:r,onTabChange:i,onLocationSelect:a,onWebsiteClick:o,onDirectionsClick:s,onPhoneClick:c,onEmailClick:l})=>{let f=e.locations.length>0,p=e.results.selectedLocationId??e.map.selectedLocationId,m=Td(e.tabs);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)(ol,{...e.banner,onProductChange:t=>n?.(t,e),onSearchSubmit:t=>r?.(t,e)}),(0,u.jsx)(L,{spacing:`none`,className:`mb-8 pt-10`,innerClassName:`flex justify-center`,children:(0,u.jsx)(ll,{className:`w-full`,items:e.tabs.options.map(e=>({label:e.label,disabled:e.disabled})),value:m,onChange:t=>{let n=e.tabs.options.find(e=>e.label===t);n&&i?.({label:n.label,value:n.value},e)}})}),(0,u.jsx)(L,{spacing:`none`,className:`mb-8 pb-10 md:mb-10`,children:(0,u.jsx)(xu,{...e.map,locations:e.locations,selectedLocationId:e.map.selectedLocationId??p,onLocationSelect:t=>a?.(t,e)})}),f?(0,u.jsx)(iu,{...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)(L,{spacing:`paddedSection`,children:(0,u.jsxs)(`div`,{className:`text-center`,children:[e.emptyState?.heading?(0,u.jsx)(d,{as:`h2`,variant:`h2`,children:e.emptyState.heading}):null,e.emptyState?.body?(0,u.jsx)(d,{variant:`body`,children:e.emptyState.body}):null]})})]})},Dd=({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)(d,{as:`h1`,variant:`h1`,className:``,children:e}),(0,u.jsx)(d,{as:`p`,variant:`body`,className:`mt-4`,children:t}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(D,{type:`button`,variant:`solid`,intent:`accent`,label:n,onClick:r,className:`w-80`})})]})}),Od=({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)(d,{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)(d,{variant:`free`,className:`text-primary`,children:n.methodLabel}):null,n.estimatedDeliveryLabel?(0,u.jsx)(d,{variant:`free`,className:`mt-3 text-sm text-tertiary`,children:n.estimatedDeliveryLabel}):null]}),n.price?(0,u.jsx)(d,{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)(d,{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)(d,{variant:`free`,className:e.isEmphasized?`font-extrabold text-primary`:`text-primary`,children:e.label}),(0,u.jsx)(d,{variant:`free`,className:`${e.isEmphasized?`font-extrabold text-primary`:`text-primary`} ${e.valueClassName||``}`,children:e.value})]},`${e.label}-${t}`))})})]}):null]})})},kd=e=>(0,u.jsxs)(`div`,{className:`min-w-0 flex flex-col gap-1`,children:[(0,u.jsx)(d,{variant:`free`,className:`font-extrabold text-primary`,children:e.title}),e.name?(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:e.name}):null,e.addressLine1?(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:e.addressLine1}):null,e.addressLine2?(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:e.addressLine2}):null,e.addressLine3?(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:e.addressLine3}):null,e.country?(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:e.country}):null]}),Ad=({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)(d,{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)(d,{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)(d,{variant:`free`,className:`text-sm text-primary`,children:t.orderNumberLabel}):null,t.orderNumber?(0,u.jsx)(d,{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)(d,{variant:`free`,className:`text-sm text-primary`,children:t.orderDateLabel}):null,t.orderDate?(0,u.jsx)(d,{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)(d,{variant:`free`,className:`text-sm text-primary`,children:t.nameLabel}):null,t.name?(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:t.name}):null,t.email?(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:t.email}):null,t.phone?(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:t.phone}):null]})]}),kd({title:n.title||`Shipping Address`,...n}),kd({title:r.title||`Billing Address`,...r})]})]})}),jd=({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)(d,{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)(d,{variant:`free`,className:`font-extrabold text-primary`,children:i}),(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(d,{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)(d,{variant:`free`,className:`font-extrabold text-primary`,children:o})}),(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(d,{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)(is,{...e,isReadOnly:!0,showPricing:t})},`${e.decorNumber||e.title||`item`}-${n}`))})]})})},Md=({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)(Dd,{...e}),(0,u.jsxs)(`div`,{className:`px-12 pb-16`,children:[(0,u.jsx)(`div`,{className:`mt-10`,children:(0,u.jsx)(Ad,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(jd,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Od,{...r})})]})]})}),Nd=({title:e=`Ship To`,idPrefix:t=`shipping`,firstName:n=``,lastName:r=``,email:i=``,phoneNumber:a=``,companyName:o=``,userType:s=``,address:c=``,apartment:l=``,postalCode:f=``,city:p=``,country:m=`united-states`,countryLabel:h,stateProvince:g=``,addressRegionVariant:_=`default`,countryDisplayMode:v=`select`,countryOptions:y=[],stateProvinceOptions:b=[],userTypeOptions:x=[],userTypePlaceholder:S=`I am a*`,cityPlaceholder:C,postalCodePlaceholder:w,stateProvincePlaceholder:T,showCompanyName:E=!0,errors:D={},onFirstNameChange:O,onLastNameChange:k,onEmailChange:A,onPhoneNumberChange:j,onCompanyNameChange:M,onUserTypeChange:N,onAddressChange:P,onApartmentChange:ee,onPostalCodeChange:F,onCityChange:I,onCountryChange:te,onStateProvinceChange:L,onFirstNameBlur:R,onLastNameBlur:z,onEmailBlur:B,onPhoneNumberBlur:V,onCompanyNameBlur:H,onUserTypeBlur:U,onAddressBlur:W,onApartmentBlur:ne,onPostalCodeBlur:G,onCityBlur:K,onCountryBlur:q,onStateProvinceBlur:re})=>{let ie=_===`ca`||_===`mx`,ae=C??`City`,J=w??`Postal Code`,oe=T??(_===`ca`?`Province`:`State/Province`),se=h??y.find(e=>e.value===m)?.label??m,ce=(0,u.jsx)($,{id:`${t}-city`,name:`city`,placeholder:ae,value:p,hasError:!!D.city,errorMessage:D.city,onChange:I,onBlur:K}),le=(0,u.jsx)($,{id:`${t}-postal-code`,name:`postalCode`,placeholder:J,value:f,hasError:!!D.postalCode,errorMessage:D.postalCode,onChange:F,onBlur:G}),ue=(0,u.jsx)(xo,{id:`${t}-state-province`,name:`stateProvince`,options:b,value:g,placeholder:oe,hasError:!!D.stateProvince,variant:`field`,onChange:L,onBlur:re}),de=v===`readonly`?(0,u.jsx)($,{id:`${t}-country`,name:`country`,placeholder:`Country`,value:se,readOnly:!0,hasError:!!D.country,errorMessage:D.country}):(0,u.jsx)(xo,{id:`${t}-country`,name:`country`,options:y,value:m,placeholder:`Country`,hasError:!!D.country,variant:`field`,onChange:te,onBlur:q});return(0,u.jsxs)(`section`,{className:`flex flex-col gap-6`,children:[(0,u.jsx)(d,{as:`h2`,variant:`bold`,className:`text-primary`,children:e}),(0,u.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,u.jsx)($,{id:`${t}-first-name`,name:`firstName`,placeholder:`First Name`,value:n,hasError:!!D.firstName,errorMessage:D.firstName,onChange:O,onBlur:R}),(0,u.jsx)($,{id:`${t}-last-name`,name:`lastName`,placeholder:`Last Name`,value:r,hasError:!!D.lastName,errorMessage:D.lastName,onChange:k,onBlur:z}),(0,u.jsx)($,{id:`${t}-email`,name:`email`,type:`email`,placeholder:`Email`,value:i,hasError:!!D.email,errorMessage:D.email,onChange:A,onBlur:B}),(0,u.jsx)($,{id:`${t}-phone-number`,name:`phoneNumber`,type:`tel`,placeholder:`Phone Number`,value:a,hasError:!!D.phoneNumber,errorMessage:D.phoneNumber,onChange:j,onBlur:V}),x.length>0?(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)(xo,{id:`${t}-user-type`,name:`userType`,options:x,value:s,placeholder:S,hasError:!!D.userType,variant:`field`,onChange:e=>N?.(e.target.value),onBlur:U})}):null,E?(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-company-name`,name:`companyName`,placeholder:`Company Name (Optional)`,value:o,hasError:!!D.companyName,errorMessage:D.companyName,onChange:M,onBlur:H})}):null,(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-address`,name:`address`,placeholder:`Address`,value:c,hasError:!!D.address,errorMessage:D.address,onChange:P,onBlur:W})}),(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-apartment`,name:`apartment`,placeholder:`Apartment/Suite/Building (Optional)`,value:l,hasError:!!D.apartment,errorMessage:D.apartment,onChange:ee,onBlur:ne})}),ie?(0,u.jsxs)(u.Fragment,{children:[ce,ue,le,de]}):(0,u.jsxs)(u.Fragment,{children:[le,ce,de,ue]})]})]})},Pd=({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)(d,{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)($s,{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))})]}),Fd=({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),f=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<=f?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)(d,{as:`span`,className:`${r} whitespace-nowrap`,children:e})},`step-${e}-${t}`):(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(d,{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,f);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)(h,{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}`)})})},Id=({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)(Nd,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Pd,{...t})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Fd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(bl,{...r})}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(D,{label:i,intent:`accent`,fullWidth:!0,onClick:a})})]})]})})}),Ld=({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)(d,{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)(is,{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)(Fd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(bl,{...r})}),(0,u.jsxs)(`div`,{className:`mt-8 flex flex-col gap-3 bg-white`,children:[(0,u.jsx)(D,{label:i,intent:`accent`,fullWidth:!0,onClick:c}),(0,u.jsx)(D,{label:a,intent:`muted`,variant:`outline`,fullWidth:!0,onClick:l})]})]})]})})}),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)(Dd,{...e}),(0,u.jsxs)(`div`,{className:`px-12 pb-16`,children:[(0,u.jsx)(`div`,{className:`mt-10`,children:(0,u.jsx)(Ad,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(jd,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Od,{...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:f=``,tax:p=`Not calculated`,shipping:m=`Not calculated`,total:g=`$0.00`,continueLabel:_=`Continue`,showDiscountCode:v=!0,onDiscountCodeChange:y,onApplyDiscount:b,onContinue:x,className:S=``})=>{let C=!!(e.trim()&&f),w=!!(p.trim()&&p!==`Not calculated`),T=w?p:`Not calculated`,E=!!(m.trim()&&m!==`Not calculated`),O=E?m:`Not calculated`,[k,A]=c.default.useState(!0),j=t!==`idle`&&!!n&&(t!==`success`||k),M=t===`success`;return c.default.useEffect(()=>{if(A(!0),t!==`success`)return;let e=window.setTimeout(()=>{A(!1)},2200);return()=>{window.clearTimeout(e)}},[t,n]),(0,u.jsxs)(`section`,{className:`flex w-full flex-col gap-8 ${S}`,children:[v?(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)(Co,{id:`cart-totals-discount-code`,name:`discountCode`,value:e,placeholder:`Enter discount code`,hasError:t===`error`,onChange:y}),j?M?(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)(h,{iconType:`fa-regular`,iconName:`face-grin-beam`,size:`xl`,className:`text-saleGreen`}),(0,u.jsx)(d,{variant:`body`,className:`font-bold text-shadow-saleGreen`,children:n})]}):(0,u.jsx)(d,{variant:`caption`,className:`text-accent`,"aria-live":`polite`,children:n}):null]}),(0,u.jsx)(D,{type:`button`,variant:`solid`,intent:`accent`,label:`Apply`,onClick:b,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)(d,{variant:`body`,children:r}),(0,u.jsx)(d,{variant:`body`,children:l})]}),C?(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(d,{variant:`body`,children:i}),(0,u.jsx)(d,{variant:`body`,className:`text-accent`,children:f})]}):null,(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(d,{variant:`body`,children:a}),(0,u.jsx)(d,{variant:`body`,className:w?``:`text-secondaryActive`,children:T})]}),(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(d,{variant:`body`,children:o}),(0,u.jsx)(d,{variant:`body`,className:E?``:`text-secondaryActive`,children:O})]}),(0,u.jsxs)(`div`,{className:`flex items-center justify-between pt-2`,children:[(0,u.jsx)(d,{variant:`bold`,children:s}),(0,u.jsx)(d,{variant:`bold`,children:g})]})]}),(0,u.jsx)(D,{type:`button`,variant:`solid`,intent:`accent`,className:`w-full`,onClick:x,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:f,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)(d,{as:`h2`,variant:`bold`,className:`text-primary`,children:e}),(0,u.jsx)(Pd,{...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:f}),(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)(Pd,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Bd,{...t})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Fd,{...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,f]=c.default.useState(a);c.default.useEffect(()=>{f(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)(Nd,{...e}),(0,u.jsxs)(`div`,{className:`mt-8 flex flex-col gap-4`,children:[(0,u.jsx)(d,{as:`h2`,variant:`bold`,className:`text-primary`,children:i}),(0,u.jsx)(ju,{id:`same-as-shipping`,name:`sameAsShipping`,label:o,checked:l,onChange:e=>{f(e.checked),s?.(e)}})]}),l?null:(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(Nd,{...t,idPrefix:t.idPrefix??`billing`,title:t.title??``,countryOptions:p,stateProvinceOptions:m})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Fd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(zd,{...r})})]})]})})},Ud=e=>new Intl.NumberFormat(`en-US`,{style:`currency`,currency:`USD`}).format(e),Wd=({subtotal:e,shippingCost:t,items:n=[],onQuantityChange:r,onRemoveItem:i})=>{if(n.length===0)return null;let a=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)(d,{as:`h2`,id:`cart-summary-heading`,variant:`free`,className:`p-6 text-xl font-extrabold text-primary`,children:`Order Summary`}),(0,u.jsx)(`ol`,{className:`flex flex-col min-h-[24rem]`,children:n.map((e,t)=>{let a=t===n.length-1;return(0,u.jsxs)(`li`,{children:[(0,u.jsx)(is,{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,onQuantityChange:t=>r?.(e.id,t),onRemoveItem:()=>i?.(e.id)}),a?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)(d,{variant:`free`,className:`text-left font-bold`,children:`Total`}),(0,u.jsx)(d,{variant:`free`,className:`text-right font-bold pr-7`,children:Ud(a)})]})})]})})},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,onModeChange:O,onEmailChange:k,onPasswordChange:A,onFirstNameChange:j,onLastNameChange:M,onPhoneNumberChange:N,onUserTypeChange:P,onConfirmPasswordChange:ee,onMarketingOptInChange:F,onTermsAcceptedChange:I,onEmailBlur:te,onPasswordBlur:L,onForgotPasswordClick:R,onTermsClick:z,onPrivacyClick:B,onContinue:V,onContinueAsGuest:H})=>(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-8`,children:[(0,u.jsx)(Fd,{steps:t,currentStep:e}),(0,u.jsx)(Ru,{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:{signInPrimary:`Continue`,createAccountPrimary:`Continue`,secondary:`Continue as guest`},onModeChange:O,onEmailChange:k,onPasswordChange:A,onFirstNameChange:j,onLastNameChange:M,onPhoneNumberChange:N,onUserTypeChange:P,onConfirmPasswordChange:ee,onMarketingOptInChange:F,onTermsAcceptedChange:I,onEmailBlur:te,onPasswordBlur:L,onForgotPasswordClick:R,onTermsClick:z,onPrivacyClick:B,onSignInClick:V,onCreateAccountClick:V,onSecondaryClick:H})]}),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)(Fd,{...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)(D,{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,children:a})=>{let o=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)(Qs,{...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)(d,{as:`h1`,variant:`free`,className:`text-2xl font-bold text-primary`,children:e}),o?(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-primary`,children:o}):null]}),i?(0,u.jsx)(`div`,{className:`shrink-0`,children:i}):null]}),a]})]})})},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,onRetryClick:t})=>{if(e.state===`ready`)return null;let n=Jd[e.state],r=e.title?.trim()||n.defaultTitle,i=e.message?.trim()??``,a=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)(_,{label:``,size:`2xl`}):(0,u.jsx)(h,{iconType:`fa-solid`,iconName:n.iconName,alt:``,size:`2xl`,className:n.iconClassName}),(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`mt-4 text-lg font-bold text-primary`,children:r}),i?(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-primary`,children:i}):null,a?(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-xs text-tertiary`,children:a}):null,e.state===`error`&&e.retryLabel?(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(D,{label:e.retryLabel,iconType:`fa-solid`,iconName:`rotate`,iconAlt:``,variant:`solid`,intent:`primary`,onClick:t})}):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,t,n)=>t&&n?`border-accent bg-accent/10`:e?`border-primary bg-tertiaryActive`:`border-borderTertiary bg-secondary hover:border-primary`,$d=e=>e===`saved`?`text-saleGreen`:e===`error`?`text-accent`:`text-yellow-700`,ef=({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)(_,{label:``,size:`xs`}):(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`circle-exclamation`,alt:``,size:`xs`,className:$d(e)}),t]}),r?(0,u.jsxs)(`span`,{className:`ml-4`,children:[`Saved `,r]}):null,n?(0,u.jsx)(d,{role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:n}):null]}),tf=({title:e,dimension:t,options:n,selectedValue:r,readOnly:i,onSelect:a})=>(0,u.jsxs)(`fieldset`,{children:[(0,u.jsx)(`legend`,{className:`text-sm font-bold text-primary`,children:e}),(0,u.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:n.map(e=>{let n=e.value===r;return(0,u.jsx)(`button`,{type:`button`,"aria-pressed":n,disabled:i||e.disabled,className:`rounded-md border px-4 py-2 text-sm font-semibold transition ${n?`border-primary bg-primary text-secondary`:`border-borderTertiary bg-secondary text-primary hover:border-primary`} disabled:cursor-default disabled:opacity-70`,onClick:()=>a?.(t,e.value),children:e.label},e.value)})})]}),nf=({itemLabel:e,selectedCount:t,failedCount:n,onSelectAll:r,onSelectFailed:i,onClear:a,onCancel:o})=>(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)(d,{variant:`free`,className:`text-xs font-bold text-primary`,children:[t,` selected`]}),(0,u.jsxs)(`div`,{className:`mt-2 flex gap-2`,children:[(0,u.jsx)(D,{label:`Select all`,variant:`outline`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,onClick:r}),(0,u.jsx)(D,{label:`Select failed checks (${n})`,variant:`outline`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,disabled:n===0,onClick:i})]}),(0,u.jsxs)(`div`,{className:`mt-2 flex items-center gap-1`,children:[(0,u.jsx)(D,{label:`Clear`,variant:`ghost`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,disabled:t===0,onClick:a}),(0,u.jsx)(D,{label:`Cancel`,variant:`ghost`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,onClick:o})]})]}),rf=({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)(D,{label:`Delete ${t} selected`,variant:`solid`,intent:`accent`,size:`sm`,fullWidth:!0,disabled:n,onClick:r})}),af=({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)(d,{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)(d,{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`})]})}),(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})]},e.pattern))})]})}),e.coreNote?(0,u.jsx)(d,{variant:`free`,className:`text-xs text-tertiary`,children:e.coreNote}):null,e.sampleNote?(0,u.jsx)(d,{variant:`free`,className:`rounded-md border border-borderTertiary bg-secondary p-3 text-xs text-primary`,children:e.sampleNote}):null]})]}),of=({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)(d,{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)(d,{variant:`free`,className:`text-xs text-primary`,children:e.canonicalSkuNote}),(0,u.jsx)(d,{variant:`free`,className:`text-xs text-primary`,children:e.parsingNote}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{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)(d,{variant:`free`,className:`rounded-md border border-yellow-500 bg-yellow-50 p-3 text-xs text-yellow-700`,children:e.caution})]})]}),sf=e=>{if(!(`data`in e)){let t=e.state===`notFound`||e.state===`empty`?`empty`:e.state;return(0,u.jsx)(qd,{pageTitle:e.pageTitle,sideNavProps:e.sideNavProps,children:(0,u.jsx)(Xd,{status:{state:t,message:e.message,retryLabel:e.state===`error`?e.actionLabel:void 0},onRetryClick:`onActionClick`in e?e.onActionClick:void 0})})}let{data:t,sideNavProps:n={items:[]},onTabSelect:r,onLocalizationSelect:i,onDecorFieldChange:a,onDecorSave:o,onDecorCancel:s,onDeleteDecorClick:c,onSkuSearchChange:l,onSkuSelect:f,onAddSkuClick:p,onSkuVariantSelect:m,onNewSkuChange:g,onSkuFieldChange:_,onSkuSave:v,onSkuCancel:y,onSkuCreate:b,onSkuDelete:x,onSkuBulkSelectionChange:S,onSkuBulkDelete:C,onIntegrationRefresh:w,onSampleSearchChange:T,onSampleSelect:E,onAddSampleClick:O,onSampleVariantSelect:k,onNewSampleSkuChange:j,onSampleFieldChange:M,onSampleSave:N,onSampleCancel:P,onSampleCreate:ee,onSampleDelete:F,onSampleBulkSelectionChange:I,onSampleBulkDelete:te,onNoticeActionClick:L}=e,{decor:R,decorEditor:z,skuEditor:B,sampleEditor:V}=t,H=t.skus.find(e=>e.id===B.selectedSkuId),U=t.skus.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.grade} · ${e.size}`})),W=t.samples.find(e=>e.id===V.selectedSampleId),ne=t.samples.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.size}`})),G=B.bulkSelection,K=V.bulkSelection,q=G?.selectedIds??[],re=K?.selectedIds??[],ie=t.skus.filter(e=>!e.isForSale).map(e=>e.id),ae=t.samples.filter(e=>!e.isSampleable).map(e=>e.id),J=z.activeLocalization.saveStatus===`saving`,oe=z.searchColorFieldId?[...z.sharedFields,...z.localizedFields].filter(e=>e.id===z.searchColorFieldId):[],se=z.decorFlagFieldId?z.sharedFields.filter(e=>e.id===z.decorFlagFieldId):[],ce=z.sharedFields.filter(e=>e.id!==z.searchColorFieldId&&e.id!==z.decorFlagFieldId),le=z.localizedFields.filter(e=>e.id!==z.searchColorFieldId),ue=B.saveStatus===`saving`,de=V.saveStatus===`saving`,fe=V.mode===`edit`,pe=null;B.mode===`create`?pe=(0,u.jsx)(D,{label:B.createLabel??`Create SKU`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:B.createDisabled,onClick:()=>b?.({sku:B.newSkuValue,grade:B.selectedGrade??``,finish:B.selectedFinish??``,size:B.selectedSize??``})}):H&&(pe=(0,u.jsx)(D,{label:B.controls.saveLabel,iconType:`fa-solid`,iconName:ue?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:B.controls.saveDisabled||ue,"aria-busy":ue||void 0,onClick:()=>v?.({skuId:H.id})}));let me=null;V.mode===`create`?me=(0,u.jsx)(D,{label:V.createLabel??`Create Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:V.createDisabled,onClick:()=>ee?.({sku:V.newSkuValue,finish:V.selectedFinish??``,size:V.selectedSize??``})}):W&&(me=(0,u.jsx)(D,{label:V.controls.saveLabel,iconType:`fa-solid`,iconName:de?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:V.controls.saveDisabled||de,"aria-busy":de||void 0,onClick:()=>N?.({sampleId:W.id})}));let Y=null;return V.mode===`create`?Y=(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)(Co,{id:`market-readiness-new-sample-sku`,name:`newSampleSku`,value:V.newSkuValue,placeholder:`Generated sample SKU`,leadingIcon:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>j?.({value:e.target.value})})]}):W?.sourceIdentifier&&(Y=(0,u.jsxs)(`div`,{className:`mt-5 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(d,{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:W.sourceIdentifier})]})),(0,u.jsxs)(qd,{pageTitle:t.pageTitle,pageDescription:t.pageDescription,sideNavProps:n,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:[R.imageUrl?(0,u.jsx)(A,{src:R.imageUrl,alt:R.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)(h,{iconType:`fa-solid`,iconName:`swatchbook`,alt:``,size:`xl`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:R.name}),(0,u.jsxs)(d,{variant:`free`,className:`mt-1 text-sm text-primary`,children:[`Decor `,R.decorCode,` · Range `,R.rangeCode]})]})]}),t.notice?(0,u.jsxs)(`section`,{role:t.notice.tone===`error`?`alert`:`status`,className:`mt-4 rounded-lg border p-4 ${Zd(t.notice.tone)}`,children:[t.notice.title?(0,u.jsx)(d,{variant:`free`,className:`text-sm font-bold text-primary`,children:t.notice.title}):null,(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm text-primary`,children:t.notice.message}),t.notice.actionLabel?(0,u.jsx)(`div`,{className:`mt-3`,children:(0,u.jsx)(D,{label:t.notice.actionLabel,variant:`outline`,intent:`primary`,size:`sm`,onClick:L})}):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:`Sheets (${t.skus.length})`},{id:`samples`,label:`Samples (${t.samples.length})`}].map(e=>{let n=t.activeTabId===e.id;return(0,u.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":n,className:`border-b-4 px-5 py-3 text-sm font-bold ${n?`border-primary text-primary`:`border-transparent text-tertiary hover:text-primary`}`,onClick:()=>r?.({tabId:e.id}),children:e.label},e.id)})}),t.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)(fc,{title:`Decor details`,description:z.sharedDescription,fields:[...le,...ce,...se,...oe],fieldGroups:[{id:`localized-decor-fields`,title:`${z.activeLocalization.heading} content`,description:z.localizationDescription??`These fields change with the selected locale.`,fieldIds:le.map(e=>e.id)},{id:`shared-decor-fields`,title:z.sharedTitle??`Shared decor details`,fieldIds:ce.map(e=>e.id)}],density:`compact`,severityDisplay:`icon`,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:z.deleteLabel?(0,u.jsx)(D,{label:z.deleteLabel,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,variant:`outline`,intent:`danger`,disabled:z.deleteDisabled||J,onClick:()=>c?.({decorId:R.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(ef,{status:z.activeLocalization.saveStatus,label:z.activeLocalization.saveStatusLabel,errorMessage:z.activeLocalization.saveErrorMessage,lastSavedLabel:z.activeLocalization.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(D,{label:z.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:z.controls.cancelDisabled||J,onClick:()=>s?.({decorId:R.id,localizationId:z.activeLocalization.id})}),(0,u.jsx)(D,{label:z.controls.saveLabel,iconType:`fa-solid`,iconName:J?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:z.controls.saveDisabled||J,"aria-busy":J||void 0,onClick:()=>o?.({decorId:R.id,localizationId:z.activeLocalization.id})})]})]})]}),onDynamicFormFieldChange:({fieldId:e,value:t})=>{let n=z.sharedFields.some(t=>t.id===e);a?.({decorId:R.id,localizationId:n?void 0:z.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)(au,{title:`Decor localizations`,markets:z.markets,selectedLocalizationId:z.activeLocalization.id,localizationSelectionDisabled:J,onLocalizationSelect:i})})]}):null,t.activeTabId===`sheets`?(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)(Do,{id:`market-readiness-sku-search`,name:`skuSearch`,ariaLabel:`Sheet SKU`,value:B.searchValue,options:U,valueStatus:H?.isForSale===!1&&B.searchValue===H.sku?`inactive`:`default`,placeholder:`Search sheet SKUs`,controlSize:`default`,onQueryChange:l,onClear:()=>l?.({value:``}),onOptionSelect:({option:e})=>{let n=t.skus.find(t=>t.id===e.value);n&&f?.({skuId:n.id,sku:n.sku})}})]}),(0,u.jsx)(D,{label:B.addSkuLabel??`Add Sheet`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:p})]})}),B.mode===`edit`&&!H?(0,u.jsxs)(`section`,{className:`rounded-lg border border-dashed border-borderTertiary bg-secondary p-8 text-center`,children:[(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`Select a sheet to edit`}),(0,u.jsx)(d,{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`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:B.mode===`create`?`Create a new sheet SKU`:H?.sku}),(0,u.jsx)(d,{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.`})]}),H?.statusLabel?(0,u.jsx)(`span`,{className:`rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-primary`,children:H.statusLabel}):null]}),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)(Co,{id:`market-readiness-new-sku`,name:`newSku`,value:B.newSkuValue,placeholder:`Generated sheet SKU`,leadingIcon:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>g?.({value:e.target.value})})]}):null,(0,u.jsxs)(`div`,{className:`mt-5 grid gap-5`,children:[(0,u.jsx)(tf,{title:`Grade`,dimension:`grade`,options:B.gradeOptions,selectedValue:B.selectedGrade,readOnly:!1,onSelect:(e,t)=>m?.({dimension:e,value:t})}),(0,u.jsx)(tf,{title:`Finish`,dimension:`finish`,options:B.finishOptions,selectedValue:B.selectedFinish,readOnly:!1,onSelect:(e,t)=>m?.({dimension:e,value:t})}),(0,u.jsx)(tf,{title:`Size`,dimension:`size`,options:B.sizeOptions,selectedValue:B.selectedSize,readOnly:!1,onSelect:(e,t)=>m?.({dimension:e,value:t})})]}),B.duplicateMessage?(0,u.jsx)(d,{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)(d,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:`Lifecycle and selling options`}),(0,u.jsx)(d,{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)(fc,{fields:B.fields,density:`compact`,severityDisplay:`icon`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>_?.({skuId:H?.id,fieldId:e,value:t})})})]}),B.mode===`edit`?(0,u.jsxs)(`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.jsx)(d,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:`Integration status`}),H?(0,u.jsx)(D,{label:`Refresh`,iconType:`fa-solid`,iconName:`rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,onClick:()=>w?.({skuId:H.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:`BigCommerce ID`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:B.integration?.bigCommerceId??`Not assigned`})]}),(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`&&H&&B.deleteLabel&&x?(0,u.jsx)(D,{label:B.deleteLabel,variant:`outline`,intent:`danger`,disabled:B.deleteDisabled||ue,onClick:()=>x?.({skuId:H.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(ef,{status:B.saveStatus,label:B.saveStatusLabel,errorMessage:B.saveErrorMessage,lastSavedLabel:B.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(D,{label:B.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:B.controls.cancelDisabled||ue,onClick:y}),pe]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[t.skuGuide?(0,u.jsx)(af,{guide:t.skuGuide}):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)(d,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`Sheets`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[G?(0,u.jsx)(D,{iconType:G.active?`fa-solid`:`fa-regular`,iconName:G.active?`square-check`:`square`,iconAlt:G.active?`Close sheet selection`:`Select sheets`,variant:`ghost`,intent:G.active?`accent`:`primary`,size:`xs`,onClick:()=>S?.({active:!G.active,skuIds:[]})}):null,(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:t.skus.length})]})]}),G?.active?(0,u.jsx)(nf,{itemLabel:`sheet`,selectedCount:q.length,failedCount:ie.length,onSelectAll:()=>S?.({active:!0,skuIds:t.skus.map(e=>e.id)}),onSelectFailed:()=>S?.({active:!0,skuIds:ie}),onClear:()=>S?.({active:!0,skuIds:[]}),onCancel:()=>S?.({active:!1,skuIds:[]})}):null]}),(0,u.jsx)(`div`,{className:`mt-4 space-y-2`,children:t.skus.map(e=>{let t=q.includes(e.id),n=G?.active?t:e.id===B.selectedSkuId;return(0,u.jsx)(`button`,{type:`button`,"aria-pressed":n,"aria-label":G?.active?`${t?`Deselect`:`Select`} sheet ${e.sku}`:void 0,className:`w-full rounded-md border p-3 text-left transition ${Qd(n,G?.active??!1,t)}`,onClick:()=>{if(G?.active){S?.({active:!0,skuIds:t?q.filter(t=>t!==e.id):[...q,e.id]});return}f?.({skuId:e.id,sku:e.sku})},children:(0,u.jsxs)(`span`,{className:`flex items-start gap-2`,children:[G?.active?(0,u.jsx)(h,{iconType:t?`fa-solid`:`fa-regular`,iconName:t?`square-check`:`square`,alt:``,size:`sm`,color:t?`accent`:`inherit`,className:`mt-0.5 w-5 shrink-0`}):null,(0,u.jsx)(h,{iconType:`fa-solid`,iconName:e.isForSale?`shop`:`shop-slash`,alt:e.isForSale?`For sale`:`Not for sale`,title:e.isForSale?`For sale`:`Not for sale`,size:`sm`,className:`mt-0.5 w-5 shrink-0 ${e.isForSale?``:`text-secondaryHover`}`}),(0,u.jsxs)(`span`,{className:`min-w-0`,children:[(0,u.jsx)(`span`,{className:`block text-sm font-bold text-primary`,children:e.sku}),(0,u.jsxs)(`span`,{className:`mt-1 block text-xs text-tertiary`,children:[e.finish,` · `,e.grade,` · `,e.size]})]})]})},e.id)})}),G?.active&&q.length>0?(0,u.jsx)(rf,{itemLabel:`sheet`,selectedCount:q.length,deleteDisabled:G.deleteDisabled||!C,onDelete:()=>C?.({skuIds:q})}):null]})]})]}):null,t.activeTabId===`samples`?(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)(Do,{id:`market-readiness-sample-search`,name:`sampleSearch`,ariaLabel:`Sample SKU`,value:V.searchValue,options:ne,valueStatus:W?.isSampleable===!1&&V.searchValue===W.sku?`inactive`:`default`,placeholder:`Search sample SKUs`,controlSize:`default`,onQueryChange:T,onClear:()=>T?.({value:``}),onOptionSelect:({option:e})=>{let n=t.samples.find(t=>t.id===e.value);n&&E?.({sampleId:n.id,sku:n.sku})}})]}),(0,u.jsx)(D,{label:V.addLabel??`Add Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:O})]})}),V.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)(d,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:V.emptyTitle}),(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-primary`,children:V.emptyMessage})]}):(0,u.jsxs)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:V.mode===`create`?`Create a new sample`:W?.sku}),(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-tertiary`,children:V.identifierHelpText}),Y,(0,u.jsxs)(`div`,{className:`mt-5 space-y-5`,children:[(0,u.jsx)(tf,{title:`Finish`,dimension:`finish`,options:V.finishOptions,selectedValue:V.selectedFinish,readOnly:fe,onSelect:(e,t)=>{e!==`grade`&&k?.({dimension:e,value:t})}}),(0,u.jsx)(tf,{title:`Size`,dimension:`size`,options:V.sizeOptions,selectedValue:V.selectedSize,readOnly:fe,onSelect:(e,t)=>{e!==`grade`&&k?.({dimension:e,value:t})}})]}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(fc,{fields:V.fields,density:`compact`,severityDisplay:`icon`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>M?.({sampleId:W?.id,fieldId:e,value:t})})}),(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:V.mode===`edit`&&W&&V.deleteLabel&&F?(0,u.jsx)(D,{label:V.deleteLabel,variant:`outline`,intent:`danger`,disabled:V.deleteDisabled||de,onClick:()=>F?.({sampleId:W.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(ef,{status:V.saveStatus,label:V.saveStatusLabel,errorMessage:V.saveErrorMessage,lastSavedLabel:V.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(D,{label:V.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:V.controls.cancelDisabled||de,onClick:P}),me]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[t.sampleGuide?(0,u.jsx)(of,{guide:t.sampleGuide}):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":`Samples list header`,className:`flex items-center justify-between gap-3`,children:[(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`Samples`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[K?(0,u.jsx)(D,{iconType:K.active?`fa-solid`:`fa-regular`,iconName:K.active?`square-check`:`square`,iconAlt:K.active?`Close sample selection`:`Select samples`,variant:`ghost`,intent:K.active?`accent`:`primary`,size:`xs`,onClick:()=>I?.({active:!K.active,sampleIds:[]})}):null,(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:t.samples.length})]})]}),K?.active?(0,u.jsx)(nf,{itemLabel:`sample`,selectedCount:re.length,failedCount:ae.length,onSelectAll:()=>I?.({active:!0,sampleIds:t.samples.map(e=>e.id)}),onSelectFailed:()=>I?.({active:!0,sampleIds:ae}),onClear:()=>I?.({active:!0,sampleIds:[]}),onCancel:()=>I?.({active:!1,sampleIds:[]})}):null]}),t.samples.length?(0,u.jsx)(`div`,{className:`mt-4 space-y-2`,children:t.samples.map(e=>{let t=re.includes(e.id),n=K?.active?t:e.id===V.selectedSampleId;return(0,u.jsx)(`button`,{type:`button`,"aria-pressed":n,"aria-label":K?.active?`${t?`Deselect`:`Select`} sample ${e.sku}`:void 0,className:`w-full rounded-md border p-3 text-left transition ${Qd(n,K?.active??!1,t)}`,onClick:()=>{if(K?.active){I?.({active:!0,sampleIds:t?re.filter(t=>t!==e.id):[...re,e.id]});return}E?.({sampleId:e.id,sku:e.sku})},children:(0,u.jsxs)(`span`,{className:`flex items-start gap-2`,children:[K?.active?(0,u.jsx)(h,{iconType:t?`fa-solid`:`fa-regular`,iconName:t?`square-check`:`square`,alt:``,size:`sm`,color:t?`accent`:`inherit`,className:`mt-0.5 w-5 shrink-0`}):null,(0,u.jsx)(h,{iconType:`fa-solid`,iconName:e.isSampleable?`shop`:`shop-slash`,alt:e.isSampleable?`Can be sampled`:`Cannot be sampled`,title:e.isSampleable?`Can be sampled`:`Cannot be sampled`,size:`sm`,className:`mt-0.5 w-5 shrink-0 ${e.isSampleable?``:`text-secondaryHover`}`}),(0,u.jsx)(`span`,{className:`min-w-0`,children:(0,u.jsx)(`span`,{className:`block break-all text-sm font-bold text-primary`,children:e.sku})})]})},e.id)})}):(0,u.jsx)(d,{variant:`free`,className:`mt-4 text-sm text-tertiary`,children:`No samples have been added to this decor.`}),K?.active&&re.length>0?(0,u.jsx)(rf,{itemLabel:`sample`,selectedCount:re.length,deleteDisabled:K.deleteDisabled||!te,onDelete:()=>te?.({sampleIds:re})}):null]})]})]}):null]})},cf=e=>(0,u.jsx)(`div`,{className:`w-36`,children:e}),lf=e=>(0,u.jsx)(`div`,{className:`w-28`,children:e}),uf=(e,t)=>{if(t)for(let n of e){if(n.type===`checkpoint`&&n.id===t)return n;if(n.type===`group`){let e=uf(n.items,t);if(e)return e}}},df=({pageTitle:e,searchPlaceholder:t,searchValue:n,searchOptions:r=[],checkButtonLabel:i=`Check`,sideNavProps:a,state:o,statusFlowPanelProps:s,flowItems:l,messageListCardProps:f,selectedCheckpointId:p,checkpointModalOpen:m,checkpointFormPropsById:h,productDataModalTitle:g=`Product Data`,productDataModalDescription:_,onSearchChange:v,onSearchClear:y,onSearchOptionSelect:b,onCheckClick:x,onCheckpointSelect:S,onCheckpointModalChange:C,onCheckpointFieldChange:w})=>{let T=o===`loading`,{actionCardProps:E,...O}=s,k=uf(l,p),A=p?h[p]:void 0,j=e=>{S?.(e),C?.({open:!0,checkpointId:e.checkpointId})},M=e=>{v?.({value:e.option.value}),b?.(e)},N=()=>{x?.({value:n})},P=e=>{if(e.type===`connector`)return(0,u.jsx)(zs,{...e.connectorProps,variant:T?`skeleton`:`default`},e.id);if(e.type===`group`)return(0,u.jsx)(`div`,{className:`w-full max-w-sm md:w-80`,children:(0,u.jsx)(Cu,{...e.groupProps,variant:T?`skeleton`:`default`,children:e.items.map(P)})},e.id);let t=(0,u.jsx)(Ws,{...e.cardProps,id:e.id,variant:T?`skeleton`:`default`,onCardClick:T?void 0:t=>j({checkpointId:e.id,title:t.title,description:t.description,status:t.status,statusLabel:t.statusLabel})});return(0,u.jsx)(c.default.Fragment,{children:e.cardProps.layoutVariant===`compact`?lf(t):cf(t)},e.id)};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)(Qs,{...a})}),(0,u.jsxs)(`main`,{className:`min-w-0 flex-1 p-4 md:p-6 bg-adminSideNavBackground`,children:[(0,u.jsx)(`div`,{children:(0,u.jsx)(d,{as:`h1`,variant:`free`,className:`text-xl font-bold text-primary`,children:e})}),(0,u.jsxs)(`div`,{className:`mt-6 flex max-w-xl flex-col gap-3 md:flex-row md:items-center`,children:[(0,u.jsx)(Do,{id:`product-journey-search`,ariaLabel:`SKU search`,placeholder:t,value:n,options:r,emptyMessage:`No matching SKUs found.`,onQueryChange:v,onClear:()=>y?.({value:n}),onOptionSelect:M,onSearchSubmit:N}),(0,u.jsx)(D,{label:i,iconAlt:``,iconName:`chevron-right`,iconPosition:`right`,iconType:`fa-solid`,variant:`outline`,intent:`primary`,size:`sm`,className:`shrink-0 px-2 h-8 hover:border-accent hover:text-accent`,onClick:N})]}),(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(Tu,{...O,state:o,diagram:(0,u.jsx)(Su,{ariaLabel:`Data path status flow`,surfaceVariant:`plain`,children:l.map(P)}),legend:(0,u.jsx)(Hs,{}),actions:E?(0,u.jsx)(Ps,{...E}):void 0})}),(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(Ms,{...f})})]})]}),(0,u.jsx)(mc,{open:m,title:k?`${k.cardProps.title} ${g}`:g,description:_,size:`lg`,onClose:()=>C?.({open:!1,checkpointId:p}),children:A&&p?(0,u.jsx)(fc,{...A,onDynamicFormFieldChange:e=>{w?.({checkpointId:p,fieldId:e.fieldId,value:e.value}),A.onDynamicFormFieldChange?.(e)},onDynamicFormCancel:()=>{C?.({open:!1,checkpointId:p}),A.onDynamicFormCancel?.()}}):null})]})},ff=({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)(Qs,{...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)(d,{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)(h,{iconType:`fa-solid`,iconName:`database`,alt:``,size:`xl`,className:`text-primary`})}),(0,u.jsx)(d,{as:`h2`,id:`admin-dashboard-welcome-heading`,variant:`free`,className:`mt-5 text-xl font-bold text-primary`,children:t}),(0,u.jsx)(d,{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)(d,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:r}),(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-primary`,children:i})]})]})]})]})}),pf=e=>e===`admin`?`Admin`:`User`,mf=({message:e,tone:t=`default`})=>(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5`,children:(0,u.jsx)(d,{variant:`free`,className:`text-sm ${t===`error`?`text-accent`:`text-primary`}`,children:e})}),hf=({message:e})=>{let t=e?.trim()??``;return t?(0,u.jsx)(d,{variant:`free`,className:`text-sm text-accent`,children:t}):null},gf=({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:f,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:O=`Updating...`,activateLabel:k=`Activate`,suspendLabel:A=`Suspend`,removeLabel:j=`Remove`,removingLabel:M=`Removing...`,cancelLabel:N=`Cancel`,onNewUserEmailChange:P,onNewUserRoleChange:ee,onNewUserActiveChange:F,onNewUserDefaultRegionChange:I,onCreateUser:te,onRowUpdate:L,onUserActiveToggle:R,onDeleteUserRequest:z,onDeleteModalClose:B,onDeleteUserConfirm:V})=>{let H=t?.trim()??``,U=l.active&&!l.defaultRegion.trim(),W=m.map(e=>({id:e.email,values:{active:e.active?`active`:`inactive`,email:e.email,role:e.role,defaultRegion:e.defaultRegion}})),ne=`${m.length.toLocaleString()} ${m.length===1?`user`:`users`}`,G=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)(d,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:e.email}),(0,u.jsxs)(d,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:[pf(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)(D,{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:()=>R?.({user:e})}),(0,u.jsx)(D,{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)(Qs,{...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)(d,{as:`h1`,variant:`free`,className:`text-2xl font-bold text-primary`,children:e}),H?(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-primary`,children:H}):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(),te?.({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)(Co,{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)(xo,{id:`authorization-user-role`,name:`role`,value:l.role,disabled:b,options:f,onChange:e=>ee?.({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)(xo,{id:`authorization-user-default-region`,name:`defaultRegion`,value:l.defaultRegion,placeholder:g,disabled:b,required:l.active,hasError:U,options:p,onChange:e=>I?.({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)(xo,{id:`authorization-user-active`,name:`active`,value:l.active?`active`:`inactive`,disabled:b,options:[{label:`Active`,value:`active`},{label:`Inactive`,value:`inactive`}],onChange:e=>F?.({active:e.target.value===`active`})})]}),(0,u.jsx)(D,{disabled:b||U,iconAlt:``,iconName:`user-plus`,iconType:`fa-solid`,intent:`primary`,label:b?T:w,type:`submit`,variant:`solid`})]}),(0,u.jsx)(hf,{message:_}),o===`loading`?(0,u.jsx)(mf,{message:s}):null,o===`error`?(0,u.jsx)(mf,{message:c,tone:`error`}):null,(0,u.jsx)(mu,{ariaLabel:`Authorization users`,columns:[{editable:!1,id:`email`,label:`Email`,width:`xl`},{id:`role`,label:`Role`,maxLength:5,width:`sm`,editor:`select`,options:f},{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:ne,rows:W,title:`Allow List`,updateLabel:x?O:E,updateDisabled:x,onRowUpdate:L}),(0,u.jsx)(hf,{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)(d,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`User Actions`}),(0,u.jsx)(d,{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(G)}),(0,u.jsx)(hf,{message:y})]})]}):(0,u.jsxs)(`section`,{className:`mt-5 rounded-lg border border-borderTertiary bg-secondary p-5`,children:[(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:i}),(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-primary`,children:a})]})]})]}),(0,u.jsx)(mc,{closeLabel:N,open:!!C,size:`md`,title:`Remove User?`,onClose:()=>B?.(),children:(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(d,{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)(D,{disabled:S,intent:`primary`,label:N,size:`sm`,type:`button`,variant:`outline`,onClick:()=>B?.()}),(0,u.jsx)(D,{disabled:S,iconAlt:``,iconName:`trash`,iconType:`fa-solid`,intent:`danger`,label:S?M:j,size:`sm`,type:`button`,variant:`solid`,onClick:()=>{C&&V?.({email:C})}})]})]})})]})},_f={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`}},vf=e=>{if(e===`loading`)return`status`;if(e===`error`)return`alert`},yf=({eyebrow:e,title:t,description:n,detail:r,tone:i,primaryAction:a,secondaryAction:o,informationGroups:s=[],onActionClick:c})=>{let l=e?.trim()??``,f=r?.trim()??``,p=_f[i],m=(e,t)=>(0,u.jsx)(D,{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:vf(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)(_,{label:``,size:`2xl`}):(0,u.jsx)(h,{iconType:`fa-solid`,iconName:p.iconName,alt:``,size:`2xl`,className:p.iconClassName})}),l?(0,u.jsx)(d,{variant:`free`,className:`mt-6 text-xs font-bold uppercase tracking-wide text-tertiary`,children:l}):null,(0,u.jsx)(d,{as:`h1`,variant:`free`,className:`${l?`mt-2`:`mt-6`} text-2xl font-bold text-primary`,children:t}),(0,u.jsx)(d,{variant:`free`,className:`mx-auto mt-3 max-w-xl text-primary`,children:n}),f?(0,u.jsx)(d,{variant:`free`,className:`mx-auto mt-3 max-w-xl text-sm text-tertiary`,children:f}):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)(d,{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]})})},bf=({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-secondary text-primary`,children:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:n,alt:``,size:`md`})}),(0,u.jsxs)(`div`,{className:`min-w-0 md:w-72`,children:[(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e}),(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-primary`,children:t})]})]}),(0,u.jsx)(`div`,{className:`mt-5 flex min-w-0 flex-1 flex-col md:mt-0`,children:r})]}),xf=({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:c=!1,findDecorLabel:l=`Find a decor`,createDecorViewLabel:f=`Create a decor`,decorCodeValue:p,decorCodeLabel:m=`Decor Code`,decorCodePlaceholder:g=`Enter the new decor code`,status:_,statusMessage:v,createNewPrompt:y=`Start with a blank decor`,createNewDescription:b=`Enter a decor code that does not yet have a market-readiness record to begin a controlled draft.`,createNewLabel:x=`Create Blank Decor`,createNewHelpText:S=`Setting up a new decor creates a controlled draft. Nothing is published until the draft is saved.`,createNewDisabled:C=!1,copyDecorTitle:w=`Copy an existing decor`,copyDecorDescription:T=`Copy an existing decor's market-readiness data into a new decor, then update only the fields that differ.`,sourceDecorCodeValue:E,sourceDecorCodeOptions:O=[],sourceDecorCodeLabel:k=`Source Decor Code`,sourceDecorCodePlaceholder:A=`Start typing the decor code to copy`,sourceDecorCodeEmptyMessage:j=`No matching decor codes found.`,newDecorCodeValue:M,newDecorCodeLabel:N=`New Decor Code`,newDecorCodePlaceholder:P=`Enter the new decor code`,copyDecorLabel:ee=`Copy to New Decor`,copyDecorHelpText:F=`The source decor stays unchanged. The copied record starts as a draft and is not published until it is saved.`,copyDecorDisabled:I=!1,deleteDecorTitle:te=`Delete an entire decor`,deleteDecorDescription:L=`Remove a decor and every SKU that belongs to it.`,deleteDecorCodeValue:R,deleteDecorCodeLabel:z=`Decor Code to Delete`,deleteDecorCodePlaceholder:B=`Enter the decor code to delete`,deleteDecorLabel:V=`Delete Entire Decor`,deleteDecorHelpText:H=`This is destructive and cannot be undone. The decor and all of its SKUs will be removed.`,deleteDecorDisabled:U=!1,retryLabel:W=`Try Again`,onDecorCodeChange:ne,onRegionChange:G,onFindDecorClick:K,onCreateNewClick:q,onSourceDecorCodeChange:re,onSourceDecorCodeOptionSelect:ie,onNewDecorCodeChange:ae,onCopyDecorClick:J,onDeleteDecorCodeChange:oe,onDeleteDecorClick:se,onRetryClick:ce})=>{let le=_===`checking`,ue=_===`error`,de=!i.trim(),fe=le||c||de,pe=ue?v?.trim()??``:``;return(0,u.jsxs)(qd,{pageTitle:e,pageDescription:t,sideNavProps:n,headerActions:(0,u.jsx)(mo,{options:r,value:i,label:a,placeholder:o,helpText:s,disabled:c||le,name:`market-readiness-region`,onChange:G}),children:[(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(hc,{items:[{id:`find`,label:l},{id:`create`,label:f}],selectedId:`create`,ariaLabel:`Market readiness view`,onSelect:e=>{e===`find`&&K?.()}})}),pe?(0,u.jsx)(`div`,{role:`alert`,className:`mt-5 rounded-md border border-accent bg-accent/10 p-4 text-accent`,children:(0,u.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`triangle-exclamation`,alt:``,size:`sm`}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(d,{variant:`free`,className:`text-sm text-inherit`,children:pe}),ce?(0,u.jsx)(`div`,{className:`mt-3`,children:(0,u.jsx)(D,{label:W,variant:`outline`,intent:`primary`,size:`sm`,onClick:ce})}):null]})]})}):null,(0,u.jsxs)(`section`,{"aria-label":`Market readiness actions`,className:`mt-5 grid gap-4`,children:[(0,u.jsxs)(bf,{title:y,description:b,iconName:`file-circle-plus`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-new-decor-code`,className:`text-sm font-bold text-primary`,children:m}),(0,u.jsx)(Co,{id:`market-readiness-new-decor-code`,name:`newDecorCode`,type:`search`,value:p,placeholder:g,disabled:fe,autoComplete:`off`,leadingIcon:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>ne({value:e.target.value})})]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(D,{label:x,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:C||fe,onClick:()=>q({decorCode:p})})}),S?(0,u.jsx)(d,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:S}):null]}),(0,u.jsxs)(bf,{title:w,description:T,iconName:`copy`,children:[(0,u.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-source-decor-code`,className:`text-sm font-bold text-primary`,children:k}),(0,u.jsx)(Do,{id:`market-readiness-source-decor-code`,name:`sourceDecorCode`,ariaLabel:k,value:E,options:O,placeholder:A,controlSize:`default`,disabled:fe,emptyMessage:j,onQueryChange:re,onClear:()=>re({value:``}),onOptionSelect:e=>{re({value:e.option.value}),ie?.(e)}})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-copy-new-decor-code`,className:`text-sm font-bold text-primary`,children:N}),(0,u.jsx)(Co,{id:`market-readiness-copy-new-decor-code`,name:`copyNewDecorCode`,type:`search`,value:M,placeholder:P,disabled:fe,autoComplete:`off`,leadingIcon:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>ae({value:e.target.value})})]})]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(D,{label:ee,iconType:`fa-solid`,iconName:`copy`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:I||fe,onClick:()=>J({sourceDecorCode:E,newDecorCode:M})})}),F?(0,u.jsx)(d,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:F}):null]}),(0,u.jsxs)(bf,{title:te,description:L,iconName:`trash-can`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-delete-decor-code`,className:`text-sm font-bold text-primary`,children:z}),(0,u.jsx)(Co,{id:`market-readiness-delete-decor-code`,name:`deleteDecorCode`,type:`search`,value:R,placeholder:B,disabled:fe,autoComplete:`off`,leadingIcon:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>oe({value:e.target.value})})]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(D,{label:V,iconType:`fa-solid`,iconName:`trash-can`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`danger`,fullWidth:!0,disabled:U||fe||!R.trim(),onClick:()=>se({decorCode:R})})}),H?(0,u.jsx)(d,{variant:`free`,className:`mt-3 text-xs text-accent`,children:H}):null]})]})]})},Sf=({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,findDecorLabel:f=`Find a decor`,createDecorLabel:p=`Create a decor`,searchValue:m,searchLabel:h=`Search decors`,searchPlaceholder:g,searchDisabled:v=!1,rangeOptions:y,selectedRangeId:b,rangePromptTitle:x=`Select a range to view its decors`,rangePromptMessage:S=`Choose a range above to load its market-readiness records.`,resultCount:C,resultLabel:w=`decors`,groups:T,status:E={state:`ready`},hasMore:O=!1,loadingMore:k=!1,loadMoreLabel:A=`Load more decors`,onRegionChange:j,onCreateDecorClick:M,onSearchChange:N,onSearchSubmit:P,onRangeSelect:ee,onDecorClick:F,onLoadMore:I,onRetryClick:te})=>{let L=(0,c.useRef)(null),R=!i.trim()||l,z=`${C.toLocaleString()} ${w}`,B=T.reduce((e,t)=>e+t.items.length,0),V=y.find(e=>e.id===b),H=g??(V?`Search within ${V.label}`:`Select a range before searching`);(0,c.useEffect)(()=>{let e=L.current;if(!e||!V||E.state!==`ready`||!O||k||!I||typeof IntersectionObserver>`u`)return;let t=!1,n=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&!t&&(t=!0,I())});return n.observe(e),()=>n.disconnect()},[O,k,I,m,b,E.state]);let U=null;return k?U=(0,u.jsx)(_,{label:`Loading more decors`,size:`md`}):O&&(U=(0,u.jsx)(D,{label:A,variant:`outline`,intent:`primary`,disabled:!I,onClick:I})),(0,u.jsx)(qd,{pageTitle:e,pageDescription:t,sideNavProps:n,headerActions:(0,u.jsx)(mo,{options:r,value:i,label:a,placeholder:o,helpText:s,disabled:l,name:`market-readiness-browse-region`,onChange:j}),children:(0,u.jsxs)(`div`,{className:`mt-5 max-w-5xl`,children:[(0,u.jsx)(hc,{items:[{id:`find`,label:f},{id:`create`,label:p}],selectedId:`find`,ariaLabel:`Market readiness view`,onSelect:e=>{e===`create`&&M?.()}}),(0,u.jsxs)(`section`,{"aria-label":`Browse decor controls`,className:`mt-5`,children:[(0,u.jsx)(wo,{id:`market-readiness-decor-search`,name:`decorSearch`,ariaLabel:h,value:m,placeholder:H,controlSize:`default`,disabled:v||R||!V,onChange:e=>N({value:e.target.value}),onClear:()=>N({value:``}),onSearchSubmit:P}),(0,u.jsx)(`div`,{className:`mt-3`,children:(0,u.jsx)(ho,{ranges:y,selectedRangeId:b,disabled:R,onRangeSelect:ee})})]}),V?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`mt-6 flex items-center justify-between gap-4`,children:[(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:V.label}),(0,u.jsx)(d,{variant:`free`,className:`text-sm font-bold text-tertiary`,children:z})]}),E.state===`ready`?(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(hu,{groups:T,itemLabel:w,showGroupHeaders:!1,onDecorClick:R?void 0:F})}):(0,u.jsx)(Xd,{status:E,onRetryClick:te})]}):(0,u.jsx)(Xd,{status:{state:`empty`,title:x,message:S}}),V&&E.state===`ready`&&(B>0||O)?(0,u.jsxs)(`div`,{ref:L,className:`mt-6 flex flex-col items-center gap-3 border-t border-borderTertiary pt-5`,children:[(0,u.jsxs)(d,{variant:`free`,className:`text-sm text-tertiary`,children:[`Showing `,B.toLocaleString(),` of`,` `,C.toLocaleString(),` `,w]}),U]}):null]})})},Cf=({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)(D,{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)(mu,{...i})}),o?(0,u.jsxs)(`nav`,{"aria-label":`Report pagination`,className:`mt-5 flex justify-end gap-3`,children:[(0,u.jsx)(D,{label:o.previousLabel,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`outline`,intent:`primary`,disabled:o.previousDisabled,onClick:l}),(0,u.jsx)(D,{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})}),wf=e=>new Intl.NumberFormat(`en-US`).format(e),Tf=e=>new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`}).format(new Date(e)),Ef=e=>[...e].sort((e,t)=>(e.stepNumber??2**53-1)-(t.stepNumber??2**53-1)),Df=e=>e>=80?`good`:e>=60?`warning`:`critical`,Of=e=>e>=80?`Healthy`:e>=60?`Needs Review`:`Critical`,kf=e=>e===`success`?`green`:e===`warning`?`orange`:e===`error`?`red`:e===`review`?`purple`:`gray`,Af=e=>e===`success`?`safe`:e===`warning`?`warning`:e===`error`?`error`:e===`review`?`review`:`resolved`,jf=e=>({title:`Data Health`,score:e.summary.healthScore,scoreLabel:Of(e.summary.healthScore),status:Df(e.summary.healthScore),summary:`This data set needs review before fixes are applied.`,detail:`${wf(e.summary.problemSkuRows)} SKU rows need attention. ${wf(e.summary.goodSkuRows)} SKU rows have no detected issues.`}),Mf=e=>[{value:wf(e.skuRowsScanned),label:`Total SKUs`,detail:`${wf(e.recordsScanned)} records scanned in this report`,iconName:`barcode`,tone:`blue`}],Nf=e=>({title:`By Issue Type`,items:Ef(e.issueTypes).map(e=>({id:e.id,label:e.label,groupCount:wf(e.groups),recordCount:wf(e.records),tone:kf(e.severity)}))}),Pf=e=>{if(e.whatToDoNext)return{title:e.whatToDoNext.title,description:e.whatToDoNext.message};let t=e.summary.safelyResolvableGroups??0;return{title:`Recommended Next Step`,description:t>0?`${wf(t)} duplicate groups look safe to review first. Confirm the product data is current before applying fixes.`:`${wf(e.summary.problemSkuRows)} SKU rows need review before Data Forge can safely apply automated fixes.`}},Ff=e=>e===`safe`?`success`:e===`warning`?`warning`:e===`error`?`error`:e===`review`?`review`:`neutral`,If=e=>e.groupCount>0||e.recordCount===void 0?`${wf(e.groupCount)} groups`:`${wf(e.recordCount)} records`,Lf=e=>Ef(e.sections).map(e=>{let t=Af(e.severity);return{id:e.id,title:e.title,groupCountLabel:If(e),description:e.description,status:t,stepNumber:e.stepNumber,recommendedActionTitle:e.recommendedActionTitle??`Recommended Action`,recommendedActions:e.recommendedAction,confidenceLabel:e.confidenceLabel,confidenceTone:Ff(t),primaryActionLabel:t===`safe`?`Resolve`:`Review Groups`,primaryActionIconName:t===`safe`?`wand-magic-sparkles`:`magnifying-glass`,primaryActionVariant:t===`safe`?`solid`:`outline`}}),Rf=({pageTitle:e,pageDescription:t,lastScanLabel:n,recalculateLabel:r=`Recalculate`,recalculateStatus:i=`idle`,updateCacheLabel:a=`Update Cache`,updateCacheStatus:o=`idle`,deleteAndRebuildLabel:s=`Delete and Rebuild`,changeProductDataLabel:c=`Change Product Data`,sideNavProps:l,status:f={state:`ready`},dataIssuesResponse:p,dataHealthSummaryCardProps:m,metricCardProps:g,issueTypeBreakdownCardProps:_,recommendedNextStepCardProps:v,issueActionCardProps:y,cacheActions:b,rebuildConfirmation:x,resolveDialog:S,onRetryClick:C,onRecalculateClick:w,onChangeProductDataClick:T,onUpdateCacheClick:E,onDeleteAndRebuildClick:O,onRebuildConfirm:k,onRebuildCancel:A,onResolveConfirm:j,onResolveClose:M,onResolveRetry:N,onIssuePrimaryActionClick:P,onIssueSecondaryActionClick:ee})=>{let F=t?.trim()??``,I=p?.report??p?.dataSource?.latestReport,te=n?.trim()??(I?`Report generated: ${Tf(I.generatedAt)}`:``),L=m??(I?jf(I):null),R=g??(I?Mf(I):[]),z=_??(I?Nf(I):null),B=v??(I?Pf(I):null),V=y??(I?Lf(I):[]),H=R.length<=1?`md:col-span-2`:`md:col-span-1`,U=o===`required`,W=(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[te?(0,u.jsxs)(`div`,{className:`flex items-center gap-2 text-primary`,children:[(0,u.jsx)(h,{iconType:`fa-regular`,iconName:`clock`,alt:``,size:`xs`}),(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:te})]}):null,w?(0,u.jsx)(D,{label:r,iconType:i===`pending`?`fa-solid`:void 0,iconName:i===`pending`?`spinner`:void 0,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,disabled:i===`pending`,"aria-busy":i===`pending`||void 0,onClick:w}):null,T?(0,u.jsx)(D,{label:c,variant:`outline`,intent:`primary`,size:`sm`,onClick:T}):null]}),ne=!b&&(E||O)?(0,u.jsxs)(`div`,{"aria-label":`Data issue cache actions`,className:`mt-5 flex flex-wrap gap-2`,children:[(0,u.jsx)(D,{label:a,variant:U?`solid`:`outline`,intent:U?`accent`:`primary`,size:`sm`,onClick:E}),(0,u.jsx)(D,{label:s,variant:`solid`,intent:`danger`,size:`sm`,onClick:O})]}):null;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(qd,{pageTitle:e,pageDescription:F,sideNavProps:l,headerActions:W,children:f.state===`ready`?(0,u.jsxs)(u.Fragment,{children:[b?(0,u.jsxs)(`section`,{"aria-label":`Data issue cache actions`,className:`mt-5 grid gap-4 rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:b.title}),(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm text-primary`,children:b.description}),b.statusMessage?(0,u.jsx)(d,{role:b.status===`error`?`alert`:`status`,variant:`free`,className:`mt-2 text-sm text-primary`,children:b.statusMessage}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,u.jsx)(D,{label:b.updateLabel,iconType:`fa-solid`,iconName:b.status===`pending`?`spinner`:`rotate`,iconAlt:``,variant:U?`solid`:`outline`,intent:U?`accent`:`primary`,size:`sm`,disabled:b.updateDisabled||b.status===`pending`,"aria-busy":b.status===`pending`||void 0,onClick:E}),(0,u.jsx)(D,{label:b.rebuildLabel,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,variant:`solid`,intent:`danger`,size:`sm`,disabled:b.rebuildDisabled||b.status===`pending`,onClick:O})]})]}):ne,(0,u.jsxs)(`section`,{"aria-label":`Data issue summary`,className:`mt-5 grid gap-4 md:grid-cols-4`,children:[L?(0,u.jsx)(`div`,{className:`h-full md:col-span-1`,children:(0,u.jsx)(gs,{...L})}):null,R.map(e=>(0,u.jsx)(ys,{...e},e.label)),z?(0,u.jsx)(`div`,{className:`h-full ${H}`,children:(0,u.jsx)(ws,{...z})}):null]}),B?(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(ks,{...B,recalculating:i===`pending`||B.recalculating,onRecalculateClick:B.onRecalculateClick??w})}):null,(0,u.jsx)(`section`,{"aria-label":`Data issue actions`,className:`mt-4 space-y-3`,children:V.map(e=>(0,u.jsx)(Ss,{...e,onPrimaryActionClick:e.onPrimaryActionClick??P,onSecondaryActionClick:e.onSecondaryActionClick??ee},e.id))})]}):(0,u.jsx)(Xd,{status:f,onRetryClick:C})}),(0,u.jsx)(mc,{open:x?.open??!1,title:x?.title??``,closeLabel:x?.cancelLabel,onClose:A??(()=>void 0),children:x?(0,u.jsxs)(`div`,{className:`grid gap-4`,children:[(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:x.message}),x.warning?(0,u.jsx)(d,{role:`alert`,variant:`free`,className:`text-sm text-accent`,children:x.warning}):null,(0,u.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,u.jsx)(D,{label:x.cancelLabel,variant:`outline`,intent:`primary`,size:`sm`,disabled:x.pending,onClick:A}),(0,u.jsx)(D,{label:x.confirmLabel,variant:`solid`,intent:`danger`,size:`sm`,disabled:x.pending,onClick:k})]})]}):null}),(0,u.jsx)(zf,{dialog:S,onClose:M,onConfirm:j,onRetry:N})]})},zf=({dialog:e,onClose:t,onConfirm:n,onRetry:r})=>{if(!e?.open)return null;let i=e.mode===`progress`?Math.min(Math.max(e.percentComplete,0),100):0;return(0,u.jsx)(mc,{open:!0,title:e.title,closeLabel:e.mode===`confirm`?e.cancelLabel:e.closeLabel,onClose:t??(()=>void 0),children:e.mode===`confirm`?(0,u.jsxs)(`div`,{className:`grid gap-4`,children:[e.previewStatus===`loading`?(0,u.jsxs)(`div`,{role:`status`,"aria-live":`polite`,className:`flex items-center gap-3`,children:[(0,u.jsx)(_,{label:``,size:`sm`}),(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:e.message??`Loading preview...`})]}):null,e.previewStatus===`ready`&&e.message?(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:e.message}):null,e.previewStatus===`error`?(0,u.jsx)(d,{role:`alert`,variant:`free`,className:`text-sm text-accent`,children:e.errorMessage??e.message}):null,(0,u.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,u.jsx)(D,{label:e.cancelLabel,variant:`outline`,intent:`primary`,size:`sm`,disabled:e.confirming,onClick:t}),(0,u.jsx)(D,{label:e.confirmLabel,variant:`solid`,intent:`primary`,size:`sm`,disabled:e.confirmDisabled||e.confirming||e.previewStatus!==`ready`,onClick:n})]})]}):(0,u.jsxs)(`div`,{className:`grid gap-4`,children:[(0,u.jsxs)(`div`,{role:`status`,"aria-live":`polite`,children:[(0,u.jsx)(d,{variant:`free`,className:`text-sm font-bold text-primary`,children:e.statusLabel}),(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm text-primary`,children:e.message})]}),(0,u.jsx)(`div`,{role:`progressbar`,"aria-label":e.statusLabel,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":i,className:`h-2 overflow-hidden rounded-full bg-tertiaryActive`,children:(0,u.jsx)(`div`,{className:`h-full rounded-full bg-saleGreen`,style:{width:`${i}%`}})}),e.completedLabel?(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:e.completedLabel}):null,e.failedLabel?(0,u.jsx)(d,{variant:`free`,className:`text-sm text-accent`,children:e.failedLabel}):null,e.errorMessages?.length?(0,u.jsx)(`ul`,{role:`alert`,className:`list-disc space-y-1 pl-5 text-sm text-accent`,children:e.errorMessages.map(e=>(0,u.jsx)(`li`,{children:e},e))}):null,e.pollingWarning?(0,u.jsx)(d,{role:`alert`,variant:`free`,className:`text-sm text-accent`,children:e.pollingWarning}):null,(0,u.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[e.retryLabel?(0,u.jsx)(D,{label:e.retryLabel,variant:`outline`,intent:`primary`,size:`sm`,disabled:e.retryDisabled,onClick:r}):null,(0,u.jsx)(D,{label:e.closeLabel,variant:`solid`,intent:`primary`,size:`sm`,onClick:t})]})]})})},Bf=e=>new Intl.NumberFormat(`en-US`).format(e),Vf=({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)(h,{iconType:`fa-solid`,iconName:n,alt:``,size:`md`})}),(0,u.jsxs)(`div`,{className:`min-w-0 md:w-72`,children:[(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e}),(0,u.jsx)(d,{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)(d,{role:e===`error`?`alert`:`status`,variant:`free`,className:`mt-3 text-sm ${r}`,children:n})},Uf=({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:Bf(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]}),Wf=({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:f=`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:g=`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:O=`Select a range`,rangeOptions:k,selectedRangeValue:A=``,directDownloadLabel:j=`Download Latest Data`,downloadStatus:M=`idle`,downloadStatusMessage:N,downloadDisabled:P=!1,onUseExistingDataClick:ee,onReportFileSelect:F,onUploadClick:I,onClearSelectedFileClick:te,onRangeChange:L,onDirectDownloadClick:R,onRetryClick:z})=>{let B=(0,c.useRef)(null),V=y===`pending`,H=M===`pending`,U=e=>F?.({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)(Vf,{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)(Uf,{dataSource:i}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(D,{label:l,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`primary`,fullWidth:!0,onClick:ee})})]}):(0,u.jsx)(`div`,{className:`rounded-md border border-dashed border-borderTertiary bg-adminSideNavBackground p-4`,children:(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:s})})}),(0,u.jsxs)(Vf,{title:f,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(),U(e.dataTransfer.files)},children:[(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`,className:`text-primary`}),(0,u.jsx)(d,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:m}),(0,u.jsx)(d,{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)(D,{label:g,iconType:`fa-solid`,iconName:`folder-open`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,disabled:V,onClick:()=>B.current?.click()})}),(0,u.jsx)(`input`,{ref:B,id:`salsify-report-upload`,type:`file`,className:`sr-only`,disabled:V,onChange:e=>U(e.target.files)})]}),(0,u.jsx)(d,{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)(h,{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)(d,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:v.name}),v.sizeLabel?(0,u.jsx)(d,{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)(D,{label:C,variant:`outline`,intent:`primary`,size:`sm`,disabled:V,onClick:te}),(0,u.jsx)(D,{label:x,iconType:`fa-solid`,iconName:`cloud-arrow-up`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,disabled:S||V,"aria-busy":V||void 0,onClick:I})]})]}):null,(0,u.jsx)(Hf,{status:y,message:b})]}),(0,u.jsxs)(Vf,{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)(xo,{id:`salsify-range`,name:`salsifyRange`,value:A,placeholder:O,options:k,disabled:H,onChange:e=>L?.({value:e.target.value})})]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(D,{label:j,iconType:`fa-solid`,iconName:`cloud-arrow-down`,iconAlt:``,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:P||H,"aria-busy":H||void 0,onClick:R})}),(0,u.jsx)(Hf,{status:M,message:N})]})]}):(0,u.jsx)(Xd,{status:r,onRetryClick:z})})},Gf=e=>new Intl.NumberFormat(`en-US`).format(e),Kf=e=>e.split(`-`).filter(Boolean).map(e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(` `),qf=(e,t,n)=>n===0?`0 groups`:`${Gf(e+1)}-${Gf(e+Math.min(t,n))}`,Jf=e=>({recordId:e.salsifyId??e.itemSku??e.itemPartNumber??``,hierarchyLevel:e.hierarchyLevel,itemPartNumber:e.itemPartNumber,itemSku:e.itemSku,productName:e.productName,salsifyId:e.salsifyId,score:e.score}),Yf=({pageTitle:e,pageDescription:t,issueTypeLabel:n,backLabel:r=`Back to Data Issues`,previousLabel:i=`Previous`,nextLabel:a,resolveLabel:o=`Resolve Group`,selectLabel:s=`Select`,selectedLabel:c=`Selected`,sideNavProps:l,issueGroupResponse:d,selectedRecordIds:f={},status:p={state:`ready`},groupActionStates:m=[],onBackClick:h,onPreviousPageClick:g,onNextPageClick:_,onRecordSelect:v,onResolveGroupClick:y,onRetryClick:b})=>{let x=n?.trim()||Kf(d.issueType),S=a??`Next ${Gf(d.limit)}`;return(0,u.jsx)(qd,{pageTitle:e,pageDescription:t,sideNavProps:l,headerLeading:(0,u.jsx)(D,{label:r,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`ghost`,intent:`primary`,size:`sm`,className:`mb-3 px-0`,onClick:h}),headerActions:p.state===`ready`?(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row md:justify-end`,children:[(0,u.jsx)(D,{label:i,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,disabled:d.offset<=0,onClick:g}),(0,u.jsx)(D,{label:S,iconType:`fa-solid`,iconName:`chevron-right`,iconAlt:``,iconPosition:`right`,variant:`outline`,intent:`primary`,size:`sm`,disabled:!d.hasMore,onClick:_})]}):void 0,children:p.state===`ready`?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`section`,{"aria-label":`Issue group queue`,className:`mt-5`,children:(0,u.jsx)(Ts,{title:x,description:`Review each group and select the record Data Forge should keep.`,totalGroupsLabel:Gf(d.totalGroups),visibleRangeLabel:qf(d.offset,d.limit,d.groups.length),issueTypeLabel:d.issueType,hasMore:d.hasMore})}),(0,u.jsx)(`section`,{"aria-label":`Issue groups to review`,className:`mt-4 space-y-4`,children:d.groups.map(e=>{let t=m.find(t=>t.groupId===e.groupId);return(0,u.jsx)(Os,{groupId:e.groupId,issueType:x,reason:e.reason,matchReasons:e.matchReasons,conflictFields:e.conflictFields,records:e.records.map(Jf),selectedRecordId:f[e.groupId],resolveLabel:t?.resolveLabel??o,resolveDisabled:t?.resolveDisabled,statusMessage:t?.statusMessage,selectLabel:s,selectedLabel:c,onRecordSelect:v,onResolveClick:y},e.groupId)})})]}):(0,u.jsx)(Xd,{status:p,onRetryClick:b})})},Xf=e=>e===`error`?`text-accent`:e===`success`?`text-saleGreen`:`text-primary`,Zf=({status:e,message:t})=>{let n=t?.trim()??``;return!n||e===`idle`?null:(0,u.jsx)(d,{role:e===`error`?`alert`:`status`,variant:`free`,className:`mt-3 text-sm ${Xf(e)}`,children:n})},Qf=({guide:e,uploadDropLabel:t,uploadBrowseLabel:n,uploadHelpText:r,uploadLabel:i,clearFileLabel:a,completeLabel:o,onGuideFileSelect:s,onUploadClick:l,onClearSelectedFileClick:f})=>{let p=(0,c.useRef)(null),m=(0,c.useId)(),g=e.actionStatus??`idle`,_=g===`validating`||g===`pending`,v=(e.availability??`available`)===`available`,y=t=>s?.({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)(h,{iconType:`fa-solid`,iconName:`book-open`,alt:``,size:`md`})}),(0,u.jsxs)(`div`,{className:`min-w-0 md:w-72`,children:[(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e.title}),(0,u.jsx)(d,{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:v?(0,u.jsxs)(u.Fragment,{children:[g===`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)(h,{iconType:`fa-solid`,iconName:`circle-check`,alt:``,className:`shrink-0 text-saleGreen`}),(0,u.jsx)(d,{variant:`free`,className:`text-sm font-bold text-primary`,children:o})]}):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(),y(e.dataTransfer.files)},children:[(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`,className:`text-primary`}),(0,u.jsx)(d,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:t}),(0,u.jsx)(d,{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)(D,{label:n,iconType:`fa-solid`,iconName:`folder-open`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,disabled:_,onClick:()=>p.current?.click()})}),(0,u.jsx)(`input`,{ref:p,id:`${m}-product-guide-upload`,type:`file`,accept:`.json,application/json`,className:`sr-only`,disabled:_,onChange:e=>y(e.target.files)})]}),(0,u.jsx)(d,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:r}),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)(h,{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)(d,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:e.selectedFile.name}),e.selectedFile.sizeLabel?(0,u.jsx)(d,{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)(D,{label:a,variant:`outline`,intent:`primary`,size:`sm`,disabled:_,onClick:()=>f?.({guideId:e.id})}),(0,u.jsx)(D,{label:i,iconType:`fa-solid`,iconName:`cloud-arrow-up`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,disabled:e.uploadDisabled||_,"aria-busy":_||void 0,onClick:()=>l?.({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)(d,{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,g===`success`?null:(0,u.jsx)(Zf,{status:g,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)(h,{iconType:`fa-solid`,iconName:`clock`,alt:``,size:`xl`,className:`text-tertiary`}),(0,u.jsx)(d,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:e.availabilityMessage??`Upload support is coming soon.`})]})})]})},$f=({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 JSON file here`,uploadBrowseLabel:c=`Select JSON File`,uploadHelpText:l=`Only National Product Guide JSON documents are supported.`,uploadLabel:f=`Replace Active Guide`,clearFileLabel:p=`Clear File`,completeLabel:m=`Complete`,onGuideFileSelect:g,onUploadClick:_,onClearSelectedFileClick:v,onRetryClick:y})=>{let b;return b=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)(h,{iconType:`fa-solid`,iconName:`book`,alt:``,size:`2xl`,className:`text-tertiary`}),(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`mt-4 text-lg font-bold text-primary`,children:a}),(0,u.jsx)(d,{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)(Qf,{guide:e,uploadDropLabel:s,uploadBrowseLabel:c,uploadHelpText:l,uploadLabel:f,clearFileLabel:p,completeLabel:m,onGuideFileSelect:g,onUploadClick:_,onClearSelectedFileClick:v},e.id))}):(0,u.jsx)(Xd,{status:r,onRetryClick:y}),(0,u.jsx)(qd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:b})},ep=({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)(zu,{...e,activeTabId:`favorites`,children:[(0,u.jsx)(d,{as:`h1`,variant:`free`,className:`font-rockwell text-3xl text-primary`,children:`Favorites`}),(0,u.jsx)(d,{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)(Ys,{...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)(h,{iconType:`fa-solid`,iconName:`heart`,alt:``,size:`4xl`,color:`secondaryHover`}),(0,u.jsx)(d,{as:`h2`,variant:`free`,className:`mt-5 font-rockwell text-2xl text-primary`,children:n}),(0,u.jsx)(d,{className:`mt-2 text-secondaryActive`,children:r}),(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(D,{label:i,intent:`accent`,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,onClick:o})})]})]}),tp=({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)(zu,{...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)(d,{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)(D,{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)(d,{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)(d,{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)(D,{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)(d,{id:`shipping-addresses-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Shipping Addresses`}),(0,u.jsx)(D,{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)(Xs,{address:e,onEditClick:({address:e})=>o({addressType:`shipping`,address:e}),onRemoveClick:({address:e})=>s({addressType:`shipping`,address:e})},e.id))}):(0,u.jsx)(d,{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)(d,{id:`billing-addresses-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Billing Addresses`}),(0,u.jsx)(D,{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)(Xs,{address:e,onEditClick:({address:e})=>o({addressType:`billing`,address:e}),onRemoveClick:({address:e})=>s({addressType:`billing`,address:e})},e.id))}):(0,u.jsx)(d,{className:`mt-4 text-secondaryActive`,children:`No billing addresses have been saved.`})]})]})},np=({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:f=!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)(zu,{...e,activeTabId:`order-history`,children:[(0,u.jsx)(d,{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)(xo,{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)(xo,{id:`customer-order-period`,name:`period`,value:n,options:i,onChange:h})]}),(0,u.jsx)(D,{label:`Search orders`,iconType:`fa-solid`,iconName:`magnifying-glass`,iconAlt:``,intent:`accent`,disabled:f,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)(d,{variant:`caption`,children:[`Showing `,a.length,` of `,o,` orders`]}):null,(0,u.jsx)(D,{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)(d,{className:`text-secondaryActive`,children:p})})]})},rp={neutral:`bg-tertiaryActive text-primary`,accent:`bg-accent text-white`,success:`bg-green-50 text-primary`},ip=(e,t)=>(0,u.jsxs)(`section`,{"aria-label":e,children:[(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`font-semibold text-primary`,children:e}),(0,u.jsxs)(`address`,{className:`mt-3 not-italic`,children:[(0,u.jsx)(d,{variant:`free`,className:`text-sm text-primary`,children:t.name}),t.lines.map((e,t)=>(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm text-primary`,children:e},`${e}-${t}`))]})]}),ap=e=>`${e.quantity}${e.quantityUnit?` ${e.quantityUnit}`:``}`,op=({shellProps:e,orderNumber:t,orderDate:n,status:r,statusTone:i=`neutral`,projectName:a,items:o,shippingAddress:s,billingAddress:c,shippingMethod:l,paymentMethod:f,summaryRows:p,backLabel:m=`Back to order history`,invoiceLabel:h=`Download invoice`,helpLabel:g=`Get help with this order`,onBackClick:_,onInvoiceClick:v,onHelpClick:y,onProductClick:b,onTrackingClick:x})=>{let S=e=>e.trackingNumber?x?(0,u.jsxs)(`button`,{type:`button`,className:`text-left text-sm font-semibold text-accent hover:underline`,onClick:()=>x({item:e}),children:[`Track shipment `,e.trackingNumber]}):(0,u.jsxs)(d,{className:`text-sm text-primary`,children:[`Tracking: `,e.trackingNumber]}):(0,u.jsx)(d,{className:`text-sm text-secondaryActive`,children:`Tracking available after shipment`});return(0,u.jsxs)(zu,{...e,activeTabId:`order-history`,children:[(0,u.jsx)(`div`,{className:`flex justify-start`,children:(0,u.jsx)(D,{label:m,iconType:`fa-solid`,iconName:`arrow-left`,iconAlt:``,variant:`link`,intent:`primary`,size:`sm`,onClick:_})}),(0,u.jsx)(`header`,{className:`mt-5 rounded-lg border border-borderTertiary bg-white 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)(d,{as:`h1`,variant:`free`,className:`font-rockwell text-3xl text-primary`,children:[`Order #`,t]}),(0,u.jsx)(`span`,{className:`rounded-full px-3 py-1 text-sm font-semibold ${rp[i]}`,children:r})]}),(0,u.jsxs)(d,{className:`mt-3 text-secondaryActive`,children:[`Placed `,n]}),a?(0,u.jsxs)(d,{className:`mt-1 text-secondaryActive`,children:[`Project: `,a]}):null]}),v?(0,u.jsx)(`div`,{className:`md:shrink-0`,children:(0,u.jsx)(D,{label:h,iconType:`fa-solid`,iconName:`download`,iconAlt:``,intent:`primary`,onClick:v})}):null]})}),(0,u.jsxs)(`section`,{className:`mt-8`,"aria-labelledby":`order-items-heading`,children:[(0,u.jsx)(d,{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-4`,children:o.map(e=>(0,u.jsxs)(`article`,{className:`rounded-lg border border-borderTertiary bg-white 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)(A,{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:[b?(0,u.jsx)(`button`,{type:`button`,className:`text-left font-semibold text-primary hover:text-accent hover:underline`,onClick:()=>b({item:e}),children:e.title}):(0,u.jsx)(d,{variant:`free`,className:`font-semibold text-primary`,children:e.title}),(0,u.jsxs)(d,{className:`mt-1 text-sm text-secondaryActive`,children:[`SKU `,e.sku]}),e.brand?(0,u.jsx)(d,{className:`mt-1 text-sm text-primary`,children:e.brand}):null,e.description?(0,u.jsx)(d,{className:`mt-1 text-sm text-secondaryActive`,children:e.description}):null]})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{className:`text-xs font-semibold uppercase text-secondaryActive`,children:`Quantity`}),(0,u.jsx)(d,{className:`mt-1 text-sm text-primary`,children:ap(e)})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{className:`text-xs font-semibold uppercase text-secondaryActive`,children:`Unit price`}),(0,u.jsx)(d,{className:`mt-1 text-sm text-primary`,children:e.unitPrice})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(d,{className:`text-xs font-semibold uppercase text-secondaryActive`,children:`Total`}),(0,u.jsx)(d,{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 ${rp[e.statusTone??`neutral`]}`,children:e.status}),e.statusDetail?(0,u.jsx)(d,{className:`text-sm text-secondaryActive`,children:e.statusDetail}):null]}),S(e)]})]},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)(d,{as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Delivery details`}),(0,u.jsxs)(`div`,{className:`mt-5 grid grid-cols-1 gap-6 md:grid-cols-2`,children:[ip(`Shipping address`,s),l?(0,u.jsxs)(`section`,{"aria-label":`Shipping method`,children:[(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`font-semibold text-primary`,children:`Shipping method`}),(0,u.jsx)(d,{className:`mt-3 text-sm text-primary`,children:l.name}),l.estimatedDelivery?(0,u.jsx)(d,{className:`mt-1 text-sm text-secondaryActive`,children:l.estimatedDelivery}):null]}):null]}),c||f?(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?ip(`Billing address`,c):null,f?(0,u.jsxs)(`section`,{"aria-label":`Payment method`,children:[(0,u.jsx)(d,{as:`h3`,variant:`free`,className:`font-semibold text-primary`,children:`Payment method`}),(0,u.jsx)(d,{className:`mt-3 text-sm text-primary`,children:f})]}):null]}):null]}),(0,u.jsxs)(`section`,{className:`rounded-lg bg-tertiaryActive p-5 md:p-6`,children:[(0,u.jsx)(d,{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:p.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}`))})]})]}),y?(0,u.jsx)(`div`,{className:`mt-8 flex justify-end`,children:(0,u.jsx)(D,{label:g,variant:`outline`,intent:`primary`,onClick:y})}):null]})};exports.AccountAccessPanel=Ru,exports.AdminAuthStatusTemplate=yf,exports.AdminDashboardTemplate=ff,exports.AdminDataIssuesSourceTemplate=Wf,exports.AdminDataIssuesTemplate=Rf,exports.AdminDataReportTemplate=Cf,exports.AdminIssueGroupReviewTemplate=Yf,exports.AdminPageTemplateShell=qd,exports.AdminProductGuidesTemplate=$f,exports.AdminRegionSelector=mo,exports.AdminSideNav=Qs,exports.AdminUsersTemplate=gf,exports.AnnouncementBar=Yc,exports.ArticleBanner=Ul,exports.ArticleBannerContent=Uo,exports.ArticleLandingPageTemplate=ad,exports.BpcsCartConfirmationTemplate=Md,exports.BpcsCartSamplesTemplate=Ld,exports.BpcsCartShippingTemplate=Id,exports.BrandNavBar=Bc,exports.Breadcrumbs=Xc,exports.BusinessInfoCard=K,exports.Button=D,exports.CallToActionHero=sl,exports.CallToActionHeroContent=Wo,exports.CarouselArrowControls=Oo,exports.CarouselDots=ko,exports.CartItemCard=ie,exports.CategoryPageTemplate=hd,exports.ClickableCard=J,exports.ColourMatchingChart=ns,exports.ColumnBanner=ml,exports.ColumnCarouselCard=io,exports.CommerceSyncPanel=Au,exports.ContentCarousel=Wl,exports.ContentContainer=L,exports.ContentGrid=B,exports.CountrySelector=fo,exports.CustomerAccountFavoritesTemplate=ep,exports.CustomerAccountOrderDetailTemplate=op,exports.CustomerAccountOrderHistoryTemplate=np,exports.CustomerAccountSettingsTemplate=tp,exports.CustomerAccountShell=zu,exports.CustomerAddressCard=Xs,exports.DataHealthSummaryCard=gs,exports.DataIssueActionCard=Ss,exports.DataIssueMetricCard=ys,exports.DataReportCollection=mu,exports.DecorSummaryCard=se,exports.DecorSummaryCollection=hu,exports.DocumentLinkCard=Xo,exports.DropdownFilter=So,exports.DynamicForm=fc,exports.EcommCartConfirmationTemplate=Rd,exports.EcommCartPaymentTemplate=Vd,exports.EcommCartShippingTemplate=Hd,exports.EcommCartSummaryTemplate=Kd,exports.EmbeddedVideo=M,exports.EmbeddedVideoCard=Yo,exports.FaqCard=Zo,exports.FaqCardCollection=$l,exports.FeatureCard=ao,exports.FeatureCardCollection=vl,exports.FeaturedArticleBanner=cl,exports.FeaturedArticleBannerContent=Go,exports.FeaturedProductCard=oo,exports.FeaturedProductsCarousel=Zl,exports.FilterBar=go,exports.FilterBarButton=_o,exports.FlowRow=W,exports.Footer=rl,exports.FormicaText=d,exports.GalleryTemplate=_d,exports.Icon=h,exports.Image=A,exports.ImageCard=Gl,exports.ImageOverlayCard=Jo,exports.ImageOverlayGrid=nu,exports.InfoCard=Qo,exports.IssueGroupQueueSummaryCard=Ts,exports.IssueGroupReviewCard=Os,exports.IssueRecordCandidateCard=Ds,exports.IssueTypeBreakdownCard=ws,exports.LocalizationMarketCollection=au,exports.LocalizationStatusCard=Ks,exports.LocationCard=uo,exports.LocationCardCollection=iu,exports.LocationMap=xu,exports.LoginTemplate=wd,exports.MarketReadinessBrowseTemplate=Sf,exports.MarketReadinessLandingTemplate=xf,exports.MarketReadinessRangeSelector=ho,exports.MarketReadinessTemplate=sf,exports.MessageListCard=Ms,exports.Modal=mc,exports.MoreInfoHighlightsCard=$o,exports.MoreInfoHighlightsCollection=yl,exports.ProResourceTemplate=yd,exports.ProductContactActions=ae,exports.ProductDetailPageTemplate=rd,exports.ProductJourneyTemplate=df,exports.QuantityCheckoutCard=is,exports.RecentArticleCard=fs,exports.RecentArticleCollection=Ql,exports.RecommendedNextStepCard=ks,exports.ResilientImage=P,exports.SampleOrderSummaryPanel=bl,exports.SearchCombobox=Do,exports.SearchFilter=Eo,exports.SearchResultsTemplate=Cd,exports.SingleButtonCard=ps,exports.SocialLinkRow=qo,exports.Spinner=_,exports.StandardBannerContainer=al,exports.StandardCarousel=Bo,exports.StandardCopyBannerContent=Ko,exports.StandardCopyHero=Hl,exports.StatusFlowActionCard=Ps,exports.StatusFlowConnector=zs,exports.StatusFlowDiagram=Su,exports.StatusFlowGroup=Cu,exports.StatusFlowLegendCard=Hs,exports.StatusFlowPanel=Tu,exports.StatusSummaryCard=Ws,exports.SwatchCard=Ys,exports.SwatchPurchasePanel=Vl,exports.TextCard=Yl,exports.Textarea=ee,exports.TopNavAccountDrawer=Kc,exports.TopNavActions=Gc,exports.TopNavBar=Jc,exports.TopNavMegaMenu=Vc,exports.TopNavSearchResults=Uc,exports.VerticalCheckboxListCollection=Pu,exports.VerticalColorSwatchList=Ho,exports.WarrantyCard=Xl,exports.WhereToBuySearchBanner=ol,exports.WhereToBuyTemplate=Ed,exports.userTypeOptions=Fu;
555
+ }`;function Yn(){var e=tn,t=nn,n=Q.cssPrefix,r=Q.replacementClass,i=Jn;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 Xn=!1;function Zn(){Q.autoAddCss&&!Xn&&(Ln(Yn()),Xn=!0)}var Qn={mixout:function(){return{dom:{css:Yn,insertCss:Zn}}},hooks:function(){return{beforeDOMElementCreation:function(){Zn()},beforeI2svg:function(){Zn()}}}},$n=Pe||{};$n[$t]||($n[$t]={}),$n[$t].styles||($n[$t].styles={}),$n[$t].hooks||($n[$t].hooks={}),$n[$t].shims||($n[$t].shims=[]);var er=$n[$t],tr=[],nr=function(){Z.removeEventListener(`DOMContentLoaded`,nr),rr=1,tr.map(function(e){return e()})},rr=!1;Le&&(rr=(Z.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Z.readyState),rr||Z.addEventListener(`DOMContentLoaded`,nr));function ir(e){Le&&(rr?setTimeout(e,0):tr.push(e))}function ar(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`?Hn(e):`<${t} ${Un(r)}>${a.map(ar).join(``)}</${t}>`}function or(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var sr=function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}},cr=function(e,t,n,r){var i=Object.keys(e),a=i.length,o=r===void 0?t:sr(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 lr(e){return Se(e).length===1?e.codePointAt(0).toString(16):null}function ur(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 dr(e,t){var n=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).skipHooks,r=n===void 0?!1:n,i=ur(t);typeof er.hooks.addPack==`function`&&!r?er.hooks.addPack(e,ur(t)):er.styles[e]=X(X({},er.styles[e]||{}),i),e===`fas`&&dr(`fa`,t)}var fr=er.styles,pr=er.shims,mr=Object.keys(bn),hr=mr.reduce(function(e,t){return e[t]=Object.keys(bn[t]),e},{}),gr=null,_r={},vr={},yr={},br={},xr={};function Sr(e){return~Dn.indexOf(e)}function Cr(e,t){var n=t.split(`-`),r=n[0],i=n.slice(1).join(`-`);return r===e&&i!==``&&!Sr(i)?i:null}var wr=function(){var e=function(e){return cr(fr,function(t,n,r){return t[r]=cr(n,e,{}),t},{})};_r=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}),xr=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||Q.autoFetchSvg,n=cr(pr,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:{}});yr=n.names,br=n.unicodes,gr=Nr(Q.styleDefault,{family:Q.familyDefault})};Pn(function(e){gr=Nr(e.styleDefault,{family:Q.familyDefault})}),wr();function Tr(e,t){return(_r[e]||{})[t]}function Er(e,t){return(vr[e]||{})[t]}function Dr(e,t){return(xr[e]||{})[t]}function Or(e){return yr[e]||{prefix:null,iconName:null}}function kr(e){var t=br[e],n=Tr(`fas`,e);return t||(n?{prefix:`fas`,iconName:n}:null)||{prefix:null,iconName:null}}function Ar(){return gr}var jr=function(){return{prefix:null,iconName:null,rest:[]}};function Mr(e){var t=Ge,n=mr.reduce(function(e,t){return e[t]=`${Q.cssPrefix}-${t}`,e},{});return kt.forEach(function(r){(e.includes(n[r])||e.some(function(e){return hr[r].includes(e)}))&&(t=r)}),t}function Nr(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).family,n=t===void 0?Ge:t,r=gn[n][e];if(n===Ke&&!e)return`fad`;var i=vn[n][e]||vn[n][r],a=e in er.styles?e:null;return i||a||null}function Pr(e){var t=[],n=null;return e.forEach(function(e){var r=Cr(Q.cssPrefix,e);r?n=r:e&&t.push(e)}),{iconName:n,rest:t}}function Fr(e){return e.sort().filter(function(e,t,n){return n.indexOf(e)===t})}var Ir=qt.concat(Pt);function Lr(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).skipLookups,n=t===void 0?!1:t,r=null,i=Fr(e.filter(function(e){return Ir.includes(e)})),a=Fr(e.filter(function(e){return!Ir.includes(e)})),o=xe(i.filter(function(e){return r=e,!We.includes(e)}),1)[0],s=o===void 0?null:o,c=Mr(i),l=X(X({},Pr(a)),{},{prefix:Nr(s,{family:c})});return X(X(X({},l),Vr({values:e,family:c,styles:fr,config:Q,canonical:l,givenPrefix:r})),Rr(n,r,l))}function Rr(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var a=t===`fa`?Or(i):{},o=Dr(r,i);return i=a.iconName||o||i,r=a.prefix||r,r===`far`&&!fr.far&&fr.fas&&!Q.autoFetchSvg&&(r=`fas`),{prefix:r,iconName:i}}var zr=kt.filter(function(e){return e!==Ge||e!==Ke}),Br=Object.keys(Kt).filter(function(e){return e!==Ge}).map(function(e){return Object.keys(Kt[e])}).flat();function Vr(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===Ke,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&&zr.includes(n)&&(Object.keys(s).find(function(e){return Br.includes(e)})||l.autoFetchSvg)&&(r.prefix=Mt.get(n).defaultShortPrefixId,r.iconName=Dr(r.prefix,r.iconName)||r.iconName),(r.prefix===`fa`||a===`fa`)&&(r.prefix=Ar()||`fas`),r}var Hr=function(){function e(){fe(this,e),this.definitions={}}return me(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]=X(X({},e.definitions[t]||{}),i[t]),dr(t,i[t]);var n=bn[Ge][t];n&&dr(n,i[t]),wr()})}},{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}}])}(),Ur=[],Wr={},Gr={},Kr=Object.keys(Gr);function qr(e,t){var n=t.mixoutsTo;return Ur=e,Wr={},Object.keys(Gr).forEach(function(e){Kr.indexOf(e)===-1&&delete Gr[e]}),Ur.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){typeof t[e]==`function`&&(n[e]=t[e]),Te(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){Wr[e]||(Wr[e]=[]),Wr[e].push(r[e])})}e.provides&&e.provides(Gr)}),n}function Jr(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(Wr[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(r))}),t}function Yr(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Wr[e]||[]).forEach(function(e){e.apply(null,n)})}function Xr(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Gr[e]?Gr[e].apply(null,t):void 0}function Zr(e){e.prefix===`fa`&&(e.prefix=`fas`);var t=e.iconName,n=e.prefix||Ar();if(t)return t=Dr(n,t)||t,or(Qr.definitions,n,t)||or(er.styles,n,t)}var Qr=new Hr,$r={noAuto:function(){Q.autoReplaceSvg=!1,Q.observeMutations=!1,Yr(`noAuto`)},config:Q,dom:{i2svg:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Le?(Yr(`beforeI2svg`,e),Xr(`pseudoElements2svg`,e),Xr(`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;Q.autoReplaceSvg===!1&&(Q.autoReplaceSvg=!0),Q.observeMutations=!0,ir(function(){ei({autoReplaceSvgRoot:t}),Yr(`watch`,e)})}},parse:{icon:function(e){if(e===null)return null;if(Te(e)===`object`&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Dr(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=Nr(e[0]);return{prefix:n,iconName:Dr(n,t)||t}}if(typeof e==`string`&&(e.indexOf(`${Q.cssPrefix}-`)>-1||e.match(Sn))){var r=Lr(e.split(` `),{skipLookups:!0});return{prefix:r.prefix||Ar(),iconName:Dr(r.prefix,r.iconName)||r.iconName}}if(typeof e==`string`){var i=Ar();return{prefix:i,iconName:Dr(i,e)||e}}}},library:Qr,findIconDefinition:Zr,toHtml:ar},ei=function(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).autoReplaceSvgRoot,t=e===void 0?Z:e;(Object.keys(er.styles).length>0||Q.autoFetchSvg)&&Le&&Q.autoReplaceSvg&&$r.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 ar(e)})}}),Object.defineProperty(e,`node`,{get:function(){if(Le){var t=Z.createElement(`div`);return t.innerHTML=e.html,t.children}}}),e}function ni(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(Gn(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=Wn(X(X({},a),{},{"transform-origin":`${s.x+o.x/16}em ${s.y+o.y/16}em`}))}return[{tag:`svg`,attributes:i,children:t}]}function ri(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=a===!0?`${t}-${Q.cssPrefix}-${n}`:a;return[{tag:`svg`,attributes:{style:`display: none;`},children:[{tag:`symbol`,attributes:X(X({},i),{},{id:o}),children:r}]}]}function ii(e){return[`aria-label`,`aria-labelledby`,`title`,`role`].some(function(t){return t in e})}function ai(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=[Q.replacementClass,a?`${Q.cssPrefix}-${a}`:``].filter(function(e){return l.classes.indexOf(e)===-1}).filter(function(e){return e!==``||!!e}).concat(l.classes).join(` `),g={children:[],attributes:X(X({},l.attributes),{},{"data-prefix":i,"data-icon":a,class:h,role:l.attributes.role||`img`,viewBox:`0 0 ${p} ${m}`})};!ii(l.attributes)&&!l.attributes[`aria-hidden`]&&(g.attributes[`aria-hidden`]=`true`),d&&(g.attributes[rn]=``);var _=X(X({},g),{},{prefix:i,iconName:a,main:n,mask:r,maskId:c,transform:o,symbol:s,styles:X({},l.styles)}),v=r.found&&n.found?Xr(`generateAbstractMask`,_)||{children:[],attributes:{}}:Xr(`generateAbstractIcon`,_)||{children:[],attributes:{}},y=v.children,b=v.attributes;return _.children=y,_.attributes=b,s?ri(_):ni(_)}function oi(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=X(X({},a.attributes),{},{class:a.classes.join(` `)});s&&(c[rn]=``);var l=X({},a.styles);Gn(i)&&(l.transform=qn({transform:i,startCentered:!0,width:n,height:r}),l[`-webkit-transform`]=l.transform);var u=Wn(l);u.length>0&&(c.style=u);var d=[];return d.push({tag:`span`,attributes:c,children:[t]}),d}function si(e){var t=e.content,n=e.extra,r=X(X({},n.attributes),{},{class:n.classes.join(` `)}),i=Wn(n.styles);i.length>0&&(r.style=i);var a=[];return a.push({tag:`span`,attributes:r,children:[t]}),a}var ci=er.styles;function li(e){var t=e[0],n=e[1],r=xe(e.slice(4),1)[0],i=null;return i=Array.isArray(r)?{tag:`g`,attributes:{class:`${Q.cssPrefix}-${En.GROUP}`},children:[{tag:`path`,attributes:{class:`${Q.cssPrefix}-${En.SECONDARY}`,fill:`currentColor`,d:r[0]}},{tag:`path`,attributes:{class:`${Q.cssPrefix}-${En.PRIMARY}`,fill:`currentColor`,d:r[1]}}]}:{tag:`path`,attributes:{fill:`currentColor`,d:r}},{found:!0,width:t,height:n,icon:i}}var ui={found:!1,width:512,height:512};function di(e,t){!pn&&!Q.showMissingIcons&&e&&console.error(`Icon with name "${e}" and prefix "${t}" is missing.`)}function fi(e,t){var n=t;return t===`fa`&&Q.styleDefault!==null&&(t=Ar()),new Promise(function(r,i){if(n===`fa`){var a=Or(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&ci[t]&&ci[t][e]){var o=ci[t][e];return r(li(o))}di(e,t),r(X(X({},ui),{},{icon:Q.showMissingIcons&&e&&Xr(`missingIconAbstract`)||{}}))})}var pi=function(){},mi=Q.measurePerformance&&Ie&&Ie.mark&&Ie.measure?Ie:{mark:pi,measure:pi},hi=`FA "7.2.0"`,gi=function(e){return mi.mark(`${hi} ${e} begins`),function(){return _i(e)}},_i=function(e){mi.mark(`${hi} ${e} ends`),mi.measure(`${hi} ${e}`,`${hi} ${e} begins`,`${hi} ${e} ends`)},vi={begin:gi,end:_i},yi=function(){};function bi(e){return typeof(e.getAttribute?e.getAttribute(rn):null)==`string`}function xi(e){var t=e.getAttribute?e.getAttribute(sn):null,n=e.getAttribute?e.getAttribute(cn):null;return t&&n}function Si(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Q.replacementClass)}function Ci(){return Q.autoReplaceSvg===!0?Oi.replace:Oi[Q.autoReplaceSvg]||Oi.replace}function wi(e){return Z.createElementNS(`http://www.w3.org/2000/svg`,e)}function Ti(e){return Z.createElement(e)}function Ei(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).ceFn,n=t===void 0?e.tag===`svg`?wi:Ti:t;if(typeof e==`string`)return Z.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(Ei(e,{ceFn:n}))}),r}function Di(e){var t=` ${e.outerHTML} `;return t=`${t}Font Awesome fontawesome.com `,t}var Oi={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Ei(e),t)}),t.getAttribute(rn)===null&&Q.keepOriginalSource){var n=Z.createComment(Di(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~Vn(t).indexOf(Q.replacementClass))return Oi.replace(e);var r=RegExp(`${Q.cssPrefix}-.*`);if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(` `).reduce(function(e,t){return t===Q.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 ar(e)}).join(`
556
+ `);t.setAttribute(rn,``),t.innerHTML=a}};function ki(e){e()}function Ai(e,t){var n=typeof t==`function`?t:yi;if(e.length===0)n();else{var r=ki;Q.mutateApproach===un&&(r=Pe.requestAnimationFrame||ki),r(function(){var t=Ci(),r=vi.begin(`mutate`);e.map(t),r(),n()})}}var ji=!1;function Mi(){ji=!0}function Ni(){ji=!1}var Pi=null;function Fi(e){if(Fe&&Q.observeMutations){var t=e.treeCallback,n=t===void 0?yi:t,r=e.nodeCallback,i=r===void 0?yi:r,a=e.pseudoElementsCallback,o=a===void 0?yi:a,s=e.observeMutationsRoot,c=s===void 0?Z:s;Pi=new Fe(function(e){if(!ji){var t=Ar();Bn(e).forEach(function(e){if(e.type===`childList`&&e.addedNodes.length>0&&!bi(e.addedNodes[0])&&(Q.searchPseudoElements&&o(e.target),n(e.target)),e.type===`attributes`&&e.target.parentNode&&Q.searchPseudoElements&&o([e.target],!0),e.type===`attributes`&&bi(e.target)&&~Tn.indexOf(e.attributeName))if(e.attributeName===`class`&&xi(e.target)){var r=Lr(Vn(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(sn,a||t),s&&e.target.setAttribute(cn,s)}else Si(e.target)&&i(e.target)})}}),Le&&Pi.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Ii(){Pi&&Pi.disconnect()}function Li(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 Ri(e){var t=e.getAttribute(`data-prefix`),n=e.getAttribute(`data-icon`),r=e.innerText===void 0?``:e.innerText.trim(),i=Lr(Vn(e));return i.prefix||=Ar(),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix?i:(i.prefix&&r.length>0&&(i.iconName=Er(i.prefix,e.innerText)||Tr(i.prefix,lr(e.innerText))),!i.iconName&&Q.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data),i)}function zi(e){return Bn(e.attributes).reduce(function(e,t){return e.name!==`class`&&e.name!==`style`&&(e[t.name]=t.value),e},{})}function Bi(){return{iconName:null,prefix:null,transform:In,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Vi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Ri(e),r=n.iconName,i=n.prefix,a=n.rest,o=zi(e),s=Jr(`parseNodeAttributes`,{},e);return X({iconName:r,prefix:i,transform:In,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:t.styleParser?Li(e):[],attributes:o}},s)}var Hi=er.styles;function Ui(e){var t=Q.autoReplaceSvg===`nest`?Vi(e,{styleParser:!1}):Vi(e);return~t.extra.classes.indexOf(Cn)?Xr(`generateLayersText`,e,t):Xr(`generateSvgReplacementMutation`,e,t)}function Wi(){return[].concat(Se(Pt),Se(qt))}function Gi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Le)return Promise.resolve();var n=Z.documentElement.classList,r=function(e){return n.add(`${ln}-${e}`)},i=function(e){return n.remove(`${ln}-${e}`)},a=Q.autoFetchSvg?Wi():We.concat(Object.keys(Hi));a.includes(`fa`)||a.push(`fa`);var o=[`.${Cn}:not([${rn}])`].concat(a.map(function(e){return`.${e}:not([${rn}])`})).join(`, `);if(o.length===0)return Promise.resolve();var s=[];try{s=Bn(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=Ui(t);n&&e.push(n)}catch(e){pn||e.name===`MissingIcon`&&console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(l).then(function(n){Ai(n,function(){r(`active`),r(`complete`),i(`pending`),typeof t==`function`&&t(),c(),e()})}).catch(function(e){c(),n(e)})})}function Ki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ui(e).then(function(e){e&&Ai([e],t)})}function qi(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Zr(t||{}),i=n.mask;return i&&=(i||{}).icon?i:Zr(i||{}),e(r,X(X({},n),{},{mask:i}))}}var Ji=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?In: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(X({type:`icon`},e),function(){return Yr(`beforeDOMElementCreation`,{iconDefinition:e,params:t}),ai({icons:{main:li(v),mask:s?li(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:_,transform:X(X({},In),r),symbol:a,maskId:l,extra:{attributes:p,styles:h,classes:d}})})}},Yi={mixout:function(){return{icon:qi(Ji)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Gi,e.nodeCallback=Ki,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=t===void 0?Z:t,r=e.callback;return Gi(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=xe(o,2),u=l[0],d=l[1];t([e,ai({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=Wn(a);o.length>0&&(n.style=o);var s;return Gn(i)&&(s=Xr(`generateAbstractTransformGrouping`,{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},Xi={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(){Yr(`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:[`${Q.cssPrefix}-layers`].concat(Se(r)).join(` `)},children:n}]})}}}},Zi={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 Yr(`beforeDOMElementCreation`,{content:e,params:t}),si({content:e.toString(),title:r,extra:{attributes:s,styles:l,classes:[`${Q.cssPrefix}-layers-counter`].concat(Se(a))}})})}}}},Qi={mixout:function(){return{text:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?In: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 Yr(`beforeDOMElementCreation`,{content:e,params:t}),oi({content:e,transform:X(X({},In),r),extra:{attributes:s,styles:l,classes:[`${Q.cssPrefix}-layers-text`].concat(Se(a))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.transform,r=t.extra,i=null,a=null;if(Re){var o=parseInt(getComputedStyle(e).fontSize,10),s=e.getBoundingClientRect();i=s.width/o,a=s.height/o}return Promise.resolve([e,oi({content:e.innerHTML,width:i,height:a,transform:n,extra:r,watchable:!0})])}}},$i=RegExp(`"`,`ug`),ea=[1105920,1112319],ta=X(X(X(X({},{FontAwesome:{normal:`fas`,400:`fas`}}),jt),Qt),Rt),na=Object.keys(ta).reduce(function(e,t){return e[t.toLowerCase()]=ta[t],e},{}),ra=Object.keys(na).reduce(function(e,t){var n=na[t];return e[t]=n[900]||Se(Object.entries(n))[0][1],e},{});function ia(e){return lr(Se(e.replace($i,``))[0]||``)}function aa(e){var t=e.getPropertyValue(`font-feature-settings`).includes(`ss01`),n=e.getPropertyValue(`content`).replace($i,``),r=n.codePointAt(0),i=r>=ea[0]&&r<=ea[1],a=n.length===2?n[0]===n[1]:!1;return i||a||t}function oa(e,t){var n=e.replace(/^['"]|['"]$/g,``).toLowerCase(),r=parseInt(t),i=isNaN(r)?`normal`:r;return(na[n]||{})[i]||ra[n]}function sa(e,t){var n=`${on}${t.replace(`:`,`-`)}`;return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var a=Bn(e.children).filter(function(e){return e.getAttribute(an)===t})[0],o=Pe.getComputedStyle(e,t),s=o.getPropertyValue(`font-family`),c=s.match(wn),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=oa(s,l),p=ia(d),m=c[0].startsWith(`FontAwesome`),h=aa(o),g=Tr(f,p),_=g;if(m){var v=kr(p);v.iconName&&v.prefix&&(g=v.iconName,f=v.prefix)}if(g&&!h&&(!a||a.getAttribute(sn)!==f||a.getAttribute(cn)!==_)){e.setAttribute(n,_),a&&e.removeChild(a);var y=Bi(),b=y.extra;b.attributes[an]=t,fi(g,f).then(function(i){var a=ai(X(X({},y),{},{icons:{main:i,mask:jr()},prefix:f,iconName:_,extra:b,watchable:!0})),o=Z.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 ar(e)}).join(`
557
+ `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function ca(e){return Promise.all([sa(e,`::before`),sa(e,`::after`)])}function la(e){return e.parentNode!==document.head&&!~dn.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(an)&&(!e.parentNode||e.parentNode.tagName!==`svg`)}var ua=function(e){return!!e&&fn.some(function(t){return e.includes(t)})},da=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=he(n),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(ua(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(Le){var n;if(t)n=e;else if(Q.searchPseudoElementsFullScan)n=e.querySelectorAll(`*`);else{var r=new Set,i=he(document.styleSheets),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;try{var s=he(o.cssRules),c;try{for(s.s();!(c=s.n()).done;){var l=c.value,u=he(da(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){Q.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=Bn(n).filter(la).map(ca),i=vi.begin(`searchPseudoElements`);Mi(),Promise.all(r).then(function(){i(),Ni(),e()}).catch(function(){i(),Ni(),t()})})}}var pa={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?Z:t;Q.searchPseudoElements&&fa(n)}}},ma=!1,ha={mixout:function(){return{dom:{unwatch:function(){Mi(),ma=!0}}}},hooks:function(){return{bootstrap:function(){Fi(Jr(`mutationObserverCallbacks`,{}))},noAuto:function(){Ii()},watch:function(e){var t=e.observeMutationsRoot;ma?Ni():Fi(Jr(`mutationObserverCallbacks`,{observeMutationsRoot:t}))}}}},ga=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})},_a={mixout:function(){return{parse:{transform:function(e){return ga(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-transform`);return n&&(e.transform=ga(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:X({},a.outer),children:[{tag:`g`,attributes:X({},a.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:X(X({},t.icon.attributes),a.path)}]}]}}}},va={x:0,y:0,width:`100%`,height:`100%`};function ya(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 ba(e){return e.tag===`g`?e.children:[e]}qr([Qn,Yi,Xi,Zi,Qi,pa,ha,_a,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-mask`),r=n?Lr(n.split(` `).map(function(e){return e.trim()})):jr();return r.prefix||=Ar(),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=Kn({transform:o,containerWidth:l,iconWidth:s}),f={tag:`rect`,attributes:X(X({},va),{},{fill:`white`})},p=c.children?{children:c.children.map(ya)}:{},m={tag:`g`,attributes:X({},d.inner),children:[ya(X({tag:c.tag,attributes:X(X({},c.attributes),d.path)},p))]},h={tag:`g`,attributes:X({},d.outer),children:[m]},g=`mask-${a||zn()}`,_=`clip-${a||zn()}`,v={tag:`mask`,attributes:X(X({},va),{},{id:g,maskUnits:`userSpaceOnUse`,maskContentUnits:`userSpaceOnUse`}),children:[f,h]},y={tag:`defs`,children:[{tag:`clipPath`,attributes:{id:_},children:ba(u)},v]};return t.push(y,{tag:`rect`,attributes:X({fill:`currentColor`,"clip-path":`url(#${_})`,mask:`url(#${g})`},va)}),{children:t,attributes:n}}}},{provides:function(e){var t=!1;Pe.matchMedia&&(t=Pe.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:X(X({},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=X(X({},r),{},{attributeName:`opacity`}),a={tag:`circle`,attributes:X(X({},n),{},{cx:`256`,cy:`364`,r:`28`}),children:[]};return t||a.children.push({tag:`animate`,attributes:X(X({},r),{},{attributeName:`r`,values:`28;14;28;28;14;28;`})},{tag:`animate`,attributes:X(X({},i),{},{values:`1;0;1;1;0;1;`})}),e.push(a),e.push({tag:`path`,attributes:X(X({},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:X(X({},i),{},{values:`1;0;0;0;0;1;`})}]}),t||e.push({tag:`path`,attributes:X(X({},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:X(X({},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:$r}),$r.noAuto;var xa=$r.config;$r.library,$r.dom;var Sa=$r.parse;$r.findIconDefinition,$r.toHtml;var Ca=$r.icon;$r.layer,$r.text,$r.counter;function wa(e){return e-=0,e===e}function Ta(e){return wa(e)?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():``),e.charAt(0).toLowerCase()+e.slice(1))}var Ea=(e,t)=>l.default.createElement(`stop`,{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function Da(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Oa=new Map,ka=1e3;function Aa(e){if(Oa.has(e))return Oa.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=Ta(n);t[e.startsWith(`webkit`)?Da(e):e]=r}}}n=a+1}if(Oa.size===ka){let e=Oa.keys().next().value;e&&Oa.delete(e)}return Oa.set(e,t),t}function ja(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}}),ja(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=Aa(String(t));break;case e.startsWith(`aria-`):case e.startsWith(`data-`):a[e.toLowerCase()]=t;break;default:a[Ta(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(Ea)))}return e(t.tag,{...a,...u},...r)}var Ma=ja.bind(null,l.default.createElement),Na=(e,t)=>{let n=(0,l.useId)();return e||(t?n:void 0)},Pa=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 Fa=`searchPseudoElementsFullScan`in xa&&typeof xa.searchPseudoElementsFullScan==`boolean`?`7.0.0`:`6.0.0`,Ia=Number.parseInt(Fa)>=7,La=()=>Ia,Ra=`fa`,za={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`},Ba={left:`fa-pull-left`,right:`fa-pull-right`},Va={90:`fa-rotate-90`,180:`fa-rotate-180`,270:`fa-rotate-270`},Ha={"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`},Ua={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`},Wa={default:`fa-layers`};function Ga(e){let t=xa.cssPrefix||xa.familyPrefix||Ra;return t===Ra?e:e.replace(new RegExp(String.raw`(?<=^|\s)${Ra}-`,`g`),`${t}-`)}function Ka(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(za.beat),n&&x.push(za.fade),r&&x.push(za.beatFade),i&&x.push(za.bounce),a&&x.push(za.shake),o&&x.push(za.spin),c&&x.push(za.spinReverse),s&&x.push(za.spinPulse),l&&x.push(za.pulse),u&&x.push(Ua.fixedWidth),d&&x.push(Ua.inverse),f&&x.push(Ua.border),p===!0&&x.push(Ua.flip),(p===`horizontal`||p===`both`)&&x.push(Ua.flipHorizontal),(p===`vertical`||p===`both`)&&x.push(Ua.flipVertical),m!=null&&x.push(Ha[m]),h!=null&&h!==0&&x.push(Va[h]),g!=null&&x.push(Ba[g]),_&&x.push(Ua.swapOpacity),La()?(v&&x.push(Ua.rotateBy),y&&x.push(Ua.widthAuto),(xa.cssPrefix||xa.familyPrefix||Ra)===Ra?x:x.map(Ga)):x}var qa=e=>typeof e==`object`&&`icon`in e&&!!e.icon;function Ja(e){if(e)return qa(e)?e:Sa.icon(e)}function Ya(e){return Object.keys(e)}var Xa=new Pa(`FontAwesomeIcon`),Za={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},Qa=new Set(Object.keys(Za)),$a=l.default.forwardRef((e,t)=>{let n={...Za,...e},{icon:r,mask:i,symbol:a,title:o,titleId:s,maskId:c,transform:l}=n,u=Na(c,!!i),d=Na(s,!!o),f=Ja(r);if(!f)return Xa.error(`Icon lookup is undefined`,r),null;let p=Ka(n),m=typeof l==`string`?Sa.transform(l):l,h=Ja(i),g=Ca(f,{...p.length>0&&{classes:p},...m&&{transform:m},...h&&{mask:h},symbol:a,title:o,titleId:d,maskId:u});if(!g)return Xa.error(`Could not find icon`,f),null;let{abstract:_}=g,v={ref:t};for(let e of Ya(n))Qa.has(e)||(v[e]=n[e]);return Ma(_[0],v)});$a.displayName=`FontAwesomeIcon`,`${Wa.default}${Ua.fixedWidth}`;var eo={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`]},no={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`]},ro={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`]},io={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)($a,{icon:no,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)($a,{icon:s?eo:io,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]})})})},oo=({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)(J,{onCardClick:s,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:m}):m},so=({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)(J,{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})},co=e=>{if(e.distance)return e.distance.label??`${e.distance.value.toLocaleString(void 0,{maximumFractionDigits:2})} ${e.distance.unit}`},lo=e=>[e.city,e.region,e.postalCode].filter(Boolean).join(` `),uo=(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=co(e),p=lo(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:()=>uo(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:()=>uo(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:()=>uo(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:()=>uo(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]})},po=({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}`))})]})},mo=e=>{let t=e.trim().split(/\s+/).filter(Boolean);return(t.length>1?t.map(e=>e[0]).join(``):e.slice(0,2)).toUpperCase()},ho=({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??mo(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]})},go=({ranges:e,selectedRangeId:t,disabled:n=!1,ariaLabel:r=`Filter by range`,onRangeSelect:i})=>(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":r,className:`flex flex-wrap gap-2`,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:()=>i({rangeId:e.id})},e.id)})}),_o=({children:e,className:t=``,barClassName:n=``})=>(0,u.jsx)(`section`,{className:`mx-auto flex max-w-6xl justify-center ${t}`.trim(),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})})}),vo=({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})})]}),yo={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`},bo={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`}},xo=({variant:e,hasError:t,disabled:n})=>{let r=bo[e];return{wrapperClasses:[yo.wrapper,r.wrapper,t?`border-accent`:`border-secondaryHover`,n?`cursor-not-allowed opacity-60`:``].join(` `),selectClasses:[yo.select,r.select].join(` `),iconClasses:[yo.icon,r.icon].join(` `)}},So=({id:e,name:t,ariaLabel:n,options:r=[],value:i=``,placeholder:a=``,disabled:o=!1,required:s=!1,hasError:c=!1,variant:l=`field`,onChange:d,onBlur:f})=>{let{wrapperClasses:p,selectClasses:m,iconClasses:h}=xo({variant:l,hasError:c,disabled:o});return(0,u.jsxs)(`div`,{className:p,children:[(0,u.jsxs)(`select`,{id:e,name:t,"aria-label":n,value:i,disabled:o,required:s,onChange:d,onBlur:f,className:m,children:[a?(0,u.jsx)(`option`,{value:``,disabled:!0,children:a}):null,r.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:h})]})},Co=({dropdownProps:e,className:t=`w-full md:w-70`})=>(0,u.jsx)(`div`,{className:t,children:(0,u.jsx)(So,{...e})}),wo=({id:e,name:t,type:n=`text`,value:r=``,placeholder:i=``,ariaLabel:a,disabled:o=!1,readOnly:s=!1,required:l=!1,hasError:d=!1,clearable:f=!1,clearLabel:p=`Clear input`,className:m=``,inputClassName:h=``,autoComplete:_,autoFocus:v,leadingIcon:y,trailingIcon:b,onChange:x,onBlur:S,onFocus:C,onKeyDown:w,onClear:T})=>{let[E,D]=(0,c.useState)(!1),O=n===`password`,k=String(r),A=f&&!!k&&!o&&!s&&!O&&!b,j=(0,c.useMemo)(()=>O?E?`text`:`password`:n,[n,O,E]),M=(O?(0,u.jsx)(`button`,{type:`button`,onClick:()=>D(e=>!e),className:`absolute right-3 top-1/2 -translate-y-1/2`,"aria-label":E?`Hide password`:`Show password`,children:(0,u.jsx)(g,{iconName:E?`fa-eye-slash`:`fa-eye`,iconType:`fa-solid`,className:`text-sm text-secondaryActive`})}):null)||(A?(0,u.jsx)(`button`,{type:`button`,"aria-label":p,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:()=>T?.({value:k}),children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`xmark`,alt:``,size:`sm`})}):b?(0,u.jsx)(`span`,{className:`absolute right-3 top-1/2 -translate-y-1/2`,children:b}):null),N=[`w-full rounded-md border bg-white py-3 text-sm outline-none transition-colors placeholder-tertiary`,d?`border-accent text-accent`:`border-secondaryHover text-primary`,o?`cursor-not-allowed opacity-60`:``,y?`pl-10 pr-4`:`px-4`,M?`pr-12`:``,h].filter(Boolean).join(` `);return(0,u.jsxs)(`div`,{className:`relative w-full ${m}`.trim(),children:[y?(0,u.jsx)(`span`,{className:`absolute left-3 top-1/2 -translate-y-1/2`,children:y}):null,(0,u.jsx)(`input`,{id:e,name:t,type:j,value:k,placeholder:i,"aria-label":a,disabled:o,readOnly:s,required:l,autoComplete:_,autoFocus:v,className:N,onChange:x,onBlur:S,onFocus:C,onKeyDown:w}),M]})},To=({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)(wo,{...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`})})},Eo={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`},Do=({searchBarProps:e,searchPlaceholder:t,layoutVariant:n=`default`})=>(0,u.jsx)(`div`,{className:Eo[n],children:(0,u.jsx)(To,{...e,placeholder:t??e.placeholder})}),Oo=({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)(To,{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]})},ko=({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`})})})]}),Ao=({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}`))}),jo=(e,t)=>Math.max(0,Math.min(e,t-1)),Mo=(e,t,n)=>n?(e+t)%t:jo(e,t),No=e=>!!(e.eyebrow||e.heading||e.subheading||e.body||e.ctas?.length),Po=e=>`Open ${e.heading??`slide`}`,Fo=({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`})}),Io=({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)(Fo,{slide:e,heightClassName:n})}),Lo=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>(0,u.jsx)(J,{onCardClick:()=>{r(e,t)},ariaLabel:Po(e),className:`block w-full cursor-pointer text-left`,children:(0,u.jsx)(Fo,{slide:e,heightClassName:n})}),Ro=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>e.link?(0,u.jsx)(Io,{slide:e,index:t,heightClassName:n,onSlideClick:r}):r?(0,u.jsx)(Lo,{slide:e,index:t,heightClassName:n,onSlideClick:r}):(0,u.jsx)(Fo,{slide:e,heightClassName:n}),zo=({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]})})}),Bo=({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(()=>jo(t,m)),_=c.default.useRef(e);c.default.useEffect(()=>{_.current=e},[e]),c.default.useEffect(()=>{let e=jo(t,m);g(e),s?.(e,_.current[e])},[t,m,s]);let v=e[h],y=m>1,b=!!p,x=!b&&No(v),S=f??!b,C=t=>{let n=Mo(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)(Ro,{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)(zo,{slide:v}):null,n&&y?(0,u.jsx)(`div`,{className:`hidden md:block`,children:(0,u.jsx)(ko,{onPreviousClick:()=>C(h-1),onNextClick:()=>C(h+1),prevArrowButtonProps:o,nextArrowButtonProps:a})}):null,r&&y?(0,u.jsx)(Ao,{count:e.length,activeIndex:h,onDotClick:C}):null]})},Vo=e=>{let t=e.slides??[];return t.length===0?null:(0,u.jsx)(Bo,{...e,slides:t})},Ho=e=>[`relative flex h-6 w-6 items-center justify-center border border-secondaryHover`,e.disabled?`opacity-50 cursor-not-allowed`:`cursor-pointer`].join(` `),Uo=({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:Ho(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}`))})]})})},Wo=({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]}),Go=({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]})}),Ko=({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)($a,{icon:no,className:`h-4 w-4 -rotate-45 text-secondary`})})}):null]}),qo=({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]})}),Jo=({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,Yo=({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)(J,{onCardClick:r,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:o}):o},Xo=({videoEmbedUrl:e,videoTitle:t,videoMessage:n})=>{let r=n?.trim();return(0,u.jsxs)(`div`,{className:`w-full`,children:[(0,u.jsx)(N,{src:e,title:t,className:`aspect-video rounded-lg`}),r?(0,u.jsx)(f,{variant:`caption`,className:`mt-2`,children:r}):null]})},Zo=({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})]})]})}),Qo=({question:e,answer:t,initiallyOpen:n=!1})=>{let[r,i]=(0,c.useState)(n),a=(0,c.useId)();return(0,u.jsx)(J,{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`:``}`})})]})})},$o=({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}`))})]})]})},es=({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]})})},ts=[{key:`lrv`,code:`LRV`,iconName:`fa-sun`},{key:`ral`,code:`RAL`,iconName:`fa-palette`},{key:`ncs`,code:`NCS`,iconName:`fa-swatchbook`}],ns=e=>e!=null&&String(e).trim().length>0,rs=({colourMatching:e})=>{let t=ts.map(t=>({...t,value:e?.[t.key]})).filter(e=>ns(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},is=e=>[`h-9 w-9 border-2 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),as=({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,onQuantityChange:_,onRemoveItem:v})=>{let y=s>m,b=s<h,x=()=>{g||!y||_?.(s-1)},S=()=>{g||!b||_?.(s+1)},C=()=>{g||v?.()},w=d?.label||c?.label,T=`flex items-center gap-3 bg-tertiaryActive`;return g&&(T=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 ${T}`,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:w})})]}):null]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`flex shrink-0 items-center justify-end gap-1`,children:[y?(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":`Decrease quantity`,type:`button`,disabled:!y,onClick:x,className:is(y)}):(0,u.jsx)(O,{iconType:`fa-regular`,iconName:`trash-can`,intent:`ghost`,variant:`solid`,"aria-label":`Remove item`,type:`button`,onClick:C,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":`Increase quantity`,type:`button`,disabled:!b,onClick:S,className:is(b)})]}),p?(0,u.jsx)(`div`,{className:`flex w-24 shrink-0 justify-end`,children:w?(0,u.jsx)(f,{variant:`free`,className:`text-primary`,children:w}):null}):null]})]})},os=/^(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?$/,ss=new Intl.DateTimeFormat(`en-US`,{month:`long`,day:`numeric`,year:`numeric`,timeZone:`UTC`}),cs=e=>{let t=os.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)))},ls=e=>{let t=cs(e);if(t)return t;let n=new Date(e);return Number.isNaN(n.getTime())?null:n},us=e=>{let t=e?.trim();if(!t)return``;let n=ls(t);return n?ss.format(n):t},ds=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`,fs=({layoutVariant:e,mediaType:t,imageSrc:n,imageAlt:r,videoEmbedUrl:i,videoTitle:a,title:o})=>{let s=ds(e);return t===`video`&&i?(0,u.jsx)(N,{src:i,title:a??o,className:s}):n?(0,u.jsx)(j,{src:n,alt:r??``,className:s,quality:90}):null},ps=({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=us(c),y=d.trim();return(0,u.jsxs)(`article`,{className:h,children:[(0,u.jsx)(`div`,{className:g,children:fs({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]})]})},ms=({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})}})]}),hs=e=>Math.min(Math.max(e,0),100),gs={good:`text-saleGreen`,warning:`text-yellow-700`,critical:`text-accent`},_s=({title:e,score:t,scoreLabel:n,status:r=`good`,summary:i,detail:a,ariaLabel:o})=>{let s=hs(t),c=a?.trim()??``,l=gs[r];return(0,u.jsxs)(`article`,{"aria-label":o??e,className:`flex min-h-56 w-full flex-col rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-xs font-bold uppercase text-primary`,children:e}),(0,u.jsxs)(`div`,{className:`mt-4 flex flex-col gap-4 md:flex-row md:items-center`,children:[(0,u.jsx)(`div`,{"aria-label":`${s}% ${n}`,className:`flex h-28 w-28 shrink-0 items-center justify-center rounded-full ${l}`,"data-testid":`data-health-summary-card-score`,style:{background:`conic-gradient(currentColor ${s}%, #e5e7eb 0)`},children:(0,u.jsxs)(`div`,{className:`flex h-20 w-20 flex-col items-center justify-center rounded-full bg-secondary text-center`,children:[(0,u.jsxs)(f,{as:`span`,variant:`free`,className:`text-2xl font-bold text-primary`,children:[s,`%`]}),(0,u.jsx)(f,{as:`span`,variant:`free`,className:`text-xs font-semibold ${l}`,children:n})]})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:i}),c?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:c}):null]})]})]})},vs={primary:`text-primary`,blue:`text-blue-600`,purple:`text-purple-700`,green:`text-saleGreen`,red:`text-accent`,gray:`text-tertiary`},ys={primary:`text-primary!`,blue:`text-blue-600!`,purple:`text-purple-700!`,green:`text-saleGreen!`,red:`text-accent!`,gray:`text-tertiary!`},bs=({value:e,label:t,detail:n,iconName:r,iconType:i=`fa-solid`,iconAlt:a=``,tone:o=`primary`,ariaLabel:s})=>{let c=n?.trim()??``,l=vs[o],d=ys[o];return(0,u.jsxs)(`article`,{"aria-label":s??t,className:`flex min-h-56 w-full flex-col items-center justify-center rounded-lg border border-borderTertiary bg-secondary p-5 text-center shadow-sm`,children:[(0,u.jsx)(g,{iconType:i,iconName:r,alt:a,size:`xl`,className:d}),(0,u.jsx)(f,{as:`p`,variant:`free`,className:`mt-4 text-3xl font-bold ${l}`,children:e}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm font-bold text-primary`,children:t}),c?(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-sm text-primary`,children:c}):null]})},xs={safe:{iconName:`screwdriver-wrench`,iconClassName:`border-saleGreen text-saleGreen`,accentClassName:`border-l-saleGreen`,pillClassName:`bg-saleGreen/10 text-saleGreen`},warning:{iconName:`triangle-exclamation`,iconClassName:`border-yellow-500 text-yellow-700`,accentClassName:`border-l-yellow-500`,pillClassName:`bg-yellow-50 text-yellow-700`},error:{iconName:`circle-exclamation`,iconClassName:`border-accent text-accent`,accentClassName:`border-l-accent`,pillClassName:`bg-accent/10 text-accent`},review:{iconName:`users`,iconClassName:`border-purple-700 text-purple-700`,accentClassName:`border-l-purple-700`,pillClassName:`bg-purple-50 text-purple-700`},resolved:{iconName:`check`,iconClassName:`border-borderTertiary text-tertiary`,accentClassName:`border-l-borderTertiary`,pillClassName:`bg-tertiaryActive text-tertiary`}},Ss={success:`text-saleGreen`,warning:`text-orange-600`,error:`text-accent`,review:`text-purple-700`,neutral:`text-primary`},Cs=({id:e,title:t,groupCountLabel:n,description:r,status:i,stepNumber:a,recommendedActionTitle:o=`Recommended Action`,recommendedActions:s,confidenceLabel:c,confidenceTone:l=`neutral`,primaryActionLabel:d,primaryActionIconName:p=`wand-magic-sparkles`,primaryActionVariant:m=`solid`,secondaryActionLabel:h,secondaryActionIconName:_,ariaLabel:v,onPrimaryActionClick:y,onSecondaryActionClick:b})=>{let x=xs[i],S=c?.trim()??``;return(0,u.jsx)(`article`,{"aria-label":v??t,className:`w-full rounded-lg border border-l-4 border-borderTertiary bg-secondary p-4 shadow-sm ${x.accentClassName}`,children:(0,u.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-[1.4fr_1.3fr_0.55fr_9rem] md:items-center`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 gap-3`,children:[(0,u.jsxs)(`span`,{"aria-label":`${i}: ${t}`,className:`relative flex h-9 w-9 shrink-0 items-center justify-center rounded-full border ${x.iconClassName}`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:x.iconName,alt:``,size:`sm`}),a?(0,u.jsx)(`span`,{"aria-label":`Step ${a}`,className:`absolute -right-1.5 -top-1.5 flex h-5 min-w-5 items-center justify-center rounded-full border-2 border-secondary bg-primary px-1 text-[10px] font-bold leading-none text-secondary`,children:a}):null]}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:t}),(0,u.jsx)(`span`,{className:`rounded-full px-2 py-1 text-xs font-semibold ${x.pillClassName}`,children:n})]}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:r})]})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold text-primary`,children:o}),(0,u.jsx)(`ul`,{className:`mt-1 space-y-1`,children:s.map(e=>(0,u.jsxs)(`li`,{className:`flex gap-2 text-xs text-tertiary`,children:[(0,u.jsx)(`span`,{className:`mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-tertiary`}),(0,u.jsx)(`span`,{children:e})]},e))})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs text-primary`,children:`Confidence`}),S?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm font-bold ${Ss[l]}`,children:S}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[h?(0,u.jsx)(O,{label:h,variant:`outline`,intent:`primary`,size:`sm`,fullWidth:!0,className:`whitespace-nowrap`,iconType:_?`fa-solid`:void 0,iconName:_,iconAlt:``,onClick:()=>b?.({issueId:e})}):null,d?(0,u.jsx)(O,{label:d,iconType:`fa-solid`,iconName:p,iconAlt:``,variant:m,intent:`primary`,size:`sm`,fullWidth:!0,className:`whitespace-nowrap`,onClick:()=>y?.({issueId:e})}):null]})]})})},ws={green:`bg-saleGreen`,yellow:`bg-yellow-500`,orange:`bg-orange-500`,red:`bg-accent`,purple:`bg-purple-700`,gray:`bg-borderTertiary`,blue:`bg-blue-600`},Ts=({title:e,groupColumnLabel:t=`Groups`,recordColumnLabel:n=`Records`,items:r,ariaLabel:i})=>(0,u.jsxs)(`article`,{"aria-label":i??e,className:`min-h-56 w-full rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`grid grid-cols-[1fr_5rem_5rem] items-center gap-3`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-xs font-bold uppercase text-primary`,children:e}),(0,u.jsx)(f,{variant:`free`,className:`text-right text-xs text-primary`,children:t}),(0,u.jsx)(f,{variant:`free`,className:`text-right text-xs text-primary`,children:n})]}),(0,u.jsx)(`ul`,{className:`mt-3 space-y-2`,children:r.map(e=>(0,u.jsxs)(`li`,{className:`grid grid-cols-[1fr_5rem_5rem] items-center gap-3`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,u.jsx)(`span`,{"aria-label":`${e.label} marker`,className:`h-2.5 w-2.5 shrink-0 rounded-full ${ws[e.tone]}`}),(0,u.jsx)(f,{variant:`free`,className:`truncate text-sm text-primary`,children:e.label})]}),(0,u.jsx)(f,{variant:`free`,className:`text-right text-sm font-semibold text-primary`,children:e.groupCount}),(0,u.jsx)(f,{variant:`free`,className:`text-right text-sm font-semibold text-primary`,children:e.recordCount})]},e.id))})]}),Es=({title:e,description:t,totalGroupsLabel:n,visibleRangeLabel:r,issueTypeLabel:i,hasMore:a=!1,ariaLabel:o})=>{let s=t?.trim()??``,c=i?.trim()??``;return(0,u.jsxs)(`article`,{"aria-label":o??e,className:`w-full rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,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 min-w-0 gap-3`,children:[(0,u.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-purple-700 bg-purple-50 text-purple-700`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`users`,alt:``,size:`md`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:e}),s?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:s}):null]})]}),(0,u.jsxs)(`div`,{className:`grid gap-3 md:grid-cols-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:`Total Groups`}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm font-bold text-primary`,children:n})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:`Showing`}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm font-bold text-primary`,children:r})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:`Status`}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm font-bold text-primary`,children:a?`More groups available`:`End of queue`})]})]})]}),c?(0,u.jsx)(`div`,{className:`mt-4 inline-flex rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-tertiary`,children:c}):null]})},Ds=e=>e===void 0||e===``?`--`:e,Os=({groupId:e,recordId:t,hierarchyLevel:n,itemPartNumber:r,itemSku:i,productName:a,salsifyId:o,score:s,selected:c=!1,selectLabel:l=`Select`,selectedLabel:d=`Selected`,onSelect:p})=>(0,u.jsx)(`article`,{"aria-label":a?`${a} ${i}`:t,className:`w-full rounded-lg border bg-secondary p-3 ${c?`border-primary shadow-sm`:`border-borderTertiary`}`,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`,{className:`min-w-0`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2`,children:[(0,u.jsx)(`span`,{"aria-label":c?`Selected record`:`Unselected record`,className:`mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full border ${c?`border-primary bg-primary text-secondary`:`border-borderTertiary text-tertiary`}`,children:c?(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`check`,alt:``,size:`xs`}):null}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:Ds(a)}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:Ds(i)})]})]}),(0,u.jsxs)(`dl`,{className:`mt-3 grid gap-2 text-xs md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`font-bold text-tertiary`,children:`Item Part Number`}),(0,u.jsx)(`dd`,{className:`mt-1 text-primary`,children:Ds(r)})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`font-bold text-tertiary`,children:`Hierarchy Level`}),(0,u.jsx)(`dd`,{className:`mt-1 text-primary`,children:Ds(n)})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`font-bold text-tertiary`,children:`Salsify ID`}),(0,u.jsx)(`dd`,{className:`mt-1 break-words text-primary`,children:Ds(o)})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`font-bold text-tertiary`,children:`Score`}),(0,u.jsx)(`dd`,{className:`mt-1 text-primary`,children:Ds(s)})]})]})]}),(0,u.jsx)(O,{label:c?d:l,iconType:c?`fa-solid`:void 0,iconName:c?`check`:void 0,iconAlt:``,variant:c?`solid`:`outline`,intent:`primary`,size:`sm`,className:`whitespace-nowrap`,onClick:()=>p?.({groupId:e,recordId:t})})]})}),ks=({groupId:e,issueType:t,reason:n,matchReasons:r=[],conflictFields:i=[],records:a,selectedRecordId:o,resolveLabel:s=`Resolve Group`,selectLabel:c=`Select`,selectedLabel:l=`Selected`,resolveDisabled:d=!1,statusMessage:p,ariaLabel:m,onRecordSelect:h,onResolveClick:_})=>{let v=a.find(e=>e.recordId===o);return(0,u.jsxs)(`article`,{"aria-label":m??`Issue group ${e}`,className:`w-full rounded-lg border border-borderTertiary bg-secondary p-4 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`,{className:`min-w-0`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 gap-3`,children:[(0,u.jsx)(`span`,{className:`flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-purple-700 bg-purple-50 text-purple-700`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`users`,alt:``,size:`sm`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:n}),(0,u.jsxs)(f,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:[`Group ID: `,e]})]})]}),t?(0,u.jsx)(`div`,{className:`mt-3 inline-flex rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-tertiary`,children:t}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:items-end`,children:[(0,u.jsx)(O,{label:s,iconType:`fa-solid`,iconName:`wand-magic-sparkles`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,className:`whitespace-nowrap`,disabled:!v||d,onClick:()=>_?.({groupId:e,selectedRecordId:o})}),(0,u.jsx)(f,{variant:`free`,className:`text-xs text-tertiary`,children:p||(v?`Keeping ${v.itemSku??v.recordId}`:`Select the record to keep`)})]})]}),r.length>0?(0,u.jsx)(`ul`,{className:`mt-4 space-y-1`,children:r.map(e=>(0,u.jsxs)(`li`,{className:`flex gap-2 text-xs text-tertiary`,children:[(0,u.jsx)(`span`,{className:`mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-tertiary`}),(0,u.jsx)(`span`,{children:e})]},e))}):null,i.length>0?(0,u.jsxs)(`div`,{className:`mt-4 rounded-lg border border-yellow-500 bg-yellow-50 p-3`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-xs font-bold text-yellow-700`,children:`Fields needing review`}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-xs text-yellow-700`,children:i.join(`, `)})]}):null,(0,u.jsx)(`div`,{className:`mt-4 grid gap-3 md:grid-cols-2`,children:a.map(t=>(0,u.jsx)(Os,{...t,groupId:e,selected:t.recordId===o,selectLabel:c,selectedLabel:l,onSelect:h},t.recordId))})]})},As=({title:e,description:t,recalculateLabel:n=`Recalculate`,recalculating:r=!1,ariaLabel:i,onRecalculateClick:a})=>(0,u.jsx)(`article`,{"aria-label":i??e,className:`w-full rounded-lg p-2 border border-tertiary bg-adminSideNavBackground shadow-sm`,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 min-w-0 gap-3`,children:[(0,u.jsx)(`span`,{"aria-label":`Recommended next step`,className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-yellow-500 bg-yellow-50 text-yellow-700`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`lightbulb`,alt:``,size:`md`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,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 text-sm text-primary`,children:t})]})]}),(0,u.jsx)(O,{label:n,iconType:`fa-solid`,iconName:r?`spinner`:`rotate`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,className:`shrink-0 whitespace-nowrap`,disabled:r,"aria-busy":r||void 0,onClick:a})]})}),js={error:{iconName:`xmark`,className:`border-accent bg-accent/10 text-accent`},warning:{iconName:`exclamation`,className:`border-yellow-500 bg-yellow-50 text-yellow-700`},info:{iconName:`info`,className:`border-secondaryActive bg-tertiaryActive text-secondaryActive`},success:{iconName:`check`,className:`border-saleGreen bg-saleGreen/10 text-saleGreen`}},Ms=({item:e})=>{let t=js[e.status];return(0,u.jsx)(`span`,{"aria-label":`${e.status}: ${e.title}`,className:`flex h-5 w-5 shrink-0 items-center justify-center rounded-full border text-[0.625rem] ${t.className}`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:t.iconName,alt:``,size:`xs`})})},Ns=({title:e,items:t,viewAllLabel:n=`View all`,emptyMessage:r=`No messages`,ariaLabel:i,onViewAllClick:a,onMessageClick:o})=>{let s=t.length>0,c=i??e,l=e=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,u.jsx)(Ms,{item:e}),(0,u.jsx)(f,{variant:`free`,className:`truncate text-sm font-semibold text-primary`,children:e.title})]}),(0,u.jsx)(f,{variant:`free`,className:`truncate text-sm text-primary`,children:e.context}),(0,u.jsx)(f,{variant:`free`,className:`truncate text-sm text-primary`,children:e.message}),(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,u.jsx)(f,{variant:`free`,className:`whitespace-nowrap text-sm text-primary`,children:e.timestamp}),o?(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`xs`,className:`shrink-0 text-primary`}):null]})]});return(0,u.jsxs)(`article`,{"aria-label":c,className:`w-full rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`header`,{className:`flex items-center justify-between gap-4`,children:[(0,u.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,u.jsx)(g,{iconType:`fa-regular`,iconName:`bell`,alt:``,size:`lg`,className:`text-primary`}),(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:e})]}),a?(0,u.jsx)(O,{label:n,variant:`link`,intent:`primary`,size:`sm`,onClick:a}):null]}),(0,u.jsx)(`div`,{className:`mt-3 overflow-hidden rounded-lg border border-borderTertiary`,children:s?(0,u.jsx)(`ul`,{className:`divide-y divide-borderTertiary`,children:t.map(e=>(0,u.jsx)(`li`,{children:o?(0,u.jsx)(`button`,{type:`button`,className:`grid w-full grid-cols-1 items-center gap-2 px-3 py-3 text-left hover:bg-tertiaryActive md:grid-cols-[1.2fr_1.1fr_2fr_0.8fr]`,onClick:()=>o({item:e}),children:l(e)}):(0,u.jsx)(`div`,{className:`grid grid-cols-1 items-center gap-2 px-3 py-3 md:grid-cols-[1.2fr_1.1fr_2fr_0.8fr]`,children:l(e)})},e.id))}):(0,u.jsx)(f,{variant:`free`,className:`px-3 py-4 text-sm text-primary`,children:r})})]})},Ps=(e,t,n)=>Math.min(Math.max(e,t),n),Fs=({validCheckpointCount:e,totalCheckpointCount:t,summary:n,detail:r,syncLabel:i=`Sync`,syncIconName:a=`right-left`,refreshLabel:o=`Refresh`,refreshIconName:s=`arrows-rotate`,ariaLabel:c=`Status flow actions`,onSyncClick:l,onRefreshClick:d})=>{let p=Math.max(t,0),m=Ps(e,0,p),h=p>0?m/p*100:0,g=`${m}/${p}`,_=r?.trim()??``;return(0,u.jsx)(`article`,{"aria-label":c,className:`w-full rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,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-center gap-4`,children:[(0,u.jsx)(`div`,{"aria-label":`${m} of ${p} checkpoints valid`,className:`flex h-16 w-16 shrink-0 items-center justify-center rounded-full text-primary`,"data-testid":`status-flow-action-card-progress`,style:{background:`conic-gradient(currentColor ${h}%, #e5e7eb 0)`},children:(0,u.jsx)(`span`,{className:`flex h-12 w-12 items-center justify-center rounded-full bg-secondary text-sm font-bold text-primary`,children:g})}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:n}),_?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:_}):null]})]}),(0,u.jsxs)(`div`,{"data-testid":`status-flow-action-card-actions`,className:`flex w-full flex-col gap-2 md:w-44`,children:[(0,u.jsx)(O,{label:i,iconType:`fa-solid`,iconName:a,iconAlt:``,variant:`solid`,intent:`primary`,size:`md`,fullWidth:!0,className:`h-11`,onClick:l}),(0,u.jsx)(O,{label:o,iconType:`fa-solid`,iconName:s,iconAlt:``,variant:`outline`,intent:`primary`,size:`md`,fullWidth:!0,className:`h-11`,onClick:d})]})]})})},Is={active:{lineClassName:`border-saleGreen`},degraded:{lineClassName:`border-secondaryActive`},failed:{lineClassName:`border-accent`}},Ls={ok:{iconName:`check`,label:`OK`,markerClassName:`border-saleGreen bg-saleGreen/10 text-saleGreen`},warning:{iconName:`exclamation`,label:`Warning`,markerClassName:`border-yellow-500 bg-yellow-50 text-yellow-700`},error:{iconName:`xmark`,label:`Error`,markerClassName:`border-accent bg-accent/10 text-accent`},info:{iconName:`info`,label:`Info`,markerClassName:`border-primary bg-secondary text-primary`},unknown:{iconName:`question`,label:`Unknown`,markerClassName:`border-secondaryActive bg-tertiaryActive text-secondaryActive`}},Rs={default:{lineClassName:`h-8 border-l md:h-0 md:w-8 md:border-l-0 md:border-t`,markerClassName:`h-8 w-8 text-sm`,arrowheadClassName:`h-2 w-2`},compact:{lineClassName:`h-5 border-l md:h-0 md:w-3 md:border-l-0 md:border-t`,markerClassName:`h-6 w-6 text-xs`,arrowheadClassName:`h-1.5 w-1.5`}},zs={solid:`border-solid`,dotted:`border-dashed`},Bs=({variant:e=`default`,state:t=`active`,checkpointStatus:n=`ok`,checkpointLabel:r,size:i=`default`,lineVariant:a=`solid`})=>{let o=Is[t],s=Ls[n],c=Rs[i],l=zs[a],d=r??s.label;return e===`skeleton`?(0,u.jsxs)(`div`,{"aria-label":`Flow connector loading`,"aria-busy":`true`,className:`flex flex-col items-center justify-center md:flex-row`,children:[(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-line-start`,className:`${c.lineClassName} ${l} animate-pulse border-borderTertiary`}),(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-marker`,className:`shrink-0 animate-pulse rounded-full border border-borderTertiary bg-tertiaryActive ${c.markerClassName}`}),(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-line-end`,className:`${c.lineClassName} ${l} animate-pulse border-borderTertiary`}),(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-arrowhead`,className:`hidden -translate-x-1 rotate-45 animate-pulse border-r border-t border-borderTertiary md:block ${c.arrowheadClassName}`})]}):(0,u.jsxs)(`div`,{"aria-label":`Flow connector: ${d}`,className:`flex flex-col items-center justify-center md:flex-row`,children:[(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-line-start`,className:`${c.lineClassName} ${l} ${o.lineClassName}`}),(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-marker`,className:`flex shrink-0 items-center justify-center rounded-full border ${c.markerClassName} ${s.markerClassName}`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:s.iconName,alt:d,size:`xs`})}),(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-line-end`,className:`${c.lineClassName} ${l} ${o.lineClassName}`}),(0,u.jsx)(`span`,{"data-testid":`status-flow-connector-arrowhead`,className:`hidden -translate-x-1 rotate-45 border-r border-t md:block ${c.arrowheadClassName} ${o.lineClassName}`})]})},Vs=[{label:`OK`,iconName:`check`,className:`border-saleGreen bg-saleGreen/10 text-saleGreen`},{label:`Warning`,iconName:`exclamation`,className:`border-yellow-500 bg-yellow-50 text-yellow-700`},{label:`Error`,iconName:`xmark`,className:`border-accent bg-accent/10 text-accent`},{label:`Checkpoint`,iconName:`check`,className:`border-secondaryActive bg-tertiaryActive text-secondaryActive`}],Hs=[{label:`Flow active`,lineClassName:`border-saleGreen border-solid`},{label:`Degraded`,lineClassName:`border-secondaryActive border-dashed`},{label:`Failed`,lineClassName:`border-accent border-dashed`}],Us=({ariaLabel:e=`Status flow legend`,heading:t=`Legend`})=>(0,u.jsxs)(`article`,{"aria-label":e,className:`flex min-h-32 w-full flex-col rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:t}),(0,u.jsxs)(`div`,{"data-testid":`status-flow-legend-content`,className:`flex flex-1 flex-col items-center justify-center`,children:[(0,u.jsx)(`div`,{className:`flex flex-wrap items-center justify-center gap-x-7 gap-y-3`,children:Vs.map(e=>(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(`span`,{className:`flex h-5 w-5 items-center justify-center rounded-full border text-[0.625rem] ${e.className}`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:e.iconName,alt:``,size:`xs`})}),(0,u.jsx)(f,{variant:`free`,className:`text-xs font-medium text-primary`,children:e.label})]},e.label))}),(0,u.jsx)(`div`,{className:`mt-5 flex flex-wrap items-center justify-center gap-x-8 gap-y-3`,children:Hs.map(e=>(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(`span`,{"data-testid":`status-flow-legend-line-${e.label.toLowerCase().replaceAll(` `,`-`)}`,className:`block w-12 border-t ${e.lineClassName}`}),(0,u.jsx)(f,{variant:`free`,className:`text-xs font-medium text-primary`,children:e.label})]},e.label))})]})]}),Ws={ok:{badgeClassName:`border-saleGreen bg-saleGreen/10 text-saleGreen`,rowClassName:`text-saleGreen`,iconName:`check`,iconAlt:`OK`},warning:{badgeClassName:`border-yellow-500 bg-yellow-50 text-yellow-700`,rowClassName:`text-yellow-700`,iconName:`exclamation`,iconAlt:`Warning`},error:{badgeClassName:`border-accent bg-accent/10 text-accent`,rowClassName:`text-accent`,iconName:`xmark`,iconAlt:`Error`},info:{badgeClassName:`border-primary bg-secondary text-primary`,rowClassName:`text-primary`,iconName:`info`,iconAlt:`Info`},unknown:{badgeClassName:`border-secondaryActive bg-tertiaryActive text-secondaryActive`,rowClassName:`text-secondaryActive`,iconName:`question`,iconAlt:`Unknown`}},Gs=({id:e,title:t,description:n,iconName:r,iconType:i=`fa-solid`,iconAlt:a=``,status:o,statusLabel:s,variant:c=`default`,layoutVariant:l=`default`,onCardClick:d})=>{let p=c===`skeleton`,m=Ws[o],h=n?.trim()??``,_=l===`compact`,v=_?`right-2 top-2 h-5 w-5 text-[0.625rem]`:`right-2 top-2 h-6 w-6 text-xs`,y=_?`min-h-24 px-3 pb-3 pt-6`:`min-h-32 px-5 pb-5 pt-8`,b=_?`xl`:`2xl`,x=_?`mt-2 text-sm font-bold text-primary`:`mt-3 text-base font-bold text-primary`,S=_?`mt-1 text-xs text-primary`:`mt-1 text-sm text-primary`,C=_?`mx-3 border-t border-borderTertiary`:`mx-5 border-t border-borderTertiary`,w=_?`gap-1 px-3 py-2 text-xs`:`gap-2 px-5 py-3 text-sm`,T=(0,u.jsxs)(`article`,{"aria-label":`${t} loading`,"aria-busy":`true`,className:`relative flex w-full flex-col overflow-hidden rounded-lg border border-tertiary bg-secondary shadow-sm`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-6 w-6 absolute animate-pulse rounded-full bg-borderTertiary ${v}`}),(0,u.jsxs)(`div`,{className:`flex flex-col items-center justify-center text-center ${y}`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:_?`h-9 w-9 animate-pulse rounded-lg bg-borderTertiary`:`h-12 w-12 animate-pulse rounded-lg bg-borderTertiary`}),(0,u.jsx)(`span`,{"aria-hidden":`true`,className:_?`mt-3 h-3 w-10 animate-pulse rounded-full bg-borderTertiary`:`mt-4 h-4 w-12 animate-pulse rounded-full bg-borderTertiary`}),(0,u.jsx)(`span`,{"aria-hidden":`true`,className:_?`mt-2 h-2.5 w-12 animate-pulse rounded-full bg-borderTertiary`:`mt-2 h-3 w-14 animate-pulse rounded-full bg-borderTertiary`})]}),(0,u.jsx)(`div`,{className:C}),(0,u.jsx)(`div`,{"data-testid":`status-summary-card-status`,className:`flex items-center justify-center ${w}`,children:(0,u.jsx)(`span`,{"aria-hidden":`true`,className:_?`h-2.5 w-14 animate-pulse rounded-full bg-borderTertiary`:`h-3 w-16 animate-pulse rounded-full bg-borderTertiary`})})]});if(p)return T;let E=(0,u.jsxs)(`article`,{className:`relative flex w-full flex-col overflow-hidden rounded-lg border border-tertiary bg-secondary shadow-sm`,children:[(0,u.jsx)(`span`,{"aria-label":`Status: ${s}`,className:`absolute flex items-center justify-center rounded-full border ${v} ${m.badgeClassName}`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:m.iconName,alt:``,size:`xs`})}),(0,u.jsxs)(`div`,{className:`flex flex-col items-center justify-center text-center ${y}`,children:[(0,u.jsx)(g,{iconType:i,iconName:r,alt:a,size:b,className:`text-tertiary`}),(0,u.jsx)(f,{as:`h3`,variant:`free`,className:x,children:t}),h?(0,u.jsx)(f,{variant:`free`,className:S,children:h}):null]}),(0,u.jsx)(`div`,{className:C}),(0,u.jsxs)(`div`,{"data-testid":`status-summary-card-status`,className:`flex items-center justify-center font-semibold ${w} ${m.rowClassName}`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:m.iconName,alt:m.iconAlt,size:`xs`,className:`text-tertiary`}),(0,u.jsx)(`span`,{children:s})]})]});return d?(0,u.jsx)(J,{ariaLabel:`View ${t} details`,className:`block w-full cursor-pointer text-left transition hover:opacity-90 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,onCardClick:()=>d({id:e,title:t,description:n,status:o,statusLabel:s}),children:E}):E},Ks={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`}},qs=({id:e,title:t,description:n,status:r,statusLabel:i,selected:a=!1,onCardClick:o})=>{let s=Ks[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)(J,{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},Js={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`}},Ys=`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbGw9IiNFNUU1RTUiLz4KICA8cmVjdCB4PSIxIiB5PSIxIiB3aWR0aD0iMjk4IiBoZWlnaHQ9IjI5OCIgZmlsbD0iI0YzRjNGMyIgc3Ryb2tlPSIjRDBEMEQwIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBkPSJNNDggMjAzTDExMCAxNDFMMTUzIDE4NEwyMjYgMTExTDI1MiAxMzdWMjUySDQ4VjIwM1oiIGZpbGw9IiNEOEQ4RDgiLz4KICA8Y2lyY2xlIGN4PSIxMDIiIGN5PSI5MSIgcj0iMjYiIGZpbGw9IiNEOEQ4RDgiLz4KICA8dGV4dCB4PSIxNTAiIHk9IjI3OCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iIzdBN0E3QSIgZm9udC1mYW1pbHk9IkFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjE4Ij5JbWFnZSBVbmF2YWlsYWJsZTwvdGV4dD4KPC9zdmc+Cg==`,Xs=({imageSrc:e,imageFallbackSrc:t,imageAlt:n,title:r,brand:i,product:a,decorNumber:o,status:s,onSwatchClick:c})=>{let l=s?Js[s]:null,d=typeof c==`function`,p=(0,u.jsx)(F,{src:e,fallbackSrc:t,placeholderSrc:Ys,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)(J,{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]})]})},Zs=({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})})]})]}),Qs=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(` `),$s=({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:Qs(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})]})]})},ec=({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]})]}),tc={blocking:`Blocking`,recommended:`Recommended`,optional:`Optional`},nc={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`}},rc={compact:`space-y-3`,comfortable:`space-y-4`},ic={compact:`py-1`,comfortable:`rounded-lg border border-borderTertiary p-4`},ac={compact:`mb-1.5 flex flex-wrap items-center gap-2`,comfortable:`mb-2 flex flex-wrap items-center gap-2`},oc=e=>e===null?``:String(e),sc=e=>{if(e.severity)return e.severity;if(e.required)return`blocking`},cc=e=>e.required||e.severity===`blocking`,lc=e=>oc(e.value).trim()===``,uc=e=>{if(e.trim()===``)return null;let t=Number(e);return Number.isNaN(t)?null:t},dc=e=>{if(!e.validationRegex)return e.state??`neutral`;let t=oc(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`}},fc=e=>{if(cc(e)&&lc(e))return`error`;let t=dc(e);return cc(e)&&t===`neutral`?`valid`:t},pc=({title:e,description:t,fields:n,fieldGroups:r,density:i=`compact`,severityDisplay:a=`icon`,submitLabel:o=`Save Changes`,cancelLabel:s=`Cancel`,cancelDisabled:c=!1,submitDisabled:l=!1,showActions:d=!0,validationSummary:p,onDynamicFormFieldChange:m,onDynamicFormSubmit:h,onDynamicFormCancel:_})=>{let v=t?.trim()??``,y=(e,t)=>{m?.({fieldId:e.id,value:t})},b=(e,t)=>{if(e.type===`information`)return null;let n=sc(e),r=fc(e);if(t===`none`||!n||cc(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:tc[n]});let i=nc[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`})})},x=e=>{e.preventDefault(),h?.({values:n.filter(e=>e.type!==`information`).reduce((e,t)=>({...e,[t.id]:t.value}),{})})},S=e=>{let t=oc(e.value),n=fc(e)===`error`;if(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)(So,{id:e.id,name:e.id,value:t,placeholder:e.placeholder,options:e.options,disabled:e.readOnly,hasError:n,onChange:t=>y(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:()=>y(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)(ec,{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=>y(e,t)},n.value))}):e.type===`textarea`?(0,u.jsx)(I,{id:e.id,name:e.id,value:t,placeholder:e.placeholder,readOnly:e.readOnly,required:e.required,hasError:n,rows:e.rows,onChange:t=>y(e,t.target.value)}):(0,u.jsx)(wo,{id:e.id,name:e.id,type:e.type===`text`||e.type===`date`?e.type:`number`,value:t,placeholder:e.placeholder,readOnly:e.readOnly,required:e.required,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=>y(e,e.type===`text`||e.type===`date`?t.target.value:uc(t.target.value)),onClear:()=>y(e,e.type===`text`||e.type===`date`?``:null)})},C=e=>{let t=e.message?.trim()??``,n=e.helpText?.trim()??``;return!t&&!n?null:(0,u.jsx)(f,{variant:`free`,className:`ml-auto min-w-0 text-right text-xs text-tertiary`,children:t||n})},w=(e,t)=>{let n=e.label,r=e.layoutWidth===`half`?``:`md:col-span-2`;return t&&(r=`md:col-span-6`,e.layoutWidth===`half`&&(r=`md:col-span-3`),e.layoutWidth===`third`&&(r=`md:col-span-2`)),(0,u.jsxs)(`div`,{className:[ic[i],r].filter(Boolean).join(` `),children:[(0,u.jsxs)(`div`,{className:ac[i],children:[e.iconName?(0,u.jsx)(g,{iconType:`fa-solid`,iconName:e.iconName,alt:``,size:`sm`,color:`secondaryHover`,className:`w-4 shrink-0`}):null,b(e,a),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}),C(e)]}),S(e)]},e.id)},T=e=>{let t=e.some(e=>e.layoutWidth===`third`),n=e.some(e=>e.layoutWidth===`half`),r=rc[i];return n&&(r=`grid md:grid-cols-2 ${i===`compact`?`gap-3`:`gap-4`}`),t&&(r=`grid md:grid-cols-6 ${i===`compact`?`gap-3`:`gap-4`}`),(0,u.jsx)(`div`,{className:r,children:e.map(e=>w(e,t))})};return(0,u.jsxs)(`form`,{className:`space-y-5`,onSubmit:x,children:[e||v?(0,u.jsxs)(`header`,{children:[e?(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:e}):null,v?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:v}):null]}):null,(()=>{if(!r?.length)return T(n);let e=new Map(n.map(e=>[e.id,e])),t=n.filter(e=>!r.some(t=>t.fieldIds.includes(e.id)));return(0,u.jsxs)(`div`,{className:`space-y-6`,children:[r.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,T(n)]},t.id):null}),t.length?T(t):null]})})(),p,d?(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row md:justify-end`,children:[_?(0,u.jsx)(O,{label:s,variant:`outline`,intent:`primary`,disabled:c,onClick:_}):null,(0,u.jsx)(O,{label:o,variant:`solid`,intent:`primary`,type:`submit`,disabled:l})]}):null]})},mc={sm:`max-w-md`,md:`max-w-2xl`,lg:`max-w-4xl`},hc=({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 ${mc[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},gc=({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)})})},_c=({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)(gc,{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)}})},vc=`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`,yc=`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`,bc=`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`,xc=`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`,Sc=`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`,Cc=`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`,wc=`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`,Tc=`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`,Ec=`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`,Dc={formica:vc,hartsonkennedy:Sc,trespa:wc,arpa:xc,homapal:Cc,fenix:bc,broadview:Tc},Oc=e=>/^https?:\/\//i.test(e)||e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`),kc=e=>e.trim().toLowerCase().replace(/\s+/g,``).replace(/[^a-z0-9]/g,``);function Ac(e){if(!e||Oc(e))return;let t=kc(e);return Dc[t]?t:void 0}function jc(e,t){return e?Oc(e)?e:Dc[kc(e)]??t:t}function Mc(e,t){if(!e)return t;if(Oc(e))return e;let n=kc(e);return n===`formica`?yc:n===`broadview`?Ec:Dc[n]??t}var 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=jc(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)(_c,{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`,onResultClick:r,onViewAllClick:i})=>t.length?(0,u.jsxs)(`div`,{id:e,className:`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)(J,{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:()=>r?.({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:i})})]}):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)(To,{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)(po,{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=`
559
+ @keyframes top-nav-account-drawer-slide-in {
560
+ from { transform: translate3d(100%, 0, 0); }
561
+ to { transform: translate3d(0, 0, 0); }
562
+ }
563
+
564
+ @keyframes top-nav-account-drawer-slide-out {
565
+ from { transform: translate3d(0, 0, 0); }
566
+ to { transform: translate3d(100%, 0, 0); }
567
+ }
568
+
569
+ @keyframes top-nav-account-backdrop-in {
570
+ from { opacity: 0; }
571
+ to { opacity: 1; }
572
+ }
573
+
574
+ @keyframes top-nav-account-backdrop-out {
575
+ from { opacity: 1; }
576
+ to { opacity: 0; }
577
+ }
578
+
579
+ .top-nav-account-drawer-panel[data-phase="opening"] {
580
+ animation: top-nav-account-drawer-slide-in 500ms cubic-bezier(0.4, 0, 0.2, 1) both;
581
+ }
582
+
583
+ .top-nav-account-drawer-panel[data-phase="open"] {
584
+ transform: translate3d(0, 0, 0);
585
+ }
586
+
587
+ .top-nav-account-drawer-panel[data-phase="closing"] {
588
+ animation: top-nav-account-drawer-slide-out 500ms cubic-bezier(0.4, 0, 0.2, 1) both;
589
+ }
590
+
591
+ .top-nav-account-drawer-backdrop[data-phase="opening"] {
592
+ animation: top-nav-account-backdrop-in 500ms cubic-bezier(0.4, 0, 0.2, 1) both;
593
+ }
594
+
595
+ .top-nav-account-drawer-backdrop[data-phase="open"] {
596
+ opacity: 1;
597
+ }
598
+
599
+ .top-nav-account-drawer-backdrop[data-phase="closing"] {
600
+ animation: top-nav-account-backdrop-out 500ms cubic-bezier(0.4, 0, 0.2, 1) both;
601
+ }
602
+
603
+ @media (min-width: 768px) {
604
+ .top-nav-account-drawer-panel[data-phase="opening"],
605
+ .top-nav-account-drawer-panel[data-phase="closing"] {
606
+ animation-duration: 700ms;
607
+ }
608
+ }
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-50 ${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=({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,ee]=(0,c.useState)(!1),te=F!==null,R=e.find(e=>e.id===N),z=t??[],B=r??{label:`Log In`,href:`/login`},V={hasCart:a?.hasCart??!1,itemCount:a?.itemCount??0},H=i??{loggedIn:B.loggedIn??!1},U=()=>{ee(!0),w?.()},W=`Formica`,ne=d?.src??W,G=Ac(ne),K=Mc(W)??``,q=Mc(ne,K)??K,re=d?.alt??`${ne} Logo`,ie=G===`broadview`?`w-36 md:w-44`:`w-24`,ae=G===`broadview`?`h-12 md:h-14`:`h-7 md:h-10`,oe=d?.containerClassName??ie,J=d?.className??ae;(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]);let se=()=>{I(null)},ce=(e,t={})=>{t.closeMobile&&se(),P(null),h?.(e)},le=(e,t)=>{if(e.subcategories?.length&&!e.href){P(N===t?null:t);return}ce(e)},ue=(e,t={})=>{P(null),t.closeMobile&&se(),g?.(e)},de=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 ${oe} hover:bg-secondary`,onClick:m,"aria-label":`Go to home page`,children:(0,u.jsx)(j,{src:q,alt:``,className:J,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`,onClick:_}),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${V.itemCount?` (${V.itemCount})`:``}`,onClick:S,children:V.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:V.itemCount}):null}):null,l&&H.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:U}):null,(0,u.jsx)(O,{variant:`ghost`,iconType:`fa-solid`,iconName:te?`xmark`:`bars`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":te?`Close menu`:`Open menu`,onClick:()=>{I(e=>e===null?Xc:null)},"aria-expanded":te})]})]}),te?(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:()=>de(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:()=>ue(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:()=>ce(e,{closeMobile:!0})},t)}),l&&!H.loggedIn?(0,u.jsx)(`div`,{className:`border-t border-gray-200 pt-2`,children:(0,u.jsx)(O,{variant:`link`,label:B.label,className:`w-full min-w-0 px-0 py-3 text-left`,buttonAlignment:`justify-start`,onClick:()=>{se(),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 ${oe} hover:bg-secondary!`,onClick:m,"aria-label":`Go to home page`,children:(0,u.jsx)(j,{src:q,alt:re,className:J,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:()=>le(e,t),active:N===t},t)})}),(0,u.jsx)(Kc,{Countries:z,selectedCountry:n,Login:B,Account:H,Cart:V,showCart:o,showFavorites:s,showLogin:l,searchResultItems:f,searchViewAllLabel:p,onSearchClick:_,onSearchChange:v,onSearchSubmit:y,onSearchResultClick:b,onSearchViewAllClick:x,onCartClick:S,onLoginClick:C,onAccountClick:U,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:R,onMegaMenuLinkClick:ue})})})}),(0,u.jsx)(Yc,{...H,isOpen:L,onClose:()=>ee(!1),onOrderHistoryClick:T,onFavoritesClick:k,onProfileClick:E,onLogoutClick:D??C})]})},Qc=({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},$c=({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)]})})})})},el=({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=jc(r,jc(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})},tl=({primaryLogo:e,phoneLine:t,socials:n=[]})=>{let r=t?Lc(t):``;return(0,u.jsxs)(`div`,{className:`space-y-6`,children:[(0,u.jsx)(el,{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)($a,{icon:e.faIcon,className:`w-4 h-4 text-black`}):null]},`${t}-${n}`):null})}):null]})},nl=({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})},rl=({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)(nl,{item:e})},`${n}-${Lc(e.label)}-${t}`))})]},`${n}-${t}`)})})}),il=({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)(nl,{item:e,variant:`legal`},`${Lc(e.label)}-${t}`)),t?(0,u.jsx)(`div`,{className:`ml-auto`,children:(0,u.jsx)(nl,{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]})},al=({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)(el,{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)(el,{img:e,size:`affiliate`},`${e.label?Lc(e.label):``}|${Lc(e.alt)}|${Rc(e.href)}|${Lc(e.src)}|${t}`))}),i,a]})})},ol=({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)(tl,{...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)(rl,{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)(nl,{item:e,variant:`mobile`})},`${n}-${Lc(e.label)}-${t}`))})]},`${n}-${t}`)})})]}),(0,u.jsx)(al,{affiliateLogos:e.affiliateLogos,parentLogo:n,phoneLine:a?e.phoneLine:void 0}),(0,u.jsx)(il,{...i})]})})},sl=(...e)=>e.filter(Boolean).join(` `),cl=({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:sl(`relative`,i),children:[(0,u.jsx)(j,{src:c,alt:t,className:a,quality:s}),(0,u.jsx)(`div`,{className:o,children:n})]})})},ll=({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)(cl,{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)(So,{...r,value:d,onChange:g})}):null,(0,u.jsx)(`div`,{className:`w-full md:flex-1`,children:(0,u.jsx)(To,{...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`})]})]})})},ul=({imageSrc:e,imageAlt:t=`Call To Action Hero`,heading:n,subheading:r,body:i,eyebrow:a,ctas:o=[]})=>(0,u.jsx)(cl,{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)(Go,{heading:n,subheading:r,body:i,eyebrow:a,ctas:o})}),dl=({imageSrc:e,imageAlt:t=`Featured article banner`,heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})=>(0,u.jsx)(cl,{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)(Ko,{heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})}),fl=({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.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.label)}):(0,u.jsx)(`button`,{type:`button`,disabled:e.disabled,onClick:()=>n(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)`}})]})})},pl=e=>e.id||e.href||e.label,ml=({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=pl})=>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)($a,{icon:ro,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)($a,{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)(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,hl=4,gl=e=>{e.forEach(e=>{if(!e)return;let t=new window.Image;t.decoding=`async`,t.src=e})},_l=({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+hl<p.length,b=()=>h(e=>Math.max(0,e-1)),x=()=>h(e=>Math.min(Math.max(p.length-hl,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(()=>{gl(p.slice(m,m+hl*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)(fl,{items:d,value:s??d[0]?.label??``,onChange:e=>l(e),className:`mb-2`,durationMs:700}),(0,u.jsx)(ml,{items:p,startIndex:m,desktopVisibleCount:hl,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})]})]})})})},vl=e=>e===1?`md:grid-cols-1`:e===2?`md:grid-cols-2`:`md:grid-cols-3`,yl=(e,t)=>e===`vertical`&&t===2?`grid-cols-2`:e===`vertical`&&t===3?`grid-cols-3`:`grid-cols-1`,bl=e=>e===`underBanner`?`mt-10 md:mt-16`:``,xl=({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=vl(n.length),d=yl(n[0]?.cardStyle,n.length);return(0,u.jsx)(`section`,{className:`flex justify-center ${bl(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)(oo,{...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]})]})})},Sl=({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)(es,{...e},`${e.title}-${t}`))})]})}),Cl=({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)(as,{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]})},wl=(e,t,n)=>Math.max(t,Math.min(n,e)),Tl=e=>[`h-12 w-12 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),El=({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`,showFavorites:l=!0,className:d=``})=>{let[p,m]=c.default.useState(()=>wl(e,t,n));c.default.useEffect(()=>{m(wl(e,t,n))},[e,t,n]);let h=e=>{let r=wl(e,t,n);m(r),a?.(r)},g=()=>h(p-1),_=()=>h(p+1),v=p>t,y=p<n,b=()=>i(p),x=(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":`Decrease quantity`,type:`button`,disabled:!v,onClick:g,className:Tl(v)}),(0,u.jsx)(`div`,{className:`flex min-w-10 items-center justify-center`,children:(0,u.jsx)(f,{as:`span`,variant:`free`,children:p})}),(0,u.jsx)(O,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":`Increase quantity`,type:`button`,disabled:!y,onClick:_,className:Tl(y)})]}),S=(0,u.jsx)(O,{type:`button`,intent:`accent`,onClick:b,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`,d].join(` `),children:l?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`flex items-stretch gap-4`,children:[x,(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:S})]}):(0,u.jsxs)(`div`,{"aria-label":`Cart actions`,className:`flex items-stretch gap-4`,children:[x,(0,u.jsx)(`div`,{className:`min-w-0 flex-1`,children:S})]})})},Dl=({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))})]})},Ol=e=>{let{title:t,decor:n,description:r,colourMatching:i,patternRepeat:a,onDownloadSwatch:o,onDownloadFullSheet:s,tabs:c=[`Sample`,`Buy Now`],activeTab:l,onTabChange:d,productOptions:p=[],gradeOptions:m=[],textureOptions:h=[],sizeOptions:g=[],selectedProduct:_,selectedGrade:v,selectedTexture:y,selectedSize:b,onQuantityChange:x,availabilityHref:S,availabilityLabel:C=`View full product availability and information`,notReturnableText:w=`This item is not returnable.`,returnPolicyHref:T,returnPolicyLabel:E=`View return policy`,onPurchaseInfoLinkClick:D,priceLabel:k,initialQuantity:A=1,minQuantity:j=1,maxQuantity:M=99,showCartActions:N=!0,showFavorites:P=!0,actionMode:F=`cart`,contactActions:I,onAddToWishlist:L,onAddToCart:ee,onContactActionClick:te,mobileMediaSlot:R}=e,z=c.map(e=>({label:e})),B=F===`cart`&&N&&z.length>0,V=F===`contact`&&!!I,H=B&&z.length>1,U=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?.()},W=(e,t)=>n=>{e&&D&&(n.preventDefault(),D(e,t))};return(0,u.jsxs)(`div`,{className:[`w-full`,V?`md:relative md:aspect-square md:overflow-hidden`:``].join(` `),children:[(0,u.jsxs)(`div`,{className:[V?`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)(rs,{colourMatching:i})}):null,a?(0,u.jsxs)(f,{as:`p`,variant:`body`,className:`mb-4`,children:[`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:`Download Swatch`,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:`Download Full Sheet`,iconName:`fa-download`,iconType:`fa-solid`,intent:`primary`,variant:`link`,onClick:s,className:`px-0! border-0! hover:text-accent!`})]}),R?(0,u.jsx)(`div`,{className:`md:hidden mb-10`,children:R}):null,H?(0,u.jsx)(`div`,{className:`mb-5`,children:(0,u.jsx)(fl,{items:z,value:l,onChange:d,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`,B?`md:min-h-[32rem]`:``].join(` `),children:[B&&p.length?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:`Product:`}),(0,u.jsx)(Dl,{items:p,value:_??void 0,onChange:U(p)})]}):null,B&&m.length?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:`Grade:`}),(0,u.jsx)(Dl,{items:m,value:v??void 0,onChange:U(m)})]}):null,B&&h.length?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:`Texture:`}),(0,u.jsx)(Dl,{items:h,value:y??void 0,onChange:U(h)})]}):null,B&&g.length?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:`Size:`}),(0,u.jsx)(Dl,{items:g,value:b??void 0,onChange:U(g)})]}):null,B&&l===`Buy Now`?(0,u.jsxs)(`div`,{children:[S?(0,u.jsx)(f,{as:`a`,href:S,variant:`body`,className:`text-sm underline hover:text-accent`,onClick:W(S,{kind:`availability`}),children:C}):null,(0,u.jsxs)(`div`,{className:`hidden md:block text-sm md:mt-4`,children:[(0,u.jsxs)(`span`,{className:`opacity-80`,children:[w,` `]}),T?(0,u.jsx)(f,{as:`a`,href:T,variant:`body`,className:`underline hover:text-accent`,onClick:W(T,{kind:`returnPolicy`}),children:E}):null]})]}):null,B&&l===`Buy Now`&&k?(0,u.jsx)(f,{as:`p`,variant:`h3`,className:`mt-1`,children:k}):null]}),B?(0,u.jsx)(`div`,{children:(0,u.jsx)(El,{initialQuantity:A,minQuantity:j,maxQuantity:M,showFavorites:P,onAddToWishlist:L,onAddToCart:ee??(()=>{}),onQuantityChange:x,cartLabel:l===`Sample`?`Add Sample to Cart`:void 0})}):null,B&&l===`Buy Now`?(0,u.jsxs)(`div`,{className:`md:hidden text-sm pb-10`,children:[(0,u.jsxs)(`span`,{className:`opacity-80`,children:[w,` `]}),T?(0,u.jsx)(f,{as:`a`,href:T,variant:`body`,className:`underline hover:text-accent`,onClick:W(T,{kind:`returnPolicy`}),children:E}):null]}):null]})]}),V&&I?(0,u.jsx)(`div`,{className:`md:absolute md:inset-x-0 md:bottom-0`,children:(0,u.jsx)(oe,{actions:I,onActionClick:te})}):null]})},kl=(e,t)=>Math.max(0,Math.min(e,t-1)),Al=({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(()=>kl(t,p||1)),[_,v]=c.default.useState(()=>kl(t,p||1));if(c.default.useEffect(()=>{p>0&&(h(e=>kl(e,p)),v(e=>kl(e,p)))},[p]),p===0)return null;let y=t=>{let n=kl(t,p);h(n),a?.(n,e[n])},b=e=>{v(n?(e+p)%p:kl(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))})]})]})},jl=(e,t)=>Math.max(0,Math.min(e,t-1)),Ml=e=>typeof e==`string`?e.replace(/^http:\/\//i,`https://`):``,Nl=({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(()=>jl(t,s||1)),[p,m]=c.default.useState(()=>new Set);if(c.default.useEffect(()=>{s>0&&d(e=>jl(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(Ml(e)))&&r?.src?r:{src:e??``,alt:t??``},_=g(h?.image?.src,h?.image?.alt),v=Ml(_.src),y=_.alt??``,b=e=>{!e||r?.src===e||m(t=>{let n=new Set(t);return n.add(e),n.add(Ml(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)(Al,{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=Ml(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})})]})},Pl=({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)(Nl,{slides:r,initialIndex:i,text:a,fallbackImage:n})})},Fl=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},Il=(e,t)=>!!(t&&e.some(e=>(e.value??e.id)===t)),Ll=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),[])},Rl=(e,t)=>!e||!t?null:`${e}x${t}`,zl=(e,t,n)=>Math.max(t,Math.min(n,e)),Bl=(e,t=`USD`)=>new Intl.NumberFormat(`en-US`,{style:`currency`,currency:t}).format(e),Vl=e=>!!e?.length,Hl=(e,t)=>Vl(e)&&Vl(t),Ul=(e=[])=>e.some(e=>!!e.sku&&!!e.rangeId&&!!e.grade&&!!e.texture&&!!e.widthIn&&!!e.lengthIn),Wl=e=>{let{sku:t,decor:n,title:r,description:i,colourMatching:a,patternRepeat:o,onDownloadSwatch:s,onDownloadFullSheet:l,carousel:d,tabs:f=[`Sample`,`Buy Now`],initialTab:p=`Sample`,tabOptions:m,productOptions:h=[],sizeOptions:g=[],variants:_=[],currency:v,initialQuantity:y=1,minQuantity:b=1,maxQuantity:x=99,showFavorites:S=!0,actionMode:C=`cart`,contactActions:w,onAddToWishlist:T,onAddToCart:E,onContactActionClick:D,availabilityHref:O,availabilityLabel:k=`View full product availability and information`,returnPolicyHref:A,returnPolicyLabel:j=`View return policy`,notReturnableText:M=`This item is not returnable.`,onPurchaseInfoLinkClick:N}=e,P=Array.isArray(f)&&f.length?f:[`Sample`,`Buy Now`],F=m?.Sample,I=m?.[`Buy Now`],L=F?.productOptions??h??[],ee=F?.sizeOptions??g??[],te=I?.productOptions??h??[],R=Hl(L,ee),z=Vl(te)&&Ul(_),B=P.filter(e=>e===`Sample`?R:e===`Buy Now`?z:!0),V=B[0]??`Sample`,[H,U]=c.default.useState(B.includes(p)?p:V);c.default.useEffect(()=>{if(!B.length){U(`Sample`);return}B.includes(H)||U(V)},[H,B,V]);let W=m?.[H],ne=!!W,G=W?.minQuantity??b,K=W?.maxQuantity??x,q=W?.productOptions??(ne?[]:h)??[],re=H===`Buy Now`,[ie,ae]=c.default.useState(()=>({product:Fl(q),grade:null,texture:null,size:null})),oe=c.default.useRef(!1),J=Il(q,ie.product)?ie.product:Fl(q),se=re&&J?_.filter(e=>e.rangeId===J):[],ce=Ll(se.map(e=>({value:e.grade,label:e.grade}))),le=re?ce:W?.gradeOptions??[],ue=Il(le,ie.grade)?ie.grade:Fl(le),de=ue?se.filter(e=>e.grade===ue):se,fe=Ll(de.map(e=>({value:e.texture,label:e.finish||e.texture}))),pe=re?fe:W?.textureOptions??[],me=Il(pe,ie.texture)?ie.texture:Fl(pe),he=me?de.filter(e=>e.texture===me):de,Y=new Map((W?.sizeOptions??g??[]).map(e=>[e.value??e.id,e.label])),ge=Ll(he.map(e=>{let t=Rl(e.widthIn,e.lengthIn)??void 0;return{value:t,label:t?Y.get(t)??t:void 0}})),_e=re?ge:W?.sizeOptions??(ne?[]:g)??[],ve=Il(_e,ie.size)?ie.size:Fl(_e);c.default.useEffect(()=>{if(!oe.current){oe.current=!0;return}ae({product:Fl(q),grade:Fl(le),texture:Fl(pe),size:Fl(_e)})},[H]),c.default.useEffect(()=>{ae(e=>{let t=e.product&&q.some(t=>(t.value??t.id)===e.product)?e.product:Fl(q),n=e.grade&&le.some(t=>(t.value??t.id)===e.grade)?e.grade:Fl(le),r=e.texture&&pe.some(t=>(t.value??t.id)===e.texture)?e.texture:Fl(pe),i=e.size&&_e.some(t=>(t.value??t.id)===e.size)?e.size:Fl(_e);return e.product===t&&e.grade===n&&e.texture===r&&e.size===i?e:{product:t,grade:n,texture:r,size:i}})},[q,le,pe,_e]);let ye=c.default.useMemo(()=>{if(H!==`Buy Now`)return null;let e={product:J,grade:ue,texture:me,size:ve},t=_.filter(t=>{let n=Rl(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},[H,_,J,ue,me,ve]),be=H!==`Buy Now`||!!ye,X=H===`Buy Now`&&ye?ye.price?.label??Bl(ye.price?.value??0,v):``,xe=H===`Buy Now`&&ye?ye.price?.value??0:0,Se=H===`Buy Now`?ye?.sku??t:t,[Ce,we]=c.default.useState(()=>zl(y,G,K)),Te=c.default.useRef(H);c.default.useEffect(()=>{we(zl(y,G,K))},[y,G,K]),c.default.useEffect(()=>{Te.current!==H&&(Te.current=H,we(G))},[H,G]);let Ee=(e,t)=>(t??[]).map(t=>{let n=t.value??t.id;return{id:t.id,label:t.label,disabled:t.disabled,value:n,active:ie[e]===n,onOptionClick:()=>{t.disabled||(ae(t=>({...t,[e]:n})),t.onOptionClick?.(t.id))}}}),De={sku:Se,title:r,decor:n,description:i,colourMatching:a,patternRepeat:o,onDownloadSwatch:s,onDownloadFullSheet:l,tabs:B,activeTab:H,onTabChange:U,productOptions:Ee(`product`,q),gradeOptions:Ee(`grade`,le),textureOptions:Ee(`texture`,pe),sizeOptions:Ee(`size`,_e),availabilityHref:O,availabilityLabel:k,returnPolicyHref:A,returnPolicyLabel:j,notReturnableText:M,priceLabel:X,initialQuantity:Ce,minQuantity:G,maxQuantity:K,showCartActions:B.includes(H)&&be,showFavorites:S,actionMode:C,contactActions:w,selectedProduct:J,selectedGrade:ue,selectedTexture:me,selectedSize:ve,onAddToWishlist:()=>{T?.({sku:Se,decor:n})},onAddToCart:e=>{if(H===`Buy Now`&&!ye)return;let t={type:H,sku:Se,decor:n,product:J,grade:ue,texture:me,size:ve,quantity:e,priceValue:H===`Buy Now`?xe:0,priceLabel:H===`Buy Now`?X:`$0.00`,currency:v,bigCommerceProductId:ye?.bigCommerceProductId};E?.(t)},onContactActionClick:e=>{D?.({...e,sku:Se,decor:n,title:r,activeTab:H,product:J,grade:ue,texture:me,size:ve})},onQuantityChange:e=>we(e),onPurchaseInfoLinkClick:N,mobileMediaSlot:(0,u.jsx)(Pl,{carousel:d})};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)(Pl,{carousel:d})}),(0,u.jsx)(Ol,{...De})]})})})},Gl=({imageSrc:e,imageAlt:t=`Standard Copy Hero`,heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})=>(0,u.jsx)(cl,{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)(qo,{heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})})}),Kl=({categoryText:e,imageSrc:t,imageAlt:n=`Article Header`,tags:r=[],onTagClick:i})=>(0,u.jsx)(cl,{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)(Wo,{categoryText:e,tags:r,onTagClick:i})}),ql=({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)(Vo,{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`})]})})},Jl=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})})},Yl=({html:e=``,className:t=``})=>e?(0,u.jsx)(`div`,{className:`html-block ${t}`,dangerouslySetInnerHTML:{__html:e}}):null,Xl={left:`text-left`,center:`text-center`,right:`text-right`},Zl={small:`text-xl md:text-4xl`,medium:`text-2xl md:text-4xl`,large:`text-3xl md:text-5xl`},Ql=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=Xl[n],p=Xl[r],m=l?`mt-10 md:mt-20`:``,h=o?`mb-1`:`mb-4 md:mb-6`,g=`${p} ${Zl[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)(Yl,{html:a,className:d}):null]})},$l=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)(Ql,{...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)(Ql,{...a,body:t})})]})},eu=({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)(Al,{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)(so,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,title:e.title,brand:e.brand,decorNumber:e.decorNumber,onProductClick:a?()=>a(e):void 0},e.id)})]})},tu=({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)(ps,{...e})},`${e.title}-${t}`))})]})}):null,nu=({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)(Qo,{question:e.question,answer:e.answer,initiallyOpen:e.initiallyOpen},e.id))})]})}),ru=(e,t)=>e.id??[e.label,e.imageSrc,t].join(`-`),iu=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},au=({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)(V,{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)(Yo,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,onCardClick:t?()=>t({item:e,index:n}):void 0},ru(e,n)))})}):(0,u.jsx)(`section`,{className:`px-4 py-20 md:px-4`,children:iu(r).map((e,n,r)=>{let i=e.columns===3;return(0,u.jsx)(V,{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)(Yo,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,aspectRatio:i?`compact`:`video`,onCardClick:t?()=>t({item:e,index:n}):void 0},ru(e,n)))},`image-overlay-grid-row-${n}`)})})},ou={2:`md:grid-cols-2`,3:`md:grid-cols-3`,4:`md:grid-cols-4`},su=({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)(V,{columns:1,gap:`lg`,gridClassName:ou[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,cu=({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)(qs,{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)(qs,{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]}),lu=e=>(0,u.jsx)(O,{variant:`ghost`,size:`md`,...e}),uu={left:`text-left`,center:`text-center`,right:`text-right`},du={left:`justify-start text-left`,center:`justify-center text-center`,right:`justify-end text-right`},fu={xs:`w-24`,sm:`w-32`,md:`w-48`,lg:`w-64`,xl:`w-80`},pu=e=>e==null||e===``?`-`:String(e),mu=e=>e==null?``:String(e),hu=e=>e==null||String(e).trim()===``,gu=e=>e.reduce((e,t)=>(e[t.id]={...t,values:{...t.values}},e),{}),_u=({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)(gu(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(gu(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)&&hu(t.values[e.id]))},T=(e,t)=>{let n=(m[e.id]??e).values[t.id];return hu(n)?t.placeholder??`-`:t.editor===`select`?t.options?.find(e=>e.value===String(n))?.label??pu(n):pu(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&&hu(a.values[t.id]);return s?t.editor===`select`?(0,u.jsx)(`div`,{"data-data-report-cell-editor":`true`,children:(0,u.jsx)(So,{id:`${n}-editor`,name:t.id,ariaLabel:`${t.label} for row ${e.id}`,value:mu(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:mu(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:fu[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 ${fu[e.width??`md`]} ${uu[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 ${fu[t.width??`md`]} ${uu[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 ${uu[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 ${du[r]}`)},n)}),(0,u.jsx)(`td`,{className:`whitespace-nowrap px-4 py-3 text-center`,children:(0,u.jsx)(lu,{"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)(lu,{"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})})]})},vu=({groups:e,itemLabel:t=`decors`,emptyMessage:n=`No decors are available.`,showGroupHeaders:r=!0,onDecorClick:i})=>{let a=(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 o=`${a}-${n}`;return(0,u.jsxs)(`section`,{"aria-labelledby":r?o: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:o,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)(ce,{...e,onDecorClick:i},e.decorId))})]},e.id)})}):(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:n})},yu={lat:39.9612,lng:-82.9988},bu=()=>window,xu=()=>bu().google,Su=e=>{let t=bu();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)},Cu=({center:e,locations:t,selectedLocationId:n})=>{let r=t.find(e=>e.id===n);return e??r?.coordinates??t[0]?.coordinates??yu},wu=({googleMapsApiKey:e,mapId:t,locations:n,center:r,zoom:i=10,selectedLocationId:a,legendLabel:o,onLocationSelect:s})=>{let l=c.default.useRef(null),d=c.default.useRef(null),p=c.default.useRef([]),[m,h]=c.default.useState(e?`loading`:`missing-key`),_=c.default.useMemo(()=>Cu({center:r,locations:n,selectedLocationId:a}),[r,n,a]);c.default.useEffect(()=>{if(!e)return h(`missing-key`),()=>void 0;let t=!0;return h(`loading`),Su(e).then(()=>{t&&h(`loaded`)}).catch(()=>{t&&h(`error`)}),()=>{t=!1}},[e]),c.default.useEffect(()=>{if(m!==`loaded`||!l.current)return;let e=xu();e&&(d.current?(d.current.setCenter(_),d.current.setZoom(i)):d.current=new e.maps.Map(l.current,{center:_,zoom:i,mapId:t,clickableIcons:!1,fullscreenControl:!0,mapTypeControl:!1,streetViewControl:!1}))},[m,t,_,i]),c.default.useEffect(()=>{if(m!==`loaded`||!d.current)return;let e=xu();e&&(p.current.forEach(e=>e.setMap(null)),p.current=n.map((t,n)=>{let r=new e.maps.Marker({position:t.coordinates,map:d.current,title:t.name,label:String(n+1)});return r.addListener(`click`,()=>{s?.({location:t})}),r}))},[m,n,s]),c.default.useEffect(()=>{if(m!==`loaded`||!d.current||!a)return;let e=n.find(e=>e.id===a);e&&d.current.panTo(e.coordinates)},[m,n,a]),c.default.useEffect(()=>()=>{p.current.forEach(e=>e.setMap(null)),p.current=[]},[]);let v=n.slice(0,6);return(0,u.jsxs)(`section`,{className:`w-full`,"aria-label":`Locations map`,children:[(0,u.jsx)(`div`,{ref:l,"data-testid":`location-map-canvas`,className:`h-80 w-full bg-secondary/10 md:h-96`,children:m===`missing-key`||m===`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:v.map((e,t)=>(0,u.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-left text-primary`,onClick:()=>s?.({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}),o?(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:o})]}):null]})},Tu=({ariaLabel:e=`Status flow`,surfaceVariant:t=`card`,children:n})=>(0,u.jsx)(`section`,{"aria-label":e,className:t===`plain`?`w-full`:`w-full rounded-lg border border-borderTertiary bg-secondary p-4`,children:(0,u.jsx)(`div`,{"data-testid":`status-flow-diagram-content`,className:`flex flex-col items-center justify-center gap-2 md:flex-row`,children:n})}),Eu=({title:e,description:t,iconName:n,iconType:r=`fa-solid`,iconAlt:i=``,variant:a=`default`,mediaAssetCount:o,children:s})=>{let c=t?.trim()??``,l=a===`skeleton`,d=typeof o==`number`,p=o??0,m=p===1?`1 media asset`:`${p} media assets`,h=p>0;return(0,u.jsxs)(`section`,{"aria-label":e,className:`relative w-full rounded-lg border border-tertiary bg-adminSideNavBackground p-4 shadow-sm`,children:[d&&l?(0,u.jsxs)(`span`,{"aria-label":`Media asset check loading`,"aria-busy":`true`,"data-testid":`status-flow-group-media-assets`,className:`absolute right-3 top-3 inline-flex items-center gap-1.5`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-5 w-5 animate-pulse rounded-sm bg-borderTertiary`}),(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`-ml-3 -mt-3 h-5 w-5 animate-pulse rounded-full border border-borderTertiary bg-tertiaryActive`})]}):null,d&&!l?(0,u.jsxs)(`span`,{"aria-label":m,"data-testid":`status-flow-group-media-assets`,className:`absolute right-3 top-3 inline-flex items-center gap-1.5 text-xs font-semibold`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`image`,alt:``,size:`xl`,className:`shrink-0 text-tertiary`}),(0,u.jsx)(`span`,{className:`-ml-3 -mt-3 inline-flex h-5 w-5 items-center justify-center rounded-full border text-[0.625rem] leading-none ${h?`border-saleGreen bg-saleGreen/10 text-saleGreen`:`border-accent bg-accent/10 text-accent`}`,children:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:h?`check`:`xmark`,alt:``,size:`xs`,className:`text-tertiary`})})]}):null,(0,u.jsxs)(`header`,{className:`flex flex-col items-center text-center`,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-center gap-2`,children:[(0,u.jsx)(g,{iconType:r,iconName:n,alt:i,size:`2xl`,className:`text-tertiary`}),(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:e})]}),c?(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:c}):null]}),(0,u.jsx)(`div`,{"data-testid":`status-flow-group-content`,className:`mt-5 flex flex-col items-center justify-center gap-2 md:flex-row`,children:s})]})},Du=({message:e,iconName:t})=>(0,u.jsx)(`div`,{className:`mt-6 flex min-h-80 items-center justify-center rounded-lg border border-tertiary bg-adminSideNavBackground p-6 text-center`,children:(0,u.jsxs)(`div`,{className:`flex max-w-sm flex-col items-center gap-3`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:t,alt:``,size:`xl`,className:`text-primary`}),(0,u.jsx)(f,{variant:`free`,className:`text-base font-semibold text-primary`,children:e})]})}),Ou=({title:e,description:t,iconName:n=`diagram-project`,iconType:r=`fa-solid`,iconAlt:i=``,lastCheckedLabel:a,state:o=`ready`,startupMessage:s=`Enter a SKU to get started.`,errorMessage:c=`Unable to load data for this SKU.`,diagram:l,legend:d,actionCardProps:p,actions:m})=>{let h=t?.trim()??``,_=a?.trim()??``,v=m??(p?(0,u.jsx)(Fs,{...p}):null);return(0,u.jsxs)(`section`,{"aria-label":e,"aria-busy":o===`loading`,className:`w-full rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`header`,{className:`flex flex-col gap-4 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,u.jsx)(g,{iconType:r,iconName:n,alt:i,size:`lg`,className:`text-primary`}),(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:e})]}),h?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:h}):null]}),_?(0,u.jsx)(f,{variant:`free`,className:`text-xs text-primary`,children:_}):null]}),o===`idle`?(0,u.jsx)(Du,{message:s,iconName:`magnifying-glass`}):null,o===`error`?(0,u.jsx)(Du,{message:c,iconName:`triangle-exclamation`}):null,o===`ready`||o===`loading`?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{"data-testid":`status-flow-panel-diagram`,className:`mt-6`,children:l}),o===`ready`?(0,u.jsxs)(`div`,{"data-testid":`status-flow-panel-support`,className:`mt-6 grid gap-4 md:grid-cols-2`,children:[d,v]}):null]}):null]})},ku={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`}},Au={match:`text-saleGreen`,mismatch:`text-accent`,neutral:`text-tertiary`},ju=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 ${Au[n]}`,children:t}):null]})]},e.id)},Mu=(e,t,n)=>{let r=e.description?.trim()??``,i=e.actionHelpText?.trim()??``,a=ku[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(ju)}),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]})},Nu=({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=ku[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:[Mu(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))})]})},Pu=({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})]}),Fu=({options:e=[],label:t,onOptionChange:n})=>{let[r,i]=(0,c.useState)(!0);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 gap-1 w-full`,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 transition-transform duration-300 text-secondaryActive text-xs ${r?`rotate-180`:``}`})]}),r&&(0,u.jsx)(`ul`,{className:`list-none`,children:e.map(e=>(0,u.jsx)(`li`,{children:(0,u.jsx)(Pu,{id:e.id,name:e.name,label:e.label,checked:e.checked??!1,disabled:e.disabled??!1,onChange:n??e.onChange,checkboxColor:`accent-primary`})},`${e.name}-${e.id}`))})]})})},Iu=({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})})]})})},Lu=({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)(Iu,{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)(Uo,{label:e.label,options:e.options,onOptionSelect:l}),e.type===`checkbox`&&(0,u.jsx)(Fu,{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()})]})})]}),$=({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)(wo,{id:e,hasError:r,...s})]}),Ru=[{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`}],zu=[{id:`createAccount`,label:`Create Account`},{id:`signIn`,label:`Sign In`}],Bu=({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}),Vu=({data:e,actionLabels:t,onModeChange:n,onEmailChange:r,onPasswordChange:i,onFirstNameChange:a,onLastNameChange:o,onPhoneNumberChange:s,onUserTypeChange:c,onConfirmPasswordChange:l,onMarketingOptInChange:d,onTermsAcceptedChange:p,onEmailBlur:m,onPasswordBlur:h,onForgotPasswordClick:g,onTermsClick:_,onPrivacyClick:v,onSignInClick:y,onCreateAccountClick:b,onSecondaryClick:x})=>{let S=e.mode??`signIn`,C=S===`createAccount`,w=e.errors??{},T=e.userTypeOptions??Ru,E=C?t?.createAccountPrimary??`Create Account`:t?.signInPrimary??`Sign In`,D=t?.secondary??`Cancel`;return(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-8`,children:[(0,u.jsx)(gc,{ariaLabel:`Login mode`,layoutVariant:`equalWidth`,items:zu,selectedId:S,onSelect:e=>n?.(e)}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[C?(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:`First Name*`,value:e.firstName??``,placeholder:`First Name*`,hasError:!!w.firstName,errorMessage:w.firstName,autoComplete:`given-name`,onChange:a}),(0,u.jsx)($,{id:`account-access-last-name`,name:`lastName`,label:`Last Name`,value:e.lastName??``,placeholder:`Last Name`,autoComplete:`family-name`,onChange:o})]}):null,(0,u.jsx)($,{id:`account-access-email`,name:`email`,type:`email`,label:`Email`,value:e.email??``,placeholder:C?`Email*`:``,hasError:!!w.email,errorMessage:w.email,autoComplete:`email`,onChange:r,onBlur:m}),C?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)($,{id:`account-access-phone-number`,name:`phoneNumber`,type:`tel`,label:`Phone Number*`,value:e.phoneNumber??``,placeholder:`Phone Number*`,hasError:!!w.phoneNumber,errorMessage:w.phoneNumber,autoComplete:`tel`,onChange:s}),(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[(0,u.jsx)(Bu,{htmlFor:`account-access-user-type`,label:`I am a*`,errorMessage:w.userType}),(0,u.jsx)(So,{id:`account-access-user-type`,name:`userType`,placeholder:`I am a*`,value:e.userType??``,hasError:!!w.userType,options:T.map(e=>({label:e.label,value:e.value,disabled:e.disabled})),onChange:e=>c?.(e.target.value)})]})]}):null,(0,u.jsx)($,{id:`account-access-password`,name:`password`,type:`password`,label:`Password`,value:e.password??``,placeholder:C?`Password*`:``,hasError:!!w.password,errorMessage:w.password,autoComplete:C?`new-password`:`current-password`,linkText:C?void 0:`Forgot Password?`,linkHref:`#`,onLinkClick:g,onChange:i,onBlur:h}),C?(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:`Confirm Password*`,value:e.confirmPassword??``,placeholder:`Confirm Password*`,hasError:!!w.confirmPassword,errorMessage:w.confirmPassword,autoComplete:`new-password`,onChange:l}),(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=>d?.(e.target.checked),className:`h-4 w-4 shrink-0 accent-accent`}),(0,u.jsx)(`span`,{children:`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":`I agree to Formica's Terms of Use and Privacy Policy`,checked:e.termsAccepted??!1,onChange:e=>p?.(e.target.checked),className:`h-4 w-4 shrink-0 accent-accent`}),(0,u.jsxs)(`span`,{children:[`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:`Terms of Use`,onClick:_}),` `,`and`,` `,(0,u.jsx)(O,{type:`button`,variant:`link`,intent:`accent`,className:`p-0! text-sm leading-5 align-baseline`,label:`Privacy Policy`,onClick:v}),`.`]})]}),w.termsAccepted?(0,u.jsx)(f,{variant:`caption`,className:`text-accent`,children:w.termsAccepted}):null]})]}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 ${C?`mb-8`:``}`,children:[(0,u.jsx)(O,{type:`button`,variant:`solid`,intent:`accent`,className:`w-full`,onClick:C?b:y,children:E}),(0,u.jsx)(O,{type:`button`,variant:`outline`,intent:`primary`,className:`w-full border-primary text-primary`,onClick:x,children:D})]})]})},Hu=({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 border-b border-borderTertiary 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`,{className:`flex w-full`,role:`tablist`,children:n.map(e=>{let t=e.id===r;return(0,u.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":t,className:`min-w-0 flex-1 border-b-2 px-2 py-4 text-xs font-semibold transition md:px-5 md:text-sm ${t?`border-primary text-primary`:`border-transparent text-secondaryActive hover:border-borderTertiary hover:text-primary`}`,onClick:()=>o({item:e}),children:e.label},e.id)})})}),(0,u.jsx)(`main`,{className:`pt-8 md:pt-10`,children:t})]})}),Uu=({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)})})},Wu=({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)(rs,{colourMatching:e.colourMatching})]}):null,Gu=({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,Ku=(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},qu=({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:Ku(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:Ku(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,Ju=[{label:`Product Details`,value:`details`},{label:`Texture`,value:`texture`},{label:`Size & Grade Guide`,value:`sizeAndGrade`}],Yu=(e,t)=>e?.length?t&&e.some(e=>e.id===t)?t:e[0].id:``,Xu=e=>{typeof window>`u`||e.forEach(e=>{if(!e)return;let t=new window.Image;t.src=e})},Zu=({ranges:e,defaultTab:t=`details`,defaultRangeId:n,selectedGrade:r})=>{let[i,a]=c.default.useState(t),[o,s]=c.default.useState(Yu(e,n));if(c.default.useEffect(()=>{s(Yu(e,n))},[e,n]),c.default.useEffect(()=>{let t=e?.flatMap(e=>e.texture?.groups??[]).flatMap(e=>e.items??[]).map(e=>e.imageSrc).filter(e=>!!e)??[];Xu([...new Set(t)])},[e]),!e?.length)return null;let l=e.find(e=>e.id===o)??e[0],d=e=>Ju.find(t=>t.value===e)?.label??Ju[0].label,f=e=>Ju.find(t=>t.label===e)?.value??`details`;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)(fl,{items:Ju.map(e=>({label:e.label,disabled:!1})),value:d(i),onChange:e=>a(f(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)(Uu,{items:e.map(e=>({id:e.id,label:e.label})),value:l.id,onChange:e=>s(e)})}),(0,u.jsx)(`div`,{children:(()=>{switch(i){case`details`:return(0,u.jsx)(Wu,{data:l.details});case`texture`:return(0,u.jsx)(Gu,{data:l.texture});case`sizeAndGrade`:return(0,u.jsx)(qu,{data:l.sizeAndGrade,selectedGrade:r});default:return null}})()})]})})]})},Qu=({isOpen:e,title:t=`My Cart`,projectName:n=``,items:r=[],className:i=``,onClose:a,onProjectNameChange:o,onQuantityChange:s,onRemoveItem:c,onClearCart:l,onGoToCart:d})=>{if(!e)return null;let p=r.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":`Close cart overlay`,className:`absolute inset-0 bg-black/40`,onClick:a}),(0,u.jsxs)(`aside`,{className:`relative z-10 flex h-full w-full max-w-md flex-col bg-white shadow-xl ${i}`,"aria-label":`Shopping cart flyout`,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":`Close cart`,onClick:a,className:`text-secondaryActive!`})]}),(0,u.jsx)(`div`,{className:`mt-6 px-6`,children:(0,u.jsx)(`input`,{type:`text`,value:n,onChange:e=>o?.(e.target.value),placeholder:`Enter project name`,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:p?(0,u.jsx)(`div`,{className:`flex flex-col gap-4`,children:r.map(e=>(0,u.jsx)(ae,{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,onQuantityChange:t=>s?.(e.id,t),onRemoveItem:()=>c?.(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:`Your cart is empty.`})})}),(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:`Go to Cart`,intent:`accent`,variant:`solid`,onClick:d,disabled:!p,className:`w-full`}),(0,u.jsx)(O,{label:`Clear Cart`,intent:`secondary`,variant:`solid`,onClick:l,disabled:!p,className:`w-full`})]})})]})]})};function $u(e=[]){return e.reduce((e,t)=>(e[t.id]=t,e[t.value]=t,e),{})}var ed=(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})),td=(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}))},nd=(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)},[])},rd=(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},[])},id=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??[]})),ad=e=>e?`Grade ${e}`:``,od=({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.ranges??[],y=f.standardCopyHero,b=f.featuredProducts??[],x=m?.colourMatching,S=g?.ranges??[],C=g?.textures??[],w=g?.sizes??[],T=g?.sampleSizes??[],E=$u(S),D=$u(C),O=$u(w),k=$u(T),A=_?.tabOptions?.Sample??{},j=_?.tabOptions?.[`Buy Now`]??{},M=_?.defaults??{},N=td(f.variants??[]),P=f.variants?.[0]?.grade??null,[F,I]=c.default.useState(ad(P));c.default.useEffect(()=>{I(ad(P))},[P]);let L=N.map(e=>{let t=ad(e.value);return{...e,active:t===F,onOptionClick:()=>I(t)}}),ee=A.productOptionIds,te=ee?.filter(e=>!!E[e])??[],R=ee?.length?te:rd(f.variants??[]),z=A.textureOptionIds,B=z?.filter(e=>!!D[e])??[],V=z?.length?ed(D,B,M.texture??null):nd(f.variants??[],M.texture??null),H=j.productOptionIds,U=H?.filter(e=>!!E[e])??[],W=H?U:S.map(e=>e.id),ne={sku:m?.sku??``,decor:m?.decor??``,title:m?.title??``,description:m?.description??``,colourMatching:x,patternRepeat:m?.patternRepeat??``,variants:f.variants??[],onDownloadSwatch:()=>r?.(f),onDownloadFullSheet:()=>i?.(f),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:Ys,alt:`Product image unavailable`}},tabs:g?.purchaseTabs??[`Sample`,`Buy Now`],initialTab:h?.defaultPurchaseTab??`Buy Now`,tabOptions:{Sample:{minQuantity:A.minQuantity,maxQuantity:A.maxQuantity,productOptions:ed(E,R,h?.defaultRangeId??S[0]?.value??null),gradeOptions:[],textureOptions:V,sizeOptions:ed(k,A.sizeOptionIds??[],null)},"Buy Now":{minQuantity:j.minQuantity,maxQuantity:j.maxQuantity,productOptions:ed(E,W,h?.defaultRangeId??S[0]?.value??null),gradeOptions:L,textureOptions:ed(D,j.textureOptionIds??[],M.texture??null),sizeOptions:ed(O,j.sizeOptionIds??[],M.size??null)}},productOptions:ed(E,W,h?.defaultRangeId??S[0]?.value??null),gradeOptions:L,selectedGrade:F,textureOptions:ed(D,j.textureOptionIds??[],M.texture??null),sizeOptions:ed(O,j.sizeOptionIds??[],M.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:M.quantity??1,minQuantity:M.minQuantity??1,maxQuantity:M.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},G={ranges:v.map(e=>{let t=e.sizeAndGrade?.definitions??[],n=id(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`,defaultRangeId:h?.defaultRangeId??v[0]?.id??``,selectedGrade:F,className:``},K=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)($c,{...e}),(0,u.jsx)(Wl,{...ne}),(0,u.jsx)(Zu,{...G}),(0,u.jsx)(`div`,{className:`hidden md:block`,children:y&&(0,u.jsx)(Gl,{imageSrc:y.imageSrc??``,imageAlt:y.imageAlt??`Visualize This Product`,heading:y.heading??`Visualize This Product`,subheading:y.subheading??``,body:y.body??``,linkLabel:y.linkLabel??`See In Situation`,linkHref:y.linkHref??`#`})}),b.length>0&&(0,u.jsx)(eu,{title:`Trending Products`,items:b,onItemClick:K})]}),d?(0,u.jsx)(Qu,{...d}):null]})},sd=({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)})})})},cd=({standardCopyHeroProps:e,multiButtonBarProps:t,featuredArticleBannerProps:n,featureCardCollectionProps:r})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Gl,{...e}),(0,u.jsx)(sd,{...t}),(0,u.jsx)(dl,{...n}),(0,u.jsx)(xl,{...r})]}),ld=(e,t)=>e.id??[e.decorNumber,e.title,e.brand,e.product,e.status??`standard`,t].join(`-`),ud=({swatches:e=[],onSwatchClick:t})=>(0,u.jsx)(V,{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)(Xs,{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},ld(e,n))})}),dd=e=>e.flatMap(e=>e.options.filter(e=>e.checked).map(e=>({id:e.id,label:e.label}))),fd=(e,t,n)=>e.map(e=>({...e,options:e.options.map(e=>e.id===t?{...e,checked:n}:e)})),pd=e=>e.map(e=>({...e,options:e.options.map(e=>({...e,checked:!1}))})),md=e=>e.tabs?.selectedValue??e.tabs?.options[0]?.value??``,hd=e=>e.filters.sort?.value??e.filters.sort?.options?.[0]?.value??e.filters.sort?.options?.[0]?.label??``,gd=e=>e.filters.search?.value??``,_d=e=>e.filters.panel?e.filters.toggleButton?.initiallyVisible??!0:!1,vd=({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(()=>_d(e)),m=e.filters.panel?.sections??[],h=md(e),g=hd(e),_=gd(e),v=e.tabs,y=e.filters.sort,b=e.filters.search,x=e.filters.panel,S=!!(x||y||b),C=c.default.useMemo(()=>dd(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(fd(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`checkbox`})},[j,m]),N=c.default.useCallback(e=>{j(fd(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`colorSwatch`})},[j,m]),P=c.default.useCallback(()=>{j(pd(m),{action:`clear-all`})},[j,m]);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)(Gl,{...e.hero,onLinkClick:()=>n?.(e)}),v?(0,u.jsx)(sd,{options:v.options,selectedValue:h,onSelect:t=>{r?.(t,e)}}):null,S?(0,u.jsxs)(_o,{barClassName:e.filters.barClassName,children:[x?(0,u.jsx)(vo,{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)(Co,{className:`hidden md:block md:w-70`,dropdownProps:{...y,value:g,onChange:t=>{i?.(t.target.value,e)}}}):null,b?(0,u.jsx)(Do,{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)(Lu,{header:T,headerIcon:x.headerIcon,resetLabel:E,applyFiltersLabel:D,sections:m,appliedOptions:{header:O,clearAllLabel:E,optionsList:C,onRemoveOption:e=>{j(fd(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)(Lu,{header:T,headerIcon:x.headerIcon,resetLabel:E,applyFiltersLabel:D,sections:m,appliedOptions:{header:O,clearAllLabel:E,optionsList:C,onRemoveOption:e=>{j(fd(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)(ud,{swatches:e.decorGrid.swatches,onSwatchClick:(t,n)=>s?.(t,n,e)})})]})]})},yd=({images:e=[],onImageClick:t})=>(0,u.jsx)(V,{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)(J,{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}`))}),bd=({standardCopyHeroProps:e,multiButtonBarProps:t,filterBarProps:n,dropdownFilterPropsList:r,imageGridProps:i})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Gl,{...e}),(0,u.jsx)(sd,{...t}),(0,u.jsx)(_o,{...n,children:r.map(e=>(0,u.jsx)(Co,{...e},e.dropdownProps.id))}),(0,u.jsx)(yd,{...i})]}),xd=({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)(Zo,{title:e.title,details:e.details,iconName:e.iconName,onDocumentClick:e.onDocumentClick},e.id))})]})}),Sd=({standardCopyHeroProps:e,multiButtonBarProps:t,warrantyCardProps:n,documentLinkCollectionProps:r,infoCardProps:i,faqCardCollectionProps:a})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Gl,{...e}),(0,u.jsx)(sd,{...t}),(0,u.jsx)(R,{spacing:`section`,children:(0,u.jsx)($l,{...n})}),(0,u.jsx)(xd,{...r}),(0,u.jsx)(R,{spacing:`section`,children:(0,u.jsx)($o,{...i})}),(0,u.jsx)(nu,{...a})]}),Cd=(e,t)=>e.id??[e.decorNumber,e.title,e.brand,e.rangeCode,t].join(`-`),wd=(e,t)=>e.slice(0,Math.max(0,Math.min(t??e.length,e.length))),Td=(e,t,n)=>n??`View ${e} more ${t}`,Ed=({searchFilterProps:e,decorResultsProps:t,resourceResultsProps:n,noResultsMessage:r})=>{let i=t?.items??[],a=n?.items??[],o=wd(i,t?.visibleItemCount),s=wd(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)(R,{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)(Do,{...e,layoutVariant:`full`})]}),m&&t?(0,u.jsxs)(R,{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)(Xs,{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},Cd(e,n)))}),c>0?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(O,{variant:`outline`,intent:`accent`,size:`sm`,label:Td(c,`decor results`,t.viewMoreLabel),onClick:t.onViewMoreClick})}):null]}):null,h&&n?(0,u.jsxs)(R,{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)(ps,{...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:Td(l,`resources`,n.viewMoreLabel),onClick:n.onViewMoreClick})}):null]}):null,g?null:(0,u.jsx)(R,{spacing:`paddedSection`,children:(0,u.jsx)(f,{variant:`body`,children:r})})]})},Dd=({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)(Vu,{...n,onSecondaryClick:t})})]})}),Od=e=>(e.options.find(t=>t.value===e.selectedValue)??e.options[0])?.label??``,kd=({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=Od(e.tabs);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)(ll,{...e.banner,onProductChange:t=>n?.(t,e),onSearchSubmit:t=>r?.(t,e)}),(0,u.jsx)(R,{spacing:`none`,className:`mb-8 pt-10`,innerClassName:`flex justify-center`,children:(0,u.jsx)(fl,{className:`w-full`,items:e.tabs.options.map(e=>({label:e.label,disabled:e.disabled})),value:m,onChange:t=>{let n=e.tabs.options.find(e=>e.label===t);n&&i?.({label:n.label,value:n.value},e)}})}),(0,u.jsx)(R,{spacing:`none`,className:`mb-8 pb-10 md:mb-10`,children:(0,u.jsx)(wu,{...e.map,locations:e.locations,selectedLocationId:e.map.selectedLocationId??p,onLocationSelect:t=>a?.(t,e)})}),d?(0,u.jsx)(su,{...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)(R,{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]})})]})},Ad=({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`})})]})}),jd=({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]})})},Md=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]}),Nd=({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]})]}),Md({title:n.title||`Shipping Address`,...n}),Md({title:r.title||`Billing Address`,...r})]})]})}),Pd=({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)(as,{...e,isReadOnly:!0,showPricing:t})},`${e.decorNumber||e.title||`item`}-${n}`))})]})})},Fd=({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)(Ad,{...e}),(0,u.jsxs)(`div`,{className:`px-12 pb-16`,children:[(0,u.jsx)(`div`,{className:`mt-10`,children:(0,u.jsx)(Nd,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Pd,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(jd,{...r})})]})]})}),Id=({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:g=``,addressRegionVariant:_=`default`,countryDisplayMode:v=`select`,countryOptions:y=[],stateProvinceOptions:b=[],userTypeOptions:x=[],userTypePlaceholder:S=`I am a*`,cityPlaceholder:C,postalCodePlaceholder:w,stateProvincePlaceholder:T,showCompanyName:E=!0,errors:D={},onFirstNameChange:O,onLastNameChange:k,onEmailChange:A,onPhoneNumberChange:j,onCompanyNameChange:M,onUserTypeChange:N,onAddressChange:P,onApartmentChange:F,onPostalCodeChange:I,onCityChange:L,onCountryChange:ee,onStateProvinceChange:te,onFirstNameBlur:R,onLastNameBlur:z,onEmailBlur:B,onPhoneNumberBlur:V,onCompanyNameBlur:H,onUserTypeBlur:U,onAddressBlur:W,onApartmentBlur:ne,onPostalCodeBlur:G,onCityBlur:K,onCountryBlur:q,onStateProvinceBlur:re})=>{let ie=_===`ca`||_===`mx`,ae=C??`City`,oe=w??`Postal Code`,J=T??(_===`ca`?`Province`:`State/Province`),se=h??y.find(e=>e.value===m)?.label??m,ce=(0,u.jsx)($,{id:`${t}-city`,name:`city`,placeholder:ae,value:p,hasError:!!D.city,errorMessage:D.city,onChange:L,onBlur:K}),le=(0,u.jsx)($,{id:`${t}-postal-code`,name:`postalCode`,placeholder:oe,value:d,hasError:!!D.postalCode,errorMessage:D.postalCode,onChange:I,onBlur:G}),ue=(0,u.jsx)(So,{id:`${t}-state-province`,name:`stateProvince`,options:b,value:g,placeholder:J,hasError:!!D.stateProvince,variant:`field`,onChange:te,onBlur:re}),de=v===`readonly`?(0,u.jsx)($,{id:`${t}-country`,name:`country`,placeholder:`Country`,value:se,readOnly:!0,hasError:!!D.country,errorMessage:D.country}):(0,u.jsx)(So,{id:`${t}-country`,name:`country`,options:y,value:m,placeholder:`Country`,hasError:!!D.country,variant:`field`,onChange:ee,onBlur:q});return(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:[(0,u.jsx)($,{id:`${t}-first-name`,name:`firstName`,placeholder:`First Name`,value:n,hasError:!!D.firstName,errorMessage:D.firstName,onChange:O,onBlur:R}),(0,u.jsx)($,{id:`${t}-last-name`,name:`lastName`,placeholder:`Last Name`,value:r,hasError:!!D.lastName,errorMessage:D.lastName,onChange:k,onBlur:z}),(0,u.jsx)($,{id:`${t}-email`,name:`email`,type:`email`,placeholder:`Email`,value:i,hasError:!!D.email,errorMessage:D.email,onChange:A,onBlur:B}),(0,u.jsx)($,{id:`${t}-phone-number`,name:`phoneNumber`,type:`tel`,placeholder:`Phone Number`,value:a,hasError:!!D.phoneNumber,errorMessage:D.phoneNumber,onChange:j,onBlur:V}),x.length>0?(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)(So,{id:`${t}-user-type`,name:`userType`,options:x,value:s,placeholder:S,hasError:!!D.userType,variant:`field`,onChange:e=>N?.(e.target.value),onBlur:U})}):null,E?(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-company-name`,name:`companyName`,placeholder:`Company Name (Optional)`,value:o,hasError:!!D.companyName,errorMessage:D.companyName,onChange:M,onBlur:H})}):null,(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-address`,name:`address`,placeholder:`Address`,value:c,hasError:!!D.address,errorMessage:D.address,onChange:P,onBlur:W})}),(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-apartment`,name:`apartment`,placeholder:`Apartment/Suite/Building (Optional)`,value:l,hasError:!!D.apartment,errorMessage:D.apartment,onChange:F,onBlur:ne})}),ie?(0,u.jsxs)(u.Fragment,{children:[ce,ue,le,de]}):(0,u.jsxs)(u.Fragment,{children:[le,ce,de,ue]})]})]})},Ld=({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)(ec,{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))})]}),Rd=({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}`)})})},zd=({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)(Id,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Ld,{...t})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Rd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Cl,{...r})}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(O,{label:i,intent:`accent`,fullWidth:!0,onClick:a})})]})]})})}),Bd=({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)(as,{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)(Rd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Cl,{...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})]})]})]})})}),Vd=({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)(Ad,{...e}),(0,u.jsxs)(`div`,{className:`px-12 pb-16`,children:[(0,u.jsx)(`div`,{className:`mt-10`,children:(0,u.jsx)(Nd,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Pd,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(jd,{...r})})]})]})}),Hd=({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`,showDiscountCode:v=!0,onDiscountCodeChange:y,onApplyDiscount:b,onContinue:x,className:S=``})=>{let C=!!(e.trim()&&d),w=!!(p.trim()&&p!==`Not calculated`),T=w?p:`Not calculated`,E=!!(m.trim()&&m!==`Not calculated`),D=E?m:`Not calculated`,[k,A]=c.default.useState(!0),j=t!==`idle`&&!!n&&(t!==`success`||k),M=t===`success`;return c.default.useEffect(()=>{if(A(!0),t!==`success`)return;let e=window.setTimeout(()=>{A(!1)},2200);return()=>{window.clearTimeout(e)}},[t,n]),(0,u.jsxs)(`section`,{className:`flex w-full flex-col gap-8 ${S}`,children:[v?(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)(wo,{id:`cart-totals-discount-code`,name:`discountCode`,value:e,placeholder:`Enter discount code`,hasError:t===`error`,onChange:y}),j?M?(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:`Apply`,onClick:b,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})]}),C?(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:w?``:`text-secondaryActive`,children:T})]}),(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:E?``:`text-secondaryActive`,children:D})]}),(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:x,children:_})]})},Ud=({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)(Ld,{...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})]})]})]}),Wd=({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)(Ld,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Ud,{...t})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Rd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Hd,{...r})})]})]})}),Gd=({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)(Id,{...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)(Pu,{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)(Id,{...t,idPrefix:t.idPrefix??`billing`,title:t.title??``,countryOptions:p,stateProvinceOptions:m})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Rd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Hd,{...r})})]})]})})},Kd=e=>new Intl.NumberFormat(`en-US`,{style:`currency`,currency:`USD`}).format(e),qd=({subtotal:e,shippingCost:t,items:n=[],onQuantityChange:r,onRemoveItem:i})=>{if(n.length===0)return null;let a=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:`Order Summary`}),(0,u.jsx)(`ol`,{className:`flex flex-col min-h-[24rem]`,children:n.map((e,t)=>{let a=t===n.length-1;return(0,u.jsxs)(`li`,{children:[(0,u.jsx)(as,{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,onQuantityChange:t=>r?.(e.id,t),onRemoveItem:()=>i?.(e.id)}),a?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:`Total`}),(0,u.jsx)(f,{variant:`free`,className:`text-right font-bold pr-7`,children:Kd(a)})]})})]})})},Jd=({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,onModeChange:O,onEmailChange:k,onPasswordChange:A,onFirstNameChange:j,onLastNameChange:M,onPhoneNumberChange:N,onUserTypeChange:P,onConfirmPasswordChange:F,onMarketingOptInChange:I,onTermsAcceptedChange:L,onEmailBlur:ee,onPasswordBlur:te,onForgotPasswordClick:R,onTermsClick:z,onPrivacyClick:B,onContinue:V,onContinueAsGuest:H})=>(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-8`,children:[(0,u.jsx)(Rd,{steps:t,currentStep:e}),(0,u.jsx)(Vu,{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:{signInPrimary:`Continue`,createAccountPrimary:`Continue`,secondary:`Continue as guest`},onModeChange:O,onEmailChange:k,onPasswordChange:A,onFirstNameChange:j,onLastNameChange:M,onPhoneNumberChange:N,onUserTypeChange:P,onConfirmPasswordChange:F,onMarketingOptInChange:I,onTermsAcceptedChange:L,onEmailBlur:ee,onPasswordBlur:te,onForgotPasswordClick:R,onTermsClick:z,onPrivacyClick:B,onSignInClick:V,onCreateAccountClick:V,onSecondaryClick:H})]}),Yd=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)(Rd,{...e.checkoutProgressIndicatorProps}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(qd,{...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)(qd,{...e.cartSummaryProps}),(0,u.jsx)(Jd,{...e.checkoutAccountStepProps})]})}),Xd=({pageTitle:e,pageDescription:t,sideNavProps:n,headerLeading:r,headerActions:i,children:a})=>{let o=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)($s,{...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}),o?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:o}):null]}),i?(0,u.jsx)(`div`,{className:`shrink-0`,children:i}):null]}),a]})]})})},Zd={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`}},Qd=e=>{if(e===`loading`)return`status`;if(e===`error`)return`alert`},$d=({status:e,onRetryClick:t})=>{if(e.state===`ready`)return null;let n=Zd[e.state],r=e.title?.trim()||n.defaultTitle,i=e.message?.trim()??``,a=e.detail?.trim()??``;return(0,u.jsx)(`section`,{role:Qd(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:n.iconName,alt:``,size:`2xl`,className:n.iconClassName}),(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`mt-4 text-lg font-bold text-primary`,children:r}),i?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:i}):null,a?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-xs text-tertiary`,children:a}):null,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:t})}):null]})})},ef=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`,tf=(e,t,n)=>t&&n?`border-accent bg-accent/10`:e?`border-primary bg-tertiaryActive`:`border-borderTertiary bg-secondary hover:border-primary`,nf=e=>e===`saved`?`text-saleGreen`:e===`error`?`text-accent`:`text-yellow-700`,rf=({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:nf(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]}),af=({title:e,dimension:t,options:n,selectedValue:r,readOnly:i,onSelect:a})=>(0,u.jsxs)(`fieldset`,{children:[(0,u.jsx)(`legend`,{className:`text-sm font-bold text-primary`,children:e}),(0,u.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:n.map(e=>{let n=e.value===r;return(0,u.jsx)(`button`,{type:`button`,"aria-pressed":n,disabled:i||e.disabled,className:`rounded-md border px-4 py-2 text-sm font-semibold transition ${n?`border-primary bg-primary text-secondary`:`border-borderTertiary bg-secondary text-primary hover:border-primary`} disabled:cursor-default disabled:opacity-70`,onClick:()=>a?.(t,e.value),children:e.label},e.value)})})]}),of=({itemLabel:e,selectedCount:t,failedCount:n,onSelectAll:r,onSelectFailed:i,onClear:a,onCancel:o})=>(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 gap-2`,children:[(0,u.jsx)(O,{label:`Select all`,variant:`outline`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,onClick:r}),(0,u.jsx)(O,{label:`Select failed checks (${n})`,variant:`outline`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,disabled:n===0,onClick:i})]}),(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:a}),(0,u.jsx)(O,{label:`Cancel`,variant:`ghost`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,onClick:o})]})]}),sf=({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})}),cf=({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.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`})]})}),(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})]},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]})]}),lf=({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})]})]}),uf=e=>{if(!(`data`in e)){let t=e.state===`notFound`||e.state===`empty`?`empty`:e.state;return(0,u.jsx)(Xd,{pageTitle:e.pageTitle,sideNavProps:e.sideNavProps,children:(0,u.jsx)($d,{status:{state:t,message:e.message,retryLabel:e.state===`error`?e.actionLabel:void 0},onRetryClick:`onActionClick`in e?e.onActionClick:void 0})})}let{data:t,sideNavProps:n={items:[]},onTabSelect:r,onLocalizationSelect:i,onDecorFieldChange:a,onDecorSave:o,onDecorCancel:s,onDeleteDecorClick:c,onSkuSearchChange:l,onSkuSelect:d,onAddSkuClick:p,onSkuVariantSelect:m,onNewSkuChange:h,onSkuFieldChange:_,onSkuSave:v,onSkuCancel:y,onSkuCreate:b,onSkuDelete:x,onSkuBulkSelectionChange:S,onSkuBulkDelete:C,onIntegrationRefresh:w,onSampleSearchChange:T,onSampleSelect:E,onAddSampleClick:D,onSampleVariantSelect:k,onNewSampleSkuChange:A,onSampleFieldChange:M,onSampleSave:N,onSampleCancel:P,onSampleCreate:F,onSampleDelete:I,onSampleBulkSelectionChange:L,onSampleBulkDelete:ee,onNoticeActionClick:te}=e,{decor:R,decorEditor:z,skuEditor:B,sampleEditor:V}=t,H=t.skus.find(e=>e.id===B.selectedSkuId),U=t.skus.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.grade} · ${e.size}`})),W=t.samples.find(e=>e.id===V.selectedSampleId),ne=t.samples.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.size}`})),G=B.bulkSelection,K=V.bulkSelection,q=G?.selectedIds??[],re=K?.selectedIds??[],ie=t.skus.filter(e=>!e.isForSale).map(e=>e.id),ae=t.samples.filter(e=>!e.isSampleable).map(e=>e.id),oe=z.activeLocalization.saveStatus===`saving`,J=z.searchColorFieldId?[...z.sharedFields,...z.localizedFields].filter(e=>e.id===z.searchColorFieldId):[],se=z.decorFlagFieldId?z.sharedFields.filter(e=>e.id===z.decorFlagFieldId):[],ce=z.sharedFields.filter(e=>e.id!==z.searchColorFieldId&&e.id!==z.decorFlagFieldId),le=z.localizedFields.filter(e=>e.id!==z.searchColorFieldId),ue=B.saveStatus===`saving`,de=V.saveStatus===`saving`,fe=V.mode===`edit`,pe=null;B.mode===`create`?pe=(0,u.jsx)(O,{label:B.createLabel??`Create SKU`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:B.createDisabled,onClick:()=>b?.({sku:B.newSkuValue,grade:B.selectedGrade??``,finish:B.selectedFinish??``,size:B.selectedSize??``})}):H&&(pe=(0,u.jsx)(O,{label:B.controls.saveLabel,iconType:`fa-solid`,iconName:ue?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:B.controls.saveDisabled||ue,"aria-busy":ue||void 0,onClick:()=>v?.({skuId:H.id})}));let me=null;V.mode===`create`?me=(0,u.jsx)(O,{label:V.createLabel??`Create Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:V.createDisabled,onClick:()=>F?.({sku:V.newSkuValue,finish:V.selectedFinish??``,size:V.selectedSize??``})}):W&&(me=(0,u.jsx)(O,{label:V.controls.saveLabel,iconType:`fa-solid`,iconName:de?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:V.controls.saveDisabled||de,"aria-busy":de||void 0,onClick:()=>N?.({sampleId:W.id})}));let he=null;return V.mode===`create`?he=(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)(wo,{id:`market-readiness-new-sample-sku`,name:`newSampleSku`,value:V.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})})]}):W?.sourceIdentifier&&(he=(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:W.sourceIdentifier})]})),(0,u.jsxs)(Xd,{pageTitle:t.pageTitle,pageDescription:t.pageDescription,sideNavProps:n,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:[R.imageUrl?(0,u.jsx)(j,{src:R.imageUrl,alt:R.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:R.name}),(0,u.jsxs)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:[`Decor `,R.decorCode,` · Range `,R.rangeCode]})]})]}),t.notice?(0,u.jsxs)(`section`,{role:t.notice.tone===`error`?`alert`:`status`,className:`mt-4 rounded-lg border p-4 ${ef(t.notice.tone)}`,children:[t.notice.title?(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:t.notice.title}):null,(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:t.notice.message}),t.notice.actionLabel?(0,u.jsx)(`div`,{className:`mt-3`,children:(0,u.jsx)(O,{label:t.notice.actionLabel,variant:`outline`,intent:`primary`,size:`sm`,onClick:te})}):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:`Sheets (${t.skus.length})`},{id:`samples`,label:`Samples (${t.samples.length})`}].map(e=>{let n=t.activeTabId===e.id;return(0,u.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":n,className:`border-b-4 px-5 py-3 text-sm font-bold ${n?`border-primary text-primary`:`border-transparent text-tertiary hover:text-primary`}`,onClick:()=>r?.({tabId:e.id}),children:e.label},e.id)})}),t.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)(pc,{title:`Decor details`,description:z.sharedDescription,fields:[...le,...ce,...se,...J],fieldGroups:[{id:`localized-decor-fields`,title:`${z.activeLocalization.heading} content`,description:z.localizationDescription??`These fields change with the selected locale.`,fieldIds:le.map(e=>e.id)},{id:`shared-decor-fields`,title:z.sharedTitle??`Shared decor details`,fieldIds:ce.map(e=>e.id)}],density:`compact`,severityDisplay:`icon`,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:z.deleteLabel?(0,u.jsx)(O,{label:z.deleteLabel,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,variant:`outline`,intent:`danger`,disabled:z.deleteDisabled||oe,onClick:()=>c?.({decorId:R.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(rf,{status:z.activeLocalization.saveStatus,label:z.activeLocalization.saveStatusLabel,errorMessage:z.activeLocalization.saveErrorMessage,lastSavedLabel:z.activeLocalization.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(O,{label:z.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:z.controls.cancelDisabled||oe,onClick:()=>s?.({decorId:R.id,localizationId:z.activeLocalization.id})}),(0,u.jsx)(O,{label:z.controls.saveLabel,iconType:`fa-solid`,iconName:oe?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:z.controls.saveDisabled||oe,"aria-busy":oe||void 0,onClick:()=>o?.({decorId:R.id,localizationId:z.activeLocalization.id})})]})]})]}),onDynamicFormFieldChange:({fieldId:e,value:t})=>{let n=z.sharedFields.some(t=>t.id===e);a?.({decorId:R.id,localizationId:n?void 0:z.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)(cu,{title:`Decor localizations`,markets:z.markets,selectedLocalizationId:z.activeLocalization.id,localizationSelectionDisabled:oe,onLocalizationSelect:i})})]}):null,t.activeTabId===`sheets`?(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)(Oo,{id:`market-readiness-sku-search`,name:`skuSearch`,ariaLabel:`Sheet SKU`,value:B.searchValue,options:U,valueStatus:H?.isForSale===!1&&B.searchValue===H.sku?`inactive`:`default`,placeholder:`Search sheet SKUs`,controlSize:`default`,onQueryChange:l,onClear:()=>l?.({value:``}),onOptionSelect:({option:e})=>{let n=t.skus.find(t=>t.id===e.value);n&&d?.({skuId:n.id,sku:n.sku})}})]}),(0,u.jsx)(O,{label:B.addSkuLabel??`Add Sheet`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:p})]})}),B.mode===`edit`&&!H?(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`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,u.jsxs)(`div`,{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`:H?.sku}),(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.`})]}),H?.statusLabel?(0,u.jsx)(`span`,{className:`rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-primary`,children:H.statusLabel}):null]}),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)(wo,{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=>h?.({value:e.target.value})})]}):null,(0,u.jsxs)(`div`,{className:`mt-5 grid gap-5`,children:[(0,u.jsx)(af,{title:`Grade`,dimension:`grade`,options:B.gradeOptions,selectedValue:B.selectedGrade,readOnly:!1,onSelect:(e,t)=>m?.({dimension:e,value:t})}),(0,u.jsx)(af,{title:`Finish`,dimension:`finish`,options:B.finishOptions,selectedValue:B.selectedFinish,readOnly:!1,onSelect:(e,t)=>m?.({dimension:e,value:t})}),(0,u.jsx)(af,{title:`Size`,dimension:`size`,options:B.sizeOptions,selectedValue:B.selectedSize,readOnly:!1,onSelect:(e,t)=>m?.({dimension:e,value:t})})]}),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)(pc,{fields:B.fields,density:`compact`,severityDisplay:`icon`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>_?.({skuId:H?.id,fieldId:e,value:t})})})]}),B.mode===`edit`?(0,u.jsxs)(`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.jsx)(f,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:`Integration status`}),H?(0,u.jsx)(O,{label:`Refresh`,iconType:`fa-solid`,iconName:`rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,onClick:()=>w?.({skuId:H.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:`BigCommerce ID`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:B.integration?.bigCommerceId??`Not assigned`})]}),(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`&&H&&B.deleteLabel&&x?(0,u.jsx)(O,{label:B.deleteLabel,variant:`outline`,intent:`danger`,disabled:B.deleteDisabled||ue,onClick:()=>x?.({skuId:H.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(rf,{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||ue,onClick:y}),pe]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[t.skuGuide?(0,u.jsx)(cf,{guide:t.skuGuide}):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:[G?(0,u.jsx)(O,{iconType:G.active?`fa-solid`:`fa-regular`,iconName:G.active?`square-check`:`square`,iconAlt:G.active?`Close sheet selection`:`Select sheets`,variant:`ghost`,intent:G.active?`accent`:`primary`,size:`xs`,onClick:()=>S?.({active:!G.active,skuIds:[]})}):null,(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:t.skus.length})]})]}),G?.active?(0,u.jsx)(of,{itemLabel:`sheet`,selectedCount:q.length,failedCount:ie.length,onSelectAll:()=>S?.({active:!0,skuIds:t.skus.map(e=>e.id)}),onSelectFailed:()=>S?.({active:!0,skuIds:ie}),onClear:()=>S?.({active:!0,skuIds:[]}),onCancel:()=>S?.({active:!1,skuIds:[]})}):null]}),(0,u.jsx)(`div`,{className:`mt-4 space-y-2`,children:t.skus.map(e=>{let t=q.includes(e.id),n=G?.active?t:e.id===B.selectedSkuId;return(0,u.jsx)(`button`,{type:`button`,"aria-pressed":n,"aria-label":G?.active?`${t?`Deselect`:`Select`} sheet ${e.sku}`:void 0,className:`w-full rounded-md border p-3 text-left transition ${tf(n,G?.active??!1,t)}`,onClick:()=>{if(G?.active){S?.({active:!0,skuIds:t?q.filter(t=>t!==e.id):[...q,e.id]});return}d?.({skuId:e.id,sku:e.sku})},children:(0,u.jsxs)(`span`,{className:`flex items-start gap-2`,children:[G?.active?(0,u.jsx)(g,{iconType:t?`fa-solid`:`fa-regular`,iconName:t?`square-check`:`square`,alt:``,size:`sm`,color:t?`accent`:`inherit`,className:`mt-0.5 w-5 shrink-0`}):null,(0,u.jsx)(g,{iconType:`fa-solid`,iconName:e.isForSale?`shop`:`shop-slash`,alt:e.isForSale?`For sale`:`Not for sale`,title:e.isForSale?`For sale`:`Not for sale`,size:`sm`,className:`mt-0.5 w-5 shrink-0 ${e.isForSale?``:`text-secondaryHover`}`}),(0,u.jsxs)(`span`,{className:`min-w-0`,children:[(0,u.jsx)(`span`,{className:`block text-sm font-bold text-primary`,children:e.sku}),(0,u.jsxs)(`span`,{className:`mt-1 block text-xs text-tertiary`,children:[e.finish,` · `,e.grade,` · `,e.size]})]})]})},e.id)})}),G?.active&&q.length>0?(0,u.jsx)(sf,{itemLabel:`sheet`,selectedCount:q.length,deleteDisabled:G.deleteDisabled||!C,onDelete:()=>C?.({skuIds:q})}):null]})]})]}):null,t.activeTabId===`samples`?(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)(Oo,{id:`market-readiness-sample-search`,name:`sampleSearch`,ariaLabel:`Sample SKU`,value:V.searchValue,options:ne,valueStatus:W?.isSampleable===!1&&V.searchValue===W.sku?`inactive`:`default`,placeholder:`Search sample SKUs`,controlSize:`default`,onQueryChange:T,onClear:()=>T?.({value:``}),onOptionSelect:({option:e})=>{let n=t.samples.find(t=>t.id===e.value);n&&E?.({sampleId:n.id,sku:n.sku})}})]}),(0,u.jsx)(O,{label:V.addLabel??`Add Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:D})]})}),V.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:V.emptyTitle}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:V.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:V.mode===`create`?`Create a new sample`:W?.sku}),(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-tertiary`,children:V.identifierHelpText}),he,(0,u.jsxs)(`div`,{className:`mt-5 space-y-5`,children:[(0,u.jsx)(af,{title:`Finish`,dimension:`finish`,options:V.finishOptions,selectedValue:V.selectedFinish,readOnly:fe,onSelect:(e,t)=>{e!==`grade`&&k?.({dimension:e,value:t})}}),(0,u.jsx)(af,{title:`Size`,dimension:`size`,options:V.sizeOptions,selectedValue:V.selectedSize,readOnly:fe,onSelect:(e,t)=>{e!==`grade`&&k?.({dimension:e,value:t})}})]}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(pc,{fields:V.fields,density:`compact`,severityDisplay:`icon`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>M?.({sampleId:W?.id,fieldId:e,value:t})})}),(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:V.mode===`edit`&&W&&V.deleteLabel&&I?(0,u.jsx)(O,{label:V.deleteLabel,variant:`outline`,intent:`danger`,disabled:V.deleteDisabled||de,onClick:()=>I?.({sampleId:W.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(rf,{status:V.saveStatus,label:V.saveStatusLabel,errorMessage:V.saveErrorMessage,lastSavedLabel:V.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(O,{label:V.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:V.controls.cancelDisabled||de,onClick:P}),me]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[t.sampleGuide?(0,u.jsx)(lf,{guide:t.sampleGuide}):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":`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:[K?(0,u.jsx)(O,{iconType:K.active?`fa-solid`:`fa-regular`,iconName:K.active?`square-check`:`square`,iconAlt:K.active?`Close sample selection`:`Select samples`,variant:`ghost`,intent:K.active?`accent`:`primary`,size:`xs`,onClick:()=>L?.({active:!K.active,sampleIds:[]})}):null,(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:t.samples.length})]})]}),K?.active?(0,u.jsx)(of,{itemLabel:`sample`,selectedCount:re.length,failedCount:ae.length,onSelectAll:()=>L?.({active:!0,sampleIds:t.samples.map(e=>e.id)}),onSelectFailed:()=>L?.({active:!0,sampleIds:ae}),onClear:()=>L?.({active:!0,sampleIds:[]}),onCancel:()=>L?.({active:!1,sampleIds:[]})}):null]}),t.samples.length?(0,u.jsx)(`div`,{className:`mt-4 space-y-2`,children:t.samples.map(e=>{let t=re.includes(e.id),n=K?.active?t:e.id===V.selectedSampleId;return(0,u.jsx)(`button`,{type:`button`,"aria-pressed":n,"aria-label":K?.active?`${t?`Deselect`:`Select`} sample ${e.sku}`:void 0,className:`w-full rounded-md border p-3 text-left transition ${tf(n,K?.active??!1,t)}`,onClick:()=>{if(K?.active){L?.({active:!0,sampleIds:t?re.filter(t=>t!==e.id):[...re,e.id]});return}E?.({sampleId:e.id,sku:e.sku})},children:(0,u.jsxs)(`span`,{className:`flex items-start gap-2`,children:[K?.active?(0,u.jsx)(g,{iconType:t?`fa-solid`:`fa-regular`,iconName:t?`square-check`:`square`,alt:``,size:`sm`,color:t?`accent`:`inherit`,className:`mt-0.5 w-5 shrink-0`}):null,(0,u.jsx)(g,{iconType:`fa-solid`,iconName:e.isSampleable?`shop`:`shop-slash`,alt:e.isSampleable?`Can be sampled`:`Cannot be sampled`,title:e.isSampleable?`Can be sampled`:`Cannot be sampled`,size:`sm`,className:`mt-0.5 w-5 shrink-0 ${e.isSampleable?``:`text-secondaryHover`}`}),(0,u.jsx)(`span`,{className:`min-w-0`,children:(0,u.jsx)(`span`,{className:`block break-all text-sm font-bold text-primary`,children: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.`}),K?.active&&re.length>0?(0,u.jsx)(sf,{itemLabel:`sample`,selectedCount:re.length,deleteDisabled:K.deleteDisabled||!ee,onDelete:()=>ee?.({sampleIds:re})}):null]})]})]}):null]})},df=e=>(0,u.jsx)(`div`,{className:`w-36`,children:e}),ff=e=>(0,u.jsx)(`div`,{className:`w-28`,children:e}),pf=(e,t)=>{if(t)for(let n of e){if(n.type===`checkpoint`&&n.id===t)return n;if(n.type===`group`){let e=pf(n.items,t);if(e)return e}}},mf=({pageTitle:e,searchPlaceholder:t,searchValue:n,searchOptions:r=[],checkButtonLabel:i=`Check`,sideNavProps:a,state:o,statusFlowPanelProps:s,flowItems:l,messageListCardProps:d,selectedCheckpointId:p,checkpointModalOpen:m,checkpointFormPropsById:h,productDataModalTitle:g=`Product Data`,productDataModalDescription:_,onSearchChange:v,onSearchClear:y,onSearchOptionSelect:b,onCheckClick:x,onCheckpointSelect:S,onCheckpointModalChange:C,onCheckpointFieldChange:w})=>{let T=o===`loading`,{actionCardProps:E,...D}=s,k=pf(l,p),A=p?h[p]:void 0,j=e=>{S?.(e),C?.({open:!0,checkpointId:e.checkpointId})},M=e=>{v?.({value:e.option.value}),b?.(e)},N=()=>{x?.({value:n})},P=e=>{if(e.type===`connector`)return(0,u.jsx)(Bs,{...e.connectorProps,variant:T?`skeleton`:`default`},e.id);if(e.type===`group`)return(0,u.jsx)(`div`,{className:`w-full max-w-sm md:w-80`,children:(0,u.jsx)(Eu,{...e.groupProps,variant:T?`skeleton`:`default`,children:e.items.map(P)})},e.id);let t=(0,u.jsx)(Gs,{...e.cardProps,id:e.id,variant:T?`skeleton`:`default`,onCardClick:T?void 0:t=>j({checkpointId:e.id,title:t.title,description:t.description,status:t.status,statusLabel:t.statusLabel})});return(0,u.jsx)(c.default.Fragment,{children:e.cardProps.layoutVariant===`compact`?ff(t):df(t)},e.id)};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)($s,{...a})}),(0,u.jsxs)(`main`,{className:`min-w-0 flex-1 p-4 md:p-6 bg-adminSideNavBackground`,children:[(0,u.jsx)(`div`,{children:(0,u.jsx)(f,{as:`h1`,variant:`free`,className:`text-xl font-bold text-primary`,children:e})}),(0,u.jsxs)(`div`,{className:`mt-6 flex max-w-xl flex-col gap-3 md:flex-row md:items-center`,children:[(0,u.jsx)(Oo,{id:`product-journey-search`,ariaLabel:`SKU search`,placeholder:t,value:n,options:r,emptyMessage:`No matching SKUs found.`,onQueryChange:v,onClear:()=>y?.({value:n}),onOptionSelect:M,onSearchSubmit:N}),(0,u.jsx)(O,{label:i,iconAlt:``,iconName:`chevron-right`,iconPosition:`right`,iconType:`fa-solid`,variant:`outline`,intent:`primary`,size:`sm`,className:`shrink-0 px-2 h-8 hover:border-accent hover:text-accent`,onClick:N})]}),(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(Ou,{...D,state:o,diagram:(0,u.jsx)(Tu,{ariaLabel:`Data path status flow`,surfaceVariant:`plain`,children:l.map(P)}),legend:(0,u.jsx)(Us,{}),actions:E?(0,u.jsx)(Fs,{...E}):void 0})}),(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(Ns,{...d})})]})]}),(0,u.jsx)(hc,{open:m,title:k?`${k.cardProps.title} ${g}`:g,description:_,size:`lg`,onClose:()=>C?.({open:!1,checkpointId:p}),children:A&&p?(0,u.jsx)(pc,{...A,onDynamicFormFieldChange:e=>{w?.({checkpointId:p,fieldId:e.fieldId,value:e.value}),A.onDynamicFormFieldChange?.(e)},onDynamicFormCancel:()=>{C?.({open:!1,checkpointId:p}),A.onDynamicFormCancel?.()}}):null})]})},hf=({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)($s,{...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})]})]})]})]})}),gf=e=>e===`admin`?`Admin`:`User`,_f=({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})}),vf=({message:e})=>{let t=e?.trim()??``;return t?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-accent`,children:t}):null},yf=({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:ee,onRowUpdate:te,onUserActiveToggle:R,onDeleteUserRequest:z,onDeleteModalClose:B,onDeleteUserConfirm:V})=>{let H=t?.trim()??``,U=l.active&&!l.defaultRegion.trim(),W=m.map(e=>({id:e.email,values:{active:e.active?`active`:`inactive`,email:e.email,role:e.role,defaultRegion:e.defaultRegion}})),ne=`${m.length.toLocaleString()} ${m.length===1?`user`:`users`}`,G=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:[gf(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:()=>R?.({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)($s,{...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}),H?(0,u.jsx)(f,{variant:`free`,className:`mt-2 text-sm text-primary`,children:H}):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(),ee?.({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)(wo,{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)(So,{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)(So,{id:`authorization-user-default-region`,name:`defaultRegion`,value:l.defaultRegion,placeholder:g,disabled:b,required:l.active,hasError:U,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)(So,{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||U,iconAlt:``,iconName:`user-plus`,iconType:`fa-solid`,intent:`primary`,label:b?T:w,type:`submit`,variant:`solid`})]}),(0,u.jsx)(vf,{message:_}),o===`loading`?(0,u.jsx)(_f,{message:s}):null,o===`error`?(0,u.jsx)(_f,{message:c,tone:`error`}):null,(0,u.jsx)(_u,{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:ne,rows:W,title:`Allow List`,updateLabel:x?D:E,updateDisabled:x,onRowUpdate:te}),(0,u.jsx)(vf,{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(G)}),(0,u.jsx)(vf,{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)(hc,{closeLabel:N,open:!!C,size:`md`,title:`Remove User?`,onClose:()=>B?.(),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:()=>B?.()}),(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&&V?.({email:C})}})]})]})})]})},bf={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`}},xf=e=>{if(e===`loading`)return`status`;if(e===`error`)return`alert`},Sf=({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=bf[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:xf(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]})})},Cf=({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-secondary 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 min-w-0 flex-1 flex-col md:mt-0`,children:r})]}),wf=({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:c=!1,findDecorLabel:l=`Find a decor`,createDecorViewLabel:d=`Create a decor`,decorCodeValue:p,decorCodeLabel:m=`Decor Code`,decorCodePlaceholder:h=`Enter the new decor code`,status:_,statusMessage:v,createNewPrompt:y=`Start with a blank decor`,createNewDescription:b=`Enter a decor code that does not yet have a market-readiness record to begin a controlled draft.`,createNewLabel:x=`Create Blank Decor`,createNewHelpText:S=`Setting up a new decor creates a controlled draft. Nothing is published until the draft is saved.`,createNewDisabled:C=!1,copyDecorTitle:w=`Copy an existing decor`,copyDecorDescription:T=`Copy an existing decor's market-readiness data into a new decor, then update only the fields that differ.`,sourceDecorCodeValue:E,sourceDecorCodeOptions:D=[],sourceDecorCodeLabel:k=`Source Decor Code`,sourceDecorCodePlaceholder:A=`Start typing the decor code to copy`,sourceDecorCodeEmptyMessage:j=`No matching decor codes found.`,newDecorCodeValue:M,newDecorCodeLabel:N=`New Decor Code`,newDecorCodePlaceholder:P=`Enter the new decor code`,copyDecorLabel:F=`Copy to New Decor`,copyDecorHelpText:I=`The source decor stays unchanged. The copied record starts as a draft and is not published until it is saved.`,copyDecorDisabled:L=!1,deleteDecorTitle:ee=`Delete an entire decor`,deleteDecorDescription:te=`Remove a decor and every SKU that belongs to it.`,deleteDecorCodeValue:R,deleteDecorCodeLabel:z=`Decor Code to Delete`,deleteDecorCodePlaceholder:B=`Enter the decor code to delete`,deleteDecorLabel:V=`Delete Entire Decor`,deleteDecorHelpText:H=`This is destructive and cannot be undone. The decor and all of its SKUs will be removed.`,deleteDecorDisabled:U=!1,retryLabel:W=`Try Again`,onDecorCodeChange:ne,onRegionChange:G,onFindDecorClick:K,onCreateNewClick:q,onSourceDecorCodeChange:re,onSourceDecorCodeOptionSelect:ie,onNewDecorCodeChange:ae,onCopyDecorClick:oe,onDeleteDecorCodeChange:J,onDeleteDecorClick:se,onRetryClick:ce})=>{let le=_===`checking`,ue=_===`error`,de=!i.trim(),fe=le||c||de,pe=ue?v?.trim()??``:``;return(0,u.jsxs)(Xd,{pageTitle:e,pageDescription:t,sideNavProps:n,headerActions:(0,u.jsx)(ho,{options:r,value:i,label:a,placeholder:o,helpText:s,disabled:c||le,name:`market-readiness-region`,onChange:G}),children:[(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(gc,{items:[{id:`find`,label:l},{id:`create`,label:d}],selectedId:`create`,ariaLabel:`Market readiness view`,onSelect:e=>{e===`find`&&K?.()}})}),pe?(0,u.jsx)(`div`,{role:`alert`,className:`mt-5 rounded-md border border-accent bg-accent/10 p-4 text-accent`,children:(0,u.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`triangle-exclamation`,alt:``,size:`sm`}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm text-inherit`,children:pe}),ce?(0,u.jsx)(`div`,{className:`mt-3`,children:(0,u.jsx)(O,{label:W,variant:`outline`,intent:`primary`,size:`sm`,onClick:ce})}):null]})]})}):null,(0,u.jsxs)(`section`,{"aria-label":`Market readiness actions`,className:`mt-5 grid gap-4`,children:[(0,u.jsxs)(Cf,{title:y,description:b,iconName:`file-circle-plus`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-new-decor-code`,className:`text-sm font-bold text-primary`,children:m}),(0,u.jsx)(wo,{id:`market-readiness-new-decor-code`,name:`newDecorCode`,type:`search`,value:p,placeholder:h,disabled:fe,autoComplete:`off`,leadingIcon:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>ne({value:e.target.value})})]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(O,{label:x,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:C||fe,onClick:()=>q({decorCode:p})})}),S?(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:S}):null]}),(0,u.jsxs)(Cf,{title:w,description:T,iconName:`copy`,children:[(0,u.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-source-decor-code`,className:`text-sm font-bold text-primary`,children:k}),(0,u.jsx)(Oo,{id:`market-readiness-source-decor-code`,name:`sourceDecorCode`,ariaLabel:k,value:E,options:D,placeholder:A,controlSize:`default`,disabled:fe,emptyMessage:j,onQueryChange:re,onClear:()=>re({value:``}),onOptionSelect:e=>{re({value:e.option.value}),ie?.(e)}})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-copy-new-decor-code`,className:`text-sm font-bold text-primary`,children:N}),(0,u.jsx)(wo,{id:`market-readiness-copy-new-decor-code`,name:`copyNewDecorCode`,type:`search`,value:M,placeholder:P,disabled:fe,autoComplete:`off`,leadingIcon:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>ae({value:e.target.value})})]})]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(O,{label:F,iconType:`fa-solid`,iconName:`copy`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:L||fe,onClick:()=>oe({sourceDecorCode:E,newDecorCode:M})})}),I?(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:I}):null]}),(0,u.jsxs)(Cf,{title:ee,description:te,iconName:`trash-can`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-delete-decor-code`,className:`text-sm font-bold text-primary`,children:z}),(0,u.jsx)(wo,{id:`market-readiness-delete-decor-code`,name:`deleteDecorCode`,type:`search`,value:R,placeholder:B,disabled:fe,autoComplete:`off`,leadingIcon:(0,u.jsx)(g,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>J({value:e.target.value})})]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(O,{label:V,iconType:`fa-solid`,iconName:`trash-can`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`danger`,fullWidth:!0,disabled:U||fe||!R.trim(),onClick:()=>se({decorCode:R})})}),H?(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-xs text-accent`,children:H}):null]})]})]})},Tf=({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,findDecorLabel:d=`Find a decor`,createDecorLabel:p=`Create a decor`,searchValue:m,searchLabel:h=`Search decors`,searchPlaceholder:g,searchDisabled:_=!1,rangeOptions:y,selectedRangeId:b,rangePromptTitle:x=`Select a range to view its decors`,rangePromptMessage:S=`Choose a range above to load its market-readiness records.`,resultCount:C,resultLabel:w=`decors`,groups:T,status:E={state:`ready`},hasMore:D=!1,loadingMore:k=!1,loadMoreLabel:A=`Load more decors`,onRegionChange:j,onCreateDecorClick:M,onSearchChange:N,onSearchSubmit:P,onRangeSelect:F,onDecorClick:I,onLoadMore:L,onRetryClick:ee})=>{let te=(0,c.useRef)(null),R=!i.trim()||l,z=`${C.toLocaleString()} ${w}`,B=T.reduce((e,t)=>e+t.items.length,0),V=y.find(e=>e.id===b),H=g??(V?`Search within ${V.label}`:`Select a range before searching`);(0,c.useEffect)(()=>{let e=te.current;if(!e||!V||E.state!==`ready`||!D||k||!L||typeof IntersectionObserver>`u`)return;let t=!1,n=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&!t&&(t=!0,L())});return n.observe(e),()=>n.disconnect()},[D,k,L,m,b,E.state]);let U=null;return k?U=(0,u.jsx)(v,{label:`Loading more decors`,size:`md`}):D&&(U=(0,u.jsx)(O,{label:A,variant:`outline`,intent:`primary`,disabled:!L,onClick:L})),(0,u.jsx)(Xd,{pageTitle:e,pageDescription:t,sideNavProps:n,headerActions:(0,u.jsx)(ho,{options:r,value:i,label:a,placeholder:o,helpText:s,disabled:l,name:`market-readiness-browse-region`,onChange:j}),children:(0,u.jsxs)(`div`,{className:`mt-5 max-w-5xl`,children:[(0,u.jsx)(gc,{items:[{id:`find`,label:d},{id:`create`,label:p}],selectedId:`find`,ariaLabel:`Market readiness view`,onSelect:e=>{e===`create`&&M?.()}}),(0,u.jsxs)(`section`,{"aria-label":`Browse decor controls`,className:`mt-5`,children:[(0,u.jsx)(To,{id:`market-readiness-decor-search`,name:`decorSearch`,ariaLabel:h,value:m,placeholder:H,controlSize:`default`,disabled:_||R||!V,onChange:e=>N({value:e.target.value}),onClear:()=>N({value:``}),onSearchSubmit:P}),(0,u.jsx)(`div`,{className:`mt-3`,children:(0,u.jsx)(go,{ranges:y,selectedRangeId:b,disabled:R,onRangeSelect:F})})]}),V?(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:V.label}),(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-tertiary`,children:z})]}),E.state===`ready`?(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(vu,{groups:T,itemLabel:w,showGroupHeaders:!1,onDecorClick:R?void 0:I})}):(0,u.jsx)($d,{status:E,onRetryClick:ee})]}):(0,u.jsx)($d,{status:{state:`empty`,title:x,message:S}}),V&&E.state===`ready`&&(B>0||D)?(0,u.jsxs)(`div`,{ref:te,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 `,B.toLocaleString(),` of`,` `,C.toLocaleString(),` `,w]}),U]}):null]})})},Ef=({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)(Xd,{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)(_u,{...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)($d,{status:a,onRetryClick:c})}),Df=e=>new Intl.NumberFormat(`en-US`).format(e),Of=e=>new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`}).format(new Date(e)),kf=e=>[...e].sort((e,t)=>(e.stepNumber??2**53-1)-(t.stepNumber??2**53-1)),Af=e=>e>=80?`good`:e>=60?`warning`:`critical`,jf=e=>e>=80?`Healthy`:e>=60?`Needs Review`:`Critical`,Mf=e=>e===`success`?`green`:e===`warning`?`orange`:e===`error`?`red`:e===`review`?`purple`:`gray`,Nf=e=>e===`success`?`safe`:e===`warning`?`warning`:e===`error`?`error`:e===`review`?`review`:`resolved`,Pf=e=>({title:`Data Health`,score:e.summary.healthScore,scoreLabel:jf(e.summary.healthScore),status:Af(e.summary.healthScore),summary:`This data set needs review before fixes are applied.`,detail:`${Df(e.summary.problemSkuRows)} SKU rows need attention. ${Df(e.summary.goodSkuRows)} SKU rows have no detected issues.`}),Ff=e=>[{value:Df(e.skuRowsScanned),label:`Total SKUs`,detail:`${Df(e.recordsScanned)} records scanned in this report`,iconName:`barcode`,tone:`blue`}],If=e=>({title:`By Issue Type`,items:kf(e.issueTypes).map(e=>({id:e.id,label:e.label,groupCount:Df(e.groups),recordCount:Df(e.records),tone:Mf(e.severity)}))}),Lf=e=>{if(e.whatToDoNext)return{title:e.whatToDoNext.title,description:e.whatToDoNext.message};let t=e.summary.safelyResolvableGroups??0;return{title:`Recommended Next Step`,description:t>0?`${Df(t)} duplicate groups look safe to review first. Confirm the product data is current before applying fixes.`:`${Df(e.summary.problemSkuRows)} SKU rows need review before Data Forge can safely apply automated fixes.`}},Rf=e=>e===`safe`?`success`:e===`warning`?`warning`:e===`error`?`error`:e===`review`?`review`:`neutral`,zf=e=>e.groupCount>0||e.recordCount===void 0?`${Df(e.groupCount)} groups`:`${Df(e.recordCount)} records`,Bf=e=>kf(e.sections).map(e=>{let t=Nf(e.severity);return{id:e.id,title:e.title,groupCountLabel:zf(e),description:e.description,status:t,stepNumber:e.stepNumber,recommendedActionTitle:e.recommendedActionTitle??`Recommended Action`,recommendedActions:e.recommendedAction,confidenceLabel:e.confidenceLabel,confidenceTone:Rf(t),primaryActionLabel:t===`safe`?`Resolve`:`Review Groups`,primaryActionIconName:t===`safe`?`wand-magic-sparkles`:`magnifying-glass`,primaryActionVariant:t===`safe`?`solid`:`outline`}}),Vf=({pageTitle:e,pageDescription:t,lastScanLabel:n,recalculateLabel:r=`Recalculate`,recalculateStatus:i=`idle`,updateCacheLabel:a=`Update Cache`,updateCacheStatus:o=`idle`,deleteAndRebuildLabel:s=`Delete and Rebuild`,changeProductDataLabel:c=`Change Product Data`,sideNavProps:l,status:d={state:`ready`},dataIssuesResponse:p,dataHealthSummaryCardProps:m,metricCardProps:h,issueTypeBreakdownCardProps:_,recommendedNextStepCardProps:v,issueActionCardProps:y,cacheActions:b,rebuildConfirmation:x,resolveDialog:S,onRetryClick:C,onRecalculateClick:w,onChangeProductDataClick:T,onUpdateCacheClick:E,onDeleteAndRebuildClick:D,onRebuildConfirm:k,onRebuildCancel:A,onResolveConfirm:j,onResolveClose:M,onResolveRetry:N,onIssuePrimaryActionClick:P,onIssueSecondaryActionClick:F})=>{let I=t?.trim()??``,L=p?.report??p?.dataSource?.latestReport,ee=n?.trim()??(L?`Report generated: ${Of(L.generatedAt)}`:``),te=m??(L?Pf(L):null),R=h??(L?Ff(L):[]),z=_??(L?If(L):null),B=v??(L?Lf(L):null),V=y??(L?Bf(L):[]),H=R.length<=1?`md:col-span-2`:`md:col-span-1`,U=o===`required`,W=(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[ee?(0,u.jsxs)(`div`,{className:`flex items-center gap-2 text-primary`,children:[(0,u.jsx)(g,{iconType:`fa-regular`,iconName:`clock`,alt:``,size:`xs`}),(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:ee})]}):null,w?(0,u.jsx)(O,{label:r,iconType:i===`pending`?`fa-solid`:void 0,iconName:i===`pending`?`spinner`:void 0,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,disabled:i===`pending`,"aria-busy":i===`pending`||void 0,onClick:w}):null,T?(0,u.jsx)(O,{label:c,variant:`outline`,intent:`primary`,size:`sm`,onClick:T}):null]}),ne=!b&&(E||D)?(0,u.jsxs)(`div`,{"aria-label":`Data issue cache actions`,className:`mt-5 flex flex-wrap gap-2`,children:[(0,u.jsx)(O,{label:a,variant:U?`solid`:`outline`,intent:U?`accent`:`primary`,size:`sm`,onClick:E}),(0,u.jsx)(O,{label:s,variant:`solid`,intent:`danger`,size:`sm`,onClick:D})]}):null;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Xd,{pageTitle:e,pageDescription:I,sideNavProps:l,headerActions:W,children:d.state===`ready`?(0,u.jsxs)(u.Fragment,{children:[b?(0,u.jsxs)(`section`,{"aria-label":`Data issue cache actions`,className:`mt-5 grid gap-4 rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(f,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:b.title}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:b.description}),b.statusMessage?(0,u.jsx)(f,{role:b.status===`error`?`alert`:`status`,variant:`free`,className:`mt-2 text-sm text-primary`,children:b.statusMessage}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,u.jsx)(O,{label:b.updateLabel,iconType:`fa-solid`,iconName:b.status===`pending`?`spinner`:`rotate`,iconAlt:``,variant:U?`solid`:`outline`,intent:U?`accent`:`primary`,size:`sm`,disabled:b.updateDisabled||b.status===`pending`,"aria-busy":b.status===`pending`||void 0,onClick:E}),(0,u.jsx)(O,{label:b.rebuildLabel,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,variant:`solid`,intent:`danger`,size:`sm`,disabled:b.rebuildDisabled||b.status===`pending`,onClick:D})]})]}):ne,(0,u.jsxs)(`section`,{"aria-label":`Data issue summary`,className:`mt-5 grid gap-4 md:grid-cols-4`,children:[te?(0,u.jsx)(`div`,{className:`h-full md:col-span-1`,children:(0,u.jsx)(_s,{...te})}):null,R.map(e=>(0,u.jsx)(bs,{...e},e.label)),z?(0,u.jsx)(`div`,{className:`h-full ${H}`,children:(0,u.jsx)(Ts,{...z})}):null]}),B?(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(As,{...B,recalculating:i===`pending`||B.recalculating,onRecalculateClick:B.onRecalculateClick??w})}):null,(0,u.jsx)(`section`,{"aria-label":`Data issue actions`,className:`mt-4 space-y-3`,children:V.map(e=>(0,u.jsx)(Cs,{...e,onPrimaryActionClick:e.onPrimaryActionClick??P,onSecondaryActionClick:e.onSecondaryActionClick??F},e.id))})]}):(0,u.jsx)($d,{status:d,onRetryClick:C})}),(0,u.jsx)(hc,{open:x?.open??!1,title:x?.title??``,closeLabel:x?.cancelLabel,onClose:A??(()=>void 0),children:x?(0,u.jsxs)(`div`,{className:`grid gap-4`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:x.message}),x.warning?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`text-sm text-accent`,children:x.warning}):null,(0,u.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,u.jsx)(O,{label:x.cancelLabel,variant:`outline`,intent:`primary`,size:`sm`,disabled:x.pending,onClick:A}),(0,u.jsx)(O,{label:x.confirmLabel,variant:`solid`,intent:`danger`,size:`sm`,disabled:x.pending,onClick:k})]})]}):null}),(0,u.jsx)(Hf,{dialog:S,onClose:M,onConfirm:j,onRetry:N})]})},Hf=({dialog:e,onClose:t,onConfirm:n,onRetry:r})=>{if(!e?.open)return null;let i=e.mode===`progress`?Math.min(Math.max(e.percentComplete,0),100):0;return(0,u.jsx)(hc,{open:!0,title:e.title,closeLabel:e.mode===`confirm`?e.cancelLabel:e.closeLabel,onClose:t??(()=>void 0),children:e.mode===`confirm`?(0,u.jsxs)(`div`,{className:`grid gap-4`,children:[e.previewStatus===`loading`?(0,u.jsxs)(`div`,{role:`status`,"aria-live":`polite`,className:`flex items-center gap-3`,children:[(0,u.jsx)(v,{label:``,size:`sm`}),(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:e.message??`Loading preview...`})]}):null,e.previewStatus===`ready`&&e.message?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:e.message}):null,e.previewStatus===`error`?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`text-sm text-accent`,children:e.errorMessage??e.message}):null,(0,u.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,u.jsx)(O,{label:e.cancelLabel,variant:`outline`,intent:`primary`,size:`sm`,disabled:e.confirming,onClick:t}),(0,u.jsx)(O,{label:e.confirmLabel,variant:`solid`,intent:`primary`,size:`sm`,disabled:e.confirmDisabled||e.confirming||e.previewStatus!==`ready`,onClick:n})]})]}):(0,u.jsxs)(`div`,{className:`grid gap-4`,children:[(0,u.jsxs)(`div`,{role:`status`,"aria-live":`polite`,children:[(0,u.jsx)(f,{variant:`free`,className:`text-sm font-bold text-primary`,children:e.statusLabel}),(0,u.jsx)(f,{variant:`free`,className:`mt-1 text-sm text-primary`,children:e.message})]}),(0,u.jsx)(`div`,{role:`progressbar`,"aria-label":e.statusLabel,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":i,className:`h-2 overflow-hidden rounded-full bg-tertiaryActive`,children:(0,u.jsx)(`div`,{className:`h-full rounded-full bg-saleGreen`,style:{width:`${i}%`}})}),e.completedLabel?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-primary`,children:e.completedLabel}):null,e.failedLabel?(0,u.jsx)(f,{variant:`free`,className:`text-sm text-accent`,children:e.failedLabel}):null,e.errorMessages?.length?(0,u.jsx)(`ul`,{role:`alert`,className:`list-disc space-y-1 pl-5 text-sm text-accent`,children:e.errorMessages.map(e=>(0,u.jsx)(`li`,{children:e},e))}):null,e.pollingWarning?(0,u.jsx)(f,{role:`alert`,variant:`free`,className:`text-sm text-accent`,children:e.pollingWarning}):null,(0,u.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[e.retryLabel?(0,u.jsx)(O,{label:e.retryLabel,variant:`outline`,intent:`primary`,size:`sm`,disabled:e.retryDisabled,onClick:r}):null,(0,u.jsx)(O,{label:e.closeLabel,variant:`solid`,intent:`primary`,size:`sm`,onClick:t})]})]})})},Uf=e=>new Intl.NumberFormat(`en-US`).format(e),Wf=({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})]}),Gf=({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})},Kf=({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:Uf(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]}),qf=({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:ee,onRangeChange:te,onDirectDownloadClick:R,onRetryClick:z})=>{let B=(0,c.useRef)(null),V=y===`pending`,H=M===`pending`,U=e=>I?.({files:Array.from(e??[])});return(0,u.jsx)(Xd,{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)(Wf,{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)(Kf,{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)(Wf,{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(),U(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:V,onClick:()=>B.current?.click()})}),(0,u.jsx)(`input`,{ref:B,id:`salsify-report-upload`,type:`file`,className:`sr-only`,disabled:V,onChange:e=>U(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:V,onClick:ee}),(0,u.jsx)(O,{label:x,iconType:`fa-solid`,iconName:`cloud-arrow-up`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,disabled:S||V,"aria-busy":V||void 0,onClick:L})]})]}):null,(0,u.jsx)(Gf,{status:y,message:b})]}),(0,u.jsxs)(Wf,{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)(So,{id:`salsify-range`,name:`salsifyRange`,value:A,placeholder:D,options:k,disabled:H,onChange:e=>te?.({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||H,"aria-busy":H||void 0,onClick:R})}),(0,u.jsx)(Gf,{status:M,message:N})]})]}):(0,u.jsx)($d,{status:r,onRetryClick:z})})},Jf=e=>new Intl.NumberFormat(`en-US`).format(e),Yf=e=>e.split(`-`).filter(Boolean).map(e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(` `),Xf=(e,t,n)=>n===0?`0 groups`:`${Jf(e+1)}-${Jf(e+Math.min(t,n))}`,Zf=e=>({recordId:e.salsifyId??e.itemSku??e.itemPartNumber??``,hierarchyLevel:e.hierarchyLevel,itemPartNumber:e.itemPartNumber,itemSku:e.itemSku,productName:e.productName,salsifyId:e.salsifyId,score:e.score}),Qf=({pageTitle:e,pageDescription:t,issueTypeLabel:n,backLabel:r=`Back to Data Issues`,previousLabel:i=`Previous`,nextLabel:a,resolveLabel:o=`Resolve Group`,selectLabel:s=`Select`,selectedLabel:c=`Selected`,sideNavProps:l,issueGroupResponse:d,selectedRecordIds:f={},status:p={state:`ready`},groupActionStates:m=[],onBackClick:h,onPreviousPageClick:g,onNextPageClick:_,onRecordSelect:v,onResolveGroupClick:y,onRetryClick:b})=>{let x=n?.trim()||Yf(d.issueType),S=a??`Next ${Jf(d.limit)}`;return(0,u.jsx)(Xd,{pageTitle:e,pageDescription:t,sideNavProps:l,headerLeading:(0,u.jsx)(O,{label:r,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`ghost`,intent:`primary`,size:`sm`,className:`mb-3 px-0`,onClick:h}),headerActions:p.state===`ready`?(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row md:justify-end`,children:[(0,u.jsx)(O,{label:i,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,disabled:d.offset<=0,onClick:g}),(0,u.jsx)(O,{label:S,iconType:`fa-solid`,iconName:`chevron-right`,iconAlt:``,iconPosition:`right`,variant:`outline`,intent:`primary`,size:`sm`,disabled:!d.hasMore,onClick:_})]}):void 0,children:p.state===`ready`?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`section`,{"aria-label":`Issue group queue`,className:`mt-5`,children:(0,u.jsx)(Es,{title:x,description:`Review each group and select the record Data Forge should keep.`,totalGroupsLabel:Jf(d.totalGroups),visibleRangeLabel:Xf(d.offset,d.limit,d.groups.length),issueTypeLabel:d.issueType,hasMore:d.hasMore})}),(0,u.jsx)(`section`,{"aria-label":`Issue groups to review`,className:`mt-4 space-y-4`,children:d.groups.map(e=>{let t=m.find(t=>t.groupId===e.groupId);return(0,u.jsx)(ks,{groupId:e.groupId,issueType:x,reason:e.reason,matchReasons:e.matchReasons,conflictFields:e.conflictFields,records:e.records.map(Zf),selectedRecordId:f[e.groupId],resolveLabel:t?.resolveLabel??o,resolveDisabled:t?.resolveDisabled,statusMessage:t?.statusMessage,selectLabel:s,selectedLabel:c,onRecordSelect:v,onResolveClick:y},e.groupId)})})]}):(0,u.jsx)($d,{status:p,onRetryClick:b})})},$f=e=>e===`error`?`text-accent`:e===`success`?`text-saleGreen`:`text-primary`,ep=({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 ${$f(e)}`,children:n})},tp=({guide:e,uploadDropLabel:t,uploadBrowseLabel:n,uploadHelpText:r,uploadLabel:i,clearFileLabel:a,completeLabel:o,onGuideFileSelect:s,onUploadClick:l,onClearSelectedFileClick:d})=>{let p=(0,c.useRef)(null),m=(0,c.useId)(),h=e.actionStatus??`idle`,_=h===`validating`||h===`pending`,v=(e.availability??`available`)===`available`,y=t=>s?.({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:v?(0,u.jsxs)(u.Fragment,{children:[h===`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:o})]}):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(),y(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:t}),(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:n,iconType:`fa-solid`,iconName:`folder-open`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,disabled:_,onClick:()=>p.current?.click()})}),(0,u.jsx)(`input`,{ref:p,id:`${m}-product-guide-upload`,type:`file`,accept:`.json,application/json`,className:`sr-only`,disabled:_,onChange:e=>y(e.target.files)})]}),(0,u.jsx)(f,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:r}),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:a,variant:`outline`,intent:`primary`,size:`sm`,disabled:_,onClick:()=>d?.({guideId:e.id})}),(0,u.jsx)(O,{label:i,iconType:`fa-solid`,iconName:`cloud-arrow-up`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,disabled:e.uploadDisabled||_,"aria-busy":_||void 0,onClick:()=>l?.({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,h===`success`?null:(0,u.jsx)(ep,{status:h,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.`})]})})]})},np=({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 JSON file here`,uploadBrowseLabel:c=`Select JSON File`,uploadHelpText:l=`Only National Product Guide JSON documents are supported.`,uploadLabel:d=`Replace Active Guide`,clearFileLabel:p=`Clear File`,completeLabel:m=`Complete`,onGuideFileSelect:h,onUploadClick:_,onClearSelectedFileClick:v,onRetryClick:y})=>{let b;return b=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)(tp,{guide:e,uploadDropLabel:s,uploadBrowseLabel:c,uploadHelpText:l,uploadLabel:d,clearFileLabel:p,completeLabel:m,onGuideFileSelect:h,onUploadClick:_,onClearSelectedFileClick:v},e.id))}):(0,u.jsx)($d,{status:r,onRetryClick:y}),(0,u.jsx)(Xd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:b})},rp=({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)(Hu,{...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)(Xs,{...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})})]})]}),ip=({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)(Hu,{...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)(Zs,{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)(Zs,{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.`})]})]})},ap=({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)(Hu,{...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)(So,{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)(So,{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})})]})},op={neutral:`bg-tertiaryActive text-primary`,accent:`bg-accent text-white`,success:`bg-green-50 text-primary`},sp=(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}`))]})]}),cp=e=>`${e.quantity}${e.quantityUnit?` ${e.quantityUnit}`:``}`,lp=({shellProps:e,orderNumber:t,orderDate:n,status:r,statusTone:i=`neutral`,projectName:a,items:o,shippingAddress:s,billingAddress:c,shippingMethod:l,paymentMethod:d,summaryRows:p,backLabel:m=`Back to order history`,invoiceLabel:h=`Download invoice`,helpLabel:g=`Get help with this order`,onBackClick:_,onInvoiceClick:v,onHelpClick:y,onProductClick:b,onTrackingClick:x})=>{let S=e=>e.trackingNumber?x?(0,u.jsxs)(`button`,{type:`button`,className:`text-left text-sm font-semibold text-accent hover:underline`,onClick:()=>x({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)(Hu,{...e,activeTabId:`order-history`,children:[(0,u.jsx)(`div`,{className:`flex justify-start`,children:(0,u.jsx)(O,{label:m,iconType:`fa-solid`,iconName:`arrow-left`,iconAlt:``,variant:`link`,intent:`primary`,size:`sm`,onClick:_})}),(0,u.jsx)(`header`,{className:`mt-5 rounded-lg border border-borderTertiary bg-white 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 #`,t]}),(0,u.jsx)(`span`,{className:`rounded-full px-3 py-1 text-sm font-semibold ${op[i]}`,children:r})]}),(0,u.jsxs)(f,{className:`mt-3 text-secondaryActive`,children:[`Placed `,n]}),a?(0,u.jsxs)(f,{className:`mt-1 text-secondaryActive`,children:[`Project: `,a]}):null]}),v?(0,u.jsx)(`div`,{className:`md:shrink-0`,children:(0,u.jsx)(O,{label:h,iconType:`fa-solid`,iconName:`download`,iconAlt:``,intent:`primary`,onClick:v})}):null]})}),(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-4`,children:o.map(e=>(0,u.jsxs)(`article`,{className:`rounded-lg border border-borderTertiary bg-white 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:[b?(0,u.jsx)(`button`,{type:`button`,className:`text-left font-semibold text-primary hover:text-accent hover:underline`,onClick:()=>b({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:cp(e)})]}),(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 ${op[e.statusTone??`neutral`]}`,children:e.status}),e.statusDetail?(0,u.jsx)(f,{className:`text-sm text-secondaryActive`,children:e.statusDetail}):null]}),S(e)]})]},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.jsxs)(`div`,{className:`mt-5 grid grid-cols-1 gap-6 md:grid-cols-2`,children:[sp(`Shipping address`,s),l?(0,u.jsxs)(`section`,{"aria-label":`Shipping method`,children:[(0,u.jsx)(f,{as:`h3`,variant:`free`,className:`font-semibold text-primary`,children:`Shipping method`}),(0,u.jsx)(f,{className:`mt-3 text-sm text-primary`,children:l.name}),l.estimatedDelivery?(0,u.jsx)(f,{className:`mt-1 text-sm text-secondaryActive`,children:l.estimatedDelivery}):null]}):null]}),c||d?(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?sp(`Billing address`,c):null,d?(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:d})]}):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:p.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}`))})]})]}),y?(0,u.jsx)(`div`,{className:`mt-8 flex justify-end`,children:(0,u.jsx)(O,{label:g,variant:`outline`,intent:`primary`,onClick:y})}):null]})};exports.AccountAccessPanel=Vu,exports.AdminAuthStatusTemplate=Sf,exports.AdminDashboardTemplate=hf,exports.AdminDataIssuesSourceTemplate=qf,exports.AdminDataIssuesTemplate=Vf,exports.AdminDataReportTemplate=Ef,exports.AdminIssueGroupReviewTemplate=Qf,exports.AdminPageTemplateShell=Xd,exports.AdminProductGuidesTemplate=np,exports.AdminRegionSelector=ho,exports.AdminSideNav=$s,exports.AdminUsersTemplate=yf,exports.AnnouncementBar=Qc,exports.ArticleBanner=Kl,exports.ArticleBannerContent=Wo,exports.ArticleLandingPageTemplate=cd,exports.BpcsCartConfirmationTemplate=Fd,exports.BpcsCartSamplesTemplate=Bd,exports.BpcsCartShippingTemplate=zd,exports.BrandNavBar=Vc,exports.Breadcrumbs=$c,exports.BusinessInfoCard=q,exports.Button=O,exports.CallToActionHero=ul,exports.CallToActionHeroContent=Go,exports.CarouselArrowControls=ko,exports.CarouselDots=Ao,exports.CartItemCard=ae,exports.CategoryPageTemplate=vd,exports.ClickableCard=J,exports.ColourMatchingChart=rs,exports.ColumnBanner=_l,exports.ColumnCarouselCard=ao,exports.CommerceSyncPanel=Nu,exports.ContentCarousel=ql,exports.ContentContainer=R,exports.ContentGrid=V,exports.CountrySelector=po,exports.CustomerAccountFavoritesTemplate=rp,exports.CustomerAccountOrderDetailTemplate=lp,exports.CustomerAccountOrderHistoryTemplate=ap,exports.CustomerAccountSettingsTemplate=ip,exports.CustomerAccountShell=Hu,exports.CustomerAddressCard=Zs,exports.DataHealthSummaryCard=_s,exports.DataIssueActionCard=Cs,exports.DataIssueMetricCard=bs,exports.DataReportCollection=_u,exports.DecorSummaryCard=ce,exports.DecorSummaryCollection=vu,exports.DocumentLinkCard=Zo,exports.DropdownFilter=Co,exports.DynamicForm=pc,exports.EcommCartConfirmationTemplate=Vd,exports.EcommCartPaymentTemplate=Wd,exports.EcommCartShippingTemplate=Gd,exports.EcommCartSummaryTemplate=Yd,exports.EmbeddedVideo=N,exports.EmbeddedVideoCard=Xo,exports.FaqCard=Qo,exports.FaqCardCollection=nu,exports.FeatureCard=oo,exports.FeatureCardCollection=xl,exports.FeaturedArticleBanner=dl,exports.FeaturedArticleBannerContent=Ko,exports.FeaturedProductCard=so,exports.FeaturedProductsCarousel=eu,exports.FilterBar=_o,exports.FilterBarButton=vo,exports.FlowRow=ne,exports.Footer=ol,exports.FormicaText=f,exports.GalleryTemplate=bd,exports.Icon=g,exports.Image=j,exports.ImageCard=Jl,exports.ImageOverlayCard=Yo,exports.ImageOverlayGrid=au,exports.InfoCard=$o,exports.IssueGroupQueueSummaryCard=Es,exports.IssueGroupReviewCard=ks,exports.IssueRecordCandidateCard=Os,exports.IssueTypeBreakdownCard=Ts,exports.LocalizationMarketCollection=cu,exports.LocalizationStatusCard=qs,exports.LocationCard=fo,exports.LocationCardCollection=su,exports.LocationMap=wu,exports.LoginTemplate=Dd,exports.MarketReadinessBrowseTemplate=Tf,exports.MarketReadinessLandingTemplate=wf,exports.MarketReadinessRangeSelector=go,exports.MarketReadinessTemplate=uf,exports.MessageListCard=Ns,exports.Modal=hc,exports.MoreInfoHighlightsCard=es,exports.MoreInfoHighlightsCollection=Sl,exports.ProResourceTemplate=Sd,exports.ProductContactActions=oe,exports.ProductDetailPageTemplate=od,exports.ProductJourneyTemplate=mf,exports.QuantityCheckoutCard=as,exports.RecentArticleCard=ps,exports.RecentArticleCollection=tu,exports.RecommendedNextStepCard=As,exports.ResilientImage=F,exports.SampleOrderSummaryPanel=Cl,exports.SearchCombobox=Oo,exports.SearchFilter=Do,exports.SearchResultsTemplate=Ed,exports.SingleButtonCard=ms,exports.SocialLinkRow=Jo,exports.Spinner=v,exports.StandardBannerContainer=cl,exports.StandardCarousel=Vo,exports.StandardCopyBannerContent=qo,exports.StandardCopyHero=Gl,exports.StatusFlowActionCard=Fs,exports.StatusFlowConnector=Bs,exports.StatusFlowDiagram=Tu,exports.StatusFlowGroup=Eu,exports.StatusFlowLegendCard=Us,exports.StatusFlowPanel=Ou,exports.StatusSummaryCard=Gs,exports.SwatchCard=Xs,exports.SwatchPurchasePanel=Wl,exports.TextCard=Ql,exports.Textarea=I,exports.TopNavAccountDrawer=Yc,exports.TopNavActions=Kc,exports.TopNavBar=Zc,exports.TopNavMegaMenu=Hc,exports.TopNavSearchResults=Wc,exports.VerticalCheckboxListCollection=Lu,exports.VerticalColorSwatchList=Uo,exports.WarrantyCard=$l,exports.WhereToBuySearchBanner=ll,exports.WhereToBuyTemplate=kd,exports.userTypeOptions=Ru;