formica-ui-lib 1.0.261 → 1.0.263
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`},L=`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?L:``} ${I[a]} ${t}`.trim(),children:(0,u.jsx)(`div`,{className:`mx-auto w-full ${F[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`},te=({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`,ne=(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:()=>ne(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:()=>ne(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:G,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:()=>ne(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:()=>ne(l,a.value,a.href),children:a.value}):(0,u.jsx)(d,{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:f,onRemoveItem:p})=>{let m=re(o,c,l),h=()=>{let e=re(m-1,c,l);e!==m&&f?.(e)},g=()=>{let e=re(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:ie(_)}),(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: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)(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)})})},q=({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});function se(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 ce(e){if(Array.isArray(e))return e}function le(e){if(Array.isArray(e))return se(e)}function ue(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function de(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,Se(r.key),r)}}function fe(e,t,n){return t&&de(e.prototype,t),n&&de(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function pe(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=we(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
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
4
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ve(Object(n),!0).forEach(function(t){J(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ye(e,t){return ce(e)||he(e,t)||we(e,t)||ge()}function be(e){return le(e)||me(e)||we(e)||_e()}function xe(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 Se(e){var t=xe(e,`string`);return typeof t==`symbol`?t:t+``}function Ce(e){"@babel/helpers - typeof";return Ce=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},Ce(e)}function we(e,t){if(e){if(typeof e==`string`)return se(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)?se(e,t):void 0}}var Te=function(){},Ee={},De={},Oe=null,ke={mark:Te,measure:Te};try{typeof window<`u`&&(Ee=window),typeof document<`u`&&(De=document),typeof MutationObserver<`u`&&(Oe=MutationObserver),typeof performance<`u`&&(ke=performance)}catch{}var Ae=(Ee.navigator||{}).userAgent,je=Ae===void 0?``:Ae,Me=Ee,X=De,Ne=Oe,Pe=ke;Me.document;var Fe=!!X.documentElement&&!!X.head&&typeof X.addEventListener==`function`&&typeof X.createElement==`function`,Ie=~je.indexOf(`MSIE`)||~je.indexOf(`Trident/`),Le,Re=/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)?[\-\ ]/,ze=/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,Be={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`}},Ve={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},He=[`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`],Ue=`classic`,We=`duotone`,Ge=`sharp`,Ke=`sharp-duotone`,qe=`chisel`,Je=`etch`,Ye=`graphite`,Xe=`jelly`,Ze=`jelly-duo`,Qe=`jelly-fill`,$e=`notdog`,et=`notdog-duo`,tt=`slab`,nt=`slab-press`,rt=`thumbprint`,it=`utility`,at=`utility-duo`,ot=`utility-fill`,st=`whiteboard`,ct=`Classic`,lt=`Duotone`,ut=`Sharp`,dt=`Sharp Duotone`,ft=`Chisel`,pt=`Etch`,mt=`Graphite`,ht=`Jelly`,gt=`Jelly Duo`,_t=`Jelly Fill`,vt=`Notdog`,yt=`Notdog Duo`,bt=`Slab`,xt=`Slab Press`,St=`Thumbprint`,Ct=`Utility`,wt=`Utility Duo`,Tt=`Utility Fill`,Et=`Whiteboard`,Dt=[Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st];Le={},J(J(J(J(J(J(J(J(J(J(Le,Ue,ct),We,lt),Ge,ut),Ke,dt),qe,ft),Je,pt),Ye,mt),Xe,ht),Ze,gt),Qe,_t),J(J(J(J(J(J(J(J(J(Le,$e,vt),et,yt),tt,bt),nt,xt),rt,St),it,Ct),at,wt),ot,Tt),st,Et);var Ot={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`}},kt={"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`}},At=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}]]),jt={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`}},Mt=[`fak`,`fa-kit`,`fakd`,`fa-kit-duotone`],Nt={kit:{fak:`kit`,"fa-kit":`kit`},"kit-duotone":{fakd:`kit-duotone`,"fa-kit-duotone":`kit-duotone`}},Pt=[`kit`];J(J({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var Ft={kit:{"fa-kit":`fak`},"kit-duotone":{"fa-kit-duotone":`fakd`}},It={"Font Awesome Kit":{400:`fak`,normal:`fak`},"Font Awesome Kit Duotone":{400:`fakd`,normal:`fakd`}},Lt={kit:{fak:`fa-kit`},"kit-duotone":{fakd:`fa-kit-duotone`}},Rt={kit:{kit:`fak`},"kit-duotone":{"kit-duotone":`fakd`}},zt,Bt={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},Vt=[`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`];zt={},J(J(J(J(J(J(J(J(J(J(zt,`classic`,`Classic`),`duotone`,`Duotone`),`sharp`,`Sharp`),`sharp-duotone`,`Sharp Duotone`),`chisel`,`Chisel`),`etch`,`Etch`),`graphite`,`Graphite`),`jelly`,`Jelly`),`jelly-duo`,`Jelly Duo`),`jelly-fill`,`Jelly Fill`),J(J(J(J(J(J(J(J(J(zt,`notdog`,`Notdog`),`notdog-duo`,`Notdog Duo`),`slab`,`Slab`),`slab-press`,`Slab Press`),`thumbprint`,`Thumbprint`),`utility`,`Utility`),`utility-duo`,`Utility Duo`),`utility-fill`,`Utility Fill`),`whiteboard`,`Whiteboard`),J(J({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var Ht={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`}},Ut={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`]},Wt={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`}},Gt=`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(Vt,[`fa-solid`,`fa-regular`,`fa-light`,`fa-thin`,`fa-duotone`,`fa-brands`,`fa-semibold`]),Kt=[`solid`,`regular`,`light`,`thin`,`duotone`,`brands`,`semibold`],qt=[1,2,3,4,5,6,7,8,9,10],Jt=qt.concat([11,12,13,14,15,16,17,18,19,20]),Yt=[].concat(be(Object.keys(Ut)),Kt,[`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`,Bt.GROUP,Bt.SWAP_OPACITY,Bt.PRIMARY,Bt.SECONDARY],qt.map(function(e){return`${e}x`}),Jt.map(function(e){return`w-${e}`})),Xt={"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`}},Zt=`___FONT_AWESOME___`,Qt=16,$t=`fa`,en=`svg-inline--fa`,tn=`data-fa-i2svg`,nn=`data-fa-pseudo-element`,rn=`data-fa-pseudo-element-pending`,an=`data-prefix`,on=`data-icon`,sn=`fontawesome-i2svg`,cn=`async`,ln=[`HTML`,`HEAD`,`STYLE`,`SCRIPT`],un=[`::before`,`::after`,`:before`,`:after`],dn=function(){try{return process.env.NODE_ENV===`production`}catch{return!1}}();function fn(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[Ue]}})}var pn=Y({},Be);pn[Ue]=Y(Y(Y(Y({},{"fa-duotone":`duotone`}),Be[Ue]),Nt.kit),Nt[`kit-duotone`]);var mn=fn(pn),hn=Y({},jt);hn[Ue]=Y(Y(Y(Y({},{duotone:`fad`}),hn[Ue]),Rt.kit),Rt[`kit-duotone`]);var gn=fn(hn),_n=Y({},Wt);_n[Ue]=Y(Y({},_n[Ue]),Lt.kit);var vn=fn(_n),yn=Y({},Ht);yn[Ue]=Y(Y({},yn[Ue]),Ft.kit),fn(yn);var bn=Re,xn=`fa-layers-text`,Sn=ze;fn(Y({},Ot));var Cn=[`class`,`data-prefix`,`data-icon`,`data-fa-transform`,`data-fa-mask`],wn=Ve,Tn=[].concat(be(Pt),be(Yt)),En=Me.FontAwesomeConfig||{};function Dn(e){var t=X.querySelector(`script[`+e+`]`);if(t)return t.getAttribute(e)}function On(e){return e===``?!0:e===`false`?!1:e===`true`?!0:e}X&&typeof X.querySelector==`function`&&[[`data-family-prefix`,`familyPrefix`],[`data-css-prefix`,`cssPrefix`],[`data-family-default`,`familyDefault`],[`data-style-default`,`styleDefault`],[`data-replacement-class`,`replacementClass`],[`data-auto-replace-svg`,`autoReplaceSvg`],[`data-auto-add-css`,`autoAddCss`],[`data-search-pseudo-elements`,`searchPseudoElements`],[`data-search-pseudo-elements-warnings`,`searchPseudoElementsWarnings`],[`data-search-pseudo-elements-full-scan`,`searchPseudoElementsFullScan`],[`data-observe-mutations`,`observeMutations`],[`data-mutate-approach`,`mutateApproach`],[`data-keep-original-source`,`keepOriginalSource`],[`data-measure-performance`,`measurePerformance`],[`data-show-missing-icons`,`showMissingIcons`]].forEach(function(e){var t=ye(e,2),n=t[0],r=t[1],i=On(Dn(n));i!=null&&(En[r]=i)});var kn={styleDefault:`solid`,familyDefault:Ue,cssPrefix:$t,replacementClass:en,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:`async`,keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};En.familyPrefix&&(En.cssPrefix=En.familyPrefix);var An=Y(Y({},kn),En);An.autoReplaceSvg||(An.observeMutations=!1);var Z={};Object.keys(kn).forEach(function(e){Object.defineProperty(Z,e,{enumerable:!0,set:function(t){An[e]=t,jn.forEach(function(e){return e(Z)})},get:function(){return An[e]}})}),Object.defineProperty(Z,`familyPrefix`,{enumerable:!0,set:function(e){An.cssPrefix=e,jn.forEach(function(e){return e(Z)})},get:function(){return An.cssPrefix}}),Me.FontAwesomeConfig=Z;var jn=[];function Mn(e){return jn.push(e),function(){jn.splice(jn.indexOf(e),1)}}var Nn=Qt,Pn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Fn(e){if(!(!e||!Fe)){var t=X.createElement(`style`);t.setAttribute(`type`,`text/css`),t.innerHTML=e;for(var n=X.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],o=(a.tagName||``).toUpperCase();[`STYLE`,`LINK`].indexOf(o)>-1&&(r=a)}return X.head.insertBefore(t,r),e}}var In=`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`;function Ln(){for(var e=12,t=``;e-- >0;)t+=In[Math.random()*62|0];return t}function Rn(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function zn(e){return e.classList?Rn(e.classList):(e.getAttribute(`class`)||``).split(` `).filter(function(e){return e})}function Bn(e){return`${e}`.replace(/&/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function Vn(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}="${Bn(e[n])}" `},``).trim()}function Hn(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}: ${e[n].trim()};`},``)}function Un(e){return e.size!==Pn.size||e.x!==Pn.x||e.y!==Pn.y||e.rotate!==Pn.rotate||e.flipX||e.flipY}function Wn(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 Gn(e){var t=e.transform,n=e.width,r=n===void 0?Qt:n,i=e.height,a=i===void 0?Qt:i,o=e.startCentered,s=o===void 0?!1:o,c=``;return s&&Ie?c+=`translate(${t.x/Nn-r/2}em, ${t.y/Nn-a/2}em) `:s?c+=`translate(calc(-50% + ${t.x/Nn}em), calc(-50% + ${t.y/Nn}em)) `:c+=`translate(${t.x/Nn}em, ${t.y/Nn}em) `,c+=`scale(${t.size/Nn*(t.flipX?-1:1)}, ${t.size/Nn*(t.flipY?-1:1)}) `,c+=`rotate(${t.rotate}deg) `,c}var Kn=`: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`);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}),te={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`},F={none:``,section:`mb-16 md:mb-20`,compactPaddedSection:`px-4 mb-8 md:px-0 md:mb-10`,paddedSection:`px-4 mb-16 md:px-0 md:mb-20`,padded:`px-4 pb-16 md:px-0 md:pb-20`,preview:`px-4 py-8 md:px-0`,verticalPreview:`py-8`},ne=`mt-10 md:mt-20`,I=({children:e,className:t=``,innerClassName:n=``,isFirst:r=!1,maxWidth:i=`6xl`,spacing:a=`paddedSection`})=>(0,u.jsx)(`div`,{className:`mx-auto w-full ${r?ne:``} ${F[a]} ${t}`.trim(),children:(0,u.jsx)(`div`,{className:`mx-auto w-full ${te[i]} ${n}`.trim(),children:e})}),L={1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`},R={sm:`gap-3`,md:`gap-6`,lg:`gap-8`,xl:`gap-12`},z=({children:e,className:t=``,gridClassName:n=``,maxWidth:r=`6xl`,spacing:i=`none`,columns:a=3,gap:o=`md`})=>(0,u.jsx)(I,{className:t,maxWidth:r,spacing:i,children:(0,u.jsx)(`div`,{className:`grid ${L[a]} ${R[o]} ${n}`.trim(),children:e})}),B={sm:`gap-2`,md:`gap-4`,lg:`gap-6`,xl:`gap-8`},V={start:`items-start`,center:`items-center`,end:`items-end`,stretch:`items-stretch`},H={start:`justify-start`,center:`justify-center`,end:`justify-end`,between:`justify-between`,around:`justify-around`,evenly:`justify-evenly`},U=({children:e,className:t=``,gap:n=`md`,align:r=`center`,justify:i=`start`,wrap:a=!0})=>(0,u.jsx)(`div`,{className:`flex ${a?`flex-wrap`:`flex-nowrap`} ${B[n]} ${V[r]} ${H[i]} ${t}`.trim(),children:e}),re=`font-bold text-primary`,W=(e,t,n)=>{e?.({label:t,href:n})},G=({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:()=>W(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:()=>W(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:re,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:()=>W(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:()=>W(l,a.value,a.href),children:a.value}):(0,u.jsx)(d,{as:`span`,variant:`body`,className:`text-base`,children:a.value})})]}):null]})]})},ie=(e,t,n)=>Math.max(t,Math.min(n,e)),K=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:f,onRemoveItem:p})=>{let m=ie(o,c,l),h=()=>{let e=ie(m-1,c,l);e!==m&&f?.(e)},g=()=>{let e=ie(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:K(_)}),(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:K(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)(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)})})},q=({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});function se(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 ce(e){if(Array.isArray(e))return e}function J(e){if(Array.isArray(e))return se(e)}function le(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ue(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,xe(r.key),r)}}function de(e,t,n){return t&&ue(e.prototype,t),n&&ue(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function fe(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Ce(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=xe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function me(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function he(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(){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 _e(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?_e(Object(n),!0).forEach(function(t){Y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ve(e,t){return ce(e)||me(e,t)||Ce(e,t)||he()}function ye(e){return J(e)||pe(e)||Ce(e)||ge()}function be(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 xe(e){var t=be(e,`string`);return typeof t==`symbol`?t:t+``}function Se(e){"@babel/helpers - typeof";return Se=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},Se(e)}function Ce(e,t){if(e){if(typeof e==`string`)return se(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)?se(e,t):void 0}}var we=function(){},Te={},Ee={},De=null,Oe={mark:we,measure:we};try{typeof window<`u`&&(Te=window),typeof document<`u`&&(Ee=document),typeof MutationObserver<`u`&&(De=MutationObserver),typeof performance<`u`&&(Oe=performance)}catch{}var ke=(Te.navigator||{}).userAgent,Ae=ke===void 0?``:ke,je=Te,Z=Ee,Me=De,Ne=Oe;je.document;var Pe=!!Z.documentElement&&!!Z.head&&typeof Z.addEventListener==`function`&&typeof Z.createElement==`function`,Fe=~Ae.indexOf(`MSIE`)||~Ae.indexOf(`Trident/`),Ie,Le=/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)?[\-\ ]/,Re=/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,ze={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`}},Be={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},Ve=[`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`],He=`classic`,Ue=`duotone`,We=`sharp`,Ge=`sharp-duotone`,Ke=`chisel`,qe=`etch`,Je=`graphite`,Ye=`jelly`,Xe=`jelly-duo`,Ze=`jelly-fill`,Qe=`notdog`,$e=`notdog-duo`,et=`slab`,tt=`slab-press`,nt=`thumbprint`,rt=`utility`,it=`utility-duo`,at=`utility-fill`,ot=`whiteboard`,st=`Classic`,ct=`Duotone`,lt=`Sharp`,ut=`Sharp Duotone`,dt=`Chisel`,ft=`Etch`,pt=`Graphite`,mt=`Jelly`,ht=`Jelly Duo`,gt=`Jelly Fill`,_t=`Notdog`,vt=`Notdog Duo`,yt=`Slab`,bt=`Slab Press`,xt=`Thumbprint`,St=`Utility`,Ct=`Utility Duo`,wt=`Utility Fill`,Tt=`Whiteboard`,Et=[He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot];Ie={},Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Ie,He,st),Ue,ct),We,lt),Ge,ut),Ke,dt),qe,ft),Je,pt),Ye,mt),Xe,ht),Ze,gt),Y(Y(Y(Y(Y(Y(Y(Y(Y(Ie,Qe,_t),$e,vt),et,yt),tt,bt),nt,xt),rt,St),it,Ct),at,wt),ot,Tt);var Dt={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`}},Ot={"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`}},kt=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}]]),At={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`}},jt=[`fak`,`fa-kit`,`fakd`,`fa-kit-duotone`],Mt={kit:{fak:`kit`,"fa-kit":`kit`},"kit-duotone":{fakd:`kit-duotone`,"fa-kit-duotone":`kit-duotone`}},Nt=[`kit`];Y(Y({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var Pt={kit:{"fa-kit":`fak`},"kit-duotone":{"fa-kit-duotone":`fakd`}},Ft={"Font Awesome Kit":{400:`fak`,normal:`fak`},"Font Awesome Kit Duotone":{400:`fakd`,normal:`fakd`}},It={kit:{fak:`fa-kit`},"kit-duotone":{fakd:`fa-kit-duotone`}},Lt={kit:{kit:`fak`},"kit-duotone":{"kit-duotone":`fakd`}},Rt,zt={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},Bt=[`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`];Rt={},Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Rt,`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(Rt,`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 Vt={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`}},Ht={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`]},Ut={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`}},Wt=`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(Bt,[`fa-solid`,`fa-regular`,`fa-light`,`fa-thin`,`fa-duotone`,`fa-brands`,`fa-semibold`]),Gt=[`solid`,`regular`,`light`,`thin`,`duotone`,`brands`,`semibold`],Kt=[1,2,3,4,5,6,7,8,9,10],qt=Kt.concat([11,12,13,14,15,16,17,18,19,20]),Jt=[].concat(ye(Object.keys(Ht)),Gt,[`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`,zt.GROUP,zt.SWAP_OPACITY,zt.PRIMARY,zt.SECONDARY],Kt.map(function(e){return`${e}x`}),qt.map(function(e){return`w-${e}`})),Yt={"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`}},Xt=`___FONT_AWESOME___`,Zt=16,Qt=`fa`,$t=`svg-inline--fa`,en=`data-fa-i2svg`,tn=`data-fa-pseudo-element`,nn=`data-fa-pseudo-element-pending`,rn=`data-prefix`,an=`data-icon`,on=`fontawesome-i2svg`,sn=`async`,cn=[`HTML`,`HEAD`,`STYLE`,`SCRIPT`],ln=[`::before`,`::after`,`:before`,`:after`],un=function(){try{return process.env.NODE_ENV===`production`}catch{return!1}}();function dn(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[He]}})}var fn=X({},ze);fn[He]=X(X(X(X({},{"fa-duotone":`duotone`}),ze[He]),Mt.kit),Mt[`kit-duotone`]);var pn=dn(fn),mn=X({},At);mn[He]=X(X(X(X({},{duotone:`fad`}),mn[He]),Lt.kit),Lt[`kit-duotone`]);var hn=dn(mn),gn=X({},Ut);gn[He]=X(X({},gn[He]),It.kit);var _n=dn(gn),vn=X({},Vt);vn[He]=X(X({},vn[He]),Pt.kit),dn(vn);var yn=Le,bn=`fa-layers-text`,xn=Re;dn(X({},Dt));var Sn=[`class`,`data-prefix`,`data-icon`,`data-fa-transform`,`data-fa-mask`],Cn=Be,wn=[].concat(ye(Nt),ye(Jt)),Tn=je.FontAwesomeConfig||{};function En(e){var t=Z.querySelector(`script[`+e+`]`);if(t)return t.getAttribute(e)}function Dn(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=ve(e,2),n=t[0],r=t[1],i=Dn(En(n));i!=null&&(Tn[r]=i)});var On={styleDefault:`solid`,familyDefault:He,cssPrefix:Qt,replacementClass:$t,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:`async`,keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Tn.familyPrefix&&(Tn.cssPrefix=Tn.familyPrefix);var kn=X(X({},On),Tn);kn.autoReplaceSvg||(kn.observeMutations=!1);var Q={};Object.keys(On).forEach(function(e){Object.defineProperty(Q,e,{enumerable:!0,set:function(t){kn[e]=t,An.forEach(function(e){return e(Q)})},get:function(){return kn[e]}})}),Object.defineProperty(Q,`familyPrefix`,{enumerable:!0,set:function(e){kn.cssPrefix=e,An.forEach(function(e){return e(Q)})},get:function(){return kn.cssPrefix}}),je.FontAwesomeConfig=Q;var An=[];function jn(e){return An.push(e),function(){An.splice(An.indexOf(e),1)}}var Mn=Zt,Nn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Pn(e){if(!(!e||!Pe)){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 Fn=`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`;function In(){for(var e=12,t=``;e-- >0;)t+=Fn[Math.random()*62|0];return t}function Ln(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Rn(e){return e.classList?Ln(e.classList):(e.getAttribute(`class`)||``).split(` `).filter(function(e){return e})}function zn(e){return`${e}`.replace(/&/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function Bn(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}="${zn(e[n])}" `},``).trim()}function Vn(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}: ${e[n].trim()};`},``)}function Hn(e){return e.size!==Nn.size||e.x!==Nn.x||e.y!==Nn.y||e.rotate!==Nn.rotate||e.flipX||e.flipY}function Un(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 Wn(e){var t=e.transform,n=e.width,r=n===void 0?Zt:n,i=e.height,a=i===void 0?Zt:i,o=e.startCentered,s=o===void 0?!1:o,c=``;return s&&Fe?c+=`translate(${t.x/Mn-r/2}em, ${t.y/Mn-a/2}em) `:s?c+=`translate(calc(-50% + ${t.x/Mn}em), calc(-50% + ${t.y/Mn}em)) `:c+=`translate(${t.x/Mn}em, ${t.y/Mn}em) `,c+=`scale(${t.size/Mn*(t.flipX?-1:1)}, ${t.size/Mn*(t.flipY?-1:1)}) `,c+=`rotate(${t.rotate}deg) `,c}var Gn=`: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,7 @@ 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 qn(){var e=$t,t=en,n=Z.cssPrefix,r=Z.replacementClass,i=Kn;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 Jn=!1;function Yn(){Z.autoAddCss&&!Jn&&(Fn(qn()),Jn=!0)}var Xn={mixout:function(){return{dom:{css:qn,insertCss:Yn}}},hooks:function(){return{beforeDOMElementCreation:function(){Yn()},beforeI2svg:function(){Yn()}}}},Zn=Me||{};Zn[Zt]||(Zn[Zt]={}),Zn[Zt].styles||(Zn[Zt].styles={}),Zn[Zt].hooks||(Zn[Zt].hooks={}),Zn[Zt].shims||(Zn[Zt].shims=[]);var Qn=Zn[Zt],$n=[],er=function(){X.removeEventListener(`DOMContentLoaded`,er),tr=1,$n.map(function(e){return e()})},tr=!1;Fe&&(tr=(X.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(X.readyState),tr||X.addEventListener(`DOMContentLoaded`,er));function nr(e){Fe&&(tr?setTimeout(e,0):$n.push(e))}function rr(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`?Bn(e):`<${t} ${Vn(r)}>${a.map(rr).join(``)}</${t}>`}function ir(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var ar=function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}},or=function(e,t,n,r){var i=Object.keys(e),a=i.length,o=r===void 0?t:ar(t,r),s,c,l;for(n===void 0?(s=1,l=e[i[0]]):(s=0,l=n);s<a;s++)c=i[s],l=o(l,e[c],c,e);return l};function sr(e){return be(e).length===1?e.codePointAt(0).toString(16):null}function cr(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 lr(e,t){var n=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).skipHooks,r=n===void 0?!1:n,i=cr(t);typeof Qn.hooks.addPack==`function`&&!r?Qn.hooks.addPack(e,cr(t)):Qn.styles[e]=Y(Y({},Qn.styles[e]||{}),i),e===`fas`&&lr(`fa`,t)}var ur=Qn.styles,dr=Qn.shims,fr=Object.keys(vn),pr=fr.reduce(function(e,t){return e[t]=Object.keys(vn[t]),e},{}),mr=null,hr={},gr={},_r={},vr={},yr={};function br(e){return~Tn.indexOf(e)}function xr(e,t){var n=t.split(`-`),r=n[0],i=n.slice(1).join(`-`);return r===e&&i!==``&&!br(i)?i:null}var Sr=function(){var e=function(e){return or(ur,function(t,n,r){return t[r]=or(n,e,{}),t},{})};hr=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}),gr=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}),yr=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 ur||Z.autoFetchSvg,n=or(dr,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:{}});_r=n.names,vr=n.unicodes,mr=jr(Z.styleDefault,{family:Z.familyDefault})};Mn(function(e){mr=jr(e.styleDefault,{family:Z.familyDefault})}),Sr();function Cr(e,t){return(hr[e]||{})[t]}function wr(e,t){return(gr[e]||{})[t]}function Tr(e,t){return(yr[e]||{})[t]}function Er(e){return _r[e]||{prefix:null,iconName:null}}function Dr(e){var t=vr[e],n=Cr(`fas`,e);return t||(n?{prefix:`fas`,iconName:n}:null)||{prefix:null,iconName:null}}function Or(){return mr}var kr=function(){return{prefix:null,iconName:null,rest:[]}};function Ar(e){var t=Ue,n=fr.reduce(function(e,t){return e[t]=`${Z.cssPrefix}-${t}`,e},{});return Dt.forEach(function(r){(e.includes(n[r])||e.some(function(e){return pr[r].includes(e)}))&&(t=r)}),t}function jr(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).family,n=t===void 0?Ue:t,r=mn[n][e];if(n===We&&!e)return`fad`;var i=gn[n][e]||gn[n][r],a=e in Qn.styles?e:null;return i||a||null}function Mr(e){var t=[],n=null;return e.forEach(function(e){var r=xr(Z.cssPrefix,e);r?n=r:e&&t.push(e)}),{iconName:n,rest:t}}function Nr(e){return e.sort().filter(function(e,t,n){return n.indexOf(e)===t})}var Pr=Gt.concat(Mt);function Fr(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).skipLookups,n=t===void 0?!1:t,r=null,i=Nr(e.filter(function(e){return Pr.includes(e)})),a=Nr(e.filter(function(e){return!Pr.includes(e)})),o=ye(i.filter(function(e){return r=e,!He.includes(e)}),1)[0],s=o===void 0?null:o,c=Ar(i),l=Y(Y({},Mr(a)),{},{prefix:jr(s,{family:c})});return Y(Y(Y({},l),zr({values:e,family:c,styles:ur,config:Z,canonical:l,givenPrefix:r})),Ir(n,r,l))}function Ir(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var a=t===`fa`?Er(i):{},o=Tr(r,i);return i=a.iconName||o||i,r=a.prefix||r,r===`far`&&!ur.far&&ur.fas&&!Z.autoFetchSvg&&(r=`fas`),{prefix:r,iconName:i}}var Lr=Dt.filter(function(e){return e!==Ue||e!==We}),Rr=Object.keys(Wt).filter(function(e){return e!==Ue}).map(function(e){return Object.keys(Wt[e])}).flat();function zr(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===We,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&&Lr.includes(n)&&(Object.keys(s).find(function(e){return Rr.includes(e)})||l.autoFetchSvg)&&(r.prefix=At.get(n).defaultShortPrefixId,r.iconName=Tr(r.prefix,r.iconName)||r.iconName),(r.prefix===`fa`||a===`fa`)&&(r.prefix=Or()||`fas`),r}var Br=function(){function e(){ue(this,e),this.definitions={}}return fe(e,[{key:`add`,value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(function(t){e.definitions[t]=Y(Y({},e.definitions[t]||{}),i[t]),lr(t,i[t]);var n=vn[Ue][t];n&&lr(n,i[t]),Sr()})}},{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}}])}(),Vr=[],Hr={},Ur={},Wr=Object.keys(Ur);function Gr(e,t){var n=t.mixoutsTo;return Vr=e,Hr={},Object.keys(Ur).forEach(function(e){Wr.indexOf(e)===-1&&delete Ur[e]}),Vr.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){typeof t[e]==`function`&&(n[e]=t[e]),Ce(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){Hr[e]||(Hr[e]=[]),Hr[e].push(r[e])})}e.provides&&e.provides(Ur)}),n}function Kr(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(Hr[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(r))}),t}function qr(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Hr[e]||[]).forEach(function(e){e.apply(null,n)})}function Jr(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ur[e]?Ur[e].apply(null,t):void 0}function Yr(e){e.prefix===`fa`&&(e.prefix=`fas`);var t=e.iconName,n=e.prefix||Or();if(t)return t=Tr(n,t)||t,ir(Xr.definitions,n,t)||ir(Qn.styles,n,t)}var Xr=new Br,Zr={noAuto:function(){Z.autoReplaceSvg=!1,Z.observeMutations=!1,qr(`noAuto`)},config:Z,dom:{i2svg:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Fe?(qr(`beforeI2svg`,e),Jr(`pseudoElements2svg`,e),Jr(`i2svg`,e)):Promise.reject(Error(`Operation requires a DOM of some kind.`))},watch:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot;Z.autoReplaceSvg===!1&&(Z.autoReplaceSvg=!0),Z.observeMutations=!0,nr(function(){Qr({autoReplaceSvgRoot:t}),qr(`watch`,e)})}},parse:{icon:function(e){if(e===null)return null;if(Ce(e)===`object`&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Tr(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=jr(e[0]);return{prefix:n,iconName:Tr(n,t)||t}}if(typeof e==`string`&&(e.indexOf(`${Z.cssPrefix}-`)>-1||e.match(bn))){var r=Fr(e.split(` `),{skipLookups:!0});return{prefix:r.prefix||Or(),iconName:Tr(r.prefix,r.iconName)||r.iconName}}if(typeof e==`string`){var i=Or();return{prefix:i,iconName:Tr(i,e)||e}}}},library:Xr,findIconDefinition:Yr,toHtml:rr},Qr=function(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).autoReplaceSvgRoot,t=e===void 0?X:e;(Object.keys(Qn.styles).length>0||Z.autoFetchSvg)&&Fe&&Z.autoReplaceSvg&&Zr.dom.i2svg({node:t})};function $r(e,t){return Object.defineProperty(e,`abstract`,{get:t}),Object.defineProperty(e,`html`,{get:function(){return e.abstract.map(function(e){return rr(e)})}}),Object.defineProperty(e,`node`,{get:function(){if(Fe){var t=X.createElement(`div`);return t.innerHTML=e.html,t.children}}}),e}function ei(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(Un(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=Hn(Y(Y({},a),{},{"transform-origin":`${s.x+o.x/16}em ${s.y+o.y/16}em`}))}return[{tag:`svg`,attributes:i,children:t}]}function ti(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=a===!0?`${t}-${Z.cssPrefix}-${n}`:a;return[{tag:`svg`,attributes:{style:`display: none;`},children:[{tag:`symbol`,attributes:Y(Y({},i),{},{id:o}),children:r}]}]}function ni(e){return[`aria-label`,`aria-labelledby`,`title`,`role`].some(function(t){return t in e})}function ri(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,c=e.maskId,l=e.extra,u=e.watchable,d=u===void 0?!1:u,f=r.found?r:n,p=f.width,m=f.height,h=[Z.replacementClass,a?`${Z.cssPrefix}-${a}`:``].filter(function(e){return l.classes.indexOf(e)===-1}).filter(function(e){return e!==``||!!e}).concat(l.classes).join(` `),g={children:[],attributes:Y(Y({},l.attributes),{},{"data-prefix":i,"data-icon":a,class:h,role:l.attributes.role||`img`,viewBox:`0 0 ${p} ${m}`})};!ni(l.attributes)&&!l.attributes[`aria-hidden`]&&(g.attributes[`aria-hidden`]=`true`),d&&(g.attributes[tn]=``);var _=Y(Y({},g),{},{prefix:i,iconName:a,main:n,mask:r,maskId:c,transform:o,symbol:s,styles:Y({},l.styles)}),v=r.found&&n.found?Jr(`generateAbstractMask`,_)||{children:[],attributes:{}}:Jr(`generateAbstractIcon`,_)||{children:[],attributes:{}},y=v.children,b=v.attributes;return _.children=y,_.attributes=b,s?ti(_):ei(_)}function ii(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.extra,o=e.watchable,s=o===void 0?!1:o,c=Y(Y({},a.attributes),{},{class:a.classes.join(` `)});s&&(c[tn]=``);var l=Y({},a.styles);Un(i)&&(l.transform=Gn({transform:i,startCentered:!0,width:n,height:r}),l[`-webkit-transform`]=l.transform);var u=Hn(l);u.length>0&&(c.style=u);var d=[];return d.push({tag:`span`,attributes:c,children:[t]}),d}function ai(e){var t=e.content,n=e.extra,r=Y(Y({},n.attributes),{},{class:n.classes.join(` `)}),i=Hn(n.styles);i.length>0&&(r.style=i);var a=[];return a.push({tag:`span`,attributes:r,children:[t]}),a}var oi=Qn.styles;function si(e){var t=e[0],n=e[1],r=ye(e.slice(4),1)[0],i=null;return i=Array.isArray(r)?{tag:`g`,attributes:{class:`${Z.cssPrefix}-${wn.GROUP}`},children:[{tag:`path`,attributes:{class:`${Z.cssPrefix}-${wn.SECONDARY}`,fill:`currentColor`,d:r[0]}},{tag:`path`,attributes:{class:`${Z.cssPrefix}-${wn.PRIMARY}`,fill:`currentColor`,d:r[1]}}]}:{tag:`path`,attributes:{fill:`currentColor`,d:r}},{found:!0,width:t,height:n,icon:i}}var ci={found:!1,width:512,height:512};function li(e,t){!dn&&!Z.showMissingIcons&&e&&console.error(`Icon with name "${e}" and prefix "${t}" is missing.`)}function ui(e,t){var n=t;return t===`fa`&&Z.styleDefault!==null&&(t=Or()),new Promise(function(r,i){if(n===`fa`){var a=Er(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&oi[t]&&oi[t][e]){var o=oi[t][e];return r(si(o))}li(e,t),r(Y(Y({},ci),{},{icon:Z.showMissingIcons&&e&&Jr(`missingIconAbstract`)||{}}))})}var di=function(){},fi=Z.measurePerformance&&Pe&&Pe.mark&&Pe.measure?Pe:{mark:di,measure:di},pi=`FA "7.2.0"`,mi=function(e){return fi.mark(`${pi} ${e} begins`),function(){return hi(e)}},hi=function(e){fi.mark(`${pi} ${e} ends`),fi.measure(`${pi} ${e}`,`${pi} ${e} begins`,`${pi} ${e} ends`)},gi={begin:mi,end:hi},_i=function(){};function vi(e){return typeof(e.getAttribute?e.getAttribute(tn):null)==`string`}function yi(e){var t=e.getAttribute?e.getAttribute(an):null,n=e.getAttribute?e.getAttribute(on):null;return t&&n}function bi(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Z.replacementClass)}function xi(){return Z.autoReplaceSvg===!0?Ei.replace:Ei[Z.autoReplaceSvg]||Ei.replace}function Si(e){return X.createElementNS(`http://www.w3.org/2000/svg`,e)}function Ci(e){return X.createElement(e)}function wi(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).ceFn,n=t===void 0?e.tag===`svg`?Si:Ci:t;if(typeof e==`string`)return X.createTextNode(e);var r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){r.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){r.appendChild(wi(e,{ceFn:n}))}),r}function Ti(e){var t=` ${e.outerHTML} `;return t=`${t}Font Awesome fontawesome.com `,t}var Ei={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(wi(e),t)}),t.getAttribute(tn)===null&&Z.keepOriginalSource){var n=X.createComment(Ti(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~zn(t).indexOf(Z.replacementClass))return Ei.replace(e);var r=RegExp(`${Z.cssPrefix}-.*`);if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(` `).reduce(function(e,t){return t===Z.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(` `),i.toNode.length===0?t.removeAttribute(`class`):t.setAttribute(`class`,i.toNode.join(` `))}var a=n.map(function(e){return rr(e)}).join(`
|
|
556
|
-
`);t.setAttribute(
|
|
557
|
-
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function
|
|
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=Rn(n).filter(sa).map(oa),i=gi.begin(`searchPseudoElements`);Ai(),Promise.all(r).then(function(){i(),ji(),e()}).catch(function(){i(),ji(),t()})})}}var da={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=ua,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=t===void 0?X:t;Z.searchPseudoElements&&ua(n)}}},fa=!1,pa={mixout:function(){return{dom:{unwatch:function(){Ai(),fa=!0}}}},hooks:function(){return{bootstrap:function(){Ni(Kr(`mutationObserverCallbacks`,{}))},noAuto:function(){Pi()},watch:function(e){var t=e.observeMutationsRoot;fa?ji():Ni(Kr(`mutationObserverCallbacks`,{observeMutationsRoot:t}))}}}},ma=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})},ha={mixout:function(){return{parse:{transform:function(e){return ma(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-transform`);return n&&(e.transform=ma(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={outer:{transform:`translate(${r/2} 256)`},inner:{transform:`${`translate(${n.x*32}, ${n.y*32}) `} ${`scale(${n.size/16*(n.flipX?-1:1)}, ${n.size/16*(n.flipY?-1:1)}) `} ${`rotate(${n.rotate} 0 0)`}`},path:{transform:`translate(${i/2*-1} -256)`}};return{tag:`g`,attributes:Y({},a.outer),children:[{tag:`g`,attributes:Y({},a.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Y(Y({},t.icon.attributes),a.path)}]}]}}}},ga={x:0,y:0,width:`100%`,height:`100%`};function _a(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 va(e){return e.tag===`g`?e.children:[e]}Gr([Xn,qi,Ji,Yi,Xi,da,pa,ha,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-mask`),r=n?Fr(n.split(` `).map(function(e){return e.trim()})):kr();return r.prefix||=Or(),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=Wn({transform:o,containerWidth:l,iconWidth:s}),f={tag:`rect`,attributes:Y(Y({},ga),{},{fill:`white`})},p=c.children?{children:c.children.map(_a)}:{},m={tag:`g`,attributes:Y({},d.inner),children:[_a(Y({tag:c.tag,attributes:Y(Y({},c.attributes),d.path)},p))]},h={tag:`g`,attributes:Y({},d.outer),children:[m]},g=`mask-${a||Ln()}`,_=`clip-${a||Ln()}`,v={tag:`mask`,attributes:Y(Y({},ga),{},{id:g,maskUnits:`userSpaceOnUse`,maskContentUnits:`userSpaceOnUse`}),children:[f,h]},y={tag:`defs`,children:[{tag:`clipPath`,attributes:{id:_},children:va(u)},v]};return t.push(y,{tag:`rect`,attributes:Y({fill:`currentColor`,"clip-path":`url(#${_})`,mask:`url(#${g})`},ga)}),{children:t,attributes:n}}}},{provides:function(e){var t=!1;Me.matchMedia&&(t=Me.matchMedia(`(prefers-reduced-motion: reduce)`).matches),e.missingIconAbstract=function(){var e=[],n={fill:`currentColor`},r={attributeType:`XML`,repeatCount:`indefinite`,dur:`2s`};e.push({tag:`path`,attributes:Y(Y({},n),{},{d:`M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z`})});var i=Y(Y({},r),{},{attributeName:`opacity`}),a={tag:`circle`,attributes:Y(Y({},n),{},{cx:`256`,cy:`364`,r:`28`}),children:[]};return t||a.children.push({tag:`animate`,attributes:Y(Y({},r),{},{attributeName:`r`,values:`28;14;28;28;14;28;`})},{tag:`animate`,attributes:Y(Y({},i),{},{values:`1;0;1;1;0;1;`})}),e.push(a),e.push({tag:`path`,attributes:Y(Y({},n),{},{opacity:`1`,d:`M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z`}),children:t?[]:[{tag:`animate`,attributes:Y(Y({},i),{},{values:`1;0;0;0;0;1;`})}]}),t||e.push({tag:`path`,attributes:Y(Y({},n),{},{opacity:`0`,d:`M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z`}),children:[{tag:`animate`,attributes:Y(Y({},i),{},{values:`0;0;1;1;0;0;`})}]}),{tag:`g`,attributes:{class:`missing`},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-symbol`);return e.symbol=n===null?!1:n===``?!0:n,e}}}}],{mixoutsTo:Zr}),Zr.noAuto;var ya=Zr.config;Zr.library,Zr.dom;var ba=Zr.parse;Zr.findIconDefinition,Zr.toHtml;var xa=Zr.icon;Zr.layer,Zr.text,Zr.counter;function Sa(e){return e-=0,e===e}function Ca(e){return Sa(e)?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():``),e.charAt(0).toLowerCase()+e.slice(1))}var wa=(e,t)=>l.default.createElement(`stop`,{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function Ta(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ea=new Map,Da=1e3;function Oa(e){if(Ea.has(e))return Ea.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=Ca(n);t[e.startsWith(`webkit`)?Ta(e):e]=r}}}n=a+1}if(Ea.size===Da){let e=Ea.keys().next().value;e&&Ea.delete(e)}return Ea.set(e,t),t}function ka(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}}),ka(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=Oa(String(t));break;case e.startsWith(`aria-`):case e.startsWith(`data-`):a[e.toLowerCase()]=t;break;default:a[Ca(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(wa)))}return e(t.tag,{...a,...u},...r)}var Aa=ka.bind(null,l.default.createElement),ja=(e,t)=>{let n=(0,l.useId)();return e||(t?n:void 0)},Ma=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 Na=`searchPseudoElementsFullScan`in ya&&typeof ya.searchPseudoElementsFullScan==`boolean`?`7.0.0`:`6.0.0`,Pa=Number.parseInt(Na)>=7,Fa=()=>Pa,Ia=`fa`,La={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`},Ra={left:`fa-pull-left`,right:`fa-pull-right`},za={90:`fa-rotate-90`,180:`fa-rotate-180`,270:`fa-rotate-270`},Ba={"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`},Va={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`},Ha={default:`fa-layers`};function Ua(e){let t=ya.cssPrefix||ya.familyPrefix||Ia;return t===Ia?e:e.replace(new RegExp(String.raw`(?<=^|\s)${Ia}-`,`g`),`${t}-`)}function Wa(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(La.beat),n&&x.push(La.fade),r&&x.push(La.beatFade),i&&x.push(La.bounce),a&&x.push(La.shake),o&&x.push(La.spin),c&&x.push(La.spinReverse),s&&x.push(La.spinPulse),l&&x.push(La.pulse),u&&x.push(Va.fixedWidth),d&&x.push(Va.inverse),f&&x.push(Va.border),p===!0&&x.push(Va.flip),(p===`horizontal`||p===`both`)&&x.push(Va.flipHorizontal),(p===`vertical`||p===`both`)&&x.push(Va.flipVertical),m!=null&&x.push(Ba[m]),h!=null&&h!==0&&x.push(za[h]),g!=null&&x.push(Ra[g]),_&&x.push(Va.swapOpacity),Fa()?(v&&x.push(Va.rotateBy),y&&x.push(Va.widthAuto),(ya.cssPrefix||ya.familyPrefix||Ia)===Ia?x:x.map(Ua)):x}var Ga=e=>typeof e==`object`&&`icon`in e&&!!e.icon;function Ka(e){if(e)return Ga(e)?e:ba.icon(e)}function qa(e){return Object.keys(e)}var Ja=new Ma(`FontAwesomeIcon`),Ya={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},Xa=new Set(Object.keys(Ya)),Za=l.default.forwardRef((e,t)=>{let n={...Ya,...e},{icon:r,mask:i,symbol:a,title:o,titleId:s,maskId:c,transform:l}=n,u=ja(c,!!i),d=ja(s,!!o),f=Ka(r);if(!f)return Ja.error(`Icon lookup is undefined`,r),null;let p=Wa(n),m=typeof l==`string`?ba.transform(l):l,h=Ka(i),g=xa(f,{...p.length>0&&{classes:p},...m&&{transform:m},...h&&{mask:h},symbol:a,title:o,titleId:d,maskId:u});if(!g)return Ja.error(`Could not find icon`,f),null;let{abstract:_}=g,v={ref:t};for(let e of qa(n))Xa.has(e)||(v[e]=n[e]);return Aa(_[0],v)});Za.displayName=`FontAwesomeIcon`,`${Ha.default}${Va.fixedWidth}`;var Qa={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`]},$a={prefix:`fas`,iconName:`chevron-right`,icon:[320,512,[9002],`f054`,`M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z`]},eo={prefix:`fas`,iconName:`arrow-right`,icon:[512,512,[8594],`f061`,`M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z`]},to={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`]},no={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`]},ro=({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)(Za,{icon:eo,className:`-rotate-45 text-secondary w-4 h-4`})})}),l?(0,u.jsx)(`div`,{className:`absolute right-3 top-3 flex gap-2`,children:(0,u.jsx)(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)(Za,{icon:s?Qa:no,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]})})})},io=({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)(q,{onCardClick:s,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:m}):m},ao=({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)(q,{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})},oo=e=>{if(e.distance)return e.distance.label??`${e.distance.value.toLocaleString(void 0,{maximumFractionDigits:2})} ${e.distance.unit}`},so=e=>[e.city,e.region,e.postalCode].filter(Boolean).join(` `),co=(e,t,n)=>{e?.({location:t,href:n})},lo=({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=oo(e),p=so(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:()=>co(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:()=>co(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:()=>co(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:()=>co(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]})},uo=({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}`))})]})},fo=({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})})}),po=({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})})]}),mo={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`},ho={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`}},go=({variant:e,hasError:t,disabled:n})=>{let r=ho[e];return{wrapperClasses:[mo.wrapper,r.wrapper,t?`border-accent`:`border-secondaryHover`,n?`cursor-not-allowed opacity-60`:``].join(` `),selectClasses:[mo.select,r.select].join(` `),iconClasses:[mo.icon,r.icon].join(` `)}},_o=({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}=go({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})]})},vo=({dropdownProps:e,className:t=`w-full md:w-70`})=>(0,u.jsx)(`div`,{className:t,children:(0,u.jsx)(_o,{...e})}),yo=({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]})},bo=({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)(yo,{...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`})})},xo={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`},So=({searchBarProps:e,searchPlaceholder:t,layoutVariant:n=`default`})=>(0,u.jsx)(`div`,{className:xo[n],children:(0,u.jsx)(bo,{...e,placeholder:t??e.placeholder})}),Co=({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)(bo,{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]})},wo=({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`})})})]}),To=({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}`))}),Eo=(e,t)=>Math.max(0,Math.min(e,t-1)),Do=(e,t,n)=>n?(e+t)%t:Eo(e,t),Oo=e=>!!(e.eyebrow||e.heading||e.subheading||e.body||e.ctas?.length),ko=e=>`Open ${e.heading??`slide`}`,Ao=({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`})}),jo=({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)(Ao,{slide:e,heightClassName:n})}),Mo=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>(0,u.jsx)(q,{onCardClick:()=>{r(e,t)},ariaLabel:ko(e),className:`block w-full cursor-pointer text-left`,children:(0,u.jsx)(Ao,{slide:e,heightClassName:n})}),No=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>e.link?(0,u.jsx)(jo,{slide:e,index:t,heightClassName:n,onSlideClick:r}):r?(0,u.jsx)(Mo,{slide:e,index:t,heightClassName:n,onSlideClick:r}):(0,u.jsx)(Ao,{slide:e,heightClassName:n}),Po=({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]})})}),Fo=({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(()=>Eo(t,m)),_=c.default.useRef(e);c.default.useEffect(()=>{_.current=e},[e]),c.default.useEffect(()=>{let e=Eo(t,m);g(e),s?.(e,_.current[e])},[t,m,s]);let v=e[h],y=m>1,b=!!p,x=!b&&Oo(v),S=f??!b,C=t=>{let n=Do(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)(No,{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)(Po,{slide:v}):null,n&&y?(0,u.jsx)(`div`,{className:`hidden md:block`,children:(0,u.jsx)(wo,{onPreviousClick:()=>C(h-1),onNextClick:()=>C(h+1),prevArrowButtonProps:o,nextArrowButtonProps:a})}):null,r&&y?(0,u.jsx)(To,{count:e.length,activeIndex:h,onDotClick:C}):null]})},Io=e=>{let t=e.slides??[];return t.length===0?null:(0,u.jsx)(Fo,{...e,slides:t})},Lo=e=>[`relative flex h-6 w-6 items-center justify-center border border-secondaryHover`,e.disabled?`opacity-50 cursor-not-allowed`:`cursor-pointer`].join(` `),Ro=({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:Lo(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}`))})]})})},zo=({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]}),Bo=({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]})}),Vo=({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)(Za,{icon:eo,className:`h-4 w-4 -rotate-45 text-secondary`})})}):null]}),Ho=({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]})}),Uo=({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,Wo=({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)(q,{onCardClick:r,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:o}):o},Go=({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]})},Ko=({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})]})]})}),qo=({question:e,answer:t,initiallyOpen:n=!1})=>{let[r,i]=(0,c.useState)(n),a=(0,c.useId)();return(0,u.jsx)(q,{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`:``}`})})]})})},Jo=({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}`))})]})]})},Yo=({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]})})},Xo=[{key:`lrv`,code:`LRV`,iconName:`fa-sun`},{key:`ral`,code:`RAL`,iconName:`fa-palette`},{key:`ncs`,code:`NCS`,iconName:`fa-swatchbook`}],Zo=e=>e!=null&&String(e).trim().length>0,Qo=({colourMatching:e})=>{let t=Xo.map(t=>({...t,value:e?.[t.key]})).filter(e=>Zo(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},$o=e=>[`h-9 w-9 border-2 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),es=({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:$o(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:$o(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]})]})},ts=/^(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?$/,ns=new Intl.DateTimeFormat(`en-US`,{month:`long`,day:`numeric`,year:`numeric`,timeZone:`UTC`}),rs=e=>{let t=ts.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)))},is=e=>{let t=rs(e);if(t)return t;let n=new Date(e);return Number.isNaN(n.getTime())?null:n},as=e=>{let t=e?.trim();if(!t)return``;let n=is(t);return n?ns.format(n):t},os=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`,ss=({layoutVariant:e,mediaType:t,imageSrc:n,imageAlt:r,videoEmbedUrl:i,videoTitle:a,title:o})=>{let s=os(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},cs=({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=as(c),y=f.trim();return(0,u.jsxs)(`article`,{className:h,children:[(0,u.jsx)(`div`,{className:g,children:ss({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]})]})},ls=({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})}})]}),us=e=>Math.min(Math.max(e,0),100),ds={good:`text-saleGreen`,warning:`text-yellow-700`,critical:`text-accent`},fs=({title:e,score:t,scoreLabel:n,status:r=`good`,summary:i,detail:a,ariaLabel:o})=>{let s=us(t),c=a?.trim()??``,l=ds[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]})]})]})},ps={primary:`text-primary`,blue:`text-blue-600`,purple:`text-purple-700`,green:`text-saleGreen`,red:`text-accent`,gray:`text-tertiary`},ms={primary:`text-primary!`,blue:`text-blue-600!`,purple:`text-purple-700!`,green:`text-saleGreen!`,red:`text-accent!`,gray:`text-tertiary!`},hs=({value:e,label:t,detail:n,iconName:r,iconType:i=`fa-solid`,iconAlt:a=``,tone:o=`primary`,ariaLabel:s})=>{let c=n?.trim()??``,l=ps[o],f=ms[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]})},gs={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`}},_s={success:`text-saleGreen`,warning:`text-orange-600`,error:`text-accent`,review:`text-purple-700`,neutral:`text-primary`},vs=({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=gs[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 ${_s[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]})]})})},ys={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`},bs=({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 ${ys[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))})]}),xs=({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]})},Ss=e=>e===void 0||e===``?`--`:e,Cs=({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:Ss(a)}),(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:Ss(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:Ss(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:Ss(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:Ss(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:Ss(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})})]})}),ws=({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)(Cs,{...t,groupId:e,selected:t.recordId===o,selectLabel:c,selectedLabel:l,onSelect:g},t.recordId))})]})},Ts=({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})]})}),Es={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`}},Ds=({item:e})=>{let t=Es[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`})})},Os=({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)(Ds,{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})})]})},ks=(e,t,n)=>Math.min(Math.max(e,t),n),As=({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=ks(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})]})]})})},js={active:{lineClassName:`border-saleGreen`},degraded:{lineClassName:`border-secondaryActive`},failed:{lineClassName:`border-accent`}},Ms={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`}},Ns={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`}},Ps={solid:`border-solid`,dotted:`border-dashed`},Fs=({variant:e=`default`,state:t=`active`,checkpointStatus:n=`ok`,checkpointLabel:r,size:i=`default`,lineVariant:a=`solid`})=>{let o=js[t],s=Ms[n],c=Ns[i],l=Ps[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}`})]})},Is=[{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`}],Ls=[{label:`Flow active`,lineClassName:`border-saleGreen border-solid`},{label:`Degraded`,lineClassName:`border-secondaryActive border-dashed`},{label:`Failed`,lineClassName:`border-accent border-dashed`}],Rs=({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:Is.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:Ls.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))})]})]}),zs={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`}},Bs=({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=zs[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)(q,{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},Vs={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`}},Hs=({id:e,title:t,description:n,status:r,statusLabel:i,selected:a=!1,onCardClick:o})=>{let s=Vs[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)(q,{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},Us={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`}},Ws=`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbGw9IiNFNUU1RTUiLz4KICA8cmVjdCB4PSIxIiB5PSIxIiB3aWR0aD0iMjk4IiBoZWlnaHQ9IjI5OCIgZmlsbD0iI0YzRjNGMyIgc3Ryb2tlPSIjRDBEMEQwIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBkPSJNNDggMjAzTDExMCAxNDFMMTUzIDE4NEwyMjYgMTExTDI1MiAxMzdWMjUySDQ4VjIwM1oiIGZpbGw9IiNEOEQ4RDgiLz4KICA8Y2lyY2xlIGN4PSIxMDIiIGN5PSI5MSIgcj0iMjYiIGZpbGw9IiNEOEQ4RDgiLz4KICA8dGV4dCB4PSIxNTAiIHk9IjI3OCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iIzdBN0E3QSIgZm9udC1mYW1pbHk9IkFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjE4Ij5JbWFnZSBVbmF2YWlsYWJsZTwvdGV4dD4KPC9zdmc+Cg==`,Gs=({imageSrc:e,imageFallbackSrc:t,imageAlt:n,title:r,brand:i,product:a,decorNumber:o,status:s,onSwatchClick:c})=>{let l=s?Us[s]:null,f=typeof c==`function`,p=(0,u.jsx)(P,{src:e,fallbackSrc:t,placeholderSrc:Ws,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)(q,{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]})]})},Ks=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:Ks(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})]})]})},Js=({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]})]}),Ys={blocking:`Blocking`,recommended:`Recommended`,optional:`Optional`},Xs={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`}},Zs={compact:`space-y-3`,comfortable:`space-y-4`},Qs={compact:`py-1`,comfortable:`rounded-lg border border-borderTertiary p-4`},$s={compact:`mb-1.5 flex flex-wrap items-center gap-2`,comfortable:`mb-2 flex flex-wrap items-center gap-2`},ec=e=>e===null?``:String(e),tc=e=>{if(e.severity)return e.severity;if(e.required)return`blocking`},nc=e=>e.required||e.severity===`blocking`,rc=e=>ec(e.value).trim()===``,ic=e=>{if(e.trim()===``)return null;let t=Number(e);return Number.isNaN(t)?null:t},ac=e=>{if(!e.validationRegex)return e.state??`neutral`;let t=ec(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`}},oc=e=>{if(nc(e)&&rc(e))return`error`;let t=ac(e);return nc(e)&&t===`neutral`?`valid`:t},sc=({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=tc(e),r=oc(e);if(t===`none`||!n||nc(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:Ys[n]});let i=Xs[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=ec(e.value),n=oc(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)(_o,{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)(Js,{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)(yo,{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:ic(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:[Qs[i],r].filter(Boolean).join(` `),children:[(0,u.jsxs)(`div`,{className:$s[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=Zs[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]})},cc={sm:`max-w-md`,md:`max-w-2xl`,lg:`max-w-4xl`},lc=({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 ${cc[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},uc=({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)})})},dc=({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)(uc,{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)}})},fc=`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`,pc=`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`,mc=`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`,hc=`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`,gc=`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`,_c=`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`,vc=`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`,yc=`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`,bc=`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`,xc={formica:fc,hartsonkennedy:gc,trespa:vc,arpa:hc,homapal:_c,fenix:mc,broadview:yc},Sc=e=>/^https?:\/\//i.test(e)||e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`),Cc=e=>e.trim().toLowerCase().replace(/\s+/g,``).replace(/[^a-z0-9]/g,``);function wc(e){if(!e||Sc(e))return;let t=Cc(e);return xc[t]?t:void 0}function Tc(e,t){return e?Sc(e)?e:xc[Cc(e)]??t:t}function Ec(e,t){if(!e)return t;if(Sc(e))return e;let n=Cc(e);return n===`formica`?pc:n===`broadview`?bc:xc[n]??t}var Dc=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Oc=e=>{if(!Dc(e))return e;let t=e.value??e.jsonValue;return t===void 0?e:Oc(t)},kc=(e,t,n=!0)=>{let r=Oc(e);if(typeof r==`string`)return n?r:``;if(!Dc(r))return``;for(let e of t){let t=r[e];if(typeof t==`string`)return t}return``},Ac=(e,t)=>{let n=Oc(t);return Dc(n)?`${e}${typeof n.querystring==`string`?n.querystring:``}${typeof n.anchor==`string`?n.anchor:``}`:e},Q=e=>kc(e,[`text`,`title`,`label`,`href`,`url`]).trim(),jc=e=>{let t=kc(e,[`href`,`url`]).trim();return t?Ac(t,e):``},Mc=(e,t)=>kc(e,[`target`],!1).trim()||t,Nc=(e,t)=>kc(e,[`rel`],!1).trim()||t,Pc=({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=Q(e.label),r=jc(e.href),a=Tc(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)(dc,{ariaLabel:`Customer type`,defaultValue:r,buttonClassName:`aria-checked:font-bold text-secondary`,visualVariant:`brandBar`,onChange:e=>a?.(e),options:[`Commercial`,`Residential`]}):null})]})})},Fc=({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,Ic=e=>[e.title,e.subtitle].filter(Boolean).join(` `),Lc=({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)(q,{ariaLabel:Ic(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,Rc=300,zc=({Countries:e,countries:t,selectedCountry:n,Login:r,Cart:i={hasCart:!1,itemCount:0},showCart:a=!0,showFavorites:o=!0,showLogin:s=!0,searchResultItems:l=[],searchViewAllLabel:d,onSearchClick:f,onSearchChange:p,onSearchSubmit:m,onSearchResultClick:h,onSearchViewAllClick:g,onCartClick:_,onLoginClick:v,onFavoritesClick:y,onCountrySelect:b})=>{let[x,S]=(0,c.useState)(!1),[C,w]=(0,c.useState)(``),T=(0,c.useRef)(!1),E=i.hasCart&&i.itemCount>0,O=e??t??[],k=r.loggedIn?`Log Out`:r.label,A=r.loggedIn?`outline`:`solid`,j=C.trim(),M=l.length>0;return(0,c.useEffect)(()=>{if(!T.current)return;let e=window.setTimeout(()=>{p?.({query:C})},Rc);return()=>{window.clearTimeout(e)}},[p,C]),(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`,x?`w-56 opacity-100`:`w-0 opacity-0`].join(` `),"aria-hidden":!x,children:x?(0,u.jsx)(bo,{id:`top-nav-search`,value:C,placeholder:`Search`,autoComplete:`off`,autoFocus:!0,onChange:e=>{T.current=!0,w(e.target.value)},onBlur:()=>{C.trim()||S(!1)},onKeyDown:e=>{if(e.key===`Enter`&&j){m?.({query:j});return}e.key===`Escape`&&(w(``),S(!1))}}):null}),(0,u.jsx)(D,{iconType:`fa-solid`,iconName:`magnifying-glass`,iconAlt:`Search`,variant:`ghost`,onClick:()=>{if(!x){S(!0),f?.();return}if(j){m?.({query:j});return}S(!1)},"aria-expanded":x,"aria-controls":`top-nav-search`}),x&&M?(0,u.jsx)(`div`,{className:`absolute top-full right-0 z-30 mt-2`,children:(0,u.jsx)(Lc,{id:`top-nav-search-results`,items:l,viewAllLabel:d,onResultClick:e=>{h?.(e),S(!1)},onViewAllClick:()=>{g?.({query:j}),S(!1)}})}):null]}),(0,u.jsx)(`div`,{className:`h-4 border-l my-6`}),(0,u.jsx)(`div`,{className:`my-3`,children:(0,u.jsx)(uo,{countries:O,selectedCountry:n,onCountrySelect:b})}),(0,u.jsxs)(`div`,{className:`my-2 flex items-center space-x-1`,children:[a?(0,u.jsxs)(`div`,{className:`relative`,children:[(0,u.jsx)(D,{iconType:`fa-solid`,iconName:`cart-shopping`,iconAlt:`Cart`,intent:E?`accent`:`primary`,variant:`ghost`,onClick:_}),E?(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:i.itemCount}):null]}):null,o?(0,u.jsx)(D,{iconType:`fa-regular`,iconName:`heart`,iconAlt:`Favorites`,variant:`ghost`,onClick:y}):null]}),s?(0,u.jsx)(`div`,{children:(0,u.jsx)(D,{className:`my-3 rounded-md p-4`,size:`sm`,intent:`accent`,variant:A,label:k,onClick:v})}):null]})},Bc=`__mobile-menu-open__`,Vc=({NavMenuWithSubItems:e=[],countries:t,selectedCountry:n,Login:r,Cart:i,showCart:a=!0,showFavorites:o=!0,showLogin:s=!0,Logo:l,searchResultItems:d,searchViewAllLabel:f,onLogoClick:p,onNavItemClick:m,onMegaMenuLinkClick:h,onSearchClick:g,onSearchChange:_,onSearchSubmit:v,onSearchResultClick:y,onSearchViewAllClick:b,onCartClick:x,onLoginClick:S,onFavoritesClick:C,onCountrySelect:w})=>{let T=(0,c.useRef)(null),[E,O]=(0,c.useState)(null),[k,j]=(0,c.useState)(null),M=k!==null,N=e.find(e=>e.id===E),P=t??[],ee=r??{label:`Log In`,href:`/login`},F={hasCart:i?.hasCart??!1,itemCount:i?.itemCount??0},I=`Formica`,L=l?.src??I,R=wc(L),z=Ec(I)??``,B=Ec(L,z)??z,V=l?.alt??`${L} Logo`,H=R===`broadview`?`w-36 md:w-44`:`w-24`,U=R===`broadview`?`h-12 md:h-14`:`h-7 md:h-10`,W=l?.containerClassName??H,te=l?.className??U;(0,c.useEffect)(()=>{if(!E)return;let e=e=>{T.current?.contains(e.target)||O(null)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[E]);let G=()=>{j(null)},ne=(e,t={})=>{t.closeMobile&&G(),O(null),m?.(e)},K=(e,t)=>{if(e.subcategories?.length&&!e.href){O(E===t?null:t);return}ne(e)},re=(e,t={})=>{O(null),t.closeMobile&&G(),h?.(e)},ie=e=>{j(t=>t===e?Bc:e)};return(0,u.jsxs)(`header`,{ref:T,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 ${W} hover:bg-secondary`,onClick:p,"aria-label":`Go to home page`,children:(0,u.jsx)(A,{src:B,alt:``,className:te,quality:90})}),(0,u.jsxs)(`div`,{className:`flex items-center gap-8`,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:g}),a?(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${F.itemCount?` (${F.itemCount})`:``}`,onClick:x,children:F.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:F.itemCount}):null}):null,(0,u.jsx)(D,{variant:`ghost`,iconType:`fa-solid`,iconName:M?`xmark`:`bars`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":M?`Close menu`:`Open menu`,onClick:()=>{j(e=>e===null?Bc:null)},"aria-expanded":M})]})]}),M?(0,u.jsx)(`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=k===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:()=>ie(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:()=>re(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:()=>ne(e,{closeMobile:!0})},t)})}):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 ${W} hover:bg-secondary!`,onClick:p,"aria-label":`Go to home page`,children:(0,u.jsx)(A,{src:B,alt:V,className:te,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:()=>K(e,t),active:E===t},t)})}),(0,u.jsx)(zc,{Countries:P,selectedCountry:n,Login:ee,Cart:F,showCart:a,showFavorites:o,showLogin:s,searchResultItems:d,searchViewAllLabel:f,onSearchClick:g,onSearchChange:_,onSearchSubmit:v,onSearchResultClick:y,onSearchViewAllClick:b,onCartClick:x,onLoginClick:S,onFavoritesClick:C,onCountrySelect:w})]})]}),(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`,E?`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)(Fc,{activeItem:N,onMegaMenuLinkClick:re})})})})]})},Hc=({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},Uc=({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)]})})})})},Wc=({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=Q(e.src),i=Q(e.alt),a=e.label?Q(e.label):``,o=e.alt===void 0||e.alt===null?a:i,s=Tc(r,Tc(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=jc(e.href);if(!l)return c;let d=Mc(e.href,e.target)??`_self`;return(0,u.jsx)(`a`,{href:l,target:d,rel:Nc(e.href,e.rel)??(d===`_blank`?`noreferrer noopener`:void 0),className:`inline-flex`,children:c})},Gc=({primaryLogo:e,phoneLine:t,socials:n=[]})=>{let r=t?Q(t):``;return(0,u.jsxs)(`div`,{className:`space-y-6`,children:[(0,u.jsx)(Wc,{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=Q(e.label),n=jc(e.href),r=e.iconSrc?Q(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)(Za,{icon:e.faIcon,className:`w-4 h-4 text-black`}):null]},`${t}-${n}`):null})}):null]})},Kc=({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=Q(e.label),i=jc(e.href),a=Mc(e.href,e.target)??`_self`,o=Nc(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})},qc=({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=Q(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)(Kc,{item:e})},`${n}-${Q(e.label)}-${t}`))})]},`${n}-${t}`)})})}),Jc=({links:e=[],utilityLink:t,disclaimerLines:n=[],copyrightLine:r})=>{let i=r?Q(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)(Kc,{item:e,variant:`legal`},`${Q(e.label)}-${t}`)),t?(0,u.jsx)(`div`,{className:`ml-auto`,children:(0,u.jsx)(Kc,{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:Q(e)},t)),i?(0,u.jsx)(d,{variant:`standard`,className:`text-white/70 text-xs leading-relaxed`,children:i}):null]}):null]})},Yc=({affiliateLogos:e=[],parentLogo:t,phoneLine:n})=>{let r=n?Q(n):``;if(!e.length&&!t&&!r)return null;let i=t?(0,u.jsx)(`div`,{className:`ml-6 shrink-0`,children:(0,u.jsx)(Wc,{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)(Wc,{img:e,size:`affiliate`},`${e.label?Q(e.label):``}|${Q(e.alt)}|${jc(e.href)}|${Q(e.src)}|${t}`))}),i,a]})})},Xc=({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)(Gc,{...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)(qc,{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=Q(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)(Kc,{item:e,variant:`mobile`})},`${n}-${Q(e.label)}-${t}`))})]},`${n}-${t}`)})})]}),(0,u.jsx)(Yc,{affiliateLogos:e.affiliateLogos,parentLogo:n,phoneLine:a?e.phoneLine:void 0}),(0,u.jsx)(Jc,{...i})]})})},Zc=(...e)=>e.filter(Boolean).join(` `),Qc=({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:Zc(`relative`,i),children:[(0,u.jsx)(A,{src:c,alt:t,className:a,quality:s}),(0,u.jsx)(`div`,{className:o,children:n})]})})},$c=({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)(Qc,{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)(_o,{...r,value:f,onChange:g})}):null,(0,u.jsx)(`div`,{className:`w-full md:flex-1`,children:(0,u.jsx)(bo,{...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`})]})]})})},el=({imageSrc:e,imageAlt:t=`Call To Action Hero`,heading:n,subheading:r,body:i,eyebrow:a,ctas:o=[]})=>(0,u.jsx)(Qc,{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)(Bo,{heading:n,subheading:r,body:i,eyebrow:a,ctas:o})}),tl=({imageSrc:e,imageAlt:t=`Featured article banner`,heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})=>(0,u.jsx)(Qc,{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)(Vo,{heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})}),nl=({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)`}})]})})},rl=e=>e.id||e.href||e.label,il=({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=rl})=>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)(Za,{icon:to,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)(Za,{icon:$a,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)(ro,{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,al=4,ol=e=>{e.forEach(e=>{if(!e)return;let t=new window.Image;t.decoding=`async`,t.src=e})},sl=({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+al<p.length,b=()=>h(e=>Math.max(0,e-1)),x=()=>h(e=>Math.min(Math.max(p.length-al,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(()=>{ol(p.slice(m,m+al*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)(nl,{items:f,value:s??f[0]?.label??``,onChange:e=>l(e),className:`mb-2`,durationMs:700}),(0,u.jsx)(il,{items:p,startIndex:m,desktopVisibleCount:al,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})]})]})})})},cl=e=>e===1?`md:grid-cols-1`:e===2?`md:grid-cols-2`:`md:grid-cols-3`,ll=(e,t)=>e===`vertical`&&t===2?`grid-cols-2`:e===`vertical`&&t===3?`grid-cols-3`:`grid-cols-1`,ul=e=>e===`underBanner`?`mt-10 md:mt-16`:``,dl=({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=cl(n.length),f=ll(n[0]?.cardStyle,n.length);return(0,u.jsx)(`section`,{className:`flex justify-center ${ul(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)(io,{...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]})]})})},fl=({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)(Yo,{...e},`${e.title}-${t}`))})]})}),pl=({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)(es,{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]})},ml=(e,t,n)=>Math.max(t,Math.min(n,e)),hl=e=>[`h-12 w-12 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),gl=({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`,className:l=``})=>{let[f,p]=c.default.useState(()=>ml(e,t,n));c.default.useEffect(()=>{p(ml(e,t,n))},[e,t,n]);let m=e=>{let r=ml(e,t,n);p(r),a?.(r)},h=()=>m(f-1),g=()=>m(f+1),_=f>t,v=f<n;return(0,u.jsxs)(`div`,{className:[`w-full`,l].join(` `),children:[(0,u.jsxs)(`div`,{className:`flex items-stretch gap-4`,children:[(0,u.jsxs)(`div`,{className:`flex 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:!_,onClick:h,className:hl(_)}),(0,u.jsx)(`div`,{className:`flex items-center justify-center min-w-10`,children:(0,u.jsx)(d,{as:`span`,variant:`free`,children:f})}),(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:hl(v)})]}),(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:(0,u.jsx)(D,{type:`button`,intent:`accent`,onClick:()=>i(f),className:`h-12 w-full justify-center`,children:(0,u.jsx)(d,{as:`span`,variant:`free`,children:s})})})]})},_l=({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))})]})},vl=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,actionMode:P=`cart`,contactActions:ee,onAddToWishlist:F,onAddToCart:I,onContactActionClick:L,mobileMediaSlot:R}=e,z=c.map(e=>({label:e})),B=P===`cart`&&N&&z.length>0,V=P===`contact`&&!!ee,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)(Qo,{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)(nl,{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)(_l,{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)(_l,{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)(_l,{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)(_l,{items:g,value:b??void 0,onChange:U(g)})]}):null,B&&l===`Sample`?(0,u.jsx)(d,{as:`p`,variant:`caption`,children:`Samples are available in 2" x 3" and 3" x 5".`}):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)(gl,{initialQuantity:A,minQuantity:j,maxQuantity:M,onAddToWishlist:F??(()=>{}),onAddToCart:I??(()=>{}),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&&ee?(0,u.jsx)(`div`,{className:`md:absolute md:inset-x-0 md:bottom-0`,children:(0,u.jsx)(oe,{actions:ee,onActionClick:L})}):null]})},yl=(e,t)=>Math.max(0,Math.min(e,t-1)),bl=({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(()=>yl(t,p||1)),[_,v]=c.default.useState(()=>yl(t,p||1));if(c.default.useEffect(()=>{p>0&&(g(e=>yl(e,p)),v(e=>yl(e,p)))},[p]),p===0)return null;let y=t=>{let n=yl(t,p);g(n),a?.(n,e[n])},b=e=>{v(n?(e+p)%p:yl(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))})]})]})},xl=(e,t)=>Math.max(0,Math.min(e,t-1)),Sl=e=>typeof e==`string`?e.replace(/^http:\/\//i,`https://`):``,Cl=({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(()=>xl(t,s||1)),[p,m]=c.default.useState(()=>new Set);if(c.default.useEffect(()=>{s>0&&f(e=>xl(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(Sl(e)))&&r?.src?r:{src:e??``,alt:t??``},_=g(h?.image?.src,h?.image?.alt),v=Sl(_.src),y=_.alt??``,b=e=>{!e||r?.src===e||m(t=>{let n=new Set(t);return n.add(e),n.add(Sl(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)(bl,{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=Sl(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})})]})},wl=({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)(Cl,{slides:r,initialIndex:i,text:a,fallbackImage:n})})},Tl=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},El=(e,t)=>!!(t&&e.some(e=>(e.value??e.id)===t)),Dl=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),[])},Ol=(e,t)=>!e||!t?null:`${e}x${t}`,kl=(e,t,n)=>Math.max(t,Math.min(n,e)),Al=(e,t=`USD`)=>new Intl.NumberFormat(`en-US`,{style:`currency`,currency:t}).format(e),jl=e=>!!e?.length,Ml=(e,t)=>jl(e)&&jl(t),Nl=(e=[])=>e.some(e=>!!e.sku&&!!e.rangeId&&!!e.grade&&!!e.texture&&!!e.widthIn&&!!e.lengthIn),Pl=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,actionMode:S=`cart`,contactActions:C,onAddToWishlist:w,onAddToCart:T,onContactActionClick:E,availabilityHref:D,availabilityLabel:O=`View full product availability and information`,returnPolicyHref:k,returnPolicyLabel:A=`View return policy`,notReturnableText:j=`This item is not returnable.`,onPurchaseInfoLinkClick:M}=e,N=Array.isArray(f)&&f.length?f:[`Sample`,`Buy Now`],P=m?.Sample,ee=m?.[`Buy Now`],F=P?.productOptions??h??[],I=P?.sizeOptions??g??[],L=ee?.productOptions??h??[],R=Ml(F,I),z=jl(L)&&Nl(_),B=N.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],te=!!W,G=W?.minQuantity??b,ne=W?.maxQuantity??x,K=W?.productOptions??(te?[]:h)??[],re=H===`Buy Now`,[ie,ae]=c.default.useState(()=>({product:Tl(K),grade:null,texture:null,size:null})),oe=c.default.useRef(!1),q=El(K,ie.product)?ie.product:Tl(K),se=re&&q?_.filter(e=>e.rangeId===q):[],ce=Dl(se.map(e=>({value:e.grade,label:e.grade}))),le=re?ce:W?.gradeOptions??[],ue=El(le,ie.grade)?ie.grade:Tl(le),de=ue?se.filter(e=>e.grade===ue):se,fe=Dl(de.map(e=>({value:e.texture,label:e.finish||e.texture}))),pe=re?fe:W?.textureOptions??[],J=El(pe,ie.texture)?ie.texture:Tl(pe),me=J?de.filter(e=>e.texture===J):de,he=new Map((W?.sizeOptions??g??[]).map(e=>[e.value??e.id,e.label])),ge=Dl(me.map(e=>{let t=Ol(e.widthIn,e.lengthIn)??void 0;return{value:t,label:t?he.get(t)??t:void 0}})),_e=re?ge:W?.sizeOptions??(te?[]:g)??[],ve=El(_e,ie.size)?ie.size:Tl(_e);c.default.useEffect(()=>{if(!oe.current){oe.current=!0;return}ae({product:Tl(K),grade:Tl(le),texture:Tl(pe),size:Tl(_e)})},[H]),c.default.useEffect(()=>{ae(e=>{let t=e.product&&K.some(t=>(t.value??t.id)===e.product)?e.product:Tl(K),n=e.grade&&le.some(t=>(t.value??t.id)===e.grade)?e.grade:Tl(le),r=e.texture&&pe.some(t=>(t.value??t.id)===e.texture)?e.texture:Tl(pe),i=e.size&&_e.some(t=>(t.value??t.id)===e.size)?e.size:Tl(_e);return e.product===t&&e.grade===n&&e.texture===r&&e.size===i?e:{product:t,grade:n,texture:r,size:i}})},[K,le,pe,_e]);let Y=c.default.useMemo(()=>{if(H!==`Buy Now`)return null;let e={product:q,grade:ue,texture:J,size:ve},t=_.filter(t=>{let n=Ol(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,_,q,ue,J,ve]),ye=H!==`Buy Now`||!!Y,be=H===`Buy Now`&&Y?Y.price?.label??Al(Y.price?.value??0,v):``,xe=H===`Buy Now`&&Y?Y.price?.value??0:0,Se=H===`Buy Now`?Y?.sku??t:t,[Ce,we]=c.default.useState(()=>kl(y,G,ne)),Te=c.default.useRef(H);c.default.useEffect(()=>{we(kl(y,G,ne))},[y,G,ne]),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`,K),gradeOptions:Ee(`grade`,le),textureOptions:Ee(`texture`,pe),sizeOptions:Ee(`size`,_e),availabilityHref:D,availabilityLabel:O,returnPolicyHref:k,returnPolicyLabel:A,notReturnableText:j,priceLabel:be,initialQuantity:Ce,minQuantity:G,maxQuantity:ne,showCartActions:B.includes(H)&&ye,actionMode:S,contactActions:C,selectedProduct:q,selectedGrade:ue,selectedTexture:J,selectedSize:ve,onAddToWishlist:()=>{w?.({sku:Se,decor:n})},onAddToCart:e=>{if(H===`Buy Now`&&!Y)return;let t={type:H,sku:Se,decor:n,product:q,grade:ue,texture:J,size:ve,quantity:e,priceValue:H===`Buy Now`?xe:0,priceLabel:H===`Buy Now`?be:`$0.00`,currency:v,bigCommerceProductId:Y?.bigCommerceProductId};T?.(t)},onContactActionClick:e=>{E?.({...e,sku:Se,decor:n,title:r,activeTab:H,product:q,grade:ue,texture:J,size:ve})},onQuantityChange:e=>we(e),onPurchaseInfoLinkClick:M,mobileMediaSlot:(0,u.jsx)(wl,{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)(wl,{carousel:d})}),(0,u.jsx)(vl,{...De})]})})})},Fl=({imageSrc:e,imageAlt:t=`Standard Copy Hero`,heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})=>(0,u.jsx)(Qc,{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)(Ho,{heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})})}),Il=({categoryText:e,imageSrc:t,imageAlt:n=`Article Header`,tags:r=[],onTagClick:i})=>(0,u.jsx)(Qc,{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)(zo,{categoryText:e,tags:r,onTagClick:i})}),Ll=({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)(Io,{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`})]})})},Rl=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})})},zl=({html:e=``,className:t=``})=>e?(0,u.jsx)(`div`,{className:`html-block ${t}`,dangerouslySetInnerHTML:{__html:e}}):null,Bl={left:`text-left`,center:`text-center`,right:`text-right`},Vl={small:`text-xl md:text-4xl`,medium:`text-2xl md:text-4xl`,large:`text-3xl md:text-5xl`},Hl=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=Bl[n],p=Bl[r],m=l?`mt-10 md:mt-20`:``,h=o?`mb-1`:`mb-4 md:mb-6`,g=`${p} ${Vl[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)(zl,{html:a,className:f}):null]})},Ul=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)(Hl,{...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)(Hl,{...a,body:t})})]})},Wl=({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)(bl,{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)(ao,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,title:e.title,brand:e.brand,decorNumber:e.decorNumber,onProductClick:a?()=>a(e):void 0},e.id)})]})},Gl=({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)(cs,{...e})},`${e.title}-${t}`))})]})}):null,Kl=({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)(qo,{question:e.question,answer:e.answer,initiallyOpen:e.initiallyOpen},e.id))})]})}),ql=(e,t)=>e.id??[e.label,e.imageSrc,t].join(`-`),Jl=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},Yl=({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)(Wo,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,onCardClick:t?()=>t({item:e,index:n}):void 0},ql(e,n)))})}):(0,u.jsx)(`section`,{className:`px-4 py-20 md:px-4`,children:Jl(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)(Wo,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,aspectRatio:i?`compact`:`video`,onCardClick:t?()=>t({item:e,index:n}):void 0},ql(e,n)))},`image-overlay-grid-row-${n}`)})})},Xl={2:`md:grid-cols-2`,3:`md:grid-cols-3`,4:`md:grid-cols-4`},Zl=({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:Xl[n],children:e.map(e=>(0,u.jsx)(`div`,{"aria-current":e.id===t?`true`:void 0,className:`h-full`,children:(0,u.jsx)(lo,{location:e,stockedProductsLabel:r,preferredLabel:i,websiteLabel:a,directionsLabel:o,emailLabel:s,onWebsiteClick:c,onDirectionsClick:l,onPhoneClick:d,onEmailClick:f})},e.id))}):null,Ql=({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)(Hs,{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)(Hs,{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]}),$l=e=>(0,u.jsx)(D,{variant:`ghost`,size:`md`,...e}),eu={left:`text-left`,center:`text-center`,right:`text-right`},tu={left:`justify-start text-left`,center:`justify-center text-center`,right:`justify-end text-right`},nu={xs:`w-24`,sm:`w-32`,md:`w-48`,lg:`w-64`,xl:`w-80`},ru=e=>e==null||e===``?`-`:String(e),iu=e=>e==null?``:String(e),au=e=>e==null||String(e).trim()===``,ou=e=>e.reduce((e,t)=>(e[t.id]={...t,values:{...t.values}},e),{}),su=({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)(ou(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(ou(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)&&au(t.values[e.id]))},T=(e,t)=>{let n=(m[e.id]??e).values[t.id];return au(n)?t.placeholder??`-`:t.editor===`select`?t.options?.find(e=>e.value===String(n))?.label??ru(n):ru(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&&au(a.values[t.id]);return s?t.editor===`select`?(0,u.jsx)(`div`,{"data-data-report-cell-editor":`true`,children:(0,u.jsx)(_o,{id:`${n}-editor`,name:t.id,ariaLabel:`${t.label} for row ${e.id}`,value:iu(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:iu(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:nu[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 ${nu[e.width??`md`]} ${eu[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 ${nu[t.width??`md`]} ${eu[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 ${eu[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 ${tu[r]}`)},n)}),(0,u.jsx)(`td`,{className:`whitespace-nowrap px-4 py-3 text-center`,children:(0,u.jsx)($l,{"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)($l,{"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})})]})},cu={lat:39.9612,lng:-82.9988},lu=()=>window,uu=()=>lu().google,du=e=>{let t=lu();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)},fu=({center:e,locations:t,selectedLocationId:n})=>{let r=t.find(e=>e.id===n);return e??r?.coordinates??t[0]?.coordinates??cu},pu=({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(()=>fu({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`),du(e).then(()=>{t&&g(`loaded`)}).catch(()=>{t&&g(`error`)}),()=>{t=!1}},[e]),c.default.useEffect(()=>{if(m!==`loaded`||!l.current)return;let e=uu();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=uu();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]})},mu=({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})}),hu=({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})]})},gu=({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})]})}),_u=({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)(As,{...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)(gu,{message:s,iconName:`magnifying-glass`}):null,o===`error`?(0,u.jsx)(gu,{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]})},vu={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`}},yu={match:`text-saleGreen`,mismatch:`text-accent`,neutral:`text-tertiary`},bu=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 ${yu[n]}`,children:t}):null]})]},e.id)},xu=(e,t,n)=>{let r=e.description?.trim()??``,i=e.actionHelpText?.trim()??``,a=vu[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(bu)}),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]})},Su=({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=vu[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:[xu(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))})]})},Cu=({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})]}),wu=({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)(Cu,{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}`))})]})})},Tu=({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})})]})})},Eu=({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)(Tu,{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)(Ro,{label:e.label,options:e.options,onOptionSelect:l}),e.type===`checkbox`&&(0,u.jsx)(wu,{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)(yo,{id:e,hasError:r,...s})]}),Du=[{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`}],Ou=[{id:`createAccount`,label:`Create Account`},{id:`signIn`,label:`Sign In`}],ku=({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}),Au=({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??Du,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)(uc,{ariaLabel:`Login mode`,layoutVariant:`equalWidth`,items:Ou,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)(ku,{htmlFor:`account-access-user-type`,label:`I am a*`,errorMessage:w.userType}),(0,u.jsx)(_o,{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})]})]})},ju=({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)})})},Mu=({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)(Qo,{colourMatching:e.colourMatching})]}):null,Nu=({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,Pu=(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},Fu=({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:Pu(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:Pu(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,Iu=[{label:`Product Details`,value:`details`},{label:`Texture`,value:`texture`},{label:`Size & Grade Guide`,value:`sizeAndGrade`}],Lu=(e,t)=>e?.length?t&&e.some(e=>e.id===t)?t:e[0].id:``,Ru=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(Lu(e,n));if(c.default.useEffect(()=>{s(Lu(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)??[];Ru([...new Set(t)])},[e]),!e?.length)return null;let l=e.find(e=>e.id===o)??e[0],d=e=>Iu.find(t=>t.value===e)?.label??Iu[0].label,f=e=>Iu.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)(nl,{items:Iu.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)(ju,{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)(Mu,{data:l.details});case`texture`:return(0,u.jsx)(Nu,{data:l.texture});case`sizeAndGrade`:return(0,u.jsx)(Fu,{data:l.sizeAndGrade,selectedGrade:r});default:return null}})()})]})})]})},Bu=({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)(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)(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 Vu(e=[]){return e.reduce((e,t)=>(e[t.id]=t,e[t.value]=t,e),{})}var Hu=(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})),Uu=(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}))},Wu=(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)},[])},Gu=(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},[])},Ku=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??[]})),qu=e=>e?`Grade ${e}`:``,Ju=({breadcrumbsProps:e,productData:t,onDownloadSwatch:n,onDownloadFullSheet:r,onAddToWishlist:i,onAddToCart:a,onContactActionClick:o,onProductNavigate:s,cartFlyoutProps:l})=>{let d=t??{},f=d.images??[],p=d.product,m=d.content,h=d.optionSets,g=d.purchase,_=d.ranges??[],v=d.standardCopyHero,y=d.featuredProducts??[],b=p?.colourMatching,x=h?.ranges??[],S=h?.textures??[],C=h?.sizes??[],w=h?.sampleSizes??[],T=Vu(x),E=Vu(S),D=Vu(C),O=Vu(w),k=g?.tabOptions?.Sample??{},A=g?.tabOptions?.[`Buy Now`]??{},j=g?.defaults??{},M=Uu(d.variants??[]),N=d.variants?.[0]?.grade??null,[P,ee]=c.default.useState(qu(N));c.default.useEffect(()=>{ee(qu(N))},[N]);let F=M.map(e=>{let t=qu(e.value);return{...e,active:t===P,onOptionClick:()=>ee(t)}}),I=k.productOptionIds,L=I?.filter(e=>!!T[e])??[],R=I?.length?L:Gu(d.variants??[]),z=k.textureOptionIds,B=z?.filter(e=>!!E[e])??[],V=z?.length?Hu(E,B,j.texture??null):Wu(d.variants??[],j.texture??null),H=A.productOptionIds,U=H?.filter(e=>!!T[e])??[],W=H?U:x.map(e=>e.id),te={sku:p?.sku??``,decor:p?.decor??``,title:p?.title??``,description:p?.description??``,colourMatching:b,patternRepeat:p?.patternRepeat??``,variants:d.variants??[],onDownloadSwatch:()=>n?.(d),onDownloadFullSheet:()=>r?.(d),carousel:{slides:f.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:m?.sampleDisclaimer??``,fallbackImage:{src:Ws,alt:`Product image unavailable`}},tabs:h?.purchaseTabs??[`Sample`,`Buy Now`],initialTab:m?.defaultPurchaseTab??`Buy Now`,tabOptions:{Sample:{minQuantity:k.minQuantity,maxQuantity:k.maxQuantity,productOptions:Hu(T,R,m?.defaultRangeId??x[0]?.value??null),gradeOptions:[],textureOptions:V,sizeOptions:Hu(O,k.sizeOptionIds??[],null)},"Buy Now":{minQuantity:A.minQuantity,maxQuantity:A.maxQuantity,productOptions:Hu(T,W,m?.defaultRangeId??x[0]?.value??null),gradeOptions:F,textureOptions:Hu(E,A.textureOptionIds??[],j.texture??null),sizeOptions:Hu(D,A.sizeOptionIds??[],j.size??null)}},productOptions:Hu(T,W,m?.defaultRangeId??x[0]?.value??null),gradeOptions:F,selectedGrade:P,textureOptions:Hu(E,A.textureOptionIds??[],j.texture??null),sizeOptions:Hu(D,A.sizeOptionIds??[],j.size??null),availabilityHref:m?.availabilityHref??`#`,availabilityLabel:m?.availabilityLabel??`View full product availability and information`,returnPolicyHref:m?.returnPolicyHref??`#`,returnPolicyLabel:m?.returnPolicyLabel??`View return policy`,notReturnableText:m?.notReturnableText??`This item is not returnable.`,priceLabel:p?.price?.label??``,priceValue:p?.price?.value??0,currency:p?.currency??`USD`,initialQuantity:j.quantity??1,minQuantity:j.minQuantity??1,maxQuantity:j.maxQuantity??99,actionMode:g?.actionMode??`cart`,contactActions:g?.contactActions,onAddToWishlist:e=>{i?.(e,d)},onAddToCart:e=>{a?.(e,d)},onContactActionClick:e=>{o?.(e,d)},onPurchaseInfoLinkClick:s},G={ranges:_.map(e=>{let t=e.sizeAndGrade?.definitions??[],n=Ku(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:m?.defaultInfoTab??`details`,defaultRangeId:m?.defaultRangeId??_[0]?.id??``,selectedGrade:P,className:``},ne=e=>{let t=e.href||(e.rangeCode&&e.decorNumber?`/products/${e.rangeCode.toUpperCase()}/${e.decorNumber.toUpperCase()}`:``);t&&s?.(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)(Uc,{...e}),(0,u.jsx)(Pl,{...te}),(0,u.jsx)(zu,{...G}),(0,u.jsx)(`div`,{className:`hidden md:block`,children:v&&(0,u.jsx)(Fl,{imageSrc:v.imageSrc??``,imageAlt:v.imageAlt??`Visualize This Product`,heading:v.heading??`Visualize This Product`,subheading:v.subheading??``,body:v.body??``,linkLabel:v.linkLabel??`See In Situation`,linkHref:v.linkHref??`#`})}),y.length>0&&(0,u.jsx)(Wl,{title:`Trending Products`,items:y,onItemClick:ne})]}),l?(0,u.jsx)(Bu,{...l}):null]})},Yu=({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)})})})},Xu=({standardCopyHeroProps:e,multiButtonBarProps:t,featuredArticleBannerProps:n,featureCardCollectionProps:r})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Fl,{...e}),(0,u.jsx)(Yu,{...t}),(0,u.jsx)(tl,{...n}),(0,u.jsx)(dl,{...r})]}),Zu=(e,t)=>e.id??[e.decorNumber,e.title,e.brand,e.product,e.status??`standard`,t].join(`-`),Qu=({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)(Gs,{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},Zu(e,n))})}),$u=e=>e.flatMap(e=>e.options.filter(e=>e.checked).map(e=>({id:e.id,label:e.label}))),ed=(e,t,n)=>e.map(e=>({...e,options:e.options.map(e=>e.id===t?{...e,checked:n}:e)})),td=e=>e.map(e=>({...e,options:e.options.map(e=>({...e,checked:!1}))})),nd=e=>e.tabs?.selectedValue??e.tabs?.options[0]?.value??``,rd=e=>e.filters.sort?.value??e.filters.sort?.options?.[0]?.value??e.filters.sort?.options?.[0]?.label??``,id=e=>e.filters.search?.value??``,ad=e=>e.filters.panel?e.filters.toggleButton?.initiallyVisible??!0:!1,od=({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(()=>ad(e)),m=e.filters.panel?.sections??[],h=nd(e),g=rd(e),_=id(e),v=e.tabs,y=e.filters.sort,b=e.filters.search,x=e.filters.panel,S=!!(x||y||b),C=c.default.useMemo(()=>$u(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(ed(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`checkbox`})},[j,m]),N=c.default.useCallback(e=>{j(ed(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`colorSwatch`})},[j,m]),P=c.default.useCallback(()=>{j(td(m),{action:`clear-all`})},[j,m]);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)(Fl,{...e.hero,onLinkClick:()=>n?.(e)}),v?(0,u.jsx)(Yu,{options:v.options,selectedValue:h,onSelect:t=>{r?.(t,e)}}):null,S?(0,u.jsxs)(fo,{barClassName:e.filters.barClassName,children:[x?(0,u.jsx)(po,{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)(vo,{className:`hidden md:block md:w-70`,dropdownProps:{...y,value:g,onChange:t=>{i?.(t.target.value,e)}}}):null,b?(0,u.jsx)(So,{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)(Eu,{header:T,headerIcon:x.headerIcon,resetLabel:E,applyFiltersLabel:D,sections:m,appliedOptions:{header:O,clearAllLabel:E,optionsList:C,onRemoveOption:e=>{j(ed(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)(Eu,{header:T,headerIcon:x.headerIcon,resetLabel:E,applyFiltersLabel:D,sections:m,appliedOptions:{header:O,clearAllLabel:E,optionsList:C,onRemoveOption:e=>{j(ed(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)(Qu,{swatches:e.decorGrid.swatches,onSwatchClick:(t,n)=>s?.(t,n,e)})})]})]})},sd=({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)(q,{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}`))}),cd=({standardCopyHeroProps:e,multiButtonBarProps:t,filterBarProps:n,dropdownFilterPropsList:r,imageGridProps:i})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Fl,{...e}),(0,u.jsx)(Yu,{...t}),(0,u.jsx)(fo,{...n,children:r.map(e=>(0,u.jsx)(vo,{...e},e.dropdownProps.id))}),(0,u.jsx)(sd,{...i})]}),ld=({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)(Ko,{title:e.title,details:e.details,iconName:e.iconName,onDocumentClick:e.onDocumentClick},e.id))})]})}),ud=({standardCopyHeroProps:e,multiButtonBarProps:t,warrantyCardProps:n,documentLinkCollectionProps:r,infoCardProps:i,faqCardCollectionProps:a})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Fl,{...e}),(0,u.jsx)(Yu,{...t}),(0,u.jsx)(R,{spacing:`section`,children:(0,u.jsx)(Ul,{...n})}),(0,u.jsx)(ld,{...r}),(0,u.jsx)(R,{spacing:`section`,children:(0,u.jsx)(Jo,{...i})}),(0,u.jsx)(Kl,{...a})]}),dd=(e,t)=>e.id??[e.decorNumber,e.title,e.brand,e.rangeCode,t].join(`-`),fd=(e,t)=>e.slice(0,Math.max(0,Math.min(t??e.length,e.length))),pd=(e,t,n)=>n??`View ${e} more ${t}`,md=({searchFilterProps:e,decorResultsProps:t,resourceResultsProps:n,noResultsMessage:r})=>{let i=t?.items??[],a=n?.items??[],o=fd(i,t?.visibleItemCount),s=fd(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)(R,{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)(So,{...e,layoutVariant:`full`})]}),m&&t?(0,u.jsxs)(R,{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)(Gs,{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},dd(e,n)))}),c>0?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(D,{variant:`outline`,intent:`accent`,size:`sm`,label:pd(c,`decor results`,t.viewMoreLabel),onClick:t.onViewMoreClick})}):null]}):null,h&&n?(0,u.jsxs)(R,{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)(cs,{...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:pd(l,`resources`,n.viewMoreLabel),onClick:n.onViewMoreClick})}):null]}):null,g?null:(0,u.jsx)(R,{spacing:`paddedSection`,children:(0,u.jsx)(d,{variant:`body`,children:r})})]})},hd=({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)(Au,{...n,onSecondaryClick:t})})]})}),gd=e=>(e.options.find(t=>t.value===e.selectedValue)??e.options[0])?.label??``,_d=({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=gd(e.tabs);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)($c,{...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)(nl,{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)(pu,{...e.map,locations:e.locations,selectedLocationId:e.map.selectedLocationId??p,onLocationSelect:t=>a?.(t,e)})}),f?(0,u.jsx)(Zl,{...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)(d,{as:`h2`,variant:`h2`,children:e.emptyState.heading}):null,e.emptyState?.body?(0,u.jsx)(d,{variant:`body`,children:e.emptyState.body}):null]})})]})},vd=({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`})})]})}),yd=({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]})})},bd=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]}),xd=({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]})]}),bd({title:n.title||`Shipping Address`,...n}),bd({title:r.title||`Billing Address`,...r})]})]})}),Sd=({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)(es,{...e,isReadOnly:!0,showPricing:t})},`${e.decorNumber||e.title||`item`}-${n}`))})]})})},Cd=({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)(vd,{...e}),(0,u.jsxs)(`div`,{className:`px-12 pb-16`,children:[(0,u.jsx)(`div`,{className:`mt-10`,children:(0,u.jsx)(xd,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Sd,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(yd,{...r})})]})]})}),wd=({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:L,onStateProvinceChange:R,onFirstNameBlur:z,onLastNameBlur:B,onEmailBlur:V,onPhoneNumberBlur:H,onCompanyNameBlur:U,onUserTypeBlur:W,onAddressBlur:te,onApartmentBlur:G,onPostalCodeBlur:ne,onCityBlur:K,onCountryBlur:re,onStateProvinceBlur:ie})=>{let ae=_===`ca`||_===`mx`,oe=C??`City`,q=w??`Postal Code`,se=T??(_===`ca`?`Province`:`State/Province`),ce=h??y.find(e=>e.value===m)?.label??m,le=(0,u.jsx)($,{id:`${t}-city`,name:`city`,placeholder:oe,value:p,hasError:!!D.city,errorMessage:D.city,onChange:I,onBlur:K}),ue=(0,u.jsx)($,{id:`${t}-postal-code`,name:`postalCode`,placeholder:q,value:f,hasError:!!D.postalCode,errorMessage:D.postalCode,onChange:F,onBlur:ne}),de=(0,u.jsx)(_o,{id:`${t}-state-province`,name:`stateProvince`,options:b,value:g,placeholder:se,hasError:!!D.stateProvince,variant:`field`,onChange:R,onBlur:ie}),fe=v===`readonly`?(0,u.jsx)($,{id:`${t}-country`,name:`country`,placeholder:`Country`,value:ce,readOnly:!0,hasError:!!D.country,errorMessage:D.country}):(0,u.jsx)(_o,{id:`${t}-country`,name:`country`,options:y,value:m,placeholder:`Country`,hasError:!!D.country,variant:`field`,onChange:L,onBlur:re});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:z}),(0,u.jsx)($,{id:`${t}-last-name`,name:`lastName`,placeholder:`Last Name`,value:r,hasError:!!D.lastName,errorMessage:D.lastName,onChange:k,onBlur:B}),(0,u.jsx)($,{id:`${t}-email`,name:`email`,type:`email`,placeholder:`Email`,value:i,hasError:!!D.email,errorMessage:D.email,onChange:A,onBlur:V}),(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:H}),x.length>0?(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)(_o,{id:`${t}-user-type`,name:`userType`,options:x,value:s,placeholder:S,hasError:!!D.userType,variant:`field`,onChange:e=>N?.(e.target.value),onBlur:W})}):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:U})}):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:te})}),(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:G})}),ae?(0,u.jsxs)(u.Fragment,{children:[le,de,ue,fe]}):(0,u.jsxs)(u.Fragment,{children:[ue,le,fe,de]})]})]})},Td=({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)(Js,{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))})]}),Ed=({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}`)})})},Dd=({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)(wd,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Td,{...t})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Ed,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(pl,{...r})}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(D,{label:i,intent:`accent`,fullWidth:!0,onClick:a})})]})]})})}),Od=({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)(es,{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)(Ed,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(pl,{...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})]})]})]})})}),kd=({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)(vd,{...e}),(0,u.jsxs)(`div`,{className:`px-12 pb-16`,children:[(0,u.jsx)(`div`,{className:`mt-10`,children:(0,u.jsx)(xd,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Sd,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(yd,{...r})})]})]})}),Ad=({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)(yo,{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:_})]})},jd=({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)(Td,{...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})]})]})]}),Md=({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)(Td,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(jd,{...t})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Ed,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Ad,{...r})})]})]})}),Nd=({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)(wd,{...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)(Cu,{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)(wd,{...t,idPrefix:t.idPrefix??`billing`,title:t.title??``,countryOptions:p,stateProvinceOptions:m})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Ed,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Ad,{...r})})]})]})})},Pd=e=>new Intl.NumberFormat(`en-US`,{style:`currency`,currency:`USD`}).format(e),Fd=({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)(es,{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:Pd(a)})]})})]})})},Id=({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:L,onPasswordBlur:R,onForgotPasswordClick:z,onTermsClick:B,onPrivacyClick:V,onContinue:H,onContinueAsGuest:U})=>(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-8`,children:[(0,u.jsx)(Ed,{steps:t,currentStep:e}),(0,u.jsx)(Au,{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:L,onPasswordBlur:R,onForgotPasswordClick:z,onTermsClick:B,onPrivacyClick:V,onSignInClick:H,onCreateAccountClick:H,onSecondaryClick:U})]}),Ld=({cartSummaryProps:e,checkoutAccountStepProps:t})=>(0,u.jsx)(`section`,{className:`w-full flex justify-center mt-10`,children:(0,u.jsxs)(`div`,{className:`grid w-full max-w-6xl grid-cols-2 gap-8`,children:[(0,u.jsx)(`div`,{children:(0,u.jsx)(Fd,{...e})}),(0,u.jsx)(`div`,{children:(0,u.jsx)(Id,{...t})})]})}),Rd=({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]})]})})},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`}},Bd=e=>{if(e===`loading`)return`status`;if(e===`error`)return`alert`},Vd=({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:Bd(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]})})},Hd=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`,Ud=e=>e===`saved`?`text-saleGreen`:e===`error`?`text-accent`:`text-yellow-700`,Wd=({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:Ud(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]}),Gd=({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)})})]}),Kd=({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]})]}),qd=({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})]})]}),Jd=e=>{if(!(`data`in e)){let t=e.state===`notFound`||e.state===`empty`?`empty`:e.state;return(0,u.jsx)(Rd,{pageTitle:e.pageTitle,sideNavProps:e.sideNavProps,children:(0,u.jsx)(Vd,{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,onIntegrationRefresh:S,onSampleSearchChange:C,onSampleSelect:w,onAddSampleClick:T,onSampleVariantSelect:E,onNewSampleSkuChange:O,onSampleFieldChange:k,onSampleSave:j,onSampleCancel:M,onSampleCreate:N,onSampleDelete:P,onNoticeActionClick:ee}=e,{decor:F,decorEditor:I,skuEditor:L,sampleEditor:R}=t,z=t.skus.find(e=>e.id===L.selectedSkuId),B=t.skus.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.grade} · ${e.size}`})),V=t.samples.find(e=>e.id===R.selectedSampleId),H=t.samples.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.size}`})),U=I.activeLocalization.saveStatus===`saving`,W=I.searchColorFieldId?[...I.sharedFields,...I.localizedFields].filter(e=>e.id===I.searchColorFieldId):[],te=I.decorFlagFieldId?I.sharedFields.filter(e=>e.id===I.decorFlagFieldId):[],G=I.sharedFields.filter(e=>e.id!==I.searchColorFieldId&&e.id!==I.decorFlagFieldId),ne=I.localizedFields.filter(e=>e.id!==I.searchColorFieldId),K=L.saveStatus===`saving`,re=R.saveStatus===`saving`,ie=R.mode===`edit`,ae=null;L.mode===`create`?ae=(0,u.jsx)(D,{label:L.createLabel??`Create SKU`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:L.createDisabled,onClick:()=>b?.({sku:L.newSkuValue??``,grade:L.selectedGrade??``,finish:L.selectedFinish??``,size:L.selectedSize??``})}):z&&(ae=(0,u.jsx)(D,{label:L.controls.saveLabel,iconType:`fa-solid`,iconName:K?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:L.controls.saveDisabled||K,"aria-busy":K||void 0,onClick:()=>v?.({skuId:z.id})}));let oe=null;R.mode===`create`?oe=(0,u.jsx)(D,{label:R.createLabel??`Create Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:R.createDisabled,onClick:()=>N?.({sku:R.newSkuValue??``,finish:R.selectedFinish??``,size:R.selectedSize??``})}):V&&(oe=(0,u.jsx)(D,{label:R.controls.saveLabel,iconType:`fa-solid`,iconName:re?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:R.controls.saveDisabled||re,"aria-busy":re||void 0,onClick:()=>j?.({sampleId:V.id})}));let q=null;return R.mode===`create`?q=(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)(yo,{id:`market-readiness-new-sample-sku`,name:`newSampleSku`,value:R.newSkuValue??``,placeholder:`Enter a sample SKU beginning with Y...`,leadingIcon:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>O?.({value:e.target.value})})]}):V?.sourceIdentifier&&(q=(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:V.sourceIdentifier})]})),(0,u.jsxs)(Rd,{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:[F.imageUrl?(0,u.jsx)(A,{src:F.imageUrl,alt:F.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:F.name}),(0,u.jsxs)(d,{variant:`free`,className:`mt-1 text-sm text-primary`,children:[`Decor `,F.decorCode,` · Range `,F.rangeCode]})]})]}),t.notice?(0,u.jsxs)(`section`,{role:t.notice.tone===`error`?`alert`:`status`,className:`mt-4 rounded-lg border p-4 ${Hd(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:ee})}):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)(sc,{title:`Decor details`,description:I.sharedDescription,fields:[...G,...ne,...te,...W],fieldGroups:[{id:`shared-decor-fields`,title:I.sharedTitle??`Shared decor details`,fieldIds:G.map(e=>e.id)},{id:`localized-decor-fields`,title:`${I.activeLocalization.heading} content`,description:I.localizationDescription??`These fields change with the selected locale.`,fieldIds:ne.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:I.deleteLabel?(0,u.jsx)(D,{label:I.deleteLabel,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,variant:`outline`,intent:`danger`,disabled:I.deleteDisabled||U,onClick:()=>c?.({decorId:F.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(Wd,{status:I.activeLocalization.saveStatus,label:I.activeLocalization.saveStatusLabel,errorMessage:I.activeLocalization.saveErrorMessage,lastSavedLabel:I.activeLocalization.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(D,{label:I.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:I.controls.cancelDisabled||U,onClick:()=>s?.({decorId:F.id,localizationId:I.activeLocalization.id})}),(0,u.jsx)(D,{label:I.controls.saveLabel,iconType:`fa-solid`,iconName:U?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:I.controls.saveDisabled||U,"aria-busy":U||void 0,onClick:()=>o?.({decorId:F.id,localizationId:I.activeLocalization.id})})]})]})]}),onDynamicFormFieldChange:({fieldId:e,value:t})=>{let n=I.sharedFields.some(t=>t.id===e);a?.({decorId:F.id,localizationId:n?void 0:I.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)(Ql,{title:`Decor localizations`,markets:I.markets,selectedLocalizationId:I.activeLocalization.id,localizationSelectionDisabled:U,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)(Co,{id:`market-readiness-sku-search`,name:`skuSearch`,ariaLabel:`Sheet SKU`,value:L.searchValue,options:B,valueStatus:z?.isForSale===!1&&L.searchValue===z.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:L.addSkuLabel??`Add Sheet`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:p})]})}),L.mode===`edit`&&!z?(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:L.mode===`create`?`Create a new sheet SKU`:z?.sku}),(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:L.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.`})]}),z?.statusLabel?(0,u.jsx)(`span`,{className:`rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-primary`,children:z.statusLabel}):null]}),L.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)(yo,{id:`market-readiness-new-sku`,name:`newSku`,value:L.newSkuValue??``,placeholder:`Enter an SKU or leave blank for generated value`,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)(Gd,{title:`Grade`,dimension:`grade`,options:L.gradeOptions,selectedValue:L.selectedGrade,readOnly:!1,onSelect:(e,t)=>m?.({dimension:e,value:t})}),(0,u.jsx)(Gd,{title:`Finish`,dimension:`finish`,options:L.finishOptions,selectedValue:L.selectedFinish,readOnly:!1,onSelect:(e,t)=>m?.({dimension:e,value:t})}),(0,u.jsx)(Gd,{title:`Size`,dimension:`size`,options:L.sizeOptions,selectedValue:L.selectedSize,readOnly:!1,onSelect:(e,t)=>m?.({dimension:e,value:t})})]}),L.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:L.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)(sc,{fields:L.fields,density:`compact`,severityDisplay:`icon`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>_?.({skuId:z?.id,fieldId:e,value:t})})})]}),L.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`}),z?(0,u.jsx)(D,{label:`Refresh`,iconType:`fa-solid`,iconName:`rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,onClick:()=>S?.({skuId:z.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:L.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:L.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:L.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:L.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:L.mode===`edit`&&z&&L.deleteLabel&&x?(0,u.jsx)(D,{label:L.deleteLabel,variant:`outline`,intent:`danger`,disabled:L.deleteDisabled||K,onClick:()=>x?.({skuId:z.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(Wd,{status:L.saveStatus,label:L.saveStatusLabel,errorMessage:L.saveErrorMessage,lastSavedLabel:L.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(D,{label:L.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:L.controls.cancelDisabled||K,onClick:y}),ae]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[t.skuGuide?(0,u.jsx)(Kd,{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:`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.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:t.skus.length})]}),(0,u.jsx)(`div`,{className:`mt-4 space-y-2`,children:t.skus.map(e=>{let t=e.id===L.selectedSkuId;return(0,u.jsx)(`button`,{type:`button`,"aria-pressed":t,className:`w-full rounded-md border p-3 text-left transition ${t?`border-primary bg-tertiaryActive`:`border-borderTertiary bg-secondary hover:border-primary`}`,onClick:()=>f?.({skuId:e.id,sku:e.sku}),children:(0,u.jsxs)(`span`,{className:`flex items-start gap-2`,children:[(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)})})]})]})]}):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)(Co,{id:`market-readiness-sample-search`,name:`sampleSearch`,ariaLabel:`Sample SKU`,value:R.searchValue,options:H,valueStatus:V?.isSampleable===!1&&R.searchValue===V.sku?`inactive`:`default`,placeholder:`Search sample SKUs`,controlSize:`default`,onQueryChange:C,onClear:()=>C?.({value:``}),onOptionSelect:({option:e})=>{let n=t.samples.find(t=>t.id===e.value);n&&w?.({sampleId:n.id,sku:n.sku})}})]}),(0,u.jsx)(D,{label:R.addLabel??`Add Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:T})]})}),R.mode===`edit`&&!V?(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:R.emptyTitle}),(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-primary`,children:R.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:R.mode===`create`?`Create a new sample`:V?.sku}),(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-tertiary`,children:R.identifierHelpText}),q,(0,u.jsxs)(`div`,{className:`mt-5 space-y-5`,children:[(0,u.jsx)(Gd,{title:`Finish`,dimension:`finish`,options:R.finishOptions,selectedValue:R.selectedFinish,readOnly:ie,onSelect:(e,t)=>{e!==`grade`&&E?.({dimension:e,value:t})}}),(0,u.jsx)(Gd,{title:`Size`,dimension:`size`,options:R.sizeOptions,selectedValue:R.selectedSize,readOnly:ie,onSelect:(e,t)=>{e!==`grade`&&E?.({dimension:e,value:t})}})]}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(sc,{fields:R.fields,density:`compact`,severityDisplay:`icon`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>k?.({sampleId:V?.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:R.mode===`edit`&&V&&R.deleteLabel&&P?(0,u.jsx)(D,{label:R.deleteLabel,variant:`outline`,intent:`danger`,disabled:R.deleteDisabled||re,onClick:()=>P?.({sampleId:V.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(Wd,{status:R.saveStatus,label:R.saveStatusLabel,errorMessage:R.saveErrorMessage,lastSavedLabel:R.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(D,{label:R.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:R.controls.cancelDisabled||re,onClick:M}),oe]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[t.sampleGuide?(0,u.jsx)(qd,{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:`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.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:t.samples.length})]}),t.samples.length?(0,u.jsx)(`div`,{className:`mt-4 space-y-2`,children:t.samples.map(e=>{let t=e.id===R.selectedSampleId;return(0,u.jsx)(`button`,{type:`button`,"aria-pressed":t,className:`w-full rounded-md border p-3 text-left transition ${t?`border-primary bg-tertiaryActive`:`border-borderTertiary bg-secondary hover:border-primary`}`,onClick:()=>w?.({sampleId:e.id,sku:e.sku}),children:(0,u.jsxs)(`span`,{className:`flex items-start gap-2`,children:[(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.`})]})]})]}):null]})},Yd=e=>(0,u.jsx)(`div`,{className:`w-36`,children:e}),Xd=e=>(0,u.jsx)(`div`,{className:`w-28`,children:e}),Zd=(e,t)=>{if(t)for(let n of e){if(n.type===`checkpoint`&&n.id===t)return n;if(n.type===`group`){let e=Zd(n.items,t);if(e)return e}}},Qd=({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=Zd(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)(Fs,{...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)(hu,{...e.groupProps,variant:T?`skeleton`:`default`,children:e.items.map(P)})},e.id);let t=(0,u.jsx)(Bs,{...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`?Xd(t):Yd(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)(Co,{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)(_u,{...O,state:o,diagram:(0,u.jsx)(mu,{ariaLabel:`Data path status flow`,surfaceVariant:`plain`,children:l.map(P)}),legend:(0,u.jsx)(Rs,{}),actions:E?(0,u.jsx)(As,{...E}):void 0})}),(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(Os,{...f})})]})]}),(0,u.jsx)(lc,{open:m,title:k?`${k.cardProps.title} ${g}`:g,description:_,size:`lg`,onClose:()=>C?.({open:!1,checkpointId:p}),children:A&&p?(0,u.jsx)(sc,{...A,onDynamicFormFieldChange:e=>{w?.({checkpointId:p,fieldId:e.fieldId,value:e.value}),A.onDynamicFormFieldChange?.(e)},onDynamicFormCancel:()=>{C?.({open:!1,checkpointId:p}),A.onDynamicFormCancel?.()}}):null})]})},$d=({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})]})]})]})]})}),ef=e=>e===`admin`?`Admin`:`User`,tf=({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})}),nf=({message:e})=>{let t=e?.trim()??``;return t?(0,u.jsx)(d,{variant:`free`,className:`text-sm text-accent`,children:t}):null},rf=({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:L,onRowUpdate:R,onUserActiveToggle:z,onDeleteUserRequest:B,onDeleteModalClose:V,onDeleteUserConfirm:H})=>{let U=t?.trim()??``,W=l.active&&!l.defaultRegion.trim(),te=m.map(e=>({id:e.email,values:{active:e.active?`active`:`inactive`,email:e.email,role:e.role,defaultRegion:e.defaultRegion}})),G=`${m.length.toLocaleString()} ${m.length===1?`user`:`users`}`,ne=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:[ef(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:()=>z?.({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:()=>B?.({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}),U?(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-primary`,children:U}):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(),L?.({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)(yo,{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)(_o,{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)(_o,{id:`authorization-user-default-region`,name:`defaultRegion`,value:l.defaultRegion,placeholder:g,disabled:b,required:l.active,hasError:W,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)(_o,{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||W,iconAlt:``,iconName:`user-plus`,iconType:`fa-solid`,intent:`primary`,label:b?T:w,type:`submit`,variant:`solid`})]}),(0,u.jsx)(nf,{message:_}),o===`loading`?(0,u.jsx)(tf,{message:s}):null,o===`error`?(0,u.jsx)(tf,{message:c,tone:`error`}):null,(0,u.jsx)(su,{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:G,rows:te,title:`Allow List`,updateLabel:x?O:E,updateDisabled:x,onRowUpdate:R}),(0,u.jsx)(nf,{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(ne)}),(0,u.jsx)(nf,{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)(lc,{closeLabel:N,open:!!C,size:`md`,title:`Remove User?`,onClose:()=>V?.(),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:()=>V?.()}),(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&&H?.({email:C})}})]})]})})]})},af={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`}},of=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()??``,f=r?.trim()??``,p=af[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:of(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]})})},cf=e=>{let t=e.trim().split(/\s+/).filter(Boolean);return(t.length>1?t.map(e=>e[0]).join(``):e.slice(0,2)).toUpperCase()},lf=({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})]}),uf=({pageTitle:e,pageDescription:t,sideNavProps:n,regionOptions:r,regionValue:i,regionLabel:a=`Region`,regionPlaceholder:o=`Select region`,regionHelpText:s=`Searches and changes will use product data from this region.`,regionDisabled:c=!1,getStartedTitle:l=`Open an existing decor`,getStartedDescription:f=`Enter a decor code that already has a market-readiness record to continue editing it.`,decorCodeValue:p,decorCodeOptions:m=[],decorCodeLabel:g=`Decor Code`,decorCodePlaceholder:_=`Start typing a decor code`,decorCodeEmptyMessage:v=`No matching decor codes found.`,decorCodeHelpText:y,status:b,statusMessage:x,openExistingLabel:S=`Open Existing Decor`,openExistingDisabled:C=!1,createNewPrompt:w=`Start data entry for a new decor`,createNewDescription:T=`Enter a decor code that does not yet have a market-readiness record to begin a controlled draft.`,createNewLabel:E=`Set Up New Decor`,createNewHelpText:O=`Setting up a new decor creates a controlled draft. Nothing is published until the draft is saved.`,createNewDisabled:k=!1,copyDecorTitle:A=`Create a new decor from an existing decor`,copyDecorDescription:j=`Copy an existing decor's market-readiness data into a new decor, then update only the fields that differ.`,sourceDecorCodeValue:M,sourceDecorCodeOptions:N=m,sourceDecorCodeLabel:P=`Source Decor Code`,sourceDecorCodePlaceholder:ee=`Start typing the decor code to copy`,sourceDecorCodeEmptyMessage:F=v,newDecorCodeValue:I,newDecorCodeLabel:L=`New Decor Code`,newDecorCodePlaceholder:R=`Enter the new decor code`,copyDecorLabel:z=`Copy to New Decor`,copyDecorHelpText:B=`The source decor stays unchanged. The copied record starts as a draft and is not published until it is saved.`,copyDecorDisabled:V=!1,retryLabel:H=`Try Again`,onDecorCodeChange:U,onRegionChange:W,onDecorCodeOptionSelect:te,onOpenExistingClick:G,onCreateNewClick:ne,onSourceDecorCodeChange:K,onSourceDecorCodeOptionSelect:re,onNewDecorCodeChange:ie,onCopyDecorClick:ae,onRetryClick:oe})=>{let q=b===`checking`,se=b===`error`,ce=!i.trim(),le=q||c||ce,ue=se?x?.trim()??``:``,de=p.trim().toLocaleLowerCase(),fe=m.some(e=>e.value.trim().toLocaleLowerCase()===de);return(0,u.jsx)(Rd,{pageTitle:e,pageDescription:t,sideNavProps:n,headerActions:(0,u.jsxs)(`fieldset`,{className:`min-w-0`,disabled:c||q,"aria-describedby":s?`market-readiness-region-help`:void 0,children:[(0,u.jsx)(`legend`,{className:`sr-only`,children:a}),(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":a,"aria-invalid":ce||void 0,className:`flex flex-wrap gap-x-4 gap-y-2`,children:r.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:`market-readiness-region`,value:e.value,checked:i===e.value,disabled:c||q,required:!0,"aria-label":e.label,className:`peer sr-only`,onChange:e=>W({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??cf(e.label)})]},e.value))}),ce?(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-xs text-accent`,children:o}):null,s?(0,u.jsx)(d,{id:`market-readiness-region-help`,variant:`free`,className:`sr-only`,children:s}):null]}),children:(0,u.jsxs)(`section`,{"aria-label":`Market readiness actions`,className:`mt-6 grid gap-4`,children:[(0,u.jsxs)(lf,{title:l,description:f,iconName:`magnifying-glass`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-existing-decor-code`,className:`text-sm font-bold text-primary`,children:g}),(0,u.jsx)(Co,{id:`market-readiness-existing-decor-code`,name:`existingDecorCode`,ariaLabel:g,value:p,options:m,placeholder:_,controlSize:`default`,disabled:le,hasError:se,emptyMessage:v,onQueryChange:U,onClear:()=>U({value:``}),onOptionSelect:e=>{U({value:e.option.value}),te?.(e)},onSearchSubmit:()=>G({decorCode:p})}),y?(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-xs text-tertiary`,children:y}):null]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(D,{label:q?`Checking decor...`:S,iconType:`fa-solid`,iconName:q?`spinner`:`arrow-right`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:fe?`accent`:`primary`,fullWidth:!0,disabled:C||le,"aria-busy":q||void 0,onClick:()=>G({decorCode:p})})}),ue?(0,u.jsx)(`div`,{role:`alert`,className:`mt-4 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:ue}),oe?(0,u.jsx)(`div`,{className:`mt-3`,children:(0,u.jsx)(D,{label:H,variant:`outline`,intent:`primary`,size:`sm`,onClick:oe})}):null]})]})}):null]}),(0,u.jsxs)(lf,{title:w,description:T,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:g}),(0,u.jsx)(yo,{id:`market-readiness-new-decor-code`,name:`newDecorCode`,type:`search`,value:p,placeholder:_,disabled:le,autoComplete:`off`,leadingIcon:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>U({value:e.target.value})})]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(D,{label:E,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:k||le,onClick:()=>ne({decorCode:p})})}),O?(0,u.jsx)(d,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:O}):null]}),(0,u.jsxs)(lf,{title:A,description:j,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:P}),(0,u.jsx)(Co,{id:`market-readiness-source-decor-code`,name:`sourceDecorCode`,ariaLabel:P,value:M,options:N,placeholder:ee,controlSize:`default`,disabled:le,emptyMessage:F,onQueryChange:K,onClear:()=>K({value:``}),onOptionSelect:e=>{K({value:e.option.value}),re?.(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:L}),(0,u.jsx)(yo,{id:`market-readiness-copy-new-decor-code`,name:`copyNewDecorCode`,type:`search`,value:I,placeholder:R,disabled:le,autoComplete:`off`,leadingIcon:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>ie({value:e.target.value})})]})]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(D,{label:z,iconType:`fa-solid`,iconName:`copy`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:V||le,onClick:()=>ae({sourceDecorCode:M,newDecorCode:I})})}),B?(0,u.jsx)(d,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:B}):null]})]})})},df=({pageTitle:e,pageDescription:t,backLabel:n,sideNavProps:r,report:i,status:a={state:`ready`},pagination:o,onBackClick:s,onRetryClick:c,onPreviousPageClick:l,onNextPageClick:d})=>(0,u.jsx)(Rd,{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)(su,{...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)(Vd,{status:a,onRetryClick:c})}),ff=e=>new Intl.NumberFormat(`en-US`).format(e),pf=e=>new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`}).format(new Date(e)),mf=e=>[...e].sort((e,t)=>(e.stepNumber??2**53-1)-(t.stepNumber??2**53-1)),hf=e=>e>=80?`good`:e>=60?`warning`:`critical`,gf=e=>e>=80?`Healthy`:e>=60?`Needs Review`:`Critical`,_f=e=>e===`success`?`green`:e===`warning`?`orange`:e===`error`?`red`:e===`review`?`purple`:`gray`,vf=e=>e===`success`?`safe`:e===`warning`?`warning`:e===`error`?`error`:e===`review`?`review`:`resolved`,yf=e=>({title:`Data Health`,score:e.summary.healthScore,scoreLabel:gf(e.summary.healthScore),status:hf(e.summary.healthScore),summary:`This data set needs review before fixes are applied.`,detail:`${ff(e.summary.problemSkuRows)} SKU rows need attention. ${ff(e.summary.goodSkuRows)} SKU rows have no detected issues.`}),bf=e=>[{value:ff(e.skuRowsScanned),label:`Total SKUs`,detail:`${ff(e.recordsScanned)} records scanned in this report`,iconName:`barcode`,tone:`blue`}],xf=e=>({title:`By Issue Type`,items:mf(e.issueTypes).map(e=>({id:e.id,label:e.label,groupCount:ff(e.groups),recordCount:ff(e.records),tone:_f(e.severity)}))}),Sf=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?`${ff(t)} duplicate groups look safe to review first. Confirm the product data is current before applying fixes.`:`${ff(e.summary.problemSkuRows)} SKU rows need review before Data Forge can safely apply automated fixes.`}},Cf=e=>e===`safe`?`success`:e===`warning`?`warning`:e===`error`?`error`:e===`review`?`review`:`neutral`,wf=e=>e.groupCount>0||e.recordCount===void 0?`${ff(e.groupCount)} groups`:`${ff(e.recordCount)} records`,Tf=e=>mf(e.sections).map(e=>{let t=vf(e.severity);return{id:e.id,title:e.title,groupCountLabel:wf(e),description:e.description,status:t,stepNumber:e.stepNumber,recommendedActionTitle:e.recommendedActionTitle??`Recommended Action`,recommendedActions:e.recommendedAction,confidenceLabel:e.confidenceLabel,confidenceTone:Cf(t),primaryActionLabel:t===`safe`?`Resolve`:`Review Groups`,primaryActionIconName:t===`safe`?`wand-magic-sparkles`:`magnifying-glass`,primaryActionVariant:t===`safe`?`solid`:`outline`}}),Ef=({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,L=n?.trim()??(I?`Report generated: ${pf(I.generatedAt)}`:``),R=m??(I?yf(I):null),z=g??(I?bf(I):[]),B=_??(I?xf(I):null),V=v??(I?Sf(I):null),H=y??(I?Tf(I):[]),U=z.length<=1?`md:col-span-2`:`md:col-span-1`,W=o===`required`,te=(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[L?(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:L})]}):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]}),G=!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:W?`solid`:`outline`,intent:W?`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)(Rd,{pageTitle:e,pageDescription:F,sideNavProps:l,headerActions:te,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:W?`solid`:`outline`,intent:W?`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})]})]}):G,(0,u.jsxs)(`section`,{"aria-label":`Data issue summary`,className:`mt-5 grid gap-4 md:grid-cols-4`,children:[R?(0,u.jsx)(`div`,{className:`h-full md:col-span-1`,children:(0,u.jsx)(fs,{...R})}):null,z.map(e=>(0,u.jsx)(hs,{...e},e.label)),B?(0,u.jsx)(`div`,{className:`h-full ${U}`,children:(0,u.jsx)(bs,{...B})}):null]}),V?(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(Ts,{...V,recalculating:i===`pending`||V.recalculating,onRecalculateClick:V.onRecalculateClick??w})}):null,(0,u.jsx)(`section`,{"aria-label":`Data issue actions`,className:`mt-4 space-y-3`,children:H.map(e=>(0,u.jsx)(vs,{...e,onPrimaryActionClick:e.onPrimaryActionClick??P,onSecondaryActionClick:e.onSecondaryActionClick??ee},e.id))})]}):(0,u.jsx)(Vd,{status:f,onRetryClick:C})}),(0,u.jsx)(lc,{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)(Df,{dialog:S,onClose:M,onConfirm:j,onRetry:N})]})},Df=({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)(lc,{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})]})]})})},Of=e=>new Intl.NumberFormat(`en-US`).format(e),kf=({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})]}),Af=({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})},jf=({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:Of(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]}),Mf=({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:L,onRangeChange:R,onDirectDownloadClick:z,onRetryClick:B})=>{let V=(0,c.useRef)(null),H=y===`pending`,U=M===`pending`,W=e=>F?.({files:Array.from(e??[])});return(0,u.jsx)(Rd,{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)(kf,{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)(jf,{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)(kf,{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(),W(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:H,onClick:()=>V.current?.click()})}),(0,u.jsx)(`input`,{ref:V,id:`salsify-report-upload`,type:`file`,className:`sr-only`,disabled:H,onChange:e=>W(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:H,onClick:L}),(0,u.jsx)(D,{label:x,iconType:`fa-solid`,iconName:`cloud-arrow-up`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,disabled:S||H,"aria-busy":H||void 0,onClick:I})]})]}):null,(0,u.jsx)(Af,{status:y,message:b})]}),(0,u.jsxs)(kf,{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)(_o,{id:`salsify-range`,name:`salsifyRange`,value:A,placeholder:O,options:k,disabled:U,onChange:e=>R?.({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||U,"aria-busy":U||void 0,onClick:z})}),(0,u.jsx)(Af,{status:M,message:N})]})]}):(0,u.jsx)(Vd,{status:r,onRetryClick:B})})},Nf=e=>new Intl.NumberFormat(`en-US`).format(e),Pf=e=>e.split(`-`).filter(Boolean).map(e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(` `),Ff=(e,t,n)=>n===0?`0 groups`:`${Nf(e+1)}-${Nf(e+Math.min(t,n))}`,If=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}),Lf=({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()||Pf(d.issueType),S=a??`Next ${Nf(d.limit)}`;return(0,u.jsx)(Rd,{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)(xs,{title:x,description:`Review each group and select the record Data Forge should keep.`,totalGroupsLabel:Nf(d.totalGroups),visibleRangeLabel:Ff(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)(ws,{groupId:e.groupId,issueType:x,reason:e.reason,matchReasons:e.matchReasons,conflictFields:e.conflictFields,records:e.records.map(If),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)(Vd,{status:p,onRetryClick:b})})},Rf=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 ${Rf(e)}`,children:n})},Bf=({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.`})]})})]})},Vf=({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)(Bf,{guide:e,uploadDropLabel:s,uploadBrowseLabel:c,uploadHelpText:l,uploadLabel:f,clearFileLabel:p,completeLabel:m,onGuideFileSelect:g,onUploadClick:_,onClearSelectedFileClick:v},e.id))}):(0,u.jsx)(Vd,{status:r,onRetryClick:y}),(0,u.jsx)(Rd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:b})};exports.AccountAccessPanel=Au,exports.AdminAuthStatusTemplate=sf,exports.AdminDashboardTemplate=$d,exports.AdminDataIssuesSourceTemplate=Mf,exports.AdminDataIssuesTemplate=Ef,exports.AdminDataReportTemplate=df,exports.AdminIssueGroupReviewTemplate=Lf,exports.AdminPageTemplateShell=Rd,exports.AdminProductGuidesTemplate=Vf,exports.AdminSideNav=qs,exports.AdminUsersTemplate=rf,exports.AnnouncementBar=Hc,exports.ArticleBanner=Il,exports.ArticleBannerContent=zo,exports.ArticleLandingPageTemplate=Xu,exports.BpcsCartConfirmationTemplate=Cd,exports.BpcsCartSamplesTemplate=Od,exports.BpcsCartShippingTemplate=Dd,exports.BrandNavBar=Pc,exports.Breadcrumbs=Uc,exports.BusinessInfoCard=K,exports.Button=D,exports.CallToActionHero=el,exports.CallToActionHeroContent=Bo,exports.CarouselArrowControls=wo,exports.CarouselDots=To,exports.CartItemCard=ae,exports.CategoryPageTemplate=od,exports.ClickableCard=q,exports.ColourMatchingChart=Qo,exports.ColumnBanner=sl,exports.ColumnCarouselCard=ro,exports.CommerceSyncPanel=Su,exports.ContentCarousel=Ll,exports.ContentContainer=R,exports.ContentGrid=V,exports.CountrySelector=uo,exports.DataHealthSummaryCard=fs,exports.DataIssueActionCard=vs,exports.DataIssueMetricCard=hs,exports.DataReportCollection=su,exports.DocumentLinkCard=Ko,exports.DropdownFilter=vo,exports.DynamicForm=sc,exports.EcommCartConfirmationTemplate=kd,exports.EcommCartPaymentTemplate=Md,exports.EcommCartShippingTemplate=Nd,exports.EcommCartSummaryTemplate=Ld,exports.EmbeddedVideo=M,exports.EmbeddedVideoCard=Go,exports.FaqCard=qo,exports.FaqCardCollection=Kl,exports.FeatureCard=io,exports.FeatureCardCollection=dl,exports.FeaturedArticleBanner=tl,exports.FeaturedArticleBannerContent=Vo,exports.FeaturedProductCard=ao,exports.FeaturedProductsCarousel=Wl,exports.FilterBar=fo,exports.FilterBarButton=po,exports.FlowRow=te,exports.Footer=Xc,exports.FormicaText=d,exports.GalleryTemplate=cd,exports.Icon=h,exports.Image=A,exports.ImageCard=Rl,exports.ImageOverlayCard=Wo,exports.ImageOverlayGrid=Yl,exports.InfoCard=Jo,exports.IssueGroupQueueSummaryCard=xs,exports.IssueGroupReviewCard=ws,exports.IssueRecordCandidateCard=Cs,exports.IssueTypeBreakdownCard=bs,exports.LocalizationMarketCollection=Ql,exports.LocalizationStatusCard=Hs,exports.LocationCard=lo,exports.LocationCardCollection=Zl,exports.LocationMap=pu,exports.LoginTemplate=hd,exports.MarketReadinessLandingTemplate=uf,exports.MarketReadinessTemplate=Jd,exports.MessageListCard=Os,exports.Modal=lc,exports.MoreInfoHighlightsCard=Yo,exports.MoreInfoHighlightsCollection=fl,exports.ProResourceTemplate=ud,exports.ProductContactActions=oe,exports.ProductDetailPageTemplate=Ju,exports.ProductJourneyTemplate=Qd,exports.QuantityCheckoutCard=es,exports.RecentArticleCard=cs,exports.RecentArticleCollection=Gl,exports.RecommendedNextStepCard=Ts,exports.ResilientImage=P,exports.SampleOrderSummaryPanel=pl,exports.SearchCombobox=Co,exports.SearchFilter=So,exports.SearchResultsTemplate=md,exports.SingleButtonCard=ls,exports.SocialLinkRow=Uo,exports.Spinner=_,exports.StandardBannerContainer=Qc,exports.StandardCarousel=Io,exports.StandardCopyBannerContent=Ho,exports.StandardCopyHero=Fl,exports.StatusFlowActionCard=As,exports.StatusFlowConnector=Fs,exports.StatusFlowDiagram=mu,exports.StatusFlowGroup=hu,exports.StatusFlowLegendCard=Rs,exports.StatusFlowPanel=_u,exports.StatusSummaryCard=Bs,exports.SwatchCard=Gs,exports.SwatchPurchasePanel=Pl,exports.TextCard=Hl,exports.Textarea=ee,exports.TopNavActions=zc,exports.TopNavBar=Vc,exports.TopNavMegaMenu=Fc,exports.TopNavSearchResults=Lc,exports.VerticalCheckboxListCollection=Eu,exports.VerticalColorSwatchList=Ro,exports.WarrantyCard=Ul,exports.WhereToBuySearchBanner=$c,exports.WhereToBuyTemplate=_d,exports.userTypeOptions=Du;
|
|
555
|
+
}`;function Kn(){var e=Qt,t=$t,n=Q.cssPrefix,r=Q.replacementClass,i=Gn;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 qn=!1;function Jn(){Q.autoAddCss&&!qn&&(Pn(Kn()),qn=!0)}var Yn={mixout:function(){return{dom:{css:Kn,insertCss:Jn}}},hooks:function(){return{beforeDOMElementCreation:function(){Jn()},beforeI2svg:function(){Jn()}}}},Xn=je||{};Xn[Xt]||(Xn[Xt]={}),Xn[Xt].styles||(Xn[Xt].styles={}),Xn[Xt].hooks||(Xn[Xt].hooks={}),Xn[Xt].shims||(Xn[Xt].shims=[]);var Zn=Xn[Xt],Qn=[],$n=function(){Z.removeEventListener(`DOMContentLoaded`,$n),er=1,Qn.map(function(e){return e()})},er=!1;Pe&&(er=(Z.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Z.readyState),er||Z.addEventListener(`DOMContentLoaded`,$n));function tr(e){Pe&&(er?setTimeout(e,0):Qn.push(e))}function nr(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`?zn(e):`<${t} ${Bn(r)}>${a.map(nr).join(``)}</${t}>`}function rr(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var ir=function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}},ar=function(e,t,n,r){var i=Object.keys(e),a=i.length,o=r===void 0?t:ir(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 or(e){return ye(e).length===1?e.codePointAt(0).toString(16):null}function sr(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 cr(e,t){var n=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).skipHooks,r=n===void 0?!1:n,i=sr(t);typeof Zn.hooks.addPack==`function`&&!r?Zn.hooks.addPack(e,sr(t)):Zn.styles[e]=X(X({},Zn.styles[e]||{}),i),e===`fas`&&cr(`fa`,t)}var lr=Zn.styles,ur=Zn.shims,dr=Object.keys(_n),fr=dr.reduce(function(e,t){return e[t]=Object.keys(_n[t]),e},{}),pr=null,mr={},hr={},gr={},_r={},vr={};function yr(e){return~wn.indexOf(e)}function br(e,t){var n=t.split(`-`),r=n[0],i=n.slice(1).join(`-`);return r===e&&i!==``&&!yr(i)?i:null}var xr=function(){var e=function(e){return ar(lr,function(t,n,r){return t[r]=ar(n,e,{}),t},{})};mr=e(function(e,t,n){return t[3]&&(e[t[3]]=n),t[2]&&t[2].filter(function(e){return typeof e==`number`}).forEach(function(t){e[t.toString(16)]=n}),e}),hr=e(function(e,t,n){return e[n]=n,t[2]&&t[2].filter(function(e){return typeof e==`string`}).forEach(function(t){e[t]=n}),e}),vr=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 lr||Q.autoFetchSvg,n=ar(ur,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:{}});gr=n.names,_r=n.unicodes,pr=Ar(Q.styleDefault,{family:Q.familyDefault})};jn(function(e){pr=Ar(e.styleDefault,{family:Q.familyDefault})}),xr();function Sr(e,t){return(mr[e]||{})[t]}function Cr(e,t){return(hr[e]||{})[t]}function wr(e,t){return(vr[e]||{})[t]}function Tr(e){return gr[e]||{prefix:null,iconName:null}}function Er(e){var t=_r[e],n=Sr(`fas`,e);return t||(n?{prefix:`fas`,iconName:n}:null)||{prefix:null,iconName:null}}function Dr(){return pr}var Or=function(){return{prefix:null,iconName:null,rest:[]}};function kr(e){var t=He,n=dr.reduce(function(e,t){return e[t]=`${Q.cssPrefix}-${t}`,e},{});return Et.forEach(function(r){(e.includes(n[r])||e.some(function(e){return fr[r].includes(e)}))&&(t=r)}),t}function Ar(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).family,n=t===void 0?He:t,r=pn[n][e];if(n===Ue&&!e)return`fad`;var i=hn[n][e]||hn[n][r],a=e in Zn.styles?e:null;return i||a||null}function jr(e){var t=[],n=null;return e.forEach(function(e){var r=br(Q.cssPrefix,e);r?n=r:e&&t.push(e)}),{iconName:n,rest:t}}function Mr(e){return e.sort().filter(function(e,t,n){return n.indexOf(e)===t})}var Nr=Wt.concat(jt);function Pr(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).skipLookups,n=t===void 0?!1:t,r=null,i=Mr(e.filter(function(e){return Nr.includes(e)})),a=Mr(e.filter(function(e){return!Nr.includes(e)})),o=ve(i.filter(function(e){return r=e,!Ve.includes(e)}),1)[0],s=o===void 0?null:o,c=kr(i),l=X(X({},jr(a)),{},{prefix:Ar(s,{family:c})});return X(X(X({},l),Rr({values:e,family:c,styles:lr,config:Q,canonical:l,givenPrefix:r})),Fr(n,r,l))}function Fr(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var a=t===`fa`?Tr(i):{},o=wr(r,i);return i=a.iconName||o||i,r=a.prefix||r,r===`far`&&!lr.far&&lr.fas&&!Q.autoFetchSvg&&(r=`fas`),{prefix:r,iconName:i}}var Ir=Et.filter(function(e){return e!==He||e!==Ue}),Lr=Object.keys(Ut).filter(function(e){return e!==He}).map(function(e){return Object.keys(Ut[e])}).flat();function Rr(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===Ue,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&&Ir.includes(n)&&(Object.keys(s).find(function(e){return Lr.includes(e)})||l.autoFetchSvg)&&(r.prefix=kt.get(n).defaultShortPrefixId,r.iconName=wr(r.prefix,r.iconName)||r.iconName),(r.prefix===`fa`||a===`fa`)&&(r.prefix=Dr()||`fas`),r}var zr=function(){function e(){le(this,e),this.definitions={}}return de(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]),cr(t,i[t]);var n=_n[He][t];n&&cr(n,i[t]),xr()})}},{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}}])}(),Br=[],Vr={},Hr={},Ur=Object.keys(Hr);function Wr(e,t){var n=t.mixoutsTo;return Br=e,Vr={},Object.keys(Hr).forEach(function(e){Ur.indexOf(e)===-1&&delete Hr[e]}),Br.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){typeof t[e]==`function`&&(n[e]=t[e]),Se(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){Vr[e]||(Vr[e]=[]),Vr[e].push(r[e])})}e.provides&&e.provides(Hr)}),n}function Gr(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(Vr[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(r))}),t}function Kr(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Vr[e]||[]).forEach(function(e){e.apply(null,n)})}function qr(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Hr[e]?Hr[e].apply(null,t):void 0}function Jr(e){e.prefix===`fa`&&(e.prefix=`fas`);var t=e.iconName,n=e.prefix||Dr();if(t)return t=wr(n,t)||t,rr(Yr.definitions,n,t)||rr(Zn.styles,n,t)}var Yr=new zr,Xr={noAuto:function(){Q.autoReplaceSvg=!1,Q.observeMutations=!1,Kr(`noAuto`)},config:Q,dom:{i2svg:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Pe?(Kr(`beforeI2svg`,e),qr(`pseudoElements2svg`,e),qr(`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,tr(function(){Zr({autoReplaceSvgRoot:t}),Kr(`watch`,e)})}},parse:{icon:function(e){if(e===null)return null;if(Se(e)===`object`&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:wr(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=Ar(e[0]);return{prefix:n,iconName:wr(n,t)||t}}if(typeof e==`string`&&(e.indexOf(`${Q.cssPrefix}-`)>-1||e.match(yn))){var r=Pr(e.split(` `),{skipLookups:!0});return{prefix:r.prefix||Dr(),iconName:wr(r.prefix,r.iconName)||r.iconName}}if(typeof e==`string`){var i=Dr();return{prefix:i,iconName:wr(i,e)||e}}}},library:Yr,findIconDefinition:Jr,toHtml:nr},Zr=function(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).autoReplaceSvgRoot,t=e===void 0?Z:e;(Object.keys(Zn.styles).length>0||Q.autoFetchSvg)&&Pe&&Q.autoReplaceSvg&&Xr.dom.i2svg({node:t})};function Qr(e,t){return Object.defineProperty(e,`abstract`,{get:t}),Object.defineProperty(e,`html`,{get:function(){return e.abstract.map(function(e){return nr(e)})}}),Object.defineProperty(e,`node`,{get:function(){if(Pe){var t=Z.createElement(`div`);return t.innerHTML=e.html,t.children}}}),e}function $r(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(Hn(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=Vn(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 ei(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 ti(e){return[`aria-label`,`aria-labelledby`,`title`,`role`].some(function(t){return t in e})}function ni(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}`})};!ti(l.attributes)&&!l.attributes[`aria-hidden`]&&(g.attributes[`aria-hidden`]=`true`),d&&(g.attributes[en]=``);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?qr(`generateAbstractMask`,_)||{children:[],attributes:{}}:qr(`generateAbstractIcon`,_)||{children:[],attributes:{}},y=v.children,b=v.attributes;return _.children=y,_.attributes=b,s?ei(_):$r(_)}function ri(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[en]=``);var l=X({},a.styles);Hn(i)&&(l.transform=Wn({transform:i,startCentered:!0,width:n,height:r}),l[`-webkit-transform`]=l.transform);var u=Vn(l);u.length>0&&(c.style=u);var d=[];return d.push({tag:`span`,attributes:c,children:[t]}),d}function ii(e){var t=e.content,n=e.extra,r=X(X({},n.attributes),{},{class:n.classes.join(` `)}),i=Vn(n.styles);i.length>0&&(r.style=i);var a=[];return a.push({tag:`span`,attributes:r,children:[t]}),a}var ai=Zn.styles;function oi(e){var t=e[0],n=e[1],r=ve(e.slice(4),1)[0],i=null;return i=Array.isArray(r)?{tag:`g`,attributes:{class:`${Q.cssPrefix}-${Cn.GROUP}`},children:[{tag:`path`,attributes:{class:`${Q.cssPrefix}-${Cn.SECONDARY}`,fill:`currentColor`,d:r[0]}},{tag:`path`,attributes:{class:`${Q.cssPrefix}-${Cn.PRIMARY}`,fill:`currentColor`,d:r[1]}}]}:{tag:`path`,attributes:{fill:`currentColor`,d:r}},{found:!0,width:t,height:n,icon:i}}var si={found:!1,width:512,height:512};function ci(e,t){!un&&!Q.showMissingIcons&&e&&console.error(`Icon with name "${e}" and prefix "${t}" is missing.`)}function li(e,t){var n=t;return t===`fa`&&Q.styleDefault!==null&&(t=Dr()),new Promise(function(r,i){if(n===`fa`){var a=Tr(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&ai[t]&&ai[t][e]){var o=ai[t][e];return r(oi(o))}ci(e,t),r(X(X({},si),{},{icon:Q.showMissingIcons&&e&&qr(`missingIconAbstract`)||{}}))})}var ui=function(){},di=Q.measurePerformance&&Ne&&Ne.mark&&Ne.measure?Ne:{mark:ui,measure:ui},fi=`FA "7.2.0"`,pi=function(e){return di.mark(`${fi} ${e} begins`),function(){return mi(e)}},mi=function(e){di.mark(`${fi} ${e} ends`),di.measure(`${fi} ${e}`,`${fi} ${e} begins`,`${fi} ${e} ends`)},hi={begin:pi,end:mi},gi=function(){};function _i(e){return typeof(e.getAttribute?e.getAttribute(en):null)==`string`}function vi(e){var t=e.getAttribute?e.getAttribute(rn):null,n=e.getAttribute?e.getAttribute(an):null;return t&&n}function yi(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Q.replacementClass)}function bi(){return Q.autoReplaceSvg===!0?Ti.replace:Ti[Q.autoReplaceSvg]||Ti.replace}function xi(e){return Z.createElementNS(`http://www.w3.org/2000/svg`,e)}function Si(e){return Z.createElement(e)}function Ci(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).ceFn,n=t===void 0?e.tag===`svg`?xi:Si: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(Ci(e,{ceFn:n}))}),r}function wi(e){var t=` ${e.outerHTML} `;return t=`${t}Font Awesome fontawesome.com `,t}var Ti={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Ci(e),t)}),t.getAttribute(en)===null&&Q.keepOriginalSource){var n=Z.createComment(wi(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~Rn(t).indexOf(Q.replacementClass))return Ti.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 nr(e)}).join(`
|
|
556
|
+
`);t.setAttribute(en,``),t.innerHTML=a}};function Ei(e){e()}function Di(e,t){var n=typeof t==`function`?t:gi;if(e.length===0)n();else{var r=Ei;Q.mutateApproach===sn&&(r=je.requestAnimationFrame||Ei),r(function(){var t=bi(),r=hi.begin(`mutate`);e.map(t),r(),n()})}}var Oi=!1;function ki(){Oi=!0}function Ai(){Oi=!1}var ji=null;function Mi(e){if(Me&&Q.observeMutations){var t=e.treeCallback,n=t===void 0?gi:t,r=e.nodeCallback,i=r===void 0?gi:r,a=e.pseudoElementsCallback,o=a===void 0?gi:a,s=e.observeMutationsRoot,c=s===void 0?Z:s;ji=new Me(function(e){if(!Oi){var t=Dr();Ln(e).forEach(function(e){if(e.type===`childList`&&e.addedNodes.length>0&&!_i(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`&&_i(e.target)&&~Sn.indexOf(e.attributeName))if(e.attributeName===`class`&&vi(e.target)){var r=Pr(Rn(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(rn,a||t),s&&e.target.setAttribute(an,s)}else yi(e.target)&&i(e.target)})}}),Pe&&ji.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Ni(){ji&&ji.disconnect()}function Pi(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 Fi(e){var t=e.getAttribute(`data-prefix`),n=e.getAttribute(`data-icon`),r=e.innerText===void 0?``:e.innerText.trim(),i=Pr(Rn(e));return i.prefix||=Dr(),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix?i:(i.prefix&&r.length>0&&(i.iconName=Cr(i.prefix,e.innerText)||Sr(i.prefix,or(e.innerText))),!i.iconName&&Q.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data),i)}function Ii(e){return Ln(e.attributes).reduce(function(e,t){return e.name!==`class`&&e.name!==`style`&&(e[t.name]=t.value),e},{})}function Li(){return{iconName:null,prefix:null,transform:Nn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Ri(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Fi(e),r=n.iconName,i=n.prefix,a=n.rest,o=Ii(e),s=Gr(`parseNodeAttributes`,{},e);return X({iconName:r,prefix:i,transform:Nn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:t.styleParser?Pi(e):[],attributes:o}},s)}var zi=Zn.styles;function Bi(e){var t=Q.autoReplaceSvg===`nest`?Ri(e,{styleParser:!1}):Ri(e);return~t.extra.classes.indexOf(bn)?qr(`generateLayersText`,e,t):qr(`generateSvgReplacementMutation`,e,t)}function Vi(){return[].concat(ye(jt),ye(Wt))}function Hi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Pe)return Promise.resolve();var n=Z.documentElement.classList,r=function(e){return n.add(`${on}-${e}`)},i=function(e){return n.remove(`${on}-${e}`)},a=Q.autoFetchSvg?Vi():Ve.concat(Object.keys(zi));a.includes(`fa`)||a.push(`fa`);var o=[`.${bn}:not([${en}])`].concat(a.map(function(e){return`.${e}:not([${en}])`})).join(`, `);if(o.length===0)return Promise.resolve();var s=[];try{s=Ln(e.querySelectorAll(o))}catch{}if(s.length>0)r(`pending`),i(`complete`);else return Promise.resolve();var c=hi.begin(`onTree`),l=s.reduce(function(e,t){try{var n=Bi(t);n&&e.push(n)}catch(e){un||e.name===`MissingIcon`&&console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(l).then(function(n){Di(n,function(){r(`active`),r(`complete`),i(`pending`),typeof t==`function`&&t(),c(),e()})}).catch(function(e){c(),n(e)})})}function Ui(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Bi(e).then(function(e){e&&Di([e],t)})}function Wi(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Jr(t||{}),i=n.mask;return i&&=(i||{}).icon?i:Jr(i||{}),e(r,X(X({},n),{},{mask:i}))}}var Gi=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?Nn: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 Qr(X({type:`icon`},e),function(){return Kr(`beforeDOMElementCreation`,{iconDefinition:e,params:t}),ni({icons:{main:oi(v),mask:s?oi(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:_,transform:X(X({},Nn),r),symbol:a,maskId:l,extra:{attributes:p,styles:h,classes:d}})})}},Ki={mixout:function(){return{icon:Wi(Gi)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Hi,e.nodeCallback=Ui,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=t===void 0?Z:t,r=e.callback;return Hi(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([li(n,r),o.iconName?li(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(o){var l=ve(o,2),u=l[0],d=l[1];t([e,ni({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=Vn(a);o.length>0&&(n.style=o);var s;return Hn(i)&&(s=qr(`generateAbstractTransformGrouping`,{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},qi={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 Qr({type:`layer`},function(){Kr(`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(ye(r)).join(` `)},children:n}]})}}}},Ji={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 Qr({type:`counter`,content:e},function(){return Kr(`beforeDOMElementCreation`,{content:e,params:t}),ii({content:e.toString(),title:r,extra:{attributes:s,styles:l,classes:[`${Q.cssPrefix}-layers-counter`].concat(ye(a))}})})}}}},Yi={mixout:function(){return{text:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?Nn: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 Qr({type:`text`,content:e},function(){return Kr(`beforeDOMElementCreation`,{content:e,params:t}),ri({content:e,transform:X(X({},Nn),r),extra:{attributes:s,styles:l,classes:[`${Q.cssPrefix}-layers-text`].concat(ye(a))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.transform,r=t.extra,i=null,a=null;if(Fe){var o=parseInt(getComputedStyle(e).fontSize,10),s=e.getBoundingClientRect();i=s.width/o,a=s.height/o}return Promise.resolve([e,ri({content:e.innerHTML,width:i,height:a,transform:n,extra:r,watchable:!0})])}}},Xi=RegExp(`"`,`ug`),Zi=[1105920,1112319],Qi=X(X(X(X({},{FontAwesome:{normal:`fas`,400:`fas`}}),Ot),Yt),Ft),$i=Object.keys(Qi).reduce(function(e,t){return e[t.toLowerCase()]=Qi[t],e},{}),ea=Object.keys($i).reduce(function(e,t){var n=$i[t];return e[t]=n[900]||ye(Object.entries(n))[0][1],e},{});function ta(e){return or(ye(e.replace(Xi,``))[0]||``)}function na(e){var t=e.getPropertyValue(`font-feature-settings`).includes(`ss01`),n=e.getPropertyValue(`content`).replace(Xi,``),r=n.codePointAt(0),i=r>=Zi[0]&&r<=Zi[1],a=n.length===2?n[0]===n[1]:!1;return i||a||t}function ra(e,t){var n=e.replace(/^['"]|['"]$/g,``).toLowerCase(),r=parseInt(t),i=isNaN(r)?`normal`:r;return($i[n]||{})[i]||ea[n]}function ia(e,t){var n=`${nn}${t.replace(`:`,`-`)}`;return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var a=Ln(e.children).filter(function(e){return e.getAttribute(tn)===t})[0],o=je.getComputedStyle(e,t),s=o.getPropertyValue(`font-family`),c=s.match(xn),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=ra(s,l),p=ta(d),m=c[0].startsWith(`FontAwesome`),h=na(o),g=Sr(f,p),_=g;if(m){var v=Er(p);v.iconName&&v.prefix&&(g=v.iconName,f=v.prefix)}if(g&&!h&&(!a||a.getAttribute(rn)!==f||a.getAttribute(an)!==_)){e.setAttribute(n,_),a&&e.removeChild(a);var y=Li(),b=y.extra;b.attributes[tn]=t,li(g,f).then(function(i){var a=ni(X(X({},y),{},{icons:{main:i,mask:Or()},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 nr(e)}).join(`
|
|
557
|
+
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function aa(e){return Promise.all([ia(e,`::before`),ia(e,`::after`)])}function oa(e){return e.parentNode!==document.head&&!~cn.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(tn)&&(!e.parentNode||e.parentNode.tagName!==`svg`)}var sa=function(e){return!!e&&ln.some(function(t){return e.includes(t)})},ca=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=fe(n),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(sa(a)){var o=ln.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 la(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Pe){var n;if(t)n=e;else if(Q.searchPseudoElementsFullScan)n=e.querySelectorAll(`*`);else{var r=new Set,i=fe(document.styleSheets),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;try{var s=fe(o.cssRules),c;try{for(s.s();!(c=s.n()).done;){var l=c.value,u=fe(ca(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=Ln(n).filter(oa).map(aa),i=hi.begin(`searchPseudoElements`);ki(),Promise.all(r).then(function(){i(),Ai(),e()}).catch(function(){i(),Ai(),t()})})}}var ua={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=la,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=t===void 0?Z:t;Q.searchPseudoElements&&la(n)}}},da=!1,fa={mixout:function(){return{dom:{unwatch:function(){ki(),da=!0}}}},hooks:function(){return{bootstrap:function(){Mi(Gr(`mutationObserverCallbacks`,{}))},noAuto:function(){Ni()},watch:function(e){var t=e.observeMutationsRoot;da?Ai():Mi(Gr(`mutationObserverCallbacks`,{observeMutationsRoot:t}))}}}},pa=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})},ma={mixout:function(){return{parse:{transform:function(e){return pa(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-transform`);return n&&(e.transform=pa(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)}]}]}}}},ha={x:0,y:0,width:`100%`,height:`100%`};function ga(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 _a(e){return e.tag===`g`?e.children:[e]}Wr([Yn,Ki,qi,Ji,Yi,ua,fa,ma,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-mask`),r=n?Pr(n.split(` `).map(function(e){return e.trim()})):Or();return r.prefix||=Dr(),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=Un({transform:o,containerWidth:l,iconWidth:s}),f={tag:`rect`,attributes:X(X({},ha),{},{fill:`white`})},p=c.children?{children:c.children.map(ga)}:{},m={tag:`g`,attributes:X({},d.inner),children:[ga(X({tag:c.tag,attributes:X(X({},c.attributes),d.path)},p))]},h={tag:`g`,attributes:X({},d.outer),children:[m]},g=`mask-${a||In()}`,_=`clip-${a||In()}`,v={tag:`mask`,attributes:X(X({},ha),{},{id:g,maskUnits:`userSpaceOnUse`,maskContentUnits:`userSpaceOnUse`}),children:[f,h]},y={tag:`defs`,children:[{tag:`clipPath`,attributes:{id:_},children:_a(u)},v]};return t.push(y,{tag:`rect`,attributes:X({fill:`currentColor`,"clip-path":`url(#${_})`,mask:`url(#${g})`},ha)}),{children:t,attributes:n}}}},{provides:function(e){var t=!1;je.matchMedia&&(t=je.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:Xr}),Xr.noAuto;var va=Xr.config;Xr.library,Xr.dom;var ya=Xr.parse;Xr.findIconDefinition,Xr.toHtml;var ba=Xr.icon;Xr.layer,Xr.text,Xr.counter;function xa(e){return e-=0,e===e}function Sa(e){return xa(e)?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():``),e.charAt(0).toLowerCase()+e.slice(1))}var Ca=(e,t)=>l.default.createElement(`stop`,{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function wa(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ta=new Map,Ea=1e3;function Da(e){if(Ta.has(e))return Ta.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=Sa(n);t[e.startsWith(`webkit`)?wa(e):e]=r}}}n=a+1}if(Ta.size===Ea){let e=Ta.keys().next().value;e&&Ta.delete(e)}return Ta.set(e,t),t}function Oa(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}}),Oa(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=Da(String(t));break;case e.startsWith(`aria-`):case e.startsWith(`data-`):a[e.toLowerCase()]=t;break;default:a[Sa(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(Ca)))}return e(t.tag,{...a,...u},...r)}var ka=Oa.bind(null,l.default.createElement),Aa=(e,t)=>{let n=(0,l.useId)();return e||(t?n:void 0)},ja=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 Ma=`searchPseudoElementsFullScan`in va&&typeof va.searchPseudoElementsFullScan==`boolean`?`7.0.0`:`6.0.0`,Na=Number.parseInt(Ma)>=7,Pa=()=>Na,Fa=`fa`,Ia={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`},La={left:`fa-pull-left`,right:`fa-pull-right`},Ra={90:`fa-rotate-90`,180:`fa-rotate-180`,270:`fa-rotate-270`},za={"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`},Ba={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`},Va={default:`fa-layers`};function Ha(e){let t=va.cssPrefix||va.familyPrefix||Fa;return t===Fa?e:e.replace(new RegExp(String.raw`(?<=^|\s)${Fa}-`,`g`),`${t}-`)}function Ua(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(Ia.beat),n&&x.push(Ia.fade),r&&x.push(Ia.beatFade),i&&x.push(Ia.bounce),a&&x.push(Ia.shake),o&&x.push(Ia.spin),c&&x.push(Ia.spinReverse),s&&x.push(Ia.spinPulse),l&&x.push(Ia.pulse),u&&x.push(Ba.fixedWidth),d&&x.push(Ba.inverse),f&&x.push(Ba.border),p===!0&&x.push(Ba.flip),(p===`horizontal`||p===`both`)&&x.push(Ba.flipHorizontal),(p===`vertical`||p===`both`)&&x.push(Ba.flipVertical),m!=null&&x.push(za[m]),h!=null&&h!==0&&x.push(Ra[h]),g!=null&&x.push(La[g]),_&&x.push(Ba.swapOpacity),Pa()?(v&&x.push(Ba.rotateBy),y&&x.push(Ba.widthAuto),(va.cssPrefix||va.familyPrefix||Fa)===Fa?x:x.map(Ha)):x}var Wa=e=>typeof e==`object`&&`icon`in e&&!!e.icon;function Ga(e){if(e)return Wa(e)?e:ya.icon(e)}function Ka(e){return Object.keys(e)}var qa=new ja(`FontAwesomeIcon`),Ja={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},Ya=new Set(Object.keys(Ja)),Xa=l.default.forwardRef((e,t)=>{let n={...Ja,...e},{icon:r,mask:i,symbol:a,title:o,titleId:s,maskId:c,transform:l}=n,u=Aa(c,!!i),d=Aa(s,!!o),f=Ga(r);if(!f)return qa.error(`Icon lookup is undefined`,r),null;let p=Ua(n),m=typeof l==`string`?ya.transform(l):l,h=Ga(i),g=ba(f,{...p.length>0&&{classes:p},...m&&{transform:m},...h&&{mask:h},symbol:a,title:o,titleId:d,maskId:u});if(!g)return qa.error(`Could not find icon`,f),null;let{abstract:_}=g,v={ref:t};for(let e of Ka(n))Ya.has(e)||(v[e]=n[e]);return ka(_[0],v)});Xa.displayName=`FontAwesomeIcon`,`${Va.default}${Ba.fixedWidth}`;var Za={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`]},Qa={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`]},$a={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`]},eo={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`]},to={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`]},no=({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)(Xa,{icon:$a,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)(Xa,{icon:s?Za:to,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]})})})},ro=({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)(q,{onCardClick:s,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:m}):m},io=({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)(q,{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})},ao=e=>{if(e.distance)return e.distance.label??`${e.distance.value.toLocaleString(void 0,{maximumFractionDigits:2})} ${e.distance.unit}`},oo=e=>[e.city,e.region,e.postalCode].filter(Boolean).join(` `),so=(e,t,n)=>{e?.({location:t,href:n})},co=({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=ao(e),p=oo(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:()=>so(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:()=>so(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:()=>so(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:()=>so(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]})},lo=({countries:e=[],selectedCountry:t,onCountrySelect:n})=>{let[r,i]=(0,c.useState)(!1),a=(0,c.useRef)(null),o=t??e[0]??null,s=e=>{n?.(e),i(!1)},l=e=>{a.current&&!a.current.contains(e.target)&&i(!1)};return(0,c.useEffect)(()=>(document.addEventListener(`mousedown`,l),()=>document.removeEventListener(`mousedown`,l)),[]),(0,u.jsxs)(`div`,{ref:a,className:`relative`,children:[(0,u.jsxs)(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}`))})]})},uo=({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})})}),fo=({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})})]}),po={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`},mo={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`}},ho=({variant:e,hasError:t,disabled:n})=>{let r=mo[e];return{wrapperClasses:[po.wrapper,r.wrapper,t?`border-accent`:`border-secondaryHover`,n?`cursor-not-allowed opacity-60`:``].join(` `),selectClasses:[po.select,r.select].join(` `),iconClasses:[po.icon,r.icon].join(` `)}},go=({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}=ho({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})]})},_o=({dropdownProps:e,className:t=`w-full md:w-70`})=>(0,u.jsx)(`div`,{className:t,children:(0,u.jsx)(go,{...e})}),vo=({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]})},yo=({placeholder:e=`Search`,value:t=``,inputClassName:n=``,controlSize:r=`compact`,clearLabel:i=`Clear search`,disabled:a,readOnly:o,onKeyDown:s,onSearchSubmit:c,...l})=>{let d=String(t),f=r===`default`?`h-auto py-3`:`h-8 py-2`,p=e=>{s?.(e),!e.defaultPrevented&&e.key===`Enter`&&c?.({value:e.currentTarget.value})};return(0,u.jsx)(vo,{...l,value:d,type:`search`,placeholder:e,disabled:a,readOnly:o,clearable:!0,clearLabel:i,inputClassName:`${f} pl-10 ${n}`.trim(),onKeyDown:p,leadingIcon:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`magnifying-glass`,className:`text-sm text-secondaryHover`})})},bo={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`},xo=({searchBarProps:e,searchPlaceholder:t,layoutVariant:n=`default`})=>(0,u.jsx)(`div`,{className:bo[n],children:(0,u.jsx)(yo,{...e,placeholder:t??e.placeholder})}),So=({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)(yo,{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]})},Co=({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`})})})]}),wo=({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}`))}),To=(e,t)=>Math.max(0,Math.min(e,t-1)),Eo=(e,t,n)=>n?(e+t)%t:To(e,t),Do=e=>!!(e.eyebrow||e.heading||e.subheading||e.body||e.ctas?.length),Oo=e=>`Open ${e.heading??`slide`}`,ko=({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`})}),Ao=({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)(ko,{slide:e,heightClassName:n})}),jo=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>(0,u.jsx)(q,{onCardClick:()=>{r(e,t)},ariaLabel:Oo(e),className:`block w-full cursor-pointer text-left`,children:(0,u.jsx)(ko,{slide:e,heightClassName:n})}),Mo=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>e.link?(0,u.jsx)(Ao,{slide:e,index:t,heightClassName:n,onSlideClick:r}):r?(0,u.jsx)(jo,{slide:e,index:t,heightClassName:n,onSlideClick:r}):(0,u.jsx)(ko,{slide:e,heightClassName:n}),No=({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]})})}),Po=({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(()=>To(t,m)),_=c.default.useRef(e);c.default.useEffect(()=>{_.current=e},[e]),c.default.useEffect(()=>{let e=To(t,m);g(e),s?.(e,_.current[e])},[t,m,s]);let v=e[h],y=m>1,b=!!p,x=!b&&Do(v),S=f??!b,C=t=>{let n=Eo(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)(Mo,{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)(No,{slide:v}):null,n&&y?(0,u.jsx)(`div`,{className:`hidden md:block`,children:(0,u.jsx)(Co,{onPreviousClick:()=>C(h-1),onNextClick:()=>C(h+1),prevArrowButtonProps:o,nextArrowButtonProps:a})}):null,r&&y?(0,u.jsx)(wo,{count:e.length,activeIndex:h,onDotClick:C}):null]})},Fo=e=>{let t=e.slides??[];return t.length===0?null:(0,u.jsx)(Po,{...e,slides:t})},Io=e=>[`relative flex h-6 w-6 items-center justify-center border border-secondaryHover`,e.disabled?`opacity-50 cursor-not-allowed`:`cursor-pointer`].join(` `),Lo=({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:Io(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}`))})]})})},Ro=({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]}),zo=({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]})}),Bo=({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)(Xa,{icon:$a,className:`h-4 w-4 -rotate-45 text-secondary`})})}):null]}),Vo=({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]})}),Ho=({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,Uo=({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)(q,{onCardClick:r,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:o}):o},Wo=({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]})},Go=({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})]})]})}),Ko=({question:e,answer:t,initiallyOpen:n=!1})=>{let[r,i]=(0,c.useState)(n),a=(0,c.useId)();return(0,u.jsx)(q,{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}`))})]})]})},Jo=({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]})})},Yo=[{key:`lrv`,code:`LRV`,iconName:`fa-sun`},{key:`ral`,code:`RAL`,iconName:`fa-palette`},{key:`ncs`,code:`NCS`,iconName:`fa-swatchbook`}],Xo=e=>e!=null&&String(e).trim().length>0,Zo=({colourMatching:e})=>{let t=Yo.map(t=>({...t,value:e?.[t.key]})).filter(e=>Xo(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},Qo=e=>[`h-9 w-9 border-2 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),$o=({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:Qo(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:Qo(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]})]})},es=/^(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?$/,ts=new Intl.DateTimeFormat(`en-US`,{month:`long`,day:`numeric`,year:`numeric`,timeZone:`UTC`}),ns=e=>{let t=es.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)))},rs=e=>{let t=ns(e);if(t)return t;let n=new Date(e);return Number.isNaN(n.getTime())?null:n},is=e=>{let t=e?.trim();if(!t)return``;let n=rs(t);return n?ts.format(n):t},as=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`,os=({layoutVariant:e,mediaType:t,imageSrc:n,imageAlt:r,videoEmbedUrl:i,videoTitle:a,title:o})=>{let s=as(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},ss=({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=is(c),y=f.trim();return(0,u.jsxs)(`article`,{className:h,children:[(0,u.jsx)(`div`,{className:g,children:os({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]})]})},cs=({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})}})]}),ls=e=>Math.min(Math.max(e,0),100),us={good:`text-saleGreen`,warning:`text-yellow-700`,critical:`text-accent`},ds=({title:e,score:t,scoreLabel:n,status:r=`good`,summary:i,detail:a,ariaLabel:o})=>{let s=ls(t),c=a?.trim()??``,l=us[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]})]})]})},fs={primary:`text-primary`,blue:`text-blue-600`,purple:`text-purple-700`,green:`text-saleGreen`,red:`text-accent`,gray:`text-tertiary`},ps={primary:`text-primary!`,blue:`text-blue-600!`,purple:`text-purple-700!`,green:`text-saleGreen!`,red:`text-accent!`,gray:`text-tertiary!`},ms=({value:e,label:t,detail:n,iconName:r,iconType:i=`fa-solid`,iconAlt:a=``,tone:o=`primary`,ariaLabel:s})=>{let c=n?.trim()??``,l=fs[o],f=ps[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]})},hs={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`}},gs={success:`text-saleGreen`,warning:`text-orange-600`,error:`text-accent`,review:`text-purple-700`,neutral:`text-primary`},_s=({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=hs[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 ${gs[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]})]})})},vs={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`},ys=({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 ${vs[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))})]}),bs=({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]})},xs=e=>e===void 0||e===``?`--`:e,Ss=({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:xs(a)}),(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:xs(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:xs(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:xs(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:xs(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:xs(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})})]})}),Cs=({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)(Ss,{...t,groupId:e,selected:t.recordId===o,selectLabel:c,selectedLabel:l,onSelect:g},t.recordId))})]})},ws=({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})]})}),Ts={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`}},Es=({item:e})=>{let t=Ts[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`})})},Ds=({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)(Es,{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})})]})},Os=(e,t,n)=>Math.min(Math.max(e,t),n),ks=({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=Os(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})]})]})})},As={active:{lineClassName:`border-saleGreen`},degraded:{lineClassName:`border-secondaryActive`},failed:{lineClassName:`border-accent`}},js={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`}},Ms={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`}},Ns={solid:`border-solid`,dotted:`border-dashed`},Ps=({variant:e=`default`,state:t=`active`,checkpointStatus:n=`ok`,checkpointLabel:r,size:i=`default`,lineVariant:a=`solid`})=>{let o=As[t],s=js[n],c=Ms[i],l=Ns[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}`})]})},Fs=[{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`}],Is=[{label:`Flow active`,lineClassName:`border-saleGreen border-solid`},{label:`Degraded`,lineClassName:`border-secondaryActive border-dashed`},{label:`Failed`,lineClassName:`border-accent border-dashed`}],Ls=({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:Fs.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:Is.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))})]})]}),Rs={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`}},zs=({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=Rs[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)(q,{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},Bs={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`}},Vs=({id:e,title:t,description:n,status:r,statusLabel:i,selected:a=!1,onCardClick:o})=>{let s=Bs[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)(q,{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},Hs={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`}},Us=`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbGw9IiNFNUU1RTUiLz4KICA8cmVjdCB4PSIxIiB5PSIxIiB3aWR0aD0iMjk4IiBoZWlnaHQ9IjI5OCIgZmlsbD0iI0YzRjNGMyIgc3Ryb2tlPSIjRDBEMEQwIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBkPSJNNDggMjAzTDExMCAxNDFMMTUzIDE4NEwyMjYgMTExTDI1MiAxMzdWMjUySDQ4VjIwM1oiIGZpbGw9IiNEOEQ4RDgiLz4KICA8Y2lyY2xlIGN4PSIxMDIiIGN5PSI5MSIgcj0iMjYiIGZpbGw9IiNEOEQ4RDgiLz4KICA8dGV4dCB4PSIxNTAiIHk9IjI3OCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iIzdBN0E3QSIgZm9udC1mYW1pbHk9IkFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjE4Ij5JbWFnZSBVbmF2YWlsYWJsZTwvdGV4dD4KPC9zdmc+Cg==`,Ws=({imageSrc:e,imageFallbackSrc:t,imageAlt:n,title:r,brand:i,product:a,decorNumber:o,status:s,onSwatchClick:c})=>{let l=s?Hs[s]:null,f=typeof c==`function`,p=(0,u.jsx)(P,{src:e,fallbackSrc:t,placeholderSrc:Us,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)(q,{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]})]})},Gs=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(` `),Ks=({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:Gs(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})]})]})},qs=({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]})]}),Js={blocking:`Blocking`,recommended:`Recommended`,optional:`Optional`},Ys={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`}},Xs={compact:`space-y-3`,comfortable:`space-y-4`},Zs={compact:`py-1`,comfortable:`rounded-lg border border-borderTertiary p-4`},Qs={compact:`mb-1.5 flex flex-wrap items-center gap-2`,comfortable:`mb-2 flex flex-wrap items-center gap-2`},$s=e=>e===null?``:String(e),ec=e=>{if(e.severity)return e.severity;if(e.required)return`blocking`},tc=e=>e.required||e.severity===`blocking`,nc=e=>$s(e.value).trim()===``,rc=e=>{if(e.trim()===``)return null;let t=Number(e);return Number.isNaN(t)?null:t},ic=e=>{if(!e.validationRegex)return e.state??`neutral`;let t=$s(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`}},ac=e=>{if(tc(e)&&nc(e))return`error`;let t=ic(e);return tc(e)&&t===`neutral`?`valid`:t},oc=({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=ec(e),r=ac(e);if(t===`none`||!n||tc(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:Js[n]});let i=Ys[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=$s(e.value),n=ac(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)(go,{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)(qs,{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)(vo,{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:rc(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:[Zs[i],r].filter(Boolean).join(` `),children:[(0,u.jsxs)(`div`,{className:Qs[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=Xs[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]})},sc={sm:`max-w-md`,md:`max-w-2xl`,lg:`max-w-4xl`},cc=({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 ${sc[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},lc=({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)})})},uc=({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)(lc,{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)}})},dc=`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`,fc=`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`,pc=`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`,mc=`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`,hc=`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`,gc=`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`,_c=`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`,vc=`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`,yc=`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`,bc={formica:dc,hartsonkennedy:hc,trespa:_c,arpa:mc,homapal:gc,fenix:pc,broadview:vc},xc=e=>/^https?:\/\//i.test(e)||e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`),Sc=e=>e.trim().toLowerCase().replace(/\s+/g,``).replace(/[^a-z0-9]/g,``);function Cc(e){if(!e||xc(e))return;let t=Sc(e);return bc[t]?t:void 0}function wc(e,t){return e?xc(e)?e:bc[Sc(e)]??t:t}function Tc(e,t){if(!e)return t;if(xc(e))return e;let n=Sc(e);return n===`formica`?fc:n===`broadview`?yc:bc[n]??t}var Ec=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Dc=e=>{if(!Ec(e))return e;let t=e.value??e.jsonValue;return t===void 0?e:Dc(t)},Oc=(e,t,n=!0)=>{let r=Dc(e);if(typeof r==`string`)return n?r:``;if(!Ec(r))return``;for(let e of t){let t=r[e];if(typeof t==`string`)return t}return``},kc=(e,t)=>{let n=Dc(t);return Ec(n)?`${e}${typeof n.querystring==`string`?n.querystring:``}${typeof n.anchor==`string`?n.anchor:``}`:e},Ac=e=>Oc(e,[`text`,`title`,`label`,`href`,`url`]).trim(),jc=e=>{let t=Oc(e,[`href`,`url`]).trim();return t?kc(t,e):``},Mc=(e,t)=>Oc(e,[`target`],!1).trim()||t,Nc=(e,t)=>Oc(e,[`rel`],!1).trim()||t,Pc=({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=Ac(e.label),r=jc(e.href),a=wc(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)(uc,{ariaLabel:`Customer type`,defaultValue:r,buttonClassName:`aria-checked:font-bold text-secondary`,visualVariant:`brandBar`,onChange:e=>a?.(e),options:[`Commercial`,`Residential`]}):null})]})})},Fc=({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,Ic=e=>[e.title,e.subtitle].filter(Boolean).join(` `),Lc=({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)(q,{ariaLabel:Ic(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,Rc=300,zc=({Countries:e,countries:t,selectedCountry:n,Login:r,Cart:i={hasCart:!1,itemCount:0},showCart:a=!0,showFavorites:o=!0,showLogin:s=!0,searchResultItems:l=[],searchViewAllLabel:d,onSearchClick:f,onSearchChange:p,onSearchSubmit:m,onSearchResultClick:h,onSearchViewAllClick:g,onCartClick:_,onLoginClick:v,onFavoritesClick:y,onCountrySelect:b})=>{let[x,S]=(0,c.useState)(!1),[C,w]=(0,c.useState)(``),T=(0,c.useRef)(!1),E=i.hasCart&&i.itemCount>0,O=e??t??[],k=r.loggedIn?`Log Out`:r.label,A=r.loggedIn?`outline`:`solid`,j=C.trim(),M=l.length>0;return(0,c.useEffect)(()=>{if(!T.current)return;let e=window.setTimeout(()=>{p?.({query:C})},Rc);return()=>{window.clearTimeout(e)}},[p,C]),(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`,x?`w-56 opacity-100`:`w-0 opacity-0`].join(` `),"aria-hidden":!x,children:x?(0,u.jsx)(yo,{id:`top-nav-search`,value:C,placeholder:`Search`,autoComplete:`off`,autoFocus:!0,onChange:e=>{T.current=!0,w(e.target.value)},onBlur:()=>{C.trim()||S(!1)},onKeyDown:e=>{if(e.key===`Enter`&&j){m?.({query:j});return}e.key===`Escape`&&(w(``),S(!1))}}):null}),(0,u.jsx)(D,{iconType:`fa-solid`,iconName:`magnifying-glass`,iconAlt:`Search`,variant:`ghost`,onClick:()=>{if(!x){S(!0),f?.();return}if(j){m?.({query:j});return}S(!1)},"aria-expanded":x,"aria-controls":`top-nav-search`}),x&&M?(0,u.jsx)(`div`,{className:`absolute top-full right-0 z-30 mt-2`,children:(0,u.jsx)(Lc,{id:`top-nav-search-results`,items:l,viewAllLabel:d,onResultClick:e=>{h?.(e),S(!1)},onViewAllClick:()=>{g?.({query:j}),S(!1)}})}):null]}),(0,u.jsx)(`div`,{className:`h-4 border-l my-6`}),(0,u.jsx)(`div`,{className:`my-3`,children:(0,u.jsx)(lo,{countries:O,selectedCountry:n,onCountrySelect:b})}),(0,u.jsxs)(`div`,{className:`my-2 flex items-center space-x-1`,children:[a?(0,u.jsxs)(`div`,{className:`relative`,children:[(0,u.jsx)(D,{iconType:`fa-solid`,iconName:`cart-shopping`,iconAlt:`Cart`,intent:E?`accent`:`primary`,variant:`ghost`,onClick:_}),E?(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:i.itemCount}):null]}):null,o?(0,u.jsx)(D,{iconType:`fa-regular`,iconName:`heart`,iconAlt:`Favorites`,variant:`ghost`,onClick:y}):null]}),s?(0,u.jsx)(`div`,{children:(0,u.jsx)(D,{className:`my-3 rounded-md p-4`,size:`sm`,intent:`accent`,variant:A,label:k,onClick:v})}):null]})},Bc=`__mobile-menu-open__`,Vc=({NavMenuWithSubItems:e=[],countries:t,selectedCountry:n,Login:r,Cart:i,showCart:a=!0,showFavorites:o=!0,showLogin:s=!0,Logo:l,searchResultItems:d,searchViewAllLabel:f,onLogoClick:p,onNavItemClick:m,onMegaMenuLinkClick:h,onSearchClick:g,onSearchChange:_,onSearchSubmit:v,onSearchResultClick:y,onSearchViewAllClick:b,onCartClick:x,onLoginClick:S,onFavoritesClick:C,onCountrySelect:w})=>{let T=(0,c.useRef)(null),[E,O]=(0,c.useState)(null),[k,j]=(0,c.useState)(null),M=k!==null,N=e.find(e=>e.id===E),P=t??[],ee=r??{label:`Log In`,href:`/login`},te={hasCart:i?.hasCart??!1,itemCount:i?.itemCount??0},F=`Formica`,ne=l?.src??F,I=Cc(ne),L=Tc(F)??``,R=Tc(ne,L)??L,z=l?.alt??`${ne} Logo`,B=I===`broadview`?`w-36 md:w-44`:`w-24`,V=I===`broadview`?`h-12 md:h-14`:`h-7 md:h-10`,H=l?.containerClassName??B,U=l?.className??V;(0,c.useEffect)(()=>{if(!E)return;let e=e=>{T.current?.contains(e.target)||O(null)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[E]);let re=()=>{j(null)},W=(e,t={})=>{t.closeMobile&&re(),O(null),m?.(e)},G=(e,t)=>{if(e.subcategories?.length&&!e.href){O(E===t?null:t);return}W(e)},ie=(e,t={})=>{O(null),t.closeMobile&&re(),h?.(e)},K=e=>{j(t=>t===e?Bc:e)};return(0,u.jsxs)(`header`,{ref:T,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 ${H} hover:bg-secondary`,onClick:p,"aria-label":`Go to home page`,children:(0,u.jsx)(A,{src:R,alt:``,className:U,quality:90})}),(0,u.jsxs)(`div`,{className:`flex items-center gap-8`,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:g}),a?(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${te.itemCount?` (${te.itemCount})`:``}`,onClick:x,children:te.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:te.itemCount}):null}):null,(0,u.jsx)(D,{variant:`ghost`,iconType:`fa-solid`,iconName:M?`xmark`:`bars`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":M?`Close menu`:`Open menu`,onClick:()=>{j(e=>e===null?Bc:null)},"aria-expanded":M})]})]}),M?(0,u.jsx)(`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=k===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:()=>K(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:()=>ie(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:()=>W(e,{closeMobile:!0})},t)})}):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 ${H} hover:bg-secondary!`,onClick:p,"aria-label":`Go to home page`,children:(0,u.jsx)(A,{src:R,alt:z,className:U,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:()=>G(e,t),active:E===t},t)})}),(0,u.jsx)(zc,{Countries:P,selectedCountry:n,Login:ee,Cart:te,showCart:a,showFavorites:o,showLogin:s,searchResultItems:d,searchViewAllLabel:f,onSearchClick:g,onSearchChange:_,onSearchSubmit:v,onSearchResultClick:y,onSearchViewAllClick:b,onCartClick:x,onLoginClick:S,onFavoritesClick:C,onCountrySelect:w})]})]}),(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`,E?`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)(Fc,{activeItem:N,onMegaMenuLinkClick:ie})})})})]})},Hc=({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},Uc=({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)]})})})})},Wc=({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=Ac(e.src),i=Ac(e.alt),a=e.label?Ac(e.label):``,o=e.alt===void 0||e.alt===null?a:i,s=wc(r,wc(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=jc(e.href);if(!l)return c;let d=Mc(e.href,e.target)??`_self`;return(0,u.jsx)(`a`,{href:l,target:d,rel:Nc(e.href,e.rel)??(d===`_blank`?`noreferrer noopener`:void 0),className:`inline-flex`,children:c})},Gc=({primaryLogo:e,phoneLine:t,socials:n=[]})=>{let r=t?Ac(t):``;return(0,u.jsxs)(`div`,{className:`space-y-6`,children:[(0,u.jsx)(Wc,{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=Ac(e.label),n=jc(e.href),r=e.iconSrc?Ac(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)(Xa,{icon:e.faIcon,className:`w-4 h-4 text-black`}):null]},`${t}-${n}`):null})}):null]})},Kc=({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=Ac(e.label),i=jc(e.href),a=Mc(e.href,e.target)??`_self`,o=Nc(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})},qc=({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=Ac(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)(Kc,{item:e})},`${n}-${Ac(e.label)}-${t}`))})]},`${n}-${t}`)})})}),Jc=({links:e=[],utilityLink:t,disclaimerLines:n=[],copyrightLine:r})=>{let i=r?Ac(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)(Kc,{item:e,variant:`legal`},`${Ac(e.label)}-${t}`)),t?(0,u.jsx)(`div`,{className:`ml-auto`,children:(0,u.jsx)(Kc,{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:Ac(e)},t)),i?(0,u.jsx)(d,{variant:`standard`,className:`text-white/70 text-xs leading-relaxed`,children:i}):null]}):null]})},Yc=({affiliateLogos:e=[],parentLogo:t,phoneLine:n})=>{let r=n?Ac(n):``;if(!e.length&&!t&&!r)return null;let i=t?(0,u.jsx)(`div`,{className:`ml-6 shrink-0`,children:(0,u.jsx)(Wc,{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)(Wc,{img:e,size:`affiliate`},`${e.label?Ac(e.label):``}|${Ac(e.alt)}|${jc(e.href)}|${Ac(e.src)}|${t}`))}),i,a]})})},Xc=({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)(Gc,{...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)(qc,{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=Ac(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)(Kc,{item:e,variant:`mobile`})},`${n}-${Ac(e.label)}-${t}`))})]},`${n}-${t}`)})})]}),(0,u.jsx)(Yc,{affiliateLogos:e.affiliateLogos,parentLogo:n,phoneLine:a?e.phoneLine:void 0}),(0,u.jsx)(Jc,{...i})]})})},Zc=(...e)=>e.filter(Boolean).join(` `),Qc=({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:Zc(`relative`,i),children:[(0,u.jsx)(A,{src:c,alt:t,className:a,quality:s}),(0,u.jsx)(`div`,{className:o,children:n})]})})},$c=({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)(Qc,{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)(go,{...r,value:f,onChange:g})}):null,(0,u.jsx)(`div`,{className:`w-full md:flex-1`,children:(0,u.jsx)(yo,{...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`})]})]})})},el=({imageSrc:e,imageAlt:t=`Call To Action Hero`,heading:n,subheading:r,body:i,eyebrow:a,ctas:o=[]})=>(0,u.jsx)(Qc,{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)(zo,{heading:n,subheading:r,body:i,eyebrow:a,ctas:o})}),tl=({imageSrc:e,imageAlt:t=`Featured article banner`,heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})=>(0,u.jsx)(Qc,{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)(Bo,{heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})}),nl=({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)`}})]})})},rl=e=>e.id||e.href||e.label,il=({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=rl})=>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)(Xa,{icon:eo,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)(Xa,{icon:Qa,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)(no,{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,al=4,ol=e=>{e.forEach(e=>{if(!e)return;let t=new window.Image;t.decoding=`async`,t.src=e})},sl=({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+al<p.length,b=()=>h(e=>Math.max(0,e-1)),x=()=>h(e=>Math.min(Math.max(p.length-al,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(()=>{ol(p.slice(m,m+al*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)(nl,{items:f,value:s??f[0]?.label??``,onChange:e=>l(e),className:`mb-2`,durationMs:700}),(0,u.jsx)(il,{items:p,startIndex:m,desktopVisibleCount:al,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})]})]})})})},cl=e=>e===1?`md:grid-cols-1`:e===2?`md:grid-cols-2`:`md:grid-cols-3`,ll=(e,t)=>e===`vertical`&&t===2?`grid-cols-2`:e===`vertical`&&t===3?`grid-cols-3`:`grid-cols-1`,ul=e=>e===`underBanner`?`mt-10 md:mt-16`:``,dl=({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=cl(n.length),f=ll(n[0]?.cardStyle,n.length);return(0,u.jsx)(`section`,{className:`flex justify-center ${ul(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)(ro,{...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]})]})})},fl=({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)(Jo,{...e},`${e.title}-${t}`))})]})}),pl=({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)($o,{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]})},ml=(e,t,n)=>Math.max(t,Math.min(n,e)),hl=e=>[`h-12 w-12 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),gl=({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`,className:l=``})=>{let[f,p]=c.default.useState(()=>ml(e,t,n));c.default.useEffect(()=>{p(ml(e,t,n))},[e,t,n]);let m=e=>{let r=ml(e,t,n);p(r),a?.(r)},h=()=>m(f-1),g=()=>m(f+1),_=f>t,v=f<n;return(0,u.jsxs)(`div`,{className:[`w-full`,l].join(` `),children:[(0,u.jsxs)(`div`,{className:`flex items-stretch gap-4`,children:[(0,u.jsxs)(`div`,{className:`flex 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:!_,onClick:h,className:hl(_)}),(0,u.jsx)(`div`,{className:`flex items-center justify-center min-w-10`,children:(0,u.jsx)(d,{as:`span`,variant:`free`,children:f})}),(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:hl(v)})]}),(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:(0,u.jsx)(D,{type:`button`,intent:`accent`,onClick:()=>i(f),className:`h-12 w-full justify-center`,children:(0,u.jsx)(d,{as:`span`,variant:`free`,children:s})})})]})},_l=({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))})]})},vl=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,actionMode:P=`cart`,contactActions:ee,onAddToWishlist:te,onAddToCart:F,onContactActionClick:ne,mobileMediaSlot:I}=e,L=c.map(e=>({label:e})),R=P===`cart`&&N&&L.length>0,z=P===`contact`&&!!ee,B=R&&L.length>1,V=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?.()},H=(e,t)=>n=>{e&&O&&(n.preventDefault(),O(e,t))};return(0,u.jsxs)(`div`,{className:[`w-full`,z?`md:relative md:aspect-square md:overflow-hidden`:``].join(` `),children:[(0,u.jsxs)(`div`,{className:[z?`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)(Zo,{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!`})]}),I?(0,u.jsx)(`div`,{className:`md:hidden mb-10`,children:I}):null,B?(0,u.jsx)(`div`,{className:`mb-5`,children:(0,u.jsx)(nl,{items:L,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`,R?`md:min-h-[32rem]`:``].join(` `),children:[R&&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)(_l,{items:p,value:_??void 0,onChange:V(p)})]}):null,R&&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)(_l,{items:m,value:v??void 0,onChange:V(m)})]}):null,R&&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)(_l,{items:h,value:y??void 0,onChange:V(h)})]}):null,R&&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)(_l,{items:g,value:b??void 0,onChange:V(g)})]}):null,R&&l===`Sample`?(0,u.jsx)(d,{as:`p`,variant:`caption`,children:`Samples are available in 2" x 3" and 3" x 5".`}):null,R&&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:H(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:H(T,{kind:`returnPolicy`}),children:E}):null]})]}):null,R&&l===`Buy Now`&&k?(0,u.jsx)(d,{as:`p`,variant:`h3`,className:`mt-1`,children:k}):null]}),R?(0,u.jsx)(`div`,{children:(0,u.jsx)(gl,{initialQuantity:A,minQuantity:j,maxQuantity:M,onAddToWishlist:te??(()=>{}),onAddToCart:F??(()=>{}),onQuantityChange:x,cartLabel:l===`Sample`?`Add Sample to Cart`:void 0})}):null,R&&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:H(T,{kind:`returnPolicy`}),children:E}):null]}):null]})]}),z&&ee?(0,u.jsx)(`div`,{className:`md:absolute md:inset-x-0 md:bottom-0`,children:(0,u.jsx)(oe,{actions:ee,onActionClick:ne})}):null]})},yl=(e,t)=>Math.max(0,Math.min(e,t-1)),bl=({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(()=>yl(t,p||1)),[_,v]=c.default.useState(()=>yl(t,p||1));if(c.default.useEffect(()=>{p>0&&(g(e=>yl(e,p)),v(e=>yl(e,p)))},[p]),p===0)return null;let y=t=>{let n=yl(t,p);g(n),a?.(n,e[n])},b=e=>{v(n?(e+p)%p:yl(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))})]})]})},xl=(e,t)=>Math.max(0,Math.min(e,t-1)),Sl=e=>typeof e==`string`?e.replace(/^http:\/\//i,`https://`):``,Cl=({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(()=>xl(t,s||1)),[p,m]=c.default.useState(()=>new Set);if(c.default.useEffect(()=>{s>0&&f(e=>xl(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(Sl(e)))&&r?.src?r:{src:e??``,alt:t??``},_=g(h?.image?.src,h?.image?.alt),v=Sl(_.src),y=_.alt??``,b=e=>{!e||r?.src===e||m(t=>{let n=new Set(t);return n.add(e),n.add(Sl(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)(bl,{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=Sl(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})})]})},wl=({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)(Cl,{slides:r,initialIndex:i,text:a,fallbackImage:n})})},Tl=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},El=(e,t)=>!!(t&&e.some(e=>(e.value??e.id)===t)),Dl=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),[])},Ol=(e,t)=>!e||!t?null:`${e}x${t}`,kl=(e,t,n)=>Math.max(t,Math.min(n,e)),Al=(e,t=`USD`)=>new Intl.NumberFormat(`en-US`,{style:`currency`,currency:t}).format(e),jl=e=>!!e?.length,Ml=(e,t)=>jl(e)&&jl(t),Nl=(e=[])=>e.some(e=>!!e.sku&&!!e.rangeId&&!!e.grade&&!!e.texture&&!!e.widthIn&&!!e.lengthIn),Pl=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,actionMode:S=`cart`,contactActions:C,onAddToWishlist:w,onAddToCart:T,onContactActionClick:E,availabilityHref:D,availabilityLabel:O=`View full product availability and information`,returnPolicyHref:k,returnPolicyLabel:A=`View return policy`,notReturnableText:j=`This item is not returnable.`,onPurchaseInfoLinkClick:M}=e,N=Array.isArray(f)&&f.length?f:[`Sample`,`Buy Now`],P=m?.Sample,ee=m?.[`Buy Now`],te=P?.productOptions??h??[],F=P?.sizeOptions??g??[],ne=ee?.productOptions??h??[],I=Ml(te,F),L=jl(ne)&&Nl(_),R=N.filter(e=>e===`Sample`?I:e===`Buy Now`?L:!0),z=R[0]??`Sample`,[B,V]=c.default.useState(R.includes(p)?p:z);c.default.useEffect(()=>{if(!R.length){V(`Sample`);return}R.includes(B)||V(z)},[B,R,z]);let H=m?.[B],U=!!H,re=H?.minQuantity??b,W=H?.maxQuantity??x,G=H?.productOptions??(U?[]:h)??[],ie=B===`Buy Now`,[K,ae]=c.default.useState(()=>({product:Tl(G),grade:null,texture:null,size:null})),oe=c.default.useRef(!1),q=El(G,K.product)?K.product:Tl(G),se=ie&&q?_.filter(e=>e.rangeId===q):[],ce=Dl(se.map(e=>({value:e.grade,label:e.grade}))),J=ie?ce:H?.gradeOptions??[],le=El(J,K.grade)?K.grade:Tl(J),ue=le?se.filter(e=>e.grade===le):se,de=Dl(ue.map(e=>({value:e.texture,label:e.finish||e.texture}))),fe=ie?de:H?.textureOptions??[],Y=El(fe,K.texture)?K.texture:Tl(fe),pe=Y?ue.filter(e=>e.texture===Y):ue,me=new Map((H?.sizeOptions??g??[]).map(e=>[e.value??e.id,e.label])),he=Dl(pe.map(e=>{let t=Ol(e.widthIn,e.lengthIn)??void 0;return{value:t,label:t?me.get(t)??t:void 0}})),ge=ie?he:H?.sizeOptions??(U?[]:g)??[],_e=El(ge,K.size)?K.size:Tl(ge);c.default.useEffect(()=>{if(!oe.current){oe.current=!0;return}ae({product:Tl(G),grade:Tl(J),texture:Tl(fe),size:Tl(ge)})},[B]),c.default.useEffect(()=>{ae(e=>{let t=e.product&&G.some(t=>(t.value??t.id)===e.product)?e.product:Tl(G),n=e.grade&&J.some(t=>(t.value??t.id)===e.grade)?e.grade:Tl(J),r=e.texture&&fe.some(t=>(t.value??t.id)===e.texture)?e.texture:Tl(fe),i=e.size&&ge.some(t=>(t.value??t.id)===e.size)?e.size:Tl(ge);return e.product===t&&e.grade===n&&e.texture===r&&e.size===i?e:{product:t,grade:n,texture:r,size:i}})},[G,J,fe,ge]);let X=c.default.useMemo(()=>{if(B!==`Buy Now`)return null;let e={product:q,grade:le,texture:Y,size:_e},t=_.filter(t=>{let n=Ol(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},[B,_,q,le,Y,_e]),ve=B!==`Buy Now`||!!X,ye=B===`Buy Now`&&X?X.price?.label??Al(X.price?.value??0,v):``,be=B===`Buy Now`&&X?X.price?.value??0:0,xe=B===`Buy Now`?X?.sku??t:t,[Se,Ce]=c.default.useState(()=>kl(y,re,W)),we=c.default.useRef(B);c.default.useEffect(()=>{Ce(kl(y,re,W))},[y,re,W]),c.default.useEffect(()=>{we.current!==B&&(we.current=B,Ce(re))},[B,re]);let Te=(e,t)=>(t??[]).map(t=>{let n=t.value??t.id;return{id:t.id,label:t.label,disabled:t.disabled,value:n,active:K[e]===n,onOptionClick:()=>{t.disabled||(ae(t=>({...t,[e]:n})),t.onOptionClick?.(t.id))}}}),Ee={sku:xe,title:r,decor:n,description:i,colourMatching:a,patternRepeat:o,onDownloadSwatch:s,onDownloadFullSheet:l,tabs:R,activeTab:B,onTabChange:V,productOptions:Te(`product`,G),gradeOptions:Te(`grade`,J),textureOptions:Te(`texture`,fe),sizeOptions:Te(`size`,ge),availabilityHref:D,availabilityLabel:O,returnPolicyHref:k,returnPolicyLabel:A,notReturnableText:j,priceLabel:ye,initialQuantity:Se,minQuantity:re,maxQuantity:W,showCartActions:R.includes(B)&&ve,actionMode:S,contactActions:C,selectedProduct:q,selectedGrade:le,selectedTexture:Y,selectedSize:_e,onAddToWishlist:()=>{w?.({sku:xe,decor:n})},onAddToCart:e=>{if(B===`Buy Now`&&!X)return;let t={type:B,sku:xe,decor:n,product:q,grade:le,texture:Y,size:_e,quantity:e,priceValue:B===`Buy Now`?be:0,priceLabel:B===`Buy Now`?ye:`$0.00`,currency:v,bigCommerceProductId:X?.bigCommerceProductId};T?.(t)},onContactActionClick:e=>{E?.({...e,sku:xe,decor:n,title:r,activeTab:B,product:q,grade:le,texture:Y,size:_e})},onQuantityChange:e=>Ce(e),onPurchaseInfoLinkClick:M,mobileMediaSlot:(0,u.jsx)(wl,{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)(wl,{carousel:d})}),(0,u.jsx)(vl,{...Ee})]})})})},Fl=({imageSrc:e,imageAlt:t=`Standard Copy Hero`,heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})=>(0,u.jsx)(Qc,{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)(Vo,{heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})})}),Il=({categoryText:e,imageSrc:t,imageAlt:n=`Article Header`,tags:r=[],onTagClick:i})=>(0,u.jsx)(Qc,{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)(Ro,{categoryText:e,tags:r,onTagClick:i})}),Ll=({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)(Fo,{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`})]})})},Rl=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})})},zl=({html:e=``,className:t=``})=>e?(0,u.jsx)(`div`,{className:`html-block ${t}`,dangerouslySetInnerHTML:{__html:e}}):null,Bl={left:`text-left`,center:`text-center`,right:`text-right`},Vl={small:`text-xl md:text-4xl`,medium:`text-2xl md:text-4xl`,large:`text-3xl md:text-5xl`},Hl=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=Bl[n],p=Bl[r],m=l?`mt-10 md:mt-20`:``,h=o?`mb-1`:`mb-4 md:mb-6`,g=`${p} ${Vl[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)(zl,{html:a,className:f}):null]})},Ul=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)(Hl,{...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)(Hl,{...a,body:t})})]})},Wl=({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)(bl,{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)(io,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,title:e.title,brand:e.brand,decorNumber:e.decorNumber,onProductClick:a?()=>a(e):void 0},e.id)})]})},Gl=({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)(ss,{...e})},`${e.title}-${t}`))})]})}):null,Kl=({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)(Ko,{question:e.question,answer:e.answer,initiallyOpen:e.initiallyOpen},e.id))})]})}),ql=(e,t)=>e.id??[e.label,e.imageSrc,t].join(`-`),Jl=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},Yl=({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)(z,{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)(Uo,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,onCardClick:t?()=>t({item:e,index:n}):void 0},ql(e,n)))})}):(0,u.jsx)(`section`,{className:`px-4 py-20 md:px-4`,children:Jl(r).map((e,n,r)=>{let i=e.columns===3;return(0,u.jsx)(z,{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)(Uo,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,aspectRatio:i?`compact`:`video`,onCardClick:t?()=>t({item:e,index:n}):void 0},ql(e,n)))},`image-overlay-grid-row-${n}`)})})},Xl={2:`md:grid-cols-2`,3:`md:grid-cols-3`,4:`md:grid-cols-4`},Zl=({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)(z,{columns:1,gap:`lg`,gridClassName:Xl[n],children:e.map(e=>(0,u.jsx)(`div`,{"aria-current":e.id===t?`true`:void 0,className:`h-full`,children:(0,u.jsx)(co,{location:e,stockedProductsLabel:r,preferredLabel:i,websiteLabel:a,directionsLabel:o,emailLabel:s,onWebsiteClick:c,onDirectionsClick:l,onPhoneClick:d,onEmailClick:f})},e.id))}):null,Ql=({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)(Vs,{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)(Vs,{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]}),$l=e=>(0,u.jsx)(D,{variant:`ghost`,size:`md`,...e}),eu={left:`text-left`,center:`text-center`,right:`text-right`},tu={left:`justify-start text-left`,center:`justify-center text-center`,right:`justify-end text-right`},nu={xs:`w-24`,sm:`w-32`,md:`w-48`,lg:`w-64`,xl:`w-80`},ru=e=>e==null||e===``?`-`:String(e),iu=e=>e==null?``:String(e),au=e=>e==null||String(e).trim()===``,ou=e=>e.reduce((e,t)=>(e[t.id]={...t,values:{...t.values}},e),{}),su=({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)(ou(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(ou(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)&&au(t.values[e.id]))},T=(e,t)=>{let n=(m[e.id]??e).values[t.id];return au(n)?t.placeholder??`-`:t.editor===`select`?t.options?.find(e=>e.value===String(n))?.label??ru(n):ru(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&&au(a.values[t.id]);return s?t.editor===`select`?(0,u.jsx)(`div`,{"data-data-report-cell-editor":`true`,children:(0,u.jsx)(go,{id:`${n}-editor`,name:t.id,ariaLabel:`${t.label} for row ${e.id}`,value:iu(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:iu(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:nu[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 ${nu[e.width??`md`]} ${eu[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 ${nu[t.width??`md`]} ${eu[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 ${eu[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 ${tu[r]}`)},n)}),(0,u.jsx)(`td`,{className:`whitespace-nowrap px-4 py-3 text-center`,children:(0,u.jsx)($l,{"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)($l,{"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})})]})},cu={lat:39.9612,lng:-82.9988},lu=()=>window,uu=()=>lu().google,du=e=>{let t=lu();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)},fu=({center:e,locations:t,selectedLocationId:n})=>{let r=t.find(e=>e.id===n);return e??r?.coordinates??t[0]?.coordinates??cu},pu=({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(()=>fu({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`),du(e).then(()=>{t&&g(`loaded`)}).catch(()=>{t&&g(`error`)}),()=>{t=!1}},[e]),c.default.useEffect(()=>{if(m!==`loaded`||!l.current)return;let e=uu();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=uu();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]})},mu=({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})}),hu=({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})]})},gu=({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})]})}),_u=({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)(ks,{...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)(gu,{message:s,iconName:`magnifying-glass`}):null,o===`error`?(0,u.jsx)(gu,{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]})},vu={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`}},yu={match:`text-saleGreen`,mismatch:`text-accent`,neutral:`text-tertiary`},bu=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 ${yu[n]}`,children:t}):null]})]},e.id)},xu=(e,t,n)=>{let r=e.description?.trim()??``,i=e.actionHelpText?.trim()??``,a=vu[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(bu)}),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]})},Su=({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=vu[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:[xu(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))})]})},Cu=({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})]}),wu=({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)(Cu,{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}`))})]})})},Tu=({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})})]})})},Eu=({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)(Tu,{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)(Lo,{label:e.label,options:e.options,onOptionSelect:l}),e.type===`checkbox`&&(0,u.jsx)(wu,{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)(vo,{id:e,hasError:r,...s})]}),Du=[{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`}],Ou=[{id:`createAccount`,label:`Create Account`},{id:`signIn`,label:`Sign In`}],ku=({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}),Au=({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??Du,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)(lc,{ariaLabel:`Login mode`,layoutVariant:`equalWidth`,items:Ou,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)(ku,{htmlFor:`account-access-user-type`,label:`I am a*`,errorMessage:w.userType}),(0,u.jsx)(go,{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})]})]})},ju=({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)})})},Mu=({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)(Zo,{colourMatching:e.colourMatching})]}):null,Nu=({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,Pu=(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},Fu=({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:Pu(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:Pu(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,Iu=[{label:`Product Details`,value:`details`},{label:`Texture`,value:`texture`},{label:`Size & Grade Guide`,value:`sizeAndGrade`}],Lu=(e,t)=>e?.length?t&&e.some(e=>e.id===t)?t:e[0].id:``,Ru=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(Lu(e,n));if(c.default.useEffect(()=>{s(Lu(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)??[];Ru([...new Set(t)])},[e]),!e?.length)return null;let l=e.find(e=>e.id===o)??e[0],d=e=>Iu.find(t=>t.value===e)?.label??Iu[0].label,f=e=>Iu.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)(nl,{items:Iu.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)(ju,{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)(Mu,{data:l.details});case`texture`:return(0,u.jsx)(Nu,{data:l.texture});case`sizeAndGrade`:return(0,u.jsx)(Fu,{data:l.sizeAndGrade,selectedGrade:r});default:return null}})()})]})})]})},Bu=({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)(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)(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 Vu(e=[]){return e.reduce((e,t)=>(e[t.id]=t,e[t.value]=t,e),{})}var Hu=(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})),Uu=(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}))},Wu=(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)},[])},Gu=(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},[])},Ku=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??[]})),qu=e=>e?`Grade ${e}`:``,Ju=({breadcrumbsProps:e,productData:t,onDownloadSwatch:n,onDownloadFullSheet:r,onAddToWishlist:i,onAddToCart:a,onContactActionClick:o,onProductNavigate:s,cartFlyoutProps:l})=>{let d=t??{},f=d.images??[],p=d.product,m=d.content,h=d.optionSets,g=d.purchase,_=d.ranges??[],v=d.standardCopyHero,y=d.featuredProducts??[],b=p?.colourMatching,x=h?.ranges??[],S=h?.textures??[],C=h?.sizes??[],w=h?.sampleSizes??[],T=Vu(x),E=Vu(S),D=Vu(C),O=Vu(w),k=g?.tabOptions?.Sample??{},A=g?.tabOptions?.[`Buy Now`]??{},j=g?.defaults??{},M=Uu(d.variants??[]),N=d.variants?.[0]?.grade??null,[P,ee]=c.default.useState(qu(N));c.default.useEffect(()=>{ee(qu(N))},[N]);let te=M.map(e=>{let t=qu(e.value);return{...e,active:t===P,onOptionClick:()=>ee(t)}}),F=k.productOptionIds,ne=F?.filter(e=>!!T[e])??[],I=F?.length?ne:Gu(d.variants??[]),L=k.textureOptionIds,R=L?.filter(e=>!!E[e])??[],z=L?.length?Hu(E,R,j.texture??null):Wu(d.variants??[],j.texture??null),B=A.productOptionIds,V=B?.filter(e=>!!T[e])??[],H=B?V:x.map(e=>e.id),U={sku:p?.sku??``,decor:p?.decor??``,title:p?.title??``,description:p?.description??``,colourMatching:b,patternRepeat:p?.patternRepeat??``,variants:d.variants??[],onDownloadSwatch:()=>n?.(d),onDownloadFullSheet:()=>r?.(d),carousel:{slides:f.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:m?.sampleDisclaimer??``,fallbackImage:{src:Us,alt:`Product image unavailable`}},tabs:h?.purchaseTabs??[`Sample`,`Buy Now`],initialTab:m?.defaultPurchaseTab??`Buy Now`,tabOptions:{Sample:{minQuantity:k.minQuantity,maxQuantity:k.maxQuantity,productOptions:Hu(T,I,m?.defaultRangeId??x[0]?.value??null),gradeOptions:[],textureOptions:z,sizeOptions:Hu(O,k.sizeOptionIds??[],null)},"Buy Now":{minQuantity:A.minQuantity,maxQuantity:A.maxQuantity,productOptions:Hu(T,H,m?.defaultRangeId??x[0]?.value??null),gradeOptions:te,textureOptions:Hu(E,A.textureOptionIds??[],j.texture??null),sizeOptions:Hu(D,A.sizeOptionIds??[],j.size??null)}},productOptions:Hu(T,H,m?.defaultRangeId??x[0]?.value??null),gradeOptions:te,selectedGrade:P,textureOptions:Hu(E,A.textureOptionIds??[],j.texture??null),sizeOptions:Hu(D,A.sizeOptionIds??[],j.size??null),availabilityHref:m?.availabilityHref??`#`,availabilityLabel:m?.availabilityLabel??`View full product availability and information`,returnPolicyHref:m?.returnPolicyHref??`#`,returnPolicyLabel:m?.returnPolicyLabel??`View return policy`,notReturnableText:m?.notReturnableText??`This item is not returnable.`,priceLabel:p?.price?.label??``,priceValue:p?.price?.value??0,currency:p?.currency??`USD`,initialQuantity:j.quantity??1,minQuantity:j.minQuantity??1,maxQuantity:j.maxQuantity??99,actionMode:g?.actionMode??`cart`,contactActions:g?.contactActions,onAddToWishlist:e=>{i?.(e,d)},onAddToCart:e=>{a?.(e,d)},onContactActionClick:e=>{o?.(e,d)},onPurchaseInfoLinkClick:s},re={ranges:_.map(e=>{let t=e.sizeAndGrade?.definitions??[],n=Ku(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:m?.defaultInfoTab??`details`,defaultRangeId:m?.defaultRangeId??_[0]?.id??``,selectedGrade:P,className:``},W=e=>{let t=e.href||(e.rangeCode&&e.decorNumber?`/products/${e.rangeCode.toUpperCase()}/${e.decorNumber.toUpperCase()}`:``);t&&s?.(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)(Uc,{...e}),(0,u.jsx)(Pl,{...U}),(0,u.jsx)(zu,{...re}),(0,u.jsx)(`div`,{className:`hidden md:block`,children:v&&(0,u.jsx)(Fl,{imageSrc:v.imageSrc??``,imageAlt:v.imageAlt??`Visualize This Product`,heading:v.heading??`Visualize This Product`,subheading:v.subheading??``,body:v.body??``,linkLabel:v.linkLabel??`See In Situation`,linkHref:v.linkHref??`#`})}),y.length>0&&(0,u.jsx)(Wl,{title:`Trending Products`,items:y,onItemClick:W})]}),l?(0,u.jsx)(Bu,{...l}):null]})},Yu=({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)})})})},Xu=({standardCopyHeroProps:e,multiButtonBarProps:t,featuredArticleBannerProps:n,featureCardCollectionProps:r})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Fl,{...e}),(0,u.jsx)(Yu,{...t}),(0,u.jsx)(tl,{...n}),(0,u.jsx)(dl,{...r})]}),Zu=(e,t)=>e.id??[e.decorNumber,e.title,e.brand,e.product,e.status??`standard`,t].join(`-`),Qu=({swatches:e=[],onSwatchClick:t})=>(0,u.jsx)(z,{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)(Ws,{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},Zu(e,n))})}),$u=e=>e.flatMap(e=>e.options.filter(e=>e.checked).map(e=>({id:e.id,label:e.label}))),ed=(e,t,n)=>e.map(e=>({...e,options:e.options.map(e=>e.id===t?{...e,checked:n}:e)})),td=e=>e.map(e=>({...e,options:e.options.map(e=>({...e,checked:!1}))})),nd=e=>e.tabs?.selectedValue??e.tabs?.options[0]?.value??``,rd=e=>e.filters.sort?.value??e.filters.sort?.options?.[0]?.value??e.filters.sort?.options?.[0]?.label??``,id=e=>e.filters.search?.value??``,ad=e=>e.filters.panel?e.filters.toggleButton?.initiallyVisible??!0:!1,od=({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(()=>ad(e)),m=e.filters.panel?.sections??[],h=nd(e),g=rd(e),_=id(e),v=e.tabs,y=e.filters.sort,b=e.filters.search,x=e.filters.panel,S=!!(x||y||b),C=c.default.useMemo(()=>$u(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(ed(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`checkbox`})},[j,m]),N=c.default.useCallback(e=>{j(ed(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`colorSwatch`})},[j,m]),P=c.default.useCallback(()=>{j(td(m),{action:`clear-all`})},[j,m]);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)(Fl,{...e.hero,onLinkClick:()=>n?.(e)}),v?(0,u.jsx)(Yu,{options:v.options,selectedValue:h,onSelect:t=>{r?.(t,e)}}):null,S?(0,u.jsxs)(uo,{barClassName:e.filters.barClassName,children:[x?(0,u.jsx)(fo,{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)(_o,{className:`hidden md:block md:w-70`,dropdownProps:{...y,value:g,onChange:t=>{i?.(t.target.value,e)}}}):null,b?(0,u.jsx)(xo,{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)(Eu,{header:T,headerIcon:x.headerIcon,resetLabel:E,applyFiltersLabel:D,sections:m,appliedOptions:{header:O,clearAllLabel:E,optionsList:C,onRemoveOption:e=>{j(ed(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)(Eu,{header:T,headerIcon:x.headerIcon,resetLabel:E,applyFiltersLabel:D,sections:m,appliedOptions:{header:O,clearAllLabel:E,optionsList:C,onRemoveOption:e=>{j(ed(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)(Qu,{swatches:e.decorGrid.swatches,onSwatchClick:(t,n)=>s?.(t,n,e)})})]})]})},sd=({images:e=[],onImageClick:t})=>(0,u.jsx)(z,{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)(q,{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}`))}),cd=({standardCopyHeroProps:e,multiButtonBarProps:t,filterBarProps:n,dropdownFilterPropsList:r,imageGridProps:i})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Fl,{...e}),(0,u.jsx)(Yu,{...t}),(0,u.jsx)(uo,{...n,children:r.map(e=>(0,u.jsx)(_o,{...e},e.dropdownProps.id))}),(0,u.jsx)(sd,{...i})]}),ld=({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)(Go,{title:e.title,details:e.details,iconName:e.iconName,onDocumentClick:e.onDocumentClick},e.id))})]})}),ud=({standardCopyHeroProps:e,multiButtonBarProps:t,warrantyCardProps:n,documentLinkCollectionProps:r,infoCardProps:i,faqCardCollectionProps:a})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Fl,{...e}),(0,u.jsx)(Yu,{...t}),(0,u.jsx)(I,{spacing:`section`,children:(0,u.jsx)(Ul,{...n})}),(0,u.jsx)(ld,{...r}),(0,u.jsx)(I,{spacing:`section`,children:(0,u.jsx)(qo,{...i})}),(0,u.jsx)(Kl,{...a})]}),dd=(e,t)=>e.id??[e.decorNumber,e.title,e.brand,e.rangeCode,t].join(`-`),fd=(e,t)=>e.slice(0,Math.max(0,Math.min(t??e.length,e.length))),pd=(e,t,n)=>n??`View ${e} more ${t}`,md=({searchFilterProps:e,decorResultsProps:t,resourceResultsProps:n,noResultsMessage:r})=>{let i=t?.items??[],a=n?.items??[],o=fd(i,t?.visibleItemCount),s=fd(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)(I,{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)(xo,{...e,layoutVariant:`full`})]}),m&&t?(0,u.jsxs)(I,{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)(Ws,{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},dd(e,n)))}),c>0?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(D,{variant:`outline`,intent:`accent`,size:`sm`,label:pd(c,`decor results`,t.viewMoreLabel),onClick:t.onViewMoreClick})}):null]}):null,h&&n?(0,u.jsxs)(I,{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)(ss,{...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:pd(l,`resources`,n.viewMoreLabel),onClick:n.onViewMoreClick})}):null]}):null,g?null:(0,u.jsx)(I,{spacing:`paddedSection`,children:(0,u.jsx)(d,{variant:`body`,children:r})})]})},hd=({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)(Au,{...n,onSecondaryClick:t})})]})}),gd=e=>(e.options.find(t=>t.value===e.selectedValue)??e.options[0])?.label??``,_d=({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=gd(e.tabs);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)($c,{...e.banner,onProductChange:t=>n?.(t,e),onSearchSubmit:t=>r?.(t,e)}),(0,u.jsx)(I,{spacing:`none`,className:`mb-8 pt-10`,innerClassName:`flex justify-center`,children:(0,u.jsx)(nl,{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)(I,{spacing:`none`,className:`mb-8 pb-10 md:mb-10`,children:(0,u.jsx)(pu,{...e.map,locations:e.locations,selectedLocationId:e.map.selectedLocationId??p,onLocationSelect:t=>a?.(t,e)})}),f?(0,u.jsx)(Zl,{...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)(I,{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]})})]})},vd=({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`})})]})}),yd=({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]})})},bd=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]}),xd=({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]})]}),bd({title:n.title||`Shipping Address`,...n}),bd({title:r.title||`Billing Address`,...r})]})]})}),Sd=({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)($o,{...e,isReadOnly:!0,showPricing:t})},`${e.decorNumber||e.title||`item`}-${n}`))})]})})},Cd=({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)(vd,{...e}),(0,u.jsxs)(`div`,{className:`px-12 pb-16`,children:[(0,u.jsx)(`div`,{className:`mt-10`,children:(0,u.jsx)(xd,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Sd,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(yd,{...r})})]})]})}),wd=({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:te,onCityChange:F,onCountryChange:ne,onStateProvinceChange:I,onFirstNameBlur:L,onLastNameBlur:R,onEmailBlur:z,onPhoneNumberBlur:B,onCompanyNameBlur:V,onUserTypeBlur:H,onAddressBlur:U,onApartmentBlur:re,onPostalCodeBlur:W,onCityBlur:G,onCountryBlur:ie,onStateProvinceBlur:K})=>{let ae=_===`ca`||_===`mx`,oe=C??`City`,q=w??`Postal Code`,se=T??(_===`ca`?`Province`:`State/Province`),ce=h??y.find(e=>e.value===m)?.label??m,J=(0,u.jsx)($,{id:`${t}-city`,name:`city`,placeholder:oe,value:p,hasError:!!D.city,errorMessage:D.city,onChange:F,onBlur:G}),le=(0,u.jsx)($,{id:`${t}-postal-code`,name:`postalCode`,placeholder:q,value:f,hasError:!!D.postalCode,errorMessage:D.postalCode,onChange:te,onBlur:W}),ue=(0,u.jsx)(go,{id:`${t}-state-province`,name:`stateProvince`,options:b,value:g,placeholder:se,hasError:!!D.stateProvince,variant:`field`,onChange:I,onBlur:K}),de=v===`readonly`?(0,u.jsx)($,{id:`${t}-country`,name:`country`,placeholder:`Country`,value:ce,readOnly:!0,hasError:!!D.country,errorMessage:D.country}):(0,u.jsx)(go,{id:`${t}-country`,name:`country`,options:y,value:m,placeholder:`Country`,hasError:!!D.country,variant:`field`,onChange:ne,onBlur:ie});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:L}),(0,u.jsx)($,{id:`${t}-last-name`,name:`lastName`,placeholder:`Last Name`,value:r,hasError:!!D.lastName,errorMessage:D.lastName,onChange:k,onBlur:R}),(0,u.jsx)($,{id:`${t}-email`,name:`email`,type:`email`,placeholder:`Email`,value:i,hasError:!!D.email,errorMessage:D.email,onChange:A,onBlur:z}),(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:B}),x.length>0?(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)(go,{id:`${t}-user-type`,name:`userType`,options:x,value:s,placeholder:S,hasError:!!D.userType,variant:`field`,onChange:e=>N?.(e.target.value),onBlur:H})}):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:V})}):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:U})}),(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:re})}),ae?(0,u.jsxs)(u.Fragment,{children:[J,ue,le,de]}):(0,u.jsxs)(u.Fragment,{children:[le,J,de,ue]})]})]})},Td=({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)(qs,{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))})]}),Ed=({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}`)})})},Dd=({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)(wd,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Td,{...t})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Ed,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(pl,{...r})}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(D,{label:i,intent:`accent`,fullWidth:!0,onClick:a})})]})]})})}),Od=({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)($o,{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)(Ed,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(pl,{...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})]})]})]})})}),kd=({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)(vd,{...e}),(0,u.jsxs)(`div`,{className:`px-12 pb-16`,children:[(0,u.jsx)(`div`,{className:`mt-10`,children:(0,u.jsx)(xd,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Sd,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(yd,{...r})})]})]})}),Ad=({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)(vo,{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:_})]})},jd=({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)(Td,{...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})]})]})]}),Md=({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)(Td,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(jd,{...t})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Ed,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Ad,{...r})})]})]})}),Nd=({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)(wd,{...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)(Cu,{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)(wd,{...t,idPrefix:t.idPrefix??`billing`,title:t.title??``,countryOptions:p,stateProvinceOptions:m})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Ed,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Ad,{...r})})]})]})})},Pd=e=>new Intl.NumberFormat(`en-US`,{style:`currency`,currency:`USD`}).format(e),Fd=({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)($o,{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:Pd(a)})]})})]})})},Id=({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:te,onTermsAcceptedChange:F,onEmailBlur:ne,onPasswordBlur:I,onForgotPasswordClick:L,onTermsClick:R,onPrivacyClick:z,onContinue:B,onContinueAsGuest:V})=>(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-8`,children:[(0,u.jsx)(Ed,{steps:t,currentStep:e}),(0,u.jsx)(Au,{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:te,onTermsAcceptedChange:F,onEmailBlur:ne,onPasswordBlur:I,onForgotPasswordClick:L,onTermsClick:R,onPrivacyClick:z,onSignInClick:B,onCreateAccountClick:B,onSecondaryClick:V})]}),Ld=({cartSummaryProps:e,checkoutAccountStepProps:t})=>(0,u.jsx)(`section`,{className:`w-full flex justify-center mt-10`,children:(0,u.jsxs)(`div`,{className:`grid w-full max-w-6xl grid-cols-2 gap-8`,children:[(0,u.jsx)(`div`,{children:(0,u.jsx)(Fd,{...e})}),(0,u.jsx)(`div`,{children:(0,u.jsx)(Id,{...t})})]})}),Rd=({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)(Ks,{...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]})]})})},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`}},Bd=e=>{if(e===`loading`)return`status`;if(e===`error`)return`alert`},Vd=({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:Bd(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]})})},Hd=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`,Ud=(e,t,n)=>t&&n?`border-accent bg-accent/10`:e?`border-primary bg-tertiaryActive`:`border-borderTertiary bg-secondary hover:border-primary`,Wd=e=>e===`saved`?`text-saleGreen`:e===`error`?`text-accent`:`text-yellow-700`,Gd=({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:Wd(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]}),Kd=({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)})})]}),qd=({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})]})]}),Jd=({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})}),Yd=({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]})]}),Xd=({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})]})]}),Zd=e=>{if(!(`data`in e)){let t=e.state===`notFound`||e.state===`empty`?`empty`:e.state;return(0,u.jsx)(Rd,{pageTitle:e.pageTitle,sideNavProps:e.sideNavProps,children:(0,u.jsx)(Vd,{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:te,onSampleBulkSelectionChange:F,onSampleBulkDelete:ne,onNoticeActionClick:I}=e,{decor:L,decorEditor:R,skuEditor:z,sampleEditor:B}=t,V=t.skus.find(e=>e.id===z.selectedSkuId),H=t.skus.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.grade} · ${e.size}`})),U=t.samples.find(e=>e.id===B.selectedSampleId),re=t.samples.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.size}`})),W=z.bulkSelection,G=B.bulkSelection,ie=W?.selectedIds??[],K=G?.selectedIds??[],ae=t.skus.filter(e=>!e.isForSale).map(e=>e.id),oe=t.samples.filter(e=>!e.isSampleable).map(e=>e.id),q=R.activeLocalization.saveStatus===`saving`,se=R.searchColorFieldId?[...R.sharedFields,...R.localizedFields].filter(e=>e.id===R.searchColorFieldId):[],ce=R.decorFlagFieldId?R.sharedFields.filter(e=>e.id===R.decorFlagFieldId):[],J=R.sharedFields.filter(e=>e.id!==R.searchColorFieldId&&e.id!==R.decorFlagFieldId),le=R.localizedFields.filter(e=>e.id!==R.searchColorFieldId),ue=z.saveStatus===`saving`,de=B.saveStatus===`saving`,fe=B.mode===`edit`,Y=null;z.mode===`create`?Y=(0,u.jsx)(D,{label:z.createLabel??`Create SKU`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:z.createDisabled,onClick:()=>b?.({sku:z.newSkuValue??``,grade:z.selectedGrade??``,finish:z.selectedFinish??``,size:z.selectedSize??``})}):V&&(Y=(0,u.jsx)(D,{label:z.controls.saveLabel,iconType:`fa-solid`,iconName:ue?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:z.controls.saveDisabled||ue,"aria-busy":ue||void 0,onClick:()=>v?.({skuId:V.id})}));let pe=null;B.mode===`create`?pe=(0,u.jsx)(D,{label:B.createLabel??`Create Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:B.createDisabled,onClick:()=>ee?.({sku:B.newSkuValue??``,finish:B.selectedFinish??``,size:B.selectedSize??``})}):U&&(pe=(0,u.jsx)(D,{label:B.controls.saveLabel,iconType:`fa-solid`,iconName:de?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:B.controls.saveDisabled||de,"aria-busy":de||void 0,onClick:()=>N?.({sampleId:U.id})}));let me=null;return B.mode===`create`?me=(0,u.jsxs)(`div`,{className:`mt-5`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-new-sample-sku`,className:`text-sm font-bold text-primary`,children:`New Sample SKU`}),(0,u.jsx)(vo,{id:`market-readiness-new-sample-sku`,name:`newSampleSku`,value:B.newSkuValue??``,placeholder:`Enter a sample SKU beginning with Y...`,leadingIcon:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>j?.({value:e.target.value})})]}):U?.sourceIdentifier&&(me=(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:U.sourceIdentifier})]})),(0,u.jsxs)(Rd,{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:[L.imageUrl?(0,u.jsx)(A,{src:L.imageUrl,alt:L.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:L.name}),(0,u.jsxs)(d,{variant:`free`,className:`mt-1 text-sm text-primary`,children:[`Decor `,L.decorCode,` · Range `,L.rangeCode]})]})]}),t.notice?(0,u.jsxs)(`section`,{role:t.notice.tone===`error`?`alert`:`status`,className:`mt-4 rounded-lg border p-4 ${Hd(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:I})}):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)(oc,{title:`Decor details`,description:R.sharedDescription,fields:[...J,...le,...ce,...se],fieldGroups:[{id:`shared-decor-fields`,title:R.sharedTitle??`Shared decor details`,fieldIds:J.map(e=>e.id)},{id:`localized-decor-fields`,title:`${R.activeLocalization.heading} content`,description:R.localizationDescription??`These fields change with the selected locale.`,fieldIds:le.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:R.deleteLabel?(0,u.jsx)(D,{label:R.deleteLabel,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,variant:`outline`,intent:`danger`,disabled:R.deleteDisabled||q,onClick:()=>c?.({decorId:L.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(Gd,{status:R.activeLocalization.saveStatus,label:R.activeLocalization.saveStatusLabel,errorMessage:R.activeLocalization.saveErrorMessage,lastSavedLabel:R.activeLocalization.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(D,{label:R.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:R.controls.cancelDisabled||q,onClick:()=>s?.({decorId:L.id,localizationId:R.activeLocalization.id})}),(0,u.jsx)(D,{label:R.controls.saveLabel,iconType:`fa-solid`,iconName:q?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:R.controls.saveDisabled||q,"aria-busy":q||void 0,onClick:()=>o?.({decorId:L.id,localizationId:R.activeLocalization.id})})]})]})]}),onDynamicFormFieldChange:({fieldId:e,value:t})=>{let n=R.sharedFields.some(t=>t.id===e);a?.({decorId:L.id,localizationId:n?void 0:R.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)(Ql,{title:`Decor localizations`,markets:R.markets,selectedLocalizationId:R.activeLocalization.id,localizationSelectionDisabled:q,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)(So,{id:`market-readiness-sku-search`,name:`skuSearch`,ariaLabel:`Sheet SKU`,value:z.searchValue,options:H,valueStatus:V?.isForSale===!1&&z.searchValue===V.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:z.addSkuLabel??`Add Sheet`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:p})]})}),z.mode===`edit`&&!V?(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:z.mode===`create`?`Create a new sheet SKU`:V?.sku}),(0,u.jsx)(d,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:z.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.`})]}),V?.statusLabel?(0,u.jsx)(`span`,{className:`rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-primary`,children:V.statusLabel}):null]}),z.mode===`create`?(0,u.jsxs)(`div`,{className:`mt-5`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-new-sku`,className:`text-sm font-bold text-primary`,children:`New SKU`}),(0,u.jsx)(vo,{id:`market-readiness-new-sku`,name:`newSku`,value:z.newSkuValue??``,placeholder:`Enter an SKU or leave blank for generated value`,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)(Kd,{title:`Grade`,dimension:`grade`,options:z.gradeOptions,selectedValue:z.selectedGrade,readOnly:!1,onSelect:(e,t)=>m?.({dimension:e,value:t})}),(0,u.jsx)(Kd,{title:`Finish`,dimension:`finish`,options:z.finishOptions,selectedValue:z.selectedFinish,readOnly:!1,onSelect:(e,t)=>m?.({dimension:e,value:t})}),(0,u.jsx)(Kd,{title:`Size`,dimension:`size`,options:z.sizeOptions,selectedValue:z.selectedSize,readOnly:!1,onSelect:(e,t)=>m?.({dimension:e,value:t})})]}),z.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:z.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)(oc,{fields:z.fields,density:`compact`,severityDisplay:`icon`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>_?.({skuId:V?.id,fieldId:e,value:t})})})]}),z.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`}),V?(0,u.jsx)(D,{label:`Refresh`,iconType:`fa-solid`,iconName:`rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,onClick:()=>w?.({skuId:V.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:z.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:z.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:z.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:z.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:z.mode===`edit`&&V&&z.deleteLabel&&x?(0,u.jsx)(D,{label:z.deleteLabel,variant:`outline`,intent:`danger`,disabled:z.deleteDisabled||ue,onClick:()=>x?.({skuId:V.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(Gd,{status:z.saveStatus,label:z.saveStatusLabel,errorMessage:z.saveErrorMessage,lastSavedLabel:z.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||ue,onClick:y}),Y]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[t.skuGuide?(0,u.jsx)(Yd,{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:[W?(0,u.jsx)(D,{iconType:W.active?`fa-solid`:`fa-regular`,iconName:W.active?`square-check`:`square`,iconAlt:W.active?`Close sheet selection`:`Select sheets`,variant:`ghost`,intent:W.active?`accent`:`primary`,size:`xs`,onClick:()=>S?.({active:!W.active,skuIds:[]})}):null,(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:t.skus.length})]})]}),W?.active?(0,u.jsx)(qd,{itemLabel:`sheet`,selectedCount:ie.length,failedCount:ae.length,onSelectAll:()=>S?.({active:!0,skuIds:t.skus.map(e=>e.id)}),onSelectFailed:()=>S?.({active:!0,skuIds:ae}),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=ie.includes(e.id),n=W?.active?t:e.id===z.selectedSkuId;return(0,u.jsx)(`button`,{type:`button`,"aria-pressed":n,"aria-label":W?.active?`${t?`Deselect`:`Select`} sheet ${e.sku}`:void 0,className:`w-full rounded-md border p-3 text-left transition ${Ud(n,W?.active??!1,t)}`,onClick:()=>{if(W?.active){S?.({active:!0,skuIds:t?ie.filter(t=>t!==e.id):[...ie,e.id]});return}f?.({skuId:e.id,sku:e.sku})},children:(0,u.jsxs)(`span`,{className:`flex items-start gap-2`,children:[W?.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)})}),W?.active&&ie.length>0?(0,u.jsx)(Jd,{itemLabel:`sheet`,selectedCount:ie.length,deleteDisabled:W.deleteDisabled||!C,onDelete:()=>C?.({skuIds:ie})}):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)(So,{id:`market-readiness-sample-search`,name:`sampleSearch`,ariaLabel:`Sample SKU`,value:B.searchValue,options:re,valueStatus:U?.isSampleable===!1&&B.searchValue===U.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:B.addLabel??`Add Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:O})]})}),B.mode===`edit`&&!U?(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:B.emptyTitle}),(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-primary`,children:B.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:B.mode===`create`?`Create a new sample`:U?.sku}),(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-tertiary`,children:B.identifierHelpText}),me,(0,u.jsxs)(`div`,{className:`mt-5 space-y-5`,children:[(0,u.jsx)(Kd,{title:`Finish`,dimension:`finish`,options:B.finishOptions,selectedValue:B.selectedFinish,readOnly:fe,onSelect:(e,t)=>{e!==`grade`&&k?.({dimension:e,value:t})}}),(0,u.jsx)(Kd,{title:`Size`,dimension:`size`,options:B.sizeOptions,selectedValue:B.selectedSize,readOnly:fe,onSelect:(e,t)=>{e!==`grade`&&k?.({dimension:e,value:t})}})]}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(oc,{fields:B.fields,density:`compact`,severityDisplay:`icon`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>M?.({sampleId:U?.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:B.mode===`edit`&&U&&B.deleteLabel&&te?(0,u.jsx)(D,{label:B.deleteLabel,variant:`outline`,intent:`danger`,disabled:B.deleteDisabled||de,onClick:()=>te?.({sampleId:U.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(Gd,{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||de,onClick:P}),pe]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[t.sampleGuide?(0,u.jsx)(Xd,{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:[G?(0,u.jsx)(D,{iconType:G.active?`fa-solid`:`fa-regular`,iconName:G.active?`square-check`:`square`,iconAlt:G.active?`Close sample selection`:`Select samples`,variant:`ghost`,intent:G.active?`accent`:`primary`,size:`xs`,onClick:()=>F?.({active:!G.active,sampleIds:[]})}):null,(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:t.samples.length})]})]}),G?.active?(0,u.jsx)(qd,{itemLabel:`sample`,selectedCount:K.length,failedCount:oe.length,onSelectAll:()=>F?.({active:!0,sampleIds:t.samples.map(e=>e.id)}),onSelectFailed:()=>F?.({active:!0,sampleIds:oe}),onClear:()=>F?.({active:!0,sampleIds:[]}),onCancel:()=>F?.({active:!1,sampleIds:[]})}):null]}),t.samples.length?(0,u.jsx)(`div`,{className:`mt-4 space-y-2`,children:t.samples.map(e=>{let t=K.includes(e.id),n=G?.active?t:e.id===B.selectedSampleId;return(0,u.jsx)(`button`,{type:`button`,"aria-pressed":n,"aria-label":G?.active?`${t?`Deselect`:`Select`} sample ${e.sku}`:void 0,className:`w-full rounded-md border p-3 text-left transition ${Ud(n,G?.active??!1,t)}`,onClick:()=>{if(G?.active){F?.({active:!0,sampleIds:t?K.filter(t=>t!==e.id):[...K,e.id]});return}E?.({sampleId: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.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.`}),G?.active&&K.length>0?(0,u.jsx)(Jd,{itemLabel:`sample`,selectedCount:K.length,deleteDisabled:G.deleteDisabled||!ne,onDelete:()=>ne?.({sampleIds:K})}):null]})]})]}):null]})},Qd=e=>(0,u.jsx)(`div`,{className:`w-36`,children:e}),$d=e=>(0,u.jsx)(`div`,{className:`w-28`,children:e}),ef=(e,t)=>{if(t)for(let n of e){if(n.type===`checkpoint`&&n.id===t)return n;if(n.type===`group`){let e=ef(n.items,t);if(e)return e}}},tf=({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=ef(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)(Ps,{...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)(hu,{...e.groupProps,variant:T?`skeleton`:`default`,children:e.items.map(P)})},e.id);let t=(0,u.jsx)(zs,{...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`?$d(t):Qd(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)(Ks,{...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)(So,{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)(_u,{...O,state:o,diagram:(0,u.jsx)(mu,{ariaLabel:`Data path status flow`,surfaceVariant:`plain`,children:l.map(P)}),legend:(0,u.jsx)(Ls,{}),actions:E?(0,u.jsx)(ks,{...E}):void 0})}),(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(Ds,{...f})})]})]}),(0,u.jsx)(cc,{open:m,title:k?`${k.cardProps.title} ${g}`:g,description:_,size:`lg`,onClose:()=>C?.({open:!1,checkpointId:p}),children:A&&p?(0,u.jsx)(oc,{...A,onDynamicFormFieldChange:e=>{w?.({checkpointId:p,fieldId:e.fieldId,value:e.value}),A.onDynamicFormFieldChange?.(e)},onDynamicFormCancel:()=>{C?.({open:!1,checkpointId:p}),A.onDynamicFormCancel?.()}}):null})]})},nf=({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)(Ks,{...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})]})]})]})]})}),rf=e=>e===`admin`?`Admin`:`User`,af=({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})}),of=({message:e})=>{let t=e?.trim()??``;return t?(0,u.jsx)(d,{variant:`free`,className:`text-sm text-accent`,children:t}):null},sf=({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:te,onNewUserDefaultRegionChange:F,onCreateUser:ne,onRowUpdate:I,onUserActiveToggle:L,onDeleteUserRequest:R,onDeleteModalClose:z,onDeleteUserConfirm:B})=>{let V=t?.trim()??``,H=l.active&&!l.defaultRegion.trim(),U=m.map(e=>({id:e.email,values:{active:e.active?`active`:`inactive`,email:e.email,role:e.role,defaultRegion:e.defaultRegion}})),re=`${m.length.toLocaleString()} ${m.length===1?`user`:`users`}`,W=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:[rf(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:()=>L?.({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:()=>R?.({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)(Ks,{...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}),V?(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-sm text-primary`,children:V}):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(),ne?.({user:l})},children:[(0,u.jsxs)(`div`,{className:`grid gap-2 md:col-span-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-email`,children:`Email`}),(0,u.jsx)(vo,{id:`authorization-user-email`,name:`email`,type:`email`,value:l.email,placeholder:`person@formica.com`,disabled:b,autoComplete:`email`,onChange:e=>P?.({value:e.target.value})})]}),(0,u.jsxs)(`div`,{className:`grid gap-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-role`,children:`Role`}),(0,u.jsx)(go,{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)(go,{id:`authorization-user-default-region`,name:`defaultRegion`,value:l.defaultRegion,placeholder:g,disabled:b,required:l.active,hasError:H,options:p,onChange:e=>F?.({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)(go,{id:`authorization-user-active`,name:`active`,value:l.active?`active`:`inactive`,disabled:b,options:[{label:`Active`,value:`active`},{label:`Inactive`,value:`inactive`}],onChange:e=>te?.({active:e.target.value===`active`})})]}),(0,u.jsx)(D,{disabled:b||H,iconAlt:``,iconName:`user-plus`,iconType:`fa-solid`,intent:`primary`,label:b?T:w,type:`submit`,variant:`solid`})]}),(0,u.jsx)(of,{message:_}),o===`loading`?(0,u.jsx)(af,{message:s}):null,o===`error`?(0,u.jsx)(af,{message:c,tone:`error`}):null,(0,u.jsx)(su,{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:re,rows:U,title:`Allow List`,updateLabel:x?O:E,updateDisabled:x,onRowUpdate:I}),(0,u.jsx)(of,{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(W)}),(0,u.jsx)(of,{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)(cc,{closeLabel:N,open:!!C,size:`md`,title:`Remove User?`,onClose:()=>z?.(),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:()=>z?.()}),(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&&B?.({email:C})}})]})]})})]})},cf={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`}},lf=e=>{if(e===`loading`)return`status`;if(e===`error`)return`alert`},uf=({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=cf[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:lf(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]})})},df=e=>{let t=e.trim().split(/\s+/).filter(Boolean);return(t.length>1?t.map(e=>e[0]).join(``):e.slice(0,2)).toUpperCase()},ff=({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})]}),pf=({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,getStartedTitle:l=`Open an existing decor`,getStartedDescription:f=`Enter a decor code that already has a market-readiness record to continue editing it.`,decorCodeValue:p,decorCodeOptions:m=[],decorCodeLabel:g=`Decor Code`,decorCodePlaceholder:_=`Start typing a decor code`,decorCodeEmptyMessage:v=`No matching decor codes found.`,decorCodeHelpText:y,status:b,statusMessage:x,openExistingLabel:S=`Open Existing Decor`,openExistingDisabled:C=!1,createNewPrompt:w=`Start data entry for a new decor`,createNewDescription:T=`Enter a decor code that does not yet have a market-readiness record to begin a controlled draft.`,createNewLabel:E=`Set Up New Decor`,createNewHelpText:O=`Setting up a new decor creates a controlled draft. Nothing is published until the draft is saved.`,createNewDisabled:k=!1,copyDecorTitle:A=`Create a new decor from an existing decor`,copyDecorDescription:j=`Copy an existing decor's market-readiness data into a new decor, then update only the fields that differ.`,sourceDecorCodeValue:M,sourceDecorCodeOptions:N=m,sourceDecorCodeLabel:P=`Source Decor Code`,sourceDecorCodePlaceholder:ee=`Start typing the decor code to copy`,sourceDecorCodeEmptyMessage:te=v,newDecorCodeValue:F,newDecorCodeLabel:ne=`New Decor Code`,newDecorCodePlaceholder:I=`Enter the new decor code`,copyDecorLabel:L=`Copy to New Decor`,copyDecorHelpText:R=`The source decor stays unchanged. The copied record starts as a draft and is not published until it is saved.`,copyDecorDisabled:z=!1,retryLabel:B=`Try Again`,onDecorCodeChange:V,onRegionChange:H,onDecorCodeOptionSelect:U,onOpenExistingClick:re,onCreateNewClick:W,onSourceDecorCodeChange:G,onSourceDecorCodeOptionSelect:ie,onNewDecorCodeChange:K,onCopyDecorClick:ae,onRetryClick:oe})=>{let q=b===`checking`,se=b===`error`,ce=!i.trim(),J=q||c||ce,le=se?x?.trim()??``:``,ue=p.trim().toLocaleLowerCase(),de=m.some(e=>e.value.trim().toLocaleLowerCase()===ue);return(0,u.jsx)(Rd,{pageTitle:e,pageDescription:t,sideNavProps:n,headerActions:(0,u.jsxs)(`fieldset`,{className:`min-w-0`,disabled:c||q,"aria-describedby":s?`market-readiness-region-help`:void 0,children:[(0,u.jsx)(`legend`,{className:`sr-only`,children:a}),(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":a,"aria-invalid":ce||void 0,className:`flex flex-wrap gap-x-4 gap-y-2`,children:r.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:`market-readiness-region`,value:e.value,checked:i===e.value,disabled:c||q,required:!0,"aria-label":e.label,className:`peer sr-only`,onChange:e=>H({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??df(e.label)})]},e.value))}),ce?(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-xs text-accent`,children:o}):null,s?(0,u.jsx)(d,{id:`market-readiness-region-help`,variant:`free`,className:`sr-only`,children:s}):null]}),children:(0,u.jsxs)(`section`,{"aria-label":`Market readiness actions`,className:`mt-6 grid gap-4`,children:[(0,u.jsxs)(ff,{title:l,description:f,iconName:`magnifying-glass`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-existing-decor-code`,className:`text-sm font-bold text-primary`,children:g}),(0,u.jsx)(So,{id:`market-readiness-existing-decor-code`,name:`existingDecorCode`,ariaLabel:g,value:p,options:m,placeholder:_,controlSize:`default`,disabled:J,hasError:se,emptyMessage:v,onQueryChange:V,onClear:()=>V({value:``}),onOptionSelect:e=>{V({value:e.option.value}),U?.(e)},onSearchSubmit:()=>re({decorCode:p})}),y?(0,u.jsx)(d,{variant:`free`,className:`mt-2 text-xs text-tertiary`,children:y}):null]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(D,{label:q?`Checking decor...`:S,iconType:`fa-solid`,iconName:q?`spinner`:`arrow-right`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:de?`accent`:`primary`,fullWidth:!0,disabled:C||J,"aria-busy":q||void 0,onClick:()=>re({decorCode:p})})}),le?(0,u.jsx)(`div`,{role:`alert`,className:`mt-4 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:le}),oe?(0,u.jsx)(`div`,{className:`mt-3`,children:(0,u.jsx)(D,{label:B,variant:`outline`,intent:`primary`,size:`sm`,onClick:oe})}):null]})]})}):null]}),(0,u.jsxs)(ff,{title:w,description:T,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:g}),(0,u.jsx)(vo,{id:`market-readiness-new-decor-code`,name:`newDecorCode`,type:`search`,value:p,placeholder:_,disabled:J,autoComplete:`off`,leadingIcon:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>V({value:e.target.value})})]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(D,{label:E,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:k||J,onClick:()=>W({decorCode:p})})}),O?(0,u.jsx)(d,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:O}):null]}),(0,u.jsxs)(ff,{title:A,description:j,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:P}),(0,u.jsx)(So,{id:`market-readiness-source-decor-code`,name:`sourceDecorCode`,ariaLabel:P,value:M,options:N,placeholder:ee,controlSize:`default`,disabled:J,emptyMessage:te,onQueryChange:G,onClear:()=>G({value:``}),onOptionSelect:e=>{G({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:ne}),(0,u.jsx)(vo,{id:`market-readiness-copy-new-decor-code`,name:`copyNewDecorCode`,type:`search`,value:F,placeholder:I,disabled:J,autoComplete:`off`,leadingIcon:(0,u.jsx)(h,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>K({value:e.target.value})})]})]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(D,{label:L,iconType:`fa-solid`,iconName:`copy`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:z||J,onClick:()=>ae({sourceDecorCode:M,newDecorCode:F})})}),R?(0,u.jsx)(d,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:R}):null]})]})})},mf=({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)(Rd,{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)(su,{...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)(Vd,{status:a,onRetryClick:c})}),hf=e=>new Intl.NumberFormat(`en-US`).format(e),gf=e=>new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`}).format(new Date(e)),_f=e=>[...e].sort((e,t)=>(e.stepNumber??2**53-1)-(t.stepNumber??2**53-1)),vf=e=>e>=80?`good`:e>=60?`warning`:`critical`,yf=e=>e>=80?`Healthy`:e>=60?`Needs Review`:`Critical`,bf=e=>e===`success`?`green`:e===`warning`?`orange`:e===`error`?`red`:e===`review`?`purple`:`gray`,xf=e=>e===`success`?`safe`:e===`warning`?`warning`:e===`error`?`error`:e===`review`?`review`:`resolved`,Sf=e=>({title:`Data Health`,score:e.summary.healthScore,scoreLabel:yf(e.summary.healthScore),status:vf(e.summary.healthScore),summary:`This data set needs review before fixes are applied.`,detail:`${hf(e.summary.problemSkuRows)} SKU rows need attention. ${hf(e.summary.goodSkuRows)} SKU rows have no detected issues.`}),Cf=e=>[{value:hf(e.skuRowsScanned),label:`Total SKUs`,detail:`${hf(e.recordsScanned)} records scanned in this report`,iconName:`barcode`,tone:`blue`}],wf=e=>({title:`By Issue Type`,items:_f(e.issueTypes).map(e=>({id:e.id,label:e.label,groupCount:hf(e.groups),recordCount:hf(e.records),tone:bf(e.severity)}))}),Tf=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?`${hf(t)} duplicate groups look safe to review first. Confirm the product data is current before applying fixes.`:`${hf(e.summary.problemSkuRows)} SKU rows need review before Data Forge can safely apply automated fixes.`}},Ef=e=>e===`safe`?`success`:e===`warning`?`warning`:e===`error`?`error`:e===`review`?`review`:`neutral`,Df=e=>e.groupCount>0||e.recordCount===void 0?`${hf(e.groupCount)} groups`:`${hf(e.recordCount)} records`,Of=e=>_f(e.sections).map(e=>{let t=xf(e.severity);return{id:e.id,title:e.title,groupCountLabel:Df(e),description:e.description,status:t,stepNumber:e.stepNumber,recommendedActionTitle:e.recommendedActionTitle??`Recommended Action`,recommendedActions:e.recommendedAction,confidenceLabel:e.confidenceLabel,confidenceTone:Ef(t),primaryActionLabel:t===`safe`?`Resolve`:`Review Groups`,primaryActionIconName:t===`safe`?`wand-magic-sparkles`:`magnifying-glass`,primaryActionVariant:t===`safe`?`solid`:`outline`}}),kf=({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 te=t?.trim()??``,F=p?.report??p?.dataSource?.latestReport,ne=n?.trim()??(F?`Report generated: ${gf(F.generatedAt)}`:``),I=m??(F?Sf(F):null),L=g??(F?Cf(F):[]),R=_??(F?wf(F):null),z=v??(F?Tf(F):null),B=y??(F?Of(F):[]),V=L.length<=1?`md:col-span-2`:`md:col-span-1`,H=o===`required`,U=(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[ne?(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:ne})]}):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]}),re=!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:H?`solid`:`outline`,intent:H?`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)(Rd,{pageTitle:e,pageDescription:te,sideNavProps:l,headerActions:U,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:H?`solid`:`outline`,intent:H?`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})]})]}):re,(0,u.jsxs)(`section`,{"aria-label":`Data issue summary`,className:`mt-5 grid gap-4 md:grid-cols-4`,children:[I?(0,u.jsx)(`div`,{className:`h-full md:col-span-1`,children:(0,u.jsx)(ds,{...I})}):null,L.map(e=>(0,u.jsx)(ms,{...e},e.label)),R?(0,u.jsx)(`div`,{className:`h-full ${V}`,children:(0,u.jsx)(ys,{...R})}):null]}),z?(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(ws,{...z,recalculating:i===`pending`||z.recalculating,onRecalculateClick:z.onRecalculateClick??w})}):null,(0,u.jsx)(`section`,{"aria-label":`Data issue actions`,className:`mt-4 space-y-3`,children:B.map(e=>(0,u.jsx)(_s,{...e,onPrimaryActionClick:e.onPrimaryActionClick??P,onSecondaryActionClick:e.onSecondaryActionClick??ee},e.id))})]}):(0,u.jsx)(Vd,{status:f,onRetryClick:C})}),(0,u.jsx)(cc,{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)(Af,{dialog:S,onClose:M,onConfirm:j,onRetry:N})]})},Af=({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)(cc,{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})]})]})})},jf=e=>new Intl.NumberFormat(`en-US`).format(e),Mf=({title:e,description:t,iconName:n,children:r})=>(0,u.jsxs)(`article`,{className:`flex w-full flex-col rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:flex-row md:items-start md:gap-6`,children:[(0,u.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,u.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-borderTertiary bg-adminSideNavBackground text-primary`,children:(0,u.jsx)(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})]}),Nf=({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})},Pf=({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:jf(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]}),Ff=({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:te,onUploadClick:F,onClearSelectedFileClick:ne,onRangeChange:I,onDirectDownloadClick:L,onRetryClick:R})=>{let z=(0,c.useRef)(null),B=y===`pending`,V=M===`pending`,H=e=>te?.({files:Array.from(e??[])});return(0,u.jsx)(Rd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:r.state===`ready`?(0,u.jsxs)(`section`,{"aria-label":`Choose data source`,className:`mt-6 flex flex-col gap-4`,children:[(0,u.jsx)(Mf,{title:i?a:o,description:i?`Review the saved data set and continue if it is the right source for this review.`:s,iconName:i?`database`:`circle-info`,children:i?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Pf,{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)(Mf,{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(),H(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:B,onClick:()=>z.current?.click()})}),(0,u.jsx)(`input`,{ref:z,id:`salsify-report-upload`,type:`file`,className:`sr-only`,disabled:B,onChange:e=>H(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:B,onClick:ne}),(0,u.jsx)(D,{label:x,iconType:`fa-solid`,iconName:`cloud-arrow-up`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,disabled:S||B,"aria-busy":B||void 0,onClick:F})]})]}):null,(0,u.jsx)(Nf,{status:y,message:b})]}),(0,u.jsxs)(Mf,{title:w,description:T,iconName:`cloud-arrow-down`,children:[(0,u.jsxs)(`div`,{className:`space-y-2`,children:[(0,u.jsx)(`label`,{htmlFor:`salsify-range`,className:`text-sm font-bold text-primary`,children:E}),(0,u.jsx)(go,{id:`salsify-range`,name:`salsifyRange`,value:A,placeholder:O,options:k,disabled:V,onChange:e=>I?.({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||V,"aria-busy":V||void 0,onClick:L})}),(0,u.jsx)(Nf,{status:M,message:N})]})]}):(0,u.jsx)(Vd,{status:r,onRetryClick:R})})},If=e=>new Intl.NumberFormat(`en-US`).format(e),Lf=e=>e.split(`-`).filter(Boolean).map(e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(` `),Rf=(e,t,n)=>n===0?`0 groups`:`${If(e+1)}-${If(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}),Bf=({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()||Lf(d.issueType),S=a??`Next ${If(d.limit)}`;return(0,u.jsx)(Rd,{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)(bs,{title:x,description:`Review each group and select the record Data Forge should keep.`,totalGroupsLabel:If(d.totalGroups),visibleRangeLabel:Rf(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)(Cs,{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)(Vd,{status:p,onRetryClick:b})})},Vf=e=>e===`error`?`text-accent`:e===`success`?`text-saleGreen`:`text-primary`,Hf=({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 ${Vf(e)}`,children:n})},Uf=({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)(Hf,{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.`})]})})]})},Wf=({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)(Uf,{guide:e,uploadDropLabel:s,uploadBrowseLabel:c,uploadHelpText:l,uploadLabel:f,clearFileLabel:p,completeLabel:m,onGuideFileSelect:g,onUploadClick:_,onClearSelectedFileClick:v},e.id))}):(0,u.jsx)(Vd,{status:r,onRetryClick:y}),(0,u.jsx)(Rd,{pageTitle:e,pageDescription:t,sideNavProps:n,children:b})};exports.AccountAccessPanel=Au,exports.AdminAuthStatusTemplate=uf,exports.AdminDashboardTemplate=nf,exports.AdminDataIssuesSourceTemplate=Ff,exports.AdminDataIssuesTemplate=kf,exports.AdminDataReportTemplate=mf,exports.AdminIssueGroupReviewTemplate=Bf,exports.AdminPageTemplateShell=Rd,exports.AdminProductGuidesTemplate=Wf,exports.AdminSideNav=Ks,exports.AdminUsersTemplate=sf,exports.AnnouncementBar=Hc,exports.ArticleBanner=Il,exports.ArticleBannerContent=Ro,exports.ArticleLandingPageTemplate=Xu,exports.BpcsCartConfirmationTemplate=Cd,exports.BpcsCartSamplesTemplate=Od,exports.BpcsCartShippingTemplate=Dd,exports.BrandNavBar=Pc,exports.Breadcrumbs=Uc,exports.BusinessInfoCard=G,exports.Button=D,exports.CallToActionHero=el,exports.CallToActionHeroContent=zo,exports.CarouselArrowControls=Co,exports.CarouselDots=wo,exports.CartItemCard=ae,exports.CategoryPageTemplate=od,exports.ClickableCard=q,exports.ColourMatchingChart=Zo,exports.ColumnBanner=sl,exports.ColumnCarouselCard=no,exports.CommerceSyncPanel=Su,exports.ContentCarousel=Ll,exports.ContentContainer=I,exports.ContentGrid=z,exports.CountrySelector=lo,exports.DataHealthSummaryCard=ds,exports.DataIssueActionCard=_s,exports.DataIssueMetricCard=ms,exports.DataReportCollection=su,exports.DocumentLinkCard=Go,exports.DropdownFilter=_o,exports.DynamicForm=oc,exports.EcommCartConfirmationTemplate=kd,exports.EcommCartPaymentTemplate=Md,exports.EcommCartShippingTemplate=Nd,exports.EcommCartSummaryTemplate=Ld,exports.EmbeddedVideo=M,exports.EmbeddedVideoCard=Wo,exports.FaqCard=Ko,exports.FaqCardCollection=Kl,exports.FeatureCard=ro,exports.FeatureCardCollection=dl,exports.FeaturedArticleBanner=tl,exports.FeaturedArticleBannerContent=Bo,exports.FeaturedProductCard=io,exports.FeaturedProductsCarousel=Wl,exports.FilterBar=uo,exports.FilterBarButton=fo,exports.FlowRow=U,exports.Footer=Xc,exports.FormicaText=d,exports.GalleryTemplate=cd,exports.Icon=h,exports.Image=A,exports.ImageCard=Rl,exports.ImageOverlayCard=Uo,exports.ImageOverlayGrid=Yl,exports.InfoCard=qo,exports.IssueGroupQueueSummaryCard=bs,exports.IssueGroupReviewCard=Cs,exports.IssueRecordCandidateCard=Ss,exports.IssueTypeBreakdownCard=ys,exports.LocalizationMarketCollection=Ql,exports.LocalizationStatusCard=Vs,exports.LocationCard=co,exports.LocationCardCollection=Zl,exports.LocationMap=pu,exports.LoginTemplate=hd,exports.MarketReadinessLandingTemplate=pf,exports.MarketReadinessTemplate=Zd,exports.MessageListCard=Ds,exports.Modal=cc,exports.MoreInfoHighlightsCard=Jo,exports.MoreInfoHighlightsCollection=fl,exports.ProResourceTemplate=ud,exports.ProductContactActions=oe,exports.ProductDetailPageTemplate=Ju,exports.ProductJourneyTemplate=tf,exports.QuantityCheckoutCard=$o,exports.RecentArticleCard=ss,exports.RecentArticleCollection=Gl,exports.RecommendedNextStepCard=ws,exports.ResilientImage=P,exports.SampleOrderSummaryPanel=pl,exports.SearchCombobox=So,exports.SearchFilter=xo,exports.SearchResultsTemplate=md,exports.SingleButtonCard=cs,exports.SocialLinkRow=Ho,exports.Spinner=_,exports.StandardBannerContainer=Qc,exports.StandardCarousel=Fo,exports.StandardCopyBannerContent=Vo,exports.StandardCopyHero=Fl,exports.StatusFlowActionCard=ks,exports.StatusFlowConnector=Ps,exports.StatusFlowDiagram=mu,exports.StatusFlowGroup=hu,exports.StatusFlowLegendCard=Ls,exports.StatusFlowPanel=_u,exports.StatusSummaryCard=zs,exports.SwatchCard=Ws,exports.SwatchPurchasePanel=Pl,exports.TextCard=Hl,exports.Textarea=ee,exports.TopNavActions=zc,exports.TopNavBar=Vc,exports.TopNavMegaMenu=Fc,exports.TopNavSearchResults=Lc,exports.VerticalCheckboxListCollection=Eu,exports.VerticalColorSwatchList=Lo,exports.WarrantyCard=Ul,exports.WhereToBuySearchBanner=$c,exports.WhereToBuyTemplate=_d,exports.userTypeOptions=Du;
|