formica-ui-lib 1.0.347 → 1.0.348
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/componentProps/atoms/dropdown/DropdownProps.d.ts +1 -0
- package/dist/componentProps/atoms/input/inputProps.d.ts +5 -0
- package/dist/componentProps/molecules/searchcombobox/SearchComboboxProps.d.ts +11 -0
- package/dist/componentProps/organisms/cart/shippingaddressform/ShippingAddressFormProps.d.ts +15 -0
- package/dist/componentProps/organisms/navigation/PromoBannerProps.d.ts +8 -0
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1467 -1359
- package/dist/stories/organisms/navigation/PromoBanner/PromoBanner.d.ts +4 -0
- package/dist/tailwind.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require(`react`),l=s(c,1);c=s(c);let u=require(`react/jsx-runtime`),d=require(`react-dom`);var f,p=(e,t,{brightness:n,glossiness:r})=>new Promise(i=>{e.setMaterial(g(t,n,r),i)}),m=()=>{let e=window;return e.Sketchfab?Promise.resolve(e.Sketchfab):(f||=new Promise((t,n)=>{let r=document.createElement(`script`);r.src=`https://static.sketchfab.com/api/sketchfab-viewer-1.12.1.js`,r.async=!0,r.onload=()=>e.Sketchfab?t(e.Sketchfab):n(Error(`Viewer SDK unavailable`)),r.onerror=()=>{r.remove(),n(Error(`Viewer SDK could not load`))},document.head.appendChild(r)}).catch(e=>{throw f=void 0,e}),f)},h=(e,t,n,r=1,i)=>new Promise((a,o)=>{let s=t.channels.AlbedoPBR?`AlbedoPBR`:`DiffuseColor`,c=t.channels[s];if(!c){o(Error(`This material has no supported color channel.`));return}e.addTexture(n,(n,l)=>{if(n){o(Error(`Texture could not load. Check the image URL and CORS permissions.`));return}let u={...t,channels:{...t.channels,[s]:{...c,enable:!0,texture:{...c.texture,uid:l}}}};e.setMaterial(g(u,r,i),()=>a(u))})}),g=(e,t,n)=>{let r={...e.channels},i=r.AlbedoPBR?`AlbedoPBR`:`DiffuseColor`,a=r[i];if(r[i]={...a,factor:(a.factor??1)*t},n!==void 0){let e=r.RoughnessPBR?`RoughnessPBR`:`GlossinessPBR`,t=r[e];if(t){let i={...t};delete i.texture,r[e]={...i,enable:!0,factor:e===`RoughnessPBR`?1-n:n}}}return{...e,channels:r}},_=({iframe:e,embedUrl:t,onReady:n,onError:r})=>{let i=!1,a=()=>{i=!0,window.clearTimeout(s)},o=e=>{i||(a(),r(e))},s=window.setTimeout(()=>o(`Viewer is taking too long to load. Check your connection and reload the story.`),45e3),c=e=>{i||e.getMaterialList((t,r)=>{if(!i){if(t){o(`Could not read the model materials.`);return}a(),n(e,r)}})},l=e=>{i||(e.addEventListener(`viewerready`,()=>c(e)),e.start())};return(async()=>{try{let n=new URL(t),r=await m();if(i)return;new r(e).init(n.pathname.split(`/`)[2],{...Object.fromEntries(n.searchParams),autostart:1,success:l,error:()=>o(`Could not initialize the viewer.`)})}catch{o(`Could not load the viewer. Check your connection and embed URL.`)}})(),a},v=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})},y={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`},b={inherit:`text-inherit`,primary:`text-primary`,secondary:`text-secondary`,secondaryHover:`text-secondaryHover`,accent:`text-accent`},x=e=>e?e.startsWith(`fa-`)?e:`fa-${e}`:``,S=({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=y[r],l=b[i],d=x(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})})},C={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`},w=({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:`${C[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]})},T=`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`,E={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`},D={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`},O={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`},k={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`},A={"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`},j={"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`},M=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?k[r]:D[r],d=t===`chip`?O[r]:u;return[T,E[t],d,A[l],i?j[l]??``:``,a?`w-full`:``,c,s].filter(Boolean).join(` `)},N=()=>`body`,P=e=>{let{label:t,children:n,iconType:r,iconName:i,iconAlt:a=``,iconSize:o=`md`,iconPosition:s=`left`,variant:c=`solid`,intent:l=`primary`,buttonType:d,size:f=`md`,buttonAlignment:p=`justify-center`,className:m=``,active:h=!1,fullWidth:g=!1,type:_=`button`,...y}=e,b=null;r&&i&&(b=i===`spinner`?(0,u.jsx)(w,{label:``,size:o}):(0,u.jsx)(S,{iconType:r,iconName:i,alt:a,size:o}));let x=M({variant:c,intent:d??l,size:f,active:h,fullWidth:g,iconOnly:!t&&!n&&!!b,className:m,buttonAlignment:p}),C=(0,u.jsxs)(u.Fragment,{children:[s===`left`&&b,n??(t?(0,u.jsx)(v,{as:`span`,variant:N(),className:`text-inherit!`,children:t}):null),s===`right`&&b]});return(0,u.jsx)(`button`,{type:_,className:x,...y,children:C})};function F({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 I(){return typeof process<`u`&&process?.env?.NETLIFY===`true`}var L=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??I(),p=typeof e==`string`&&e.startsWith(`http`),m=typeof a==`number`?a:void 0,h=e;return f&&p&&(h=F({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})});L.displayName=`Image`;var R=`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,ee=(e,t)=>{if(!t)return e;try{let t=new URL(e),n=t.hostname.toLowerCase();if(n===`youtube.com`||n.endsWith(`.youtube.com`)||n===`youtube-nocookie.com`||n.endsWith(`.youtube-nocookie.com`))return t.searchParams.set(`mute`,`1`),t.toString();if(n===`vimeo.com`||n.endsWith(`.vimeo.com`))return t.searchParams.set(`muted`,`1`),t.toString()}catch{return e}return e},z=({src:e,title:t,muted:n=!0,className:r=``,allow:i=R,allowFullScreen:a=!0,loading:o=`lazy`,...s})=>(0,u.jsx)(`iframe`,{src:ee(e,n),title:t,className:`w-full ${r}`.trim(),allow:i,allowFullScreen:a,loading:o,...s}),te=({embedUrl:e,title:t,height:n=500,iframeRef:r})=>e?(0,u.jsx)(`div`,{className:`w-full overflow-hidden`,children:(0,u.jsx)(`iframe`,{ref:r,src:e,title:t,width:`100%`,height:n,loading:`lazy`,allow:`autoplay; fullscreen; xr-spatial-tracking`,allowFullScreen:!0,referrerPolicy:`strict-origin-when-cross-origin`,className:`block w-full border-0`})}):null,ne=e=>typeof e==`string`&&e.trim().length>0?e:void 0,re=({src:e,fallbackSrc:t,placeholderSrc:n,alt:r,imageClassName:i=``,placeholderClassName:a=``,onImageStatusChange:o,...s})=>{let l=c.default.useRef(null),d=ne(e),f=ne(t),p=ne(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)(L,{...s,ref:l,src:m,alt:r,className:`${i} ${g===`loaded`?`opacity-100`:`opacity-0`}`.trim(),onError:b,onLoad:y}):null]})},ie=({id:e,name:t,value:n=``,placeholder:r=``,ariaLabel:i,disabled:a=!1,readOnly:o=!1,required:s=!1,hasError:c=!1,rows:l=4,onChange:d,onBlur:f,onFocus:p})=>{let m=[`w-full resize-y rounded-md border bg-white px-4 py-3 text-sm text-primary outline-none transition-colors placeholder-tertiary`,c?`border-accent`:`border-secondaryHover`,a?`cursor-not-allowed opacity-60`:``].filter(Boolean).join(` `);return(0,u.jsx)(`textarea`,{id:e,name:t,value:n,placeholder:r,"aria-label":i,"aria-invalid":c||void 0,disabled:a,readOnly:o,required:s,rows:l,className:m,onChange:d,onBlur:f,onFocus:p})},ae={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`},oe={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`},B=`mt-10 md:mt-20`,V=({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?B:``} ${oe[a]} ${t}`.trim(),children:(0,u.jsx)(`div`,{className:`mx-auto w-full ${ae[i]} ${n}`.trim(),children:e})}),H={1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`},se={sm:`gap-3`,md:`gap-6`,lg:`gap-8`,xl:`gap-12`},U=({children:e,className:t=``,gridClassName:n=``,maxWidth:r=`6xl`,spacing:i=`none`,columns:a=3,gap:o=`md`})=>(0,u.jsx)(V,{className:t,maxWidth:r,spacing:i,children:(0,u.jsx)(`div`,{className:`grid ${H[a]} ${se[o]} ${n}`.trim(),children:e})}),ce={sm:`gap-2`,md:`gap-4`,lg:`gap-6`,xl:`gap-8`},le={start:`items-start`,center:`items-center`,end:`items-end`,stretch:`items-stretch`},ue={start:`justify-start`,center:`justify-center`,end:`justify-end`,between:`justify-between`,around:`justify-around`,evenly:`justify-evenly`},de=({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`} ${ce[n]} ${le[r]} ${ue[i]} ${t}`.trim(),children:e}),fe=`font-bold text-primary`,pe=(e,t,n)=>{e?.({label:t,href:n})},W=({heading:e,address:t,mapLink:n,hours:r,phone:i,email:a,onAddressClick:o,onMapClick:s,onPhoneClick:c,onEmailClick:l})=>{let d=t?.lines.join(` `);return(0,u.jsxs)(`article`,{className:`w-full bg-white py-10 md:py-16`,children:[(0,u.jsx)(v,{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)(v,{variant:`bold`,className:`text-primary`,children:t.label??`Address:`}),(0,u.jsx)(`div`,{children:t.href?(0,u.jsx)(v,{as:`a`,variant:`link`,href:t.href,onClick:()=>pe(o,d??``,t.href),children:d}):(0,u.jsx)(v,{as:`span`,variant:`body`,className:`text-base`,children:d})})]}):null,n?(0,u.jsx)(`div`,{children:n.href?(0,u.jsx)(v,{as:`a`,variant:`link`,href:n.href,onClick:()=>pe(s,n.label,n.href),children:n.label}):(0,u.jsx)(v,{as:`span`,variant:`body`,className:`text-base`,children:n.label})}):null]}):null,r?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{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:fe,children:[e.dayLabel,`:`]}),(0,u.jsx)(`dd`,{children:e.hours})]},e.dayLabel))})]}):null,i?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{variant:`bold`,className:`text-primary`,children:i.label??`Telephone Number:`}),(0,u.jsx)(`div`,{children:i.href?(0,u.jsx)(v,{as:`a`,variant:`link`,href:i.href,onClick:()=>pe(c,i.value,i.href),children:i.value}):(0,u.jsx)(v,{as:`span`,variant:`body`,className:`text-base`,children:i.value})})]}):null,a?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{variant:`bold`,className:`text-primary`,children:a.label??`Email Address:`}),(0,u.jsx)(`div`,{children:a.href?(0,u.jsx)(v,{as:`a`,variant:`link`,href:a.href,onClick:()=>pe(l,a.value,a.href),children:a.value}):(0,u.jsx)(v,{as:`span`,variant:`body`,className:`text-base`,children:a.value})})]}):null]})]})},me=(e,t,n)=>Math.max(t,Math.min(n,e)),he=e=>[`h-12 w-12 border-2 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),ge=({imageSrc:e,imageAlt:t,title:n,brand:r,decorNumber:i,productType:a,quantity:o,errorMessage:s,price:c,minQuantity:l=1,maxQuantity:d=99,freeLabel:f=`Free`,removeItemLabel:p=`Remove ${n} from cart`,decreaseQuantityLabel:m=`Decrease quantity`,increaseQuantityLabel:h=`Increase quantity`,onQuantityChange:g,onRemoveItem:_})=>{let y=me(o,l,d),b=()=>{let e=me(y-1,l,d);e!==y&&g?.(e)},x=()=>{let e=me(y+1,l,d);e!==y&&g?.(e)},S=y>l,C=y<d;return(0,u.jsxs)(`div`,{className:`relative flex w-full rounded-lg bg-tertiaryActive p-5`,children:[(0,u.jsx)(P,{className:`absolute top-5 right-5`,iconType:`fa-regular`,iconName:`trash-can`,intent:`primary`,variant:`ghost`,onClick:_,"aria-label":p}),(0,u.jsx)(L,{src:e,alt:t,quality:90,className:`h-32 w-32 rounded-lg object-cover`}),(0,u.jsxs)(`div`,{className:`ml-4 min-w-0 flex-1 content-center`,children:[i?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-tertiary`,children:i}):null,(0,u.jsx)(v,{variant:`free`,className:`text-primary text-md font-extrabold`,children:n}),(0,u.jsxs)(`div`,{className:`flex justify-between`,children:[r?(0,u.jsx)(v,{variant:`free`,className:`text-md text-primary`,children:r}):null,(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-md font-bold text-primary`,children:a===`sample`&&c.value===0?f:c.label})]}),s?(0,u.jsx)(v,{variant:`free`,role:`alert`,className:`mt-2 text-sm text-accent wrap-break-word`,children:s}):null,(0,u.jsxs)(`div`,{className:`mt-2 flex items-stretch gap-1`,children:[(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":m,type:`button`,disabled:!S,onClick:b,className:he(S)}),(0,u.jsx)(`div`,{className:`flex min-w-10 items-center justify-center`,children:(0,u.jsx)(v,{as:`span`,variant:`free`,className:`text-xl`,children:y})}),(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":h,type:`button`,disabled:!C,onClick:x,className:he(C)})]})]})]})},_e=({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)(P,{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)})})},G=({children:e,onCardClick:t,ariaLabel:n,ariaControls:r,ariaExpanded:i,ariaPressed:a,className:o})=>(0,u.jsx)(`button`,{type:`button`,onClick:t,"aria-label":n,"aria-controls":r,"aria-expanded":i,"aria-pressed":a,className:o||`block text-left bg-transparent border-0 p-0 cursor-pointer`,children:e}),ve=({statuses:e,readyLabel:t=`Good`,notReadyLabel:n=`No Good`})=>(0,u.jsx)(`span`,{className:`flex shrink-0 items-start gap-2`,"aria-label":`Readiness`,children:e.map(e=>{let r=e.ready?t:n,i=`${e.label}: ${r}`;return(0,u.jsxs)(`span`,{"aria-label":i,title:i,className:`inline-flex min-w-4 flex-col items-center gap-1`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-2 w-2 rounded-full ${e.ready?`bg-primary`:`bg-borderTertiary`}`}),(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`text-[10px] font-bold uppercase leading-none text-tertiary`,children:e.shortLabel})]},e.id)})}),ye=(e,t)=>e&&t?`border-accent bg-accent/10`:e?`border-primary bg-tertiaryActive`:`border-borderTertiary bg-secondary hover:border-primary`,be=({sampleId:e,sku:t,isSampleable:n,bigCommerceReady:r,selected:i=!1,selectionMode:a=!1,selectLabel:o=`Select sample`,deselectLabel:s=`Deselect sample`,onSampleClick:c})=>{let l=[...r===void 0?[]:[{id:`big-commerce`,shortLabel:`BC`,label:`Big Commerce`,ready:r}],{id:`sample`,shortLabel:`SMP`,label:`Sample`,ready:n}];return(0,u.jsx)(G,{ariaLabel:a?`${i?s:o} ${t}`:t,ariaPressed:i,className:`w-full rounded-md border p-3 text-left transition ${ye(i,a)}`,onCardClick:()=>c({sampleId:e,sku:t}),children:(0,u.jsxs)(`span`,{className:`flex items-start gap-2`,children:[a?(0,u.jsx)(S,{iconType:i?`fa-solid`:`fa-regular`,iconName:i?`square-check`:`square`,alt:``,size:`sm`,color:i?`accent`:`inherit`,className:`mt-0.5 w-5 shrink-0`}):null,(0,u.jsx)(`span`,{className:`min-w-0 flex-1 break-all text-sm font-bold text-primary`,children:t}),(0,u.jsx)(ve,{statuses:l})]})})},xe=(e,t)=>e&&t?`border-accent bg-accent/10`:e?`border-primary bg-tertiaryActive`:`border-borderTertiary bg-secondary hover:border-primary`,Se=({skuId:e,sku:t,lxReady:n,bigCommerceReady:r,isForSale:i,grade:a,finish:o,size:s,selected:c=!1,selectionMode:l=!1,forSaleLabel:d=`For sale`,notForSaleLabel:f=`Not for sale`,selectLabel:p=`Select sheet`,deselectLabel:m=`Deselect sheet`,onSkuClick:h})=>{let g=i?d:f,_=[{id:`lx`,shortLabel:`LX`,label:`LX`,ready:n},...r===void 0?[]:[{id:`big-commerce`,shortLabel:`BC`,label:`Big Commerce`,ready:r}],{id:`ecommerce`,shortLabel:`EC`,label:`Is Ecomm`,ready:i}];return(0,u.jsx)(G,{ariaLabel:l?`${c?m:p} ${t}`:t,ariaPressed:c,className:`w-full rounded-md border p-3 text-left transition ${xe(c,l)}`,onCardClick:()=>h({skuId:e,sku:t}),children:(0,u.jsxs)(`span`,{className:`flex items-start gap-2`,children:[l?(0,u.jsx)(S,{iconType:c?`fa-solid`:`fa-regular`,iconName:c?`square-check`:`square`,alt:``,size:`sm`,color:c?`accent`:`inherit`,className:`mt-0.5 w-5 shrink-0`}):null,(0,u.jsx)(S,{iconType:`fa-solid`,iconName:i?`shop`:`shop-slash`,alt:g,title:g,size:`sm`,className:`mt-0.5 w-5 shrink-0 ${i?``:`text-secondaryHover`}`}),(0,u.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`span`,{className:`block text-sm font-bold text-primary`,children:t}),(0,u.jsxs)(`span`,{className:`mt-1 block text-xs text-tertiary`,children:[o,` · `,a,` · `,s]})]}),(0,u.jsx)(ve,{statuses:_})]})})},Ce=e=>e===`saved`?`text-saleGreen`:e===`error`?`text-accent`:`text-yellow-700`,K=({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)(w,{label:``,size:`xs`}):(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`circle-exclamation`,alt:``,size:`xs`,className:Ce(e)}),t]}),r?(0,u.jsxs)(`span`,{className:`ml-4`,children:[`Saved `,r]}):null,n?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:n}):null]}),q=e=>(0,u.jsx)(P,{variant:`ghost`,size:`md`,...e}),we=({decorId:e,decorCode:t,name:n,imageUrl:r,imageAlt:i=``,availableSheetCount:a,sheetCount:o,availableSampleCount:s,sampleCount:l,sheetLabel:d=`Sheets`,sampleLabel:f=`Samples`,openLabel:p=`Open`,actionsLabel:m=`Actions`,deleteLabel:h=`Delete decor`,disabled:g=!1,onDecorClick:_,onDeleteDecorRequest:y})=>{let[b,x]=(0,c.useState)(!1),C=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!b)return;let e=e=>{C.current?.contains(e.target)||x(!1)},t=e=>{e.key===`Escape`&&x(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[b]);let w=(0,u.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-3 md:gap-4`,children:[(0,u.jsx)(`div`,{className:`flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-md border border-borderTertiary bg-adminSideNavBackground md:h-16 md:w-16`,children:r?(0,u.jsx)(L,{src:r,alt:i,quality:85,fit:`cover`,className:`h-full w-full object-cover`}):(0,u.jsx)(S,{iconType:`fa-regular`,iconName:`image`,alt:`No decor image available`,size:`lg`,className:`text-tertiary`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1 md:flex md:items-center md:gap-4`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 md:flex-1`,children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`truncate text-sm font-bold text-primary md:text-base`,children:n}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 font-mono text-xs text-tertiary`,children:t})]}),(0,u.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-x-2 gap-y-1 text-xs text-primary md:mt-0 md:shrink-0 md:flex-nowrap md:justify-end md:whitespace-nowrap`,children:[(0,u.jsx)(`span`,{"aria-label":`${d}: ${a.toLocaleString()} available out of ${o.toLocaleString()}`,children:(0,u.jsxs)(`span`,{"aria-hidden":`true`,children:[d,` `,a.toLocaleString(),` /`,` `,o.toLocaleString()]})}),(0,u.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,u.jsx)(`span`,{"aria-label":`${f}: ${s.toLocaleString()} available out of ${l.toLocaleString()}`,children:(0,u.jsxs)(`span`,{"aria-hidden":`true`,children:[f,` `,s.toLocaleString(),` /`,` `,l.toLocaleString()]})})]})]})]});return(0,u.jsxs)(`article`,{className:`group relative flex w-full items-center rounded-md border border-borderTertiary bg-secondary p-3 shadow-sm transition hover:border-primary md:p-4`,children:[_&&!g?(0,u.jsx)(G,{ariaLabel:`${p} ${n} (${t})`,className:`absolute inset-0 z-10 cursor-pointer rounded-md text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2`,onCardClick:()=>_({decorId:e,decorCode:t}),children:(0,u.jsx)(`span`,{className:`sr-only`,children:`${p} ${n}`})}):null,w,y&&!g?(0,u.jsxs)(`div`,{ref:C,className:`relative z-20 ml-1 shrink-0`,children:[(0,u.jsx)(q,{iconType:`fa-solid`,iconName:`ellipsis-vertical`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`neutral`,"aria-label":`${m} for ${n} (${t})`,"aria-haspopup":`menu`,"aria-expanded":b,onClick:()=>x(e=>!e)}),b?(0,u.jsx)(`div`,{role:`menu`,className:`absolute right-0 top-full z-30 mt-1 min-w-40 rounded-md border border-borderTertiary bg-secondary p-1 shadow-lg`,children:(0,u.jsx)(P,{label:h,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,iconSize:`sm`,size:`sm`,variant:`ghost`,intent:`danger`,fullWidth:!0,role:`menuitem`,buttonAlignment:`justify-start`,onClick:()=>{x(!1),y({decorId:e,decorCode:t,name:n,sheetCount:o,sampleCount:l})}})}):null]}):null,(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`sm`,className:`ml-1 shrink-0 text-tertiary`})]})},Te=`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`,Ee=`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`,De=`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`,Oe=`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`,ke=`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`,Ae=`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`,je=`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`,Me=`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`,J=`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`,Ne={formica:Te,hartsonkennedy:ke,trespa:je,arpa:Oe,homapal:Ae,fenix:De,broadview:Me,getacore:`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20viewBox='0%200%203685%20566.9'%3e%3c!--%20Generator:%20Adobe%20Illustrator%2029.8.7,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%202.1.1%20Build%201)%20--%3e%3cdefs%3e%3cstyle%3e%20.st0%20{%20fill:%20%23fff;%20}%20%3c/style%3e%3c/defs%3e%3cpath%20class='st0'%20d='M3605.9,125.5c0,33.2-25.8,57.6-59.8,57.6s-60-24.1-60-57.6,26.2-57.6,60-57.6,59.8,24.6,59.8,57.6ZM3495.3,125.5c0,28.7,21.2,49.4,50.9,49.4s50.8-21.4,50.8-49.4-21.4-49.7-50.8-49.7-50.9,21.7-50.9,49.7ZM3560.8,131.6l14.6,28.7h-13.7l-13.7-26.4h-14.1v26.4h-12.6v-69.7h29c13.2,0,21.7,7.8,21.7,21.4s-3.7,16.4-11.2,19.6ZM3533.8,123.4h13.2c8.2,0,12.3-3.7,12.3-11.2s-4.1-11.2-12.3-11.2h-13.2v22.3Z'/%3e%3cg%3e%3cpath%20class='st0'%20d='M435.8,285.3h15.5c4.1,0,7.3,3.3,7.3,7.3v150.5c0,2.1-.9,4.2-2.4,5.6-38.7,35.4-93.7,53.1-151.6,53.1-130,0-225.5-92.9-225.5-218.4s95.5-218.4,226.1-218.4,112.2,18,150.1,53.9c2.9,2.8,3,7.5.2,10.4l-9.8,10.4c-2.8,2.9-7.3,3-10.3.3-36.5-33.2-79.7-46.1-129.6-46.1-112.1,0-195.3,81.2-195.3,189.5s83.2,189.5,195.3,189.5,85.2-10.5,119.7-37.1c1.8-1.4,2.9-3.7,2.9-6v-137.3c0-4,3.3-7.3,7.3-7.3'/%3e%3cpath%20class='st0'%20d='M1044.7,96.4h-146.6c-2.4,0-4.3-1.9-4.3-4.3v-19.7c0-2.4,1.9-4.3,4.3-4.3h333.3c2.4,0,4.3,1.9,4.3,4.3v19.7c0,2.4-1.9,4.3-4.3,4.3h-146.6c-2.4,0-4.3,1.9-4.3,4.3v393.7c0,2.4-1.9,4.3-4.3,4.3h-22.8c-2.4,0-4.3-1.9-4.3-4.3V100.8c0-2.4-1.9-4.3-4.3-4.3'/%3e%3cpath%20class='st0'%20d='M1427.9,115.4l-172.4,379.7c-1,2.3-3.3,3.7-5.8,3.7h-19.8c-4.7,0-7.7-4.8-5.8-9.1l192.5-417.9c1-2.3,3.3-3.7,5.8-3.7h23.3c2.5,0,4.8,1.4,5.8,3.7l192.5,417.9c1.9,4.2-1.1,9.1-5.8,9.1h-19.8c-2.5,0-4.8-1.5-5.8-3.7l-173-379.7c-2.3-5-9.4-5-11.6,0'/%3e%3cpath%20class='st0'%20d='M1679.1,283.5c0-125.5,95.5-218.4,223.6-218.4s113.1,18.7,150.6,56.7c1.6,1.6,1.6,4.3,0,5.9l-14.1,14.5c-1.5,1.6-4.1,1.6-5.7,0-36.4-34.3-80.4-48.3-129.6-48.3-110.3,0-193.4,81.2-193.4,189.5s83.2,189.5,193.4,189.5,93.1-14.6,129.6-48.9c1.6-1.5,4.1-1.5,5.7,0l14.1,14.5c1.6,1.6,1.6,4.3,0,5.9-37.5,38-91.1,57.4-150.6,57.4-128.1,0-223.6-92.9-223.6-218.4'/%3e%3cpath%20class='st0'%20d='M2996.7,488.2l-94.8-132.5c-2.7-3.7-.9-8.9,3.5-10.4,58.7-20.7,92.3-66.8,92.3-132s-65.3-145.3-173.9-145.3h-147.9c-3.8,0-6.8,3.1-6.8,6.8v417.3c0,3.8,3,6.8,6.8,6.8h17.8c3.8,0,6.8-3.1,6.8-6.8v-127.4c0-3.8,3-6.8,6.8-6.8h116.5c13.3,0,25.7-1,37.9-2.5,2.5-.3,4.9.7,6.3,2.8l98.6,137.9c1.3,1.8,3.3,2.9,5.6,2.9h19c5.6,0,8.8-6.3,5.6-10.8ZM2823.8,330.3h-116.5c-3.8,0-6.8-3.1-6.8-6.8V103.1c0-3.8,3-6.8,6.8-6.8h116.5c92.5,0,141.8,42.5,141.8,117s-49.3,117-141.8,117Z'/%3e%3cpath%20class='st0'%20d='M577.8,499.1h-15.9c-4.3,0-7.8-3.5-7.8-7.7V75.9c0-4.3,3.5-7.8,7.8-7.8h15.9c4.3,0,7.8,3.5,7.8,7.8v415.5c0,4.3-3.5,7.7-7.8,7.7'/%3e%3cpath%20class='st0'%20d='M620.8,266.3h219c3,0,5.4,2.4,5.4,5.4v16.9c0,3-2.4,5.4-5.4,5.4h-219c-3,0-5.4-2.4-5.4-5.4v-16.9c0-3,2.4-5.4,5.4-5.4'/%3e%3cpath%20class='st0'%20d='M620.8,471.4h219c3,0,5.4,2.4,5.4,5.4v16.9c0,3-2.4,5.4-5.4,5.4h-219c-3,0-5.4-2.4-5.4-5.4v-16.9c0-3,2.4-5.4,5.4-5.4'/%3e%3cpath%20class='st0'%20d='M620.8,68h219c3,0,5.4,2.4,5.4,5.4v16.9c0,3-2.4,5.4-5.4,5.4h-219c-3,0-5.4-2.4-5.4-5.4v-16.9c0-3,2.4-5.4,5.4-5.4'/%3e%3cpath%20class='st0'%20d='M3136.1,499.1h-15.9c-4.3,0-7.8-3.5-7.8-7.7V75.9c0-4.3,3.5-7.8,7.8-7.8h15.9c4.3,0,7.8,3.5,7.8,7.8v415.5c0,4.3-3.5,7.7-7.8,7.7'/%3e%3cpath%20class='st0'%20d='M3179.1,266.3h219c3,0,5.4,2.4,5.4,5.4v16.9c0,3-2.4,5.4-5.4,5.4h-219c-3,0-5.4-2.4-5.4-5.4v-16.9c0-3,2.4-5.4,5.4-5.4'/%3e%3cpath%20class='st0'%20d='M3179.1,471.4h219c3,0,5.4,2.4,5.4,5.4v16.9c0,3-2.4,5.4-5.4,5.4h-219c-3,0-5.4-2.4-5.4-5.4v-16.9c0-3,2.4-5.4,5.4-5.4'/%3e%3cpath%20class='st0'%20d='M3179.1,68h219c3,0,5.4,2.4,5.4,5.4v16.9c0,3-2.4,5.4-5.4,5.4h-219c-3,0-5.4-2.4-5.4-5.4v-16.9c0-3,2.4-5.4,5.4-5.4'/%3e%3cpath%20class='st0'%20d='M2335.5,65c-128.8,0-224.3,93.5-224.3,218.4s95.5,218.4,224.3,218.4,224.3-92.9,224.3-218.4-96.1-218.4-224.3-218.4ZM2335.5,472.9c-110.3,0-192.8-80.6-192.8-189.5s82.5-189.5,192.8-189.5,192.2,80.6,192.2,189.5-82.6,189.5-192.2,189.5Z'/%3e%3c/g%3e%3c/svg%3e`},Pe=e=>/^https?:\/\//i.test(e)||e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`),Fe=e=>e.trim().toLowerCase().replace(/\s+/g,``).replace(/[^a-z0-9]/g,``);function Ie(e){if(!e||Pe(e))return;let t=Fe(e);return Ne[t]?t:void 0}function Le(e,t){return e?Pe(e)?e:Ne[Fe(e)]??t:t}function Re(e,t){if(!e)return t;if(Pe(e))return e;let n=Fe(e);return n===`formica`?Ee:n===`broadview`?J:Ne[n]??t}var ze=({rangeId:e,name:t,rangeCode:n,company:r,region:i,subRegion:a,decorCount:o,decorLabel:s=`decors`,openLabel:l=`Open`,actionsLabel:d=`Actions`,deleteLabel:f=`Delete range`,deleteDisabled:p=!1,deleteBlockedMessage:m,disabled:h=!1,onRangeClick:g,onDeleteRangeRequest:_})=>{let[y,b]=(0,c.useState)(!1),x=(0,c.useRef)(null),C=Le(r),w=[r,i,a].filter(e=>e.trim()),T=o===1?`decor`:s;return(0,c.useEffect)(()=>{if(!y)return;let e=e=>{x.current?.contains(e.target)||b(!1)},t=e=>{e.key===`Escape`&&b(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[y]),(0,u.jsxs)(`article`,{className:`group relative flex w-full items-center rounded-md border border-borderTertiary bg-secondary p-3 shadow-sm transition hover:border-primary md:p-4`,children:[g&&!h?(0,u.jsx)(G,{ariaLabel:`${l} ${t}`,className:`absolute inset-0 z-10 cursor-pointer rounded-md text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2`,onCardClick:()=>g({rangeId:e}),children:(0,u.jsx)(`span`,{className:`sr-only`,children:`${l} ${t}`})}):null,(0,u.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-3 md:gap-4`,children:[(0,u.jsx)(`div`,{className:`flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-md border border-primary bg-primary p-2 md:h-16 md:w-16`,children:C?(0,u.jsx)(L,{src:C,alt:`${r} logo`,quality:85,fit:`contain`,className:`h-full w-full object-contain`}):(0,u.jsx)(S,{iconType:`fa-regular`,iconName:`building`,alt:`No company logo available`,size:`lg`,className:`text-secondary`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1 md:flex md:items-center md:gap-4`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 md:flex-1`,children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`truncate text-sm font-bold text-primary md:text-base`,children:t}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:w.length?w.join(` · `):`No location details`})]}),(0,u.jsxs)(v,{variant:`free`,className:`mt-2 text-xs font-bold text-primary md:mt-0 md:shrink-0 md:whitespace-nowrap`,children:[o.toLocaleString(),` `,T]})]})]}),_&&!h?(0,u.jsxs)(`div`,{ref:x,className:`relative z-20 ml-1 shrink-0`,children:[(0,u.jsx)(q,{iconType:`fa-solid`,iconName:`ellipsis-vertical`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`neutral`,"aria-label":`${d} for ${t}`,"aria-haspopup":`menu`,"aria-expanded":y,onClick:()=>b(e=>!e)}),y?(0,u.jsxs)(`div`,{role:`menu`,className:`absolute right-0 top-full z-30 mt-1 min-w-56 rounded-md border border-borderTertiary bg-secondary p-1 shadow-lg`,children:[(0,u.jsx)(P,{label:f,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,iconSize:`sm`,size:`sm`,variant:`ghost`,intent:`danger`,fullWidth:!0,role:`menuitem`,buttonAlignment:`justify-start`,disabled:p,onClick:()=>{b(!1),_({rangeId:e,name:t,rangeCode:n,company:r,region:i,subRegion:a,decorCount:o})}}),p&&m?(0,u.jsx)(v,{variant:`free`,className:`px-3 pb-2 text-xs text-tertiary`,children:m}):null]}):null]}):null,(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`sm`,className:`ml-1 shrink-0 text-tertiary`})]})};function Be(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 Ve(e){if(Array.isArray(e))return e}function He(e){if(Array.isArray(e))return Be(e)}function Ue(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function We(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,tt(r.key),r)}}function Ge(e,t,n){return t&&We(e.prototype,t),n&&We(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Ke(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=rt(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.
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require(`react`),l=s(c,1);c=s(c);let u=require(`react/jsx-runtime`),d=require(`react-dom`);var f,p=(e,t,{brightness:n,glossiness:r})=>new Promise(i=>{e.setMaterial(g(t,n,r),i)}),m=()=>{let e=window;return e.Sketchfab?Promise.resolve(e.Sketchfab):(f||=new Promise((t,n)=>{let r=document.createElement(`script`);r.src=`https://static.sketchfab.com/api/sketchfab-viewer-1.12.1.js`,r.async=!0,r.onload=()=>e.Sketchfab?t(e.Sketchfab):n(Error(`Viewer SDK unavailable`)),r.onerror=()=>{r.remove(),n(Error(`Viewer SDK could not load`))},document.head.appendChild(r)}).catch(e=>{throw f=void 0,e}),f)},h=(e,t,n,r=1,i)=>new Promise((a,o)=>{let s=t.channels.AlbedoPBR?`AlbedoPBR`:`DiffuseColor`,c=t.channels[s];if(!c){o(Error(`This material has no supported color channel.`));return}e.addTexture(n,(n,l)=>{if(n){o(Error(`Texture could not load. Check the image URL and CORS permissions.`));return}let u={...t,channels:{...t.channels,[s]:{...c,enable:!0,texture:{...c.texture,uid:l}}}};e.setMaterial(g(u,r,i),()=>a(u))})}),g=(e,t,n)=>{let r={...e.channels},i=r.AlbedoPBR?`AlbedoPBR`:`DiffuseColor`,a=r[i];if(r[i]={...a,factor:(a.factor??1)*t},n!==void 0){let e=r.RoughnessPBR?`RoughnessPBR`:`GlossinessPBR`,t=r[e];if(t){let i={...t};delete i.texture,r[e]={...i,enable:!0,factor:e===`RoughnessPBR`?1-n:n}}}return{...e,channels:r}},_=({iframe:e,embedUrl:t,onReady:n,onError:r})=>{let i=!1,a=()=>{i=!0,window.clearTimeout(s)},o=e=>{i||(a(),r(e))},s=window.setTimeout(()=>o(`Viewer is taking too long to load. Check your connection and reload the story.`),45e3),c=e=>{i||e.getMaterialList((t,r)=>{if(!i){if(t){o(`Could not read the model materials.`);return}a(),n(e,r)}})},l=e=>{i||(e.addEventListener(`viewerready`,()=>c(e)),e.start())};return(async()=>{try{let n=new URL(t),r=await m();if(i)return;new r(e).init(n.pathname.split(`/`)[2],{...Object.fromEntries(n.searchParams),autostart:1,success:l,error:()=>o(`Could not initialize the viewer.`)})}catch{o(`Could not load the viewer. Check your connection and embed URL.`)}})(),a},v=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})},y={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`},b={inherit:`text-inherit`,primary:`text-primary`,secondary:`text-secondary`,secondaryHover:`text-secondaryHover`,accent:`text-accent`},x=e=>e?e.startsWith(`fa-`)?e:`fa-${e}`:``,S=({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=y[r],l=b[i],d=x(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})})},C={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`},w=({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:`${C[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]})},T=`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`,E={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`},D={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`},O={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`},k={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`},A={"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`},j={"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`},M=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?k[r]:D[r],d=t===`chip`?O[r]:u;return[T,E[t],d,A[l],i?j[l]??``:``,a?`w-full`:``,c,s].filter(Boolean).join(` `)},N=()=>`body`,P=e=>{let{label:t,children:n,iconType:r,iconName:i,iconAlt:a=``,iconSize:o=`md`,iconPosition:s=`left`,variant:c=`solid`,intent:l=`primary`,buttonType:d,size:f=`md`,buttonAlignment:p=`justify-center`,className:m=``,active:h=!1,fullWidth:g=!1,type:_=`button`,...y}=e,b=null;r&&i&&(b=i===`spinner`?(0,u.jsx)(w,{label:``,size:o}):(0,u.jsx)(S,{iconType:r,iconName:i,alt:a,size:o}));let x=M({variant:c,intent:d??l,size:f,active:h,fullWidth:g,iconOnly:!t&&!n&&!!b,className:m,buttonAlignment:p}),C=(0,u.jsxs)(u.Fragment,{children:[s===`left`&&b,n??(t?(0,u.jsx)(v,{as:`span`,variant:N(),className:`text-inherit!`,children:t}):null),s===`right`&&b]});return(0,u.jsx)(`button`,{type:_,className:x,...y,children:C})};function F({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 I(){return typeof process<`u`&&process?.env?.NETLIFY===`true`}var L=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??I(),p=typeof e==`string`&&e.startsWith(`http`),m=typeof a==`number`?a:void 0,h=e;return f&&p&&(h=F({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})});L.displayName=`Image`;var R=`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,ee=(e,t)=>{if(!t)return e;try{let t=new URL(e),n=t.hostname.toLowerCase();if(n===`youtube.com`||n.endsWith(`.youtube.com`)||n===`youtube-nocookie.com`||n.endsWith(`.youtube-nocookie.com`))return t.searchParams.set(`mute`,`1`),t.toString();if(n===`vimeo.com`||n.endsWith(`.vimeo.com`))return t.searchParams.set(`muted`,`1`),t.toString()}catch{return e}return e},z=({src:e,title:t,muted:n=!0,className:r=``,allow:i=R,allowFullScreen:a=!0,loading:o=`lazy`,...s})=>(0,u.jsx)(`iframe`,{src:ee(e,n),title:t,className:`w-full ${r}`.trim(),allow:i,allowFullScreen:a,loading:o,...s}),B=({embedUrl:e,title:t,height:n=500,iframeRef:r})=>e?(0,u.jsx)(`div`,{className:`w-full overflow-hidden`,children:(0,u.jsx)(`iframe`,{ref:r,src:e,title:t,width:`100%`,height:n,loading:`lazy`,allow:`autoplay; fullscreen; xr-spatial-tracking`,allowFullScreen:!0,referrerPolicy:`strict-origin-when-cross-origin`,className:`block w-full border-0`})}):null,te=e=>typeof e==`string`&&e.trim().length>0?e:void 0,V=({src:e,fallbackSrc:t,placeholderSrc:n,alt:r,imageClassName:i=``,placeholderClassName:a=``,onImageStatusChange:o,...s})=>{let l=c.default.useRef(null),d=te(e),f=te(t),p=te(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)(L,{...s,ref:l,src:m,alt:r,className:`${i} ${g===`loaded`?`opacity-100`:`opacity-0`}`.trim(),onError:b,onLoad:y}):null]})},ne=({id:e,name:t,value:n=``,placeholder:r=``,ariaLabel:i,disabled:a=!1,readOnly:o=!1,required:s=!1,hasError:c=!1,rows:l=4,onChange:d,onBlur:f,onFocus:p})=>{let m=[`w-full resize-y rounded-md border bg-white px-4 py-3 text-sm text-primary outline-none transition-colors placeholder-tertiary`,c?`border-accent`:`border-secondaryHover`,a?`cursor-not-allowed opacity-60`:``].filter(Boolean).join(` `);return(0,u.jsx)(`textarea`,{id:e,name:t,value:n,placeholder:r,"aria-label":i,"aria-invalid":c||void 0,disabled:a,readOnly:o,required:s,rows:l,className:m,onChange:d,onBlur:f,onFocus:p})},re={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`},ie={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`},H=`mt-10 md:mt-20`,U=({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?H:``} ${ie[a]} ${t}`.trim(),children:(0,u.jsx)(`div`,{className:`mx-auto w-full ${re[i]} ${n}`.trim(),children:e})}),W={1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`},ae={sm:`gap-3`,md:`gap-6`,lg:`gap-8`,xl:`gap-12`},G=({children:e,className:t=``,gridClassName:n=``,maxWidth:r=`6xl`,spacing:i=`none`,columns:a=3,gap:o=`md`})=>(0,u.jsx)(U,{className:t,maxWidth:r,spacing:i,children:(0,u.jsx)(`div`,{className:`grid ${W[a]} ${ae[o]} ${n}`.trim(),children:e})}),oe={sm:`gap-2`,md:`gap-4`,lg:`gap-6`,xl:`gap-8`},se={start:`items-start`,center:`items-center`,end:`items-end`,stretch:`items-stretch`},ce={start:`justify-start`,center:`justify-center`,end:`justify-end`,between:`justify-between`,around:`justify-around`,evenly:`justify-evenly`},le=({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`} ${oe[n]} ${se[r]} ${ce[i]} ${t}`.trim(),children:e}),ue=`font-bold text-primary`,de=(e,t,n)=>{e?.({label:t,href:n})},fe=({heading:e,address:t,mapLink:n,hours:r,phone:i,email:a,onAddressClick:o,onMapClick:s,onPhoneClick:c,onEmailClick:l})=>{let d=t?.lines.join(` `);return(0,u.jsxs)(`article`,{className:`w-full bg-white py-10 md:py-16`,children:[(0,u.jsx)(v,{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)(v,{variant:`bold`,className:`text-primary`,children:t.label??`Address:`}),(0,u.jsx)(`div`,{children:t.href?(0,u.jsx)(v,{as:`a`,variant:`link`,href:t.href,onClick:()=>de(o,d??``,t.href),children:d}):(0,u.jsx)(v,{as:`span`,variant:`body`,className:`text-base`,children:d})})]}):null,n?(0,u.jsx)(`div`,{children:n.href?(0,u.jsx)(v,{as:`a`,variant:`link`,href:n.href,onClick:()=>de(s,n.label,n.href),children:n.label}):(0,u.jsx)(v,{as:`span`,variant:`body`,className:`text-base`,children:n.label})}):null]}):null,r?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{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:ue,children:[e.dayLabel,`:`]}),(0,u.jsx)(`dd`,{children:e.hours})]},e.dayLabel))})]}):null,i?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{variant:`bold`,className:`text-primary`,children:i.label??`Telephone Number:`}),(0,u.jsx)(`div`,{children:i.href?(0,u.jsx)(v,{as:`a`,variant:`link`,href:i.href,onClick:()=>de(c,i.value,i.href),children:i.value}):(0,u.jsx)(v,{as:`span`,variant:`body`,className:`text-base`,children:i.value})})]}):null,a?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{variant:`bold`,className:`text-primary`,children:a.label??`Email Address:`}),(0,u.jsx)(`div`,{children:a.href?(0,u.jsx)(v,{as:`a`,variant:`link`,href:a.href,onClick:()=>de(l,a.value,a.href),children:a.value}):(0,u.jsx)(v,{as:`span`,variant:`body`,className:`text-base`,children:a.value})})]}):null]})]})},pe=(e,t,n)=>Math.max(t,Math.min(n,e)),me=e=>[`h-12 w-12 border-2 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),he=({imageSrc:e,imageAlt:t,title:n,brand:r,decorNumber:i,productType:a,quantity:o,errorMessage:s,price:c,minQuantity:l=1,maxQuantity:d=99,freeLabel:f=`Free`,removeItemLabel:p=`Remove ${n} from cart`,decreaseQuantityLabel:m=`Decrease quantity`,increaseQuantityLabel:h=`Increase quantity`,onQuantityChange:g,onRemoveItem:_})=>{let y=pe(o,l,d),b=()=>{let e=pe(y-1,l,d);e!==y&&g?.(e)},x=()=>{let e=pe(y+1,l,d);e!==y&&g?.(e)},S=y>l,C=y<d;return(0,u.jsxs)(`div`,{className:`relative flex w-full rounded-lg bg-tertiaryActive p-5`,children:[(0,u.jsx)(P,{className:`absolute top-5 right-5`,iconType:`fa-regular`,iconName:`trash-can`,intent:`primary`,variant:`ghost`,onClick:_,"aria-label":p}),(0,u.jsx)(L,{src:e,alt:t,quality:90,className:`h-32 w-32 rounded-lg object-cover`}),(0,u.jsxs)(`div`,{className:`ml-4 min-w-0 flex-1 content-center`,children:[i?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-tertiary`,children:i}):null,(0,u.jsx)(v,{variant:`free`,className:`text-primary text-md font-extrabold`,children:n}),(0,u.jsxs)(`div`,{className:`flex justify-between`,children:[r?(0,u.jsx)(v,{variant:`free`,className:`text-md text-primary`,children:r}):null,(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-md font-bold text-primary`,children:a===`sample`&&c.value===0?f:c.label})]}),s?(0,u.jsx)(v,{variant:`free`,role:`alert`,className:`mt-2 text-sm text-accent wrap-break-word`,children:s}):null,(0,u.jsxs)(`div`,{className:`mt-2 flex items-stretch gap-1`,children:[(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":m,type:`button`,disabled:!S,onClick:b,className:me(S)}),(0,u.jsx)(`div`,{className:`flex min-w-10 items-center justify-center`,children:(0,u.jsx)(v,{as:`span`,variant:`free`,className:`text-xl`,children:y})}),(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":h,type:`button`,disabled:!C,onClick:x,className:me(C)})]})]})]})},ge=({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)(P,{type:`button`,label:e.label,iconName:e.iconName,iconType:e.iconName?e.iconType??`fa-solid`:void 0,iconAlt:e.iconAlt,"aria-label":e.ariaLabel,disabled:e.disabled,intent:r?`accent`:`muted`,variant:r?`solid`:`outline`,buttonAlignment:`justify-center`,onClick:()=>n(e),className:r?`h-12 w-full`:`h-12 w-full hover:border-accent! hover:text-accent! active:border-accentActive! active:text-accentActive!`},e.id)})})},K=({children:e,onCardClick:t,ariaLabel:n,ariaControls:r,ariaExpanded:i,ariaPressed:a,className:o})=>(0,u.jsx)(`button`,{type:`button`,onClick:t,"aria-label":n,"aria-controls":r,"aria-expanded":i,"aria-pressed":a,className:o||`block text-left bg-transparent border-0 p-0 cursor-pointer`,children:e}),_e=({statuses:e,readyLabel:t=`Good`,notReadyLabel:n=`No Good`})=>(0,u.jsx)(`span`,{className:`flex shrink-0 items-start gap-2`,"aria-label":`Readiness`,children:e.map(e=>{let r=e.ready?t:n,i=`${e.label}: ${r}`;return(0,u.jsxs)(`span`,{"aria-label":i,title:i,className:`inline-flex min-w-4 flex-col items-center gap-1`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-2 w-2 rounded-full ${e.ready?`bg-primary`:`bg-borderTertiary`}`}),(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`text-[10px] font-bold uppercase leading-none text-tertiary`,children:e.shortLabel})]},e.id)})}),ve=(e,t)=>e&&t?`border-accent bg-accent/10`:e?`border-primary bg-tertiaryActive`:`border-borderTertiary bg-secondary hover:border-primary`,ye=({sampleId:e,sku:t,isSampleable:n,bigCommerceReady:r,selected:i=!1,selectionMode:a=!1,selectLabel:o=`Select sample`,deselectLabel:s=`Deselect sample`,onSampleClick:c})=>{let l=[...r===void 0?[]:[{id:`big-commerce`,shortLabel:`BC`,label:`Big Commerce`,ready:r}],{id:`sample`,shortLabel:`SMP`,label:`Sample`,ready:n}];return(0,u.jsx)(K,{ariaLabel:a?`${i?s:o} ${t}`:t,ariaPressed:i,className:`w-full rounded-md border p-3 text-left transition ${ve(i,a)}`,onCardClick:()=>c({sampleId:e,sku:t}),children:(0,u.jsxs)(`span`,{className:`flex items-start gap-2`,children:[a?(0,u.jsx)(S,{iconType:i?`fa-solid`:`fa-regular`,iconName:i?`square-check`:`square`,alt:``,size:`sm`,color:i?`accent`:`inherit`,className:`mt-0.5 w-5 shrink-0`}):null,(0,u.jsx)(`span`,{className:`min-w-0 flex-1 break-all text-sm font-bold text-primary`,children:t}),(0,u.jsx)(_e,{statuses:l})]})})},be=(e,t)=>e&&t?`border-accent bg-accent/10`:e?`border-primary bg-tertiaryActive`:`border-borderTertiary bg-secondary hover:border-primary`,xe=({skuId:e,sku:t,lxReady:n,bigCommerceReady:r,isForSale:i,grade:a,finish:o,size:s,selected:c=!1,selectionMode:l=!1,forSaleLabel:d=`For sale`,notForSaleLabel:f=`Not for sale`,selectLabel:p=`Select sheet`,deselectLabel:m=`Deselect sheet`,onSkuClick:h})=>{let g=i?d:f,_=[{id:`lx`,shortLabel:`LX`,label:`LX`,ready:n},...r===void 0?[]:[{id:`big-commerce`,shortLabel:`BC`,label:`Big Commerce`,ready:r}],{id:`ecommerce`,shortLabel:`EC`,label:`Is Ecomm`,ready:i}];return(0,u.jsx)(K,{ariaLabel:l?`${c?m:p} ${t}`:t,ariaPressed:c,className:`w-full rounded-md border p-3 text-left transition ${be(c,l)}`,onCardClick:()=>h({skuId:e,sku:t}),children:(0,u.jsxs)(`span`,{className:`flex items-start gap-2`,children:[l?(0,u.jsx)(S,{iconType:c?`fa-solid`:`fa-regular`,iconName:c?`square-check`:`square`,alt:``,size:`sm`,color:c?`accent`:`inherit`,className:`mt-0.5 w-5 shrink-0`}):null,(0,u.jsx)(S,{iconType:`fa-solid`,iconName:i?`shop`:`shop-slash`,alt:g,title:g,size:`sm`,className:`mt-0.5 w-5 shrink-0 ${i?``:`text-secondaryHover`}`}),(0,u.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`span`,{className:`block text-sm font-bold text-primary`,children:t}),(0,u.jsxs)(`span`,{className:`mt-1 block text-xs text-tertiary`,children:[o,` · `,a,` · `,s]})]}),(0,u.jsx)(_e,{statuses:_})]})})},Se=e=>e===`saved`?`text-saleGreen`:e===`error`?`text-accent`:`text-yellow-700`,Ce=({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)(w,{label:``,size:`xs`}):(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`circle-exclamation`,alt:``,size:`xs`,className:Se(e)}),t]}),r?(0,u.jsxs)(`span`,{className:`ml-4`,children:[`Saved `,r]}):null,n?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:n}):null]}),we=e=>(0,u.jsx)(P,{variant:`ghost`,size:`md`,...e}),Te=({decorId:e,decorCode:t,name:n,imageUrl:r,imageAlt:i=``,availableSheetCount:a,sheetCount:o,availableSampleCount:s,sampleCount:l,sheetLabel:d=`Sheets`,sampleLabel:f=`Samples`,openLabel:p=`Open`,actionsLabel:m=`Actions`,deleteLabel:h=`Delete decor`,disabled:g=!1,onDecorClick:_,onDeleteDecorRequest:y})=>{let[b,x]=(0,c.useState)(!1),C=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!b)return;let e=e=>{C.current?.contains(e.target)||x(!1)},t=e=>{e.key===`Escape`&&x(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[b]);let w=(0,u.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-3 md:gap-4`,children:[(0,u.jsx)(`div`,{className:`flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-md border border-borderTertiary bg-adminSideNavBackground md:h-16 md:w-16`,children:r?(0,u.jsx)(L,{src:r,alt:i,quality:85,fit:`cover`,className:`h-full w-full object-cover`}):(0,u.jsx)(S,{iconType:`fa-regular`,iconName:`image`,alt:`No decor image available`,size:`lg`,className:`text-tertiary`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1 md:flex md:items-center md:gap-4`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 md:flex-1`,children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`truncate text-sm font-bold text-primary md:text-base`,children:n}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 font-mono text-xs text-tertiary`,children:t})]}),(0,u.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-x-2 gap-y-1 text-xs text-primary md:mt-0 md:shrink-0 md:flex-nowrap md:justify-end md:whitespace-nowrap`,children:[(0,u.jsx)(`span`,{"aria-label":`${d}: ${a.toLocaleString()} available out of ${o.toLocaleString()}`,children:(0,u.jsxs)(`span`,{"aria-hidden":`true`,children:[d,` `,a.toLocaleString(),` /`,` `,o.toLocaleString()]})}),(0,u.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,u.jsx)(`span`,{"aria-label":`${f}: ${s.toLocaleString()} available out of ${l.toLocaleString()}`,children:(0,u.jsxs)(`span`,{"aria-hidden":`true`,children:[f,` `,s.toLocaleString(),` /`,` `,l.toLocaleString()]})})]})]})]});return(0,u.jsxs)(`article`,{className:`group relative flex w-full items-center rounded-md border border-borderTertiary bg-secondary p-3 shadow-sm transition hover:border-primary md:p-4`,children:[_&&!g?(0,u.jsx)(K,{ariaLabel:`${p} ${n} (${t})`,className:`absolute inset-0 z-10 cursor-pointer rounded-md text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2`,onCardClick:()=>_({decorId:e,decorCode:t}),children:(0,u.jsx)(`span`,{className:`sr-only`,children:`${p} ${n}`})}):null,w,y&&!g?(0,u.jsxs)(`div`,{ref:C,className:`relative z-20 ml-1 shrink-0`,children:[(0,u.jsx)(we,{iconType:`fa-solid`,iconName:`ellipsis-vertical`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`neutral`,"aria-label":`${m} for ${n} (${t})`,"aria-haspopup":`menu`,"aria-expanded":b,onClick:()=>x(e=>!e)}),b?(0,u.jsx)(`div`,{role:`menu`,className:`absolute right-0 top-full z-30 mt-1 min-w-40 rounded-md border border-borderTertiary bg-secondary p-1 shadow-lg`,children:(0,u.jsx)(P,{label:h,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,iconSize:`sm`,size:`sm`,variant:`ghost`,intent:`danger`,fullWidth:!0,role:`menuitem`,buttonAlignment:`justify-start`,onClick:()=>{x(!1),y({decorId:e,decorCode:t,name:n,sheetCount:o,sampleCount:l})}})}):null]}):null,(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`sm`,className:`ml-1 shrink-0 text-tertiary`})]})},Ee=`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`,De=`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`,Oe=`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`,q=`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`,ke=`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`,Ae=`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`,je=`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`,Me=`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`,J=`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`,Ne={formica:Ee,hartsonkennedy:ke,trespa:je,arpa:q,homapal:Ae,fenix:Oe,broadview:Me,getacore:`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20viewBox='0%200%203685%20566.9'%3e%3c!--%20Generator:%20Adobe%20Illustrator%2029.8.7,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%202.1.1%20Build%201)%20--%3e%3cdefs%3e%3cstyle%3e%20.st0%20{%20fill:%20%23fff;%20}%20%3c/style%3e%3c/defs%3e%3cpath%20class='st0'%20d='M3605.9,125.5c0,33.2-25.8,57.6-59.8,57.6s-60-24.1-60-57.6,26.2-57.6,60-57.6,59.8,24.6,59.8,57.6ZM3495.3,125.5c0,28.7,21.2,49.4,50.9,49.4s50.8-21.4,50.8-49.4-21.4-49.7-50.8-49.7-50.9,21.7-50.9,49.7ZM3560.8,131.6l14.6,28.7h-13.7l-13.7-26.4h-14.1v26.4h-12.6v-69.7h29c13.2,0,21.7,7.8,21.7,21.4s-3.7,16.4-11.2,19.6ZM3533.8,123.4h13.2c8.2,0,12.3-3.7,12.3-11.2s-4.1-11.2-12.3-11.2h-13.2v22.3Z'/%3e%3cg%3e%3cpath%20class='st0'%20d='M435.8,285.3h15.5c4.1,0,7.3,3.3,7.3,7.3v150.5c0,2.1-.9,4.2-2.4,5.6-38.7,35.4-93.7,53.1-151.6,53.1-130,0-225.5-92.9-225.5-218.4s95.5-218.4,226.1-218.4,112.2,18,150.1,53.9c2.9,2.8,3,7.5.2,10.4l-9.8,10.4c-2.8,2.9-7.3,3-10.3.3-36.5-33.2-79.7-46.1-129.6-46.1-112.1,0-195.3,81.2-195.3,189.5s83.2,189.5,195.3,189.5,85.2-10.5,119.7-37.1c1.8-1.4,2.9-3.7,2.9-6v-137.3c0-4,3.3-7.3,7.3-7.3'/%3e%3cpath%20class='st0'%20d='M1044.7,96.4h-146.6c-2.4,0-4.3-1.9-4.3-4.3v-19.7c0-2.4,1.9-4.3,4.3-4.3h333.3c2.4,0,4.3,1.9,4.3,4.3v19.7c0,2.4-1.9,4.3-4.3,4.3h-146.6c-2.4,0-4.3,1.9-4.3,4.3v393.7c0,2.4-1.9,4.3-4.3,4.3h-22.8c-2.4,0-4.3-1.9-4.3-4.3V100.8c0-2.4-1.9-4.3-4.3-4.3'/%3e%3cpath%20class='st0'%20d='M1427.9,115.4l-172.4,379.7c-1,2.3-3.3,3.7-5.8,3.7h-19.8c-4.7,0-7.7-4.8-5.8-9.1l192.5-417.9c1-2.3,3.3-3.7,5.8-3.7h23.3c2.5,0,4.8,1.4,5.8,3.7l192.5,417.9c1.9,4.2-1.1,9.1-5.8,9.1h-19.8c-2.5,0-4.8-1.5-5.8-3.7l-173-379.7c-2.3-5-9.4-5-11.6,0'/%3e%3cpath%20class='st0'%20d='M1679.1,283.5c0-125.5,95.5-218.4,223.6-218.4s113.1,18.7,150.6,56.7c1.6,1.6,1.6,4.3,0,5.9l-14.1,14.5c-1.5,1.6-4.1,1.6-5.7,0-36.4-34.3-80.4-48.3-129.6-48.3-110.3,0-193.4,81.2-193.4,189.5s83.2,189.5,193.4,189.5,93.1-14.6,129.6-48.9c1.6-1.5,4.1-1.5,5.7,0l14.1,14.5c1.6,1.6,1.6,4.3,0,5.9-37.5,38-91.1,57.4-150.6,57.4-128.1,0-223.6-92.9-223.6-218.4'/%3e%3cpath%20class='st0'%20d='M2996.7,488.2l-94.8-132.5c-2.7-3.7-.9-8.9,3.5-10.4,58.7-20.7,92.3-66.8,92.3-132s-65.3-145.3-173.9-145.3h-147.9c-3.8,0-6.8,3.1-6.8,6.8v417.3c0,3.8,3,6.8,6.8,6.8h17.8c3.8,0,6.8-3.1,6.8-6.8v-127.4c0-3.8,3-6.8,6.8-6.8h116.5c13.3,0,25.7-1,37.9-2.5,2.5-.3,4.9.7,6.3,2.8l98.6,137.9c1.3,1.8,3.3,2.9,5.6,2.9h19c5.6,0,8.8-6.3,5.6-10.8ZM2823.8,330.3h-116.5c-3.8,0-6.8-3.1-6.8-6.8V103.1c0-3.8,3-6.8,6.8-6.8h116.5c92.5,0,141.8,42.5,141.8,117s-49.3,117-141.8,117Z'/%3e%3cpath%20class='st0'%20d='M577.8,499.1h-15.9c-4.3,0-7.8-3.5-7.8-7.7V75.9c0-4.3,3.5-7.8,7.8-7.8h15.9c4.3,0,7.8,3.5,7.8,7.8v415.5c0,4.3-3.5,7.7-7.8,7.7'/%3e%3cpath%20class='st0'%20d='M620.8,266.3h219c3,0,5.4,2.4,5.4,5.4v16.9c0,3-2.4,5.4-5.4,5.4h-219c-3,0-5.4-2.4-5.4-5.4v-16.9c0-3,2.4-5.4,5.4-5.4'/%3e%3cpath%20class='st0'%20d='M620.8,471.4h219c3,0,5.4,2.4,5.4,5.4v16.9c0,3-2.4,5.4-5.4,5.4h-219c-3,0-5.4-2.4-5.4-5.4v-16.9c0-3,2.4-5.4,5.4-5.4'/%3e%3cpath%20class='st0'%20d='M620.8,68h219c3,0,5.4,2.4,5.4,5.4v16.9c0,3-2.4,5.4-5.4,5.4h-219c-3,0-5.4-2.4-5.4-5.4v-16.9c0-3,2.4-5.4,5.4-5.4'/%3e%3cpath%20class='st0'%20d='M3136.1,499.1h-15.9c-4.3,0-7.8-3.5-7.8-7.7V75.9c0-4.3,3.5-7.8,7.8-7.8h15.9c4.3,0,7.8,3.5,7.8,7.8v415.5c0,4.3-3.5,7.7-7.8,7.7'/%3e%3cpath%20class='st0'%20d='M3179.1,266.3h219c3,0,5.4,2.4,5.4,5.4v16.9c0,3-2.4,5.4-5.4,5.4h-219c-3,0-5.4-2.4-5.4-5.4v-16.9c0-3,2.4-5.4,5.4-5.4'/%3e%3cpath%20class='st0'%20d='M3179.1,471.4h219c3,0,5.4,2.4,5.4,5.4v16.9c0,3-2.4,5.4-5.4,5.4h-219c-3,0-5.4-2.4-5.4-5.4v-16.9c0-3,2.4-5.4,5.4-5.4'/%3e%3cpath%20class='st0'%20d='M3179.1,68h219c3,0,5.4,2.4,5.4,5.4v16.9c0,3-2.4,5.4-5.4,5.4h-219c-3,0-5.4-2.4-5.4-5.4v-16.9c0-3,2.4-5.4,5.4-5.4'/%3e%3cpath%20class='st0'%20d='M2335.5,65c-128.8,0-224.3,93.5-224.3,218.4s95.5,218.4,224.3,218.4,224.3-92.9,224.3-218.4-96.1-218.4-224.3-218.4ZM2335.5,472.9c-110.3,0-192.8-80.6-192.8-189.5s82.5-189.5,192.8-189.5,192.2,80.6,192.2,189.5-82.6,189.5-192.2,189.5Z'/%3e%3c/g%3e%3c/svg%3e`},Pe=e=>/^https?:\/\//i.test(e)||e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`),Fe=e=>e.trim().toLowerCase().replace(/\s+/g,``).replace(/[^a-z0-9]/g,``);function Ie(e){if(!e||Pe(e))return;let t=Fe(e);return Ne[t]?t:void 0}function Le(e,t){return e?Pe(e)?e:Ne[Fe(e)]??t:t}function Re(e,t){if(!e)return t;if(Pe(e))return e;let n=Fe(e);return n===`formica`?De:n===`broadview`?J:Ne[n]??t}var ze=({rangeId:e,name:t,rangeCode:n,company:r,region:i,subRegion:a,decorCount:o,decorLabel:s=`decors`,openLabel:l=`Open`,actionsLabel:d=`Actions`,deleteLabel:f=`Delete range`,deleteDisabled:p=!1,deleteBlockedMessage:m,disabled:h=!1,onRangeClick:g,onDeleteRangeRequest:_})=>{let[y,b]=(0,c.useState)(!1),x=(0,c.useRef)(null),C=Le(r),w=[r,i,a].filter(e=>e.trim()),T=o===1?`decor`:s;return(0,c.useEffect)(()=>{if(!y)return;let e=e=>{x.current?.contains(e.target)||b(!1)},t=e=>{e.key===`Escape`&&b(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[y]),(0,u.jsxs)(`article`,{className:`group relative flex w-full items-center rounded-md border border-borderTertiary bg-secondary p-3 shadow-sm transition hover:border-primary md:p-4`,children:[g&&!h?(0,u.jsx)(K,{ariaLabel:`${l} ${t}`,className:`absolute inset-0 z-10 cursor-pointer rounded-md text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2`,onCardClick:()=>g({rangeId:e}),children:(0,u.jsx)(`span`,{className:`sr-only`,children:`${l} ${t}`})}):null,(0,u.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-3 md:gap-4`,children:[(0,u.jsx)(`div`,{className:`flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-md border border-primary bg-primary p-2 md:h-16 md:w-16`,children:C?(0,u.jsx)(L,{src:C,alt:`${r} logo`,quality:85,fit:`contain`,className:`h-full w-full object-contain`}):(0,u.jsx)(S,{iconType:`fa-regular`,iconName:`building`,alt:`No company logo available`,size:`lg`,className:`text-secondary`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1 md:flex md:items-center md:gap-4`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 md:flex-1`,children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`truncate text-sm font-bold text-primary md:text-base`,children:t}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:w.length?w.join(` · `):`No location details`})]}),(0,u.jsxs)(v,{variant:`free`,className:`mt-2 text-xs font-bold text-primary md:mt-0 md:shrink-0 md:whitespace-nowrap`,children:[o.toLocaleString(),` `,T]})]})]}),_&&!h?(0,u.jsxs)(`div`,{ref:x,className:`relative z-20 ml-1 shrink-0`,children:[(0,u.jsx)(we,{iconType:`fa-solid`,iconName:`ellipsis-vertical`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`neutral`,"aria-label":`${d} for ${t}`,"aria-haspopup":`menu`,"aria-expanded":y,onClick:()=>b(e=>!e)}),y?(0,u.jsxs)(`div`,{role:`menu`,className:`absolute right-0 top-full z-30 mt-1 min-w-56 rounded-md border border-borderTertiary bg-secondary p-1 shadow-lg`,children:[(0,u.jsx)(P,{label:f,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,iconSize:`sm`,size:`sm`,variant:`ghost`,intent:`danger`,fullWidth:!0,role:`menuitem`,buttonAlignment:`justify-start`,disabled:p,onClick:()=>{b(!1),_({rangeId:e,name:t,rangeCode:n,company:r,region:i,subRegion:a,decorCount:o})}}),p&&m?(0,u.jsx)(v,{variant:`free`,className:`px-3 pb-2 text-xs text-tertiary`,children:m}):null]}):null]}):null,(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`sm`,className:`ml-1 shrink-0 text-tertiary`})]})};function Be(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 Ve(e){if(Array.isArray(e))return e}function He(e){if(Array.isArray(e))return Be(e)}function Ue(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function We(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,tt(r.key),r)}}function Ge(e,t,n){return t&&We(e.prototype,t),n&&We(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Ke(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=rt(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
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=tt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Je(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 Ye(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xe(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ze(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?Ze(Object(n),!0).forEach(function(t){Y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qe(e,t){return Ve(e)||Je(e,t)||rt(e,t)||Ye()}function $e(e){return He(e)||qe(e)||rt(e)||Xe()}function et(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 tt(e){var t=et(e,`string`);return typeof t==`symbol`?t:t+``}function nt(e){"@babel/helpers - typeof";return nt=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},nt(e)}function rt(e,t){if(e){if(typeof e==`string`)return Be(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)?Be(e,t):void 0}}var it=function(){},at={},ot={},st=null,ct={mark:it,measure:it};try{typeof window<`u`&&(at=window),typeof document<`u`&&(ot=document),typeof MutationObserver<`u`&&(st=MutationObserver),typeof performance<`u`&&(ct=performance)}catch{}var lt=(at.navigator||{}).userAgent,ut=lt===void 0?``:lt,dt=at,Z=ot,ft=st,pt=ct;dt.document;var mt=!!Z.documentElement&&!!Z.head&&typeof Z.addEventListener==`function`&&typeof Z.createElement==`function`,ht=~ut.indexOf(`MSIE`)||~ut.indexOf(`Trident/`),gt,_t=/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)?[\-\ ]/,vt=/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,yt={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`}},bt={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},xt=[`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`],St=`classic`,Ct=`duotone`,wt=`sharp`,Tt=`sharp-duotone`,Et=`chisel`,Dt=`etch`,Ot=`graphite`,kt=`jelly`,At=`jelly-duo`,jt=`jelly-fill`,Mt=`notdog`,Nt=`notdog-duo`,Pt=`slab`,Ft=`slab-press`,It=`thumbprint`,Lt=`utility`,Rt=`utility-duo`,zt=`utility-fill`,Bt=`whiteboard`,Vt=`Classic`,Ht=`Duotone`,Ut=`Sharp`,Wt=`Sharp Duotone`,Gt=`Chisel`,Kt=`Etch`,qt=`Graphite`,Jt=`Jelly`,Yt=`Jelly Duo`,Xt=`Jelly Fill`,Zt=`Notdog`,Qt=`Notdog Duo`,$t=`Slab`,en=`Slab Press`,tn=`Thumbprint`,nn=`Utility`,rn=`Utility Duo`,an=`Utility Fill`,on=`Whiteboard`,sn=[St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt];gt={},Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(gt,St,Vt),Ct,Ht),wt,Ut),Tt,Wt),Et,Gt),Dt,Kt),Ot,qt),kt,Jt),At,Yt),jt,Xt),Y(Y(Y(Y(Y(Y(Y(Y(Y(gt,Mt,Zt),Nt,Qt),Pt,$t),Ft,en),It,tn),Lt,nn),Rt,rn),zt,an),Bt,on);var cn={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`}},ln={"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`}},un=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}]]),dn={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`}},fn=[`fak`,`fa-kit`,`fakd`,`fa-kit-duotone`],pn={kit:{fak:`kit`,"fa-kit":`kit`},"kit-duotone":{fakd:`kit-duotone`,"fa-kit-duotone":`kit-duotone`}},mn=[`kit`];Y(Y({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var hn={kit:{"fa-kit":`fak`},"kit-duotone":{"fa-kit-duotone":`fakd`}},gn={"Font Awesome Kit":{400:`fak`,normal:`fak`},"Font Awesome Kit Duotone":{400:`fakd`,normal:`fakd`}},_n={kit:{fak:`fa-kit`},"kit-duotone":{fakd:`fa-kit-duotone`}},vn={kit:{kit:`fak`},"kit-duotone":{"kit-duotone":`fakd`}},yn,bn={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},xn=[`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`];yn={},Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(yn,`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(yn,`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 Sn={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`}},Cn={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`]},wn={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`}},Tn=`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(xn,[`fa-solid`,`fa-regular`,`fa-light`,`fa-thin`,`fa-duotone`,`fa-brands`,`fa-semibold`]),En=[`solid`,`regular`,`light`,`thin`,`duotone`,`brands`,`semibold`],Dn=[1,2,3,4,5,6,7,8,9,10],On=Dn.concat([11,12,13,14,15,16,17,18,19,20]),kn=[].concat($e(Object.keys(Cn)),En,[`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`,bn.GROUP,bn.SWAP_OPACITY,bn.PRIMARY,bn.SECONDARY],Dn.map(function(e){return`${e}x`}),On.map(function(e){return`w-${e}`})),An={"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`}},jn=`___FONT_AWESOME___`,Mn=16,Nn=`fa`,Pn=`svg-inline--fa`,Fn=`data-fa-i2svg`,In=`data-fa-pseudo-element`,Ln=`data-fa-pseudo-element-pending`,Rn=`data-prefix`,zn=`data-icon`,Bn=`fontawesome-i2svg`,Vn=`async`,Hn=[`HTML`,`HEAD`,`STYLE`,`SCRIPT`],Un=[`::before`,`::after`,`:before`,`:after`],Wn=function(){try{return process.env.NODE_ENV===`production`}catch{return!1}}();function Gn(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[St]}})}var Kn=X({},yt);Kn[St]=X(X(X(X({},{"fa-duotone":`duotone`}),yt[St]),pn.kit),pn[`kit-duotone`]);var qn=Gn(Kn),Jn=X({},dn);Jn[St]=X(X(X(X({},{duotone:`fad`}),Jn[St]),vn.kit),vn[`kit-duotone`]);var Yn=Gn(Jn),Xn=X({},wn);Xn[St]=X(X({},Xn[St]),_n.kit);var Zn=Gn(Xn),Qn=X({},Sn);Qn[St]=X(X({},Qn[St]),hn.kit),Gn(Qn);var $n=_t,er=`fa-layers-text`,tr=vt;Gn(X({},cn));var nr=[`class`,`data-prefix`,`data-icon`,`data-fa-transform`,`data-fa-mask`],rr=bt,ir=[].concat($e(mn),$e(kn)),ar=dt.FontAwesomeConfig||{};function or(e){var t=Z.querySelector(`script[`+e+`]`);if(t)return t.getAttribute(e)}function sr(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=Qe(e,2),n=t[0],r=t[1],i=sr(or(n));i!=null&&(ar[r]=i)});var cr={styleDefault:`solid`,familyDefault:St,cssPrefix:Nn,replacementClass:Pn,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:`async`,keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ar.familyPrefix&&(ar.cssPrefix=ar.familyPrefix);var lr=X(X({},cr),ar);lr.autoReplaceSvg||(lr.observeMutations=!1);var Q={};Object.keys(cr).forEach(function(e){Object.defineProperty(Q,e,{enumerable:!0,set:function(t){lr[e]=t,ur.forEach(function(e){return e(Q)})},get:function(){return lr[e]}})}),Object.defineProperty(Q,`familyPrefix`,{enumerable:!0,set:function(e){lr.cssPrefix=e,ur.forEach(function(e){return e(Q)})},get:function(){return lr.cssPrefix}}),dt.FontAwesomeConfig=Q;var ur=[];function dr(e){return ur.push(e),function(){ur.splice(ur.indexOf(e),1)}}var fr=Mn,pr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function mr(e){if(!(!e||!mt)){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 hr=`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`;function gr(){for(var e=12,t=``;e-- >0;)t+=hr[Math.random()*62|0];return t}function _r(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function vr(e){return e.classList?_r(e.classList):(e.getAttribute(`class`)||``).split(` `).filter(function(e){return e})}function yr(e){return`${e}`.replace(/&/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function br(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}="${yr(e[n])}" `},``).trim()}function xr(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}: ${e[n].trim()};`},``)}function Sr(e){return e.size!==pr.size||e.x!==pr.x||e.y!==pr.y||e.rotate!==pr.rotate||e.flipX||e.flipY}function Cr(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 wr(e){var t=e.transform,n=e.width,r=n===void 0?Mn:n,i=e.height,a=i===void 0?Mn:i,o=e.startCentered,s=o===void 0?!1:o,c=``;return s&&ht?c+=`translate(${t.x/fr-r/2}em, ${t.y/fr-a/2}em) `:s?c+=`translate(calc(-50% + ${t.x/fr}em), calc(-50% + ${t.y/fr}em)) `:c+=`translate(${t.x/fr}em, ${t.y/fr}em) `,c+=`scale(${t.size/fr*(t.flipX?-1:1)}, ${t.size/fr*(t.flipY?-1:1)}) `,c+=`rotate(${t.rotate}deg) `,c}var Tr=`:root, :host {
|
|
@@ -555,7 +555,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
555
555
|
}`;function Er(){var e=Nn,t=Pn,n=Q.cssPrefix,r=Q.replacementClass,i=Tr;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 Dr=!1;function Or(){Q.autoAddCss&&!Dr&&(mr(Er()),Dr=!0)}var kr={mixout:function(){return{dom:{css:Er,insertCss:Or}}},hooks:function(){return{beforeDOMElementCreation:function(){Or()},beforeI2svg:function(){Or()}}}},Ar=dt||{};Ar[jn]||(Ar[jn]={}),Ar[jn].styles||(Ar[jn].styles={}),Ar[jn].hooks||(Ar[jn].hooks={}),Ar[jn].shims||(Ar[jn].shims=[]);var jr=Ar[jn],Mr=[],Nr=function(){Z.removeEventListener(`DOMContentLoaded`,Nr),Pr=1,Mr.map(function(e){return e()})},Pr=!1;mt&&(Pr=(Z.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Z.readyState),Pr||Z.addEventListener(`DOMContentLoaded`,Nr));function Fr(e){mt&&(Pr?setTimeout(e,0):Mr.push(e))}function Ir(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,a=i===void 0?[]:i;return typeof e==`string`?yr(e):`<${t} ${br(r)}>${a.map(Ir).join(``)}</${t}>`}function Lr(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Rr=function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}},zr=function(e,t,n,r){var i=Object.keys(e),a=i.length,o=r===void 0?t:Rr(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 Br(e){return $e(e).length===1?e.codePointAt(0).toString(16):null}function Vr(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 Hr(e,t){var n=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).skipHooks,r=n===void 0?!1:n,i=Vr(t);typeof jr.hooks.addPack==`function`&&!r?jr.hooks.addPack(e,Vr(t)):jr.styles[e]=X(X({},jr.styles[e]||{}),i),e===`fas`&&Hr(`fa`,t)}var Ur=jr.styles,Wr=jr.shims,Gr=Object.keys(Zn),Kr=Gr.reduce(function(e,t){return e[t]=Object.keys(Zn[t]),e},{}),qr=null,Jr={},Yr={},Xr={},Zr={},Qr={};function $r(e){return~ir.indexOf(e)}function ei(e,t){var n=t.split(`-`),r=n[0],i=n.slice(1).join(`-`);return r===e&&i!==``&&!$r(i)?i:null}var ti=function(){var e=function(e){return zr(Ur,function(t,n,r){return t[r]=zr(n,e,{}),t},{})};Jr=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}),Yr=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}),Qr=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||Q.autoFetchSvg,n=zr(Wr,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:{}});Xr=n.names,Zr=n.unicodes,qr=ui(Q.styleDefault,{family:Q.familyDefault})};dr(function(e){qr=ui(e.styleDefault,{family:Q.familyDefault})}),ti();function ni(e,t){return(Jr[e]||{})[t]}function ri(e,t){return(Yr[e]||{})[t]}function ii(e,t){return(Qr[e]||{})[t]}function ai(e){return Xr[e]||{prefix:null,iconName:null}}function oi(e){var t=Zr[e],n=ni(`fas`,e);return t||(n?{prefix:`fas`,iconName:n}:null)||{prefix:null,iconName:null}}function si(){return qr}var ci=function(){return{prefix:null,iconName:null,rest:[]}};function li(e){var t=St,n=Gr.reduce(function(e,t){return e[t]=`${Q.cssPrefix}-${t}`,e},{});return sn.forEach(function(r){(e.includes(n[r])||e.some(function(e){return Kr[r].includes(e)}))&&(t=r)}),t}function ui(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).family,n=t===void 0?St:t,r=qn[n][e];if(n===Ct&&!e)return`fad`;var i=Yn[n][e]||Yn[n][r],a=e in jr.styles?e:null;return i||a||null}function di(e){var t=[],n=null;return e.forEach(function(e){var r=ei(Q.cssPrefix,e);r?n=r:e&&t.push(e)}),{iconName:n,rest:t}}function fi(e){return e.sort().filter(function(e,t,n){return n.indexOf(e)===t})}var pi=Tn.concat(fn);function mi(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).skipLookups,n=t===void 0?!1:t,r=null,i=fi(e.filter(function(e){return pi.includes(e)})),a=fi(e.filter(function(e){return!pi.includes(e)})),o=Qe(i.filter(function(e){return r=e,!xt.includes(e)}),1)[0],s=o===void 0?null:o,c=li(i),l=X(X({},di(a)),{},{prefix:ui(s,{family:c})});return X(X(X({},l),vi({values:e,family:c,styles:Ur,config:Q,canonical:l,givenPrefix:r})),hi(n,r,l))}function hi(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var a=t===`fa`?ai(i):{},o=ii(r,i);return i=a.iconName||o||i,r=a.prefix||r,r===`far`&&!Ur.far&&Ur.fas&&!Q.autoFetchSvg&&(r=`fas`),{prefix:r,iconName:i}}var gi=sn.filter(function(e){return e!==St||e!==Ct}),_i=Object.keys(wn).filter(function(e){return e!==St}).map(function(e){return Object.keys(wn[e])}).flat();function vi(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===Ct,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&&gi.includes(n)&&(Object.keys(s).find(function(e){return _i.includes(e)})||l.autoFetchSvg)&&(r.prefix=un.get(n).defaultShortPrefixId,r.iconName=ii(r.prefix,r.iconName)||r.iconName),(r.prefix===`fa`||a===`fa`)&&(r.prefix=si()||`fas`),r}var yi=function(){function e(){Ue(this,e),this.definitions={}}return Ge(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]),Hr(t,i[t]);var n=Zn[St][t];n&&Hr(n,i[t]),ti()})}},{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}}])}(),bi=[],xi={},Si={},Ci=Object.keys(Si);function wi(e,t){var n=t.mixoutsTo;return bi=e,xi={},Object.keys(Si).forEach(function(e){Ci.indexOf(e)===-1&&delete Si[e]}),bi.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){typeof t[e]==`function`&&(n[e]=t[e]),nt(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){xi[e]||(xi[e]=[]),xi[e].push(r[e])})}e.provides&&e.provides(Si)}),n}function Ti(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(xi[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(r))}),t}function Ei(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(xi[e]||[]).forEach(function(e){e.apply(null,n)})}function Di(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Si[e]?Si[e].apply(null,t):void 0}function Oi(e){e.prefix===`fa`&&(e.prefix=`fas`);var t=e.iconName,n=e.prefix||si();if(t)return t=ii(n,t)||t,Lr(ki.definitions,n,t)||Lr(jr.styles,n,t)}var ki=new yi,Ai={noAuto:function(){Q.autoReplaceSvg=!1,Q.observeMutations=!1,Ei(`noAuto`)},config:Q,dom:{i2svg:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return mt?(Ei(`beforeI2svg`,e),Di(`pseudoElements2svg`,e),Di(`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,Fr(function(){ji({autoReplaceSvgRoot:t}),Ei(`watch`,e)})}},parse:{icon:function(e){if(e===null)return null;if(nt(e)===`object`&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:ii(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=ui(e[0]);return{prefix:n,iconName:ii(n,t)||t}}if(typeof e==`string`&&(e.indexOf(`${Q.cssPrefix}-`)>-1||e.match($n))){var r=mi(e.split(` `),{skipLookups:!0});return{prefix:r.prefix||si(),iconName:ii(r.prefix,r.iconName)||r.iconName}}if(typeof e==`string`){var i=si();return{prefix:i,iconName:ii(i,e)||e}}}},library:ki,findIconDefinition:Oi,toHtml:Ir},ji=function(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).autoReplaceSvgRoot,t=e===void 0?Z:e;(Object.keys(jr.styles).length>0||Q.autoFetchSvg)&&mt&&Q.autoReplaceSvg&&Ai.dom.i2svg({node:t})};function Mi(e,t){return Object.defineProperty(e,`abstract`,{get:t}),Object.defineProperty(e,`html`,{get:function(){return e.abstract.map(function(e){return Ir(e)})}}),Object.defineProperty(e,`node`,{get:function(){if(mt){var t=Z.createElement(`div`);return t.innerHTML=e.html,t.children}}}),e}function Ni(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(Sr(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=xr(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 Pi(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 Fi(e){return[`aria-label`,`aria-labelledby`,`title`,`role`].some(function(t){return t in e})}function Ii(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,c=e.maskId,l=e.extra,u=e.watchable,d=u===void 0?!1:u,f=r.found?r:n,p=f.width,m=f.height,h=[Q.replacementClass,a?`${Q.cssPrefix}-${a}`:``].filter(function(e){return l.classes.indexOf(e)===-1}).filter(function(e){return e!==``||!!e}).concat(l.classes).join(` `),g={children:[],attributes:X(X({},l.attributes),{},{"data-prefix":i,"data-icon":a,class:h,role:l.attributes.role||`img`,viewBox:`0 0 ${p} ${m}`})};!Fi(l.attributes)&&!l.attributes[`aria-hidden`]&&(g.attributes[`aria-hidden`]=`true`),d&&(g.attributes[Fn]=``);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?Di(`generateAbstractMask`,_)||{children:[],attributes:{}}:Di(`generateAbstractIcon`,_)||{children:[],attributes:{}},y=v.children,b=v.attributes;return _.children=y,_.attributes=b,s?Pi(_):Ni(_)}function Li(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[Fn]=``);var l=X({},a.styles);Sr(i)&&(l.transform=wr({transform:i,startCentered:!0,width:n,height:r}),l[`-webkit-transform`]=l.transform);var u=xr(l);u.length>0&&(c.style=u);var d=[];return d.push({tag:`span`,attributes:c,children:[t]}),d}function Ri(e){var t=e.content,n=e.extra,r=X(X({},n.attributes),{},{class:n.classes.join(` `)}),i=xr(n.styles);i.length>0&&(r.style=i);var a=[];return a.push({tag:`span`,attributes:r,children:[t]}),a}var zi=jr.styles;function Bi(e){var t=e[0],n=e[1],r=Qe(e.slice(4),1)[0],i=null;return i=Array.isArray(r)?{tag:`g`,attributes:{class:`${Q.cssPrefix}-${rr.GROUP}`},children:[{tag:`path`,attributes:{class:`${Q.cssPrefix}-${rr.SECONDARY}`,fill:`currentColor`,d:r[0]}},{tag:`path`,attributes:{class:`${Q.cssPrefix}-${rr.PRIMARY}`,fill:`currentColor`,d:r[1]}}]}:{tag:`path`,attributes:{fill:`currentColor`,d:r}},{found:!0,width:t,height:n,icon:i}}var Vi={found:!1,width:512,height:512};function Hi(e,t){!Wn&&!Q.showMissingIcons&&e&&console.error(`Icon with name "${e}" and prefix "${t}" is missing.`)}function Ui(e,t){var n=t;return t===`fa`&&Q.styleDefault!==null&&(t=si()),new Promise(function(r,i){if(n===`fa`){var a=ai(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&zi[t]&&zi[t][e]){var o=zi[t][e];return r(Bi(o))}Hi(e,t),r(X(X({},Vi),{},{icon:Q.showMissingIcons&&e&&Di(`missingIconAbstract`)||{}}))})}var Wi=function(){},Gi=Q.measurePerformance&&pt&&pt.mark&&pt.measure?pt:{mark:Wi,measure:Wi},Ki=`FA "7.2.0"`,qi=function(e){return Gi.mark(`${Ki} ${e} begins`),function(){return Ji(e)}},Ji=function(e){Gi.mark(`${Ki} ${e} ends`),Gi.measure(`${Ki} ${e}`,`${Ki} ${e} begins`,`${Ki} ${e} ends`)},Yi={begin:qi,end:Ji},Xi=function(){};function Zi(e){return typeof(e.getAttribute?e.getAttribute(Fn):null)==`string`}function Qi(e){var t=e.getAttribute?e.getAttribute(Rn):null,n=e.getAttribute?e.getAttribute(zn):null;return t&&n}function $i(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Q.replacementClass)}function ea(){return Q.autoReplaceSvg===!0?aa.replace:aa[Q.autoReplaceSvg]||aa.replace}function ta(e){return Z.createElementNS(`http://www.w3.org/2000/svg`,e)}function na(e){return Z.createElement(e)}function ra(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).ceFn,n=t===void 0?e.tag===`svg`?ta:na: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(ra(e,{ceFn:n}))}),r}function ia(e){var t=` ${e.outerHTML} `;return t=`${t}Font Awesome fontawesome.com `,t}var aa={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(ra(e),t)}),t.getAttribute(Fn)===null&&Q.keepOriginalSource){var n=Z.createComment(ia(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~vr(t).indexOf(Q.replacementClass))return aa.replace(e);var r=RegExp(`${Q.cssPrefix}-.*`);if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(` `).reduce(function(e,t){return t===Q.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(` `),i.toNode.length===0?t.removeAttribute(`class`):t.setAttribute(`class`,i.toNode.join(` `))}var a=n.map(function(e){return Ir(e)}).join(`
|
|
556
556
|
`);t.setAttribute(Fn,``),t.innerHTML=a}};function oa(e){e()}function sa(e,t){var n=typeof t==`function`?t:Xi;if(e.length===0)n();else{var r=oa;Q.mutateApproach===Vn&&(r=dt.requestAnimationFrame||oa),r(function(){var t=ea(),r=Yi.begin(`mutate`);e.map(t),r(),n()})}}var ca=!1;function la(){ca=!0}function ua(){ca=!1}var da=null;function fa(e){if(ft&&Q.observeMutations){var t=e.treeCallback,n=t===void 0?Xi:t,r=e.nodeCallback,i=r===void 0?Xi:r,a=e.pseudoElementsCallback,o=a===void 0?Xi:a,s=e.observeMutationsRoot,c=s===void 0?Z:s;da=new ft(function(e){if(!ca){var t=si();_r(e).forEach(function(e){if(e.type===`childList`&&e.addedNodes.length>0&&!Zi(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`&&Zi(e.target)&&~nr.indexOf(e.attributeName))if(e.attributeName===`class`&&Qi(e.target)){var r=mi(vr(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(Rn,a||t),s&&e.target.setAttribute(zn,s)}else $i(e.target)&&i(e.target)})}}),mt&&da.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function pa(){da&&da.disconnect()}function ma(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 ha(e){var t=e.getAttribute(`data-prefix`),n=e.getAttribute(`data-icon`),r=e.innerText===void 0?``:e.innerText.trim(),i=mi(vr(e));return i.prefix||=si(),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix?i:(i.prefix&&r.length>0&&(i.iconName=ri(i.prefix,e.innerText)||ni(i.prefix,Br(e.innerText))),!i.iconName&&Q.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data),i)}function ga(e){return _r(e.attributes).reduce(function(e,t){return e.name!==`class`&&e.name!==`style`&&(e[t.name]=t.value),e},{})}function _a(){return{iconName:null,prefix:null,transform:pr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function va(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=ha(e),r=n.iconName,i=n.prefix,a=n.rest,o=ga(e),s=Ti(`parseNodeAttributes`,{},e);return X({iconName:r,prefix:i,transform:pr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:t.styleParser?ma(e):[],attributes:o}},s)}var ya=jr.styles;function ba(e){var t=Q.autoReplaceSvg===`nest`?va(e,{styleParser:!1}):va(e);return~t.extra.classes.indexOf(er)?Di(`generateLayersText`,e,t):Di(`generateSvgReplacementMutation`,e,t)}function xa(){return[].concat($e(fn),$e(Tn))}function Sa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!mt)return Promise.resolve();var n=Z.documentElement.classList,r=function(e){return n.add(`${Bn}-${e}`)},i=function(e){return n.remove(`${Bn}-${e}`)},a=Q.autoFetchSvg?xa():xt.concat(Object.keys(ya));a.includes(`fa`)||a.push(`fa`);var o=[`.${er}:not([${Fn}])`].concat(a.map(function(e){return`.${e}:not([${Fn}])`})).join(`, `);if(o.length===0)return Promise.resolve();var s=[];try{s=_r(e.querySelectorAll(o))}catch{}if(s.length>0)r(`pending`),i(`complete`);else return Promise.resolve();var c=Yi.begin(`onTree`),l=s.reduce(function(e,t){try{var n=ba(t);n&&e.push(n)}catch(e){Wn||e.name===`MissingIcon`&&console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(l).then(function(n){sa(n,function(){r(`active`),r(`complete`),i(`pending`),typeof t==`function`&&t(),c(),e()})}).catch(function(e){c(),n(e)})})}function Ca(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;ba(e).then(function(e){e&&sa([e],t)})}function wa(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Oi(t||{}),i=n.mask;return i&&=(i||{}).icon?i:Oi(i||{}),e(r,X(X({},n),{},{mask:i}))}}var Ta=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?pr: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 Mi(X({type:`icon`},e),function(){return Ei(`beforeDOMElementCreation`,{iconDefinition:e,params:t}),Ii({icons:{main:Bi(v),mask:s?Bi(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:_,transform:X(X({},pr),r),symbol:a,maskId:l,extra:{attributes:p,styles:h,classes:d}})})}},Ea={mixout:function(){return{icon:wa(Ta)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Sa,e.nodeCallback=Ca,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=t===void 0?Z:t,r=e.callback;return Sa(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([Ui(n,r),o.iconName?Ui(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(o){var l=Qe(o,2),u=l[0],d=l[1];t([e,Ii({icons:{main:u,mask:d},prefix:r,iconName:n,transform:i,symbol:a,maskId:s,extra:c,watchable:!0})])}).catch(l)})},e.generateAbstractIcon=function(e){var t=e.children,n=e.attributes,r=e.main,i=e.transform,a=e.styles,o=xr(a);o.length>0&&(n.style=o);var s;return Sr(i)&&(s=Di(`generateAbstractTransformGrouping`,{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},Da={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 Mi({type:`layer`},function(){Ei(`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($e(r)).join(` `)},children:n}]})}}}},Oa={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 Mi({type:`counter`,content:e},function(){return Ei(`beforeDOMElementCreation`,{content:e,params:t}),Ri({content:e.toString(),title:r,extra:{attributes:s,styles:l,classes:[`${Q.cssPrefix}-layers-counter`].concat($e(a))}})})}}}},ka={mixout:function(){return{text:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?pr: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 Mi({type:`text`,content:e},function(){return Ei(`beforeDOMElementCreation`,{content:e,params:t}),Li({content:e,transform:X(X({},pr),r),extra:{attributes:s,styles:l,classes:[`${Q.cssPrefix}-layers-text`].concat($e(a))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.transform,r=t.extra,i=null,a=null;if(ht){var o=parseInt(getComputedStyle(e).fontSize,10),s=e.getBoundingClientRect();i=s.width/o,a=s.height/o}return Promise.resolve([e,Li({content:e.innerHTML,width:i,height:a,transform:n,extra:r,watchable:!0})])}}},Aa=RegExp(`"`,`ug`),ja=[1105920,1112319],Ma=X(X(X(X({},{FontAwesome:{normal:`fas`,400:`fas`}}),ln),An),gn),Na=Object.keys(Ma).reduce(function(e,t){return e[t.toLowerCase()]=Ma[t],e},{}),Pa=Object.keys(Na).reduce(function(e,t){var n=Na[t];return e[t]=n[900]||$e(Object.entries(n))[0][1],e},{});function Fa(e){return Br($e(e.replace(Aa,``))[0]||``)}function Ia(e){var t=e.getPropertyValue(`font-feature-settings`).includes(`ss01`),n=e.getPropertyValue(`content`).replace(Aa,``),r=n.codePointAt(0),i=r>=ja[0]&&r<=ja[1],a=n.length===2?n[0]===n[1]:!1;return i||a||t}function La(e,t){var n=e.replace(/^['"]|['"]$/g,``).toLowerCase(),r=parseInt(t),i=isNaN(r)?`normal`:r;return(Na[n]||{})[i]||Pa[n]}function Ra(e,t){var n=`${Ln}${t.replace(`:`,`-`)}`;return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var a=_r(e.children).filter(function(e){return e.getAttribute(In)===t})[0],o=dt.getComputedStyle(e,t),s=o.getPropertyValue(`font-family`),c=s.match(tr),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=La(s,l),p=Fa(d),m=c[0].startsWith(`FontAwesome`),h=Ia(o),g=ni(f,p),_=g;if(m){var v=oi(p);v.iconName&&v.prefix&&(g=v.iconName,f=v.prefix)}if(g&&!h&&(!a||a.getAttribute(Rn)!==f||a.getAttribute(zn)!==_)){e.setAttribute(n,_),a&&e.removeChild(a);var y=_a(),b=y.extra;b.attributes[In]=t,Ui(g,f).then(function(i){var a=Ii(X(X({},y),{},{icons:{main:i,mask:ci()},prefix:f,iconName:_,extra:b,watchable:!0})),o=Z.createElementNS(`http://www.w3.org/2000/svg`,`svg`);t===`::before`?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=a.map(function(e){return Ir(e)}).join(`
|
|
557
557
|
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function za(e){return Promise.all([Ra(e,`::before`),Ra(e,`::after`)])}function Ba(e){return e.parentNode!==document.head&&!~Hn.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(In)&&(!e.parentNode||e.parentNode.tagName!==`svg`)}var Va=function(e){return!!e&&Un.some(function(t){return e.includes(t)})},Ha=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=Ke(n),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(Va(a)){var o=Un.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 Ua(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(mt){var n;if(t)n=e;else if(Q.searchPseudoElementsFullScan)n=e.querySelectorAll(`*`);else{var r=new Set,i=Ke(document.styleSheets),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;try{var s=Ke(o.cssRules),c;try{for(s.s();!(c=s.n()).done;){var l=c.value,u=Ke(Ha(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=_r(n).filter(Ba).map(za),i=Yi.begin(`searchPseudoElements`);la(),Promise.all(r).then(function(){i(),ua(),e()}).catch(function(){i(),ua(),t()})})}}var Wa={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?Z:t;Q.searchPseudoElements&&Ua(n)}}},Ga=!1,Ka={mixout:function(){return{dom:{unwatch:function(){la(),Ga=!0}}}},hooks:function(){return{bootstrap:function(){fa(Ti(`mutationObserverCallbacks`,{}))},noAuto:function(){pa()},watch:function(e){var t=e.observeMutationsRoot;Ga?ua():fa(Ti(`mutationObserverCallbacks`,{observeMutationsRoot:t}))}}}},qa=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})},Ja={mixout:function(){return{parse:{transform:function(e){return qa(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-transform`);return n&&(e.transform=qa(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)}]}]}}}},Ya={x:0,y:0,width:`100%`,height:`100%`};function Xa(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 Za(e){return e.tag===`g`?e.children:[e]}wi([kr,Ea,Da,Oa,ka,Wa,Ka,Ja,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-mask`),r=n?mi(n.split(` `).map(function(e){return e.trim()})):ci();return r.prefix||=si(),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=Cr({transform:o,containerWidth:l,iconWidth:s}),f={tag:`rect`,attributes:X(X({},Ya),{},{fill:`white`})},p=c.children?{children:c.children.map(Xa)}:{},m={tag:`g`,attributes:X({},d.inner),children:[Xa(X({tag:c.tag,attributes:X(X({},c.attributes),d.path)},p))]},h={tag:`g`,attributes:X({},d.outer),children:[m]},g=`mask-${a||gr()}`,_=`clip-${a||gr()}`,v={tag:`mask`,attributes:X(X({},Ya),{},{id:g,maskUnits:`userSpaceOnUse`,maskContentUnits:`userSpaceOnUse`}),children:[f,h]},y={tag:`defs`,children:[{tag:`clipPath`,attributes:{id:_},children:Za(u)},v]};return t.push(y,{tag:`rect`,attributes:X({fill:`currentColor`,"clip-path":`url(#${_})`,mask:`url(#${g})`},Ya)}),{children:t,attributes:n}}}},{provides:function(e){var t=!1;dt.matchMedia&&(t=dt.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:Ai}),Ai.noAuto;var Qa=Ai.config;Ai.library,Ai.dom;var $a=Ai.parse;Ai.findIconDefinition,Ai.toHtml;var eo=Ai.icon;Ai.layer,Ai.text,Ai.counter;function to(e){return e-=0,e===e}function no(e){return to(e)?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():``),e.charAt(0).toLowerCase()+e.slice(1))}var ro=(e,t)=>l.default.createElement(`stop`,{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function io(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ao=new Map,oo=1e3;function so(e){if(ao.has(e))return ao.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=no(n);t[e.startsWith(`webkit`)?io(e):e]=r}}}n=a+1}if(ao.size===oo){let e=ao.keys().next().value;e&&ao.delete(e)}return ao.set(e,t),t}function co(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}}),co(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=so(String(t));break;case e.startsWith(`aria-`):case e.startsWith(`data-`):a[e.toLowerCase()]=t;break;default:a[no(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(ro)))}return e(t.tag,{...a,...u},...r)}var lo=co.bind(null,l.default.createElement),uo=(e,t)=>{let n=(0,l.useId)();return e||(t?n:void 0)},fo=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 po=`searchPseudoElementsFullScan`in Qa&&typeof Qa.searchPseudoElementsFullScan==`boolean`?`7.0.0`:`6.0.0`,mo=Number.parseInt(po)>=7,ho=()=>mo,go=`fa`,_o={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`},vo={left:`fa-pull-left`,right:`fa-pull-right`},yo={90:`fa-rotate-90`,180:`fa-rotate-180`,270:`fa-rotate-270`},bo={"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`},xo={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`},So={default:`fa-layers`};function Co(e){let t=Qa.cssPrefix||Qa.familyPrefix||go;return t===go?e:e.replace(new RegExp(String.raw`(?<=^|\s)${go}-`,`g`),`${t}-`)}function wo(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(_o.beat),n&&x.push(_o.fade),r&&x.push(_o.beatFade),i&&x.push(_o.bounce),a&&x.push(_o.shake),o&&x.push(_o.spin),c&&x.push(_o.spinReverse),s&&x.push(_o.spinPulse),l&&x.push(_o.pulse),u&&x.push(xo.fixedWidth),d&&x.push(xo.inverse),f&&x.push(xo.border),p===!0&&x.push(xo.flip),(p===`horizontal`||p===`both`)&&x.push(xo.flipHorizontal),(p===`vertical`||p===`both`)&&x.push(xo.flipVertical),m!=null&&x.push(bo[m]),h!=null&&h!==0&&x.push(yo[h]),g!=null&&x.push(vo[g]),_&&x.push(xo.swapOpacity),ho()?(v&&x.push(xo.rotateBy),y&&x.push(xo.widthAuto),(Qa.cssPrefix||Qa.familyPrefix||go)===go?x:x.map(Co)):x}var To=e=>typeof e==`object`&&`icon`in e&&!!e.icon;function Eo(e){if(e)return To(e)?e:$a.icon(e)}function Do(e){return Object.keys(e)}var Oo=new fo(`FontAwesomeIcon`),ko={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},Ao=new Set(Object.keys(ko)),jo=l.default.forwardRef((e,t)=>{let n={...ko,...e},{icon:r,mask:i,symbol:a,title:o,titleId:s,maskId:c,transform:l}=n,u=uo(c,!!i),d=uo(s,!!o),f=Eo(r);if(!f)return Oo.error(`Icon lookup is undefined`,r),null;let p=wo(n),m=typeof l==`string`?$a.transform(l):l,h=Eo(i),g=eo(f,{...p.length>0&&{classes:p},...m&&{transform:m},...h&&{mask:h},symbol:a,title:o,titleId:d,maskId:u});if(!g)return Oo.error(`Could not find icon`,f),null;let{abstract:_}=g,v={ref:t};for(let e of Do(n))Ao.has(e)||(v[e]=n[e]);return lo(_[0],v)});jo.displayName=`FontAwesomeIcon`,`${So.default}${xo.fixedWidth}`;var Mo={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`]},No={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`]},Po={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`]},Fo={prefix:`fas`,iconName:`chevron-left`,icon:[320,512,[9001],`f053`,`M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z`]},Io={prefix:`far`,iconName:`heart`,icon:[512,512,[128153,128154,128155,128156,128420,129293,129294,129505,9829,10084,61578],`f004`,`M378.9 80c-27.3 0-53 13.1-69 35.2l-34.4 47.6c-4.5 6.2-11.7 9.9-19.4 9.9s-14.9-3.7-19.4-9.9l-34.4-47.6c-16-22.1-41.7-35.2-69-35.2-47 0-85.1 38.1-85.1 85.1 0 49.9 32 98.4 68.1 142.3 41.1 50 91.4 94 125.9 120.3 3.2 2.4 7.9 4.2 14 4.2s10.8-1.8 14-4.2c34.5-26.3 84.8-70.4 125.9-120.3 36.2-43.9 68.1-92.4 68.1-142.3 0-47-38.1-85.1-85.1-85.1zM271 87.1c25-34.6 65.2-55.1 107.9-55.1 73.5 0 133.1 59.6 133.1 133.1 0 68.6-42.9 128.9-79.1 172.8-44.1 53.6-97.3 100.1-133.8 127.9-12.3 9.4-27.5 14.1-43.1 14.1s-30.8-4.7-43.1-14.1C176.4 438 123.2 391.5 79.1 338 42.9 294.1 0 233.7 0 165.1 0 91.6 59.6 32 133.1 32 175.8 32 216 52.5 241 87.1l15 20.7 15-20.7z`]},Lo=({id:e,item:t,absoluteIdx:n,isActive:r,showLabel:i,grow:a,isLoaded:o,isFav:s,showFavorites:l=!0,setActiveIndex:d,onLoaded:f,onToggleFav:p,onItemClick:m})=>{let h=()=>m?.(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=()=>f(e),r.onerror=()=>{},r.src=n,r.complete&&r.naturalWidth>0&&f(e),()=>{r.onload=null,r.onerror=null}},[e,o,f,t.source]),(0,u.jsx)(`section`,{className:`w-full md:min-w-0 md:transition-[flex-grow] md:duration-700 md:ease-in-out`,style:{flexGrow:a,flexBasis:0},children:(0,u.jsx)(`div`,{className:[`relative h-36 w-full cursor-pointer`,`md:min-w-0 md:h-175`].join(` `),onMouseEnter:()=>d(n),onFocus:()=>d(n),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),h())},tabIndex:0,role:`link`,"aria-label":t.label,onClick:h,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)(L,{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:()=>f(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)(v,{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)(P,{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)(jo,{icon:Po,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)(P,{variant:`link`,intent:`ghost`,"aria-label":s?`Unfavorite`:`Favorite`,className:`h-9 w-9 grid place-items-center`,onClick:e=>{e.stopPropagation(),p(t)},children:(0,u.jsx)(jo,{icon:s?Mo:Io,className:[`w-4 h-4 transition-transform duration-200 ease-out`,`hover:scale-125 active:scale-110 origin-center`,s?`text-accent`:`text-secondary`].join(` `)})})}):null]})})})},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`,d=s&&a===`button`?`text`:a,f=()=>{c?.({title:n,description:r,buttonLabel:i})},p=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)(L,{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)(v,{variant:`free`,className:`text-primary text-lg font-bold mb-2`,children:n}),(0,u.jsx)(v,{variant:`body`,className:`mb-4 text-primary text-sm`,children:r})]}),d===`button`&&i?(0,u.jsx)(P,{intent:`accent`,variant:`outline`,label:i,className:`w-full md:w-48`,type:`button`,onClick:f}):null,d===`text`&&i?(0,u.jsx)(v,{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)(L,{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)(v,{variant:`free`,className:`text-primary text-lg font-bold mb-2`,children:n}),(0,u.jsx)(v,{variant:`body`,className:`mb-0 text-primary text-sm`,children:r})]}),d===`button`&&i?(0,u.jsx)(P,{intent:`accent`,variant:`link`,label:i,iconName:`arrow-right`,iconType:`fa-solid`,iconPosition:`right`,buttonAlignment:`justify-start`,className:`p-0!`,type:`button`,onClick:f}):null,d===`text`&&i?(0,u.jsx)(v,{variant:`body`,className:`text-sm font-bold text-primary`,children:i}):null]})]});return s?(0,u.jsx)(G,{onCardClick:s,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:p}):p},zo=({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)(L,{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)(v,{variant:`free`,className:`text-xs text-tertiary`,children:i}),(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold leading-tight text-primary`,children:n}),(0,u.jsx)(v,{variant:`free`,className:`text-xs leading-tight text-primary`,children:r})]})]});return a?(0,u.jsx)(G,{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})},Bo=e=>{if(e.distance)return e.distance.label??`${e.distance.value.toLocaleString(void 0,{maximumFractionDigits:2})} ${e.distance.unit}`},Vo=e=>[e.city,e.region,e.postalCode].filter(Boolean).join(` `),Ho=(e,t,n)=>{e?.({location:t,href:n})},Uo=({location:e,stockedProductsLabel:t=`Stocked Products`,preferredLabel:n=`Preferred Retailer`,websiteLabel:r=`Visit Website`,directionsLabel:i=`Get Directions`,emailLabel:a=`Email`,onWebsiteClick:o,onDirectionsClick:s,onPhoneClick:c,onEmailClick:l})=>{let d=Bo(e),f=Vo(e.address),p=(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)(S,{iconType:`fa-solid`,iconName:`location-dot`,color:`secondaryHover`,size:`lg`,alt:n,className:`mt-1 shrink-0`}):null,(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-lg font-bold min-h-12`,children:e.name})]}),d?(0,u.jsxs)(`div`,{className:`inline-flex items-start gap-2`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`location-dot`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsx)(v,{variant:`caption`,className:`text-primary text-sm`,children:d})]}):null]}),(0,u.jsxs)(`div`,{className:`mb-5 space-y-2`,children:[(0,u.jsxs)(`address`,{className:`flex min-h-14 items-start gap-2 not-italic`,children:[(0,u.jsx)(S,{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)(v,{variant:`body`,className:`text-sm`,children:e},`${e}-${t}`)),(0,u.jsx)(v,{variant:`body`,className:`text-sm`,children:f})]})]}),e.directionsUrl?(0,u.jsx)(`div`,{children:(0,u.jsxs)(v,{as:`a`,variant:`body`,href:e.directionsUrl,className:`group inline-flex items-start gap-2 text-sm hover:text-accent hover:underline`,onClick:()=>Ho(s,e,e.directionsUrl),children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`diamond-turn-right`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),i,(0,u.jsx)(S,{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)(S,{iconType:`fa-solid`,iconName:`mobile-screen`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),(0,u.jsx)(v,{as:`a`,variant:`body`,className:`text-sm hover:text-accent hover:underline`,href:e.phoneHref,onClick:()=>Ho(c,e,e.phoneHref),children:e.phone})]}):(0,u.jsxs)(`div`,{className:`inline-flex items-start gap-2`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`mobile-screen`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsx)(v,{as:`span`,variant:`body`,className:`text-sm`,children:e.phone})]}):null}),!e.email&&!e.emailHref?null:(0,u.jsx)(`div`,{children:(0,u.jsxs)(v,{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:()=>Ho(l,e,e.emailHref),children:[(0,u.jsx)(S,{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)(v,{as:`a`,variant:`body`,className:`group inline-flex items-start gap-2 text-sm hover:text-accent hover:underline`,href:e.websiteUrl,onClick:()=>Ho(o,e,e.websiteUrl),children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`globe`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),r]})}):null]}),p?(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)(S,{iconType:`fa-solid`,iconName:`box-open`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsx)(v,{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)(v,{as:`span`,variant:`body`,className:`text-xs`,children:e.label})},e.id))}):null]}):null]})},Wo=({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)(P,{intent:`primary`,variant:`link`,type:`button`,onClick:()=>i(!r),"aria-haspopup":`listbox`,"aria-expanded":r,children:[(0,u.jsxs)(v,{variant:`navlink`,className:`text-sm`,children:[o?.label??`Select Country`,o?.locale?` (${o.locale})`:``]}),(0,u.jsx)(S,{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)(v,{variant:`navlink`,className:`text-sm text-gray-700`,children:e.label}),(0,u.jsxs)(v,{variant:`nav`,className:`ml-1 mt-0.5 whitespace-nowrap text-xs text-gray-500`,children:[`(`,e.locale,`)`]})]})},`${e.href}-${t}`))})]})},Go=e=>{let t=e.trim().split(/\s+/).filter(Boolean);return(t.length>1?t.map(e=>e[0]).join(``):e.slice(0,2)).toUpperCase()},Ko=({options:e,value:t,label:n=`Region`,placeholder:r=`Select region`,helpText:i,disabled:a=!1,name:o=`admin-region`,onChange:s})=>{let c=!t.trim(),l=`${o}-help`;return(0,u.jsxs)(`fieldset`,{className:`min-w-0`,disabled:a,"aria-describedby":i?l:void 0,children:[(0,u.jsx)(`legend`,{className:`sr-only`,children:n}),(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":n,"aria-invalid":c||void 0,className:`flex flex-wrap gap-x-4 gap-y-2`,children:e.map(e=>(0,u.jsxs)(`label`,{title:e.label,className:`flex cursor-pointer flex-col items-center gap-1 rounded-md has-[:disabled]:cursor-not-allowed`,children:[(0,u.jsx)(`input`,{type:`radio`,name:o,value:e.value,checked:t===e.value,disabled:a,required:!0,"aria-label":e.label,className:`peer sr-only`,onChange:e=>s({region:e.target.value})}),(0,u.jsx)(`span`,{className:`flex h-10 w-10 items-center justify-center rounded-full border border-borderTertiary bg-secondary text-tertiary transition hover:border-primary hover:text-primary peer-checked:border-primary peer-checked:bg-primary peer-checked:text-secondary peer-checked:hover:bg-secondaryHover peer-checked:hover:text-primary peer-focus-visible:ring-2 peer-focus-visible:ring-primary peer-focus-visible:ring-offset-2 peer-disabled:opacity-50`,children:(0,u.jsx)(S,{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??Go(e.label)})]},e.value))}),c&&r?(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-xs text-accent`,children:r}):null,i?(0,u.jsx)(v,{id:l,variant:`free`,className:`sr-only`,children:i}):null]})},qo=({ranges:e,selectedRangeId:t,disabled:n=!1,ariaLabel:r=`Filter by range`,action:i,onRangeSelect:a})=>(0,u.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":r,className:`contents`,children:e.map(e=>({id:e.id,label:e.label,title:`${e.label} (${e.decorCount.toLocaleString()} decors)`})).map(e=>{let r=e.id===t;return(0,u.jsx)(P,{label:e.label,title:e.title,variant:r?`solid`:`outline`,intent:`primary`,size:`sm`,role:`radio`,"aria-checked":r,disabled:n,onClick:()=>a({rangeId:e.id})},e.id)})}),i]}),Jo=({title:e,iconName:t,dimension:n,options:r,selectedValue:i,readOnly:a,onSelect:o})=>(0,u.jsxs)(`fieldset`,{children:[(0,u.jsx)(`legend`,{className:`text-sm font-bold text-primary`,children:(0,u.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:t,alt:``,size:`sm`,color:`secondaryHover`,className:`w-4 shrink-0`}),e]})}),(0,u.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:r.map(e=>{let t=e.value===i,r=`market-readiness-${n}-${e.value}-description`;return(0,u.jsxs)(`span`,{className:`group relative`,children:[(0,u.jsx)(`button`,{type:`button`,"aria-pressed":t,"aria-describedby":e.description?r:void 0,disabled:a||e.disabled,className:`rounded-md border px-4 py-2 text-sm font-semibold transition ${t?`border-primary bg-primary text-secondary`:`border-borderTertiary bg-secondary text-primary hover:border-primary`} disabled:cursor-default disabled:opacity-70`,onClick:()=>o?.(n,e.value),children:e.label}),e.description?(0,u.jsx)(`span`,{id:r,role:`tooltip`,className:`pointer-events-none absolute bottom-full left-1/2 z-10 mb-2 hidden w-max max-w-64 -translate-x-1/2 rounded-md bg-primary px-3 py-2 text-xs font-normal text-secondary shadow-lg group-hover:block group-focus-within:block`,children:e.description}):null]},e.value)})})]}),Yo=(e,t)=>{let n=0,r=0;for(;n<e.length&&r<t;)/\d/.test(e[n])&&(r+=1),n+=1;for(;n<e.length&&/\D/.test(e[n]);)n+=1;return n};function Xo({value:e=``,mask:t,maxDigits:n,readOnly:r,disabled:i,onChange:a,onBlur:o,onKeyDown:s}){let l=(0,c.useRef)(null),u=(0,c.useRef)(null),d=e=>{let r=e.replace(/\D/g,``);return t===`expirationDate`?r.slice(0,4):t===`cardNumber`?r.slice(0,/^3[47]/.test(r)?15:19):r.slice(0,n)},f=e=>t===`expirationDate`?e.length<2?e:`${e.slice(0,2)}/${e.slice(2)}`:t===`cardNumber`?/^3[47]/.test(e)?[e.slice(0,4),e.slice(4,10),e.slice(10)].filter(Boolean).join(` `):e.match(/.{1,4}/g)?.join(` `)||``:e,p=t?f(d(e)):String(e);return(0,c.useLayoutEffect)(()=>{u.current!==null&&(l.current?.setSelectionRange(u.current,u.current),u.current=null)}),{inputRef:l,displayValue:p,handleChange:e=>{if(t){let n=e.currentTarget,r=n.value.slice(0,n.selectionStart??n.value.length).replace(/\D/g,``).length,i=n.value.replace(/\D/g,``),o=e.nativeEvent.inputType;if(/\D/.test(p)&&n.value!==p&&i===p.replace(/\D/g,``)&&(o===`deleteContentBackward`||o===`deleteContentForward`)){let e=Math.max(0,r-+(o===`deleteContentBackward`));n.value=i.slice(0,e)+i.slice(e+1),r=e}let s=d(n.value),c=f(s),l=Yo(c,r);n.value=t===`expirationDate`?c:s,a?.(e),n.value=c,n.setSelectionRange(l,l),u.current=l}else a?.(e)},handleBlur:e=>{if(!t||t===`expirationDate`){o?.(e);return}let n=e.currentTarget;n.value=d(n.value),o?.(e),n.value=p},handleKeyDown:e=>{if(s?.(e),!t||e.defaultPrevented||r||i)return;let n=e.currentTarget,a=n.selectionStart;if(a===null||a!==n.selectionEnd||e.shiftKey||e.ctrlKey||e.metaKey||e.altKey)return;let o=a>0&&/\D/.test(p[a-1]),c=a<p.length&&/\D/.test(p[a]);e.key===`Backspace`&&o?n.setSelectionRange(Math.max(0,a-2),a):e.key===`Delete`&&c?n.setSelectionRange(a,Math.min(a+2,p.length)):e.key===`ArrowLeft`&&o?(e.preventDefault(),n.setSelectionRange(a-1,a-1)):e.key===`ArrowRight`&&c&&(e.preventDefault(),n.setSelectionRange(a+1,a+1))}}}var Zo=({id:e,name:t,type:n=`text`,value:r=``,placeholder:i=``,ariaLabel:a,ariaDescribedBy:o,disabled:s=!1,readOnly:l=!1,required:d=!1,min:f,max:p,step:m,hasError:h=!1,clearable:g=!1,clearLabel:_=`Clear input`,className:v=``,inputClassName:y=``,autoComplete:b,autoFocus:x,mask:C,maxDigits:w,inputMode:T,leadingIcon:E,trailingIcon:D,onChange:O,onBlur:k,onFocus:A,onKeyDown:j,onClear:M})=>{let[N,P]=(0,c.useState)(!1),F=n===`password`,I=C===`expirationDate`,{inputRef:L,displayValue:R,handleChange:ee,handleBlur:z,handleKeyDown:te}=Xo({value:r,mask:C,maxDigits:w,readOnly:l,disabled:s,onChange:O,onBlur:k,onKeyDown:j}),ne=g&&!!R&&!s&&!l&&!F&&!D,re=(0,c.useMemo)(()=>F?N?`text`:`password`:n,[n,F,N]),ie=(F?(0,u.jsx)(`button`,{type:`button`,onClick:()=>P(e=>!e),className:`absolute right-3 top-1/2 -translate-y-1/2`,"aria-label":N?`Hide password`:`Show password`,children:(0,u.jsx)(S,{iconName:N?`fa-eye-slash`:`fa-eye`,iconType:`fa-solid`,className:`text-sm text-secondaryActive`})}):null)||(ne?(0,u.jsx)(`button`,{type:`button`,"aria-label":_,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:()=>M?.({value:R}),children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`xmark`,alt:``,size:`sm`})}):D?(0,u.jsx)(`span`,{className:`absolute right-3 top-1/2 -translate-y-1/2`,children:D}):null),ae=[`w-full rounded-md border bg-white py-3 text-sm outline-none transition-colors placeholder-tertiary`,h?`border-accent text-accent`:`border-secondaryHover text-primary`,s?`cursor-not-allowed opacity-60`:``,E?`pl-10 pr-4`:`px-4`,ie?`pr-12`:``,y,I?`font-mono`:``].filter(Boolean).join(` `);return(0,u.jsxs)(`div`,{className:`relative w-full ${v}`.trim(),children:[E?(0,u.jsx)(`span`,{className:`absolute left-3 top-1/2 -translate-y-1/2`,children:E}):null,(0,u.jsx)(`input`,{ref:L,id:e,name:t,type:re,value:R,placeholder:I?``:i,"aria-label":a,"aria-describedby":o,"aria-invalid":h||void 0,disabled:s,readOnly:l,required:d,min:f,max:p,step:m,autoComplete:b,autoFocus:x,inputMode:C?`numeric`:T,className:ae,onChange:ee,onBlur:z,onFocus:A,onKeyDown:te}),I?(0,u.jsxs)(`span`,{"aria-hidden":`true`,className:`pointer-events-none absolute top-1/2 -translate-y-1/2 font-mono text-sm text-tertiary ${E?`left-10`:`left-4`} ${s?`opacity-60`:``}`,children:[(0,u.jsx)(`span`,{className:`text-transparent`,children:R}),`MM/YY`.slice(R.length)]}):null,ie]})},Qo=({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)(Zo,{...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)(S,{iconType:`fa-solid`,iconName:`magnifying-glass`,className:`text-sm text-secondaryHover`})})},$o=({id:e,name:t,ariaLabel:n=`Search`,placeholder:r=`Search`,value:i=``,options:a,emptyMessage:o=`No matches found.`,minQueryLength:s=1,disabled:l,readOnly:d,hasError:f,clearLabel:p=`Clear search`,controlSize:m,valueStatus:h=`default`,onQueryChange:g,onOptionSelect:_,onSearchSubmit:y,onClear:b})=>{let x=(0,c.useRef)(null),[S,C]=(0,c.useState)(!1),[w,T]=(0,c.useState)(0),E=String(i),D=!l&&!d&&E.trim().length>=s,O=(0,c.useMemo)(()=>D?a:[],[D,a]),k=S&&D,A=e?`${e}-options`:void 0;(0,c.useEffect)(()=>{T(0)},[E,a]),(0,c.useEffect)(()=>{if(!S)return;let e=e=>{let t=e.target;t instanceof Node&&x.current?.contains(t)||C(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[S]);let j=e=>{C(!1),_?.({option:e,query:E})};return(0,u.jsxs)(`div`,{ref:x,className:`relative w-full`,children:[(0,u.jsx)(Qo,{id:e,name:t,ariaLabel:n,placeholder:r,value:E,disabled:l,readOnly:d,hasError:f,clearLabel:p,controlSize:m,inputClassName:h===`inactive`?`line-through`:``,autoComplete:`off`,onChange:e=>{let t=e.target.value;C(!0),g?.({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)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:e.label}),e.description?(0,u.jsx)(v,{variant:`free`,className:`mt-0.5 text-xs text-tertiary`,children:e.description}):null]})},e.id)})}):(0,u.jsx)(v,{variant:`free`,className:`px-3 py-3 text-sm text-primary`,children:o})}):null]})},es=({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)(v,{as:`span`,variant:`body`,className:`text-primary`,children:n})]}),ts=({options:e=[],label:t,defaultOpen:n=!0,iconName:r,indentOptions:i=!1,columns:a=1,onOptionChange:o})=>{let[s,l]=(0,c.useState)(n),d={1:``,2:`grid grid-cols-1 gap-x-6 gap-y-2 md:grid-cols-2`,3:`grid grid-cols-1 gap-x-6 gap-y-2 md:grid-cols-3`}[a];return(0,u.jsx)(`section`,{children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,u.jsxs)(P,{intent:`primary`,variant:`link`,size:`sm`,onClick:()=>l(!s),className:`flex gap-1 w-full`,buttonAlignment:`justify-between`,"aria-expanded":s,children:[(0,u.jsxs)(`span`,{className:`flex items-center gap-2`,children:[r?(0,u.jsx)(S,{iconType:`fa-solid`,iconName:r,alt:``,size:`sm`,className:`text-tertiary`}):null,(0,u.jsx)(v,{variant:`bold`,children:t})]}),(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`angle-down`,className:`flex transform transition-transform duration-300 text-secondaryActive text-xs ${s?`rotate-180`:``}`})]}),s&&(0,u.jsx)(`ul`,{className:`list-none ${i?`pl-6`:``} ${d}`.trim(),children:e.map(e=>(0,u.jsx)(`li`,{className:`min-w-0`,children:(0,u.jsx)(es,{id:e.id,name:e.name,label:e.label,checked:e.checked??!1,disabled:e.disabled??!1,onChange:o??e.onChange,checkboxColor:`accent-primary`})},`${e.name}-${e.id}`))})]})})},ns={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`},rs=[`supports-[appearance:base-select]:[appearance:base-select]`,`supports-[appearance:base-select]:items-center`,`supports-[appearance:base-select]:[&::picker-icon]:hidden`,`supports-[appearance:base-select]:[&::picker(select)]:[appearance:base-select]`,`supports-[appearance:base-select]:[&::picker(select)]:rounded-t-none`,`supports-[appearance:base-select]:[&::picker(select)]:rounded-b-md`,`supports-[appearance:base-select]:[&::picker(select)]:border`,`supports-[appearance:base-select]:[&::picker(select)]:border-borderTertiary`,`supports-[appearance:base-select]:[&::picker(select)]:bg-secondary`,`supports-[appearance:base-select]:[&::picker(select)]:text-primary`,`supports-[appearance:base-select]:[&::picker(select)]:m-0`,`supports-[appearance:base-select]:[&::picker(select)]:max-h-80`,`supports-[appearance:base-select]:[&::picker(select)]:overflow-y-auto`,`supports-[appearance:base-select]:[&_option]:px-4`,`supports-[appearance:base-select]:[&_option]:py-2`,`supports-[appearance:base-select]:[&_option]:text-sm`,`supports-[appearance:base-select]:[&_option:checked]:bg-tertiaryActive`,`supports-[appearance:base-select]:[&_option:hover]:bg-tertiaryActive`].join(` `),is={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`}},as=({variant:e,pickerVariant:t=`native`,hasError:n,disabled:r})=>{let i=is[e];return{wrapperClasses:[ns.wrapper,i.wrapper,n?`border-accent`:`border-secondaryHover`,r?`cursor-not-allowed opacity-60`:``].join(` `),selectClasses:[ns.select,i.select,t===`rounded`?rs:``].filter(Boolean).join(` `),iconClasses:[ns.icon,i.icon].join(` `)}},os=({id:e,name:t,ariaLabel:n,ariaDescribedBy:r,options:i=[],value:a=``,placeholder:o=``,disabled:s=!1,required:c=!1,hasError:l=!1,variant:d=`field`,pickerVariant:f=`native`,onChange:p,onBlur:m})=>{let{wrapperClasses:h,selectClasses:g,iconClasses:_}=as({variant:d,pickerVariant:f,hasError:l,disabled:s});return(0,u.jsxs)(`div`,{className:h,children:[(0,u.jsxs)(`select`,{id:e,name:t,"aria-label":n,"aria-describedby":r,"aria-invalid":l||void 0,value:a,disabled:s,required:c,onChange:p,onBlur:m,className:g,children:[o?(0,u.jsx)(`option`,{value:``,disabled:!0,children:o}):null,i.map(e=>(0,u.jsx)(`option`,{value:e.value||e.label,disabled:e.disabled,children:e.label},e.value||e.label))]}),(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`chevron-down`,className:_})]})},ss=({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)(v,{as:`span`,variant:`body`,className:`text-primary`,children:t}),n?(0,u.jsx)(v,{as:`span`,variant:`caption`,className:`text-secondaryActive`,children:n}):null]})]}),cs={blocking:`Blocking`,recommended:`Recommended`,optional:`Optional`},ls={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`}},us={compact:`space-y-3`,comfortable:`space-y-4`},ds={compact:`py-1`,comfortable:`rounded-lg border border-borderTertiary p-4`},fs={compact:`mb-1.5 flex flex-wrap items-center gap-2`,comfortable:`mb-2 flex flex-wrap items-center gap-2`},ps=e=>e===null?``:String(e),ms=e=>{if(e===null||e===``||Array.isArray(e))return``;let t=Number(e);return Number.isFinite(t)?t.toFixed(2):``},hs=e=>{if(e.severity)return e.severity;if(e.required)return`blocking`},gs=e=>e.required||e.severity===`blocking`,_s=e=>ps(e.value).trim()===``,vs=e=>{if(e.trim()===``)return null;let t=Number(e);return Number.isNaN(t)?null:t},ys=e=>{if(!e.validationRegex)return e.state??`neutral`;let t=ps(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`}},bs=e=>{if(gs(e)&&_s(e))return`error`;let t=ys(e);return gs(e)&&t===`neutral`?`valid`:t},xs=({title:e,description:t,headerAction:n,fields:r,fieldGroups:i,density:a=`compact`,severityDisplay:o=`icon`,fieldMessagePlacement:s=`inline`,submitLabel:l=`Save Changes`,cancelLabel:d=`Cancel`,cancelDisabled:f=!1,submitDisabled:p=!1,showActions:m=!0,validationSummary:h,onDynamicFormFieldChange:g,onDynamicFormSubmit:_,onDynamicFormCancel:y})=>{let b=t?.trim()??``,[x,C]=c.default.useState(),w=(e,t)=>{g?.({fieldId:e.id,value:t})},T=(e,t)=>{if(e.type===`information`)return null;let n=hs(e),r=bs(e);if(t===`none`||!n||gs(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:cs[n]});let i=ls[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)(S,{iconType:`fa-solid`,iconName:i.iconName,alt:``,size:`xs`})})},E=e=>{e.preventDefault(),_?.({values:r.filter(e=>e.type!==`information`).reduce((e,t)=>({...e,[t.id]:t.value}),{})})},D=e=>{let t=ps(e.value),n=bs(e)===`error`,r=t;if(e.type===`currency`&&x!==e.id&&(r=ms(e.value)),e.type===`information`){let n=[`rounded-md border border-borderTertiary bg-adminSideNavBackground px-3 py-2 text-sm text-primary whitespace-pre-wrap`,e.informationLayout===`multiline`?`min-h-24`:`flex min-h-10 items-center`].join(` `);return(0,u.jsx)(`div`,{id:e.id,"aria-labelledby":`${e.id}-label`,className:n,children:t})}if(e.type===`select`)return(0,u.jsx)(os,{id:e.id,name:e.id,value:t,placeholder:e.placeholder,options:e.options,disabled:e.readOnly,hasError:n,onChange:t=>w(e,t.target.value)});if(e.type===`multiSelectTiles`){let t=Array.isArray(e.value)?e.value:[],n=Math.max(e.selectionLimit??3,1),r=t.length>=n;return(0,u.jsx)(`div`,{role:`group`,"aria-labelledby":`${e.id}-label`,className:`grid grid-cols-4 gap-x-3 gap-y-4 md:grid-cols-8`,children:(e.options??[]).map(n=>{let i=t.includes(n.value),a=e.readOnly||n.disabled||r&&!i,o=`hover:border-primary`;return a&&(o=i?`cursor-not-allowed`:`cursor-not-allowed opacity-40`),(0,u.jsxs)(`button`,{type:`button`,"aria-pressed":i,disabled:a,className:[`flex min-w-0 flex-col items-center gap-1.5 text-center text-xs font-semibold text-primary`,o].join(` `),onClick:()=>w(e,i?t.filter(e=>e!==n.value):[...t,n.value]),children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:[`flex h-9 w-9 items-center justify-center border border-secondaryHover transition-shadow`,i?`ring-2 ring-primary ring-offset-2`:`ring-0`].join(` `),style:{backgroundColor:n.color},children:i?(0,u.jsx)(S,{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)(ss,{id:`${e.id}-${n.value}`,name:e.id,label:n.label,value:n.value,checked:t===n.value,disabled:e.readOnly||n.disabled,onChange:t=>w(e,t)},n.value))}):e.type===`textarea`?(0,u.jsx)(ie,{id:e.id,name:e.id,value:t,placeholder:e.placeholder,readOnly:e.readOnly,required:e.required,hasError:n,rows:e.rows,onChange:t=>w(e,t.target.value)}):(0,u.jsx)(Zo,{id:e.id,name:e.id,type:e.type===`text`||e.type===`date`?e.type:`number`,value:r,placeholder:e.placeholder,readOnly:e.readOnly,required:e.required,min:e.min,max:e.max,step:e.step,hasError:n,clearable:!0,leadingIcon:e.type===`currency`?(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`dollar-sign`,alt:``,size:`xs`}):void 0,onChange:t=>w(e,e.type===`text`||e.type===`date`?t.target.value:vs(t.target.value)),onFocus:()=>{e.type===`currency`&&C(e.id)},onBlur:()=>{e.type===`currency`&&C(void 0)},onClear:()=>w(e,e.type===`text`||e.type===`date`?``:null)})},O=e=>{let t=e.message?.trim()??``,n=e.helpText?.trim()??``;return!t&&!n?null:(0,u.jsx)(v,{variant:`free`,className:s===`below-label`?`${e.type===`multiSelectTiles`?`mb-4`:`mb-1.5`} min-w-0 text-left text-xs text-tertiary`:`ml-auto min-w-0 text-right text-xs text-tertiary`,children:t||n})},k=(e,t)=>{let n=e.label,r=e.layoutWidth===`half`?``:`md:col-span-2`;t&&(r=`md:col-span-6`,e.layoutWidth===`half`&&(r=`md:col-span-3`),e.layoutWidth===`third`&&(r=`md:col-span-2`));let i=[ds[a],r].filter(Boolean).join(` `),c=O(e);return(0,u.jsxs)(`div`,{className:i,children:[(0,u.jsxs)(`div`,{className:e.type===`multiSelectTiles`&&s===`inline`?`mb-4 flex flex-wrap items-center gap-2`:fs[a],children:[e.iconName?(0,u.jsx)(S,{iconType:`fa-solid`,iconName:e.iconName,alt:``,size:`sm`,color:`secondaryHover`,className:`w-4 shrink-0`}):null,T(e,o),e.type===`radio`||e.type===`multiSelectTiles`||e.type===`information`?(0,u.jsx)(`span`,{id:`${e.id}-label`,className:`text-sm font-semibold text-primary`,children:n}):(0,u.jsx)(`label`,{htmlFor:e.id,className:`text-sm font-semibold text-primary`,children:n}),s===`inline`?c:null]}),s===`below-label`?c:null,D(e)]},e.id)},A=e=>{let t=e.some(e=>e.layoutWidth===`third`),n=e.some(e=>e.layoutWidth===`half`),r=us[a];return n&&(r=`grid md:grid-cols-2 ${a===`compact`?`gap-3`:`gap-4`}`),t&&(r=`grid md:grid-cols-6 ${a===`compact`?`gap-3`:`gap-4`}`),(0,u.jsx)(`div`,{className:r,children:e.map(e=>k(e,t))})};return(0,u.jsxs)(`form`,{className:`space-y-5`,onSubmit:E,children:[e||b||n?(0,u.jsxs)(`header`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,u.jsxs)(`div`,{children:[e?(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:e}):null,b?(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:b}):null]}),n]}):null,(()=>{if(!i?.length)return A(r);let e=new Map(r.map(e=>[e.id,e])),t=r.filter(e=>!i.some(t=>t.fieldIds.includes(e.id)));return(0,u.jsxs)(`div`,{className:`space-y-6`,children:[i.map(t=>{let n=t.fieldIds.map(t=>e.get(t)).filter(e=>!!e);return n.length?(0,u.jsxs)(`section`,{"aria-labelledby":`${t.id}-heading`,children:[(0,u.jsxs)(`div`,{className:`mb-4 flex items-center gap-3`,children:[(0,u.jsx)(v,{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)(v,{variant:`free`,className:`mb-4 text-sm text-secondaryActive`,children:t.description}):null,A(n)]},t.id):null}),t.length?A(t):null]})})(),h,m?(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row md:justify-end`,children:[y?(0,u.jsx)(P,{label:d,variant:`outline`,intent:`primary`,disabled:f,onClick:y}):null,(0,u.jsx)(P,{label:l,variant:`solid`,intent:`primary`,type:`submit`,disabled:p})]}):null]})},Ss=({itemLabel:e,selectedCount:t,failedCount:n,disableAllDisabled:r,onSelectAll:i,onSelectFailed:a,onDisableAll:o,onClear:s,onCancel:c})=>(0,u.jsxs)(`div`,{"aria-label":`${e===`sheet`?`sheets`:`samples`} bulk actions`,className:`mt-3 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsxs)(v,{variant:`free`,className:`text-xs font-bold text-primary`,children:[t,` selected`]}),(0,u.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:[(0,u.jsx)(P,{label:`Select all`,variant:`outline`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,onClick:i}),(0,u.jsx)(P,{label:`Select failed checks (${n})`,variant:`outline`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,disabled:n===0,onClick:a}),(0,u.jsx)(P,{label:`Disable all`,variant:`outline`,intent:`danger`,size:`xs`,className:`shrink-0 whitespace-nowrap`,disabled:r,onClick:o})]}),(0,u.jsxs)(`div`,{className:`mt-2 flex items-center gap-1`,children:[(0,u.jsx)(P,{label:`Clear`,variant:`ghost`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,disabled:t===0,onClick:s}),(0,u.jsx)(P,{label:`Cancel`,variant:`ghost`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,onClick:c})]})]}),Cs=({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)(P,{label:`Delete ${t} selected`,variant:`solid`,intent:`accent`,size:`sm`,fullWidth:!0,disabled:n,onClick:r})}),ws=({guide:e})=>{let t=e.segments.some(e=>e.description?.trim());return(0,u.jsxs)(`details`,{className:`rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsx)(`summary`,{className:`cursor-pointer text-sm font-bold text-primary`,children:e.title}),(0,u.jsxs)(`div`,{className:`mt-4 space-y-4`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{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)(v,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:e.exampleLabel}),(0,u.jsx)(`code`,{className:`mt-1 block break-all text-sm text-primary`,children:e.example})]}),(0,u.jsx)(`div`,{className:`overflow-x-auto`,children:(0,u.jsxs)(`table`,{className:`w-full text-left text-xs text-primary`,children:[(0,u.jsx)(`thead`,{className:`border-b border-borderTertiary text-tertiary`,children:(0,u.jsxs)(`tr`,{children:[(0,u.jsx)(`th`,{className:`pb-2 pr-2 font-bold`,children:`Code`}),(0,u.jsx)(`th`,{className:`pb-2 pr-2 font-bold`,children:`Field`}),(0,u.jsx)(`th`,{className:`pb-2 text-right font-bold`,children:`Example`}),t?(0,u.jsx)(`th`,{className:`pb-2 pl-2 font-bold`,children:`Meaning`}):null]})}),(0,u.jsx)(`tbody`,{children:e.segments.map(e=>(0,u.jsxs)(`tr`,{className:`border-b border-borderTertiary last:border-0`,children:[(0,u.jsxs)(`td`,{className:`py-2 pr-2 font-mono font-bold`,children:[e.pattern,(0,u.jsxs)(`span`,{className:`ml-1 text-tertiary`,children:[`(`,e.length,`)`]})]}),(0,u.jsx)(`td`,{className:`py-2 pr-2`,children:e.label}),(0,u.jsx)(`td`,{className:`py-2 text-right font-mono`,children:e.example}),t?(0,u.jsx)(`td`,{className:`py-2 pl-2`,children:e.description}):null]},e.pattern))})]})}),e.coreNote?(0,u.jsx)(v,{variant:`free`,className:`text-xs text-tertiary`,children:e.coreNote}):null,e.sampleNote?(0,u.jsx)(v,{variant:`free`,className:`rounded-md border border-borderTertiary bg-secondary p-3 text-xs text-primary`,children:e.sampleNote}):null]})]})},Ts=({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)(v,{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)(v,{variant:`free`,className:`text-xs text-primary`,children:e.canonicalSkuNote}),(0,u.jsx)(v,{variant:`free`,className:`text-xs text-primary`,children:e.parsingNote}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{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)(v,{variant:`free`,className:`rounded-md border border-yellow-500 bg-yellow-50 p-3 text-xs text-yellow-700`,children:e.caution})]})]}),Es=({sectionData:e,onSampleSearchChange:t,onSampleSelect:n,onAddSampleClick:r,onSampleVariantSelect:i,onNewSampleSkuChange:a,onSampleFieldChange:o,onSampleLocalizationAvailabilityChange:s,onSampleSave:c,onSampleCancel:l,onSampleCreate:d,onSampleDelete:f,onSampleBulkSelectionChange:p,onSampleBulkDelete:m,onSampleDisableAll:h,onSampleBigCommerceSync:g})=>{let{editor:_,guide:y,sampleGuide:b}=e,x={region:e.region,samples:e.items},C=x.region===`north-america`,w=null;C&&b?w=(0,u.jsx)(Ts,{guide:b}):y&&(w=(0,u.jsx)(ws,{guide:y}));let T=x.samples.find(e=>e.id===_.selectedSampleId),E=T?.bigCommerceReady??!1,D=_.integration?.bigCommerceStatusLabel??(E?`Ready`:`Not found`),O=x.samples.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.size}`})),k=_.bulkSelection,A=k?.selectedIds??[],j=x.samples.filter(e=>!e.isSampleable).map(e=>e.id),M=_.saveStatus===`saving`,N=_.variantOptionsReadOnly??!1,F=_.variantGroups??[{title:`Finish`,iconName:`paint-roller`,dimension:`finish`,options:_.finishOptions,selectedValue:_.selectedFinish},{title:`Size`,iconName:`ruler-combined`,dimension:`size`,options:_.sizeOptions,selectedValue:_.selectedSize}],I={..._.implicitVariantSelections,...Object.fromEntries(F.filter(e=>e.selectedValue!==void 0).map(e=>[e.dimension,e.selectedValue]))},L=null;_.mode===`create`?L=(0,u.jsx)(P,{label:_.createLabel??`Create Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:_.createDisabled,onClick:()=>d?.({sku:_.newSkuValue,finish:_.selectedFinish??``,size:_.selectedSize??``,variantSelections:I})}):T&&(L=(0,u.jsx)(P,{label:_.controls.saveLabel,iconType:`fa-solid`,iconName:M?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:_.controls.saveDisabled||M,"aria-busy":M||void 0,onClick:()=>c?.({sampleId:T.id})}));let R=null;return _.mode===`create`?R=(0,u.jsxs)(`div`,{className:`mt-5`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-new-sample-sku`,className:`text-sm font-bold text-primary`,children:`New Sample SKU`}),(0,u.jsx)(Zo,{id:`market-readiness-new-sample-sku`,name:`newSampleSku`,value:_.newSkuValue,placeholder:`Generated sample SKU`,leadingIcon:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>a?.({value:e.target.value})})]}):T?.sourceIdentifier&&(R=(0,u.jsxs)(`div`,{className:`mt-5 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-xs text-tertiary`,children:`Salsify identifier`}),(0,u.jsx)(`code`,{className:`mt-1 block break-all text-sm text-primary`,children:T.sourceIdentifier})]})),(0,u.jsxs)(`section`,{role:`tabpanel`,"aria-label":`Samples`,className:`mt-5 grid gap-5 md:grid-cols-3`,children:[(0,u.jsxs)(`div`,{className:`space-y-5 md:col-span-2`,children:[(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-end`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-sample-search`,className:`text-sm font-bold text-primary`,children:`Sample SKU`}),(0,u.jsx)($o,{id:`market-readiness-sample-search`,name:`sampleSearch`,ariaLabel:`Sample SKU`,value:_.searchValue,options:O,valueStatus:T?.isSampleable===!1&&_.searchValue===T.sku?`inactive`:`default`,placeholder:`Search sample SKUs`,controlSize:`default`,onQueryChange:t,onClear:()=>t?.({value:``}),onOptionSelect:({option:e})=>{let t=x.samples.find(t=>t.id===e.value);t&&n?.({sampleId:t.id,sku:t.sku})}})]}),(0,u.jsx)(P,{label:_.addLabel??`Add Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:r})]})}),_.mode===`edit`&&!T?(0,u.jsxs)(`section`,{className:`rounded-lg border border-dashed border-borderTertiary bg-secondary p-8 text-center`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:_.emptyTitle}),(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-primary`,children:_.emptyMessage})]}):(0,u.jsxs)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:_.mode===`create`?`Create a new sample`:T?.sku}),(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-tertiary`,children:_.identifierHelpText}),R,(0,u.jsx)(`div`,{className:`mt-5 space-y-5`,children:F.map(e=>(0,u.jsx)(Jo,{...e,readOnly:N||(e.readOnly??!1),onSelect:(e,t)=>i?.({dimension:e,value:t})},e.dimension))}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(xs,{fields:_.fields,density:`compact`,severityDisplay:`icon`,fieldMessagePlacement:`below-label`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>o?.({sampleId:T?.id,fieldId:e,value:t})})}),_.localizationAvailability?.length?(0,u.jsx)(`div`,{className:`mt-6 border-t border-borderTertiary pt-5`,children:(0,u.jsx)(ts,{iconName:`globe`,indentOptions:!0,label:_.localizationAvailabilityLabel??`Sub-region availability`,defaultOpen:!1,options:_.localizationAvailability.map(e=>({id:`sample-localization-${e.id}`,name:`sampleLocalizationAvailability`,label:e.label,checked:e.enabled??!0,disabled:e.disabled,onChange:({checked:t})=>s?.({sampleId:T?.id,localizationId:e.id,enabled:t})}))})}):null,C&&_.mode===`edit`&&T?(0,u.jsx)(`section`,{className:`mt-6 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:`Big Commerce`}),(0,u.jsxs)(`div`,{"aria-label":`Sample Big Commerce status: ${D}`,className:`mt-2 flex items-center gap-2 text-sm text-primary`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-3 w-3 shrink-0 rounded-full ${E?`bg-saleGreen`:`bg-accent`}`}),(0,u.jsx)(`span`,{children:D})]})]}),(0,u.jsx)(P,{label:_.integration?.bigCommerceSyncLabel??`Sync`,iconType:`fa-solid`,iconName:_.integration?.bigCommerceSyncLoading?`spinner`:`arrows-rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,className:`w-24`,disabled:_.integration?.bigCommerceSyncDisabled||_.integration?.bigCommerceSyncLoading||!g,"aria-busy":_.integration?.bigCommerceSyncLoading||void 0,onClick:()=>g?.({sampleId:T.id})})]})}):null,(0,u.jsxs)(`footer`,{className:`mt-6 flex flex-col-reverse gap-3 border-t border-borderTertiary pt-5 md:flex-row md:items-end md:justify-between`,children:[(0,u.jsx)(`div`,{children:_.mode===`edit`&&T&&_.deleteLabel&&f?(0,u.jsx)(P,{label:_.deleteLabel,variant:`outline`,intent:`danger`,disabled:_.deleteDisabled||M,onClick:()=>f?.({sampleId:T.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(K,{status:_.saveStatus,label:_.saveStatusLabel,errorMessage:_.saveErrorMessage,lastSavedLabel:_.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(P,{label:_.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:_.controls.cancelDisabled||M,onClick:l}),L]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[w,(0,u.jsxs)(`aside`,{className:`rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`sticky top-4 z-10 bg-secondary pb-1`,children:[(0,u.jsxs)(`div`,{"aria-label":`Samples list header`,className:`flex items-center justify-between gap-3`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`Samples`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[k?(0,u.jsx)(P,{iconType:k.active?`fa-solid`:`fa-regular`,iconName:k.active?`square-check`:`square`,iconAlt:k.active?`Close sample selection`:`Select samples`,variant:`ghost`,intent:k.active?`accent`:`primary`,size:`xs`,onClick:()=>p?.({active:!k.active,sampleIds:[]})}):null,(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:x.samples.length})]})]}),k?.active?(0,u.jsx)(Ss,{itemLabel:`sample`,selectedCount:A.length,failedCount:j.length,disableAllDisabled:k.disableAllDisabled||x.samples.length===0||!h,onSelectAll:()=>p?.({active:!0,sampleIds:x.samples.map(e=>e.id)}),onSelectFailed:()=>p?.({active:!0,sampleIds:j}),onDisableAll:()=>h?.({sampleIds:x.samples.map(e=>e.id)}),onClear:()=>p?.({active:!0,sampleIds:[]}),onCancel:()=>p?.({active:!1,sampleIds:[]})}):null]}),x.samples.length?(0,u.jsx)(`div`,{className:`mt-4 space-y-2`,children:x.samples.map(e=>{let t=A.includes(e.id),r=k?.active?t:e.id===_.selectedSampleId;return(0,u.jsx)(be,{sampleId:e.id,sku:e.sku,isSampleable:e.isSampleable,bigCommerceReady:x.region===`north-america`?e.bigCommerceReady:void 0,selected:r,selectionMode:k?.active??!1,onSampleClick:()=>{if(k?.active){p?.({active:!0,sampleIds:t?A.filter(t=>t!==e.id):[...A,e.id]});return}n?.({sampleId:e.id,sku:e.sku})}},e.id)})}):(0,u.jsx)(v,{variant:`free`,className:`mt-4 text-sm text-tertiary`,children:`No samples have been added to this decor.`}),k?.active&&A.length>0?(0,u.jsx)(Cs,{itemLabel:`sample`,selectedCount:A.length,deleteDisabled:k.deleteDisabled||!m,onDelete:()=>m?.({sampleIds:A})}):null]})]})]})},Ds=({sectionData:e,onSkuSearchChange:t,onSkuSelect:n,onAddSkuClick:r,onSkuVariantSelect:i,onNewSkuChange:a,onSkuFieldChange:o,onSkuLocalizationAvailabilityChange:s,onSkuSave:c,onSkuCancel:l,onSkuCreate:d,onSkuDelete:f,onSkuBulkSelectionChange:p,onSkuBulkDelete:m,onSkuDisableAll:h,onLxUpdate:g,onBigCommerceSync:_})=>{let{editor:y,guide:b}=e,x={region:e.region,skus:e.items},C=x.region===`north-america`,w=x.skus.find(e=>e.id===y.selectedSkuId),T=!!y.integration?.bigCommerceId?.trim(),E=y.integration?.bigCommerceStatusLabel??(T?`Ready`:`Not found`),D=y.integration?.availableForOnlineCheckout??y.integration?.availabilityLabel?.trim().toLowerCase()===`true`,O=x.skus.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.grade} · ${e.size}`})),k=y.bulkSelection,A=k?.selectedIds??[],j=x.skus.filter(e=>!e.isForSale).map(e=>e.id),M=y.saveStatus===`saving`,N=y.variantGroups??[{title:`Grade`,iconName:`layer-group`,dimension:`grade`,options:y.gradeOptions,selectedValue:y.selectedGrade},{title:`Finish`,iconName:`paint-roller`,dimension:`finish`,options:y.finishOptions,selectedValue:y.selectedFinish},{title:`Size`,iconName:`ruler-combined`,dimension:`size`,options:y.sizeOptions,selectedValue:y.selectedSize}],F={...y.implicitVariantSelections,...Object.fromEntries(N.filter(e=>e.selectedValue!==void 0).map(e=>[e.dimension,e.selectedValue]))},I=null;return y.mode===`create`?I=(0,u.jsx)(P,{label:y.createLabel??`Create SKU`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:y.createDisabled,onClick:()=>d?.({sku:y.newSkuValue,grade:y.selectedGrade??``,finish:y.selectedFinish??``,size:y.selectedSize??``,variantSelections:F})}):w&&(I=(0,u.jsx)(P,{label:y.controls.saveLabel,iconType:`fa-solid`,iconName:M?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:y.controls.saveDisabled||M,"aria-busy":M||void 0,onClick:()=>c?.({skuId:w.id})})),(0,u.jsxs)(`section`,{role:`tabpanel`,"aria-label":`Sheets`,className:`mt-5 grid gap-5 md:grid-cols-3`,children:[(0,u.jsxs)(`div`,{className:`space-y-5 md:col-span-2`,children:[(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-end`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-sku-search`,className:`text-sm font-bold text-primary`,children:`Sheet SKU`}),(0,u.jsx)($o,{id:`market-readiness-sku-search`,name:`skuSearch`,ariaLabel:`Sheet SKU`,value:y.searchValue,options:O,valueStatus:w?.isForSale===!1&&y.searchValue===w.sku?`inactive`:`default`,placeholder:`Search sheet SKUs`,controlSize:`default`,onQueryChange:t,onClear:()=>t?.({value:``}),onOptionSelect:({option:e})=>{let t=x.skus.find(t=>t.id===e.value);t&&n?.({skuId:t.id,sku:t.sku})}})]}),(0,u.jsx)(P,{label:y.addSkuLabel??`Add Sheet`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:r})]})}),y.mode===`edit`&&!w?(0,u.jsxs)(`section`,{className:`rounded-lg border border-dashed border-borderTertiary bg-secondary p-8 text-center`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`Select a sheet to edit`}),(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-primary`,children:`Search above or choose one from the sheet list.`})]}):(0,u.jsxs)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:y.mode===`create`?`Create a new sheet SKU`:w?.sku}),w?(0,u.jsxs)(`div`,{className:`ml-auto flex flex-wrap items-center justify-end gap-2`,children:[w.statusLabel?(0,u.jsx)(`span`,{className:`rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-primary`,children:w.statusLabel}):null,(0,u.jsxs)(`span`,{"aria-label":`Big Commerce readiness: ${E}`,className:`rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-primary`,children:[`Big Commerce: `,E]})]}):null]}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:y.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.`})]}),y.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)(Zo,{id:`market-readiness-new-sku`,name:`newSku`,value:y.newSkuValue,placeholder:`Generated sheet SKU`,leadingIcon:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>a?.({value:e.target.value})})]}):null,(0,u.jsx)(`div`,{className:`mt-5 grid gap-5`,children:N.map(e=>(0,u.jsx)(Jo,{...e,readOnly:e.readOnly??!1,onSelect:(e,t)=>i?.({dimension:e,value:t})},e.dimension))}),y.duplicateMessage?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`mt-4 rounded-md border border-accent bg-accent/10 p-3 text-sm text-accent`,children:y.duplicateMessage}):null,(0,u.jsxs)(`div`,{className:`mt-6 border-t border-borderTertiary pt-5`,children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:`Lifecycle and selling options`}),(0,u.jsx)(v,{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)(xs,{fields:y.fields,density:`compact`,severityDisplay:`icon`,fieldMessagePlacement:`below-label`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>o?.({skuId:w?.id,fieldId:e,value:t})})})]}),y.localizationAvailability?.length?(0,u.jsx)(`div`,{className:`mt-6 border-t border-borderTertiary pt-5`,children:(0,u.jsx)(ts,{iconName:`globe`,indentOptions:!0,label:y.localizationAvailabilityLabel??`Sub-region availability`,defaultOpen:!1,options:y.localizationAvailability.map(e=>({id:`sheet-localization-${e.id}`,name:`sheetLocalizationAvailability`,label:e.label,checked:e.enabled??!0,disabled:e.disabled,onChange:({checked:t})=>s?.({skuId:w?.id,localizationId:e.id,enabled:t})}))})}):null,C&&y.mode===`edit`?(0,u.jsxs)(`div`,{className:`mt-6 space-y-4`,children:[(0,u.jsx)(`section`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:`Big Commerce`}),(0,u.jsxs)(`div`,{"aria-label":`Big Commerce status: ${E}`,className:`mt-2 flex items-center gap-2 text-sm text-primary`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-3 w-3 shrink-0 rounded-full ${T?`bg-saleGreen`:`bg-accent`}`}),(0,u.jsx)(`span`,{children:E})]})]}),w?(0,u.jsx)(P,{label:y.integration?.bigCommerceSyncLabel??`Sync`,iconType:`fa-solid`,iconName:y.integration?.bigCommerceSyncLoading?`spinner`:`arrows-rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,className:`w-24`,disabled:y.integration?.bigCommerceSyncDisabled||y.integration?.bigCommerceSyncLoading||!_,"aria-busy":y.integration?.bigCommerceSyncLoading||void 0,onClick:()=>_?.({skuId:w.id})}):null]})}),(0,u.jsxs)(`section`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,u.jsxs)(`div`,{"aria-label":`LX availability: ${D?`Available`:`Unavailable`}`,className:`flex items-center gap-2`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-3 w-3 shrink-0 rounded-full ${D?`bg-saleGreen`:`bg-accent`}`}),(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:`LX`})]}),w?(0,u.jsx)(P,{label:y.integration?.lxUpdateLabel??`Update`,iconType:`fa-solid`,iconName:y.integration?.lxUpdateLoading?`spinner`:`rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,className:`w-24`,disabled:y.integration?.lxUpdateDisabled||y.integration?.lxUpdateLoading||!g,"aria-busy":y.integration?.lxUpdateLoading||void 0,onClick:()=>g?.({skuId:w.id})}):null]}),(0,u.jsxs)(`dl`,{className:`mt-4 grid gap-4 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`LX SKU`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:y.integration?.lxId??`Not assigned`})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Price`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:y.integration?.priceLabel??`Not available`})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Available For Online Checkout`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:y.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:y.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:y.mode===`edit`&&w&&y.deleteLabel&&f?(0,u.jsx)(P,{label:y.deleteLabel,variant:`outline`,intent:`danger`,disabled:y.deleteDisabled||M,onClick:()=>f?.({skuId:w.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(K,{status:y.saveStatus,label:y.saveStatusLabel,errorMessage:y.saveErrorMessage,lastSavedLabel:y.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(P,{label:y.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:y.controls.cancelDisabled||M,onClick:l}),I]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[b?(0,u.jsx)(ws,{guide:b}):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)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`Sheets`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[k?(0,u.jsx)(P,{iconType:k.active?`fa-solid`:`fa-regular`,iconName:k.active?`square-check`:`square`,iconAlt:k.active?`Close sheet selection`:`Select sheets`,variant:`ghost`,intent:k.active?`accent`:`primary`,size:`xs`,onClick:()=>p?.({active:!k.active,skuIds:[]})}):null,(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:x.skus.length})]})]}),k?.active?(0,u.jsx)(Ss,{itemLabel:`sheet`,selectedCount:A.length,failedCount:j.length,disableAllDisabled:k.disableAllDisabled||x.skus.length===0||!h,onSelectAll:()=>p?.({active:!0,skuIds:x.skus.map(e=>e.id)}),onSelectFailed:()=>p?.({active:!0,skuIds:j}),onDisableAll:()=>h?.({skuIds:x.skus.map(e=>e.id)}),onClear:()=>p?.({active:!0,skuIds:[]}),onCancel:()=>p?.({active:!1,skuIds:[]})}):null]}),(0,u.jsx)(`div`,{className:`mt-4 space-y-2`,children:x.skus.map(e=>{let t=A.includes(e.id),r=k?.active?t:e.id===y.selectedSkuId;return(0,u.jsx)(Se,{skuId:e.id,sku:e.sku,lxReady:e.lxReady,bigCommerceReady:x.region===`north-america`?e.bigCommerceReady:void 0,isForSale:e.isForSale,grade:e.grade,finish:e.finish,size:e.size,selected:r,selectionMode:k?.active??!1,onSkuClick:()=>{if(k?.active){p?.({active:!0,skuIds:t?A.filter(t=>t!==e.id):[...A,e.id]});return}n?.({skuId:e.id,sku:e.sku})}},e.id)})}),k?.active&&A.length>0?(0,u.jsx)(Cs,{itemLabel:`sheet`,selectedCount:A.length,deleteDisabled:k.deleteDisabled||!m,onDelete:()=>m?.({skuIds:A})}):null]})]})]})},Os=e=>e.itemType===`sheet`?(0,u.jsx)(Ds,{...e}):(0,u.jsx)(Es,{...e}),ks=({editors:e,onVariantAvailabilityChange:t,onVariantAvailabilitySave:n,onVariantAvailabilityCancel:r})=>(0,u.jsx)(`section`,{role:`tabpanel`,"aria-label":`Availability`,className:`mt-5 space-y-5`,children:e.map(e=>{let i=e.saveStatus===`saving`;return(0,u.jsxs)(`section`,{"aria-labelledby":`${e.id}-title`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:p-6`,children:[(0,u.jsx)(v,{as:`h2`,variant:`bold`,id:`${e.id}-title`,children:e.title}),e.description?(0,u.jsx)(v,{variant:`body`,className:`mt-2`,children:e.description}):null,e.impactMessage?(0,u.jsx)(v,{role:`note`,variant:`free`,className:`mt-4 rounded-md border border-yellow-500 bg-yellow-50 p-3 text-sm text-yellow-700`,children:e.impactMessage}):null,e.items.length?(0,u.jsx)(`div`,{className:`mt-5 space-y-4`,children:e.items.map(n=>(0,u.jsx)(`div`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:(0,u.jsx)(ts,{iconName:`globe`,indentOptions:!0,defaultOpen:!1,label:`${n.label} (${n.variantCount} ${n.variantCount===1?`variant`:`variants`})`,options:n.localizationAvailability.map(r=>({id:`${e.id}-${n.id}-${r.id}`,name:`${e.id}-${n.id}-availability`,label:r.label,checked:r.enabled??!0,disabled:r.disabled||i||!t,onChange:({checked:i})=>t?.({editorId:e.id,itemId:n.id,localizationId:r.id,enabled:i})}))})},n.id))}):(0,u.jsxs)(`div`,{className:`mt-5 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(v,{as:`h3`,variant:`bold`,children:e.emptyTitle}),(0,u.jsx)(v,{variant:`body`,className:`mt-1`,children:e.emptyMessage})]}),(0,u.jsxs)(`footer`,{className:`mt-5 flex flex-col gap-3 border-t border-borderTertiary pt-5 md:flex-row md:items-end md:justify-between`,children:[(0,u.jsx)(K,{status:e.saveStatus,label:e.saveStatusLabel,errorMessage:e.saveErrorMessage,lastSavedLabel:e.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2 md:ml-auto`,children:[(0,u.jsx)(P,{label:e.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:e.controls.cancelDisabled||i||!r,onClick:()=>r?.({editorId:e.id})}),(0,u.jsx)(P,{label:e.controls.saveLabel,iconType:`fa-solid`,iconName:i?`spinner`:`floppy-disk`,iconAlt:``,intent:`primary`,disabled:e.controls.saveDisabled||i||!n,"aria-busy":i||void 0,onClick:()=>n?.({editorId:e.id})})]})]})]},e.id)})}),As=({children:e,layoutVariant:t=`default`})=>{let n={default:``,stacked:`flex-col md:flex-row`,separator:`min-h-10`}[t];return(0,u.jsx)(`section`,{className:`mx-auto flex max-w-6xl justify-center`,children:(0,u.jsx)(`div`,{className:`w-full`,children:(0,u.jsx)(`div`,{className:`flex w-full items-center gap-4 rounded-none bg-secondary px-4 pt-0 pb-8 md:flex-wrap md:rounded-lg md:bg-multibarBackground md:px-2 md:pt-2 md:pb-2 ${n}`.trim(),children:e})})})},js=({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)(P,{...e})}),(0,u.jsx)(`div`,{className:`md:hidden`,children:(0,u.jsx)(P,{...t})})]}),Ms=({dropdownProps:e,className:t=`w-full md:w-70`})=>(0,u.jsx)(`div`,{className:t,children:(0,u.jsx)(os,{...e})}),Ns={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`},Ps=({searchBarProps:e,searchPlaceholder:t,layoutVariant:n=`default`})=>(0,u.jsx)(`div`,{className:Ns[n],children:(0,u.jsx)(Qo,{...e,placeholder:t??e.placeholder})}),Fs=({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)(P,{variant:`ghost`,"aria-label":i,onClick:e,intent:n?.buttonType??`ghost`,className:n?.className??``,children:(0,u.jsx)(S,{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)(P,{variant:`ghost`,"aria-label":a,onClick:t,intent:r?.buttonType??`ghost`,className:r?.className??``,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`md`})})})]}),Is=({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}`))}),Ls=(e,t)=>Math.max(0,Math.min(e,t-1)),Rs=(e,t,n)=>n?(e+t)%t:Ls(e,t),zs=e=>!!(e.eyebrow||e.heading||e.subheading||e.body||e.ctas?.length),Bs=e=>`Open ${e.heading??`slide`}`,Vs=({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`})}),Hs=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>(0,u.jsx)(v,{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)(Vs,{slide:e,heightClassName:n})}),Us=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>(0,u.jsx)(G,{onCardClick:()=>{r(e,t)},ariaLabel:Bs(e),className:`block w-full cursor-pointer text-left`,children:(0,u.jsx)(Vs,{slide:e,heightClassName:n})}),Ws=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>e.link?(0,u.jsx)(Hs,{slide:e,index:t,heightClassName:n,onSlideClick:r}):r?(0,u.jsx)(Us,{slide:e,index:t,heightClassName:n,onSlideClick:r}):(0,u.jsx)(Vs,{slide:e,heightClassName:n}),Gs=({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)(v,{variant:`free`,className:`text-secondary text-sm font-normal md:font-bold mb-3`,children:e.eyebrow}):null,e.heading?(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-secondary text-3xl md:text-6xl mb-4`,children:e.heading}):null,e.subheading?(0,u.jsx)(v,{variant:`free`,className:`text-secondary text-lg font-bold mb-4 md:max-w-2xl`,children:e.subheading}):null,e.body?(0,u.jsx)(v,{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)(P,{...e},`${e.label??`cta`}-${t}`))}):null]})})}),Ks=({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(()=>Ls(t,m)),_=c.default.useRef(e);c.default.useEffect(()=>{_.current=e},[e]),c.default.useEffect(()=>{let e=Ls(t,m);g(e),s?.(e,_.current[e])},[t,m,s]);let v=e[h],y=m>1,b=!!p,x=!b&&zs(v),S=f??!b,C=t=>{let n=Rs(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)(Ws,{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)(Gs,{slide:v}):null,n&&y?(0,u.jsx)(`div`,{className:`hidden md:block`,children:(0,u.jsx)(Fs,{onPreviousClick:()=>C(h-1),onNextClick:()=>C(h+1),prevArrowButtonProps:o,nextArrowButtonProps:a})}):null,r&&y?(0,u.jsx)(Is,{count:e.length,activeIndex:h,onDotClick:C}):null]})},qs=e=>{let t=e.slides??[];return t.length===0?null:(0,u.jsx)(Ks,{...e,slides:t})},Js=e=>[`relative flex h-6 w-6 items-center justify-center border border-secondaryHover`,e.disabled?`opacity-50 cursor-not-allowed`:`cursor-pointer`].join(` `),Ys=({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)(P,{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)(v,{variant:`bold`,children:t}),(0,u.jsx)(S,{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:Js(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)(S,{iconType:`fa-solid`,iconName:`check`,size:`xs`,color:e.checkIconColor??`secondary`}):null})},`${e.name}-${e.id}`))})]})})},Xs=({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)(v,{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)(P,{label:e.label,size:`sm`,intent:`secondary`,onClick:()=>n?.(e)},e.id))}):null]}),Zs=({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)(v,{variant:`standard`,className:`mb-3 md:mb-5`,children:r}):null,(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-secondary text-3xl md:text-6xl mb-4`,children:e}),t?(0,u.jsx)(v,{variant:`free`,className:`text-secondary text-xl md:text-4xl font-bold mb-4`,children:t}):null,n?(0,u.jsx)(v,{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)(P,{label:e.label,variant:e.variant??`solid`,intent:e.intent??`accent`,className:e.className??`md:w-36`,onClick:e.onCtaClick},`${e.label}-${t}`))}):null]})}),Qs=({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)(P,{label:n,variant:`solid`,intent:`accent`,size:`sm`,className:`mx-auto md:mx-0`})}):null,(0,u.jsx)(v,{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)(v,{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)(P,{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)(P,{variant:`outline`,intent:`secondary`,size:`lg`,className:`border-2 p-2! text-secondary`,onClick:i,"aria-label":r,children:(0,u.jsx)(jo,{icon:Po,className:`h-4 w-4 -rotate-45 text-secondary`})})}):null]}),$s=({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)(v,{as:`h1`,variant:`free`,className:`mb-3! md:mb-1! text-secondary text-2xl md:text-5xl uppercase`,children:e}),t?(0,u.jsx)(v,{variant:`body`,className:`mb-6 text-secondary text-base font-light uppercase`,children:t}):null,n?(0,u.jsx)(v,{variant:`body`,className:`text-secondary text-base font-light`,children:n}):null,r?(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(P,{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]})}),ec=({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)(S,{iconType:e.iconType??`fa-brands`,iconName:e.iconName,alt:``,size:`base`})},`${e.label}-${e.href}`)})}):null,tc=({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)(L,{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)(v,{variant:`free`,className:`mb-2 text-sm font-bold text-secondary`,children:n}),i&&(0,u.jsx)(v,{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)(S,{iconType:`fa-solid`,iconName:`arrow-right`,color:`inherit`,className:`-rotate-45`})}):null]});return r?(0,u.jsx)(G,{onCardClick:r,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:o}):o},nc=({videoEmbedUrl:e,videoTitle:t,videoMessage:n})=>{let r=n?.trim();return(0,u.jsxs)(`div`,{className:`w-full`,children:[(0,u.jsx)(z,{src:e,title:t,className:`aspect-video rounded-lg`}),r?(0,u.jsx)(v,{variant:`caption`,className:`mt-2`,children:r}):null]})},rc=({documentInfoCardItem:e,layoutVariant:t=`table`,downloadLabelTemplate:n=`Download {name}`,onDownloadClick:r,onRangeClick:i})=>{let{name:a,range:o,documentType:s,documentSubtype:c}=e,l=n.replace(`{name}`,a),d=(0,u.jsx)(G,{ariaLabel:l,onCardClick:()=>r({documentInfoCardItem:e}),className:`absolute inset-0 cursor-pointer border-0 bg-transparent p-0 text-left focus-visible:z-10 focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-primary`,children:(0,u.jsx)(`span`,{className:`sr-only`,children:l})});return t===`compact`?(0,u.jsxs)(`article`,{className:`relative flex w-full items-center gap-4 border-b border-borderTertiary px-3 py-3 transition-colors hover:bg-multibarBackground/20`,children:[d,(0,u.jsxs)(`div`,{className:`pointer-events-none flex min-w-0 flex-1 flex-col gap-1 md:flex-row md:items-center md:gap-6`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm font-medium text-primary`,children:a}),(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-xs text-tertiary`,children:[s?(0,u.jsx)(`span`,{children:s}):null,s&&c?(0,u.jsx)(`span`,{"aria-hidden":`true`,children:`•`}):null,c?(0,u.jsx)(`span`,{children:c}):null]})]}),o?(0,u.jsx)(`div`,{className:`md:w-40 md:shrink-0`,children:(0,u.jsx)(P,{variant:`link`,intent:`accent`,onClick:()=>i({documentInfoCardItem:e}),className:`pointer-events-auto relative z-20 p-0! text-left! text-sm`,children:o})}):null]}),(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`download`,size:`lg`,color:`primary`,className:`pointer-events-none`})]}):(0,u.jsxs)(`div`,{className:`relative w-full flex flex-row justify-between items-center py-5 border-b border-borderTertiary hover:bg-multibarBackground/20 transition-colors`,children:[d,(0,u.jsxs)(`div`,{className:`pointer-events-none w-full flex flex-col md:flex-row justify-between items-start md:items-center gap-1 md:gap-4`,children:[(0,u.jsx)(v,{className:`flex-2`,children:a}),(0,u.jsx)(P,{variant:`link`,intent:`accent`,onClick:()=>i({documentInfoCardItem:e}),className:`pointer-events-auto relative z-20 flex-1 justify-start! text-xs md:text-sm p-0! text-left!`,children:o}),(0,u.jsx)(v,{className:`flex-1 text-xs md:text-sm`,children:s}),(0,u.jsx)(v,{className:`flex-1 text-xs md:text-sm`,children:c})]}),(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`download`,size:`xl`,color:`primary`,className:`pointer-events-none`})]})},ic=({title:e,details:t,iconName:n=`file-pdf`,onDocumentClick:r})=>(0,u.jsx)(P,{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)(S,{iconType:`fa-regular`,iconName:n,size:`4xl`})}),(0,u.jsxs)(`div`,{className:`flex flex-col`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary font-medium`,children:e}),(0,u.jsx)(v,{variant:`free`,className:`text-xs text-secondaryActive`,children:t})]})]})}),ac=({question:e,answer:t,initiallyOpen:n=!1})=>{let[r,i]=(0,c.useState)(n),a=(0,c.useId)();return(0,u.jsx)(G,{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)(v,{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)(v,{variant:`body`,className:`text-left`,children:t})})]}),(0,u.jsx)(`div`,{className:`flex items-start`,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`angle-down`,className:`transform transition-transform duration-300 text-secondaryActive text-lg ${r?`rotate-180`:``}`})})]})})},oc=({imageSrc:e,imageAlt:t=``,headline:n,body:r,buttons:i=[],align:a=`right`,layoutVariant:o=`default`,onButtonClick:s})=>{let c=a===`right`,l=o===`underBanner`?`mt-10 md:mt-20`:``,d=n?.trim()??``,f=i.filter(e=>e.buttonLabel.trim().length>0),p=(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)(L,{src:e,alt:t,className:`aspect-6/7 w-full object-cover rounded-lg md:aspect-video ${c?`md:rounded-l-lg`:`md:rounded-r-lg`}`,quality:90})}),(0,u.jsxs)(`div`,{className:`flex w-full flex-col justify-center bg-white px-4 md:w-1/3 md:px-0 md:py-14 ${c?`md:pr-7`:`md:pl-7`}`,children:[d&&(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`mb-4 text-center text-2xl md:mx-0 md:text-left md:text-4xl`,children:d}),(0,u.jsx)(v,{variant:`body`,className:`mb-6 text-center md:mb-20 md:text-left`,children:r}),f.length>0&&(0,u.jsx)(`div`,{"data-testid":`info-card-actions`,className:`flex w-full flex-col gap-2 md:gap-4`,children:f.map((e,t)=>(0,u.jsx)(P,{label:e.buttonLabel,variant:e.variant??`solid`,intent:e.intent??`accent`,size:e.size??`md`,fullWidth:!0,onClick:()=>p(e,t)},`${e.buttonLabel}-${t}`))})]})]})},sc=({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)(v,{as:`span`,variant:`body`,className:`!text-inherit`,children:a}),(0,u.jsx)(S,{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)(S,{iconType:e,iconName:t,size:`lg`,className:`mb-3`}),(0,u.jsx)(v,{as:`h3`,variant:`bold`,className:`mb-2`,children:n}),(0,u.jsx)(v,{variant:`body`,className:`mb-3 leading-relaxed text-sm text-light`,children:r}),c]})})},cc=[{key:`lrv`,code:`LRV`,iconName:`fa-sun`},{key:`ral`,code:`RAL`,iconName:`fa-palette`},{key:`ncs`,code:`NCS`,iconName:`fa-swatchbook`}],lc=e=>e!=null&&String(e).trim().length>0,uc=({colourMatching:e,label:t=`Colour Matching Information`})=>{let n=cc.map(t=>({...t,value:e?.[t.key]})).filter(e=>lc(e.value));return n.length?(0,u.jsxs)(`section`,{"aria-label":t,className:`mt-2 flex flex-col gap-2`,children:[(0,u.jsx)(v,{as:`h3`,variant:`bold`,className:`mb-0 text-sm md:text-base`,children:t}),(0,u.jsx)(`dl`,{className:`grid grid-cols-1 gap-2 text-sm text-primary`,children:n.map(e=>(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(S,{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},dc=e=>[`h-9 w-9 border-2 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),fc=({imageSrc:e,imageAlt:t,title:n,brand:r,decorNumber:i,finish:a,size:o,quantity:s,errorMessage:c,price:l,unitPrice:d,totalPrice:f,showPricing:p=!0,minQuantity:m=1,maxQuantity:h=99,isReadOnly:g=!1,removeItemLabel:_=`Remove item`,decreaseQuantityLabel:y=`Decrease quantity`,increaseQuantityLabel:b=`Increase quantity`,onQuantityChange:x,onRemoveItem:S})=>{let C=s>m,w=s<h,T=()=>{g||!C||x?.(s-1)},E=()=>{g||!w||x?.(s+1)},D=()=>{g||S?.()},O=f?.label||l?.label,k=`flex items-center gap-3`;return g&&(k=p?`grid grid-cols-[minmax(0,1fr)_120px_120px_120px] items-center gap-6`:`grid grid-cols-[minmax(0,1fr)_120px] items-center gap-6`),(0,u.jsxs)(`div`,{className:`w-full rounded-lg p-5 ${g?``:`bg-tertiaryActive`}`,children:[(0,u.jsxs)(`div`,{className:k,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center`,children:[(0,u.jsx)(L,{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)(v,{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)(v,{variant:`bold`,className:`min-w-0 font-bold`,children:n}),a&&o?(0,u.jsxs)(v,{variant:`free`,className:`text-base text-tertiary`,children:[a,`, `,o]}):null]}),(0,u.jsx)(v,{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)(v,{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)(v,{variant:`free`,className:`text-primary`,children:d?.label})}),(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(v,{variant:`free`,className:`font-extrabold text-primary`,children:O})})]}):null]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`flex shrink-0 items-center justify-end gap-1`,children:[C?(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":y,type:`button`,disabled:!C,onClick:T,className:dc(C)}):(0,u.jsx)(P,{iconType:`fa-regular`,iconName:`trash-can`,intent:`ghost`,variant:`solid`,"aria-label":_,type:`button`,onClick:D,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)(v,{as:`span`,variant:`free`,children:s})}),(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":b,type:`button`,disabled:!w,onClick:E,className:dc(w)})]}),p?(0,u.jsx)(`div`,{className:`flex w-24 shrink-0 justify-end`,children:O?(0,u.jsx)(v,{variant:`free`,className:`text-primary`,children:O}):null}):null]})]}),c?(0,u.jsx)(v,{variant:`free`,role:`alert`,className:`mt-2 text-sm text-accent`,children:c}):null]})},pc=/^(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?$/,mc=new Intl.DateTimeFormat(`en-US`,{month:`long`,day:`numeric`,year:`numeric`,timeZone:`UTC`}),hc=e=>{let t=pc.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)))},gc=e=>{let t=hc(e);if(t)return t;let n=new Date(e);return Number.isNaN(n.getTime())?null:n},_c=e=>{let t=e?.trim();if(!t)return``;let n=gc(t);return n?mc.format(n):t},vc=e=>e===`mediaLeftCompact`?`h-48 w-full rounded-lg object-cover mb-4 md:aspect-video md:h-auto md:mb-0`: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`,yc=({layoutVariant:e,mediaType:t,imageSrc:n,imageFallbackSrc:r,imageAlt:i,videoEmbedUrl:a,videoTitle:o,title:s})=>{let c=vc(e);return t===`video`&&a?(0,u.jsx)(z,{src:a,title:o??s,className:c}):(0,u.jsx)(`div`,{className:`relative overflow-hidden bg-gray-100 ${c}`,children:(0,u.jsx)(re,{src:n?.trim()?n:r,fallbackSrc:r,alt:i??``,imageClassName:`absolute inset-0 h-full w-full object-cover`,quality:90})})},bc=({layoutVariant:e=`default`,mediaType:t=`image`,imageSrc:n,imageFallbackSrc:r,imageAlt:i=``,videoEmbedUrl:a,videoTitle:o,category:s,title:c,publishDate:l,body:d,buttonLabel:f,onViewClick:p,actionFooter:m})=>{let h={default:{article:`w-full md:flex md:flex-row md:gap-8`,media:`w-full md:w-1/2`,content:`flex w-full flex-col justify-center md:w-1/2`},mediaRightCompact:{article:`w-full md:flex md:flex-row-reverse md:gap-0`,media:`w-full md:w-2/3`,content:`flex w-full flex-col justify-center md:w-1/3 md:pr-14`},mediaLeftCompact:{article:`w-full md:grid md:grid-cols-5 md:gap-8`,media:`w-full md:col-span-2`,content:`flex min-w-0 w-full flex-col justify-start md:col-span-3`}}[e],g=_c(l),_=f.trim();return(0,u.jsxs)(`article`,{className:h.article,children:[(0,u.jsx)(`div`,{className:h.media,children:yc({layoutVariant:e,mediaType:t,imageSrc:n,imageFallbackSrc:r,imageAlt:i,videoEmbedUrl:a,videoTitle:o,title:c})}),(0,u.jsxs)(`div`,{className:h.content,children:[s?(0,u.jsx)(v,{as:`p`,variant:`navlink`,className:`mt-4 mb-2 md:mt-0 md:mb-4 underline underline-offset-4`,children:s}):null,(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-2xl md:text-3xl mb-2 md:mb-4 mt-2`,children:c}),g?(0,u.jsx)(v,{variant:`body`,className:`mb-2 md:mb-4`,children:g}):null,(0,u.jsx)(v,{variant:`body`,className:`mb-4 md:mb-8`,children:d}),_?(0,u.jsx)(`div`,{className:e===`mediaLeftCompact`?`md:mt-auto`:void 0,children:(0,u.jsx)(P,{variant:`outline`,intent:`accent`,size:`sm`,label:_,onClick:p,className:`px-8 py-2 mb-2`})}):null,m?(0,u.jsx)(`div`,{className:`mt-4`,children:m}):null]})]})},xc=({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)(v,{as:`h2`,variant:`h2`,className:`mb-6`,children:e}),t?(0,u.jsx)(v,{variant:`body`,className:`mx-auto mb-6 max-w-2xl`,children:t}):null,(0,u.jsx)(P,{variant:`solid`,intent:`accent`,label:n,className:`mx-auto w-full max-w-md`,onClick:()=>{i?.({heading:e,body:t,buttonLabel:n,buttonHref:r})}})]}),Sc={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`}},Cc=({id:e,title:t,description:n,status:r,statusLabel:i,selected:a=!1,onCardClick:o})=>{let s=Sc[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)(S,{iconType:`fa-solid`,iconName:s.iconName,alt:``,size:`xs`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:t}),c?(0,u.jsx)(v,{variant:`free`,className:`mt-0.5 text-xs text-primary`,children:c}):null,(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs font-medium ${s.statusClassName}`,children:i})]})]});return o?(0,u.jsx)(G,{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},wc={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`}},Tc=`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbGw9IiNFNUU1RTUiLz4KICA8cmVjdCB4PSIxIiB5PSIxIiB3aWR0aD0iMjk4IiBoZWlnaHQ9IjI5OCIgZmlsbD0iI0YzRjNGMyIgc3Ryb2tlPSIjRDBEMEQwIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBkPSJNNDggMjAzTDExMCAxNDFMMTUzIDE4NEwyMjYgMTExTDI1MiAxMzdWMjUySDQ4VjIwM1oiIGZpbGw9IiNEOEQ4RDgiLz4KICA8Y2lyY2xlIGN4PSIxMDIiIGN5PSI5MSIgcj0iMjYiIGZpbGw9IiNEOEQ4RDgiLz4KICA8dGV4dCB4PSIxNTAiIHk9IjI3OCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iIzdBN0E3QSIgZm9udC1mYW1pbHk9IkFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjE4Ij5JbWFnZSBVbmF2YWlsYWJsZTwvdGV4dD4KPC9zdmc+Cg==`,Ec=({imageSrc:e,imageFallbackSrc:t,imageAlt:n,title:r,brand:i,product:a,decorNumber:o,status:s,onSwatchClick:c})=>{let l=s?wc[s]:null,d=typeof c==`function`,f=(0,u.jsx)(re,{src:e,fallbackSrc:t,placeholderSrc:Tc,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`}),p=`relative block aspect-square w-full overflow-hidden border-0 bg-neutral-100 p-0 text-left`;return(0,u.jsxs)(`section`,{className:`w-full flex flex-col md:flex-nowrap md:max-w-64 mx-auto items-center`,children:[(0,u.jsxs)(`div`,{className:`relative md:flex md:w-full w-52`,children:[d?(0,u.jsx)(G,{onCardClick:c,className:`${p} cursor-pointer`,ariaLabel:`Open ${r}${o}`,children:f}):(0,u.jsx)(`div`,{className:p,children:f}),l?(0,u.jsx)(`div`,{className:l.bannerContainerClassName,children:(0,u.jsx)(v,{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)(v,{variant:`free`,className:`text-sm text-tertiary`,children:o}),(0,u.jsx)(v,{variant:`free`,className:`text-primary text-lg font-bold`,children:r}),(0,u.jsx)(v,{variant:`free`,className:`text-base text-primary`,children:i}),a&&(0,u.jsx)(v,{variant:`free`,className:`text-base text-primary`,children:a}),l?.specialText?(0,u.jsx)(v,{variant:`free`,className:l.specialTextClassName,children:l.specialText}):null]})]})},Dc=({address:e,defaultLabel:t=`Default address`,editLabel:n=`Edit`,removeLabel:r=`Remove`,onEditClick:i,onRemoveClick:a})=>(0,u.jsxs)(`article`,{className:`relative flex w-full flex-col rounded-lg border border-borderTertiary bg-white p-6`,children:[e.isDefault?(0,u.jsx)(`span`,{className:`mb-4 w-fit rounded-full bg-primary px-3 py-1 text-xs font-semibold text-white`,children:t}):null,(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`font-rockwell text-xl text-primary`,children:e.fullName}),e.company?(0,u.jsx)(v,{className:`mt-2`,children:e.company}):null,(0,u.jsxs)(`address`,{className:`mt-3 not-italic`,children:[e.addressLines.map(e=>(0,u.jsx)(v,{className:`text-secondaryActive`,children:e},e)),e.phoneNumber?(0,u.jsx)(v,{className:`mt-1 text-secondaryActive`,children:e.phoneNumber}):null]}),(0,u.jsxs)(`div`,{className:`mt-6 flex flex-wrap gap-3 border-t border-borderTertiary pt-4`,children:[(0,u.jsx)(P,{label:n,iconType:`fa-solid`,iconName:`pen`,iconAlt:``,variant:`link`,intent:`accent`,size:`sm`,onClick:()=>i({address:e})}),(0,u.jsx)(P,{label:r,iconType:`fa-solid`,iconName:`trash-can`,iconAlt:``,variant:`link`,intent:`danger`,size:`sm`,onClick:()=>a({address:e})})]})]}),Oc={neutral:`bg-tertiaryActive text-primary`,accent:`bg-accent text-white`,success:`bg-green-50 text-primary`},kc=({orderNumber:e,orderDate:t,status:n,statusTone:r=`neutral`,projectName:i,invoiceLabel:a=`Download invoice`,onInvoiceClick:o})=>(0,u.jsx)(`header`,{className:`w-full rounded-lg border border-borderTertiary bg-adminSideNavBackground p-5 md:p-6`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-5 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,u.jsxs)(v,{as:`h1`,variant:`free`,className:`font-rockwell text-3xl text-primary`,children:[`Order #`,e]}),(0,u.jsx)(`span`,{className:`rounded-full px-3 py-1 text-sm font-semibold ${Oc[r]}`,children:n})]}),(0,u.jsxs)(v,{className:`mt-3 text-secondaryActive`,children:[`Placed `,t]}),i?(0,u.jsxs)(v,{className:`mt-1 text-secondaryActive`,children:[`Project: `,i]}):null]}),o?(0,u.jsx)(`div`,{className:`md:shrink-0`,children:(0,u.jsx)(P,{label:a,iconType:`fa-solid`,iconName:`download`,iconAlt:``,intent:`primary`,onClick:o})}):null]})}),Ac={neutral:`bg-tertiaryActive text-primary`,accent:`bg-accent text-white`,success:`bg-green-50 text-primary`},jc=({item:e,onProductClick:t,onTrackingClick:n})=>{let r=`${e.quantity}${e.quantityUnit?` ${e.quantityUnit}`:``}`,i=e.trackingNumber?n?(0,u.jsxs)(`button`,{type:`button`,className:`text-left text-sm font-semibold text-accent hover:underline`,onClick:()=>n({item:e}),children:[`Track shipment `,e.trackingNumber]}):(0,u.jsxs)(v,{className:`text-sm text-primary`,children:[`Tracking: `,e.trackingNumber]}):(0,u.jsx)(v,{className:`text-sm text-secondaryActive`,children:`Tracking available after shipment`});return(0,u.jsxs)(`article`,{className:`w-full rounded-lg border border-borderTertiary bg-adminSideNavBackground p-5 md:p-6`,children:[(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-6 md:grid-cols-5 md:items-center`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 gap-4 md:col-span-2`,children:[(0,u.jsx)(L,{src:e.imageSrc,alt:e.imageAlt,quality:90,className:`h-20 w-20 shrink-0 rounded-lg object-cover`}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[t?(0,u.jsx)(`button`,{type:`button`,className:`text-left font-semibold text-primary hover:text-accent hover:underline`,onClick:()=>t({item:e}),children:e.title}):(0,u.jsx)(v,{variant:`free`,className:`font-semibold text-primary`,children:e.title}),(0,u.jsxs)(v,{className:`mt-1 text-sm text-secondaryActive`,children:[`SKU `,e.sku]}),e.brand?(0,u.jsx)(v,{className:`mt-1 text-sm text-primary`,children:e.brand}):null,e.description?(0,u.jsx)(v,{className:`mt-1 text-sm text-secondaryActive`,children:e.description}):null]})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{className:`text-xs font-semibold uppercase text-secondaryActive`,children:`Quantity`}),(0,u.jsx)(v,{className:`mt-1 text-sm text-primary`,children:r})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{className:`text-xs font-semibold uppercase text-secondaryActive`,children:`Unit price`}),(0,u.jsx)(v,{className:`mt-1 text-sm text-primary`,children:e.unitPrice})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{className:`text-xs font-semibold uppercase text-secondaryActive`,children:`Total`}),(0,u.jsx)(v,{className:`mt-1 font-semibold text-primary`,children:e.total})]})]}),(0,u.jsxs)(`div`,{className:`mt-5 flex flex-col gap-3 border-t border-borderTertiary pt-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,u.jsx)(`span`,{className:`rounded-full px-3 py-1 text-sm font-semibold ${Ac[e.statusTone??`neutral`]}`,children:e.status}),e.statusDetail?(0,u.jsx)(v,{className:`text-sm text-secondaryActive`,children:e.statusDetail}):null]}),i]})]})},Mc=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(` `),Nc=({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)(L,{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)(S,{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:Mc(n),onClick:()=>l(e),children:[(0,u.jsx)(S,{iconType:e.iconType??`fa-solid`,iconName:e.iconName,alt:``,size:`md`,className:`shrink-0`}),(0,u.jsx)(v,{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)(S,{iconType:`fa-solid`,iconName:`right-from-bracket`,alt:``,size:`md`,className:`shrink-0`}),(0,u.jsx)(v,{variant:`free`,className:`text-sm text-inherit`,children:a})]})]})},Pc=1500,Fc=2e4,Ic=21,Lc=2*Math.PI*Ic,Rc=e=>Math.min(100,Math.max(0,e)),zc=({job:e,completionDisplayDuration:t,onClick:n,onDismiss:r})=>{let[i,a]=(0,c.useState)(!1),o=Rc(e.percentDone),s=(0,c.useRef)(e),l=(0,c.useRef)(r);s.current=e,l.current=r,(0,c.useEffect)(()=>{if(o<100){a(!1);return}let e=window.setTimeout(()=>a(!0),t),n=window.setTimeout(()=>l.current(s.current),t+Pc);return()=>{window.clearTimeout(e),window.clearTimeout(n)}},[t,o]);let d=Lc-o/100*Lc,f=o===100?`text-saleGreen`:`text-primary`;return(0,u.jsx)(`li`,{className:`transition-opacity ${i?`opacity-0`:`opacity-100`}`,style:{transitionDuration:`${Pc}ms`},children:(0,u.jsxs)(`button`,{type:`button`,className:`group flex w-full items-center gap-3 rounded-lg p-2 text-left text-primary transition hover:bg-tertiaryActive focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary`,"aria-label":`${e.name}: ${e.status}, ${Math.round(o)}% complete`,title:`${e.name} - ${e.status}`,onClick:()=>n?.(e),children:[(0,u.jsxs)(`span`,{className:`relative flex h-12 w-12 shrink-0 items-center justify-center`,children:[(0,u.jsxs)(`svg`,{className:`absolute inset-0 h-full w-full -rotate-90`,viewBox:`0 0 48 48`,role:`progressbar`,"aria-label":`${e.name} progress`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(o),children:[(0,u.jsx)(`circle`,{cx:`24`,cy:`24`,r:Ic,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,className:`text-tertiaryActive`}),(0,u.jsx)(`circle`,{cx:`24`,cy:`24`,r:Ic,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,strokeDasharray:Lc,strokeDashoffset:d,className:f})]}),(0,u.jsxs)(`span`,{className:`text-xs font-bold tabular-nums`,children:[Math.round(o),`%`]})]}),(0,u.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`span`,{className:`block truncate text-sm font-semibold`,children:e.name}),(0,u.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-tertiary`,children:e.status})]})]})})},Bc=({jobs:e,ariaLabel:t=`Background jobs`,completionDisplayDuration:n=Fc,onJobClick:r,onJobDismiss:i})=>{let[a,o]=(0,c.useState)(e),s=(0,c.useRef)(new Set);(0,c.useEffect)(()=>{let t=new Set(e.map(({id:e})=>e));for(let e of s.current)t.has(e)||s.current.delete(e);for(let t of e)Rc(t.percentDone)<100&&s.current.delete(t.id);o(n=>{let r=n.filter(e=>Rc(e.percentDone)===100&&!t.has(e.id)&&!s.current.has(e.id));return[...e.filter(e=>!s.current.has(e.id)),...r]})},[e]);let l=(0,c.useCallback)(e=>{s.current.add(e.id),o(t=>t.filter(({id:t})=>t!==e.id)),i?.(e)},[i]);return a.length===0?null:(0,u.jsx)(`aside`,{"aria-label":t,className:`fixed right-3 top-4 z-50 w-64 rounded-xl border border-borderTertiary bg-secondary p-1.5 shadow-lg md:right-5 md:top-6`,children:(0,u.jsx)(`ul`,{className:`space-y-1`,children:a.map(e=>(0,u.jsx)(zc,{job:e,completionDisplayDuration:n,onClick:e=>r?.({job:e}),onDismiss:l},e.id))})})},Vc={sm:`max-w-md`,md:`max-w-2xl`,lg:`max-w-4xl`},Hc=({open:e,title:t,description:n,children:r,closeLabel:i=`Close modal`,size:a=`md`,onClose:o})=>{let s=n?.trim()??``,l=(0,c.useId)(),d=(0,c.useId)();return(0,c.useEffect)(()=>{let t=e=>{e.key===`Escape`&&o()};return e&&document.addEventListener(`keydown`,t),()=>{e&&document.removeEventListener(`keydown`,t)}},[o,e]),e?(0,u.jsxs)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center p-4`,children:[(0,u.jsx)(`button`,{type:`button`,"aria-label":i,className:`absolute inset-0 cursor-default bg-primary/40`,onClick:o}),(0,u.jsxs)(`section`,{role:`dialog`,"aria-modal":`true`,"aria-labelledby":l,"aria-describedby":s?d:void 0,className:`relative flex max-h-[90vh] w-full flex-col overflow-hidden rounded-lg border border-borderTertiary bg-secondary shadow-lg ${Vc[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)(v,{as:`h2`,id:l,variant:`free`,className:`text-lg font-bold text-primary`,children:t}),s?(0,u.jsx)(v,{id:d,variant:`free`,className:`mt-1 text-sm text-primary`,children:s}):null]}),(0,u.jsx)(`button`,{type:`button`,"aria-label":i,className:`flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-primary hover:bg-tertiaryActive`,onClick:o,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`xmark`,alt:``,size:`sm`})})]}),(0,u.jsx)(`div`,{className:`overflow-y-auto p-5`,children:r})]})]}):null},Uc=({html:e=``,className:t=``})=>e?(0,u.jsx)(`div`,{className:`html-block ${t}`,dangerouslySetInnerHTML:{__html:e}}):null,Wc=({open:e,title:t,body:n,acceptButton:r,acceptButtonHelpText:i=`You must scroll to accept the Terms & Conditions.`,imageSrc:a,imageAlt:o=``,onClose:s,closeLabel:l=`Close Opt In Modal`})=>{let[d,f]=(0,c.useState)(!0),p=(0,c.useId)(),m=(0,c.useId)(),h=(0,c.useRef)(null),g=(0,c.useRef)(null),_=(0,c.useRef)(null);if((0,c.useEffect)(()=>{let e=_.current;if(!e)return()=>{};let t=new IntersectionObserver(([e])=>{e.isIntersecting&&f(!1)},{root:h.current,threshold:0}),n=new IntersectionObserver(([e])=>{e.isIntersecting&&f(!1)},{root:g.current,threshold:0});return t.observe(e),n.observe(e),()=>{t.disconnect(),n.disconnect()}},[e]),!e)return null;let y=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(P,{...r,intent:`accent`,className:`w-1/2`,disabled:d,label:r.label||`I Accept`}),(0,u.jsx)(v,{variant:`caption`,hidden:!d,children:i})]}),b=s?(0,u.jsx)(q,{iconType:`fa-solid`,iconName:`xmark`,iconSize:`sm`,intent:`primary`,size:`sm`,"aria-label":l,onClick:s}):null;return(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":l,className:`absolute inset-0 cursor-default bg-primary/40`,onClick:s}),(0,u.jsxs)(`section`,{role:`dialog`,"aria-modal":`true`,"aria-labelledby":p,"aria-describedby":m,className:`relative flex max-h-[90vh] w-full overflow-hidden flex-col rounded-lg bg-secondary shadow-lg max-w-4xl`,children:[(0,u.jsx)(`header`,{className:`md:hidden text-right`,children:b}),(0,u.jsxs)(`div`,{className:`min-h-0 flex flex-1 flex-col md:flex-row overflow-y-auto md:overflow-y-hidden`,ref:g,children:[(0,u.jsx)(`div`,{className:`w-full md:w-1/2 px-5 md:p-0`,children:(0,u.jsx)(L,{src:a,alt:o,quality:90,className:`w-full h-full object-cover aspect-square md:aspect-auto rounded-lg md:rounded-l-lg md:rounded-r-none`})}),(0,u.jsxs)(`div`,{className:`flex min-h-0 w-full flex-col md:w-1/2`,children:[(0,u.jsx)(`header`,{className:`hidden md:block shrink-0 text-right`,children:b}),(0,u.jsxs)(`div`,{className:`p-5 min-h-0 flex-1 md:overflow-y-auto`,ref:h,children:[(0,u.jsx)(v,{id:p,className:`text-2xl! md:text-4xl!`,variant:`h2`,children:t}),(0,u.jsx)(v,{id:m,variant:`body`,children:(0,u.jsx)(Uc,{html:n})}),(0,u.jsx)(`div`,{ref:_,className:`h-1`})]}),(0,u.jsx)(`footer`,{className:`hidden md:block shrink-0 p-5 text-center shadow-[0_-4px_6px_rgba(0,0,0,0.2)]`,children:y})]})]}),(0,u.jsx)(`footer`,{className:`md:hidden p-5 text-center shadow-[0_-4px_6px_rgba(0,0,0,0.2)]`,children:y})]})]})},Gc=({items:e,selectedId:t,onSelect:n,layoutVariant:r=`content`,visualVariant:i=`default`,className:a=``,buttonClassName:o=``,disabled:s=!1,ariaLabel:c=`Segmented control`})=>{if(!e?.length)return null;let l=e.filter(e=>!e.disabled),d=l.findIndex(e=>e.id===t),f=e=>{let t=l[e];t&&n?.(t.id)},p=e=>{if(s||!l.length)return;let t=d>=0?d:0;(e.key===`ArrowRight`||e.key===`ArrowDown`)&&(e.preventDefault(),f((t+1)%l.length)),(e.key===`ArrowLeft`||e.key===`ArrowUp`)&&(e.preventDefault(),f((t-1+l.length)%l.length)),e.key===`Home`&&(e.preventDefault(),f(0)),e.key===`End`&&(e.preventDefault(),f(l.length-1))},m=r===`equalWidth`?`inline-grid grid-flow-col auto-cols-fr`:`inline-flex`,h=i===`brandBar`;return(0,u.jsx)(`div`,{className:`${m} ${s?`opacity-60 pointer-events-none`:``} ${a}`.trim(),role:`radiogroup`,"aria-label":c,"aria-disabled":s||void 0,onKeyDown:p,children:e.map((r,i)=>{let a=r.id===t,c=i===0,l=i===e.length-1,d=[`rounded-none`,`whitespace-nowrap`,h?`border-none! bg-transparent! hover:bg-transparent! active:bg-transparent!`:``,!h&&a?`relative z-10 border-secondaryMultiButton!`:``,!h&&!a?`bg-secondaryHover`:``,!h&&c?`rounded-l-md`:``,!h&&!c?`-ml-px`:``,!h&&l?`rounded-r-md`:``,o].filter(Boolean).join(` `);return(0,u.jsx)(P,{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)})})},Kc=({options:e,value:t,defaultValue:n,onChange:r,ariaLabel:i=`Radio buttons`,disabled:a=!1,className:o=``,containerClassName:s=``,buttonClassName:l=``,visualVariant:d=`default`})=>{let f=t!==void 0,p=(0,c.useMemo)(()=>e?.[0],[e]),[m,h]=(0,c.useState)(n&&e.includes(n)?n:p);if((0,c.useEffect)(()=>{if(!e?.length){h(void 0);return}h(t=>t&&e.includes(t)?t:n&&e.includes(n)?n:e[0])},[n,e.join(`|`)]),!e?.length)return null;let g=(f?t:m)??e[0];return(0,u.jsx)(Gc,{ariaLabel:i,disabled:a,className:[s,o].filter(Boolean).join(` `),buttonClassName:l,visualVariant:d,selectedId:g,items:e.map(e=>({id:e,label:e})),onSelect:t=>{let n=e.indexOf(t);h(t),r?.(t,n)}})},qc=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Jc=e=>{if(!qc(e))return e;let t=e.value??e.jsonValue;return t===void 0?e:Jc(t)},Yc=(e,t,n=!0)=>{let r=Jc(e);if(typeof r==`string`)return n?r:``;if(!qc(r))return``;for(let e of t){let t=r[e];if(typeof t==`string`)return t}return``},Xc=(e,t)=>{let n=Jc(t);return qc(n)?`${e}${typeof n.querystring==`string`?n.querystring:``}${typeof n.anchor==`string`?n.anchor:``}`:e},Zc=e=>Yc(e,[`text`,`title`,`label`,`href`,`url`]).trim(),Qc=e=>{let t=Yc(e,[`href`,`url`]).trim();return t?Xc(t,e):``},$c=(e,t)=>Yc(e,[`target`],!1).trim()||t,el=(e,t)=>Yc(e,[`rel`],!1).trim()||t,tl=({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=Zc(e.label),r=Qc(e.href),a=Le(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)(Kc,{ariaLabel:`Customer type`,defaultValue:r,buttonClassName:`aria-checked:font-bold text-secondary`,visualVariant:`brandBar`,onChange:e=>a?.(e),options:[`Commercial`,`Residential`]}):null})]})})},nl=({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)(v,{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)(v,{variant:`free`,children:e.label})})},e.id))})]},e.id))})}):null,rl=e=>[e.title,e.subtitle].filter(Boolean).join(` `),il=e=>e.variant===`document`?(0,u.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center`,children:(0,u.jsx)(S,{iconType:`fa-regular`,iconName:`file-pdf`,size:`2xl`})}):e.imageSrc?(0,u.jsx)(L,{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`}),al=({id:e,items:t=[],viewAllLabel:n=`View all results`,ariaLabel:r=`Search results`,layoutVariant:i=`popover`,onResultClick:a,onViewAllClick:o})=>t.length?(0,u.jsxs)(`div`,{id:e,className:`${i===`contained`?`w-full`:`w-80`} overflow-hidden rounded-md border border-gray-200 bg-white text-primary shadow-lg`,role:`region`,"aria-label":r,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)(G,{ariaLabel:rl(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:()=>a?.({item:e}),children:[il(e),(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-tertiary`,children:e.subtitle}):null,(e.variant===`article`||e.variant===`document`)&&e.description?(0,u.jsx)(`span`,{className:`mt-0.5 block text-xs leading-snug break-words text-tertiary`,children:e.description}):null]})]})},e.id))}),(0,u.jsx)(`div`,{className:`border-t border-gray-200 px-3 py-2`,children:(0,u.jsx)(P,{variant:`link`,label:n,className:`w-full justify-start px-0 text-left text-tertiary underline-offset-2 hover:underline`,onClick:o})})]}):null,ol=300,sl=({Countries:e,countries:t,selectedCountry:n,Login:r,Account:i,Cart:a={hasCart:!1,itemCount:0},showCart:o=!0,showFavorites:s=!0,showLogin:l=!0,searchPlaceholder:d=`Search`,searchLabel:f=`Search`,searchResultsAriaLabel:p=`Search results`,clearSearchLabel:m=`Clear search`,searchResultItems:h=[],searchViewAllLabel:g,onSearchClick:_,onSearchChange:v,onSearchSubmit:y,onSearchResultClick:b,onSearchViewAllClick:x,onCartClick:S,onLoginClick:C,onAccountClick:w,onFavoritesClick:T,onCountrySelect:E})=>{let[D,O]=(0,c.useState)(!1),[k,A]=(0,c.useState)(``),j=(0,c.useRef)(!1),M=a.hasCart&&a.itemCount>0,N=e??t??[],F=i?.loggedIn??r.loggedIn??!1,I=k.trim(),L=h.length>0;return(0,c.useEffect)(()=>{if(!j.current)return;let e=window.setTimeout(()=>{v?.({query:k})},ol);return()=>{window.clearTimeout(e)}},[v,k]),(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`,D?`w-56 opacity-100`:`w-0 opacity-0`].join(` `),"aria-hidden":!D,children:D?(0,u.jsx)(Qo,{id:`top-nav-search`,ariaLabel:f,value:k,placeholder:d,clearLabel:m,autoComplete:`off`,autoFocus:!0,onChange:e=>{j.current=!0,A(e.target.value)},onBlur:()=>{k.trim()||O(!1)},onKeyDown:e=>{if(e.key===`Enter`&&I){y?.({query:I});return}e.key===`Escape`&&(A(``),O(!1))}}):null}),(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`magnifying-glass`,iconAlt:``,variant:`ghost`,"aria-label":f,onClick:()=>{if(!D){O(!0),_?.();return}if(I){y?.({query:I});return}O(!1)},"aria-expanded":D,"aria-controls":`top-nav-search`}),D&&L?(0,u.jsx)(`div`,{className:`absolute top-full right-0 z-30 mt-2`,children:(0,u.jsx)(al,{id:`top-nav-search-results`,items:h,viewAllLabel:g,ariaLabel:p,onResultClick:e=>{b?.(e),O(!1)},onViewAllClick:()=>{x?.({query:I}),O(!1)}})}):null]}),(0,u.jsx)(`div`,{className:`h-4 border-l my-6`}),(0,u.jsx)(`div`,{className:`my-3`,children:(0,u.jsx)(Wo,{countries:N,selectedCountry:n,onCountrySelect:E})}),(0,u.jsxs)(`div`,{className:`my-2 flex items-center space-x-1`,children:[o?(0,u.jsxs)(`div`,{className:`relative`,children:[(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`cart-shopping`,iconAlt:`Cart`,intent:M?`accent`:`primary`,variant:`ghost`,onClick:S}),M?(0,u.jsx)(`span`,{className:`absolute -top-0 -right-0 flex h-4 min-w-4 items-center justify-center rounded-full bg-accent px-1 text-[10px] leading-none text-white`,children:a.itemCount}):null]}):null,s?(0,u.jsx)(P,{iconType:`fa-regular`,iconName:`heart`,iconAlt:`Favorites`,variant:`ghost`,onClick:T}):null]}),l?(0,u.jsx)(`div`,{children:F?(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`user`,iconAlt:``,variant:`ghost`,intent:`primary`,"aria-label":`Open account menu`,"aria-haspopup":`dialog`,onClick:w}):(0,u.jsx)(P,{className:`my-3 rounded-md p-4`,size:`sm`,intent:`accent`,variant:`solid`,label:r.label,onClick:C})}):null]})},cl=750,ll=`
|
|
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=_r(n).filter(Ba).map(za),i=Yi.begin(`searchPseudoElements`);la(),Promise.all(r).then(function(){i(),ua(),e()}).catch(function(){i(),ua(),t()})})}}var Wa={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?Z:t;Q.searchPseudoElements&&Ua(n)}}},Ga=!1,Ka={mixout:function(){return{dom:{unwatch:function(){la(),Ga=!0}}}},hooks:function(){return{bootstrap:function(){fa(Ti(`mutationObserverCallbacks`,{}))},noAuto:function(){pa()},watch:function(e){var t=e.observeMutationsRoot;Ga?ua():fa(Ti(`mutationObserverCallbacks`,{observeMutationsRoot:t}))}}}},qa=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})},Ja={mixout:function(){return{parse:{transform:function(e){return qa(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-transform`);return n&&(e.transform=qa(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)}]}]}}}},Ya={x:0,y:0,width:`100%`,height:`100%`};function Xa(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 Za(e){return e.tag===`g`?e.children:[e]}wi([kr,Ea,Da,Oa,ka,Wa,Ka,Ja,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-mask`),r=n?mi(n.split(` `).map(function(e){return e.trim()})):ci();return r.prefix||=si(),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=Cr({transform:o,containerWidth:l,iconWidth:s}),f={tag:`rect`,attributes:X(X({},Ya),{},{fill:`white`})},p=c.children?{children:c.children.map(Xa)}:{},m={tag:`g`,attributes:X({},d.inner),children:[Xa(X({tag:c.tag,attributes:X(X({},c.attributes),d.path)},p))]},h={tag:`g`,attributes:X({},d.outer),children:[m]},g=`mask-${a||gr()}`,_=`clip-${a||gr()}`,v={tag:`mask`,attributes:X(X({},Ya),{},{id:g,maskUnits:`userSpaceOnUse`,maskContentUnits:`userSpaceOnUse`}),children:[f,h]},y={tag:`defs`,children:[{tag:`clipPath`,attributes:{id:_},children:Za(u)},v]};return t.push(y,{tag:`rect`,attributes:X({fill:`currentColor`,"clip-path":`url(#${_})`,mask:`url(#${g})`},Ya)}),{children:t,attributes:n}}}},{provides:function(e){var t=!1;dt.matchMedia&&(t=dt.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:Ai}),Ai.noAuto;var Qa=Ai.config;Ai.library,Ai.dom;var $a=Ai.parse;Ai.findIconDefinition,Ai.toHtml;var eo=Ai.icon;Ai.layer,Ai.text,Ai.counter;function to(e){return e-=0,e===e}function no(e){return to(e)?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():``),e.charAt(0).toLowerCase()+e.slice(1))}var ro=(e,t)=>l.default.createElement(`stop`,{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function io(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ao=new Map,oo=1e3;function so(e){if(ao.has(e))return ao.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=no(n);t[e.startsWith(`webkit`)?io(e):e]=r}}}n=a+1}if(ao.size===oo){let e=ao.keys().next().value;e&&ao.delete(e)}return ao.set(e,t),t}function co(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}}),co(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=so(String(t));break;case e.startsWith(`aria-`):case e.startsWith(`data-`):a[e.toLowerCase()]=t;break;default:a[no(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(ro)))}return e(t.tag,{...a,...u},...r)}var lo=co.bind(null,l.default.createElement),uo=(e,t)=>{let n=(0,l.useId)();return e||(t?n:void 0)},fo=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 po=`searchPseudoElementsFullScan`in Qa&&typeof Qa.searchPseudoElementsFullScan==`boolean`?`7.0.0`:`6.0.0`,mo=Number.parseInt(po)>=7,ho=()=>mo,go=`fa`,_o={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`},vo={left:`fa-pull-left`,right:`fa-pull-right`},yo={90:`fa-rotate-90`,180:`fa-rotate-180`,270:`fa-rotate-270`},bo={"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`},xo={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`},So={default:`fa-layers`};function Co(e){let t=Qa.cssPrefix||Qa.familyPrefix||go;return t===go?e:e.replace(new RegExp(String.raw`(?<=^|\s)${go}-`,`g`),`${t}-`)}function wo(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(_o.beat),n&&x.push(_o.fade),r&&x.push(_o.beatFade),i&&x.push(_o.bounce),a&&x.push(_o.shake),o&&x.push(_o.spin),c&&x.push(_o.spinReverse),s&&x.push(_o.spinPulse),l&&x.push(_o.pulse),u&&x.push(xo.fixedWidth),d&&x.push(xo.inverse),f&&x.push(xo.border),p===!0&&x.push(xo.flip),(p===`horizontal`||p===`both`)&&x.push(xo.flipHorizontal),(p===`vertical`||p===`both`)&&x.push(xo.flipVertical),m!=null&&x.push(bo[m]),h!=null&&h!==0&&x.push(yo[h]),g!=null&&x.push(vo[g]),_&&x.push(xo.swapOpacity),ho()?(v&&x.push(xo.rotateBy),y&&x.push(xo.widthAuto),(Qa.cssPrefix||Qa.familyPrefix||go)===go?x:x.map(Co)):x}var To=e=>typeof e==`object`&&`icon`in e&&!!e.icon;function Eo(e){if(e)return To(e)?e:$a.icon(e)}function Do(e){return Object.keys(e)}var Oo=new fo(`FontAwesomeIcon`),ko={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},Ao=new Set(Object.keys(ko)),jo=l.default.forwardRef((e,t)=>{let n={...ko,...e},{icon:r,mask:i,symbol:a,title:o,titleId:s,maskId:c,transform:l}=n,u=uo(c,!!i),d=uo(s,!!o),f=Eo(r);if(!f)return Oo.error(`Icon lookup is undefined`,r),null;let p=wo(n),m=typeof l==`string`?$a.transform(l):l,h=Eo(i),g=eo(f,{...p.length>0&&{classes:p},...m&&{transform:m},...h&&{mask:h},symbol:a,title:o,titleId:d,maskId:u});if(!g)return Oo.error(`Could not find icon`,f),null;let{abstract:_}=g,v={ref:t};for(let e of Do(n))Ao.has(e)||(v[e]=n[e]);return lo(_[0],v)});jo.displayName=`FontAwesomeIcon`,`${So.default}${xo.fixedWidth}`;var Mo={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`]},No={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`]},Po={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`]},Fo={prefix:`fas`,iconName:`chevron-left`,icon:[320,512,[9001],`f053`,`M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z`]},Io={prefix:`far`,iconName:`heart`,icon:[512,512,[128153,128154,128155,128156,128420,129293,129294,129505,9829,10084,61578],`f004`,`M378.9 80c-27.3 0-53 13.1-69 35.2l-34.4 47.6c-4.5 6.2-11.7 9.9-19.4 9.9s-14.9-3.7-19.4-9.9l-34.4-47.6c-16-22.1-41.7-35.2-69-35.2-47 0-85.1 38.1-85.1 85.1 0 49.9 32 98.4 68.1 142.3 41.1 50 91.4 94 125.9 120.3 3.2 2.4 7.9 4.2 14 4.2s10.8-1.8 14-4.2c34.5-26.3 84.8-70.4 125.9-120.3 36.2-43.9 68.1-92.4 68.1-142.3 0-47-38.1-85.1-85.1-85.1zM271 87.1c25-34.6 65.2-55.1 107.9-55.1 73.5 0 133.1 59.6 133.1 133.1 0 68.6-42.9 128.9-79.1 172.8-44.1 53.6-97.3 100.1-133.8 127.9-12.3 9.4-27.5 14.1-43.1 14.1s-30.8-4.7-43.1-14.1C176.4 438 123.2 391.5 79.1 338 42.9 294.1 0 233.7 0 165.1 0 91.6 59.6 32 133.1 32 175.8 32 216 52.5 241 87.1l15 20.7 15-20.7z`]},Lo=({id:e,item:t,absoluteIdx:n,isActive:r,showLabel:i,grow:a,isLoaded:o,isFav:s,showFavorites:l=!0,setActiveIndex:d,onLoaded:f,onToggleFav:p,onItemClick:m})=>{let h=()=>m?.(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=()=>f(e),r.onerror=()=>{},r.src=n,r.complete&&r.naturalWidth>0&&f(e),()=>{r.onload=null,r.onerror=null}},[e,o,f,t.source]),(0,u.jsx)(`section`,{className:`w-full md:min-w-0 md:transition-[flex-grow] md:duration-700 md:ease-in-out`,style:{flexGrow:a,flexBasis:0},children:(0,u.jsx)(`div`,{className:[`relative h-36 w-full cursor-pointer`,`md:min-w-0 md:h-175`].join(` `),onMouseEnter:()=>d(n),onFocus:()=>d(n),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),h())},tabIndex:0,role:`link`,"aria-label":t.label,onClick:h,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)(L,{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:()=>f(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)(v,{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)(P,{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)(jo,{icon:Po,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)(P,{variant:`link`,intent:`ghost`,"aria-label":s?`Unfavorite`:`Favorite`,className:`h-9 w-9 grid place-items-center`,onClick:e=>{e.stopPropagation(),p(t)},children:(0,u.jsx)(jo,{icon:s?Mo:Io,className:[`w-4 h-4 transition-transform duration-200 ease-out`,`hover:scale-125 active:scale-110 origin-center`,s?`text-accent`:`text-secondary`].join(` `)})})}):null]})})})},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`,d=s&&a===`button`?`text`:a,f=()=>{c?.({title:n,description:r,buttonLabel:i})},p=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)(L,{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)(v,{variant:`free`,className:`text-primary text-lg font-bold mb-2`,children:n}),(0,u.jsx)(v,{variant:`body`,className:`mb-4 text-primary text-sm`,children:r})]}),d===`button`&&i?(0,u.jsx)(P,{intent:`accent`,variant:`outline`,label:i,className:`w-full md:w-48`,type:`button`,onClick:f}):null,d===`text`&&i?(0,u.jsx)(v,{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)(L,{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)(v,{variant:`free`,className:`text-primary text-lg font-bold mb-2`,children:n}),(0,u.jsx)(v,{variant:`body`,className:`mb-0 text-primary text-sm`,children:r})]}),d===`button`&&i?(0,u.jsx)(P,{intent:`accent`,variant:`link`,label:i,iconName:`arrow-right`,iconType:`fa-solid`,iconPosition:`right`,buttonAlignment:`justify-start`,className:`p-0!`,type:`button`,onClick:f}):null,d===`text`&&i?(0,u.jsx)(v,{variant:`body`,className:`text-sm font-bold text-primary`,children:i}):null]})]});return s?(0,u.jsx)(K,{onCardClick:s,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:p}):p},zo=({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)(L,{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)(v,{variant:`free`,className:`text-xs text-tertiary`,children:i}),(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold leading-tight text-primary`,children:n}),(0,u.jsx)(v,{variant:`free`,className:`text-xs leading-tight text-primary`,children:r})]})]});return a?(0,u.jsx)(K,{onCardClick:a,className:`block w-40 md:w-80 shrink-0 text-left`,ariaLabel:`Open ${n}${i?` ${i}`:``}`,children:o}):(0,u.jsx)(`div`,{className:`w-40 md:w-80 shrink-0`,children:o})},Bo=e=>{if(e.distance)return e.distance.label??`${e.distance.value.toLocaleString(void 0,{maximumFractionDigits:2})} ${e.distance.unit}`},Vo=e=>[e.city,e.region,e.postalCode].filter(Boolean).join(` `),Ho=(e,t,n)=>{e?.({location:t,href:n})},Uo=({location:e,stockedProductsLabel:t=`Stocked Products`,preferredLabel:n=`Preferred Retailer`,websiteLabel:r=`Visit Website`,directionsLabel:i=`Get Directions`,emailLabel:a=`Email`,onWebsiteClick:o,onDirectionsClick:s,onPhoneClick:c,onEmailClick:l})=>{let d=Bo(e),f=Vo(e.address),p=(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)(S,{iconType:`fa-solid`,iconName:`location-dot`,color:`secondaryHover`,size:`lg`,alt:n,className:`mt-1 shrink-0`}):null,(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-lg font-bold min-h-12`,children:e.name})]}),d?(0,u.jsxs)(`div`,{className:`inline-flex items-start gap-2`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`location-dot`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsx)(v,{variant:`caption`,className:`text-primary text-sm`,children:d})]}):null]}),(0,u.jsxs)(`div`,{className:`mb-5 space-y-2`,children:[(0,u.jsxs)(`address`,{className:`flex min-h-14 items-start gap-2 not-italic`,children:[(0,u.jsx)(S,{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)(v,{variant:`body`,className:`text-sm`,children:e},`${e}-${t}`)),(0,u.jsx)(v,{variant:`body`,className:`text-sm`,children:f})]})]}),e.directionsUrl?(0,u.jsx)(`div`,{children:(0,u.jsxs)(v,{as:`a`,variant:`body`,href:e.directionsUrl,className:`group inline-flex items-start gap-2 text-sm hover:text-accent hover:underline`,onClick:()=>Ho(s,e,e.directionsUrl),children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`diamond-turn-right`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),i,(0,u.jsx)(S,{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)(S,{iconType:`fa-solid`,iconName:`mobile-screen`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),(0,u.jsx)(v,{as:`a`,variant:`body`,className:`text-sm hover:text-accent hover:underline`,href:e.phoneHref,onClick:()=>Ho(c,e,e.phoneHref),children:e.phone})]}):(0,u.jsxs)(`div`,{className:`inline-flex items-start gap-2`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`mobile-screen`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsx)(v,{as:`span`,variant:`body`,className:`text-sm`,children:e.phone})]}):null}),!e.email&&!e.emailHref?null:(0,u.jsx)(`div`,{children:(0,u.jsxs)(v,{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:()=>Ho(l,e,e.emailHref),children:[(0,u.jsx)(S,{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)(v,{as:`a`,variant:`body`,className:`group inline-flex items-start gap-2 text-sm hover:text-accent hover:underline`,href:e.websiteUrl,onClick:()=>Ho(o,e,e.websiteUrl),children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`globe`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0 group-hover:text-accent`}),r]})}):null]}),p?(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)(S,{iconType:`fa-solid`,iconName:`box-open`,color:`secondaryHover`,size:`xs`,className:`mt-1 shrink-0`}),(0,u.jsx)(v,{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)(v,{as:`span`,variant:`body`,className:`text-xs`,children:e.label})},e.id))}):null]}):null]})},Wo=({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)(P,{intent:`primary`,variant:`link`,type:`button`,onClick:()=>i(!r),"aria-haspopup":`listbox`,"aria-expanded":r,children:[(0,u.jsxs)(v,{variant:`navlink`,className:`text-sm`,children:[o?.label??`Select Country`,o?.locale?` (${o.locale})`:``]}),(0,u.jsx)(S,{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)(v,{variant:`navlink`,className:`text-sm text-gray-700`,children:e.label}),(0,u.jsxs)(v,{variant:`nav`,className:`ml-1 mt-0.5 whitespace-nowrap text-xs text-gray-500`,children:[`(`,e.locale,`)`]})]})},`${e.href}-${t}`))})]})},Go=e=>{let t=e.trim().split(/\s+/).filter(Boolean);return(t.length>1?t.map(e=>e[0]).join(``):e.slice(0,2)).toUpperCase()},Ko=({options:e,value:t,label:n=`Region`,placeholder:r=`Select region`,helpText:i,disabled:a=!1,name:o=`admin-region`,onChange:s})=>{let c=!t.trim(),l=`${o}-help`;return(0,u.jsxs)(`fieldset`,{className:`min-w-0`,disabled:a,"aria-describedby":i?l:void 0,children:[(0,u.jsx)(`legend`,{className:`sr-only`,children:n}),(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":n,"aria-invalid":c||void 0,className:`flex flex-wrap gap-x-4 gap-y-2`,children:e.map(e=>(0,u.jsxs)(`label`,{title:e.label,className:`flex cursor-pointer flex-col items-center gap-1 rounded-md has-[:disabled]:cursor-not-allowed`,children:[(0,u.jsx)(`input`,{type:`radio`,name:o,value:e.value,checked:t===e.value,disabled:a,required:!0,"aria-label":e.label,className:`peer sr-only`,onChange:e=>s({region:e.target.value})}),(0,u.jsx)(`span`,{className:`flex h-10 w-10 items-center justify-center rounded-full border border-borderTertiary bg-secondary text-tertiary transition hover:border-primary hover:text-primary peer-checked:border-primary peer-checked:bg-primary peer-checked:text-secondary peer-checked:hover:bg-secondaryHover peer-checked:hover:text-primary peer-focus-visible:ring-2 peer-focus-visible:ring-primary peer-focus-visible:ring-offset-2 peer-disabled:opacity-50`,children:(0,u.jsx)(S,{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??Go(e.label)})]},e.value))}),c&&r?(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-xs text-accent`,children:r}):null,i?(0,u.jsx)(v,{id:l,variant:`free`,className:`sr-only`,children:i}):null]})},qo=({ranges:e,selectedRangeId:t,disabled:n=!1,ariaLabel:r=`Filter by range`,action:i,onRangeSelect:a})=>(0,u.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":r,className:`contents`,children:e.map(e=>({id:e.id,label:e.label,title:`${e.label} (${e.decorCount.toLocaleString()} decors)`})).map(e=>{let r=e.id===t;return(0,u.jsx)(P,{label:e.label,title:e.title,variant:r?`solid`:`outline`,intent:`primary`,size:`sm`,role:`radio`,"aria-checked":r,disabled:n,onClick:()=>a({rangeId:e.id})},e.id)})}),i]}),Jo=({title:e,iconName:t,dimension:n,options:r,selectedValue:i,readOnly:a,onSelect:o})=>(0,u.jsxs)(`fieldset`,{children:[(0,u.jsx)(`legend`,{className:`text-sm font-bold text-primary`,children:(0,u.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:t,alt:``,size:`sm`,color:`secondaryHover`,className:`w-4 shrink-0`}),e]})}),(0,u.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:r.map(e=>{let t=e.value===i,r=`market-readiness-${n}-${e.value}-description`;return(0,u.jsxs)(`span`,{className:`group relative`,children:[(0,u.jsx)(`button`,{type:`button`,"aria-pressed":t,"aria-describedby":e.description?r:void 0,disabled:a||e.disabled,className:`rounded-md border px-4 py-2 text-sm font-semibold transition ${t?`border-primary bg-primary text-secondary`:`border-borderTertiary bg-secondary text-primary hover:border-primary`} disabled:cursor-default disabled:opacity-70`,onClick:()=>o?.(n,e.value),children:e.label}),e.description?(0,u.jsx)(`span`,{id:r,role:`tooltip`,className:`pointer-events-none absolute bottom-full left-1/2 z-10 mb-2 hidden w-max max-w-64 -translate-x-1/2 rounded-md bg-primary px-3 py-2 text-xs font-normal text-secondary shadow-lg group-hover:block group-focus-within:block`,children:e.description}):null]},e.value)})})]}),Yo=(e,t)=>{let n=0,r=0;for(;n<e.length&&r<t;)/\d/.test(e[n])&&(r+=1),n+=1;for(;n<e.length&&/\D/.test(e[n]);)n+=1;return n};function Xo({value:e=``,mask:t,maxDigits:n,readOnly:r,disabled:i,onChange:a,onBlur:o,onKeyDown:s}){let l=(0,c.useRef)(null),u=(0,c.useRef)(null),d=e=>{let r=e.replace(/\D/g,``);return t===`expirationDate`?r.slice(0,4):t===`cardNumber`?r.slice(0,/^3[47]/.test(r)?15:19):r.slice(0,n)},f=e=>t===`expirationDate`?e.length<2?e:`${e.slice(0,2)}/${e.slice(2)}`:t===`cardNumber`?/^3[47]/.test(e)?[e.slice(0,4),e.slice(4,10),e.slice(10)].filter(Boolean).join(` `):e.match(/.{1,4}/g)?.join(` `)||``:e,p=t?f(d(e)):String(e);return(0,c.useLayoutEffect)(()=>{u.current!==null&&(l.current?.setSelectionRange(u.current,u.current),u.current=null)}),{inputRef:l,displayValue:p,handleChange:e=>{if(t){let n=e.currentTarget,r=n.value.slice(0,n.selectionStart??n.value.length).replace(/\D/g,``).length,i=n.value.replace(/\D/g,``),o=e.nativeEvent.inputType;if(/\D/.test(p)&&n.value!==p&&i===p.replace(/\D/g,``)&&(o===`deleteContentBackward`||o===`deleteContentForward`)){let e=Math.max(0,r-+(o===`deleteContentBackward`));n.value=i.slice(0,e)+i.slice(e+1),r=e}let s=d(n.value),c=f(s),l=Yo(c,r);n.value=t===`expirationDate`?c:s,a?.(e),n.value=c,n.setSelectionRange(l,l),u.current=l}else a?.(e)},handleBlur:e=>{if(!t||t===`expirationDate`){o?.(e);return}let n=e.currentTarget;n.value=d(n.value),o?.(e),n.value=p},handleKeyDown:e=>{if(s?.(e),!t||e.defaultPrevented||r||i)return;let n=e.currentTarget,a=n.selectionStart;if(a===null||a!==n.selectionEnd||e.shiftKey||e.ctrlKey||e.metaKey||e.altKey)return;let o=a>0&&/\D/.test(p[a-1]),c=a<p.length&&/\D/.test(p[a]);e.key===`Backspace`&&o?n.setSelectionRange(Math.max(0,a-2),a):e.key===`Delete`&&c?n.setSelectionRange(a,Math.min(a+2,p.length)):e.key===`ArrowLeft`&&o?(e.preventDefault(),n.setSelectionRange(a-1,a-1)):e.key===`ArrowRight`&&c&&(e.preventDefault(),n.setSelectionRange(a+1,a+1))}}}var Zo=({id:e,name:t,type:n=`text`,value:r=``,placeholder:i=``,role:a,ariaExpanded:o,ariaControls:s,ariaActiveDescendant:l,ariaAutoComplete:d,ariaLabel:f,ariaDescribedBy:p,disabled:m=!1,readOnly:h=!1,required:g=!1,min:_,max:v,step:y,hasError:b=!1,clearable:x=!1,clearLabel:C=`Clear input`,className:w=``,inputClassName:T=``,autoComplete:E,autoFocus:D,mask:O,maxDigits:k,inputMode:A,leadingIcon:j,trailingIcon:M,onChange:N,onBlur:P,onFocus:F,onKeyDown:I,onClear:L})=>{let[R,ee]=(0,c.useState)(!1),z=n===`password`,B=O===`expirationDate`,{inputRef:te,displayValue:V,handleChange:ne,handleBlur:re,handleKeyDown:ie}=Xo({value:r,mask:O,maxDigits:k,readOnly:h,disabled:m,onChange:N,onBlur:P,onKeyDown:I}),H=x&&!!V&&!m&&!h&&!z&&!M,U=(0,c.useMemo)(()=>z?R?`text`:`password`:n,[n,z,R]),W=(z?(0,u.jsx)(`button`,{type:`button`,onClick:()=>ee(e=>!e),className:`absolute right-3 top-1/2 -translate-y-1/2`,"aria-label":R?`Hide password`:`Show password`,children:(0,u.jsx)(S,{iconName:R?`fa-eye-slash`:`fa-eye`,iconType:`fa-solid`,className:`text-sm text-secondaryActive`})}):null)||(H?(0,u.jsx)(`button`,{type:`button`,"aria-label":C,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:()=>L?.({value:V}),children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`xmark`,alt:``,size:`sm`})}):M?(0,u.jsx)(`span`,{className:`absolute right-3 top-1/2 -translate-y-1/2`,children:M}):null),ae=[`w-full rounded-md border bg-white py-3 text-sm outline-none transition-colors placeholder-tertiary`,b?`border-accent text-accent`:`border-secondaryHover text-primary`,m?`cursor-not-allowed opacity-60`:``,j?`pl-10 pr-4`:`px-4`,W?`pr-12`:``,T,B?`font-mono`:``].filter(Boolean).join(` `);return(0,u.jsxs)(`div`,{className:`relative w-full ${w}`.trim(),children:[j?(0,u.jsx)(`span`,{className:`absolute left-3 top-1/2 -translate-y-1/2`,children:j}):null,(0,u.jsx)(`input`,{ref:te,id:e,name:t,type:U,value:V,placeholder:B?``:i,role:a,"aria-expanded":o,"aria-controls":s,"aria-activedescendant":l,"aria-autocomplete":d,"aria-label":f,"aria-describedby":p,"aria-invalid":b||void 0,disabled:m,readOnly:h,required:g,min:_,max:v,step:y,autoComplete:E,autoFocus:D,inputMode:O?`numeric`:A,className:ae,onChange:ne,onBlur:re,onFocus:F,onKeyDown:ie}),B?(0,u.jsxs)(`span`,{"aria-hidden":`true`,className:`pointer-events-none absolute top-1/2 -translate-y-1/2 font-mono text-sm text-tertiary ${j?`left-10`:`left-4`} ${m?`opacity-60`:``}`,children:[(0,u.jsx)(`span`,{className:`text-transparent`,children:V}),`MM/YY`.slice(V.length)]}):null,W]})},$=({id:e,label:t,errorMessage:n,hasError:r=!1,linkText:i,linkHref:a,onLinkClick:o,ariaDescribedBy:s,...l})=>{let d=(0,c.useId)(),f=r&&!!n,p=`${e||d}-field-error`,m=[s,f?p:void 0].filter(Boolean).join(` `)||void 0;return(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.jsx)(v,{as:`label`,htmlFor:e,id:f?p:void 0,className:`text-sm ${r?`text-accent!`:`text-primary`}`,children:f?n:t}):(0,u.jsx)(`span`,{}),i?(0,u.jsx)(v,{as:`a`,href:a||`#`,onClick:o,className:`text-xs text-secondaryActive underline underline-offset-2`,children:i}):null]}):null,(0,u.jsx)(Zo,{id:e,hasError:r,...l,ariaDescribedBy:m}),!t&&f?(0,u.jsx)(v,{id:p,role:`alert`,variant:`free`,className:`text-sm text-accent`,children:n}):null]})},Qo=({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)(Zo,{...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)(S,{iconType:`fa-solid`,iconName:`magnifying-glass`,className:`text-sm text-secondaryHover`})})},$o=({variant:e=`search`,autoComplete:t=`off`,ariaDescribedBy:n,errorMessage:r,suggestionsFooter:i,onInputChange:a,onBlur:o,id:s,name:l,ariaLabel:d=`Search`,placeholder:f=`Search`,value:p=``,options:m,emptyMessage:h=`No matches found.`,isLoading:g=!1,loadingMessage:_,minQueryLength:y=1,disabled:b,readOnly:x,hasError:S,clearLabel:C=`Clear search`,controlSize:w,valueStatus:T=`default`,onQueryChange:E,onOptionSelect:D,onSearchSubmit:O,onClear:k})=>{let A=(0,c.useId)(),j=(0,c.useRef)(null),[M,N]=(0,c.useState)(!1),[P,F]=(0,c.useState)(0),I=String(p),L=!b&&!x&&I.trim().length>=y,R=(0,c.useMemo)(()=>L&&!g?m:[],[L,g,m]),ee=_??(e===`address`?`Searching addresses…`:`Searching…`),z=M&&L,B=`${s??A}-options`;(0,c.useEffect)(()=>{F(0)},[I,m]),(0,c.useEffect)(()=>{if(!M)return;let e=e=>{let t=e.target;t instanceof Node&&j.current?.contains(t)||N(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[M]);let te=e=>{g||b||x||(N(!1),D?.({option:e,query:I}))},V=e=>{let t=e.target.value;N(!0),F(0),a?.(e),E?.({value:t})},ne=()=>{N(!1),k?.({value:I})},re=()=>{g||(N(!1),O?.({value:I}))},ie=e=>{if(e.key===`ArrowDown`){e.preventDefault(),N(!0),F(e=>!M||R.length===0?0:(e+1)%R.length);return}if(e.key===`ArrowUp`){e.preventDefault(),N(!0),F(e=>R.length>0?(e-1+R.length)%R.length:0);return}if(e.key===`Escape`){e.preventDefault(),N(!1);return}if(e.key===`Enter`&&z&&g){e.preventDefault();return}e.key===`Enter`&&z&&R[P]&&(e.preventDefault(),te(R[P]))};return(0,u.jsxs)(`div`,{ref:j,className:`relative w-full`,children:[e===`address`?(0,u.jsx)($,{id:s,name:l,ariaLabel:d,placeholder:f,value:I,disabled:b,readOnly:x,hasError:S,errorMessage:r,ariaDescribedBy:n,autoComplete:t,role:`combobox`,ariaAutoComplete:`list`,ariaExpanded:z,ariaControls:z?B:void 0,ariaActiveDescendant:z&&R[P]?B+`-`+P:void 0,onChange:V,onFocus:()=>N(!0),onBlur:e=>{N(!1),o?.(e)},onKeyDown:ie}):(0,u.jsx)(Qo,{id:s,name:l,ariaLabel:d,placeholder:f,value:I,disabled:b,readOnly:x,hasError:S,clearLabel:C,controlSize:w,inputClassName:T===`inactive`?`line-through`:``,autoComplete:t,onChange:V,onClear:ne,onFocus:()=>N(!0),onKeyDown:ie,onSearchSubmit:re}),z?(0,u.jsxs)(`div`,{id:B,role:`listbox`,"aria-busy":g,"aria-label":`${d} matches`,className:`absolute left-0 right-0 z-20 mt-1 overflow-hidden rounded-lg border border-borderTertiary bg-secondary shadow-lg`,children:[R.length>0?(0,u.jsx)(`ul`,{className:`max-h-72 overflow-y-auto py-1`,children:R.map((t,n)=>{let r=n===P;return(0,u.jsx)(`li`,{id:B+`-`+n,role:`option`,"aria-selected":r,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 ${r?`bg-tertiaryActive`:``}`,tabIndex:e===`address`?-1:void 0,onMouseDown:t=>{e===`address`&&t.preventDefault()},onMouseEnter:()=>F(n),onClick:()=>te(t),children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:t.label}),t.description?(0,u.jsx)(v,{variant:`free`,className:`mt-0.5 text-xs text-tertiary`,children:t.description}):null]})},t.id)})}):(0,u.jsx)(v,{role:g?`status`:void 0,"aria-live":g?`polite`:void 0,variant:`free`,className:`px-3 py-3 text-sm text-primary`,children:g?ee:h}),i?(0,u.jsx)(`div`,{className:`border-t border-borderTertiary px-3 py-2 text-xs text-tertiary`,children:i}):null]}):null]})},es=({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)(v,{as:`span`,variant:`body`,className:`text-primary`,children:n})]}),ts=({options:e=[],label:t,defaultOpen:n=!0,iconName:r,indentOptions:i=!1,columns:a=1,onOptionChange:o})=>{let[s,l]=(0,c.useState)(n),d={1:``,2:`grid grid-cols-1 gap-x-6 gap-y-2 md:grid-cols-2`,3:`grid grid-cols-1 gap-x-6 gap-y-2 md:grid-cols-3`}[a];return(0,u.jsx)(`section`,{children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,u.jsxs)(P,{intent:`primary`,variant:`link`,size:`sm`,onClick:()=>l(!s),className:`flex gap-1 w-full`,buttonAlignment:`justify-between`,"aria-expanded":s,children:[(0,u.jsxs)(`span`,{className:`flex items-center gap-2`,children:[r?(0,u.jsx)(S,{iconType:`fa-solid`,iconName:r,alt:``,size:`sm`,className:`text-tertiary`}):null,(0,u.jsx)(v,{variant:`bold`,children:t})]}),(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`angle-down`,className:`flex transform transition-transform duration-300 text-secondaryActive text-xs ${s?`rotate-180`:``}`})]}),s&&(0,u.jsx)(`ul`,{className:`list-none ${i?`pl-6`:``} ${d}`.trim(),children:e.map(e=>(0,u.jsx)(`li`,{className:`min-w-0`,children:(0,u.jsx)(es,{id:e.id,name:e.name,label:e.label,checked:e.checked??!1,disabled:e.disabled??!1,onChange:o??e.onChange,checkboxColor:`accent-primary`})},`${e.name}-${e.id}`))})]})})},ns={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`},rs=[`supports-[appearance:base-select]:[appearance:base-select]`,`supports-[appearance:base-select]:items-center`,`supports-[appearance:base-select]:[&::picker-icon]:hidden`,`supports-[appearance:base-select]:[&::picker(select)]:[appearance:base-select]`,`supports-[appearance:base-select]:[&::picker(select)]:rounded-t-none`,`supports-[appearance:base-select]:[&::picker(select)]:rounded-b-md`,`supports-[appearance:base-select]:[&::picker(select)]:border`,`supports-[appearance:base-select]:[&::picker(select)]:border-borderTertiary`,`supports-[appearance:base-select]:[&::picker(select)]:bg-secondary`,`supports-[appearance:base-select]:[&::picker(select)]:text-primary`,`supports-[appearance:base-select]:[&::picker(select)]:m-0`,`supports-[appearance:base-select]:[&::picker(select)]:max-h-80`,`supports-[appearance:base-select]:[&::picker(select)]:overflow-y-auto`,`supports-[appearance:base-select]:[&_option]:px-4`,`supports-[appearance:base-select]:[&_option]:py-2`,`supports-[appearance:base-select]:[&_option]:text-sm`,`supports-[appearance:base-select]:[&_option:checked]:bg-tertiaryActive`,`supports-[appearance:base-select]:[&_option:hover]:bg-tertiaryActive`].join(` `),is={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`}},as=({variant:e,pickerVariant:t=`native`,hasError:n,disabled:r})=>{let i=is[e];return{wrapperClasses:[ns.wrapper,i.wrapper,n?`border-accent`:`border-secondaryHover`,r?`cursor-not-allowed opacity-60`:``].join(` `),selectClasses:[ns.select,i.select,t===`rounded`?rs:``].filter(Boolean).join(` `),iconClasses:[ns.icon,i.icon].join(` `)}},os=({id:e,name:t,autoComplete:n,ariaLabel:r,ariaDescribedBy:i,options:a=[],value:o=``,placeholder:s=``,disabled:c=!1,required:l=!1,hasError:d=!1,variant:f=`field`,pickerVariant:p=`native`,onChange:m,onBlur:h})=>{let{wrapperClasses:g,selectClasses:_,iconClasses:v}=as({variant:f,pickerVariant:p,hasError:d,disabled:c});return(0,u.jsxs)(`div`,{className:g,children:[(0,u.jsxs)(`select`,{id:e,name:t,autoComplete:n,"aria-label":r,"aria-describedby":i,"aria-invalid":d||void 0,value:o,disabled:c,required:l,onChange:m,onBlur:h,className:_,children:[s?(0,u.jsx)(`option`,{value:``,disabled:!0,children:s}):null,a.map(e=>(0,u.jsx)(`option`,{value:e.value||e.label,disabled:e.disabled,children:e.label},e.value||e.label))]}),(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`chevron-down`,className:v})]})},ss=({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)(v,{as:`span`,variant:`body`,className:`text-primary`,children:t}),n?(0,u.jsx)(v,{as:`span`,variant:`caption`,className:`text-secondaryActive`,children:n}):null]})]}),cs={blocking:`Blocking`,recommended:`Recommended`,optional:`Optional`},ls={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`}},us={compact:`space-y-3`,comfortable:`space-y-4`},ds={compact:`py-1`,comfortable:`rounded-lg border border-borderTertiary p-4`},fs={compact:`mb-1.5 flex flex-wrap items-center gap-2`,comfortable:`mb-2 flex flex-wrap items-center gap-2`},ps=e=>e===null?``:String(e),ms=e=>{if(e===null||e===``||Array.isArray(e))return``;let t=Number(e);return Number.isFinite(t)?t.toFixed(2):``},hs=e=>{if(e.severity)return e.severity;if(e.required)return`blocking`},gs=e=>e.required||e.severity===`blocking`,_s=e=>ps(e.value).trim()===``,vs=e=>{if(e.trim()===``)return null;let t=Number(e);return Number.isNaN(t)?null:t},ys=e=>{if(!e.validationRegex)return e.state??`neutral`;let t=ps(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`}},bs=e=>{if(gs(e)&&_s(e))return`error`;let t=ys(e);return gs(e)&&t===`neutral`?`valid`:t},xs=({title:e,description:t,headerAction:n,fields:r,fieldGroups:i,density:a=`compact`,severityDisplay:o=`icon`,fieldMessagePlacement:s=`inline`,submitLabel:l=`Save Changes`,cancelLabel:d=`Cancel`,cancelDisabled:f=!1,submitDisabled:p=!1,showActions:m=!0,validationSummary:h,onDynamicFormFieldChange:g,onDynamicFormSubmit:_,onDynamicFormCancel:y})=>{let b=t?.trim()??``,[x,C]=c.default.useState(),w=(e,t)=>{g?.({fieldId:e.id,value:t})},T=(e,t)=>{if(e.type===`information`)return null;let n=hs(e),r=bs(e);if(t===`none`||!n||gs(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:cs[n]});let i=ls[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)(S,{iconType:`fa-solid`,iconName:i.iconName,alt:``,size:`xs`})})},E=e=>{e.preventDefault(),_?.({values:r.filter(e=>e.type!==`information`).reduce((e,t)=>({...e,[t.id]:t.value}),{})})},D=e=>{let t=ps(e.value),n=bs(e)===`error`,r=t;if(e.type===`currency`&&x!==e.id&&(r=ms(e.value)),e.type===`information`){let n=[`rounded-md border border-borderTertiary bg-adminSideNavBackground px-3 py-2 text-sm text-primary whitespace-pre-wrap`,e.informationLayout===`multiline`?`min-h-24`:`flex min-h-10 items-center`].join(` `);return(0,u.jsx)(`div`,{id:e.id,"aria-labelledby":`${e.id}-label`,className:n,children:t})}if(e.type===`select`)return(0,u.jsx)(os,{id:e.id,name:e.id,value:t,placeholder:e.placeholder,options:e.options,disabled:e.readOnly,hasError:n,onChange:t=>w(e,t.target.value)});if(e.type===`multiSelectTiles`){let t=Array.isArray(e.value)?e.value:[],n=Math.max(e.selectionLimit??3,1),r=t.length>=n;return(0,u.jsx)(`div`,{role:`group`,"aria-labelledby":`${e.id}-label`,className:`grid grid-cols-4 gap-x-3 gap-y-4 md:grid-cols-8`,children:(e.options??[]).map(n=>{let i=t.includes(n.value),a=e.readOnly||n.disabled||r&&!i,o=`hover:border-primary`;return a&&(o=i?`cursor-not-allowed`:`cursor-not-allowed opacity-40`),(0,u.jsxs)(`button`,{type:`button`,"aria-pressed":i,disabled:a,className:[`flex min-w-0 flex-col items-center gap-1.5 text-center text-xs font-semibold text-primary`,o].join(` `),onClick:()=>w(e,i?t.filter(e=>e!==n.value):[...t,n.value]),children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:[`flex h-9 w-9 items-center justify-center border border-secondaryHover transition-shadow`,i?`ring-2 ring-primary ring-offset-2`:`ring-0`].join(` `),style:{backgroundColor:n.color},children:i?(0,u.jsx)(S,{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)(ss,{id:`${e.id}-${n.value}`,name:e.id,label:n.label,value:n.value,checked:t===n.value,disabled:e.readOnly||n.disabled,onChange:t=>w(e,t)},n.value))}):e.type===`textarea`?(0,u.jsx)(ne,{id:e.id,name:e.id,value:t,placeholder:e.placeholder,readOnly:e.readOnly,required:e.required,hasError:n,rows:e.rows,onChange:t=>w(e,t.target.value)}):(0,u.jsx)(Zo,{id:e.id,name:e.id,type:e.type===`text`||e.type===`date`?e.type:`number`,value:r,placeholder:e.placeholder,readOnly:e.readOnly,required:e.required,min:e.min,max:e.max,step:e.step,hasError:n,clearable:!0,leadingIcon:e.type===`currency`?(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`dollar-sign`,alt:``,size:`xs`}):void 0,onChange:t=>w(e,e.type===`text`||e.type===`date`?t.target.value:vs(t.target.value)),onFocus:()=>{e.type===`currency`&&C(e.id)},onBlur:()=>{e.type===`currency`&&C(void 0)},onClear:()=>w(e,e.type===`text`||e.type===`date`?``:null)})},O=e=>{let t=e.message?.trim()??``,n=e.helpText?.trim()??``;return!t&&!n?null:(0,u.jsx)(v,{variant:`free`,className:s===`below-label`?`${e.type===`multiSelectTiles`?`mb-4`:`mb-1.5`} min-w-0 text-left text-xs text-tertiary`:`ml-auto min-w-0 text-right text-xs text-tertiary`,children:t||n})},k=(e,t)=>{let n=e.label,r=e.layoutWidth===`half`?``:`md:col-span-2`;t&&(r=`md:col-span-6`,e.layoutWidth===`half`&&(r=`md:col-span-3`),e.layoutWidth===`third`&&(r=`md:col-span-2`));let i=[ds[a],r].filter(Boolean).join(` `),c=O(e);return(0,u.jsxs)(`div`,{className:i,children:[(0,u.jsxs)(`div`,{className:e.type===`multiSelectTiles`&&s===`inline`?`mb-4 flex flex-wrap items-center gap-2`:fs[a],children:[e.iconName?(0,u.jsx)(S,{iconType:`fa-solid`,iconName:e.iconName,alt:``,size:`sm`,color:`secondaryHover`,className:`w-4 shrink-0`}):null,T(e,o),e.type===`radio`||e.type===`multiSelectTiles`||e.type===`information`?(0,u.jsx)(`span`,{id:`${e.id}-label`,className:`text-sm font-semibold text-primary`,children:n}):(0,u.jsx)(`label`,{htmlFor:e.id,className:`text-sm font-semibold text-primary`,children:n}),s===`inline`?c:null]}),s===`below-label`?c:null,D(e)]},e.id)},A=e=>{let t=e.some(e=>e.layoutWidth===`third`),n=e.some(e=>e.layoutWidth===`half`),r=us[a];return n&&(r=`grid md:grid-cols-2 ${a===`compact`?`gap-3`:`gap-4`}`),t&&(r=`grid md:grid-cols-6 ${a===`compact`?`gap-3`:`gap-4`}`),(0,u.jsx)(`div`,{className:r,children:e.map(e=>k(e,t))})};return(0,u.jsxs)(`form`,{className:`space-y-5`,onSubmit:E,children:[e||b||n?(0,u.jsxs)(`header`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,u.jsxs)(`div`,{children:[e?(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:e}):null,b?(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:b}):null]}),n]}):null,(()=>{if(!i?.length)return A(r);let e=new Map(r.map(e=>[e.id,e])),t=r.filter(e=>!i.some(t=>t.fieldIds.includes(e.id)));return(0,u.jsxs)(`div`,{className:`space-y-6`,children:[i.map(t=>{let n=t.fieldIds.map(t=>e.get(t)).filter(e=>!!e);return n.length?(0,u.jsxs)(`section`,{"aria-labelledby":`${t.id}-heading`,children:[(0,u.jsxs)(`div`,{className:`mb-4 flex items-center gap-3`,children:[(0,u.jsx)(v,{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)(v,{variant:`free`,className:`mb-4 text-sm text-secondaryActive`,children:t.description}):null,A(n)]},t.id):null}),t.length?A(t):null]})})(),h,m?(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row md:justify-end`,children:[y?(0,u.jsx)(P,{label:d,variant:`outline`,intent:`primary`,disabled:f,onClick:y}):null,(0,u.jsx)(P,{label:l,variant:`solid`,intent:`primary`,type:`submit`,disabled:p})]}):null]})},Ss=({itemLabel:e,selectedCount:t,failedCount:n,disableAllDisabled:r,onSelectAll:i,onSelectFailed:a,onDisableAll:o,onClear:s,onCancel:c})=>(0,u.jsxs)(`div`,{"aria-label":`${e===`sheet`?`sheets`:`samples`} bulk actions`,className:`mt-3 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsxs)(v,{variant:`free`,className:`text-xs font-bold text-primary`,children:[t,` selected`]}),(0,u.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:[(0,u.jsx)(P,{label:`Select all`,variant:`outline`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,onClick:i}),(0,u.jsx)(P,{label:`Select failed checks (${n})`,variant:`outline`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,disabled:n===0,onClick:a}),(0,u.jsx)(P,{label:`Disable all`,variant:`outline`,intent:`danger`,size:`xs`,className:`shrink-0 whitespace-nowrap`,disabled:r,onClick:o})]}),(0,u.jsxs)(`div`,{className:`mt-2 flex items-center gap-1`,children:[(0,u.jsx)(P,{label:`Clear`,variant:`ghost`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,disabled:t===0,onClick:s}),(0,u.jsx)(P,{label:`Cancel`,variant:`ghost`,intent:`primary`,size:`xs`,className:`shrink-0 whitespace-nowrap`,onClick:c})]})]}),Cs=({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)(P,{label:`Delete ${t} selected`,variant:`solid`,intent:`accent`,size:`sm`,fullWidth:!0,disabled:n,onClick:r})}),ws=({guide:e})=>{let t=e.segments.some(e=>e.description?.trim());return(0,u.jsxs)(`details`,{className:`rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsx)(`summary`,{className:`cursor-pointer text-sm font-bold text-primary`,children:e.title}),(0,u.jsxs)(`div`,{className:`mt-4 space-y-4`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{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)(v,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:e.exampleLabel}),(0,u.jsx)(`code`,{className:`mt-1 block break-all text-sm text-primary`,children:e.example})]}),(0,u.jsx)(`div`,{className:`overflow-x-auto`,children:(0,u.jsxs)(`table`,{className:`w-full text-left text-xs text-primary`,children:[(0,u.jsx)(`thead`,{className:`border-b border-borderTertiary text-tertiary`,children:(0,u.jsxs)(`tr`,{children:[(0,u.jsx)(`th`,{className:`pb-2 pr-2 font-bold`,children:`Code`}),(0,u.jsx)(`th`,{className:`pb-2 pr-2 font-bold`,children:`Field`}),(0,u.jsx)(`th`,{className:`pb-2 text-right font-bold`,children:`Example`}),t?(0,u.jsx)(`th`,{className:`pb-2 pl-2 font-bold`,children:`Meaning`}):null]})}),(0,u.jsx)(`tbody`,{children:e.segments.map(e=>(0,u.jsxs)(`tr`,{className:`border-b border-borderTertiary last:border-0`,children:[(0,u.jsxs)(`td`,{className:`py-2 pr-2 font-mono font-bold`,children:[e.pattern,(0,u.jsxs)(`span`,{className:`ml-1 text-tertiary`,children:[`(`,e.length,`)`]})]}),(0,u.jsx)(`td`,{className:`py-2 pr-2`,children:e.label}),(0,u.jsx)(`td`,{className:`py-2 text-right font-mono`,children:e.example}),t?(0,u.jsx)(`td`,{className:`py-2 pl-2`,children:e.description}):null]},e.pattern))})]})}),e.coreNote?(0,u.jsx)(v,{variant:`free`,className:`text-xs text-tertiary`,children:e.coreNote}):null,e.sampleNote?(0,u.jsx)(v,{variant:`free`,className:`rounded-md border border-borderTertiary bg-secondary p-3 text-xs text-primary`,children:e.sampleNote}):null]})]})},Ts=({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)(v,{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)(v,{variant:`free`,className:`text-xs text-primary`,children:e.canonicalSkuNote}),(0,u.jsx)(v,{variant:`free`,className:`text-xs text-primary`,children:e.parsingNote}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{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)(v,{variant:`free`,className:`rounded-md border border-yellow-500 bg-yellow-50 p-3 text-xs text-yellow-700`,children:e.caution})]})]}),Es=({sectionData:e,onSampleSearchChange:t,onSampleSelect:n,onAddSampleClick:r,onSampleVariantSelect:i,onNewSampleSkuChange:a,onSampleFieldChange:o,onSampleLocalizationAvailabilityChange:s,onSampleSave:c,onSampleCancel:l,onSampleCreate:d,onSampleDelete:f,onSampleBulkSelectionChange:p,onSampleBulkDelete:m,onSampleDisableAll:h,onSampleBigCommerceSync:g})=>{let{editor:_,guide:y,sampleGuide:b}=e,x={region:e.region,samples:e.items},C=x.region===`north-america`,w=null;C&&b?w=(0,u.jsx)(Ts,{guide:b}):y&&(w=(0,u.jsx)(ws,{guide:y}));let T=x.samples.find(e=>e.id===_.selectedSampleId),E=T?.bigCommerceReady??!1,D=_.integration?.bigCommerceStatusLabel??(E?`Ready`:`Not found`),O=x.samples.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.size}`})),k=_.bulkSelection,A=k?.selectedIds??[],j=x.samples.filter(e=>!e.isSampleable).map(e=>e.id),M=_.saveStatus===`saving`,N=_.variantOptionsReadOnly??!1,F=_.variantGroups??[{title:`Finish`,iconName:`paint-roller`,dimension:`finish`,options:_.finishOptions,selectedValue:_.selectedFinish},{title:`Size`,iconName:`ruler-combined`,dimension:`size`,options:_.sizeOptions,selectedValue:_.selectedSize}],I={..._.implicitVariantSelections,...Object.fromEntries(F.filter(e=>e.selectedValue!==void 0).map(e=>[e.dimension,e.selectedValue]))},L=null;_.mode===`create`?L=(0,u.jsx)(P,{label:_.createLabel??`Create Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:_.createDisabled,onClick:()=>d?.({sku:_.newSkuValue,finish:_.selectedFinish??``,size:_.selectedSize??``,variantSelections:I})}):T&&(L=(0,u.jsx)(P,{label:_.controls.saveLabel,iconType:`fa-solid`,iconName:M?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:_.controls.saveDisabled||M,"aria-busy":M||void 0,onClick:()=>c?.({sampleId:T.id})}));let R=null;return _.mode===`create`?R=(0,u.jsxs)(`div`,{className:`mt-5`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-new-sample-sku`,className:`text-sm font-bold text-primary`,children:`New Sample SKU`}),(0,u.jsx)(Zo,{id:`market-readiness-new-sample-sku`,name:`newSampleSku`,value:_.newSkuValue,placeholder:`Generated sample SKU`,leadingIcon:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>a?.({value:e.target.value})})]}):T?.sourceIdentifier&&(R=(0,u.jsxs)(`div`,{className:`mt-5 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-xs text-tertiary`,children:`Salsify identifier`}),(0,u.jsx)(`code`,{className:`mt-1 block break-all text-sm text-primary`,children:T.sourceIdentifier})]})),(0,u.jsxs)(`section`,{role:`tabpanel`,"aria-label":`Samples`,className:`mt-5 grid gap-5 md:grid-cols-3`,children:[(0,u.jsxs)(`div`,{className:`space-y-5 md:col-span-2`,children:[(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-end`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-sample-search`,className:`text-sm font-bold text-primary`,children:`Sample SKU`}),(0,u.jsx)($o,{id:`market-readiness-sample-search`,name:`sampleSearch`,ariaLabel:`Sample SKU`,value:_.searchValue,options:O,valueStatus:T?.isSampleable===!1&&_.searchValue===T.sku?`inactive`:`default`,placeholder:`Search sample SKUs`,controlSize:`default`,onQueryChange:t,onClear:()=>t?.({value:``}),onOptionSelect:({option:e})=>{let t=x.samples.find(t=>t.id===e.value);t&&n?.({sampleId:t.id,sku:t.sku})}})]}),(0,u.jsx)(P,{label:_.addLabel??`Add Sample`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:r})]})}),_.mode===`edit`&&!T?(0,u.jsxs)(`section`,{className:`rounded-lg border border-dashed border-borderTertiary bg-secondary p-8 text-center`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:_.emptyTitle}),(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-primary`,children:_.emptyMessage})]}):(0,u.jsxs)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:_.mode===`create`?`Create a new sample`:T?.sku}),(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-tertiary`,children:_.identifierHelpText}),R,(0,u.jsx)(`div`,{className:`mt-5 space-y-5`,children:F.map(e=>(0,u.jsx)(Jo,{...e,readOnly:N||(e.readOnly??!1),onSelect:(e,t)=>i?.({dimension:e,value:t})},e.dimension))}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(xs,{fields:_.fields,density:`compact`,severityDisplay:`icon`,fieldMessagePlacement:`below-label`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>o?.({sampleId:T?.id,fieldId:e,value:t})})}),_.localizationAvailability?.length?(0,u.jsx)(`div`,{className:`mt-6 border-t border-borderTertiary pt-5`,children:(0,u.jsx)(ts,{iconName:`globe`,indentOptions:!0,label:_.localizationAvailabilityLabel??`Sub-region availability`,defaultOpen:!1,options:_.localizationAvailability.map(e=>({id:`sample-localization-${e.id}`,name:`sampleLocalizationAvailability`,label:e.label,checked:e.enabled??!0,disabled:e.disabled,onChange:({checked:t})=>s?.({sampleId:T?.id,localizationId:e.id,enabled:t})}))})}):null,C&&_.mode===`edit`&&T?(0,u.jsx)(`section`,{className:`mt-6 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:`Big Commerce`}),(0,u.jsxs)(`div`,{"aria-label":`Sample Big Commerce status: ${D}`,className:`mt-2 flex items-center gap-2 text-sm text-primary`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-3 w-3 shrink-0 rounded-full ${E?`bg-saleGreen`:`bg-accent`}`}),(0,u.jsx)(`span`,{children:D})]})]}),(0,u.jsx)(P,{label:_.integration?.bigCommerceSyncLabel??`Sync`,iconType:`fa-solid`,iconName:_.integration?.bigCommerceSyncLoading?`spinner`:`arrows-rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,className:`w-24`,disabled:_.integration?.bigCommerceSyncDisabled||_.integration?.bigCommerceSyncLoading||!g,"aria-busy":_.integration?.bigCommerceSyncLoading||void 0,onClick:()=>g?.({sampleId:T.id})})]})}):null,(0,u.jsxs)(`footer`,{className:`mt-6 flex flex-col-reverse gap-3 border-t border-borderTertiary pt-5 md:flex-row md:items-end md:justify-between`,children:[(0,u.jsx)(`div`,{children:_.mode===`edit`&&T&&_.deleteLabel&&f?(0,u.jsx)(P,{label:_.deleteLabel,variant:`outline`,intent:`danger`,disabled:_.deleteDisabled||M,onClick:()=>f?.({sampleId:T.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(Ce,{status:_.saveStatus,label:_.saveStatusLabel,errorMessage:_.saveErrorMessage,lastSavedLabel:_.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(P,{label:_.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:_.controls.cancelDisabled||M,onClick:l}),L]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[w,(0,u.jsxs)(`aside`,{className:`rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`sticky top-4 z-10 bg-secondary pb-1`,children:[(0,u.jsxs)(`div`,{"aria-label":`Samples list header`,className:`flex items-center justify-between gap-3`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`Samples`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[k?(0,u.jsx)(P,{iconType:k.active?`fa-solid`:`fa-regular`,iconName:k.active?`square-check`:`square`,iconAlt:k.active?`Close sample selection`:`Select samples`,variant:`ghost`,intent:k.active?`accent`:`primary`,size:`xs`,onClick:()=>p?.({active:!k.active,sampleIds:[]})}):null,(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:x.samples.length})]})]}),k?.active?(0,u.jsx)(Ss,{itemLabel:`sample`,selectedCount:A.length,failedCount:j.length,disableAllDisabled:k.disableAllDisabled||x.samples.length===0||!h,onSelectAll:()=>p?.({active:!0,sampleIds:x.samples.map(e=>e.id)}),onSelectFailed:()=>p?.({active:!0,sampleIds:j}),onDisableAll:()=>h?.({sampleIds:x.samples.map(e=>e.id)}),onClear:()=>p?.({active:!0,sampleIds:[]}),onCancel:()=>p?.({active:!1,sampleIds:[]})}):null]}),x.samples.length?(0,u.jsx)(`div`,{className:`mt-4 space-y-2`,children:x.samples.map(e=>{let t=A.includes(e.id),r=k?.active?t:e.id===_.selectedSampleId;return(0,u.jsx)(ye,{sampleId:e.id,sku:e.sku,isSampleable:e.isSampleable,bigCommerceReady:x.region===`north-america`?e.bigCommerceReady:void 0,selected:r,selectionMode:k?.active??!1,onSampleClick:()=>{if(k?.active){p?.({active:!0,sampleIds:t?A.filter(t=>t!==e.id):[...A,e.id]});return}n?.({sampleId:e.id,sku:e.sku})}},e.id)})}):(0,u.jsx)(v,{variant:`free`,className:`mt-4 text-sm text-tertiary`,children:`No samples have been added to this decor.`}),k?.active&&A.length>0?(0,u.jsx)(Cs,{itemLabel:`sample`,selectedCount:A.length,deleteDisabled:k.deleteDisabled||!m,onDelete:()=>m?.({sampleIds:A})}):null]})]})]})},Ds=({sectionData:e,onSkuSearchChange:t,onSkuSelect:n,onAddSkuClick:r,onSkuVariantSelect:i,onNewSkuChange:a,onSkuFieldChange:o,onSkuLocalizationAvailabilityChange:s,onSkuSave:c,onSkuCancel:l,onSkuCreate:d,onSkuDelete:f,onSkuBulkSelectionChange:p,onSkuBulkDelete:m,onSkuDisableAll:h,onLxUpdate:g,onBigCommerceSync:_})=>{let{editor:y,guide:b}=e,x={region:e.region,skus:e.items},C=x.region===`north-america`,w=x.skus.find(e=>e.id===y.selectedSkuId),T=!!y.integration?.bigCommerceId?.trim(),E=y.integration?.bigCommerceStatusLabel??(T?`Ready`:`Not found`),D=y.integration?.availableForOnlineCheckout??y.integration?.availabilityLabel?.trim().toLowerCase()===`true`,O=x.skus.map(e=>({id:e.id,label:e.sku,value:e.id,description:`${e.finish} · ${e.grade} · ${e.size}`})),k=y.bulkSelection,A=k?.selectedIds??[],j=x.skus.filter(e=>!e.isForSale).map(e=>e.id),M=y.saveStatus===`saving`,N=y.variantGroups??[{title:`Grade`,iconName:`layer-group`,dimension:`grade`,options:y.gradeOptions,selectedValue:y.selectedGrade},{title:`Finish`,iconName:`paint-roller`,dimension:`finish`,options:y.finishOptions,selectedValue:y.selectedFinish},{title:`Size`,iconName:`ruler-combined`,dimension:`size`,options:y.sizeOptions,selectedValue:y.selectedSize}],F={...y.implicitVariantSelections,...Object.fromEntries(N.filter(e=>e.selectedValue!==void 0).map(e=>[e.dimension,e.selectedValue]))},I=null;return y.mode===`create`?I=(0,u.jsx)(P,{label:y.createLabel??`Create SKU`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:y.createDisabled,onClick:()=>d?.({sku:y.newSkuValue,grade:y.selectedGrade??``,finish:y.selectedFinish??``,size:y.selectedSize??``,variantSelections:F})}):w&&(I=(0,u.jsx)(P,{label:y.controls.saveLabel,iconType:`fa-solid`,iconName:M?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:y.controls.saveDisabled||M,"aria-busy":M||void 0,onClick:()=>c?.({skuId:w.id})})),(0,u.jsxs)(`section`,{role:`tabpanel`,"aria-label":`Sheets`,className:`mt-5 grid gap-5 md:grid-cols-3`,children:[(0,u.jsxs)(`div`,{className:`space-y-5 md:col-span-2`,children:[(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-end`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-sku-search`,className:`text-sm font-bold text-primary`,children:`Sheet SKU`}),(0,u.jsx)($o,{id:`market-readiness-sku-search`,name:`skuSearch`,ariaLabel:`Sheet SKU`,value:y.searchValue,options:O,valueStatus:w?.isForSale===!1&&y.searchValue===w.sku?`inactive`:`default`,placeholder:`Search sheet SKUs`,controlSize:`default`,onQueryChange:t,onClear:()=>t?.({value:``}),onOptionSelect:({option:e})=>{let t=x.skus.find(t=>t.id===e.value);t&&n?.({skuId:t.id,sku:t.sku})}})]}),(0,u.jsx)(P,{label:y.addSkuLabel??`Add Sheet`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`outline`,intent:`primary`,onClick:r})]})}),y.mode===`edit`&&!w?(0,u.jsxs)(`section`,{className:`rounded-lg border border-dashed border-borderTertiary bg-secondary p-8 text-center`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`Select a sheet to edit`}),(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-primary`,children:`Search above or choose one from the sheet list.`})]}):(0,u.jsxs)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:y.mode===`create`?`Create a new sheet SKU`:w?.sku}),w?(0,u.jsxs)(`div`,{className:`ml-auto flex flex-wrap items-center justify-end gap-2`,children:[w.statusLabel?(0,u.jsx)(`span`,{className:`rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-primary`,children:w.statusLabel}):null,(0,u.jsxs)(`span`,{"aria-label":`Big Commerce readiness: ${E}`,className:`rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-primary`,children:[`Big Commerce: `,E]})]}):null]}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:y.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.`})]}),y.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)(Zo,{id:`market-readiness-new-sku`,name:`newSku`,value:y.newSkuValue,placeholder:`Generated sheet SKU`,leadingIcon:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`barcode`,alt:``,size:`sm`}),onChange:e=>a?.({value:e.target.value})})]}):null,(0,u.jsx)(`div`,{className:`mt-5 grid gap-5`,children:N.map(e=>(0,u.jsx)(Jo,{...e,readOnly:e.readOnly??!1,onSelect:(e,t)=>i?.({dimension:e,value:t})},e.dimension))}),y.duplicateMessage?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`mt-4 rounded-md border border-accent bg-accent/10 p-3 text-sm text-accent`,children:y.duplicateMessage}):null,(0,u.jsxs)(`div`,{className:`mt-6 border-t border-borderTertiary pt-5`,children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:`Lifecycle and selling options`}),(0,u.jsx)(v,{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)(xs,{fields:y.fields,density:`compact`,severityDisplay:`icon`,fieldMessagePlacement:`below-label`,showActions:!1,onDynamicFormFieldChange:({fieldId:e,value:t})=>o?.({skuId:w?.id,fieldId:e,value:t})})})]}),y.localizationAvailability?.length?(0,u.jsx)(`div`,{className:`mt-6 border-t border-borderTertiary pt-5`,children:(0,u.jsx)(ts,{iconName:`globe`,indentOptions:!0,label:y.localizationAvailabilityLabel??`Sub-region availability`,defaultOpen:!1,options:y.localizationAvailability.map(e=>({id:`sheet-localization-${e.id}`,name:`sheetLocalizationAvailability`,label:e.label,checked:e.enabled??!0,disabled:e.disabled,onChange:({checked:t})=>s?.({skuId:w?.id,localizationId:e.id,enabled:t})}))})}):null,C&&y.mode===`edit`?(0,u.jsxs)(`div`,{className:`mt-6 space-y-4`,children:[(0,u.jsx)(`section`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:`Big Commerce`}),(0,u.jsxs)(`div`,{"aria-label":`Big Commerce status: ${E}`,className:`mt-2 flex items-center gap-2 text-sm text-primary`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-3 w-3 shrink-0 rounded-full ${T?`bg-saleGreen`:`bg-accent`}`}),(0,u.jsx)(`span`,{children:E})]})]}),w?(0,u.jsx)(P,{label:y.integration?.bigCommerceSyncLabel??`Sync`,iconType:`fa-solid`,iconName:y.integration?.bigCommerceSyncLoading?`spinner`:`arrows-rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,className:`w-24`,disabled:y.integration?.bigCommerceSyncDisabled||y.integration?.bigCommerceSyncLoading||!_,"aria-busy":y.integration?.bigCommerceSyncLoading||void 0,onClick:()=>_?.({skuId:w.id})}):null]})}),(0,u.jsxs)(`section`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,u.jsxs)(`div`,{"aria-label":`LX availability: ${D?`Available`:`Unavailable`}`,className:`flex items-center gap-2`,children:[(0,u.jsx)(`span`,{"aria-hidden":`true`,className:`h-3 w-3 shrink-0 rounded-full ${D?`bg-saleGreen`:`bg-accent`}`}),(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:`LX`})]}),w?(0,u.jsx)(P,{label:y.integration?.lxUpdateLabel??`Update`,iconType:`fa-solid`,iconName:y.integration?.lxUpdateLoading?`spinner`:`rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,className:`w-24`,disabled:y.integration?.lxUpdateDisabled||y.integration?.lxUpdateLoading||!g,"aria-busy":y.integration?.lxUpdateLoading||void 0,onClick:()=>g?.({skuId:w.id})}):null]}),(0,u.jsxs)(`dl`,{className:`mt-4 grid gap-4 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`LX SKU`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:y.integration?.lxId??`Not assigned`})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Price`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:y.integration?.priceLabel??`Not available`})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Available For Online Checkout`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:y.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:y.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:y.mode===`edit`&&w&&y.deleteLabel&&f?(0,u.jsx)(P,{label:y.deleteLabel,variant:`outline`,intent:`danger`,disabled:y.deleteDisabled||M,onClick:()=>f?.({skuId:w.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(Ce,{status:y.saveStatus,label:y.saveStatusLabel,errorMessage:y.saveErrorMessage,lastSavedLabel:y.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(P,{label:y.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:y.controls.cancelDisabled||M,onClick:l}),I]})]})]})]})]}),(0,u.jsxs)(`div`,{className:`space-y-5`,children:[b?(0,u.jsx)(ws,{guide:b}):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)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`Sheets`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[k?(0,u.jsx)(P,{iconType:k.active?`fa-solid`:`fa-regular`,iconName:k.active?`square-check`:`square`,iconAlt:k.active?`Close sheet selection`:`Select sheets`,variant:`ghost`,intent:k.active?`accent`:`primary`,size:`xs`,onClick:()=>p?.({active:!k.active,skuIds:[]})}):null,(0,u.jsx)(`span`,{className:`text-xs font-bold text-tertiary`,children:x.skus.length})]})]}),k?.active?(0,u.jsx)(Ss,{itemLabel:`sheet`,selectedCount:A.length,failedCount:j.length,disableAllDisabled:k.disableAllDisabled||x.skus.length===0||!h,onSelectAll:()=>p?.({active:!0,skuIds:x.skus.map(e=>e.id)}),onSelectFailed:()=>p?.({active:!0,skuIds:j}),onDisableAll:()=>h?.({skuIds:x.skus.map(e=>e.id)}),onClear:()=>p?.({active:!0,skuIds:[]}),onCancel:()=>p?.({active:!1,skuIds:[]})}):null]}),(0,u.jsx)(`div`,{className:`mt-4 space-y-2`,children:x.skus.map(e=>{let t=A.includes(e.id),r=k?.active?t:e.id===y.selectedSkuId;return(0,u.jsx)(xe,{skuId:e.id,sku:e.sku,lxReady:e.lxReady,bigCommerceReady:x.region===`north-america`?e.bigCommerceReady:void 0,isForSale:e.isForSale,grade:e.grade,finish:e.finish,size:e.size,selected:r,selectionMode:k?.active??!1,onSkuClick:()=>{if(k?.active){p?.({active:!0,skuIds:t?A.filter(t=>t!==e.id):[...A,e.id]});return}n?.({skuId:e.id,sku:e.sku})}},e.id)})}),k?.active&&A.length>0?(0,u.jsx)(Cs,{itemLabel:`sheet`,selectedCount:A.length,deleteDisabled:k.deleteDisabled||!m,onDelete:()=>m?.({skuIds:A})}):null]})]})]})},Os=e=>e.itemType===`sheet`?(0,u.jsx)(Ds,{...e}):(0,u.jsx)(Es,{...e}),ks=({editors:e,onVariantAvailabilityChange:t,onVariantAvailabilitySave:n,onVariantAvailabilityCancel:r})=>(0,u.jsx)(`section`,{role:`tabpanel`,"aria-label":`Availability`,className:`mt-5 space-y-5`,children:e.map(e=>{let i=e.saveStatus===`saving`;return(0,u.jsxs)(`section`,{"aria-labelledby":`${e.id}-title`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:p-6`,children:[(0,u.jsx)(v,{as:`h2`,variant:`bold`,id:`${e.id}-title`,children:e.title}),e.description?(0,u.jsx)(v,{variant:`body`,className:`mt-2`,children:e.description}):null,e.impactMessage?(0,u.jsx)(v,{role:`note`,variant:`free`,className:`mt-4 rounded-md border border-yellow-500 bg-yellow-50 p-3 text-sm text-yellow-700`,children:e.impactMessage}):null,e.items.length?(0,u.jsx)(`div`,{className:`mt-5 space-y-4`,children:e.items.map(n=>(0,u.jsx)(`div`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:(0,u.jsx)(ts,{iconName:`globe`,indentOptions:!0,defaultOpen:!1,label:`${n.label} (${n.variantCount} ${n.variantCount===1?`variant`:`variants`})`,options:n.localizationAvailability.map(r=>({id:`${e.id}-${n.id}-${r.id}`,name:`${e.id}-${n.id}-availability`,label:r.label,checked:r.enabled??!0,disabled:r.disabled||i||!t,onChange:({checked:i})=>t?.({editorId:e.id,itemId:n.id,localizationId:r.id,enabled:i})}))})},n.id))}):(0,u.jsxs)(`div`,{className:`mt-5 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(v,{as:`h3`,variant:`bold`,children:e.emptyTitle}),(0,u.jsx)(v,{variant:`body`,className:`mt-1`,children:e.emptyMessage})]}),(0,u.jsxs)(`footer`,{className:`mt-5 flex flex-col gap-3 border-t border-borderTertiary pt-5 md:flex-row md:items-end md:justify-between`,children:[(0,u.jsx)(Ce,{status:e.saveStatus,label:e.saveStatusLabel,errorMessage:e.saveErrorMessage,lastSavedLabel:e.lastSavedLabel}),(0,u.jsxs)(`div`,{className:`flex gap-2 md:ml-auto`,children:[(0,u.jsx)(P,{label:e.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:e.controls.cancelDisabled||i||!r,onClick:()=>r?.({editorId:e.id})}),(0,u.jsx)(P,{label:e.controls.saveLabel,iconType:`fa-solid`,iconName:i?`spinner`:`floppy-disk`,iconAlt:``,intent:`primary`,disabled:e.controls.saveDisabled||i||!n,"aria-busy":i||void 0,onClick:()=>n?.({editorId:e.id})})]})]})]},e.id)})}),As=({children:e,layoutVariant:t=`default`})=>{let n={default:``,stacked:`flex-col md:flex-row`,separator:`min-h-10`}[t];return(0,u.jsx)(`section`,{className:`mx-auto flex max-w-6xl justify-center`,children:(0,u.jsx)(`div`,{className:`w-full`,children:(0,u.jsx)(`div`,{className:`flex w-full items-center gap-4 rounded-none bg-secondary px-4 pt-0 pb-8 md:flex-wrap md:rounded-lg md:bg-multibarBackground md:px-2 md:pt-2 md:pb-2 ${n}`.trim(),children:e})})})},js=({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)(P,{...e})}),(0,u.jsx)(`div`,{className:`md:hidden`,children:(0,u.jsx)(P,{...t})})]}),Ms=({dropdownProps:e,className:t=`w-full md:w-70`})=>(0,u.jsx)(`div`,{className:t,children:(0,u.jsx)(os,{...e})}),Ns={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`},Ps=({searchBarProps:e,searchPlaceholder:t,layoutVariant:n=`default`})=>(0,u.jsx)(`div`,{className:Ns[n],children:(0,u.jsx)(Qo,{...e,placeholder:t??e.placeholder})}),Fs=({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)(P,{variant:`ghost`,"aria-label":i,onClick:e,intent:n?.buttonType??`ghost`,className:n?.className??``,children:(0,u.jsx)(S,{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)(P,{variant:`ghost`,"aria-label":a,onClick:t,intent:r?.buttonType??`ghost`,className:r?.className??``,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`md`})})})]}),Is=({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}`))}),Ls=(e,t)=>Math.max(0,Math.min(e,t-1)),Rs=(e,t,n)=>n?(e+t)%t:Ls(e,t),zs=e=>!!(e.eyebrow||e.heading||e.subheading||e.body||e.ctas?.length),Bs=e=>`Open ${e.heading??`slide`}`,Vs=({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`})}),Hs=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>(0,u.jsx)(v,{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)(Vs,{slide:e,heightClassName:n})}),Us=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>(0,u.jsx)(K,{onCardClick:()=>{r(e,t)},ariaLabel:Bs(e),className:`block w-full cursor-pointer text-left`,children:(0,u.jsx)(Vs,{slide:e,heightClassName:n})}),Ws=({slide:e,index:t,heightClassName:n,onSlideClick:r})=>e.link?(0,u.jsx)(Hs,{slide:e,index:t,heightClassName:n,onSlideClick:r}):r?(0,u.jsx)(Us,{slide:e,index:t,heightClassName:n,onSlideClick:r}):(0,u.jsx)(Vs,{slide:e,heightClassName:n}),Gs=({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)(v,{variant:`free`,className:`text-secondary text-sm font-normal md:font-bold mb-3`,children:e.eyebrow}):null,e.heading?(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-secondary text-3xl md:text-6xl mb-4`,children:e.heading}):null,e.subheading?(0,u.jsx)(v,{variant:`free`,className:`text-secondary text-lg font-bold mb-4 md:max-w-2xl`,children:e.subheading}):null,e.body?(0,u.jsx)(v,{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)(P,{...e},`${e.label??`cta`}-${t}`))}):null]})})}),Ks=({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(()=>Ls(t,m)),_=c.default.useRef(e);c.default.useEffect(()=>{_.current=e},[e]),c.default.useEffect(()=>{let e=Ls(t,m);g(e),s?.(e,_.current[e])},[t,m,s]);let v=e[h],y=m>1,b=!!p,x=!b&&zs(v),S=f??!b,C=t=>{let n=Rs(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)(Ws,{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)(Gs,{slide:v}):null,n&&y?(0,u.jsx)(`div`,{className:`hidden md:block`,children:(0,u.jsx)(Fs,{onPreviousClick:()=>C(h-1),onNextClick:()=>C(h+1),prevArrowButtonProps:o,nextArrowButtonProps:a})}):null,r&&y?(0,u.jsx)(Is,{count:e.length,activeIndex:h,onDotClick:C}):null]})},qs=e=>{let t=e.slides??[];return t.length===0?null:(0,u.jsx)(Ks,{...e,slides:t})},Js=e=>[`relative flex h-6 w-6 items-center justify-center border border-secondaryHover`,e.disabled?`opacity-50 cursor-not-allowed`:`cursor-pointer`].join(` `),Ys=({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)(P,{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)(v,{variant:`bold`,children:t}),(0,u.jsx)(S,{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:Js(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)(S,{iconType:`fa-solid`,iconName:`check`,size:`xs`,color:e.checkIconColor??`secondary`}):null})},`${e.name}-${e.id}`))})]})})},Xs=({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)(v,{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)(P,{label:e.label,size:`sm`,intent:`secondary`,onClick:()=>n?.(e)},e.id))}):null]}),Zs=({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)(v,{variant:`standard`,className:`mb-3 md:mb-5`,children:r}):null,(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-secondary text-3xl md:text-6xl mb-4`,children:e}),t?(0,u.jsx)(v,{variant:`free`,className:`text-secondary text-xl md:text-4xl font-bold mb-4`,children:t}):null,n?(0,u.jsx)(v,{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)(P,{label:e.label,variant:e.variant??`solid`,intent:e.intent??`accent`,className:e.className??`md:w-36`,onClick:e.onCtaClick},`${e.label}-${t}`))}):null]})}),Qs=({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)(P,{label:n,variant:`solid`,intent:`accent`,size:`sm`,className:`mx-auto md:mx-0`})}):null,(0,u.jsx)(v,{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)(v,{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)(P,{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)(P,{variant:`outline`,intent:`secondary`,size:`lg`,className:`border-2 p-2! text-secondary`,onClick:i,"aria-label":r,children:(0,u.jsx)(jo,{icon:Po,className:`h-4 w-4 -rotate-45 text-secondary`})})}):null]}),$s=({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)(v,{as:`h1`,variant:`free`,className:`mb-3! md:mb-1! text-secondary text-2xl md:text-5xl uppercase`,children:e}),t?(0,u.jsx)(v,{variant:`body`,className:`mb-6 text-secondary text-base font-light uppercase`,children:t}):null,n?(0,u.jsx)(v,{variant:`body`,className:`text-secondary text-base font-light`,children:n}):null,r?(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(P,{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]})}),ec=({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)(S,{iconType:e.iconType??`fa-brands`,iconName:e.iconName,alt:``,size:`base`})},`${e.label}-${e.href}`)})}):null,tc=({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)(L,{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)(v,{variant:`free`,className:`mb-2 text-sm font-bold text-secondary`,children:n}),i&&(0,u.jsx)(v,{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)(S,{iconType:`fa-solid`,iconName:`arrow-right`,color:`inherit`,className:`-rotate-45`})}):null]});return r?(0,u.jsx)(K,{onCardClick:r,ariaLabel:`Open ${n}`,className:`block w-full cursor-pointer text-left`,children:o}):o},nc=({videoEmbedUrl:e,videoTitle:t,videoMessage:n})=>{let r=n?.trim();return(0,u.jsxs)(`div`,{className:`w-full`,children:[(0,u.jsx)(z,{src:e,title:t,className:`aspect-video rounded-lg`}),r?(0,u.jsx)(v,{variant:`caption`,className:`mt-2`,children:r}):null]})},rc=({documentInfoCardItem:e,layoutVariant:t=`table`,downloadLabelTemplate:n=`Download {name}`,onDownloadClick:r,onRangeClick:i})=>{let{name:a,range:o,documentType:s,documentSubtype:c}=e,l=n.replace(`{name}`,a),d=(0,u.jsx)(K,{ariaLabel:l,onCardClick:()=>r({documentInfoCardItem:e}),className:`absolute inset-0 cursor-pointer border-0 bg-transparent p-0 text-left focus-visible:z-10 focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-primary`,children:(0,u.jsx)(`span`,{className:`sr-only`,children:l})});return t===`compact`?(0,u.jsxs)(`article`,{className:`relative flex w-full items-center gap-4 border-b border-borderTertiary px-3 py-3 transition-colors hover:bg-multibarBackground/20`,children:[d,(0,u.jsxs)(`div`,{className:`pointer-events-none flex min-w-0 flex-1 flex-col gap-1 md:flex-row md:items-center md:gap-6`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm font-medium text-primary`,children:a}),(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-xs text-tertiary`,children:[s?(0,u.jsx)(`span`,{children:s}):null,s&&c?(0,u.jsx)(`span`,{"aria-hidden":`true`,children:`•`}):null,c?(0,u.jsx)(`span`,{children:c}):null]})]}),o?(0,u.jsx)(`div`,{className:`md:w-40 md:shrink-0`,children:(0,u.jsx)(P,{variant:`link`,intent:`accent`,onClick:()=>i({documentInfoCardItem:e}),className:`pointer-events-auto relative z-20 p-0! text-left! text-sm`,children:o})}):null]}),(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`download`,size:`lg`,color:`primary`,className:`pointer-events-none`})]}):(0,u.jsxs)(`div`,{className:`relative w-full flex flex-row justify-between items-center py-5 border-b border-borderTertiary hover:bg-multibarBackground/20 transition-colors`,children:[d,(0,u.jsxs)(`div`,{className:`pointer-events-none w-full flex flex-col md:flex-row justify-between items-start md:items-center gap-1 md:gap-4`,children:[(0,u.jsx)(v,{className:`flex-2`,children:a}),(0,u.jsx)(P,{variant:`link`,intent:`accent`,onClick:()=>i({documentInfoCardItem:e}),className:`pointer-events-auto relative z-20 flex-1 justify-start! text-xs md:text-sm p-0! text-left!`,children:o}),(0,u.jsx)(v,{className:`flex-1 text-xs md:text-sm`,children:s}),(0,u.jsx)(v,{className:`flex-1 text-xs md:text-sm`,children:c})]}),(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`download`,size:`xl`,color:`primary`,className:`pointer-events-none`})]})},ic=({title:e,details:t,iconName:n=`file-pdf`,onDocumentClick:r})=>(0,u.jsx)(P,{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)(S,{iconType:`fa-regular`,iconName:n,size:`4xl`})}),(0,u.jsxs)(`div`,{className:`flex flex-col`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary font-medium`,children:e}),(0,u.jsx)(v,{variant:`free`,className:`text-xs text-secondaryActive`,children:t})]})]})}),ac=({question:e,answer:t,initiallyOpen:n=!1})=>{let[r,i]=(0,c.useState)(n),a=(0,c.useId)();return(0,u.jsx)(K,{onCardClick:()=>i(e=>!e),ariaLabel:`${r?`Collapse`:`Expand`} ${e}`,ariaControls:a,ariaExpanded:r,className:`border border-primary rounded-lg w-full`,children:(0,u.jsxs)(`div`,{className:`flex flex-row justify-between gap-1 rounded-lg border-l-18 transition-all duration-300 ${r?`border-accent py-9 px-4 md:px-12`:`border-secondaryActive py-4 px-4 md:px-12`}`,children:[(0,u.jsxs)(`div`,{className:`w-full`,children:[(0,u.jsx)(v,{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)(v,{variant:`body`,className:`text-left`,children:t})})]}),(0,u.jsx)(`div`,{className:`flex items-start`,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`angle-down`,className:`transform transition-transform duration-300 text-secondaryActive text-lg ${r?`rotate-180`:``}`})})]})})},oc=({imageSrc:e,imageAlt:t=``,headline:n,body:r,buttons:i=[],align:a=`right`,layoutVariant:o=`default`,onButtonClick:s})=>{let c=a===`right`,l=o===`underBanner`?`mt-10 md:mt-20`:``,d=n?.trim()??``,f=i.filter(e=>e.buttonLabel.trim().length>0),p=(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)(L,{src:e,alt:t,className:`aspect-6/7 w-full object-cover rounded-lg md:aspect-video ${c?`md:rounded-l-lg`:`md:rounded-r-lg`}`,quality:90})}),(0,u.jsxs)(`div`,{className:`flex w-full flex-col justify-center bg-white px-4 md:w-1/3 md:px-0 md:py-14 ${c?`md:pr-7`:`md:pl-7`}`,children:[d&&(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`mb-4 text-center text-2xl md:mx-0 md:text-left md:text-4xl`,children:d}),(0,u.jsx)(v,{variant:`body`,className:`mb-6 text-center md:mb-20 md:text-left`,children:r}),f.length>0&&(0,u.jsx)(`div`,{"data-testid":`info-card-actions`,className:`flex w-full flex-col gap-2 md:gap-4`,children:f.map((e,t)=>(0,u.jsx)(P,{label:e.buttonLabel,variant:e.variant??`solid`,intent:e.intent??`accent`,size:e.size??`md`,fullWidth:!0,onClick:()=>p(e,t)},`${e.buttonLabel}-${t}`))})]})]})},sc=({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)(v,{as:`span`,variant:`body`,className:`!text-inherit`,children:a}),(0,u.jsx)(S,{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)(S,{iconType:e,iconName:t,size:`lg`,className:`mb-3`}),(0,u.jsx)(v,{as:`h3`,variant:`bold`,className:`mb-2`,children:n}),(0,u.jsx)(v,{variant:`body`,className:`mb-3 leading-relaxed text-sm text-light`,children:r}),c]})})},cc=[{key:`lrv`,code:`LRV`,iconName:`fa-sun`},{key:`ral`,code:`RAL`,iconName:`fa-palette`},{key:`ncs`,code:`NCS`,iconName:`fa-swatchbook`}],lc=e=>e!=null&&String(e).trim().length>0,uc=({colourMatching:e,label:t=`Colour Matching Information`})=>{let n=cc.map(t=>({...t,value:e?.[t.key]})).filter(e=>lc(e.value));return n.length?(0,u.jsxs)(`section`,{"aria-label":t,className:`mt-2 flex flex-col gap-2`,children:[(0,u.jsx)(v,{as:`h3`,variant:`bold`,className:`mb-0 text-sm md:text-base`,children:t}),(0,u.jsx)(`dl`,{className:`grid grid-cols-1 gap-2 text-sm text-primary`,children:n.map(e=>(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(S,{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},dc=e=>[`h-9 w-9 border-2 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),fc=({imageSrc:e,imageAlt:t,title:n,brand:r,decorNumber:i,finish:a,size:o,quantity:s,errorMessage:c,price:l,unitPrice:d,totalPrice:f,showPricing:p=!0,minQuantity:m=1,maxQuantity:h=99,isReadOnly:g=!1,removeItemLabel:_=`Remove item`,decreaseQuantityLabel:y=`Decrease quantity`,increaseQuantityLabel:b=`Increase quantity`,onQuantityChange:x,onRemoveItem:S})=>{let C=s>m,w=s<h,T=()=>{g||!C||x?.(s-1)},E=()=>{g||!w||x?.(s+1)},D=()=>{g||S?.()},O=f?.label||l?.label,k=`flex items-center gap-3`;return g&&(k=p?`grid grid-cols-[minmax(0,1fr)_120px_120px_120px] items-center gap-6`:`grid grid-cols-[minmax(0,1fr)_120px] items-center gap-6`),(0,u.jsxs)(`div`,{className:`w-full rounded-lg p-5 ${g?``:`bg-tertiaryActive`}`,children:[(0,u.jsxs)(`div`,{className:k,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center`,children:[(0,u.jsx)(L,{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)(v,{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)(v,{variant:`bold`,className:`min-w-0 font-bold`,children:n}),a&&o?(0,u.jsxs)(v,{variant:`free`,className:`text-base text-tertiary`,children:[a,`, `,o]}):null]}),(0,u.jsx)(v,{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)(v,{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)(v,{variant:`free`,className:`text-primary`,children:d?.label})}),(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(v,{variant:`free`,className:`font-extrabold text-primary`,children:O})})]}):null]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`flex shrink-0 items-center justify-end gap-1`,children:[C?(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":y,type:`button`,disabled:!C,onClick:T,className:dc(C)}):(0,u.jsx)(P,{iconType:`fa-regular`,iconName:`trash-can`,intent:`ghost`,variant:`solid`,"aria-label":_,type:`button`,onClick:D,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)(v,{as:`span`,variant:`free`,children:s})}),(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":b,type:`button`,disabled:!w,onClick:E,className:dc(w)})]}),p?(0,u.jsx)(`div`,{className:`flex w-24 shrink-0 justify-end`,children:O?(0,u.jsx)(v,{variant:`free`,className:`text-primary`,children:O}):null}):null]})]}),c?(0,u.jsx)(v,{variant:`free`,role:`alert`,className:`mt-2 text-sm text-accent`,children:c}):null]})},pc=/^(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?$/,mc=new Intl.DateTimeFormat(`en-US`,{month:`long`,day:`numeric`,year:`numeric`,timeZone:`UTC`}),hc=e=>{let t=pc.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)))},gc=e=>{let t=hc(e);if(t)return t;let n=new Date(e);return Number.isNaN(n.getTime())?null:n},_c=e=>{let t=e?.trim();if(!t)return``;let n=gc(t);return n?mc.format(n):t},vc=e=>e===`mediaLeftCompact`?`h-48 w-full rounded-lg object-cover mb-4 md:aspect-video md:h-auto md:mb-0`: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`,yc=({layoutVariant:e,mediaType:t,imageSrc:n,imageFallbackSrc:r,imageAlt:i,videoEmbedUrl:a,videoTitle:o,title:s})=>{let c=vc(e);return t===`video`&&a?(0,u.jsx)(z,{src:a,title:o??s,className:c}):(0,u.jsx)(`div`,{className:`relative overflow-hidden bg-gray-100 ${c}`,children:(0,u.jsx)(V,{src:n?.trim()?n:r,fallbackSrc:r,alt:i??``,imageClassName:`absolute inset-0 h-full w-full object-cover`,quality:90})})},bc=({layoutVariant:e=`default`,mediaType:t=`image`,imageSrc:n,imageFallbackSrc:r,imageAlt:i=``,videoEmbedUrl:a,videoTitle:o,category:s,title:c,publishDate:l,body:d,buttonLabel:f,onViewClick:p,actionFooter:m})=>{let h={default:{article:`w-full md:flex md:flex-row md:gap-8`,media:`w-full md:w-1/2`,content:`flex w-full flex-col justify-center md:w-1/2`},mediaRightCompact:{article:`w-full md:flex md:flex-row-reverse md:gap-0`,media:`w-full md:w-2/3`,content:`flex w-full flex-col justify-center md:w-1/3 md:pr-14`},mediaLeftCompact:{article:`w-full md:grid md:grid-cols-5 md:gap-8`,media:`w-full md:col-span-2`,content:`flex min-w-0 w-full flex-col justify-start md:col-span-3`}}[e],g=_c(l),_=f.trim();return(0,u.jsxs)(`article`,{className:h.article,children:[(0,u.jsx)(`div`,{className:h.media,children:yc({layoutVariant:e,mediaType:t,imageSrc:n,imageFallbackSrc:r,imageAlt:i,videoEmbedUrl:a,videoTitle:o,title:c})}),(0,u.jsxs)(`div`,{className:h.content,children:[s?(0,u.jsx)(v,{as:`p`,variant:`navlink`,className:`mt-4 mb-2 md:mt-0 md:mb-4 underline underline-offset-4`,children:s}):null,(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-2xl md:text-3xl mb-2 md:mb-4 mt-2`,children:c}),g?(0,u.jsx)(v,{variant:`body`,className:`mb-2 md:mb-4`,children:g}):null,(0,u.jsx)(v,{variant:`body`,className:`mb-4 md:mb-8`,children:d}),_?(0,u.jsx)(`div`,{className:e===`mediaLeftCompact`?`md:mt-auto`:void 0,children:(0,u.jsx)(P,{variant:`outline`,intent:`accent`,size:`sm`,label:_,onClick:p,className:`px-8 py-2 mb-2`})}):null,m?(0,u.jsx)(`div`,{className:`mt-4`,children:m}):null]})]})},xc=({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)(v,{as:`h2`,variant:`h2`,className:`mb-6`,children:e}),t?(0,u.jsx)(v,{variant:`body`,className:`mx-auto mb-6 max-w-2xl`,children:t}):null,(0,u.jsx)(P,{variant:`solid`,intent:`accent`,label:n,className:`mx-auto w-full max-w-md`,onClick:()=>{i?.({heading:e,body:t,buttonLabel:n,buttonHref:r})}})]}),Sc={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`}},Cc=({id:e,title:t,description:n,status:r,statusLabel:i,selected:a=!1,onCardClick:o})=>{let s=Sc[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)(S,{iconType:`fa-solid`,iconName:s.iconName,alt:``,size:`xs`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-sm font-bold text-primary`,children:t}),c?(0,u.jsx)(v,{variant:`free`,className:`mt-0.5 text-xs text-primary`,children:c}):null,(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs font-medium ${s.statusClassName}`,children:i})]})]});return o?(0,u.jsx)(K,{ariaLabel:`Edit ${t} localization`,className:`block w-full cursor-pointer rounded-lg text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,onCardClick:()=>o({id:e,title:t,status:r,statusLabel:i}),children:l}):l},wc={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`}},Tc=`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbGw9IiNFNUU1RTUiLz4KICA8cmVjdCB4PSIxIiB5PSIxIiB3aWR0aD0iMjk4IiBoZWlnaHQ9IjI5OCIgZmlsbD0iI0YzRjNGMyIgc3Ryb2tlPSIjRDBEMEQwIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBkPSJNNDggMjAzTDExMCAxNDFMMTUzIDE4NEwyMjYgMTExTDI1MiAxMzdWMjUySDQ4VjIwM1oiIGZpbGw9IiNEOEQ4RDgiLz4KICA8Y2lyY2xlIGN4PSIxMDIiIGN5PSI5MSIgcj0iMjYiIGZpbGw9IiNEOEQ4RDgiLz4KICA8dGV4dCB4PSIxNTAiIHk9IjI3OCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iIzdBN0E3QSIgZm9udC1mYW1pbHk9IkFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjE4Ij5JbWFnZSBVbmF2YWlsYWJsZTwvdGV4dD4KPC9zdmc+Cg==`,Ec=({imageSrc:e,imageFallbackSrc:t,imageAlt:n,title:r,brand:i,product:a,decorNumber:o,status:s,onSwatchClick:c})=>{let l=s?wc[s]:null,d=typeof c==`function`,f=(0,u.jsx)(V,{src:e,fallbackSrc:t,placeholderSrc:Tc,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`}),p=`relative block aspect-square w-full overflow-hidden border-0 bg-neutral-100 p-0 text-left`;return(0,u.jsxs)(`section`,{className:`w-full flex flex-col md:flex-nowrap md:max-w-64 mx-auto items-center`,children:[(0,u.jsxs)(`div`,{className:`relative md:flex md:w-full w-52`,children:[d?(0,u.jsx)(K,{onCardClick:c,className:`${p} cursor-pointer`,ariaLabel:`Open ${r}${o}`,children:f}):(0,u.jsx)(`div`,{className:p,children:f}),l?(0,u.jsx)(`div`,{className:l.bannerContainerClassName,children:(0,u.jsx)(v,{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)(v,{variant:`free`,className:`text-sm text-tertiary`,children:o}),(0,u.jsx)(v,{variant:`free`,className:`text-primary text-lg font-bold`,children:r}),(0,u.jsx)(v,{variant:`free`,className:`text-base text-primary`,children:i}),a&&(0,u.jsx)(v,{variant:`free`,className:`text-base text-primary`,children:a}),l?.specialText?(0,u.jsx)(v,{variant:`free`,className:l.specialTextClassName,children:l.specialText}):null]})]})},Dc=({address:e,defaultLabel:t=`Default address`,editLabel:n=`Edit`,removeLabel:r=`Remove`,onEditClick:i,onRemoveClick:a})=>(0,u.jsxs)(`article`,{className:`relative flex w-full flex-col rounded-lg border border-borderTertiary bg-white p-6`,children:[e.isDefault?(0,u.jsx)(`span`,{className:`mb-4 w-fit rounded-full bg-primary px-3 py-1 text-xs font-semibold text-white`,children:t}):null,(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`font-rockwell text-xl text-primary`,children:e.fullName}),e.company?(0,u.jsx)(v,{className:`mt-2`,children:e.company}):null,(0,u.jsxs)(`address`,{className:`mt-3 not-italic`,children:[e.addressLines.map(e=>(0,u.jsx)(v,{className:`text-secondaryActive`,children:e},e)),e.phoneNumber?(0,u.jsx)(v,{className:`mt-1 text-secondaryActive`,children:e.phoneNumber}):null]}),(0,u.jsxs)(`div`,{className:`mt-6 flex flex-wrap gap-3 border-t border-borderTertiary pt-4`,children:[(0,u.jsx)(P,{label:n,iconType:`fa-solid`,iconName:`pen`,iconAlt:``,variant:`link`,intent:`accent`,size:`sm`,onClick:()=>i({address:e})}),(0,u.jsx)(P,{label:r,iconType:`fa-solid`,iconName:`trash-can`,iconAlt:``,variant:`link`,intent:`danger`,size:`sm`,onClick:()=>a({address:e})})]})]}),Oc={neutral:`bg-tertiaryActive text-primary`,accent:`bg-accent text-white`,success:`bg-green-50 text-primary`},kc=({orderNumber:e,orderDate:t,status:n,statusTone:r=`neutral`,projectName:i,invoiceLabel:a=`Download invoice`,onInvoiceClick:o})=>(0,u.jsx)(`header`,{className:`w-full rounded-lg border border-borderTertiary bg-adminSideNavBackground p-5 md:p-6`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-5 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,u.jsxs)(v,{as:`h1`,variant:`free`,className:`font-rockwell text-3xl text-primary`,children:[`Order #`,e]}),(0,u.jsx)(`span`,{className:`rounded-full px-3 py-1 text-sm font-semibold ${Oc[r]}`,children:n})]}),(0,u.jsxs)(v,{className:`mt-3 text-secondaryActive`,children:[`Placed `,t]}),i?(0,u.jsxs)(v,{className:`mt-1 text-secondaryActive`,children:[`Project: `,i]}):null]}),o?(0,u.jsx)(`div`,{className:`md:shrink-0`,children:(0,u.jsx)(P,{label:a,iconType:`fa-solid`,iconName:`download`,iconAlt:``,intent:`primary`,onClick:o})}):null]})}),Ac={neutral:`bg-tertiaryActive text-primary`,accent:`bg-accent text-white`,success:`bg-green-50 text-primary`},jc=({item:e,onProductClick:t,onTrackingClick:n})=>{let r=`${e.quantity}${e.quantityUnit?` ${e.quantityUnit}`:``}`,i=e.trackingNumber?n?(0,u.jsxs)(`button`,{type:`button`,className:`text-left text-sm font-semibold text-accent hover:underline`,onClick:()=>n({item:e}),children:[`Track shipment `,e.trackingNumber]}):(0,u.jsxs)(v,{className:`text-sm text-primary`,children:[`Tracking: `,e.trackingNumber]}):(0,u.jsx)(v,{className:`text-sm text-secondaryActive`,children:`Tracking available after shipment`});return(0,u.jsxs)(`article`,{className:`w-full rounded-lg border border-borderTertiary bg-adminSideNavBackground p-5 md:p-6`,children:[(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-6 md:grid-cols-5 md:items-center`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 gap-4 md:col-span-2`,children:[(0,u.jsx)(L,{src:e.imageSrc,alt:e.imageAlt,quality:90,className:`h-20 w-20 shrink-0 rounded-lg object-cover`}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[t?(0,u.jsx)(`button`,{type:`button`,className:`text-left font-semibold text-primary hover:text-accent hover:underline`,onClick:()=>t({item:e}),children:e.title}):(0,u.jsx)(v,{variant:`free`,className:`font-semibold text-primary`,children:e.title}),(0,u.jsxs)(v,{className:`mt-1 text-sm text-secondaryActive`,children:[`SKU `,e.sku]}),e.brand?(0,u.jsx)(v,{className:`mt-1 text-sm text-primary`,children:e.brand}):null,e.description?(0,u.jsx)(v,{className:`mt-1 text-sm text-secondaryActive`,children:e.description}):null]})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{className:`text-xs font-semibold uppercase text-secondaryActive`,children:`Quantity`}),(0,u.jsx)(v,{className:`mt-1 text-sm text-primary`,children:r})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{className:`text-xs font-semibold uppercase text-secondaryActive`,children:`Unit price`}),(0,u.jsx)(v,{className:`mt-1 text-sm text-primary`,children:e.unitPrice})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{className:`text-xs font-semibold uppercase text-secondaryActive`,children:`Total`}),(0,u.jsx)(v,{className:`mt-1 font-semibold text-primary`,children:e.total})]})]}),(0,u.jsxs)(`div`,{className:`mt-5 flex flex-col gap-3 border-t border-borderTertiary pt-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,u.jsx)(`span`,{className:`rounded-full px-3 py-1 text-sm font-semibold ${Ac[e.statusTone??`neutral`]}`,children:e.status}),e.statusDetail?(0,u.jsx)(v,{className:`text-sm text-secondaryActive`,children:e.statusDetail}):null]}),i]})]})},Mc=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(` `),Nc=({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)(L,{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)(S,{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:Mc(n),onClick:()=>l(e),children:[(0,u.jsx)(S,{iconType:e.iconType??`fa-solid`,iconName:e.iconName,alt:``,size:`md`,className:`shrink-0`}),(0,u.jsx)(v,{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)(S,{iconType:`fa-solid`,iconName:`right-from-bracket`,alt:``,size:`md`,className:`shrink-0`}),(0,u.jsx)(v,{variant:`free`,className:`text-sm text-inherit`,children:a})]})]})},Pc=1500,Fc=2e4,Ic=21,Lc=2*Math.PI*Ic,Rc=e=>Math.min(100,Math.max(0,e)),zc=({job:e,completionDisplayDuration:t,onClick:n,onDismiss:r})=>{let[i,a]=(0,c.useState)(!1),o=Rc(e.percentDone),s=(0,c.useRef)(e),l=(0,c.useRef)(r);s.current=e,l.current=r,(0,c.useEffect)(()=>{if(o<100){a(!1);return}let e=window.setTimeout(()=>a(!0),t),n=window.setTimeout(()=>l.current(s.current),t+Pc);return()=>{window.clearTimeout(e),window.clearTimeout(n)}},[t,o]);let d=Lc-o/100*Lc,f=o===100?`text-saleGreen`:`text-primary`;return(0,u.jsx)(`li`,{className:`transition-opacity ${i?`opacity-0`:`opacity-100`}`,style:{transitionDuration:`${Pc}ms`},children:(0,u.jsxs)(`button`,{type:`button`,className:`group flex w-full items-center gap-3 rounded-lg p-2 text-left text-primary transition hover:bg-tertiaryActive focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary`,"aria-label":`${e.name}: ${e.status}, ${Math.round(o)}% complete`,title:`${e.name} - ${e.status}`,onClick:()=>n?.(e),children:[(0,u.jsxs)(`span`,{className:`relative flex h-12 w-12 shrink-0 items-center justify-center`,children:[(0,u.jsxs)(`svg`,{className:`absolute inset-0 h-full w-full -rotate-90`,viewBox:`0 0 48 48`,role:`progressbar`,"aria-label":`${e.name} progress`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(o),children:[(0,u.jsx)(`circle`,{cx:`24`,cy:`24`,r:Ic,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,className:`text-tertiaryActive`}),(0,u.jsx)(`circle`,{cx:`24`,cy:`24`,r:Ic,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,strokeDasharray:Lc,strokeDashoffset:d,className:f})]}),(0,u.jsxs)(`span`,{className:`text-xs font-bold tabular-nums`,children:[Math.round(o),`%`]})]}),(0,u.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`span`,{className:`block truncate text-sm font-semibold`,children:e.name}),(0,u.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-tertiary`,children:e.status})]})]})})},Bc=({jobs:e,ariaLabel:t=`Background jobs`,completionDisplayDuration:n=Fc,onJobClick:r,onJobDismiss:i})=>{let[a,o]=(0,c.useState)(e),s=(0,c.useRef)(new Set);(0,c.useEffect)(()=>{let t=new Set(e.map(({id:e})=>e));for(let e of s.current)t.has(e)||s.current.delete(e);for(let t of e)Rc(t.percentDone)<100&&s.current.delete(t.id);o(n=>{let r=n.filter(e=>Rc(e.percentDone)===100&&!t.has(e.id)&&!s.current.has(e.id));return[...e.filter(e=>!s.current.has(e.id)),...r]})},[e]);let l=(0,c.useCallback)(e=>{s.current.add(e.id),o(t=>t.filter(({id:t})=>t!==e.id)),i?.(e)},[i]);return a.length===0?null:(0,u.jsx)(`aside`,{"aria-label":t,className:`fixed right-3 top-4 z-50 w-64 rounded-xl border border-borderTertiary bg-secondary p-1.5 shadow-lg md:right-5 md:top-6`,children:(0,u.jsx)(`ul`,{className:`space-y-1`,children:a.map(e=>(0,u.jsx)(zc,{job:e,completionDisplayDuration:n,onClick:e=>r?.({job:e}),onDismiss:l},e.id))})})},Vc={sm:`max-w-md`,md:`max-w-2xl`,lg:`max-w-4xl`},Hc=({open:e,title:t,description:n,children:r,closeLabel:i=`Close modal`,size:a=`md`,onClose:o})=>{let s=n?.trim()??``,l=(0,c.useId)(),d=(0,c.useId)();return(0,c.useEffect)(()=>{let t=e=>{e.key===`Escape`&&o()};return e&&document.addEventListener(`keydown`,t),()=>{e&&document.removeEventListener(`keydown`,t)}},[o,e]),e?(0,u.jsxs)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center p-4`,children:[(0,u.jsx)(`button`,{type:`button`,"aria-label":i,className:`absolute inset-0 cursor-default bg-primary/40`,onClick:o}),(0,u.jsxs)(`section`,{role:`dialog`,"aria-modal":`true`,"aria-labelledby":l,"aria-describedby":s?d:void 0,className:`relative flex max-h-[90vh] w-full flex-col overflow-hidden rounded-lg border border-borderTertiary bg-secondary shadow-lg ${Vc[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)(v,{as:`h2`,id:l,variant:`free`,className:`text-lg font-bold text-primary`,children:t}),s?(0,u.jsx)(v,{id:d,variant:`free`,className:`mt-1 text-sm text-primary`,children:s}):null]}),(0,u.jsx)(`button`,{type:`button`,"aria-label":i,className:`flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-primary hover:bg-tertiaryActive`,onClick:o,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`xmark`,alt:``,size:`sm`})})]}),(0,u.jsx)(`div`,{className:`overflow-y-auto p-5`,children:r})]})]}):null},Uc=({html:e=``,className:t=``})=>e?(0,u.jsx)(`div`,{className:`html-block ${t}`,dangerouslySetInnerHTML:{__html:e}}):null,Wc=({open:e,title:t,body:n,acceptButton:r,acceptButtonHelpText:i=`You must scroll to accept the Terms & Conditions.`,imageSrc:a,imageAlt:o=``,onClose:s,closeLabel:l=`Close Opt In Modal`})=>{let[d,f]=(0,c.useState)(!0),p=(0,c.useId)(),m=(0,c.useId)(),h=(0,c.useRef)(null),g=(0,c.useRef)(null),_=(0,c.useRef)(null);if((0,c.useEffect)(()=>{let e=_.current;if(!e)return()=>{};let t=new IntersectionObserver(([e])=>{e.isIntersecting&&f(!1)},{root:h.current,threshold:0}),n=new IntersectionObserver(([e])=>{e.isIntersecting&&f(!1)},{root:g.current,threshold:0});return t.observe(e),n.observe(e),()=>{t.disconnect(),n.disconnect()}},[e]),!e)return null;let y=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(P,{...r,intent:`accent`,className:`w-1/2`,disabled:d,label:r.label||`I Accept`}),(0,u.jsx)(v,{variant:`caption`,hidden:!d,children:i})]}),b=s?(0,u.jsx)(we,{iconType:`fa-solid`,iconName:`xmark`,iconSize:`sm`,intent:`primary`,size:`sm`,"aria-label":l,onClick:s}):null;return(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":l,className:`absolute inset-0 cursor-default bg-primary/40`,onClick:s}),(0,u.jsxs)(`section`,{role:`dialog`,"aria-modal":`true`,"aria-labelledby":p,"aria-describedby":m,className:`relative flex max-h-[90vh] w-full overflow-hidden flex-col rounded-lg bg-secondary shadow-lg max-w-4xl`,children:[(0,u.jsx)(`header`,{className:`md:hidden text-right`,children:b}),(0,u.jsxs)(`div`,{className:`min-h-0 flex flex-1 flex-col md:flex-row overflow-y-auto md:overflow-y-hidden`,ref:g,children:[(0,u.jsx)(`div`,{className:`w-full md:w-1/2 px-5 md:p-0`,children:(0,u.jsx)(L,{src:a,alt:o,quality:90,className:`w-full h-full object-cover aspect-square md:aspect-auto rounded-lg md:rounded-l-lg md:rounded-r-none`})}),(0,u.jsxs)(`div`,{className:`flex min-h-0 w-full flex-col md:w-1/2`,children:[(0,u.jsx)(`header`,{className:`hidden md:block shrink-0 text-right`,children:b}),(0,u.jsxs)(`div`,{className:`p-5 min-h-0 flex-1 md:overflow-y-auto`,ref:h,children:[(0,u.jsx)(v,{id:p,className:`text-2xl! md:text-4xl!`,variant:`h2`,children:t}),(0,u.jsx)(v,{id:m,variant:`body`,children:(0,u.jsx)(Uc,{html:n})}),(0,u.jsx)(`div`,{ref:_,className:`h-1`})]}),(0,u.jsx)(`footer`,{className:`hidden md:block shrink-0 p-5 text-center shadow-[0_-4px_6px_rgba(0,0,0,0.2)]`,children:y})]})]}),(0,u.jsx)(`footer`,{className:`md:hidden p-5 text-center shadow-[0_-4px_6px_rgba(0,0,0,0.2)]`,children:y})]})]})},Gc=({items:e,selectedId:t,onSelect:n,layoutVariant:r=`content`,visualVariant:i=`default`,className:a=``,buttonClassName:o=``,disabled:s=!1,ariaLabel:c=`Segmented control`})=>{if(!e?.length)return null;let l=e.filter(e=>!e.disabled),d=l.findIndex(e=>e.id===t),f=e=>{let t=l[e];t&&n?.(t.id)},p=e=>{if(s||!l.length)return;let t=d>=0?d:0;(e.key===`ArrowRight`||e.key===`ArrowDown`)&&(e.preventDefault(),f((t+1)%l.length)),(e.key===`ArrowLeft`||e.key===`ArrowUp`)&&(e.preventDefault(),f((t-1+l.length)%l.length)),e.key===`Home`&&(e.preventDefault(),f(0)),e.key===`End`&&(e.preventDefault(),f(l.length-1))},m=r===`equalWidth`?`inline-grid grid-flow-col auto-cols-fr`:`inline-flex`,h=i===`brandBar`;return(0,u.jsx)(`div`,{className:`${m} ${s?`opacity-60 pointer-events-none`:``} ${a}`.trim(),role:`radiogroup`,"aria-label":c,"aria-disabled":s||void 0,onKeyDown:p,children:e.map((r,i)=>{let a=r.id===t,c=i===0,l=i===e.length-1,d=[`rounded-none`,`whitespace-nowrap`,h?`border-none! bg-transparent! hover:bg-transparent! active:bg-transparent!`:``,!h&&a?`relative z-10 border-secondaryMultiButton!`:``,!h&&!a?`bg-secondaryHover`:``,!h&&c?`rounded-l-md`:``,!h&&!c?`-ml-px`:``,!h&&l?`rounded-r-md`:``,o].filter(Boolean).join(` `);return(0,u.jsx)(P,{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)})})},Kc=({options:e,value:t,defaultValue:n,onChange:r,ariaLabel:i=`Radio buttons`,disabled:a=!1,className:o=``,containerClassName:s=``,buttonClassName:l=``,visualVariant:d=`default`})=>{let f=t!==void 0,p=(0,c.useMemo)(()=>e?.[0],[e]),[m,h]=(0,c.useState)(n&&e.includes(n)?n:p);if((0,c.useEffect)(()=>{if(!e?.length){h(void 0);return}h(t=>t&&e.includes(t)?t:n&&e.includes(n)?n:e[0])},[n,e.join(`|`)]),!e?.length)return null;let g=(f?t:m)??e[0];return(0,u.jsx)(Gc,{ariaLabel:i,disabled:a,className:[s,o].filter(Boolean).join(` `),buttonClassName:l,visualVariant:d,selectedId:g,items:e.map(e=>({id:e,label:e})),onSelect:t=>{let n=e.indexOf(t);h(t),r?.(t,n)}})},qc=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Jc=e=>{if(!qc(e))return e;let t=e.value??e.jsonValue;return t===void 0?e:Jc(t)},Yc=(e,t,n=!0)=>{let r=Jc(e);if(typeof r==`string`)return n?r:``;if(!qc(r))return``;for(let e of t){let t=r[e];if(typeof t==`string`)return t}return``},Xc=(e,t)=>{let n=Jc(t);return qc(n)?`${e}${typeof n.querystring==`string`?n.querystring:``}${typeof n.anchor==`string`?n.anchor:``}`:e},Zc=e=>Yc(e,[`text`,`title`,`label`,`href`,`url`]).trim(),Qc=e=>{let t=Yc(e,[`href`,`url`]).trim();return t?Xc(t,e):``},$c=(e,t)=>Yc(e,[`target`],!1).trim()||t,el=(e,t)=>Yc(e,[`rel`],!1).trim()||t,tl=({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=Zc(e.label),r=Qc(e.href),a=Le(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)(Kc,{ariaLabel:`Customer type`,defaultValue:r,buttonClassName:`aria-checked:font-bold text-secondary`,visualVariant:`brandBar`,onChange:e=>a?.(e),options:[`Commercial`,`Residential`]}):null})]})})},nl=({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)(v,{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)(v,{variant:`free`,children:e.label})})},e.id))})]},e.id))})}):null,rl=e=>[e.title,e.subtitle].filter(Boolean).join(` `),il=e=>e.variant===`document`?(0,u.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center`,children:(0,u.jsx)(S,{iconType:`fa-regular`,iconName:`file-pdf`,size:`2xl`})}):e.imageSrc?(0,u.jsx)(L,{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`}),al=({id:e,items:t=[],viewAllLabel:n=`View all results`,ariaLabel:r=`Search results`,layoutVariant:i=`popover`,onResultClick:a,onViewAllClick:o})=>t.length?(0,u.jsxs)(`div`,{id:e,className:`${i===`contained`?`w-full`:`w-80`} overflow-hidden rounded-md border border-gray-200 bg-white text-primary shadow-lg`,role:`region`,"aria-label":r,children:[(0,u.jsx)(`ul`,{className:`max-h-96 divide-y divide-gray-200 overflow-y-auto`,children:t.map(e=>(0,u.jsx)(`li`,{children:(0,u.jsxs)(K,{ariaLabel:rl(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:()=>a?.({item:e}),children:[il(e),(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-tertiary`,children:e.subtitle}):null,(e.variant===`article`||e.variant===`document`)&&e.description?(0,u.jsx)(`span`,{className:`mt-0.5 block text-xs leading-snug break-words text-tertiary`,children:e.description}):null]})]})},e.id))}),(0,u.jsx)(`div`,{className:`border-t border-gray-200 px-3 py-2`,children:(0,u.jsx)(P,{variant:`link`,label:n,className:`w-full justify-start px-0 text-left text-tertiary underline-offset-2 hover:underline`,onClick:o})})]}):null,ol=300,sl=({Countries:e,countries:t,selectedCountry:n,Login:r,Account:i,Cart:a={hasCart:!1,itemCount:0},showCart:o=!0,showFavorites:s=!0,showLogin:l=!0,searchPlaceholder:d=`Search`,searchLabel:f=`Search`,searchResultsAriaLabel:p=`Search results`,clearSearchLabel:m=`Clear search`,searchResultItems:h=[],searchViewAllLabel:g,onSearchClick:_,onSearchChange:v,onSearchSubmit:y,onSearchResultClick:b,onSearchViewAllClick:x,onCartClick:S,onLoginClick:C,onAccountClick:w,onFavoritesClick:T,onCountrySelect:E})=>{let[D,O]=(0,c.useState)(!1),[k,A]=(0,c.useState)(``),j=(0,c.useRef)(!1),M=a.hasCart&&a.itemCount>0,N=e??t??[],F=i?.loggedIn??r.loggedIn??!1,I=k.trim(),L=h.length>0;return(0,c.useEffect)(()=>{if(!j.current)return;let e=window.setTimeout(()=>{v?.({query:k})},ol);return()=>{window.clearTimeout(e)}},[v,k]),(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`,D?`w-56 opacity-100`:`w-0 opacity-0`].join(` `),"aria-hidden":!D,children:D?(0,u.jsx)(Qo,{id:`top-nav-search`,ariaLabel:f,value:k,placeholder:d,clearLabel:m,autoComplete:`off`,autoFocus:!0,onChange:e=>{j.current=!0,A(e.target.value)},onBlur:()=>{k.trim()||O(!1)},onKeyDown:e=>{if(e.key===`Enter`&&I){y?.({query:I});return}e.key===`Escape`&&(A(``),O(!1))}}):null}),(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`magnifying-glass`,iconAlt:``,variant:`ghost`,"aria-label":f,onClick:()=>{if(!D){O(!0),_?.();return}if(I){y?.({query:I});return}O(!1)},"aria-expanded":D,"aria-controls":`top-nav-search`}),D&&L?(0,u.jsx)(`div`,{className:`absolute top-full right-0 z-30 mt-2`,children:(0,u.jsx)(al,{id:`top-nav-search-results`,items:h,viewAllLabel:g,ariaLabel:p,onResultClick:e=>{b?.(e),O(!1)},onViewAllClick:()=>{x?.({query:I}),O(!1)}})}):null]}),(0,u.jsx)(`div`,{className:`h-4 border-l my-6`}),(0,u.jsx)(`div`,{className:`my-3`,children:(0,u.jsx)(Wo,{countries:N,selectedCountry:n,onCountrySelect:E})}),(0,u.jsxs)(`div`,{className:`my-2 flex items-center space-x-1`,children:[o?(0,u.jsxs)(`div`,{className:`relative`,children:[(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`cart-shopping`,iconAlt:`Cart`,intent:M?`accent`:`primary`,variant:`ghost`,onClick:S}),M?(0,u.jsx)(`span`,{className:`absolute -top-0 -right-0 flex h-4 min-w-4 items-center justify-center rounded-full bg-accent px-1 text-[10px] leading-none text-white`,children:a.itemCount}):null]}):null,s?(0,u.jsx)(P,{iconType:`fa-regular`,iconName:`heart`,iconAlt:`Favorites`,variant:`ghost`,onClick:T}):null]}),l?(0,u.jsx)(`div`,{children:F?(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`user`,iconAlt:``,variant:`ghost`,intent:`primary`,"aria-label":`Open account menu`,"aria-haspopup":`dialog`,onClick:w}):(0,u.jsx)(P,{className:`my-3 rounded-md p-4`,size:`sm`,intent:`accent`,variant:`solid`,label:r.label,onClick:C})}):null]})},cl=750,ll=`
|
|
559
559
|
@keyframes top-nav-account-drawer-slide-in {
|
|
560
560
|
from { transform: translate3d(100%, 0, 0); }
|
|
561
561
|
to { transform: translate3d(0, 0, 0); }
|
|
@@ -607,4 +607,4 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
|
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
|
|
610
|
-
`,ul=({isOpen:e,customerName:t,title:n=`Account`,orderHistoryLabel:r=`Order History`,favoritesLabel:i=`Favorites`,profileLabel:a=`Profile & Addresses`,logoutLabel:o=`Log Out`,onClose:s,onOrderHistoryClick:l,onFavoritesClick:f,onProfileClick:p,onLogoutClick:m})=>{let[h,g]=(0,c.useState)(e),[_,y]=(0,c.useState)(e?`opening`:`open`);if((0,c.useEffect)(()=>{let t;return e?(g(!0),y(`opening`)):h&&(y(`closing`),t=window.setTimeout(()=>g(!1),cl)),()=>window.clearTimeout(t)},[e,h]),(0,c.useEffect)(()=>{if(!h)return;let e=document.body.style.overflow,t=document.body.style.paddingRight,n=window.innerWidth-document.documentElement.clientWidth,r=e=>{e.key===`Escape`&&s()};if(n>0){let e=Number.parseFloat(window.getComputedStyle(document.body).paddingRight);document.body.style.paddingRight=`${e+n}px`}return document.body.style.overflow=`hidden`,document.addEventListener(`keydown`,r),()=>{document.body.style.overflow=e,document.body.style.paddingRight=t,document.removeEventListener(`keydown`,r)}},[s,h]),!h||typeof document>`u`)return null;let b=e=>{e?.(),s()};return(0,d.createPortal)((0,u.jsxs)(`div`,{className:`fixed inset-0 z-60 ${e?``:`pointer-events-none`}`,children:[(0,u.jsx)(`style`,{children:ll}),(0,u.jsx)(`button`,{type:`button`,"aria-label":`Close account overlay`,"data-phase":_,className:`top-nav-account-drawer-backdrop absolute inset-0 bg-black/40`,onClick:s}),(0,u.jsxs)(`aside`,{role:`dialog`,"aria-modal":`true`,"aria-labelledby":`top-nav-account-title`,"data-phase":_,className:`top-nav-account-drawer-panel fixed inset-y-0 right-0 z-10 flex h-dvh w-full max-w-md flex-col bg-secondary shadow-xl will-change-transform`,onAnimationEnd:e=>{e.target===e.currentTarget&&(_===`opening`?y(`open`):_===`closing`&&g(!1))},children:[(0,u.jsxs)(`header`,{className:`flex items-start justify-between gap-4 border-b border-borderTertiary px-6 py-5`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,u.jsx)(`span`,{className:`flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-tertiaryActive text-primary`,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`user`,alt:``,size:`lg`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(v,{id:`top-nav-account-title`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:n}),t?(0,u.jsx)(v,{className:`mt-1 truncate text-sm text-secondaryActive`,children:t}):null]})]}),(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`xmark`,iconAlt:``,variant:`ghost`,intent:`primary`,"aria-label":`Close account menu`,onClick:s})]}),(0,u.jsx)(`nav`,{"aria-label":`Account sections`,className:`flex-1 px-4 py-4`,children:(0,u.jsxs)(`div`,{className:`flex flex-col`,children:[(0,u.jsx)(P,{label:r,iconType:`fa-solid`,iconName:`receipt`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`primary`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>b(l)}),(0,u.jsx)(P,{label:i,iconType:`fa-regular`,iconName:`heart`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`primary`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>b(f)}),(0,u.jsx)(P,{label:a,iconType:`fa-solid`,iconName:`address-card`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`primary`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>b(p)})]})}),(0,u.jsx)(`footer`,{className:`border-t border-borderTertiary px-4 py-5`,children:(0,u.jsx)(P,{label:o,iconType:`fa-solid`,iconName:`arrow-right-from-bracket`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`danger`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>b(m)})})]})]}),document.body)},dl=`__mobile-menu-open__`,fl=300,pl=({NavMenuWithSubItems:e=[],countries:t,selectedCountry:n,Login:r,Account:i,Cart:a,showCart:o=!0,showFavorites:s=!0,showLogin:l=!0,Logo:d,searchPlaceholder:f=`Search`,searchLabel:p=`Search`,searchResultsAriaLabel:m=`Search results`,clearSearchLabel:h=`Clear search`,closeSearchLabel:g=`Close search`,searchResultItems:_,searchViewAllLabel:v,onLogoClick:y,onNavItemClick:b,onMegaMenuLinkClick:x,onSearchClick:S,onSearchChange:C,onSearchSubmit:w,onSearchResultClick:T,onSearchViewAllClick:E,onCartClick:D,onLoginClick:O,onAccountClick:k,onOrderHistoryClick:A,onProfileClick:j,onLogoutClick:M,onFavoritesClick:N,onCountrySelect:F})=>{let I=(0,c.useRef)(null),[R,ee]=(0,c.useState)(null),[z,te]=(0,c.useState)(null),[ne,re]=(0,c.useState)(!1),[ie,ae]=(0,c.useState)(!1),[oe,B]=(0,c.useState)(``),V=(0,c.useRef)(!1),H=z!==null,se=e.find(e=>e.id===R),U=t??[],ce=r??{label:`Log In`,href:`/login`},le={hasCart:a?.hasCart??!1,itemCount:a?.itemCount??0},ue=i??{loggedIn:ce.loggedIn??!1},de=()=>{re(!0),k?.()},fe=`Formica`,pe=d?.src??fe,W=Ie(pe),me=Re(fe)??``,he=Re(pe,me)??me,ge=d?.alt??`${pe} Logo`,_e=W===`broadview`?`w-36 md:w-44`:`w-24`,G=W===`broadview`?`h-12 md:h-14`:`h-7 md:h-10`,ve=d?.containerClassName??_e,ye=d?.className??G;(0,c.useEffect)(()=>{if(!R)return;let e=e=>{I.current?.contains(e.target)||ee(null)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[R]),(0,c.useEffect)(()=>{if(!V.current)return;let e=window.setTimeout(()=>{C?.({query:oe})},fl);return()=>window.clearTimeout(e)},[oe,C]);let be=()=>{ae(!0),S?.()},xe=()=>{ae(!1)},Se=()=>{let e=oe.trim();e&&w?.({query:e})},Ce=e=>{T?.(e),xe()},K=()=>{E?.({query:oe.trim()}),xe()},q=()=>{te(null)},we=(e,t={})=>{t.closeMobile&&q(),ee(null),b?.(e)},Te=(e,t)=>{if(e.subcategories?.length&&!e.href){ee(R===t?null:t);return}we(e)},Ee=(e,t={})=>{ee(null),t.closeMobile&&q(),x?.(e)},De=e=>{te(t=>t===e?dl:e)};return(0,u.jsxs)(`header`,{ref:I,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)(P,{variant:`ghost`,className:`p-0 bg-transparent shadow-none border-0 ${ve} hover:bg-secondary`,onClick:y,"aria-label":`Go to home page`,children:(0,u.jsx)(L,{src:he,alt:``,className:ye,quality:90})}),(0,u.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,u.jsx)(P,{variant:`ghost`,iconType:`fa-solid`,iconName:`magnifying-glass`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":p,"aria-haspopup":`dialog`,"aria-expanded":ie,onClick:be}),o?(0,u.jsx)(P,{variant:`ghost`,iconType:`fa-solid`,iconName:`cart-shopping`,iconSize:`lg`,className:`relative h-9 w-9 p-0`,"aria-label":`Cart${le.itemCount?` (${le.itemCount})`:``}`,onClick:D,children:le.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:le.itemCount}):null}):null,l&&ue.loggedIn?(0,u.jsx)(P,{variant:`ghost`,iconType:`fa-solid`,iconName:`user`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":`Open account menu`,"aria-haspopup":`dialog`,onClick:de}):null,(0,u.jsx)(P,{variant:`ghost`,iconType:`fa-solid`,iconName:H?`xmark`:`bars`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":H?`Close menu`:`Open menu`,onClick:()=>{te(e=>e===null?dl:null)},"aria-expanded":H})]})]}),H?(0,u.jsxs)(`nav`,{className:`border-t border-gray-200 px-3 py-2 md:hidden`,children:[e.map(e=>{let t=e.id,n=!!e.subcategories?.length,r=z===t;return n?(0,u.jsxs)(`div`,{className:`border-b border-gray-200`,children:[(0,u.jsx)(P,{variant:`link`,label:e.label,className:`w-full min-w-0 px-0 py-3 text-left whitespace-normal break-words`,buttonAlignment:`justify-start`,onClick:()=>De(t),"aria-expanded":r}),r?(0,u.jsx)(`div`,{className:`pb-3 pl-2`,children:e.subcategories?.map(e=>(0,u.jsxs)(`div`,{className:`py-2`,children:[(0,u.jsx)(`div`,{className:`text-sm font-bold text-primary whitespace-normal break-words`,children:e.label}),(0,u.jsx)(`div`,{className:`mt-2 ml-2 flex w-full min-w-0 flex-col items-start gap-2`,children:e.items?.map(e=>(0,u.jsx)(P,{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:()=>Ee(e,{closeMobile:!0})},e.id))})]},e.id))}):null]},t):(0,u.jsx)(P,{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:()=>we(e,{closeMobile:!0})},t)}),l&&!ue.loggedIn?(0,u.jsx)(`div`,{className:`border-t border-gray-200 pt-2`,children:(0,u.jsx)(P,{variant:`link`,label:ce.label,className:`w-full min-w-0 px-0 py-3 text-left`,buttonAlignment:`justify-start`,onClick:()=>{q(),O?.()}})}):null]}):null,(0,u.jsxs)(`div`,{className:`hidden items-center justify-between md:flex md:px-8`,children:[(0,u.jsx)(P,{variant:`ghost`,className:`p-0 bg-transparent shadow-none border-0 ${ve} hover:bg-secondary!`,onClick:y,"aria-label":`Go to home page`,children:(0,u.jsx)(L,{src:he,alt:ge,className:ye,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)(P,{variant:`link`,label:e.label,onClick:()=>Te(e,t),active:R===t},t)})}),(0,u.jsx)(sl,{Countries:U,selectedCountry:n,Login:ce,Account:ue,Cart:le,showCart:o,showFavorites:s,showLogin:l,searchPlaceholder:f,searchLabel:p,searchResultsAriaLabel:m,clearSearchLabel:h,searchResultItems:_,searchViewAllLabel:v,onSearchClick:S,onSearchChange:C,onSearchSubmit:w,onSearchResultClick:T,onSearchViewAllClick:E,onCartClick:D,onLoginClick:O,onAccountClick:de,onFavoritesClick:N,onCountrySelect:F})]})]}),(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`,R?`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)(nl,{activeItem:se,onMegaMenuLinkClick:Ee})})})}),(0,u.jsx)(ul,{...ue,isOpen:ne,onClose:()=>re(!1),onOrderHistoryClick:A,onFavoritesClick:N,onProfileClick:j,onLogoutClick:M??O}),(0,u.jsx)(`div`,{className:`md:hidden`,children:(0,u.jsx)(Hc,{open:ie,title:p,closeLabel:g,size:`sm`,onClose:xe,children:(0,u.jsxs)(`div`,{className:`space-y-4`,children:[(0,u.jsx)(Qo,{id:`top-nav-mobile-search`,ariaLabel:p,value:oe,placeholder:f,clearLabel:h,controlSize:`default`,autoComplete:`off`,autoFocus:!0,onChange:e=>{V.current=!0,B(e.target.value)},onSearchSubmit:Se}),(0,u.jsx)(al,{id:`top-nav-mobile-search-results`,items:_,viewAllLabel:v,ariaLabel:m,layoutVariant:`contained`,onResultClick:Ce,onViewAllClick:K})]})})})]})},ml=({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)(v,{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)(P,{label:t,size:`sm`,variant:`solid`,intent:`accent`,onClick:n,className:`border-2 border-white`})}):null]})}):null},hl=({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)(v,{as:`a`,href:e.href,variant:`breadcrumb`,className:`text-sm md:text-base`,onClick:t=>i(t,e),children:e.label}):(0,u.jsx)(v,{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)(v,{as:`span`,variant:`nav`,className:`text-sm md:text-base`,"aria-current":`page`,children:n.label})},n.id)]})})})})},gl=({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=Zc(e.src),i=Zc(e.alt),a=e.label?Zc(e.label):``,o=e.alt===void 0||e.alt===null?a:i,s=Le(r,Le(a||i))??``;if(!s)return null;let c=(0,u.jsx)(L,{src:s,alt:o,className:n,loading:`lazy`,decoding:`async`,quality:90}),l=Qc(e.href);if(!l)return c;let d=$c(e.href,e.target)??`_self`;return(0,u.jsx)(`a`,{href:l,target:d,rel:el(e.href,e.rel)??(d===`_blank`?`noreferrer noopener`:void 0),className:`inline-flex`,children:c})},_l=({primaryLogo:e,phoneLine:t,socials:n=[]})=>{let r=t?Zc(t):``;return(0,u.jsxs)(`div`,{className:`space-y-6`,children:[(0,u.jsx)(gl,{img:e,size:`primary`}),r?(0,u.jsx)(v,{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=Zc(e.label),n=Qc(e.href),r=e.iconSrc?Zc(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)(jo,{icon:e.faIcon,className:`w-4 h-4 text-black`}):null]},`${t}-${n}`):null})}):null]})},vl=({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=Zc(e.label),i=Qc(e.href),a=$c(e.href,e.target)??`_self`,o=el(e.href,e.rel)??(a===`_blank`?`noreferrer noopener`:void 0);return i?(0,u.jsx)(v,{as:`a`,href:i,target:a,rel:o,variant:`body`,className:n,children:r}):(0,u.jsx)(v,{variant:`body`,className:n,children:r})},yl=({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=Zc(e.heading);return(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{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)(vl,{item:e})},`${n}-${Zc(e.label)}-${t}`))})]},`${n}-${t}`)})})}),bl=({links:e=[],utilityLink:t,disclaimerLines:n=[],copyrightLine:r})=>{let i=r?Zc(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)(vl,{item:e,variant:`legal`},`${Zc(e.label)}-${t}`)),t?(0,u.jsx)(`div`,{className:`ml-auto`,children:(0,u.jsx)(vl,{item:t,variant:`legal`})}):null]}),a?(0,u.jsxs)(`div`,{className:`space-y-2 mt-10`,children:[n.map((e,t)=>(0,u.jsx)(v,{variant:`standard`,className:`text-white/70 text-xs leading-relaxed`,children:Zc(e)},t)),i?(0,u.jsx)(v,{variant:`standard`,className:`text-white/70 text-xs leading-relaxed`,children:i}):null]}):null]})},xl=({affiliateLogos:e=[],parentLogo:t,phoneLine:n})=>{let r=n?Zc(n):``;if(!e.length&&!t&&!r)return null;let i=t?(0,u.jsx)(`div`,{className:`ml-6 shrink-0`,children:(0,u.jsx)(gl,{img:t,size:`parent`})}):null,a=!i&&r?(0,u.jsx)(v,{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)(gl,{img:e,size:`affiliate`},`${e.label?Zc(e.label):``}|${Zc(e.alt)}|${Qc(e.href)}|${Zc(e.src)}|${t}`))}),i,a]})})},Sl=({brand:e,columns:t,parentLogo:n,phoneLinePlacement:r=`brand`,legal:i})=>{let a=r===`logosBar`;return(0,u.jsx)(`footer`,{className:`bg-footBackground text-secondary pt-6`,children:(0,u.jsxs)(`div`,{className:`max-w-screen-xl mx-auto px-4 py-8 md:px-6 md:py-10`,children:[(0,u.jsxs)(`div`,{className:`grid gap-8 md:grid-cols-12 md:gap-10`,children:[(0,u.jsx)(`div`,{className:`md:col-span-4`,children:(0,u.jsx)(_l,{...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)(yl,{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=Zc(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)(vl,{item:e,variant:`mobile`})},`${n}-${Zc(e.label)}-${t}`))})]},`${n}-${t}`)})})]}),(0,u.jsx)(xl,{affiliateLogos:e.affiliateLogos,parentLogo:n,phoneLine:a?e.phoneLine:void 0}),(0,u.jsx)(bl,{...i})]})})},Cl=(...e)=>e.filter(Boolean).join(` `),wl=({imageSrc:e,imageAlt:t=`Banner image`,children:n,sectionClassName:r=`w-full flex justify-center`,bannerClassName:i=`relative h-80 md:h-119.25 w-full max-w-6xl overflow-hidden`,imageClassName:a=`h-full w-full object-cover`,overlayClassName:o=`absolute inset-0 flex`,imageQuality:s=90})=>{let c=e?.trim()?e:`https://picsum.photos/1600/900`;return(0,u.jsx)(`section`,{className:r,children:(0,u.jsxs)(`div`,{className:Cl(`relative`,i),children:[(0,u.jsx)(L,{src:c,alt:t,className:a,quality:s}),(0,u.jsx)(`div`,{className:o,children:n})]})})},Tl=({imageSrc:e,imageAlt:t=`Where to buy`,heading:n,productDropdownProps:r,searchInputProps:i,searchButtonLabel:a=`Search`,onProductChange:o,onSearchSubmit:s})=>{let l=!!r?.options?.length,[d,f]=c.default.useState(r?.value??``),[p,m]=c.default.useState(i.value??``);c.default.useEffect(()=>{f(r?.value??``)},[r?.value]),c.default.useEffect(()=>{m(i.value??``)},[i.value]);let h=e=>{let t=e.target.value;f(t),o?.({productValue:t})};return(0,u.jsx)(wl,{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)(v,{as:`h1`,variant:`free`,className:`mb-8 text-center font-rockwell text-4xl text-white md:text-5xl`,children:n}),(0,u.jsxs)(`form`,{className:`flex w-full max-w-3xl flex-col gap-3 md:flex-row md:items-center`,onSubmit:e=>{e.preventDefault(),s?.({productValue:d,searchValue:p.trim()})},children:[l&&r?(0,u.jsx)(`div`,{className:`w-full md:w-56`,children:(0,u.jsx)(os,{...r,value:d,onChange:h})}):null,(0,u.jsx)(`div`,{className:`w-full md:flex-1`,children:(0,u.jsx)(Qo,{...i,value:p,onChange:e=>m(e.target.value)})}),(0,u.jsx)(P,{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)(wl,{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)(Zs,{heading:n,subheading:r,body:i,eyebrow:a,ctas:o})}),Dl=({imageSrc:e,imageAlt:t=`Featured article banner`,heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})=>(0,u.jsx)(wl,{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)(Qs,{heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})}),Ol=({items:e,value:t,onChange:n,renderTab:r,className:i=``,durationMs:a=700,thicknessClassName:o=`h-[3px]`,baselineClassName:s=`h-px`})=>{let l=(0,c.useRef)(null),d=(0,c.useRef)([]),[f,p]=(0,c.useState)({left:0,width:0}),m=(0,c.useMemo)(()=>Math.max(0,e.findIndex(e=>(e.value??e.label)===t)),[e,t]),h=()=>{let e=l.current,t=d.current[m];if(!e||!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();p({left:r.left-n.left,width:r.width})};return(0,c.useLayoutEffect)(()=>{h();let e=new ResizeObserver(()=>h());l.current&&e.observe(l.current),window.addEventListener(`resize`,h);let t=requestAnimationFrame(h);return()=>{e.disconnect(),window.removeEventListener(`resize`,h),cancelAnimationFrame(t)}},[m,e.length]),(0,u.jsx)(`div`,{className:[`w-full`,i].join(` `),children:(0,u.jsxs)(`div`,{ref:l,className:`relative grid items-center`,style:{gridTemplateColumns:`repeat(${e.length}, minmax(0, 1fr))`},children:[e.map((e,t)=>{let i=t===m;return(0,u.jsx)(`div`,{ref:e=>{d.current[t]=e},className:`flex justify-center mb-1 md:mb-3 w-full`,children:r?r({item:e,isActive:i,onTabClick:()=>!e.disabled&&n(e.value??e.label)}):(0,u.jsx)(`button`,{type:`button`,disabled:e.disabled,onClick:()=>n(e.value??e.label),className:[`px-3 py-2 text-sm`,`transition-opacity`,i?`opacity-100 font-medium`:`opacity-60 hover:opacity-90`,e.disabled?`cursor-not-allowed opacity-30`:`cursor-pointer`].join(` `),children:e.label})},e.label)}),(0,u.jsx)(`div`,{className:[`absolute left-0 right-0 bottom-0`,s,`bg-black/60`].join(` `)}),(0,u.jsx)(`div`,{className:[`absolute bottom-0`,o,`bg-black`,`will-change-transform`].join(` `),style:{width:`${f.width}px`,transform:`translateX(${f.left}px)`,transitionProperty:`transform, width`,transitionDuration:`${a}ms`,transitionTimingFunction:`cubic-bezier(0.22, 1, 0.36, 1)`}})]})})},kl=e=>e.id||e.href||e.label,Al=({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=kl})=>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)(jo,{icon:Fo,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)(jo,{icon:No,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)(Lo,{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,jl=4,Ml=e=>{e.forEach(e=>{if(!e)return;let t=new window.Image;t.decoding=`async`,t.src=e})},Nl=({heading:e,body:t,TabsWithColumns:n=[],favoriteIds:r=[],showFavorites:i=!0,onFavoriteToggle:a,onItemClick:o})=>{let[s,l]=(0,c.useState)(n?.[0]?.label??null);c.default.useEffect(()=>{if(!n?.length){l(null);return}n.some(e=>e.label===s)||l(n[0].label)},[n,s]);let d=(0,c.useMemo)(()=>n.map(e=>({label:e.label,disabled:!1})),[n]),f=(0,c.useMemo)(()=>n.find(e=>e.label===s),[n,s])?.columns?.[0]?.items??[],[p,m]=(0,c.useState)(0),[h,g]=(0,c.useState)(null);c.default.useEffect(()=>{m(0),g(null)},[s]);let _=p>0,y=p+jl<f.length,b=()=>m(e=>Math.max(0,e-1)),x=()=>m(e=>Math.min(Math.max(f.length-jl,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(()=>{Ml(f.slice(p,p+jl*2).map(e=>e.source).filter(Boolean))},[f,p]);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)(v,{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)(v,{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)(Ol,{items:d,value:s??d[0]?.label??``,onChange:e=>l(e),className:`mb-2`,durationMs:700}),(0,u.jsx)(Al,{items:f,startIndex:p,desktopVisibleCount:jl,activeIndex:h,setActiveIndex:g,canPrev:_,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})]})]})})})},Pl=e=>e===1?`md:grid-cols-1`:e===2?`md:grid-cols-2`:`md:grid-cols-3`,Fl=(e,t)=>e===`vertical`&&t===2?`grid-cols-2`:e===`vertical`&&t===3?`grid-cols-3`:`grid-cols-1`,Il=e=>e===`underBanner`?`mt-10 md:mt-16`:``,Ll=({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=Pl(n.length),d=Fl(n[0]?.cardStyle,n.length);return(0,u.jsx)(`section`,{className:`flex justify-center ${Il(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)(v,{as:`h2`,variant:`free`,className:`text-2xl md:text-4xl`,children:e}):null,t?(0,u.jsx)(v,{variant:`body`,className:`text-sm`,children:t}):null]}),(0,u.jsx)(`div`,{className:`grid ${d} gap-x-4 gap-y-6 ${l} md:gap-x-6 md:gap-y-12`,children:n.map((e,t)=>{let n=`${e.title??`card`}-${t}`;return(0,u.jsx)(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)(v,{variant:`body`,className:`mb-4 text-sm`,children:i}):null,a?(0,u.jsx)(P,{variant:`outline`,intent:`muted`,label:a,onClick:c,className:`w-full md:w-80`}):null]})]})})},Rl=({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)(v,{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)(v,{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)(sc,{...e},`${e.title}-${t}`))})]})}),zl=({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)(v,{as:`h2`,variant:`free`,className:`text-xl font-extrabold text-primary`,children:e}),(0,u.jsx)(v,{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)(fc,{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)(v,{variant:`free`,className:`mt-6 text-sm text-tertiary`,children:r}):null]})},$=({id:e,label:t,errorMessage:n,hasError:r=!1,linkText:i,linkHref:a,onLinkClick:o,ariaDescribedBy:s,...l})=>{let d=(0,c.useId)(),f=r&&!!n,p=`${e||d}-field-error`,m=[s,f?p:void 0].filter(Boolean).join(` `)||void 0;return(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.jsx)(v,{as:`label`,htmlFor:e,id:f?p:void 0,className:`text-sm ${r?`text-accent!`:`text-primary`}`,children:f?n:t}):(0,u.jsx)(`span`,{}),i?(0,u.jsx)(v,{as:`a`,href:a||`#`,onClick:o,className:`text-xs text-secondaryActive underline underline-offset-2`,children:i}):null]}):null,(0,u.jsx)(Zo,{id:e,hasError:r,...l,ariaDescribedBy:m}),!t&&f?(0,u.jsx)(v,{id:p,role:`alert`,variant:`free`,className:`text-sm text-accent`,children:n}):null]})},Bl=({title:e=`Personal & Project Information`,idPrefix:t=`salesforce-customer`,firstName:n=``,lastName:r=``,profession:i=``,companyName:a=``,projectType:o=``,projectSquareMetres:s=``,projectName:c=``,projectDetails:l=``,phoneNumber:d=``,email:f=``,confirmEmail:p=``,firstNamePlaceholder:m=`First Name*`,lastNamePlaceholder:h=`Last Name*`,professionPlaceholder:g=`Profession*`,companyNamePlaceholder:_=`Company Name*`,projectTypePlaceholder:y=`Project Type`,projectSquareMetresPlaceholder:b=`Project Square Metres`,projectNamePlaceholder:x=`Project Name`,projectDetailsPlaceholder:S=`Project Details`,phoneNumberPlaceholder:C=`Phone Number*`,emailPlaceholder:w=`Email*`,confirmEmailPlaceholder:T=`Confirm Email*`,professionOptions:E=[],projectTypeOptions:D=[],projectSquareMetresOptions:O=[],errors:k={},onFirstNameChange:A,onLastNameChange:j,onProfessionChange:M,onCompanyNameChange:N,onProjectTypeChange:P,onProjectSquareMetresChange:F,onProjectNameChange:I,onProjectDetailsChange:L,onPhoneNumberChange:R,onEmailChange:ee,onConfirmEmailChange:z})=>(0,u.jsxs)(`section`,{className:`flex flex-col gap-6`,children:[(0,u.jsx)(v,{as:`h2`,variant:`bold`,className:`text-primary`,children:e}),(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2`,children:[(0,u.jsx)($,{id:`${t}-first-name`,name:`firstName`,placeholder:m,value:n,hasError:!!k.firstName,errorMessage:k.firstName,onChange:A}),(0,u.jsx)($,{id:`${t}-last-name`,name:`lastName`,placeholder:h,value:r,hasError:!!k.lastName,errorMessage:k.lastName,onChange:j}),(0,u.jsx)(os,{id:`${t}-profession`,name:`profession`,placeholder:g,options:E,value:i,hasError:!!k.profession,variant:`field`,onChange:M}),(0,u.jsx)($,{id:`${t}-company-name`,name:`companyName`,placeholder:_,value:a,hasError:!!k.companyName,errorMessage:k.companyName,onChange:N}),(0,u.jsx)(os,{id:`${t}-project-type`,name:`projectType`,placeholder:y,options:D,value:o,hasError:!!k.projectType,variant:`field`,onChange:P}),(0,u.jsx)(os,{id:`${t}-project-square-metres`,name:`projectSquareMetres`,placeholder:b,options:O,value:s,hasError:!!k.projectSquareMetres,variant:`field`,onChange:F}),(0,u.jsx)(`div`,{className:`md:col-span-2`,children:(0,u.jsx)($,{id:`${t}-project-name`,name:`projectName`,placeholder:x,value:c,hasError:!!k.projectName,errorMessage:k.projectName,onChange:I})}),(0,u.jsx)(`div`,{className:`md:col-span-2`,children:(0,u.jsx)(ie,{id:`${t}-project-details`,name:`projectDetails`,placeholder:S,value:l,rows:5,hasError:!!k.projectDetails,onChange:L})}),(0,u.jsx)($,{id:`${t}-phone-number`,name:`phoneNumber`,type:`tel`,placeholder:C,value:d,hasError:!!k.phoneNumber,errorMessage:k.phoneNumber,onChange:R}),(0,u.jsx)($,{id:`${t}-email`,name:`email`,type:`email`,placeholder:w,value:f,hasError:!!k.email,errorMessage:k.email,onChange:ee}),(0,u.jsx)(`div`,{className:`md:col-span-2`,children:(0,u.jsx)($,{id:`${t}-confirm-email`,name:`confirmEmail`,type:`email`,placeholder:T,value:p,hasError:!!k.confirmEmail,errorMessage:k.confirmEmail,onChange:z})})]})]}),Vl=(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(` `),Ul=({initialQuantity:e=1,errorMessage:t,minQuantity:n=1,maxQuantity:r=99,onAddToWishlist:i,onAddToCart:a,onQuantityChange:o,wishlistLabel:s=`Add To Wishlist`,cartLabel:l=`Add to Cart`,decreaseQuantityLabel:d=`Decrease quantity`,increaseQuantityLabel:f=`Increase quantity`,showFavorites:p=!0,className:m=``})=>{let[h,g]=c.default.useState(()=>Vl(e,n,r));c.default.useEffect(()=>{g(Vl(e,n,r))},[e,n,r]);let _=e=>{let t=Vl(e,n,r);g(t),o?.(t)},y=()=>_(h-1),b=()=>_(h+1),x=h>n,S=h<r,C=()=>a(h),w=(0,u.jsxs)(`div`,{className:`flex shrink-0 items-stretch gap-3`,children:[(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":d,type:`button`,disabled:!x,onClick:y,className:Hl(x)}),(0,u.jsx)(`div`,{className:`flex min-w-10 items-center justify-center`,children:(0,u.jsx)(v,{as:`span`,variant:`free`,children:h})}),(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":f,type:`button`,disabled:!S,onClick:b,className:Hl(S)})]}),T=(0,u.jsx)(P,{type:`button`,intent:`accent`,onClick:C,className:`h-12 w-full justify-center`,children:(0,u.jsx)(v,{as:`span`,variant:`free`,children:l})});return(0,u.jsxs)(`div`,{className:[`w-full`,m].join(` `),children:[t?(0,u.jsx)(v,{variant:`free`,role:`alert`,className:`mb-2 text-sm text-accent`,children:t}):null,p?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`flex items-stretch gap-4`,children:[w,(0,u.jsx)(`div`,{className:`flex-1`,children:(0,u.jsx)(P,{iconName:`fa-heart`,iconType:`fa-solid`,label:s,type:`button`,intent:`ghost`,variant:`solid`,onClick:i,className:`h-12 w-full justify-center border-primary! text-primary! hover:text-accent!`})})]}),(0,u.jsx)(`div`,{className:`mt-4`,children:T})]}):(0,u.jsxs)(`div`,{"aria-label":`Cart actions`,className:`flex items-stretch gap-4`,children:[w,(0,u.jsx)(`div`,{className:`min-w-0 flex-1`,children:T})]})]})},Wl=({heading:e,items:t,value:n,onChange:r})=>{if(!t?.length)return null;let i=e=>{e.disabled||r(e.value,e)},a=(e,t)=>e===t?`text-primary! border-primary! border-2`:`border-secondaryHover! text-secondaryHover!`;return(0,u.jsxs)(`section`,{className:`w-full`,children:[!!e&&(0,u.jsx)(`div`,{className:`mb-3`,children:(0,u.jsx)(v,{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)(P,{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)(v,{as:`span`,variant:`free`,children:e.label})},e.id))})]})},Gl=e=>{let{title:t,decor:n,description:r,colourMatching:i,colourMatchingLabel:a,patternRepeat:o,onDownloadSwatch:s,onDownloadFullSheet:c,downloadSwatchLabel:l=`Download Swatch`,downloadFullSheetLabel:d=`Download Full Sheet`,tabs:f=[`Sample`,`Buy Now`],tabLabels:p,labels:m,activeTab:h,onTabChange:g,productOptions:_=[],gradeOptions:y=[],textureOptions:b=[],sizeOptions:x=[],selectedProduct:S,selectedGrade:C,selectedTexture:w,selectedSize:T,onQuantityChange:E,availabilityHref:D,availabilityLabel:O=`View full product availability and information`,notReturnableText:k=`This item is not returnable.`,returnPolicyHref:A,returnPolicyLabel:j=`View return policy`,onPurchaseInfoLinkClick:M,priceLabel:N,initialQuantity:F=1,errorMessage:I,minQuantity:L=1,maxQuantity:R=99,showCartActions:ee=!0,showFavorites:z=!0,actionMode:te=`cart`,contactActions:ne,onAddToWishlist:re,onAddToCart:ie,onContactActionClick:ae,mobileMediaSlot:oe}=e,B=f.map(e=>({label:p?.[e]??e,value:e})),V=te===`cart`&&ee&&B.length>0,H=te===`contact`&&!!ne,se=V&&B.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?.()},ce=(e,t)=>n=>{e&&M&&(n.preventDefault(),M(e,t))};return(0,u.jsxs)(`div`,{className:[`w-full`,H?`md:relative md:aspect-square md:overflow-hidden`:``].join(` `),children:[(0,u.jsxs)(`div`,{className:[H?`md:max-h-[calc(100%-8rem)] md:overflow-y-auto md:pr-2`:``].join(` `),children:[n?(0,u.jsx)(v,{as:`p`,variant:`caption`,className:`mb-0 md:mb-1 text-lg!`,children:n}):null,t?(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`mb-2 text-2xl md:text-4xl`,children:t}):null,r?(0,u.jsx)(v,{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)(uc,{colourMatching:i,label:a})}):null,o?(0,u.jsxs)(v,{as:`p`,variant:`body`,className:`mb-4`,children:[m?.patternRepeat??`Pattern Repeat`,`: `,o]}):null,(0,u.jsxs)(`div`,{className:`flex gap-6 justify-start mb-4 md:mb-6`,children:[(0,u.jsx)(P,{label:l,iconName:`fa-download`,iconType:`fa-solid`,intent:`primary`,variant:`link`,onClick:s,className:`px-0! border-0! hover:text-accent! mr-4 md:mr-10`}),(0,u.jsx)(P,{label:d,iconName:`fa-download`,iconType:`fa-solid`,intent:`primary`,variant:`link`,onClick:c,className:`px-0! border-0! hover:text-accent!`})]}),oe?(0,u.jsx)(`div`,{className:`md:hidden mb-10`,children:oe}):null,se?(0,u.jsx)(`div`,{className:`mb-5`,children:(0,u.jsx)(Ol,{items:B,value:h,onChange:g,renderTab:({item:e,isActive:t,onTabClick:n})=>(0,u.jsx)(`button`,{type:`button`,onClick:n,className:[`w-full py-2 text-md`,t?`opacity-100 font-medium`:`opacity-60 hover:opacity-90`].join(` `),children:e.label})})}):null,(0,u.jsxs)(`div`,{className:`md:mb-10`,children:[(0,u.jsxs)(`div`,{className:[`space-y-5`,V?`md:min-h-[32rem]`:``].join(` `),children:[V&&_.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(v,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.product??`Product`,`:`]}),(0,u.jsx)(Wl,{items:_,value:S??void 0,onChange:U(_)})]}):null,V&&y.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(v,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.grade??`Grade`,`:`]}),(0,u.jsx)(Wl,{items:y,value:C??void 0,onChange:U(y)})]}):null,V&&b.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(v,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.texture??`Texture`,`:`]}),(0,u.jsx)(Wl,{items:b,value:w??void 0,onChange:U(b)})]}):null,V&&x.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(v,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.size??`Size`,`:`]}),(0,u.jsx)(Wl,{items:x,value:T??void 0,onChange:U(x)})]}):null,V&&h===`Buy Now`?(0,u.jsxs)(`div`,{children:[D?(0,u.jsx)(v,{as:`a`,href:D,variant:`body`,className:`text-sm underline hover:text-accent`,onClick:ce(D,{kind:`availability`}),children:O}):null,(0,u.jsxs)(`div`,{className:`hidden md:block text-sm md:mt-4`,children:[(0,u.jsxs)(`span`,{className:`opacity-80`,children:[k,` `]}),A?(0,u.jsx)(v,{as:`a`,href:A,variant:`body`,className:`underline hover:text-accent`,onClick:ce(A,{kind:`returnPolicy`}),children:j}):null]})]}):null,V&&h===`Buy Now`&&N?(0,u.jsx)(v,{as:`p`,variant:`h3`,className:`mt-1`,children:N}):null]}),V?(0,u.jsx)(`div`,{children:(0,u.jsx)(Ul,{errorMessage:I,initialQuantity:F,minQuantity:L,maxQuantity:R,showFavorites:z,wishlistLabel:m?.addToWishlist,decreaseQuantityLabel:m?.decreaseQuantity,increaseQuantityLabel:m?.increaseQuantity,onAddToWishlist:re,onAddToCart:ie??(()=>{}),onQuantityChange:E,cartLabel:h===`Sample`?m?.addSampleToCart??`Add Sample to Cart`:m?.addToCart})}):null,V&&h===`Buy Now`?(0,u.jsxs)(`div`,{className:`md:hidden text-sm pb-10`,children:[(0,u.jsxs)(`span`,{className:`opacity-80`,children:[k,` `]}),A?(0,u.jsx)(v,{as:`a`,href:A,variant:`body`,className:`underline hover:text-accent`,onClick:ce(A,{kind:`returnPolicy`}),children:j}):null]}):null]})]}),H&&ne?(0,u.jsx)(`div`,{className:`md:absolute md:inset-x-0 md:bottom-0`,children:(0,u.jsx)(_e,{actions:ne,onActionClick:ae})}):null]})},Kl=(e,t)=>Math.max(0,Math.min(e,t-1)),ql=({items:e,initialIndex:t=0,loop:n=!0,showArrows:r=!0,arrowPosition:i=`sides`,onSelect:a,renderItem:o,className:s=``,trackClassName:l=``,ariaLabel:d=`Carousel`,header:f})=>{let p=e?.length??0,[m,h]=c.default.useState(()=>Kl(t,p||1)),[g,_]=c.default.useState(()=>Kl(t,p||1));if(c.default.useEffect(()=>{p>0&&(h(e=>Kl(e,p)),_(e=>Kl(e,p)))},[p]),p===0)return null;let v=t=>{let n=Kl(t,p);h(n),a?.(n,e[n])},y=e=>{_(n?(e+p)%p:Kl(e,p))},b=()=>y(g-1),x=()=>y(g+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)(P,{variant:`ghost`,"aria-label":`Previous`,onClick:b,intent:`primary`,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`chevron-left`,alt:``,size:`md`})}),(0,u.jsx)(P,{variant:`ghost`,"aria-label":`Next`,onClick:x,intent:`primary`,children:(0,u.jsx)(S,{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)(P,{variant:`ghost`,"aria-label":`Previous`,onClick:b,intent:`primary`,children:(0,u.jsx)(S,{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)(P,{variant:`ghost`,"aria-label":`Next`,onClick:x,intent:`primary`,children:(0,u.jsx)(S,{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(-${g} * (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:()=>v(t)})},t))})]})]})},Jl=(e,t)=>Math.max(0,Math.min(e,t-1)),Yl=e=>typeof e==`string`?e.replace(/^http:\/\//i,`https://`):``,Xl=({slides:e,initialIndex:t=0,text:n,fallbackImage:r})=>{let i=e??[],a=r?{id:`fallback-image`,image:r}:null,o=i;!o.length&&a&&(o=[a]);let s=o.length,[l,d]=c.default.useState(()=>Jl(t,s||1)),[f,p]=c.default.useState(()=>new Set);if(c.default.useEffect(()=>{s>0&&d(e=>Jl(e,s))},[s]),s===0)return null;let m=o[l];if(!m?.image?.src&&!r?.src)return null;let h=(e,t)=>(!e||f.has(e)||f.has(Yl(e)))&&r?.src?r:{src:e??``,alt:t??``},g=h(m?.image?.src,m?.image?.alt),_=Yl(g.src),y=g.alt??``,b=e=>{!e||r?.src===e||p(t=>{let n=new Set(t);return n.add(e),n.add(Yl(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)(L,{src:_,alt:y,className:`w-full h-full object-cover`,loading:`lazy`,decoding:`async`,quality:90,onError:()=>b(g.src)})}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(ql,{items:o,initialIndex:l,loop:!0,showArrows:!0,ariaLabel:`Thumbnail carousel`,onSelect:e=>d(e),renderItem:({item:e,isActive:t,select:n,index:r})=>{let i=h(e.thumbnail?.src??e.image?.src,e.thumbnail?.alt??e.image?.alt),a=Yl(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)(L,{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)(v,{as:`p`,variant:`body`,className:`text-xs md:text-sm`,children:n})})]})},Zl=({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)(Xl,{slides:r,initialIndex:i,text:a,fallbackImage:n})})},Ql=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},$l=(e,t)=>!!(t&&e.some(e=>(e.value??e.id)===t)),eu=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),[])},tu=(e,t)=>!e||!t?null:`${e}x${t}`,nu=(e,t,n)=>Math.max(t,Math.min(n,e)),ru=(e,t=`USD`)=>new Intl.NumberFormat(`en-US`,{style:`currency`,currency:t}).format(e),iu=e=>!!e?.length,au=(e,t)=>iu(e)&&iu(t),ou=(e=[])=>e.some(e=>!!e.sku&&!!e.rangeId&&!!e.grade&&!!e.texture&&!!e.widthIn&&!!e.lengthIn),su=e=>{let{sku:t,decor:n,title:r,description:i,colourMatching:a,colourMatchingLabel:o,patternRepeat:s,onDownloadSwatch:l,onDownloadFullSheet:d,downloadSwatchLabel:f,downloadFullSheetLabel:p,carousel:m,tabs:h=[`Sample`,`Buy Now`],tabLabels:g,labels:_,initialTab:v=`Sample`,tabOptions:y,productOptions:b=[],sizeOptions:x=[],variants:S=[],currency:C,initialQuantity:w=1,errorMessage:T,minQuantity:E=1,maxQuantity:D=99,showFavorites:O=!0,actionMode:k=`cart`,contactActions:A,onAddToWishlist:j,onAddToCart:M,onSelectionChange:N,onContactActionClick:P,availabilityHref:F,availabilityLabel:I=`View full product availability and information`,returnPolicyHref:L,returnPolicyLabel:R=`View return policy`,notReturnableText:ee=`This item is not returnable.`,onPurchaseInfoLinkClick:z}=e,te=Array.isArray(h)&&h.length?h:[`Sample`,`Buy Now`],ne=y?.Sample,re=y?.[`Buy Now`],ie=ne?.productOptions??b??[],ae=ne?.sizeOptions??x??[],oe=re?.productOptions??b??[],B=au(ie,ae),V=iu(oe)&&ou(S),H=te.filter(e=>e===`Sample`?B:e===`Buy Now`?V:!0),se=H[0]??`Sample`,[U,ce]=c.default.useState(H.includes(v)?v:se);c.default.useEffect(()=>{if(!H.length){ce(`Sample`);return}H.includes(U)||ce(se)},[U,H,se]);let le=y?.[U],ue=!!le,de=le?.minQuantity??E,fe=le?.maxQuantity??D,pe=le?.productOptions??(ue?[]:b)??[],W=U===`Buy Now`,[me,he]=c.default.useState(()=>({product:Ql(pe),grade:null,texture:null,size:null})),ge=c.default.useRef(!1),_e=$l(pe,me.product)?me.product:Ql(pe),G=W&&_e?S.filter(e=>e.rangeId===_e):[],ve=eu(G.map(e=>({value:e.grade,label:e.grade}))),ye=W?ve:le?.gradeOptions??[],be=$l(ye,me.grade)?me.grade:Ql(ye),xe=be?G.filter(e=>e.grade===be):G,Se=eu(xe.map(e=>({value:e.texture,label:e.finish||e.texture}))),Ce=W?Se:le?.textureOptions??[],K=$l(Ce,me.texture)?me.texture:Ql(Ce),q=K?xe.filter(e=>e.texture===K):xe,we=new Map((le?.sizeOptions??x??[]).map(e=>[e.value??e.id,e.label])),Te=eu(q.map(e=>{let t=tu(e.widthIn,e.lengthIn)??void 0;return{value:t,label:t?we.get(t)??t:void 0}})),Ee=W?Te:le?.sizeOptions??(ue?[]:x)??[],De=$l(Ee,me.size)?me.size:Ql(Ee);c.default.useEffect(()=>{if(!ge.current){ge.current=!0;return}he({product:Ql(pe),grade:Ql(ye),texture:Ql(Ce),size:Ql(Ee)})},[U]),c.default.useEffect(()=>{he(e=>{let t=e.product&&pe.some(t=>(t.value??t.id)===e.product)?e.product:Ql(pe),n=e.grade&&ye.some(t=>(t.value??t.id)===e.grade)?e.grade:Ql(ye),r=e.texture&&Ce.some(t=>(t.value??t.id)===e.texture)?e.texture:Ql(Ce),i=e.size&&Ee.some(t=>(t.value??t.id)===e.size)?e.size:Ql(Ee);return e.product===t&&e.grade===n&&e.texture===r&&e.size===i?e:{product:t,grade:n,texture:r,size:i}})},[pe,ye,Ce,Ee]);let Oe=c.default.useMemo(()=>{if(U!==`Buy Now`)return null;let e={product:_e,grade:be,texture:K,size:De},t=S.filter(t=>{let n=tu(t.widthIn,t.lengthIn);return(t.rangeId??null)===e.product&&(t.grade??null)===e.grade&&(t.texture??null)===e.texture&&n===e.size});return t.length?t.find(e=>e.isWebEnabled)??t[0]??null:null},[U,S,_e,be,K,De]),ke=U!==`Buy Now`||!!Oe,Ae=U===`Buy Now`&&Oe?Oe.price?.label??ru(Oe.price?.value??0,C):``,je=U===`Buy Now`&&Oe?Oe.price?.value??0:0,Me=U===`Buy Now`?Oe?.sku??t:t,[J,Ne]=c.default.useState(()=>nu(w,de,fe)),Pe=c.default.useRef(U),Fe=c.default.useRef(N);c.default.useEffect(()=>{Fe.current=N},[N]),c.default.useEffect(()=>{Fe.current?.({type:U,sku:Me,decor:n,product:_e,grade:be,texture:K,size:De,quantity:nu(J,de,fe)})},[U,Me,n,_e,be,K,De,J,de,fe]),c.default.useEffect(()=>{Ne(nu(w,de,fe))},[w,de,fe]),c.default.useEffect(()=>{Pe.current!==U&&(Pe.current=U,Ne(de))},[U,de]);let Ie=(e,t)=>(t??[]).map(t=>{let n=t.value??t.id;return{id:t.id,label:t.label,disabled:t.disabled,value:n,active:me[e]===n,onOptionClick:()=>{t.disabled||(he(t=>({...t,[e]:n})),t.onOptionClick?.(t.id))}}}),Le={sku:Me,title:r,decor:n,description:i,colourMatching:a,colourMatchingLabel:o,patternRepeat:s,onDownloadSwatch:l,onDownloadFullSheet:d,downloadSwatchLabel:f,downloadFullSheetLabel:p,tabs:H,tabLabels:g,labels:_,activeTab:U,onTabChange:ce,productOptions:Ie(`product`,pe),gradeOptions:Ie(`grade`,ye),textureOptions:Ie(`texture`,Ce),sizeOptions:Ie(`size`,Ee),availabilityHref:F,availabilityLabel:I,returnPolicyHref:L,returnPolicyLabel:R,notReturnableText:ee,priceLabel:Ae,errorMessage:T,initialQuantity:J,minQuantity:de,maxQuantity:fe,showCartActions:H.includes(U)&&ke,showFavorites:O,actionMode:k,contactActions:A,selectedProduct:_e,selectedGrade:be,selectedTexture:K,selectedSize:De,onAddToWishlist:()=>{j?.({sku:Me,decor:n})},onAddToCart:e=>{if(U===`Buy Now`&&!Oe)return;let t={type:U,sku:Me,decor:n,product:_e,grade:be,texture:K,size:De,quantity:e,priceValue:U===`Buy Now`?je:0,priceLabel:U===`Buy Now`?Ae:`$0.00`,currency:C,bigCommerceProductId:Oe?.bigCommerceProductId};M?.(t)},onContactActionClick:e=>{P?.({...e,sku:Me,decor:n,title:r,activeTab:U,product:_e,grade:be,texture:K,size:De})},onQuantityChange:e=>Ne(e),onPurchaseInfoLinkClick:z,mobileMediaSlot:(0,u.jsx)(Zl,{carousel:m})};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)(Zl,{carousel:m})}),(0,u.jsx)(Gl,{...Le})]})})})},cu=({imageSrc:e,imageAlt:t=`Standard Copy Hero`,heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})=>(0,u.jsx)(wl,{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)($s,{heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})})}),lu=({categoryText:e,imageSrc:t,imageAlt:n=`Article Header`,tags:r=[],onTagClick:i})=>(0,u.jsx)(wl,{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)(Xs,{categoryText:e,tags:r,onTagClick:i})}),uu=({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)(qs,{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)(v,{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`})]})})},du=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)(L,{src:t,alt:n,className:`w-full h-full object-cover`,quality:90})})},fu={left:`text-left`,center:`text-center`,right:`text-right`},pu={small:`text-xl md:text-4xl`,medium:`text-2xl md:text-4xl`,large:`text-3xl md:text-5xl`},mu=e=>{let{heading:t,align:n=`left`,headingAlign:r=n,subheading:i,body:a,datetimeStamp:o,headingLevel:s=`h1`,headingSize:c=`large`,addTopMargin:l=!1}=e,d=fu[n],f=fu[r],p=l?`mt-10 md:mt-20`:``,m=o?`mb-1`:`mb-4 md:mb-6`,h=`${f} ${pu[c]} text-primary ${m}`;return(0,u.jsxs)(`section`,{className:`w-full ${p}`.trim(),children:[t?(0,u.jsx)(v,{as:s,variant:`free`,className:h,children:t}):null,o?(0,u.jsx)(v,{variant:`caption`,className:`${d} md:text-base font-bold mb-6`,children:o}):null,i?(0,u.jsx)(v,{as:`h2`,variant:`bold`,className:`${d} text-primary mb-4`,children:i}):null,a?(0,u.jsx)(Uc,{html:a,className:d}):null]})},hu=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)(mu,{...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)(mu,{...a,body:t})})]})},gu=({title:e=`Featured Products`,body:t,headerAlign:n=`center`,headerVariant:r=`default`,items:i,onItemClick:a})=>{if(!i?.length)return null;let o=n===`left`?`text-left md:mx-0`:`text-center`,s=r===`compact`?`text-tertiary text-base font-bold`:`text-primary text-2xl md:text-4xl`,c=r===`compact`?`text-tertiary text-base font-bold`:`text-primary text-xl font-bold md:font-normal md:text-2xl`,l=r===`compact`?`max-w-6xl w-full mb-8 md:mb-10 mx-auto px-4 md:px-0`:`max-w-6xl w-full mb-16 md:mb-20 mx-auto px-4 md:px-0`,d=i.length<4,f=d?`justify-evenly`:``;return(0,u.jsxs)(`section`,{className:l,children:[t?(0,u.jsxs)(`div`,{className:`mx-auto mb-4 max-w-4xl md:mb-6 ${o}`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:s,children:e}),(0,u.jsx)(v,{variant:`body`,className:`mt-4 text-primary`,children:t})]}):null,(0,u.jsx)(ql,{items:i,ariaLabel:e,arrowPosition:`top-right`,showArrows:!d,trackClassName:f,header:t?null:(0,u.jsx)(v,{variant:`free`,className:c,children:e}),renderItem:({item:e})=>(0,u.jsx)(zo,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,title:e.title,brand:e.brand,decorNumber:e.decorNumber,onProductClick:a?()=>a(e):void 0},e.id)})]})},_u=({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)(v,{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)(bc,{...e})},`${e.title}-${t}`))})]})}):null,vu=({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)(v,{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)(v,{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)(ac,{question:e.question,answer:e.answer,initiallyOpen:e.initiallyOpen},e.id))})]})}),yu=(e,t)=>e.id??[e.label,e.imageSrc,t].join(`-`),bu=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},xu=({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)(U,{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)(tc,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,onCardClick:t?()=>t({item:e,index:n}):void 0},yu(e,n)))})}):(0,u.jsx)(`section`,{className:`px-4 py-20 md:px-4`,children:bu(r).map((e,n,r)=>{let i=e.columns===3;return(0,u.jsx)(U,{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)(tc,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,aspectRatio:i?`compact`:`video`,onCardClick:t?()=>t({item:e,index:n}):void 0},yu(e,n)))},`image-overlay-grid-row-${n}`)})})},Su={2:`md:grid-cols-2`,3:`md:grid-cols-3`,4:`md:grid-cols-4`},Cu=({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)(U,{columns:1,gap:`lg`,gridClassName:Su[n],children:e.map(e=>(0,u.jsx)(`div`,{"aria-current":e.id===t?`true`:void 0,className:`h-full`,children:(0,u.jsx)(Uo,{location:e,stockedProductsLabel:r,preferredLabel:i,websiteLabel:a,directionsLabel:o,emailLabel:s,onWebsiteClick:c,onDirectionsClick:l,onPhoneClick:d,onEmailClick:f})},e.id))}):null,wu=({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)(v,{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)(Cc,{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)(Cc,{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)(P,{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)(v,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:i}):null]}):null]}),Tu={left:`text-left`,center:`text-center`,right:`text-right`},Eu={left:`justify-start text-left`,center:`justify-center text-center`,right:`justify-end text-right`},Du={xs:`w-24`,sm:`w-32`,md:`w-48`,lg:`w-64`,xl:`w-80`},Ou=e=>e==null||e===``?`-`:String(e),ku=e=>e==null?``:String(e),Au=e=>e==null||String(e).trim()===``,ju=e=>e.reduce((e,t)=>(e[t.id]={...t,values:{...t.values}},e),{}),Mu=({title:e,description:t,columns:n,rows:r,rowCountLabel:i,updateLabel:a=`Update`,updateDisabled:o=!1,emptyMessage:s=`No report data available.`,ariaLabel:l,onRowUpdate:d})=>{let f=(0,c.useRef)(null),[p,m]=(0,c.useState)(ju(r)),[h,g]=(0,c.useState)(null),_=t?.trim()??``,y=i?.trim()??(r.length===1?`1 row`:`${r.length.toLocaleString()} rows`),b=r.length>0;(0,c.useEffect)(()=>{m(ju(r)),g(null)},[r]),(0,c.useEffect)(()=>{if(!h)return;let e=e=>{let t=e.target;t instanceof Element&&(t.closest(`[data-data-report-cell-editor='true']`)||g(null))};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[h]);let x=(e,t,n)=>{m(r=>{let i=r[e];return i?{...r,[e]:{...i,values:{...i.values,[t]:n}}}:r})},S=e=>{let t=p[e.id]??e;d?.({row:t,originalRow:e})},C=(e,t)=>!!(t.required||t.requiredWhen&&e.values[t.requiredWhen.columnId]===t.requiredWhen.value),w=e=>{let t=p[e.id]??e;return n.some(e=>C(t,e)&&Au(t.values[e.id]))},T=(e,t)=>{let n=(p[e.id]??e).values[t.id];return Au(n)?t.placeholder??`-`:t.editor===`select`?t.options?.find(e=>e.value===String(n))?.label??Ou(n):Ou(n)},E=(e,t,n,r,i)=>{let a=p[e.id]??e,s=h===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)(os,{id:`${n}-editor`,name:t.id,ariaLabel:`${t.label} for row ${e.id}`,value:ku(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:ku(a.values[t.id]),onBlur:()=>g(null),onChange:n=>x(e.id,t.id,n.target.value),onKeyDown:e=>{(e.key===`Enter`||e.key===`Escape`)&&g(null)}}):c?(0,u.jsx)(`button`,{type:`button`,className:i,disabled:o,onClick:()=>g(n),children:(0,u.jsx)(`span`,{className:`min-w-0 truncate`,children:T(e,t)})}):T(e,t)};return(0,u.jsxs)(`section`,{ref:f,"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)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e}),_?(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:_}):null]}),(0,u.jsx)(v,{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:Du[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 ${Du[e.width??`md`]} ${Tu[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 ${Du[t.width??`md`]} ${Tu[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 ${Tu[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 ${Eu[r]}`)},n)}),(0,u.jsx)(`td`,{className:`whitespace-nowrap px-4 py-3 text-center`,children:(0,u.jsx)(q,{"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)(q,{"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)(v,{variant:`free`,className:`px-3 py-4 text-sm text-primary`,children:s})})]})},Nu=({groups:e,itemLabel:t=`decors`,emptyMessage:n=`No decors are available.`,showGroupHeaders:r=!0,onDecorClick:i,onDeleteDecorRequest:a})=>{let o=(0,c.useId)();return e.some(e=>e.items.length>0)?(0,u.jsx)(`div`,{className:`space-y-8`,children:e.map((e,n)=>{if(!e.items.length)return null;let s=`${o}-${n}`;return(0,u.jsxs)(`section`,{"aria-labelledby":r?s:void 0,"aria-label":r?void 0:e.label,children:[r?(0,u.jsxs)(`header`,{className:`flex items-end justify-between gap-4 border-b border-borderTertiary pb-3`,children:[(0,u.jsx)(v,{as:`h2`,id:s,variant:`free`,className:`text-base font-bold text-primary`,children:e.label}),(0,u.jsxs)(v,{variant:`free`,className:`shrink-0 text-xs font-bold text-tertiary`,children:[e.totalCount.toLocaleString(),` `,t]})]}):null,(0,u.jsx)(`div`,{className:r?`mt-3 space-y-3`:`space-y-3`,children:e.items.map(e=>(0,u.jsx)(we,{...e,onDecorClick:i,onDeleteDecorRequest:a},e.decorId))})]},e.id)})}):(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:n})},Pu=({ranges:e,emptyMessage:t=`No ranges are available.`,onRangeClick:n,onDeleteRangeRequest:r})=>e.length?(0,u.jsx)(`section`,{"aria-label":`Ranges`,className:`space-y-3`,children:e.map(e=>(0,u.jsx)(ze,{...e,onRangeClick:n,onDeleteRangeRequest:r},e.rangeId))}):(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:t}),Fu=({layoutVariant:e=`table`,documentTitleLabel:t=`Document Title`,documentRangeLabel:n=`Range`,documentTypeLabel:r=`Type`,documentSubtypeLabel:i=`Subtype`,emptyMessage:a=`No Documents Are Available`,downloadLabelTemplate:o,documentInfoCards:s,onDownloadClick:c,onRangeClick:l})=>s.length===0?(0,u.jsx)(v,{variant:`free`,className:`pt-6 text-center text-sm text-primary`,children:a}):(0,u.jsx)(`section`,{className:`w-full`,children:(0,u.jsxs)(`div`,{className:e===`compact`?`flex flex-col`:`flex flex-col p-2`,children:[e===`table`?(0,u.jsxs)(`header`,{className:`hidden md:flex flex-row gap-4 border-b border-secondaryHover pb-3 pr-10 font-bold`,children:[(0,u.jsx)(v,{className:`flex-2`,children:t}),(0,u.jsx)(v,{className:`flex-1`,children:n}),(0,u.jsx)(v,{className:`flex-1`,children:r}),(0,u.jsx)(v,{className:`flex-1`,children:i})]}):null,s.map(t=>(0,u.jsx)(rc,{documentInfoCardItem:t,layoutVariant:e,downloadLabelTemplate:o,onDownloadClick:c,onRangeClick:l},t.id))]})}),Iu={lat:39.9612,lng:-82.9988},Lu=()=>window,Ru=()=>Lu().google,zu=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)},Bu=({center:e,locations:t,selectedLocationId:n})=>{let r=t.find(e=>e.id===n);return e??r?.coordinates??t[0]?.coordinates??Iu},Vu=({googleMapsApiKey:e,mapId:t,locations:n,center:r,zoom:i=10,selectedLocationId:a,ariaLabel:o=`Locations map`,legendLabel:s,onLocationSelect:l})=>{let d=c.default.useRef(null),f=c.default.useRef(null),p=c.default.useRef([]),[m,h]=c.default.useState(e?`loading`:`missing-key`),g=c.default.useMemo(()=>Bu({center:r,locations:n,selectedLocationId:a}),[r,n,a]);c.default.useEffect(()=>{if(!e)return h(`missing-key`),()=>void 0;let t=!0;return h(`loading`),zu(e).then(()=>{t&&h(`loaded`)}).catch(()=>{t&&h(`error`)}),()=>{t=!1}},[e]),c.default.useEffect(()=>{if(m!==`loaded`||!d.current)return;let e=Ru();e&&(f.current?(f.current.setCenter(g),f.current.setZoom(i)):f.current=new e.maps.Map(d.current,{center:g,zoom:i,mapId:t,clickableIcons:!1,fullscreenControl:!0,mapTypeControl:!1,streetViewControl:!1}))},[m,t,g,i]),c.default.useEffect(()=>{if(m!==`loaded`||!f.current)return;let e=Ru();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`,()=>{l?.({location:t})}),r}))},[m,n,l]),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 _=n.slice(0,6);return(0,u.jsxs)(`section`,{className:`w-full`,"aria-label":o,children:[(0,u.jsx)(`div`,{ref:d,"data-testid":`location-map-canvas`,className:`h-80 w-full bg-secondary/10 md:h-96`,children: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:_.map((e,t)=>(0,u.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-left text-primary`,onClick:()=>l?.({location:e}),children:[(0,u.jsx)(`span`,{className:`flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-accent text-xs text-white`,children:t+1}),(0,u.jsx)(v,{as:`span`,variant:`body`,children:e.name})]},e.id))}):null}),s?(0,u.jsxs)(`div`,{className:`mt-3 flex items-center gap-2`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`location-dot`,color:`accent`,size:`sm`}),(0,u.jsx)(v,{variant:`caption`,className:`text-primary`,children:s})]}):null]})},Hu={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`}},Uu={match:`text-saleGreen`,mismatch:`text-accent`,neutral:`text-tertiary`},Wu=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 ${Uu[n]}`,children:t}):null]})]},e.id)},Gu=(e,t,n)=>{let r=e.description?.trim()??``,i=e.actionHelpText?.trim()??``,a=Hu[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)(S,{iconType:`fa-solid`,iconName:a.iconName,alt:``,size:`xs`}),e.statusLabel]})]}),(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`mt-4 text-base font-bold`,children:e.title}),r?(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:r}):null]}),(0,u.jsx)(`dl`,{className:`mt-5`,children:e.fields.map(Wu)}),e.actionLabel?(0,u.jsxs)(`footer`,{className:`mt-auto pt-5`,children:[i?(0,u.jsx)(v,{variant:`free`,className:`mb-2 text-xs text-tertiary`,children:i}):null,(0,u.jsx)(P,{label:e.actionLabel,iconType:`fa-solid`,iconName:`arrows-rotate`,iconAlt:``,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:e.actionDisabled,onClick:n})]}):null]})},Ku=({title:e=`Commerce Sync`,summary:t,detail:n,overallStatus:r,overallStatusLabel:i,lxStage:a,salsifyStage:o,bigCommerceStage:s,refreshLabel:c=`Check Again`,onLxSyncClick:l,onBigCommerceSyncClick:d,onRefreshClick:f})=>{let p=n?.trim()??``,m=Hu[r],h=[{stage:a,onActionClick:void 0},{stage:o,onActionClick:l},{stage:s,onActionClick:d}];return(0,u.jsxs)(`section`,{"aria-labelledby":`commerce-sync-panel-heading`,children:[(0,u.jsx)(`div`,{"aria-label":`Commerce sync summary`,className:`rounded-lg border p-4 ${m.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)(S,{iconType:`fa-solid`,iconName:m.iconName,alt:``,size:`sm`})}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(v,{as:`h2`,id:`commerce-sync-panel-heading`,variant:`free`,className:`text-base font-bold text-inherit`,children:[e,`: `,i]}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-inherit`,children:t}),p?(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs text-inherit`,children:p}):null]})]}),f?(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(P,{label:c,iconType:`fa-solid`,iconName:`arrows-rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,onClick:f})}):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:h.map((e,t)=>(0,u.jsxs)(`div`,{className:`relative min-w-0`,children:[Gu(e.stage,t+1,e.onActionClick),t<h.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)(S,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`xs`})}):null]},e.stage.title))})]})},qu=({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)(v,{variant:`bold`,className:`pt-2`,children:e}),r.length>0&&(0,u.jsx)(P,{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)(P,{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)(v,{as:`span`,variant:`body`,className:`text-secondaryActive leading-none`,children:n})})]})})},Ju=({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)(S,{iconType:`fa-solid`,iconName:n,className:`text-primary text-md mr-2`}):null,t?(0,u.jsx)(v,{variant:`free`,className:`text-lg text-primary `,children:t}):null]}),r&&(0,u.jsx)(qu,{header:r.header,clearAllLabel:r.clearAllLabel,emptyStateLabel:r.emptyStateLabel,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)(Ys,{label:e.label,options:e.options,onOptionSelect:l}),e.type===`checkbox`&&(0,u.jsx)(ts,{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)(P,{variant:`outline`,intent:`accent`,size:`sm`,className:`w-full`,label:i,onClick:()=>o()}),(0,u.jsx)(P,{variant:`solid`,intent:`accent`,size:`sm`,className:`w-full`,label:a,onClick:()=>s()})]})})]}),Yu=[{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`}],Xu=({htmlFor:e,label:t,errorMessage:n})=>(0,u.jsx)(v,{as:`label`,htmlFor:e,className:`text-sm ${n?`text-accent!`:`text-primary`}`,children:n||t}),Zu=({data:e,actionLabels:t,labels:n,onModeChange:r,onEmailChange:i,onPasswordChange:a,onFirstNameChange:o,onLastNameChange:s,onPhoneNumberChange:c,onUserTypeChange:l,onConfirmPasswordChange:d,onMarketingOptInChange:f,onTermsAcceptedChange:p,onEmailBlur:m,onPasswordBlur:h,onForgotPasswordClick:g,onTermsClick:_,onPrivacyClick:y,onSignInClick:b,onCreateAccountClick:x,onSecondaryClick:S})=>{let C=e.mode??`signIn`,w=C===`createAccount`,T=e.errors??{},E=e.userTypeOptions??Yu,D=[{id:`createAccount`,label:n?.createAccountMode??`Create Account`},{id:`signIn`,label:n?.signInMode??`Sign In`}],O=w?t?.createAccountPrimary??`Create Account`:t?.signInPrimary??`Sign In`,k=t?.secondary??`Cancel`;return(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-8`,children:[(0,u.jsx)(Gc,{ariaLabel:n?.modeAriaLabel??`Login mode`,layoutVariant:`equalWidth`,items:D,selectedId:C,onSelect:e=>r?.(e)}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[w?(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-5 md:grid-cols-2`,children:[(0,u.jsx)($,{id:`account-access-first-name`,name:`firstName`,label:n?.firstName??`First Name*`,value:e.firstName??``,placeholder:n?.firstNamePlaceholder??`First Name*`,hasError:!!T.firstName,errorMessage:T.firstName,autoComplete:`given-name`,onChange:o}),(0,u.jsx)($,{id:`account-access-last-name`,name:`lastName`,label:n?.lastName??`Last Name`,value:e.lastName??``,placeholder:n?.lastNamePlaceholder??`Last Name`,autoComplete:`family-name`,onChange:s})]}):null,(0,u.jsx)($,{id:`account-access-email`,name:`email`,type:`email`,label:n?.email??`Email`,value:e.email??``,placeholder:w?n?.emailPlaceholder??`Email*`:``,hasError:!!T.email,errorMessage:T.email,autoComplete:`email`,onChange:i,onBlur:m}),w?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)($,{id:`account-access-phone-number`,name:`phoneNumber`,type:`tel`,label:n?.phoneNumber??`Phone Number*`,value:e.phoneNumber??``,placeholder:n?.phoneNumberPlaceholder??`Phone Number*`,hasError:!!T.phoneNumber,errorMessage:T.phoneNumber,autoComplete:`tel`,onChange:c}),(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[(0,u.jsx)(Xu,{htmlFor:`account-access-user-type`,label:n?.userType??`I am a*`,errorMessage:T.userType}),(0,u.jsx)(os,{id:`account-access-user-type`,name:`userType`,placeholder:n?.userTypePlaceholder??`I am a*`,value:e.userType??``,hasError:!!T.userType,options:E.map(e=>({label:e.label,value:e.value,disabled:e.disabled})),onChange:e=>l?.(e.target.value)})]})]}):null,(0,u.jsx)($,{id:`account-access-password`,name:`password`,type:`password`,label:n?.password??`Password`,value:e.password??``,placeholder:w?n?.passwordPlaceholder??`Password*`:``,hasError:!!T.password,errorMessage:T.password,autoComplete:w?`new-password`:`current-password`,linkText:w?void 0:n?.forgotPassword??`Forgot Password?`,linkHref:`#`,onLinkClick:g,onChange:a,onBlur:h}),w?(0,u.jsxs)(u.Fragment,{children:[e.passwordRequirementsText?(0,u.jsx)(v,{variant:`caption`,className:`text-accent`,children:e.passwordRequirementsText}):null,(0,u.jsx)($,{id:`account-access-confirm-password`,name:`confirmPassword`,type:`password`,label:n?.confirmPassword??`Confirm Password*`,value:e.confirmPassword??``,placeholder:n?.confirmPasswordPlaceholder??`Confirm Password*`,hasError:!!T.confirmPassword,errorMessage:T.confirmPassword,autoComplete:`new-password`,onChange:d}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,u.jsxs)(`label`,{htmlFor:`account-access-marketing-opt-in`,className:`flex cursor-pointer items-center gap-3 rounded-md border border-secondaryHover bg-secondaryHover/30 py-3 pr-3 pl-5 text-sm leading-5 text-primary`,children:[(0,u.jsx)(`input`,{id:`account-access-marketing-opt-in`,name:`marketingOptIn`,type:`checkbox`,checked:e.marketingOptIn??!1,onChange:e=>f?.(e.target.checked),className:`h-4 w-4 shrink-0 accent-accent`}),(0,u.jsx)(`span`,{children:n?.marketingOptIn??`I give my permission to collect and use my information and receive updates regarding new launches, sales and marketing materials.`})]}),(0,u.jsxs)(`div`,{className:`flex items-center gap-3 rounded-md border border-secondaryHover bg-secondaryHover/30 py-3 pr-3 pl-5 text-sm leading-5 text-primary`,children:[(0,u.jsx)(`input`,{id:`account-access-terms-accepted`,name:`termsAccepted`,type:`checkbox`,"aria-label":n?.termsConsentAriaLabel??`I agree to Formica's Terms of Use and Privacy Policy`,checked:e.termsAccepted??!1,onChange:e=>p?.(e.target.checked),className:`h-4 w-4 shrink-0 accent-accent`}),(0,u.jsxs)(`span`,{children:[n?.termsConsentPrefix??`I agree to Formica's`,` `,(0,u.jsx)(P,{type:`button`,variant:`link`,intent:`accent`,className:`p-0! text-sm leading-5 align-baseline`,label:n?.termsOfUse??`Terms of Use`,onClick:_}),` `,n?.termsConsentJoin??`and`,` `,(0,u.jsx)(P,{type:`button`,variant:`link`,intent:`accent`,className:`p-0! text-sm leading-5 align-baseline`,label:n?.privacyPolicy??`Privacy Policy`,onClick:y}),`.`]})]}),T.termsAccepted?(0,u.jsx)(v,{variant:`caption`,className:`text-accent`,children:T.termsAccepted}):null]})]}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 ${w?`mb-8`:``}`,children:[(0,u.jsx)(P,{type:`button`,variant:`solid`,intent:`accent`,className:`w-full`,onClick:w?x:b,children:O}),(0,u.jsx)(P,{type:`button`,variant:`outline`,intent:`primary`,className:`w-full border-primary text-primary`,onClick:S,children:k})]})]})},Qu=({customerName:e,children:t,tabs:n,activeTabId:r,greeting:i=`Welcome back,`,logoutLabel:a=`Log out`,onTabClick:o,onLogoutClick:s})=>(0,u.jsx)(`section`,{className:`w-full bg-white`,children:(0,u.jsxs)(`div`,{className:`mx-auto w-full max-w-6xl px-4 pb-16 pt-6 md:px-0 md:pt-10`,children:[(0,u.jsxs)(`header`,{className:`flex items-center justify-between gap-4 pb-5`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-4`,children:[(0,u.jsx)(`span`,{className:`flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-tertiaryActive text-primary`,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`user`,alt:``,size:`2xl`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(v,{variant:`caption`,children:i}),(0,u.jsx)(v,{as:`p`,variant:`free`,className:`mt-1 truncate font-rockwell text-2xl text-primary`,children:e})]})]}),(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(P,{label:a,variant:`link`,intent:`accent`,size:`sm`,onClick:s})})]}),(0,u.jsx)(`nav`,{"aria-label":`Customer account sections`,children:(0,u.jsx)(`div`,{role:`tablist`,children:(0,u.jsx)(Ol,{items:n.map(e=>({label:e.label,value:e.id})),value:r,onChange:e=>{let t=n.find(t=>t.id===e);t&&o({item:t})},renderTab:({item:e,isActive:t,onTabClick:n})=>(0,u.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":t,className:`w-full px-2 py-4 text-xs font-semibold transition md:px-5 md:text-sm ${t?`text-primary`:`text-secondaryActive hover:text-primary`}`,onClick:n,children:e.label})})})}),(0,u.jsx)(`main`,{className:`pt-8 md:pt-10`,children:t})]})}),$u=({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)(P,{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)})})},ed=({data:e})=>e?(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:gap-6`,children:[!!e?.summary&&(0,u.jsx)(v,{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)(uc,{colourMatching:e.colourMatching,label:e.colourMatchingLabel})]}):null,td=({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)(v,{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)(L,{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)(v,{as:`h4`,variant:`free`,className:`text-lg md:text-xl font-bold text-primary`,children:e.title}),!!e.description&&(0,u.jsx)(v,{as:`p`,variant:`body`,className:`max-w-80 leading-6`,children:e.description})]})]},e.key))})]},e.id))}):null,nd=(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},rd=({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)(v,{as:`h3`,variant:`free`,className:`text-xl md:text-3xl leading-none mb-1`,children:n.title}),!!a&&(0,u.jsx)(v,{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)(v,{as:`span`,variant:`free`,className:`text-xs text-nowrap`,children:nd(e)},e))}),(0,u.jsx)(`div`,{className:`flex flex-col gap-2`,children:i.map(e=>(0,u.jsx)(v,{as:`span`,variant:`free`,className:`text-xs text-nowrap`,children:nd(e,!0)},e))})]})]},n.id)})}),!!e.content&&(0,u.jsx)(`div`,{children:e.content}),!!e.summary&&(0,u.jsx)(v,{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)(v,{as:`span`,variant:`body`,children:[(0,u.jsxs)(`span`,{className:`font-medium`,children:[e.grade,`: `]}),e.text]},e.id))})]}):null,id=[{label:`Product Details`,value:`details`},{label:`Texture`,value:`texture`},{label:`Size & Grade Guide`,value:`sizeAndGrade`}],ad=(e,t)=>e?.length?t&&e.some(e=>e.id===t)?t:e[0].id:``,od=e=>{typeof window>`u`||e.forEach(e=>{if(!e)return;let t=new window.Image;t.src=e})},sd=({ranges:e,defaultTab:t=`details`,tabLabels:n,defaultRangeId:r,selectedGrade:i})=>{let[a,o]=c.default.useState(t),[s,l]=c.default.useState(ad(e,r));if(c.default.useEffect(()=>{l(ad(e,r))},[e,r]),c.default.useEffect(()=>{let t=e?.flatMap(e=>e.texture?.groups??[]).flatMap(e=>e.items??[]).map(e=>e.imageSrc).filter(e=>!!e)??[];od([...new Set(t)])},[e]),!e?.length)return null;let d=id.map(e=>({...e,label:n?.[e.value]??e.label})),f=e.find(e=>e.id===s)??e[0];return(0,u.jsxs)(`section`,{className:`w-full flex flex-col pb-10 md:pb-0`,children:[(0,u.jsx)(`div`,{className:`w-full`,children:(0,u.jsx)(`div`,{className:`max-w-6xl w-full mx-auto px-4 md:px-6`,children:(0,u.jsx)(`div`,{className:`flex justify-start`,children:(0,u.jsx)(Ol,{items:d.map(e=>({label:e.label,value:e.value,disabled:!1})),value:a,onChange:e=>o(e)})})})}),(0,u.jsx)(`div`,{className:`md:max-w-6xl md:mx-auto px-4 md:px-6 md:py-8 pt-6 w-full md:pl-32 md:min-h-[489px]`,children:(0,u.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-[240px_minmax(0,1fr)] gap-6 md:gap-10`,children:[(0,u.jsx)(`div`,{className:`md:pr-8 md:border-r border-black/10 md:min-h-40`,children:(0,u.jsx)($u,{items:e.map(e=>({id:e.id,label:e.label})),value:f.id,onChange:e=>l(e)})}),(0,u.jsx)(`div`,{children:(()=>{switch(a){case`details`:return(0,u.jsx)(ed,{data:f.details});case`texture`:return(0,u.jsx)(td,{data:f.texture});case`sizeAndGrade`:return(0,u.jsx)(rd,{data:f.sizeAndGrade,selectedGrade:i});default:return null}})()})]})})]})},cd=({isOpen:e,title:t=`My Cart`,projectName:n=``,projectNamePlaceholder:r=`Enter project name`,emptyCartText:i=`Your cart is empty.`,goToCartLabel:a=`Go to Cart`,clearCartLabel:o=`Clear Cart`,freeLabel:s=`Free`,closeOverlayLabel:c=`Close cart overlay`,closeCartLabel:l=`Close cart`,flyoutAriaLabel:d=`Shopping cart flyout`,removeItemLabel:f=`Remove item`,decreaseQuantityLabel:p=`Decrease quantity`,increaseQuantityLabel:m=`Increase quantity`,items:h=[],className:g=``,onClose:_,onProjectNameChange:y,onQuantityChange:b,onRemoveItem:x,onClearCart:S,onGoToCart:C})=>{if(!e)return null;let w=h.length>0;return(0,u.jsxs)(`div`,{className:`fixed inset-0 z-50 flex justify-end`,children:[(0,u.jsx)(`button`,{type:`button`,"aria-label":c,className:`absolute inset-0 bg-black/40`,onClick:_}),(0,u.jsxs)(`aside`,{className:`relative z-10 flex h-full w-full max-w-md flex-col bg-white shadow-xl ${g}`,"aria-label":d,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between px-6 py-4`,children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-3xl text-primary`,children:t}),(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`fa-xmark`,intent:`ghost`,variant:`ghost`,"aria-label":l,onClick:_,className:`text-secondaryActive!`})]}),(0,u.jsx)(`div`,{className:`mt-6 px-6`,children:(0,u.jsx)(`input`,{type:`text`,value:n,onChange:e=>y?.(e.target.value),placeholder:r,className:`w-full rounded-lg border border-secondaryActive px-4 py-1 text-primary outline-none focus:border-primary`})}),(0,u.jsx)(`div`,{className:`flex-1 overflow-y-auto px-6 py-5`,children:w?(0,u.jsx)(`div`,{className:`flex flex-col gap-4`,children:h.map(e=>(0,u.jsx)(ge,{sku:e.sku,imageSrc:e.imageSrc,imageAlt:e.imageAlt,title:e.title,brand:e.brand,decorNumber:e.decorNumber,productType:e.productType,quantity:e.quantity,errorMessage:e.errorMessage,price:e.price,minQuantity:e.minQuantity,maxQuantity:e.maxQuantity,freeLabel:s,removeItemLabel:f,decreaseQuantityLabel:p,increaseQuantityLabel:m,onQuantityChange:t=>b?.(e.id,t),onRemoveItem:()=>x?.(e.id),id:``},e.id))}):(0,u.jsx)(`div`,{className:`rounded-lg border border-secondaryActive p-6`,children:(0,u.jsx)(v,{variant:`free`,className:`text-base text-primary`,children:i})})}),(0,u.jsx)(`div`,{className:`px-6 py-5`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,u.jsx)(P,{label:a,intent:`accent`,variant:`solid`,onClick:C,disabled:!w,className:`w-full`}),(0,u.jsx)(P,{label:o,intent:`secondary`,variant:`solid`,onClick:S,disabled:!w,className:`w-full`})]})})]})]})};function ld(e=[]){return e.reduce((e,t)=>(e[t.id]=t,e[t.value]=t,e),{})}var ud=(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})),dd=(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}))},fd=(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)},[])},pd=(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},[])},md=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??[]})),hd=e=>e?`Grade ${e}`:``,gd=({breadcrumbsProps:e,productData:t,errorMessage:n,showFavorites:r=!0,onDownloadSwatch:i,onDownloadFullSheet:a,onAddToWishlist:o,onAddToCart:s,onSelectionChange:l,onContactActionClick:d,onProductNavigate:f,cartFlyoutProps:p})=>{let m=t??{},h=m.images??[],g=m.product,_=m.content,v=m.optionSets,y=m.purchase,b=m.downloads,x=m.ranges??[],S=m.standardCopyHero,C=m.featuredProducts??[],w=g?.colourMatching,T=v?.ranges??[],E=v?.textures??[],D=v?.sizes??[],O=v?.sampleSizes??[],k=ld(T),A=ld(E),j=ld(D),M=ld(O),N=y?.tabOptions?.Sample??{},P=y?.tabOptions?.[`Buy Now`]??{},F=y?.defaults??{},I=dd(m.variants??[]),L=m.variants?.[0]?.grade??null,[R,ee]=c.default.useState(hd(L));c.default.useEffect(()=>{ee(hd(L))},[L]);let z=I.map(e=>{let t=hd(e.value);return{...e,active:t===R,onOptionClick:()=>ee(t)}}),te=N.productOptionIds,ne=te?.filter(e=>!!k[e])??[],re=te?.length?ne:pd(m.variants??[]),ie=N.textureOptionIds,ae=ie?.filter(e=>!!A[e])??[],oe=ie?.length?ud(A,ae,F.texture??null):fd(m.variants??[],F.texture??null),B=P.productOptionIds,V=B?.filter(e=>!!k[e])??[],H=B?V:T.map(e=>e.id),se={sku:g?.sku??``,decor:g?.decor??``,title:g?.title??``,description:g?.description??``,colourMatching:w,colourMatchingLabel:g?.colourMatchingLabel,patternRepeat:g?.patternRepeat??``,variants:m.variants??[],onDownloadSwatch:()=>i?.(m),onDownloadFullSheet:()=>a?.(m),downloadSwatchLabel:b?.swatch?.label,downloadFullSheetLabel:b?.fullSheet?.label,carousel:{slides:h.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:_?.sampleDisclaimer??``,fallbackImage:{src:Tc,alt:`Product image unavailable`}},tabs:v?.purchaseTabs??[`Sample`,`Buy Now`],tabLabels:_?.purchaseTabLabels,labels:_?.purchaseLabels,initialTab:_?.defaultPurchaseTab??`Buy Now`,tabOptions:{Sample:{minQuantity:N.minQuantity,maxQuantity:N.maxQuantity,productOptions:ud(k,re,_?.defaultRangeId??T[0]?.value??null),gradeOptions:[],textureOptions:oe,sizeOptions:ud(M,N.sizeOptionIds??[],null)},"Buy Now":{minQuantity:P.minQuantity,maxQuantity:P.maxQuantity,productOptions:ud(k,H,_?.defaultRangeId??T[0]?.value??null),gradeOptions:z,textureOptions:ud(A,P.textureOptionIds??[],F.texture??null),sizeOptions:ud(j,P.sizeOptionIds??[],F.size??null)}},productOptions:ud(k,H,_?.defaultRangeId??T[0]?.value??null),gradeOptions:z,selectedGrade:R,textureOptions:ud(A,P.textureOptionIds??[],F.texture??null),sizeOptions:ud(j,P.sizeOptionIds??[],F.size??null),availabilityHref:_?.availabilityHref??`#`,availabilityLabel:_?.availabilityLabel??`View full product availability and information`,returnPolicyHref:_?.returnPolicyHref??`#`,returnPolicyLabel:_?.returnPolicyLabel??`View return policy`,notReturnableText:_?.notReturnableText??`This item is not returnable.`,priceLabel:g?.price?.label??``,priceValue:g?.price?.value??0,currency:g?.currency??`USD`,errorMessage:n,onSelectionChange:l,initialQuantity:F.quantity??1,minQuantity:F.minQuantity??1,maxQuantity:F.maxQuantity??99,showFavorites:r,actionMode:y?.actionMode??`cart`,contactActions:y?.contactActions,onAddToWishlist:e=>{o?.(e,m)},onAddToCart:e=>{s?.(e,m)},onContactActionClick:e=>{d?.(e,m)},onPurchaseInfoLinkClick:f},U={ranges:x.map(e=>{let t=e.sizeAndGrade?.definitions??[],n=md(e.sizeAndGrade?.cards);return{id:e.id,label:e.label,details:{summary:e.details?.summary??``,content:e.details?.content,colourMatching:e.details?.colourMatching,colourMatchingLabel:e.details?.colourMatchingLabel},texture:{groups:e.texture?.groups??[]},sizeAndGrade:{summary:e.sizeAndGrade?.summary??``,definitions:t,cards:n,content:e.sizeAndGrade?.content}}}),defaultTab:_?.defaultInfoTab??`details`,tabLabels:_?.productInformationTabLabels,defaultRangeId:_?.defaultRangeId??x[0]?.id??``,selectedGrade:R,className:``},ce=e=>{let t=e.href||(e.rangeCode&&e.decorNumber?`/products/${e.rangeCode.toUpperCase()}/${e.decorNumber.toUpperCase()}`:``);t&&f?.(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)(hl,{...e}),(0,u.jsx)(su,{...se}),(0,u.jsx)(sd,{...U}),(0,u.jsx)(`div`,{className:`hidden md:block`,children:S&&(0,u.jsx)(cu,{imageSrc:S.imageSrc??``,imageAlt:S.imageAlt??``,heading:S.heading??``,subheading:S.subheading??``,body:S.body??``,linkLabel:S.linkLabel,linkHref:S.linkHref??`#`})}),C.length>0&&(0,u.jsx)(gu,{title:t.featuredProductsTitle??``,items:C,onItemClick:ce})]}),p?(0,u.jsx)(cd,{...p}):null]})},_d=({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)(P,{label:e.label,variant:t?`solid`:`ghost`,intent:t?`neutral`:`radio`,size:`sm`,active:t,onClick:()=>a(e),"aria-pressed":t},e.value)})})})},vd=({standardCopyHeroProps:e,multiButtonBarProps:t,featuredArticleBannerProps:n,featureCardCollectionProps:r})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(cu,{...e}),(0,u.jsx)(_d,{...t}),(0,u.jsx)(Dl,{...n}),(0,u.jsx)(Ll,{...r})]}),yd=(e,t)=>e.id??[e.decorNumber,e.title,e.brand,e.product,e.status??`standard`,t].join(`-`),bd=({swatches:e=[],onSwatchClick:t})=>(0,u.jsx)(U,{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)(Ec,{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},yd(e,n))})}),xd=e=>e.flatMap(e=>e.options.filter(e=>e.checked).map(e=>({id:e.id,label:e.label}))),Sd=(e,t,n)=>e.map(e=>({...e,options:e.options.map(e=>e.id===t?{...e,checked:n}:e)})),Cd=e=>e.map(e=>({...e,options:e.options.map(e=>({...e,checked:!1}))})),wd=e=>e.tabs?.selectedValue??e.tabs?.options[0]?.value??``,Td=e=>e.filters.sort?.value??e.filters.sort?.options?.[0]?.value??e.filters.sort?.options?.[0]?.label??``,Ed=e=>e.filters.search?.value??``,Dd=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(()=>Dd(e)),m=e.filters.panel?.sections??[],h=wd(e),g=Td(e),_=Ed(e),v=e.tabs,y=e.filters.sort,b=e.filters.search,x=e.filters.panel,S=!!(x||y||b),C=c.default.useMemo(()=>xd(m),[m]),w=e.filters.labels,T=w?.panelHeader??x?.header,E=w?.clearAllLabel??x?.clearAllLabel,D=w?.applyFiltersLabel??x?.applyFiltersLabel,O=w?.appliedOptionsHeader??x?.appliedOptionsHeader,k=f?w?.hideFiltersLabel??e.filters.toggleButton?.hideLabel??`Hide Filters`:w?.showFiltersLabel??e.filters.toggleButton?.showLabel??`Show Filters`,A=w?.mobileFiltersLabel??e.filters.toggleButton?.mobileLabel??T??`Filters`,j=c.default.useCallback((t,n)=>{o?.(t,n,e)},[e,o]),M=c.default.useCallback(e=>{j(Sd(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`checkbox`})},[j,m]),N=c.default.useCallback(e=>{j(Sd(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`colorSwatch`})},[j,m]),P=c.default.useCallback(()=>{j(Cd(m),{action:`clear-all`})},[j,m]);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)(cu,{...e.hero,onLinkClick:()=>n?.(e)}),v?(0,u.jsx)(_d,{options:v.options,selectedValue:h,onSelect:t=>{r?.(t,e)}}):null,S?(0,u.jsxs)(As,{children:[x?(0,u.jsx)(js,{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)(Ms,{className:`hidden md:block md:w-70`,dropdownProps:{...y,value:g,onChange:t=>{i?.(t.target.value,e)}}}):null,b?(0,u.jsx)(Ps,{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)(Ju,{header:T,headerIcon:x.headerIcon,resetLabel:E,applyFiltersLabel:D,sections:m,appliedOptions:{header:O,clearAllLabel:E,emptyStateLabel:w?.emptyStateLabel,optionsList:C,onRemoveOption:e=>{j(Sd(m,e.id,!1),{action:`remove`,optionId:e.id})},onRemoveAll:P},onResetClick:P,onApplyFiltersClick:()=>void 0,onCheckboxChange:M,onColorSelect:N})}):null,l&&x?(0,u.jsx)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":T??A,className:`md:hidden`,children:(0,u.jsx)(Ju,{header:T,headerIcon:x.headerIcon,resetLabel:E,applyFiltersLabel:D,sections:m,appliedOptions:{header:O,clearAllLabel:E,emptyStateLabel:w?.emptyStateLabel,optionsList:C,onRemoveOption:e=>{j(Sd(m,e.id,!1),{action:`remove`,optionId:e.id})},onRemoveAll:P},onResetClick:P,onApplyFiltersClick:()=>d(!1),onCheckboxChange:M,onColorSelect:N})}):null,(0,u.jsx)(`div`,{className:`${l?`hidden`:`block`} my-8 md:my-0 md:block md:min-w-0 md:flex-1`,children:(0,u.jsx)(bd,{swatches:e.decorGrid.swatches,onSwatchClick:(t,n)=>s?.(t,n,e)})})]})]})},kd=({images:e=[],onImageClick:t})=>(0,u.jsx)(U,{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)(G,{className:`block w-full cursor-pointer text-left`,onCardClick:()=>t?.({image:e,index:n}),ariaLabel:`Open ${e.alt}`,children:(0,u.jsx)(L,{src:e.src,alt:e.alt,quality:e.quality,className:`aspect-square rounded-lg object-cover`})})},`${e.alt}-${n}`))}),Ad=({standardCopyHeroProps:e,multiButtonBarProps:t,imageGridProps:n})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(cu,{...e}),(0,u.jsx)(_d,{...t}),(0,u.jsx)(As,{layoutVariant:`separator`}),(0,u.jsx)(kd,{...n})]}),jd=({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)(v,{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)(ic,{title:e.title,details:e.details,iconName:e.iconName,onDocumentClick:e.onDocumentClick},e.id))})]})}),Md=e=>!!e?.replace(/<[^>]*>/g,``).replace(/ | | /gi,` `).trim(),Nd=({standardCopyHeroProps:e,multiButtonBarProps:t,warrantyCardProps:n,documentLinkCollectionProps:r,infoCardProps:i,faqCardCollectionProps:a})=>(0,u.jsxs)(u.Fragment,{children:[e&&[e.imageSrc,e.heading,e.subheading,e.body,e.linkLabel].some(Md)&&(0,u.jsx)(cu,{...e}),t&&!!t.options?.length&&(0,u.jsx)(_d,{...t}),n&&Md(n.body)&&(0,u.jsx)(V,{spacing:`section`,children:(0,u.jsx)(hu,{...n})}),r&&!!r.documentLinkCards?.length&&(0,u.jsx)(jd,{...r}),i&&([i.imageSrc,i.headline,i.body].some(Md)||i.buttons?.some(e=>Md(e.buttonLabel)))&&(0,u.jsx)(V,{spacing:`section`,children:(0,u.jsx)(oc,{...i})}),a&&!!a.faqCards?.length&&(0,u.jsx)(vu,{...a})]}),Pd=(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))),Id=(e,t,n)=>n??`View ${e} more ${t}`,Ld=({searchFilterProps:e,resultsHeading:t,decorResultsProps:n,resourceResultsProps:r,documentResultsProps:i,noResultsMessage:a})=>{let o=n?.items??[],s=r?.items??[],c=i?.items??[],l=Fd(c,i?.visibleItemCount),d=c.length-l.length,f=Fd(o,n?.visibleItemCount),p=Fd(s,r?.visibleItemCount),m=o.length-f.length,h=s.length-p.length,g=e.searchBarProps.value?.trim(),_=g?`Showing results for "${g}"`:`Search Results`,y=t??_,b=o.length>0,x=s.length>0,S=c.length>0,C=b||x||S;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(V,{isFirst:!0,spacing:`compactPaddedSection`,children:[(0,u.jsx)(v,{as:`h1`,variant:`free`,className:`mb-6 text-2xl text-primary md:text-3xl`,children:y}),(0,u.jsx)(Ps,{...e,layoutVariant:`full`})]}),b&&n?(0,u.jsxs)(V,{spacing:`compactPaddedSection`,children:[n.title?(0,u.jsx)(v,{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:`grid grid-cols-2 gap-6 md:grid-cols-5`,children:f.map((e,t)=>(0,u.jsx)(Ec,{imageSrc:e.imageSrc,imageAlt:e.imageAlt??`${e.title} decor`,title:e.title,brand:e.brand??``,product:e.rangeCode,decorNumber:e.decorNumber??``,onSwatchClick:n.onItemClick?()=>n.onItemClick?.(e):void 0},Pd(e,t)))}),m>0?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(P,{variant:`outline`,intent:`accent`,size:`sm`,label:Id(m,`decor results`,n.viewMoreLabel),onClick:n.onViewMoreClick})}):null]}):null,S&&i?(0,u.jsxs)(V,{spacing:`compactPaddedSection`,children:[i.title?(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`mb-4 text-base font-bold text-tertiary md:mb-8`,children:i.title}):null,(0,u.jsx)(U,{columns:1,gridClassName:`md:grid-cols-2`,children:l.map(e=>(0,u.jsx)(ic,{title:e.title,details:e.details,iconName:e.iconName,onDocumentClick:e.onDocumentClick},e.id))}),d>0?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(P,{variant:`outline`,intent:`accent`,size:`sm`,label:Id(d,`documents`,i.viewMoreLabel),onClick:i.onViewMoreClick})}):null]}):null,x&&r?(0,u.jsxs)(V,{spacing:`compactPaddedSection`,children:[r.title?(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`mb-4 text-base font-bold text-tertiary md:mb-8`,children:r.title}):null,(0,u.jsx)(`div`,{className:`flex flex-col gap-4 md:gap-8`,children:p.map((e,t)=>(0,u.jsx)(bc,{...e,layoutVariant:e.layoutVariant??`mediaLeftCompact`},`${e.title}-${t}`))}),h>0?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(P,{variant:`outline`,intent:`accent`,size:`sm`,label:Id(h,`resources`,r.viewMoreLabel),onClick:r.onViewMoreClick})}):null]}):null,C?null:(0,u.jsx)(V,{spacing:`paddedSection`,children:(0,u.jsx)(v,{variant:`body`,children:a})})]})},Rd=({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)(L,{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)(Zu,{...n,onSecondaryClick:t})})]})}),zd=e=>{let t=e.options.find(t=>t.value===e.selectedValue)??e.options[0];return t?.value??t?.label??``},Bd=({data:e,className:t=``,onProductChange:n,onSearchSubmit:r,onTabChange:i,onLocationSelect:a,onWebsiteClick:o,onDirectionsClick:s,onPhoneClick:c,onEmailClick:l})=>{let d=e.locations.length>0,f=e.results.selectedLocationId??e.map.selectedLocationId,p=zd(e.tabs);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)(Tl,{...e.banner,onProductChange:t=>n?.(t,e),onSearchSubmit:t=>r?.(t,e)}),(0,u.jsx)(V,{spacing:`none`,className:`mb-8 pt-10`,innerClassName:`flex justify-center`,children:(0,u.jsx)(Ol,{className:`w-full`,items:e.tabs.options.map(e=>({label:e.label,value:e.value,disabled:e.disabled})),value:p,onChange:t=>{let n=e.tabs.options.find(e=>(e.value??e.label)===t);n&&i?.({label:n.label,value:n.value},e)}})}),(0,u.jsx)(V,{spacing:`none`,className:`mb-8 pb-10 md:mb-10`,children:(0,u.jsx)(Vu,{...e.map,locations:e.locations,selectedLocationId:e.map.selectedLocationId??f,onLocationSelect:t=>a?.(t,e)})}),d?(0,u.jsx)(Cu,{...e.results,locations:e.locations,selectedLocationId:f,onWebsiteClick:t=>o?.(t,e),onDirectionsClick:t=>s?.(t,e),onPhoneClick:t=>c?.(t,e),onEmailClick:t=>l?.(t,e)}):(0,u.jsx)(V,{spacing:`paddedSection`,children:(0,u.jsxs)(`div`,{className:`text-center`,children:[e.emptyState?.heading?(0,u.jsx)(v,{as:`h2`,variant:`h2`,children:e.emptyState.heading}):null,e.emptyState?.body?(0,u.jsx)(v,{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)(v,{as:`h1`,variant:`h1`,className:``,children:e}),(0,u.jsx)(v,{as:`p`,variant:`body`,className:`mt-4`,children:t}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(P,{type:`button`,variant:`solid`,intent:`accent`,label:n,onClick:r,className:`w-80`})})]})}),Hd=({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)(v,{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)(v,{variant:`free`,className:`text-primary`,children:n.methodLabel}):null,n.estimatedDeliveryLabel?(0,u.jsx)(v,{variant:`free`,className:`mt-3 text-sm text-tertiary`,children:n.estimatedDeliveryLabel}):null]}),n.price?(0,u.jsx)(v,{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)(v,{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)(v,{variant:`free`,className:e.isEmphasized?`font-extrabold text-primary`:`text-primary`,children:e.label}),(0,u.jsx)(v,{variant:`free`,className:`${e.isEmphasized?`font-extrabold text-primary`:`text-primary`} ${e.valueClassName||``}`,children:e.value})]},`${e.label}-${t}`))})})]}):null]})})},Ud=e=>(0,u.jsxs)(`div`,{className:`min-w-0 flex flex-col gap-1`,children:[(0,u.jsx)(v,{variant:`free`,className:`font-extrabold text-primary`,children:e.title}),e.name?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:e.name}):null,e.addressLine1?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:e.addressLine1}):null,e.addressLine2?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:e.addressLine2}):null,e.addressLine3?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:e.addressLine3}):null,e.country?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:e.country}):null]}),Wd=({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)(v,{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)(v,{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)(v,{variant:`free`,className:`text-sm text-primary`,children:t.orderNumberLabel}):null,t.orderNumber?(0,u.jsx)(v,{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)(v,{variant:`free`,className:`text-sm text-primary`,children:t.orderDateLabel}):null,t.orderDate?(0,u.jsx)(v,{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)(v,{variant:`free`,className:`text-sm text-primary`,children:t.nameLabel}):null,t.name?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:t.name}):null,t.email?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:t.email}):null,t.phone?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:t.phone}):null]})]}),Ud({title:n.title||`Shipping Address`,...n}),Ud({title:r.title||`Billing Address`,...r})]})]})}),Gd=({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)(v,{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)(v,{variant:`free`,className:`font-extrabold text-primary`,children:i}),(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(v,{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)(v,{variant:`free`,className:`font-extrabold text-primary`,children:o})}),(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(v,{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)(fc,{...e,isReadOnly:!0,showPricing:t})},`${e.decorNumber||e.title||`item`}-${n}`))})]})})},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)(Wd,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Gd,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Hd,{...r})})]})]})}),qd=({title:e=`Ship To`,idPrefix:t=`shipping`,firstName:n=``,lastName:r=``,email:i=``,phoneNumber:a=``,companyName:o=``,userType:s=``,address:c=``,apartment:l=``,postalCode:d=``,city:f=``,country:p=`united-states`,countryLabel:m,stateProvince:h=``,addressRegionVariant:g=`default`,countryDisplayMode:_=`select`,countryOptions:y=[],stateProvinceOptions:b=[],userTypeOptions:x=[],firstNamePlaceholder:C=`First Name`,lastNamePlaceholder:w=`Last Name`,emailPlaceholder:T=`Email`,phoneNumberPlaceholder:E=`Phone Number`,companyNamePlaceholder:D=`Company Name (Optional)`,userTypePlaceholder:O=`I am a*`,addressPlaceholder:k=`Address`,apartmentPlaceholder:A=`Apartment/Suite/Building (Optional)`,cityPlaceholder:j,postalCodePlaceholder:M,stateProvincePlaceholder:N,countryPlaceholder:P=`Country`,showCompanyName:F=!0,showContactFields:I=!0,addressErrorMessage:L,errors:R={},onFirstNameChange:ee,onLastNameChange:z,onEmailChange:te,onPhoneNumberChange:ne,onCompanyNameChange:re,onUserTypeChange:ie,onAddressChange:ae,onApartmentChange:oe,onPostalCodeChange:B,onCityChange:V,onCountryChange:H,onStateProvinceChange:se,onFirstNameBlur:U,onLastNameBlur:ce,onEmailBlur:le,onPhoneNumberBlur:ue,onCompanyNameBlur:de,onUserTypeBlur:fe,onAddressBlur:pe,onApartmentBlur:W,onPostalCodeBlur:me,onCityBlur:he,onCountryBlur:ge,onStateProvinceBlur:_e})=>{let G=g===`ca`||g===`mx`,ve=g===`uk`,ye=j??`City`,be=M??`Postal Code`,xe=N??(g===`ca`?`Province`:`State/Province`),Se=m??y.find(e=>e.value===p)?.label??p,Ce=`${t}-address-error`,K=!!L,q=(0,u.jsx)($,{id:`${t}-city`,name:`city`,placeholder:ye,value:f,hasError:K||!!R.city,ariaDescribedBy:K?Ce:void 0,errorMessage:R.city,onChange:V,onBlur:he}),we=(0,u.jsx)($,{id:`${t}-postal-code`,name:`postalCode`,placeholder:be,value:d,hasError:K||!!R.postalCode,ariaDescribedBy:K?Ce:void 0,errorMessage:R.postalCode,onChange:B,onBlur:me}),Te=(0,u.jsx)(os,{id:`${t}-state-province`,name:`stateProvince`,options:b,value:h,placeholder:xe,hasError:K||!!R.stateProvince,ariaDescribedBy:K?Ce:void 0,variant:`field`,onChange:se,onBlur:_e}),Ee=_===`readonly`?(0,u.jsx)($,{id:`${t}-country`,name:`country`,placeholder:P,value:Se,readOnly:!0,hasError:K||!!R.country,ariaDescribedBy:K?Ce:void 0,errorMessage:R.country}):(0,u.jsx)(os,{id:`${t}-country`,name:`country`,options:y,value:p,placeholder:P,hasError:K||!!R.country,ariaDescribedBy:K?Ce:void 0,variant:`field`,onChange:H,onBlur:ge}),De=(0,u.jsxs)(u.Fragment,{children:[we,q,Ee,Te]});return G&&(De=(0,u.jsxs)(u.Fragment,{children:[q,Te,we,Ee]})),ve&&(De=(0,u.jsxs)(u.Fragment,{children:[q,we,(0,u.jsx)(`div`,{className:`col-span-2`,children:Ee})]})),(0,u.jsxs)(`section`,{className:`flex flex-col gap-6`,children:[(0,u.jsx)(v,{as:`h2`,variant:`bold`,className:`text-primary`,children:e}),(0,u.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[I?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)($,{id:`${t}-first-name`,name:`firstName`,placeholder:C,value:n,hasError:!!R.firstName,errorMessage:R.firstName,onChange:ee,onBlur:U}),(0,u.jsx)($,{id:`${t}-last-name`,name:`lastName`,placeholder:w,value:r,hasError:!!R.lastName,errorMessage:R.lastName,onChange:z,onBlur:ce}),(0,u.jsx)($,{id:`${t}-email`,name:`email`,type:`email`,placeholder:T,value:i,hasError:!!R.email,errorMessage:R.email,onChange:te,onBlur:le}),(0,u.jsx)($,{id:`${t}-phone-number`,name:`phoneNumber`,type:`tel`,placeholder:E,value:a,hasError:!!R.phoneNumber,errorMessage:R.phoneNumber,onChange:ne,onBlur:ue}),x.length>0?(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)(os,{id:`${t}-user-type`,name:`userType`,options:x,value:s,placeholder:O,hasError:!!R.userType,variant:`field`,onChange:e=>ie?.(e.target.value),onBlur:fe})}):null,F?(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-company-name`,name:`companyName`,placeholder:D,value:o,hasError:!!R.companyName,errorMessage:R.companyName,onChange:re,onBlur:de})}):null]}):null,(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-address`,name:`address`,placeholder:k,value:c,hasError:K||!!R.address,ariaDescribedBy:K?Ce:void 0,errorMessage:R.address,onChange:ae,onBlur:pe})}),(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-apartment`,name:`apartment`,placeholder:A,value:l,hasError:!!R.apartment,errorMessage:R.apartment,onChange:oe,onBlur:W})}),L?(0,u.jsxs)(`div`,{id:Ce,role:`alert`,className:`col-span-2 flex items-center gap-3 rounded-md border border-accent bg-accent/10 p-4`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`route`,size:`xl`,color:`accent`,className:`shrink-0`}),(0,u.jsx)(v,{variant:`body`,className:`font-bold text-accent`,children:L})]}):null,De]})]})},Jd=({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)(v,{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)(ss,{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))})]}),Yd=({steps:e=[],currentStep:t=0,onStepClick:n,className:r=``,completedColorClass:i=`text-accent!`,upcomingColorClass:a=`text-primary`,connectorCompletedClass:o=`bg-accent!`,connectorUpcomingClass:s=`bg-primary`})=>{if(!e.length)return null;let l=typeof t==`number`?t:e.findIndex(e=>e===t),d=l>=0?l:0,f=(e,t)=>e<t?{left:o,icon:i,right:o}:e===t?{left:o,icon:a,right:s}:{left:s,icon:a,right:s},p=(e,t)=>{let r=t<=d?i:a;return typeof n==`function`?(0,u.jsx)(`button`,{type:`button`,onClick:()=>n(e,t),className:`shrink-0 text-left`,children:(0,u.jsx)(v,{as:`span`,className:`${r} whitespace-nowrap`,children:e})},`step-${e}-${t}`):(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(v,{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 p(t,n);let r=f(n,d);return(0,u.jsxs)(c.default.Fragment,{children:[p(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)(S,{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}`)})})},Xd=({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)(qd,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Jd,{...t})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Yd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(zl,{...r})}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(P,{label:i,intent:`accent`,fullWidth:!0,onClick:a})})]})]})})}),Zd=({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)(v,{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)(fc,{imageSrc:e.imageSrc,imageAlt:e.imageAlt||e.title,title:e.title,brand:e.brand||``,decorNumber:e.decorNumber||``,quantity:e.quantity,errorMessage:e.errorMessage,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)(Yd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(zl,{...r})}),(0,u.jsxs)(`div`,{className:`mt-8 flex flex-col gap-3 bg-white`,children:[(0,u.jsx)(P,{label:i,intent:`accent`,fullWidth:!0,onClick:c}),(0,u.jsx)(P,{label:a,intent:`muted`,variant:`outline`,fullWidth:!0,onClick:l})]})]})]})})}),Qd=({customerDetailsFormProps:e,shippingAddressFormProps:t,shippingOptionSelectorProps:n,checkoutProgressIndicatorProps:r,sampleOrderSummaryPanelProps:i,privacyConsentLabel:a=`I have read and agree to the`,privacyPolicyLabel:o=`Privacy Policy`,privacyConsentChecked:s=!1,privacyConsentErrorMessage:c,submitLabel:l=`Submit Sample Order`,isSubmitting:d=!1,submittingLabel:f=`Submitting order…`,onPrivacyConsentChange:p,onPrivacyPolicyClick:m,onSubmitSampleOrder:h})=>(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)(Bl,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(qd,{...t,addressRegionVariant:`uk`,showContactFields:!1})}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Jd,{...n})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Yd,{...r}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(zl,{...i})}),(0,u.jsxs)(`div`,{className:`mt-8 flex flex-wrap items-center gap-x-1 gap-y-2`,children:[(0,u.jsx)(es,{id:`salesforce-privacy-consent`,name:`privacyConsent`,label:a,checked:s,onChange:({checked:e})=>p?.(e)}),(0,u.jsx)(`button`,{type:`button`,className:`text-sm font-bold text-accent underline underline-offset-2`,onClick:m,children:o}),c?(0,u.jsx)(v,{role:`alert`,variant:`caption`,className:`w-full text-accent`,children:c}):null]}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(P,{label:d?f:l,iconType:d?`fa-solid`:void 0,iconName:d?`spinner`:void 0,disabled:d,"aria-busy":d,intent:`accent`,fullWidth:!0,onClick:h})})]})]})})}),$d=({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)(Wd,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Gd,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Hd,{...r})})]})]})}),ef=({discountCode:e=``,discountCodeStatus:t=`idle`,discountCodeMessage:n=``,subtotalLabel:r=`Sub total`,discountLabel:i=`Discount`,taxLabel:a=`Tax`,shippingLabel:o=`Shipping`,totalLabel:s=`Total`,subtotal:l=`$0.00`,discount:d=``,tax:f=`Not calculated`,shipping:p=`Not calculated`,total:m=`$0.00`,continueLabel:h=`Continue`,discountCodePlaceholder:g=`Enter discount code`,applyDiscountLabel:_=`Apply`,notCalculatedLabel:y=`Not calculated`,showDiscountCode:b=!0,onDiscountCodeChange:x,onApplyDiscount:C,onContinue:w,className:T=``})=>{let E=!!(e.trim()&&d),D=!!(f.trim()&&f!==`Not calculated`&&f!==y),O=D?f:y,k=!!(p.trim()&&p!==`Not calculated`&&p!==y),A=k?p:y,[j,M]=c.default.useState(!0),N=t!==`idle`&&!!n&&(t!==`success`||j),F=t===`success`;return c.default.useEffect(()=>{if(M(!0),t!==`success`)return;let e=window.setTimeout(()=>{M(!1)},2200);return()=>{window.clearTimeout(e)}},[t,n]),(0,u.jsxs)(`section`,{className:`flex w-full flex-col gap-8 ${T}`,children:[b?(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)(Zo,{id:`cart-totals-discount-code`,name:`discountCode`,value:e,placeholder:g,hasError:t===`error`,onChange:x}),N?F?(0,u.jsxs)(`div`,{className:`flex items-center gap-2 rounded-md border border-secondaryHover bg-tertiaryActive 0 px-3 py-2 `,"aria-live":`polite`,children:[(0,u.jsx)(S,{iconType:`fa-regular`,iconName:`face-grin-beam`,size:`xl`,className:`text-saleGreen`}),(0,u.jsx)(v,{variant:`body`,className:`font-bold text-shadow-saleGreen`,children:n})]}):(0,u.jsx)(v,{variant:`caption`,className:`text-accent`,"aria-live":`polite`,children:n}):null]}),(0,u.jsx)(P,{type:`button`,variant:`solid`,intent:`accent`,label:_,onClick:C,className:`min-w-20`})]}):null,(0,u.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(v,{variant:`body`,children:r}),(0,u.jsx)(v,{variant:`body`,children:l})]}),E?(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(v,{variant:`body`,children:i}),(0,u.jsx)(v,{variant:`body`,className:`text-accent`,children:d})]}):null,(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(v,{variant:`body`,children:a}),(0,u.jsx)(v,{variant:`body`,className:D?``:`text-secondaryActive`,children:O})]}),(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(v,{variant:`body`,children:o}),(0,u.jsx)(v,{variant:`body`,className:k?``:`text-secondaryActive`,children:A})]}),(0,u.jsxs)(`div`,{className:`flex items-center justify-between pt-2`,children:[(0,u.jsx)(v,{variant:`bold`,children:s}),(0,u.jsx)(v,{variant:`bold`,children:m})]})]}),(0,u.jsx)(P,{type:`button`,variant:`solid`,intent:`accent`,className:`w-full`,onClick:w,children:h})]})},tf=({paymentTypeTitle:e=`Select Payment Type`,paymentTypeSelectorProps:t,cardNumber:n=``,expirationDate:r=``,securityCode:i=``,errors:a={},submitError:o,onCardNumberChange:s,onExpirationDateChange:c,onSecurityCodeChange:l,onCardNumberBlur:d,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)(v,{as:`h2`,variant:`bold`,className:`text-primary`,children:e}),(0,u.jsx)(Jd,{...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`,ariaLabel:`Card number`,mask:`cardNumber`,autoComplete:`cc-number`,value:n,hasError:!!a.cardNumber,errorMessage:a.cardNumber,onChange:s,onBlur:d}),(0,u.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,u.jsx)($,{id:`payment-expiration-date`,name:`expirationDate`,placeholder:`MM/YY`,ariaLabel:`Expiration date (MM/YY)`,mask:`expirationDate`,autoComplete:`cc-exp`,value:r,hasError:!!a.expirationDate,errorMessage:a.expirationDate,onChange:c,onBlur:f}),(0,u.jsx)($,{id:`payment-security-code`,name:`securityCode`,placeholder:`CVC`,ariaLabel:`Security code (3 or 4 digits)`,mask:`digits`,maxDigits:4,autoComplete:`cc-csc`,value:i,hasError:!!a.securityCode,errorMessage:a.securityCode,onChange:l,onBlur:p})]})]}),o?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`rounded-md border border-accent bg-accent/10 p-4 text-sm text-accent`,children:o}):null]}),nf=({requiresPayment:e=!0,shippingMethodSelectorProps:t,cartPaymentPanelProps:n,checkoutProgressIndicatorProps:r,cartTotalsPanelProps:i})=>(0,u.jsx)(`section`,{className:`w-full flex justify-center mt-10 pb-16`,children:(0,u.jsxs)(`div`,{className:`grid w-full max-w-6xl grid-cols-2 gap-8`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Jd,{...t}),e?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(tf,{...n})}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Yd,{...r}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(ef,{...i})})]})]})}),rf=({shippingAddressFormProps:e,billingAddressFormProps:t={},checkoutProgressIndicatorProps:n,cartTotalsPanelProps:r,billingSectionTitle:i=`Billing Information`,sameAsShipping:a=!0,sameAsShippingLabel:o=`My billing address is the same as my shipping address`,onSameAsShippingChange:s})=>{let[l,d]=c.default.useState(a);c.default.useEffect(()=>{d(a)},[a]);let f=t.countryOptions?.length?t.countryOptions:e.countryOptions,p=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)(qd,{...e}),(0,u.jsxs)(`div`,{className:`mt-8 flex flex-col gap-4`,children:[(0,u.jsx)(v,{as:`h2`,variant:`bold`,className:`text-primary`,children:i}),(0,u.jsx)(es,{id:`same-as-shipping`,name:`sameAsShipping`,label:o,checked:l,onChange:e=>{d(e.checked),s?.(e)}})]}),l?null:(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(qd,{...t,idPrefix:t.idPrefix??`billing`,title:t.title??``,countryOptions:f,stateProvinceOptions:p})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Yd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(ef,{...r})})]})]})})},af=(e,t,n)=>new Intl.NumberFormat(t,{style:`currency`,currency:n}).format(e),of=({subtotal:e,shippingCost:t,items:n=[],title:r=`Order Summary`,totalLabel:i=`Total`,locale:a=`en-US`,currency:o=`USD`,removeItemLabel:s=`Remove item`,decreaseQuantityLabel:c=`Decrease quantity`,increaseQuantityLabel:l=`Increase quantity`,onQuantityChange:d,onRemoveItem:f})=>{if(n.length===0)return null;let p=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)(v,{as:`h2`,id:`cart-summary-heading`,variant:`free`,className:`p-6 text-xl font-extrabold text-primary`,children:r}),(0,u.jsx)(`ol`,{className:`flex flex-col min-h-[24rem]`,children:n.map((e,t)=>{let r=t===n.length-1;return(0,u.jsxs)(`li`,{children:[(0,u.jsx)(fc,{imageSrc:e.imageSrc,imageAlt:e.imageAlt||e.title,title:e.title,brand:e.brand||``,decorNumber:e.decorNumber||``,quantity:e.quantity,errorMessage:e.errorMessage,price:e.price,minQuantity:e.minQuantity,maxQuantity:e.maxQuantity,removeItemLabel:s,decreaseQuantityLabel:c,increaseQuantityLabel:l,onQuantityChange:t=>d?.(e.id,t),onRemoveItem:()=>f?.(e.id)}),r?null:(0,u.jsx)(`div`,{className:`mx-6 border-b border-secondaryHover`})]},e.id)})}),(0,u.jsx)(`div`,{className:`px-6 pt-8 pb-8 border-t border-secondaryActive`,children:(0,u.jsxs)(`div`,{className:`flex justify-between pb-2`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-left font-bold`,children:i}),(0,u.jsx)(v,{variant:`free`,className:`text-right font-bold pr-7`,children:af(p,a,o)})]})})]})})},sf=({currentStep:e=0,steps:t=[`Account`,`Shipping`,`Payment`],activeMode:n=`signIn`,email:r=``,password:i=``,firstName:a=``,lastName:o=``,phoneNumber:s=``,userType:c=``,confirmPassword:l=``,marketingOptIn:d=!1,termsAccepted:f=!1,passwordRequirementsText:p,emailError:m=``,passwordError:h=``,firstNameError:g=``,phoneNumberError:_=``,userTypeError:v=``,confirmPasswordError:y=``,termsAcceptedError:b=``,emailHasError:x=!1,passwordHasError:S=!1,firstNameHasError:C=!1,phoneNumberHasError:w=!1,userTypeHasError:T=!1,confirmPasswordHasError:E=!1,termsAcceptedHasError:D=!1,actionLabels:O,labels:k,onModeChange:A,onEmailChange:j,onPasswordChange:M,onFirstNameChange:N,onLastNameChange:P,onPhoneNumberChange:F,onUserTypeChange:I,onConfirmPasswordChange:L,onMarketingOptInChange:R,onTermsAcceptedChange:ee,onEmailBlur:z,onPasswordBlur:te,onForgotPasswordClick:ne,onTermsClick:re,onPrivacyClick:ie,onContinue:ae,onContinueAsGuest:oe})=>(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-8`,children:[(0,u.jsx)(Yd,{steps:t,currentStep:e}),(0,u.jsx)(Zu,{data:{mode:n,email:r,password:i,firstName:a,lastName:o,phoneNumber:s,userType:c,confirmPassword:l,marketingOptIn:d,termsAccepted:f,passwordRequirementsText:p,errors:{email:x?m:void 0,password:S?h:void 0,firstName:C?g:void 0,phoneNumber:w?_:void 0,userType:T?v:void 0,confirmPassword:E?y:void 0,termsAccepted:D?b:void 0}},actionLabels:O??{signInPrimary:`Continue`,createAccountPrimary:`Continue`,secondary:`Continue as guest`},labels:k,onModeChange:A,onEmailChange:j,onPasswordChange:M,onFirstNameChange:N,onLastNameChange:P,onPhoneNumberChange:F,onUserTypeChange:I,onConfirmPasswordChange:L,onMarketingOptInChange:R,onTermsAcceptedChange:ee,onEmailBlur:z,onPasswordBlur:te,onForgotPasswordClick:ne,onTermsClick:re,onPrivacyClick:ie,onSignInClick:ae,onCreateAccountClick:ae,onSecondaryClick:oe})]}),cf=e=>e.customerState===`authenticated`?(0,u.jsx)(`section`,{className:`mt-10 flex w-full justify-center px-4 pb-16 md:px-6`,children:(0,u.jsxs)(`div`,{className:`w-full max-w-3xl`,children:[(0,u.jsx)(Yd,{...e.checkoutProgressIndicatorProps}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(of,{...e.cartSummaryProps})}),(0,u.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,u.jsx)(P,{label:e.continueLabel??`Continue to shipping`,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`accent`,className:`w-full md:w-auto`,disabled:e.continueDisabled,onClick:e.onContinueClick})})]})}):(0,u.jsx)(`section`,{className:`mt-10 flex w-full justify-center px-4 pb-16 md:px-6`,children:(0,u.jsxs)(`div`,{className:`grid w-full max-w-6xl grid-cols-1 gap-8 md:grid-cols-2`,children:[(0,u.jsx)(of,{...e.cartSummaryProps}),(0,u.jsx)(sf,{...e.checkoutAccountStepProps})]})}),lf=({pageTitle:e,pageDescription:t,sideNavProps:n,headerLeading:r,headerActions:i,backgroundJobTrayProps:a,children:o})=>{let s=t?.trim()??``;return(0,u.jsx)(`div`,{className:`min-h-screen bg-secondary`,children:(0,u.jsxs)(`div`,{className:`flex min-h-screen overflow-hidden bg-secondary`,children:[(0,u.jsx)(`aside`,{className:`hidden w-56 shrink-0 md:block`,children:(0,u.jsx)(Nc,{...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)(v,{as:`h1`,variant:`free`,className:`text-2xl font-bold text-primary`,children:e}),s?(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-primary`,children:s}):null]}),i?(0,u.jsx)(`div`,{className:`shrink-0`,children:i}):null]}),o]}),a?(0,u.jsx)(Bc,{...a}):null]})})},uf={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`}},df=e=>{if(e===`loading`)return`status`;if(e===`error`)return`alert`},ff=({status:e,action:t,onRetryClick:n})=>{if(e.state===`ready`)return null;let r=uf[e.state],i=e.title?.trim()||r.defaultTitle,a=e.message?.trim()??``,o=e.detail?.trim()??``;return(0,u.jsx)(`section`,{role:df(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)(w,{label:``,size:`2xl`}):(0,u.jsx)(S,{iconType:`fa-solid`,iconName:r.iconName,alt:``,size:`2xl`,className:r.iconClassName}),(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`mt-4 text-lg font-bold text-primary`,children:i}),a?(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-primary`,children:a}):null,o?(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-xs text-tertiary`,children:o}):null,t?(0,u.jsx)(`div`,{className:`mt-5`,children:t}):null,!t&&e.state===`error`&&e.retryLabel?(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(P,{label:e.retryLabel,iconType:`fa-solid`,iconName:`rotate`,iconAlt:``,variant:`solid`,intent:`primary`,onClick:n})}):null]})})},pf=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`,mf=e=>{let t=e.onBackClick?(0,u.jsx)(P,{label:e.backLabel??`Back to browse`,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`ghost`,intent:`primary`,size:`sm`,className:`px-0`,onClick:e.onBackClick}):void 0;if(!(`data`in e)){let n=e.state===`notFound`||e.state===`empty`?`empty`:e.state;return(0,u.jsxs)(lf,{pageTitle:e.pageTitle,sideNavProps:e.sideNavProps,backgroundJobTrayProps:e.backgroundJobTrayProps,children:[t?(0,u.jsx)(`div`,{className:`mt-5`,children:t}):null,(0,u.jsx)(ff,{status:{state:n,message:e.message,retryLabel:e.state===`error`?e.actionLabel:void 0},onRetryClick:`onActionClick`in e?e.onActionClick:void 0})]})}let{data:n,sideNavProps:r={items:[]},backgroundJobTrayProps:i,onTabSelect:a,onLocalizationSelect:o,onDecorFieldChange:s,onDecorLocalizationAvailabilityChange:c,onDecorSave:l,onDecorCancel:d,onDeleteDecorClick:f,onLxImport:p,onNoticeActionClick:m,onVariantAvailabilityChange:h,onVariantAvailabilitySave:g,onVariantAvailabilityCancel:_}=e,{decor:y,decorEditor:b}=n,x=n.variantAvailabilityEditors??[],C=[`decor`,`sheets`,`samples`,...x.length?[`availability`]:[]],T=(n.availableTabs??C).filter(e=>e!==`availability`||x.length),E=n.mode===`create`,D=n.region===`north-america`,O=n.lxImport?.state===`loading`,k=D&&!E&&!!n.lxImport,A=y.name.trim()||`New decor`,j=`Decor ${y.decorCode} · Range ${y.rangeCode}`;E&&(j=`Enter a decor code to begin`,y.decorCode.trim()&&(j=`Decor ${y.decorCode}`,y.rangeCode.trim()&&(j+=` · Range ${y.rangeCode}`)));let M=b.activeLocalization.saveStatus===`saving`,N=b.searchColorFieldId?[...b.sharedFields,...b.localizedFields].filter(e=>e.id===b.searchColorFieldId):[],F=b.decorFlagFieldId?b.sharedFields.filter(e=>e.id===b.decorFlagFieldId):[],I=b.sharedFields.filter(e=>e.id!==b.searchColorFieldId&&e.id!==b.decorFlagFieldId),R=b.localizedFields.filter(e=>e.id!==b.searchColorFieldId);return(0,u.jsxs)(lf,{pageTitle:n.pageTitle,pageDescription:n.pageDescription,sideNavProps:r,backgroundJobTrayProps:i,children:[(0,u.jsxs)(`section`,{className:`mt-5 flex items-center gap-4 rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[y.imageUrl?(0,u.jsx)(L,{src:y.imageUrl,alt:y.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)(S,{iconType:`fa-solid`,iconName:`swatchbook`,alt:``,size:`xl`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:A}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:j})]})]}),t?(0,u.jsx)(`div`,{className:`mt-3`,children:t}):null,n.notice?(0,u.jsxs)(`section`,{role:n.notice.tone===`error`?`alert`:`status`,className:`mt-4 rounded-lg border p-4 ${pf(n.notice.tone)}`,children:[n.notice.title?(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:n.notice.title}):null,(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:n.notice.message}),n.notice.actionLabel?(0,u.jsx)(`div`,{className:`mt-3`,children:(0,u.jsx)(P,{label:n.notice.actionLabel,variant:`outline`,intent:`primary`,size:`sm`,onClick:m})}):null]}):null,(0,u.jsx)(`div`,{role:`tablist`,"aria-label":`Market readiness editor`,className:`mt-5 flex gap-2 overflow-x-auto border-b border-borderTertiary`,children:[{id:`decor`,label:`Decor`},{id:`sheets`,label:`Buy Now (${n.skus.length})`},{id:`samples`,label:`Samples (${n.samples.length})`},{id:`availability`,label:`Availability`}].filter(e=>T.includes(e.id)).map(e=>{let t=n.activeTabId===e.id;return(0,u.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":t,className:`shrink-0 border-b-4 px-5 py-3 text-sm font-bold ${t?`border-primary text-primary`:`border-transparent text-tertiary hover:text-primary`}`,onClick:()=>a?.({tabId:e.id}),children:e.label},e.id)})}),k&&O?(0,u.jsx)(`section`,{role:`status`,"aria-live":`polite`,className:`mt-5 rounded-lg border border-borderTertiary bg-secondary p-4`,children:(0,u.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,u.jsx)(w,{label:``,size:`sm`}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:`Loading SKUs from LX`}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:`Buy Now and Samples will fill in as LX records are added.`})]})]})}):null,k&&n.lxImport?.state===`error`?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`mt-5 rounded-lg border border-accent bg-accent/10 p-4 text-sm text-accent`,children:n.lxImport.errorMessage??`LX SKUs could not be loaded. Try again.`}):null,n.activeTabId===`decor`?(0,u.jsxs)(`section`,{role:`tabpanel`,"aria-label":`Decor`,className:`mt-5 grid gap-5 md:grid-cols-3`,children:[(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:col-span-2`,children:(0,u.jsx)(xs,{title:`Decor details`,description:b.sharedDescription,headerAction:k?(0,u.jsx)(P,{label:`LX`,"aria-label":`Load Buy Now and sample SKUs from LX`,iconType:`fa-solid`,iconName:O?`spinner`:`server`,iconAlt:``,variant:`outline`,intent:`neutral`,size:`xs`,disabled:n.lxImport?.disabled||O||!p,"aria-busy":O||void 0,onClick:()=>p?.({decorId:y.id,decorCode:y.decorCode})}):null,fields:[...R,...I,...F,...N],fieldGroups:[{id:`localized-decor-fields`,title:`${b.activeLocalization.heading} content`,description:b.localizationDescription??`These fields change with the selected locale.`,fieldIds:R.map(e=>e.id)},{id:`shared-decor-fields`,title:b.sharedTitle??`Shared decor details`,fieldIds:I.map(e=>e.id)}],density:`compact`,severityDisplay:`icon`,fieldMessagePlacement:`below-label`,showActions:!1,validationSummary:(0,u.jsxs)(u.Fragment,{children:[b.localizationAvailability?.length?(0,u.jsx)(`div`,{className:`mb-5 border-t border-borderTertiary pt-5`,children:(0,u.jsx)(ts,{iconName:`globe`,indentOptions:!0,label:b.localizationAvailabilityLabel??`Sub-region availability`,defaultOpen:!1,options:b.localizationAvailability.map(e=>({id:`decor-localization-${e.id}`,name:`decorLocalizationAvailability`,label:e.label,checked:e.enabled??!0,disabled:e.disabled||M,onChange:({checked:t})=>c?.({decorId:y.id,localizationId:e.id,enabled:t})}))})}):null,(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:b.deleteLabel?(0,u.jsx)(P,{label:b.deleteLabel,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,variant:`outline`,intent:`danger`,disabled:b.deleteDisabled||M,onClick:()=>f?.({decorId:y.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(K,{status:b.activeLocalization.saveStatus,label:b.activeLocalization.saveStatusLabel,errorMessage:b.activeLocalization.saveErrorMessage,lastSavedLabel:b.activeLocalization.lastSavedLabel}),b.controls.saveHelpText?(0,u.jsx)(v,{variant:`free`,className:`max-w-md text-right text-xs text-tertiary`,children:b.controls.saveHelpText}):null,(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(P,{label:b.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:b.controls.cancelDisabled||M,onClick:()=>d?.({decorId:y.id,localizationId:b.activeLocalization.id})}),(0,u.jsx)(P,{label:b.controls.saveLabel,iconType:`fa-solid`,iconName:M?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:b.controls.saveDisabled||M,"aria-busy":M||void 0,onClick:()=>l?.({decorId:y.id,localizationId:b.activeLocalization.id})})]})]})]})]}),onDynamicFormFieldChange:({fieldId:e,value:t})=>{let n=b.sharedFields.some(t=>t.id===e);s?.({decorId:y.id,localizationId:n?void 0:b.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)(wu,{title:`Decor localizations`,markets:b.markets,selectedLocalizationId:b.activeLocalization.id,localizationSelectionDisabled:M,onLocalizationSelect:o})})]}):null,n.activeTabId===`sheets`?(0,u.jsx)(Os,{...e,itemType:`sheet`,sectionData:{region:n.region,items:n.skus,editor:n.skuEditor,guide:n.region?n.skuGuides?.[n.region]:void 0}}):null,n.activeTabId===`samples`?(0,u.jsx)(Os,{...e,itemType:`sample`,sectionData:{region:n.region,items:n.samples,editor:n.sampleEditor,guide:n.region?n.skuGuides?.[n.region]:void 0,sampleGuide:n.sampleGuide}}):null,n.activeTabId===`availability`&&T.includes(`availability`)?(0,u.jsx)(ks,{editors:x,onVariantAvailabilityChange:h,onVariantAvailabilitySave:g,onVariantAvailabilityCancel:_}):null]})},hf=({pageTitle:e,welcomeTitle:t,welcomeMessage:n,aboutTitle:r,aboutDescription:i,sideNavProps:a})=>(0,u.jsx)(`div`,{className:`min-h-screen bg-secondary`,children:(0,u.jsxs)(`div`,{className:`flex min-h-screen overflow-hidden bg-secondary`,children:[(0,u.jsx)(`aside`,{className:`hidden w-56 shrink-0 md:block`,children:(0,u.jsx)(Nc,{...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)(v,{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)(S,{iconType:`fa-solid`,iconName:`database`,alt:``,size:`xl`,className:`text-primary`})}),(0,u.jsx)(v,{as:`h2`,id:`admin-dashboard-welcome-heading`,variant:`free`,className:`mt-5 text-xl font-bold text-primary`,children:t}),(0,u.jsx)(v,{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)(v,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:r}),(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-primary`,children:i})]})]})]})]})}),gf=e=>e===`admin`?`Admin`:`User`,_f=({message:e,tone:t=`default`})=>(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5`,children:(0,u.jsx)(v,{variant:`free`,className:`text-sm ${t===`error`?`text-accent`:`text-primary`}`,children:e})}),vf=({message:e})=>{let t=e?.trim()??``;return t?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-accent`,children:t}):null},yf=({pageTitle:e,pageDescription:t,sideNavProps:n,hasAdminAccess:r,accessRequiredTitle:i=`Admin Access Required`,accessRequiredMessage:a=`Your account can use Data Forge, but only admins can manage the allow list.`,state:o,loadingMessage:s=`Loading authorization users...`,errorMessage:c=`Data Forge could not load the allow list.`,createUserDraft:l,roleOptions:d,regionOptions:f,users:p,defaultRegionLabel:m=`Default Region`,defaultRegionPlaceholder:h=`Select region`,createMessage:g,updateMessage:_,deleteMessage:y,createPending:b=!1,updatePending:x=!1,deletePending:S=!1,deleteUserEmail:C,addUserLabel:w=`Add User`,addingUserLabel:T=`Adding...`,updateLabel:E=`Update`,updatingLabel:D=`Updating...`,activateLabel:O=`Activate`,suspendLabel:k=`Suspend`,removeLabel:A=`Remove`,removingLabel:j=`Removing...`,cancelLabel:M=`Cancel`,onNewUserEmailChange:N,onNewUserRoleChange:F,onNewUserActiveChange:I,onNewUserDefaultRegionChange:L,onCreateUser:R,onRowUpdate:ee,onUserActiveToggle:z,onDeleteUserRequest:te,onDeleteModalClose:ne,onDeleteUserConfirm:re})=>{let ie=t?.trim()??``,ae=l.active&&!l.defaultRegion.trim(),oe=p.map(e=>({id:e.email,values:{active:e.active?`active`:`inactive`,email:e.email,role:e.role,defaultRegion:e.defaultRegion}})),B=`${p.length.toLocaleString()} ${p.length===1?`user`:`users`}`,V=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)(v,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:e.email}),(0,u.jsxs)(v,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:[gf(e.role),` - `,e.active?`Active`:`Inactive`,e.isCurrentUser?` - Current user`:``]})]}),(0,u.jsxs)(`div`,{className:`flex flex-wrap gap-2 md:justify-end`,children:[(0,u.jsx)(P,{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?k:O,size:`sm`,type:`button`,variant:`outline`,onClick:()=>z?.({user:e})}),(0,u.jsx)(P,{disabled:S||e.removeDisabled,iconAlt:``,iconName:`trash`,iconType:`fa-solid`,intent:`danger`,label:A,size:`sm`,type:`button`,variant:`outline`,onClick:()=>te?.({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)(Nc,{...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)(v,{as:`h1`,variant:`free`,className:`text-2xl font-bold text-primary`,children:e}),ie?(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-primary`,children:ie}):null]}),r?(0,u.jsxs)(`div`,{className:`mt-5 grid gap-5`,children:[(0,u.jsxs)(`form`,{"aria-label":`Add authorization user`,className:`grid gap-4 rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:grid-cols-6 md:items-end`,onSubmit:e=>{e.preventDefault(),R?.({user:l})},children:[(0,u.jsxs)(`div`,{className:`grid gap-2 md:col-span-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-email`,children:`Email`}),(0,u.jsx)(Zo,{id:`authorization-user-email`,name:`email`,type:`email`,value:l.email,placeholder:`person@formica.com`,disabled:b,autoComplete:`email`,onChange:e=>N?.({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)(os,{id:`authorization-user-role`,name:`role`,value:l.role,disabled:b,options:d,onChange:e=>F?.({role:e.target.value})})]}),(0,u.jsxs)(`div`,{className:`grid gap-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-default-region`,children:m}),(0,u.jsx)(os,{id:`authorization-user-default-region`,name:`defaultRegion`,value:l.defaultRegion,placeholder:h,disabled:b,required:l.active,hasError:ae,options:f,onChange:e=>L?.({region:e.target.value})})]}),(0,u.jsxs)(`div`,{className:`grid gap-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-active`,children:`Status`}),(0,u.jsx)(os,{id:`authorization-user-active`,name:`active`,value:l.active?`active`:`inactive`,disabled:b,options:[{label:`Active`,value:`active`},{label:`Inactive`,value:`inactive`}],onChange:e=>I?.({active:e.target.value===`active`})})]}),(0,u.jsx)(P,{disabled:b||ae,iconAlt:``,iconName:`user-plus`,iconType:`fa-solid`,intent:`primary`,label:b?T:w,type:`submit`,variant:`solid`})]}),(0,u.jsx)(vf,{message:g}),o===`loading`?(0,u.jsx)(_f,{message:s}):null,o===`error`?(0,u.jsx)(_f,{message:c,tone:`error`}):null,(0,u.jsx)(Mu,{ariaLabel:`Authorization users`,columns:[{editable:!1,id:`email`,label:`Email`,width:`xl`},{id:`role`,label:`Role`,maxLength:5,width:`sm`,editor:`select`,options:d},{id:`active`,label:`Status`,maxLength:8,width:`sm`,editor:`select`,options:[{label:`Active`,value:`active`},{label:`Inactive`,value:`inactive`}]},{id:`defaultRegion`,label:m,width:`md`,editor:`select`,options:f,placeholder:h,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:B,rows:oe,title:`Allow List`,updateLabel:x?D:E,updateDisabled:x,onRowUpdate:ee}),(0,u.jsx)(vf,{message:_}),(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)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`User Actions`}),(0,u.jsx)(v,{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:p.map(V)}),(0,u.jsx)(vf,{message:y})]})]}):(0,u.jsxs)(`section`,{className:`mt-5 rounded-lg border border-borderTertiary bg-secondary p-5`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:i}),(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-primary`,children:a})]})]})]}),(0,u.jsx)(Hc,{closeLabel:M,open:!!C,size:`md`,title:`Remove User?`,onClose:()=>ne?.(),children:(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(v,{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)(P,{disabled:S,intent:`primary`,label:M,size:`sm`,type:`button`,variant:`outline`,onClick:()=>ne?.()}),(0,u.jsx)(P,{disabled:S,iconAlt:``,iconName:`trash`,iconType:`fa-solid`,intent:`danger`,label:S?j:A,size:`sm`,type:`button`,variant:`solid`,onClick:()=>{C&&re?.({email:C})}})]})]})})]})},bf={loading:{iconName:`spinner`,iconClassName:`text-tertiary`,iconSurfaceClassName:`bg-tertiaryActive`},info:{iconName:`circle-info`,iconClassName:`text-blue-600`,iconSurfaceClassName:`bg-blue-50`},warning:{iconName:`triangle-exclamation`,iconClassName:`text-yellow-700`,iconSurfaceClassName:`bg-yellow-50`},error:{iconName:`circle-exclamation`,iconClassName:`text-accent`,iconSurfaceClassName:`bg-accent/10`}},xf=e=>{if(e===`loading`)return`status`;if(e===`error`)return`alert`},Sf=({eyebrow:e,title:t,description:n,detail:r,tone:i,primaryAction:a,secondaryAction:o,informationGroups:s=[],onActionClick:c})=>{let l=e?.trim()??``,d=r?.trim()??``,f=bf[i],p=(e,t)=>(0,u.jsx)(P,{label:e.label,iconAlt:``,iconName:e.loading?`spinner`:e.iconName,iconType:e.loading||e.iconName?`fa-solid`:void 0,intent:`primary`,variant:t,disabled:e.disabled||e.loading,"aria-busy":e.loading||void 0,onClick:()=>c?.({actionId:e.id})},e.id);return(0,u.jsx)(`main`,{className:`flex min-h-screen items-center justify-center bg-tertiaryActive px-4 py-10`,children:(0,u.jsxs)(`section`,{role:xf(i),"aria-live":i===`loading`?`polite`:void 0,"aria-busy":i===`loading`||void 0,className:`w-full max-w-2xl rounded-lg border border-borderTertiary bg-secondary p-6 text-center shadow-sm md:p-10`,children:[(0,u.jsx)(`div`,{"data-testid":`admin-auth-status-icon`,className:`mx-auto flex h-16 w-16 items-center justify-center rounded-full ${f.iconSurfaceClassName}`,children:i===`loading`?(0,u.jsx)(w,{label:``,size:`2xl`}):(0,u.jsx)(S,{iconType:`fa-solid`,iconName:f.iconName,alt:``,size:`2xl`,className:f.iconClassName})}),l?(0,u.jsx)(v,{variant:`free`,className:`mt-6 text-xs font-bold uppercase tracking-wide text-tertiary`,children:l}):null,(0,u.jsx)(v,{as:`h1`,variant:`free`,className:`${l?`mt-2`:`mt-6`} text-2xl font-bold text-primary`,children:t}),(0,u.jsx)(v,{variant:`free`,className:`mx-auto mt-3 max-w-xl text-primary`,children:n}),d?(0,u.jsx)(v,{variant:`free`,className:`mx-auto mt-3 max-w-xl text-sm text-tertiary`,children:d}):null,s.length?(0,u.jsx)(`div`,{className:`mt-6 grid gap-4 text-left md:grid-cols-2`,children:s.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`admin-auth-status-${e.id}`,className:`rounded-lg border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(v,{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?p(o,`outline`):null,a?p(a,`solid`):null]}):null]})})},Cf=({pageTitle:e,pageDescription:t,sideNavProps:n,regionOptions:r,regionValue:i,regionLabel:a=`Region`,regionPlaceholder:o=`Select region`,regionHelpText:s=`Searches and changes will use product data from this region.`,regionDisabled:l=!1,searchValue:d,searchLabel:f=`Search decors`,searchPlaceholder:p,searchDisabled:m=!1,browseMode:h=`decors`,manageRangesLabel:g=`Manage ranges`,rangeOptions:_,rangeResults:y=[],rangeResultCount:b=0,selectedRangeId:x,rangePromptTitle:S=`Select a range to view its decors`,rangePromptMessage:C=`Choose a range above to load its market-readiness records.`,emptyRangeTitle:T=`No decors found`,emptyRangeMessage:E=`Click the button to add the first decor to this range.`,resultCount:D,resultLabel:O=`decors`,addDecorLabel:k=`Add a new decor`,addFirstDecorLabel:A=`Add the first decor`,addRangeLabel:j=`New Range`,groups:M,status:N={state:`ready`},hasMore:F=!1,loadingMore:I=!1,loadMoreLabel:L,deleteDecorTarget:R,deleteDecorConfirmationValue:ee=``,deleteDecorPending:z=!1,deleteDecorErrorMessage:te,deleteDecorTitle:ne=`Delete decor?`,deleteDecorLabel:re=`Delete decor`,deletingDecorLabel:ie=`Deleting...`,deleteDecorCancelLabel:ae=`Cancel`,deleteDecorCloseLabel:oe=`Close delete decor dialog`,deleteRangeTarget:B,deleteRangeConfirmationValue:V=``,deleteRangePending:H=!1,deleteRangeErrorMessage:se,deleteRangeTitle:U=`Delete range?`,deleteRangeLabel:ce=`Delete range`,deletingRangeLabel:le=`Deleting...`,deleteRangeCancelLabel:ue=`Cancel`,deleteRangeCloseLabel:de=`Close delete range dialog`,onRegionChange:fe,onSearchChange:pe,onSearchSubmit:W,onRangeSelect:me,onManageRangesClick:he,onAddDecorClick:ge,onAddRangeClick:_e,onRangeClick:G,onDeleteRangeRequest:ve,onDeleteRangeConfirmationChange:ye,onDeleteRangeCancel:be,onDeleteRangeConfirm:xe,onDecorClick:Se,onDeleteDecorRequest:Ce,onDeleteDecorConfirmationChange:K,onDeleteDecorCancel:we,onDeleteDecorConfirm:Te,onLoadMore:Ee,onRetryClick:De})=>{let Oe=(0,c.useRef)(null),ke=(0,c.useRef)({options:_,selectedRangeId:x});N.state!==`loading`&&(ke.current={options:_,selectedRangeId:x});let Ae=N.state===`loading`&&_.length===0?ke.current.options:_,je=N.state===`loading`&&x===void 0?ke.current.selectedRangeId:x,Me=!i.trim()||l,J=h===`ranges`,Ne=J?b:D,Pe=O;J&&(Pe=b===1?`range`:`ranges`);let Fe=`${Ne.toLocaleString()} ${Pe}`,Ie=L??(J?`Load more ranges`:`Load more decors`),Le=J?y.length:M.reduce((e,t)=>e+t.items.length,0),Re=Ae.find(e=>e.id===je),ze=!!je,Be=!!d.trim(),Ve=J?`Search ranges`:f,He=p??(J?`Search ranges`:`Search decors across all ranges`),Ue=!!(R&&ee.trim()===R.decorCode),We=R?`${R.sheetCount.toLocaleString()} ${R.sheetCount===1?`sheet`:`sheets`} and ${R.sampleCount.toLocaleString()} ${R.sampleCount===1?`sample`:`samples`}`:``,Ge=!!(B&&V.trim()===B.rangeCode),Ke=ze&&!Be&&D===0;(0,c.useEffect)(()=>{let e=Oe.current;if(!e||!J&&!ze&&!Be||N.state!==`ready`||!F||I||!Ee||typeof IntersectionObserver>`u`)return;let t=!1,n=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&!t&&(t=!0,Ee())});return n.observe(e),()=>n.disconnect()},[F,I,Ee,d,je,J,N.state]);let Y=null;return I?Y=(0,u.jsx)(w,{label:`Loading more ${Pe}`,size:`md`}):F&&(Y=(0,u.jsx)(P,{label:Ie,variant:`outline`,intent:`primary`,disabled:!Ee,onClick:Ee})),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(lf,{pageTitle:e,pageDescription:t,sideNavProps:n,headerActions:(0,u.jsx)(Ko,{options:r,value:i,label:a,placeholder:o,helpText:s,disabled:l,name:`market-readiness-browse-region`,onChange:fe}),children:(0,u.jsxs)(`div`,{className:`mt-5 max-w-6xl`,children:[(0,u.jsxs)(`section`,{"aria-label":J?`Browse range controls`:`Browse decor controls`,children:[(0,u.jsx)(Qo,{id:`market-readiness-decor-search`,name:J?`rangeSearch`:`decorSearch`,ariaLabel:Ve,value:d,placeholder:He,controlSize:`default`,disabled:m||Me,onChange:e=>pe({value:e.target.value}),onClear:()=>pe({value:``}),onSearchSubmit:W}),(0,u.jsxs)(`div`,{className:`mt-3`,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Ranges`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,u.jsx)(q,{iconType:`fa-solid`,iconName:`list`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:J?`primary`:`neutral`,"aria-label":g,"aria-pressed":J,disabled:Me||N.state===`loading`||!he,onClick:he}),(0,u.jsx)(q,{iconType:`fa-solid`,iconName:`plus`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`primary`,"aria-label":j,disabled:Me||N.state===`loading`||!_e,onClick:()=>_e?.({region:i})})]})]}),(0,u.jsx)(`div`,{className:`mt-2`,children:(0,u.jsx)(qo,{ranges:Ae,selectedRangeId:je,disabled:Me,onRangeSelect:me})})]})]}),N.state===`loading`?(0,u.jsx)(`section`,{"aria-label":J?`Range results`:`Decor results`,"aria-busy":`true`,className:`mt-5 flex min-h-64 items-center justify-center rounded-lg border border-borderTertiary bg-secondary p-6 text-center shadow-sm`,children:(0,u.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,u.jsx)(w,{label:N.message?.trim()||`Loading ${J?`ranges`:`decors`}`,size:`2xl`}),(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:N.message?.trim()||`Loading ${J?`ranges`:`decors`}...`})]})}):null,N.state!==`ready`&&N.state!==`loading`?(0,u.jsx)(ff,{status:N,onRetryClick:De}):null,N.state===`ready`&&!J&&!ze&&!Be?(0,u.jsx)(ff,{status:{state:`empty`,title:S,message:C}}):null,N.state===`ready`&&J?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center justify-between gap-4`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:Be?`Range search results`:`Ranges`}),(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-tertiary`,children:Fe})]}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(Pu,{ranges:y,emptyMessage:`No ranges are available.`,onRangeClick:Me?void 0:G,onDeleteRangeRequest:Me?void 0:ve})})]}):null,N.state===`ready`&&!J&&(ze||Be)?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`mt-6 flex items-center justify-between gap-4`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:Be?`Search results`:Re?.label??`Selected range`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-tertiary`,children:Fe}),(0,u.jsx)(q,{iconType:`fa-solid`,iconName:`plus`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`primary`,"aria-label":Re&&!Be?`${k} to ${Re.label}`:k,disabled:Me||!ge,onClick:()=>ge?.({rangeId:je})})]})]}),Ke?(0,u.jsx)(ff,{status:{state:`empty`,title:T,message:E},action:(0,u.jsx)(P,{label:A,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:Me||!ge,onClick:()=>ge?.({rangeId:je})})}):(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(Nu,{groups:M,itemLabel:O,showGroupHeaders:!1,onDecorClick:Me?void 0:Se,onDeleteDecorRequest:Me?void 0:Ce})})]}):null,(J||ze||Be)&&N.state===`ready`&&(Le>0||F)?(0,u.jsxs)(`div`,{ref:Oe,className:`mt-6 flex flex-col items-center gap-3 border-t border-borderTertiary pt-5`,children:[(0,u.jsxs)(v,{variant:`free`,className:`text-sm text-tertiary`,children:[`Showing `,Le.toLocaleString(),` of`,` `,Ne.toLocaleString(),` `,Pe]}),Y]}):null]})}),(0,u.jsx)(Hc,{open:!!R,title:ne,description:`This permanently removes the decor and all records that belong to it. This action cannot be undone.`,closeLabel:oe,size:`sm`,onClose:()=>{z||we?.()},children:R?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(`div`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:R.name}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 font-mono text-xs text-tertiary`,children:R.decorCode}),(0,u.jsxs)(v,{variant:`free`,className:`mt-2 text-xs text-primary`,children:[`Deleting this decor also removes `,We,`.`]})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`label`,{htmlFor:`market-readiness-delete-confirmation`,className:`text-sm font-bold text-primary`,children:[`Type `,R.decorCode,` to confirm`]}),(0,u.jsx)(Zo,{id:`market-readiness-delete-confirmation`,name:`deleteDecorConfirmation`,value:ee,placeholder:R.decorCode,autoComplete:`off`,autoFocus:!0,disabled:z,hasError:!!te,onChange:e=>K?.({value:e.target.value})}),te?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`mt-2 text-sm text-accent`,children:te}):null]}),(0,u.jsxs)(`div`,{className:`flex justify-end gap-3`,children:[(0,u.jsx)(P,{label:ae,size:`sm`,variant:`outline`,intent:`primary`,disabled:z,onClick:()=>we?.()}),(0,u.jsx)(P,{label:z?ie:re,iconType:`fa-solid`,iconName:z?`spinner`:`trash`,iconAlt:``,size:`sm`,variant:`solid`,intent:`accent`,disabled:!Ue||z||!Te,onClick:()=>Te?.(R)})]})]}):null}),(0,u.jsx)(Hc,{open:!!B,title:U,description:`This permanently removes the empty range. This action cannot be undone.`,closeLabel:de,size:`sm`,onClose:()=>{H||be?.()},children:B?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(`div`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:B.name}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:B.rangeCode}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:[B.company,B.region,B.subRegion].filter(e=>e.trim()).join(` · `)})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`label`,{htmlFor:`market-readiness-range-delete-confirmation`,className:`text-sm font-bold text-primary`,children:[`Type `,B.rangeCode,` to confirm`]}),(0,u.jsx)(Zo,{id:`market-readiness-range-delete-confirmation`,name:`deleteRangeConfirmation`,value:V,placeholder:B.rangeCode,autoComplete:`off`,autoFocus:!0,disabled:H,hasError:!!se,onChange:e=>ye?.({value:e.target.value})}),se?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`mt-2 text-sm text-accent`,children:se}):null]}),(0,u.jsxs)(`div`,{className:`flex justify-end gap-3`,children:[(0,u.jsx)(P,{label:ue,size:`sm`,variant:`outline`,intent:`primary`,disabled:H,onClick:()=>be?.()}),(0,u.jsx)(P,{label:H?le:ce,iconType:`fa-solid`,iconName:H?`spinner`:`trash`,iconAlt:``,size:`sm`,variant:`solid`,intent:`accent`,disabled:!Ge||H||!xe,onClick:()=>xe?.(B)})]})]}):null})]})},wf=({pageTitle:e,pageDescription:t,sideNavProps:n,mode:r,rangeId:i,name:a,bynderName:o,rangeCode:s,productFamilyCode:c=``,company:l,companyCode:d,region:f,subRegion:p=``,companyOptions:m,productFamilyOptions:h=[],regionOptions:g,subRegionOptions:_,status:y={state:`ready`},fieldErrors:b={},formDisabled:x=!1,saveDisabled:C=!1,savePending:w=!1,saveErrorMessage:T,deleteDialogOpen:E=!1,deleteConfirmationValue:D=``,deletePending:O=!1,deleteErrorMessage:k,detailsTitle:A=`Range details`,detailsDescription:j=`These details determine where the range appears in Market Readiness.`,saveLabel:M=r===`create`?`Create range`:`Save changes`,savingLabel:N=`Saving...`,cancelLabel:F=`Cancel`,deleteTitle:I=`Delete range?`,deleteLabel:R=`Delete range`,deletingLabel:ee=`Deleting...`,deleteCancelLabel:z=`Cancel`,deleteCloseLabel:te=`Close delete range dialog`,onNameChange:ne,onBynderNameChange:re,onRangeCodeChange:ie,onProductFamilyCodeChange:ae,onCompanyChange:oe,onCompanyCodeChange:B,onRegionChange:V,onSubRegionChange:H,onSaveClick:se,onCancelClick:U,onDeleteRequest:ce,onDeleteConfirmationChange:le,onDeleteCancel:ue,onDeleteConfirm:de,onRetryClick:fe})=>{let pe=Le(l),W=x||w,me=!!_?.length,he=f===`europe`||f===`asia`,ge=f===`europe`?`Product Family (EU)`:`Product Family (AS)`,_e=_??[],G=he&&!p.trim()?`ALL`:p,ve=a.trim()||`New range`,ye=m.find(e=>e.value===l)?.label??l,be=g.find(e=>e.value===f)?.label??f,xe=_e.find(e=>e.value===G)?.label??G,Se=d.trim()?`${ye} (${d})`:ye,Ce=[s.trim()?`Range ${s}`:``,Se,be,he||me?xe:``].filter(e=>e.trim()).join(` · `),K=i?{rangeId:i}:{},q=i?{rangeId:i,rangeCode:s}:void 0,we=!!(q&&s.trim()&&D.trim()===s.trim());return(0,u.jsxs)(lf,{pageTitle:e,pageDescription:t,sideNavProps:n,children:[y.state===`ready`?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`section`,{className:`mt-5 flex items-center gap-4 rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsx)(`span`,{className:`flex h-16 w-16 shrink-0 items-center justify-center rounded-md border border-primary bg-primary p-2`,children:pe?(0,u.jsx)(L,{src:pe,alt:`${l} logo`,quality:85,fit:`contain`,className:`h-full w-full object-contain`}):(0,u.jsx)(S,{iconType:`fa-regular`,iconName:`building`,alt:`No company logo available`,size:`xl`,className:`text-secondary`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:ve}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:Ce||`Enter the range details below`})]})]}),(0,u.jsxs)(`form`,{className:`mt-5 max-w-4xl rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,onSubmit:e=>{e.preventDefault(),se?.(K)},children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:A}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:j}),(0,u.jsxs)(`div`,{className:`mt-5 grid gap-5 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-name`,className:`text-sm font-bold text-primary`,children:`Name`}),(0,u.jsx)(Zo,{id:`market-readiness-range-name`,name:`rangeName`,value:a,placeholder:`Marketing name`,autoComplete:`off`,required:!0,disabled:W,hasError:!!b.name,ariaDescribedBy:b.name?`market-readiness-range-name-error`:void 0,onChange:e=>ne?.({value:e.target.value})}),b.name?(0,u.jsx)(v,{id:`market-readiness-range-name-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.name}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-bynder-name`,className:`text-sm font-bold text-primary`,children:`Bynder Name`}),(0,u.jsx)(Zo,{id:`market-readiness-range-bynder-name`,name:`bynderName`,value:o,placeholder:`Bynder name`,autoComplete:`off`,disabled:W,hasError:!!b.bynderName,ariaDescribedBy:b.bynderName?`market-readiness-range-bynder-name-error`:void 0,onChange:e=>re?.({value:e.target.value})}),b.bynderName?(0,u.jsx)(v,{id:`market-readiness-range-bynder-name-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.bynderName}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-code`,className:`text-sm font-bold text-primary`,children:`Range Code`}),(0,u.jsx)(Zo,{id:`market-readiness-range-code`,name:`rangeCode`,value:s,placeholder:`Short code`,autoComplete:`off`,required:!0,disabled:W,hasError:!!b.rangeCode,ariaDescribedBy:b.rangeCode?`market-readiness-range-code-error`:void 0,onChange:e=>ie?.({value:e.target.value})}),b.rangeCode?(0,u.jsx)(v,{id:`market-readiness-range-code-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.rangeCode}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-company`,className:`text-sm font-bold text-primary`,children:`Company`}),(0,u.jsx)(os,{id:`market-readiness-range-company`,name:`rangeCompany`,value:l,placeholder:`Select a company`,options:m,required:!0,disabled:W,hasError:!!b.company,ariaDescribedBy:b.company?`market-readiness-range-company-error`:void 0,onChange:e=>oe?.({value:e.target.value})}),b.company?(0,u.jsx)(v,{id:`market-readiness-range-company-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.company}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-company-code`,className:`text-sm font-bold text-primary`,children:`Company Code`}),(0,u.jsx)(Zo,{id:`market-readiness-company-code`,name:`companyCode`,value:d,placeholder:`Short code`,autoComplete:`off`,required:!0,disabled:W,hasError:!!b.companyCode,ariaDescribedBy:b.companyCode?`market-readiness-company-code-error`:void 0,onChange:e=>B?.({value:e.target.value})}),b.companyCode?(0,u.jsx)(v,{id:`market-readiness-company-code-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.companyCode}):null]}),(0,u.jsxs)(`div`,{role:`group`,"aria-label":`Range location`,className:`grid gap-5 md:col-span-2 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{className:he||!me?`md:col-span-2`:void 0,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-region`,className:`text-sm font-bold text-primary`,children:`Region`}),(0,u.jsx)(os,{id:`market-readiness-range-region`,name:`rangeRegion`,value:f,placeholder:`Select a region`,options:g,required:!0,disabled:W,hasError:!!b.region,ariaDescribedBy:b.region?`market-readiness-range-region-error`:void 0,onChange:e=>V?.({value:e.target.value})}),b.region?(0,u.jsx)(v,{id:`market-readiness-range-region-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.region}):null]}),he?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-product-family-code`,className:`text-sm font-bold text-primary`,children:ge}),(0,u.jsx)(os,{id:`market-readiness-product-family-code`,name:`productFamilyCode`,value:c,placeholder:`Select a product family`,options:h,required:!0,disabled:W,hasError:!!b.productFamilyCode,ariaDescribedBy:b.productFamilyCode?`market-readiness-product-family-code-error`:void 0,onChange:e=>ae?.({value:e.target.value})}),b.productFamilyCode?(0,u.jsx)(v,{id:`market-readiness-product-family-code-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.productFamilyCode}):null]}):null,he?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-subregion`,className:`text-sm font-bold text-primary`,children:`Subregion`}),(0,u.jsx)(Zo,{id:`market-readiness-range-subregion`,name:`rangeSubRegion`,value:G,placeholder:`Enter a subregion`,autoComplete:`off`,disabled:W,hasError:!!b.subRegion,ariaDescribedBy:b.subRegion?`market-readiness-range-subregion-error`:void 0,onChange:e=>H?.({value:e.target.value})}),b.subRegion?(0,u.jsx)(v,{id:`market-readiness-range-subregion-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.subRegion}):null]}):null,!he&&me?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-subregion`,className:`text-sm font-bold text-primary`,children:`Subregion`}),(0,u.jsx)(os,{id:`market-readiness-range-subregion`,name:`rangeSubRegion`,value:p,placeholder:`Select a subregion`,options:_e,required:!0,disabled:W,hasError:!!b.subRegion,ariaDescribedBy:b.subRegion?`market-readiness-range-subregion-error`:void 0,onChange:e=>H?.({value:e.target.value})}),b.subRegion?(0,u.jsx)(v,{id:`market-readiness-range-subregion-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.subRegion}):null]}):null]})]}),(0,u.jsxs)(`div`,{className:`mt-6 flex flex-col-reverse gap-3 border-t border-borderTertiary pt-5 md:flex-row md:items-center md:justify-end`,children:[T?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`text-sm text-accent md:mr-auto`,children:T}):null,r===`edit`&&q&&ce?(0,u.jsx)(P,{type:`button`,label:R,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,variant:`outline`,intent:`danger`,disabled:W,className:`md:mr-auto`,onClick:()=>ce(q)}):null,(0,u.jsx)(P,{label:F,variant:`outline`,intent:`primary`,disabled:W,onClick:()=>U?.(K)}),(0,u.jsx)(P,{type:`submit`,label:w?N:M,iconType:`fa-solid`,iconName:w?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:W||C||!se,"aria-busy":w||void 0})]})]})]}):(0,u.jsx)(ff,{status:y,onRetryClick:fe}),(0,u.jsx)(Hc,{open:!!(E&&q),title:I,description:`This permanently removes the range. This action cannot be undone.`,closeLabel:te,size:`sm`,onClose:()=>{O||ue?.()},children:q?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(`div`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:ve}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 font-mono text-xs text-tertiary`,children:s})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`label`,{htmlFor:`market-readiness-range-delete-confirmation`,className:`text-sm font-bold text-primary`,children:[`Type `,s,` to confirm`]}),(0,u.jsx)(Zo,{id:`market-readiness-range-delete-confirmation`,name:`deleteRangeConfirmation`,value:D,placeholder:s,autoComplete:`off`,autoFocus:!0,disabled:O,hasError:!!k,onChange:e=>le?.({value:e.target.value})}),k?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`mt-2 text-sm text-accent`,children:k}):null]}),(0,u.jsxs)(`div`,{className:`flex justify-end gap-3`,children:[(0,u.jsx)(P,{label:z,size:`sm`,variant:`outline`,intent:`primary`,disabled:O,onClick:()=>ue?.()}),(0,u.jsx)(P,{label:O?ee:R,iconType:`fa-solid`,iconName:O?`spinner`:`trash`,iconAlt:``,size:`sm`,variant:`solid`,intent:`accent`,disabled:!we||O||!de,onClick:()=>de?.(q)})]})]}):null})]})},Tf=({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)(lf,{pageTitle:e,pageDescription:t,sideNavProps:r,headerLeading:n?(0,u.jsx)(P,{label:n,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`ghost`,intent:`primary`,size:`sm`,className:`mb-3 px-0`,onClick:s}):void 0,children:a.state===`ready`?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(Mu,{...i})}),o?(0,u.jsxs)(`nav`,{"aria-label":`Report pagination`,className:`mt-5 flex justify-end gap-3`,children:[(0,u.jsx)(P,{label:o.previousLabel,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`outline`,intent:`primary`,disabled:o.previousDisabled,onClick:l}),(0,u.jsx)(P,{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)(ff,{status:a,onRetryClick:c})}),Ef=e=>new Intl.NumberFormat(`en-US`).format(e),Df=({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)(S,{iconType:`fa-solid`,iconName:n,alt:``,size:`md`})}),(0,u.jsxs)(`div`,{className:`min-w-0 md:w-72`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e}),(0,u.jsx)(v,{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})]}),Of=({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)(v,{role:e===`error`?`alert`:`status`,variant:`free`,className:`mt-3 text-sm ${r}`,children:n})},kf=({dataSource:e})=>(0,u.jsxs)(`dl`,{className:`grid gap-3 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Source`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm font-semibold text-primary`,children:e.source.label})]}),(0,u.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Locale`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:e.source.locale})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Records`}),(0,u.jsx)(`dd`,{className:`mt-1 text-sm text-primary`,children:Ef(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]}),Af=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},dataSource:i,existingDataTitle:a=`Continue with saved data`,existingDataEmptyTitle:o=`No saved data set yet`,existingDataEmptyDescription:s=`Start by uploading a Salsify report or downloading the latest data directly from Salsify.`,useExistingDataLabel:l=`Use Saved Data`,uploadTitle:d=`Upload a Salsify report`,uploadDescription:f=`Use a report exported from Salsify when you already have the file ready.`,uploadDropLabel:p=`Drag a report file here`,uploadBrowseLabel:m=`Select File`,uploadHelpText:h=`JSON exports from Salsify are supported.`,selectedFile:g,uploadStatus:_=`idle`,uploadStatusMessage:y,uploadLabel:b=`Upload Report`,uploadDisabled:x=!1,clearFileLabel:C=`Clear File`,directDownloadTitle:w=`Download from Salsify`,directDownloadDescription:T=`Choose a product range and Data Forge will request the latest records for you.`,rangeLabel:E=`Product Range`,rangePlaceholder:D=`Select a range`,rangeOptions:O,selectedRangeValue:k=``,directDownloadLabel:A=`Download Latest Data`,downloadStatus:j=`idle`,downloadStatusMessage:M,downloadDisabled:N=!1,onUseExistingDataClick:F,onReportFileSelect:I,onUploadClick:L,onClearSelectedFileClick:R,onRangeChange:ee,onDirectDownloadClick:z,onRetryClick:te})=>{let ne=(0,c.useRef)(null),re=_===`pending`,ie=j===`pending`,ae=e=>I?.({files:Array.from(e??[])});return(0,u.jsx)(lf,{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)(Df,{title:i?a:o,description:i?`Review the saved data set and continue if it is the right source for this review.`:s,iconName:i?`database`:`circle-info`,children:i?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(kf,{dataSource:i}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(P,{label:l,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`primary`,fullWidth:!0,onClick:F})})]}):(0,u.jsx)(`div`,{className:`rounded-md border border-dashed border-borderTertiary bg-adminSideNavBackground p-4`,children:(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:s})})}),(0,u.jsxs)(Df,{title:d,description:f,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(),ae(e.dataTransfer.files)},children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`,className:`text-primary`}),(0,u.jsx)(v,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:p}),(0,u.jsx)(v,{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)(P,{label:m,iconType:`fa-solid`,iconName:`folder-open`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,disabled:re,onClick:()=>ne.current?.click()})}),(0,u.jsx)(`input`,{ref:ne,id:`salsify-report-upload`,type:`file`,className:`sr-only`,disabled:re,onChange:e=>ae(e.target.files)})]}),(0,u.jsx)(v,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:h}),g?(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)(S,{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)(v,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:g.name}),g.sizeLabel?(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:g.sizeLabel}):null]})]}),(0,u.jsxs)(`div`,{className:`mt-4 flex flex-col gap-2 md:flex-row md:justify-end`,children:[(0,u.jsx)(P,{label:C,variant:`outline`,intent:`primary`,size:`sm`,disabled:re,onClick:R}),(0,u.jsx)(P,{label:b,iconType:`fa-solid`,iconName:`cloud-arrow-up`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,disabled:x||re,"aria-busy":re||void 0,onClick:L})]})]}):null,(0,u.jsx)(Of,{status:_,message:y})]}),(0,u.jsxs)(Df,{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)(os,{id:`salsify-range`,name:`salsifyRange`,value:k,placeholder:D,options:O,disabled:ie,onChange:e=>ee?.({value:e.target.value})})]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(P,{label:A,iconType:`fa-solid`,iconName:`cloud-arrow-down`,iconAlt:``,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:N||ie,"aria-busy":ie||void 0,onClick:z})}),(0,u.jsx)(Of,{status:j,message:M})]})]}):(0,u.jsx)(ff,{status:r,onRetryClick:te})})},jf=(e,t,n)=>`${e.toLocaleString()} ${e===1?t:n}`,Mf=({status:e,message:t})=>{let n=t?.trim()??``;return!n||e===`idle`?null:(0,u.jsx)(v,{role:e===`error`?`alert`:`status`,variant:`free`,className:`mt-3 text-sm ${e===`error`?`text-accent`:`text-primary`}`,children:n})},Nf=({label:e,options:t,value:n,disabled:r=!1,onSelect:i})=>(0,u.jsxs)(`fieldset`,{children:[(0,u.jsxs)(`legend`,{className:`text-sm font-bold text-primary`,children:[e,n?null:(0,u.jsxs)(`span`,{className:`ml-3 text-xs font-normal text-accent`,children:[`Select one `,e.toLowerCase(),`.`]})]}),(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":e,"aria-required":`true`,"aria-invalid":!n||void 0,className:`mt-4 flex flex-wrap gap-2`,children:t.map(e=>{let t=e.value===n;return(0,u.jsx)(P,{label:e.label,variant:t?`solid`:`outline`,intent:`primary`,size:`sm`,role:`radio`,"aria-checked":t,disabled:r,onClick:()=>i(e.value)},e.value)})})]}),Pf=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},existingImportSet:i,regionOptions:a,selectedRegion:o,localityOptions:s,selectedLocality:l,localityDisabled:d=!1,intentOptions:f,selectedIntent:p,selectedFile:m,uploadStatus:h=`idle`,uploadStatusMessage:g,uploadDisabled:_=!1,continueExistingLabel:y=`Continue Import Set`,uploadLabel:b=`Upload and Continue`,clearFileLabel:x=`Clear File`,onContinueExistingClick:C,onRegionChange:w,onLocalityChange:T,onIntentChange:E,onFileSelect:D,onClearSelectedFileClick:O,onUploadClick:k,onRetryClick:A})=>{let j=(0,c.useRef)(null),M=(0,c.useId)(),N=h===`pending`,F=N||!o.trim()||!l.trim()||!p,I=e=>D?.({files:Array.from(e??[]).slice(0,1)});return(0,u.jsx)(lf,{pageTitle:e,pageDescription:t,sideNavProps:n,children:r.state===`ready`?(0,u.jsxs)(`div`,{className:`mt-6 grid gap-6`,children:[i?(0,u.jsxs)(`section`,{"aria-labelledby":`existing-import-set-title`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{as:`h2`,id:`existing-import-set-title`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Existing Import Set`}),(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-xs font-bold uppercase text-tertiary`,children:`Private and expiring`}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 font-bold text-primary`,children:i.fileName}),(0,u.jsxs)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:[i.regionLabel,` ·`,` `,i.localityLabel,` ·`,` `,i.intentLabel]}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:[i.rangeCount===void 0?null:jf(i.rangeCount,`range`,`ranges`),i.decorCount===void 0?null:jf(i.decorCount,`decor`,`decors`),i.skuCount===void 0?null:jf(i.skuCount,`SKU`,`SKUs`)].filter(Boolean).join(` · `)})]}),(0,u.jsx)(v,{variant:`free`,className:`shrink-0 rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-tertiary`,children:i.expiresLabel})]}),(0,u.jsx)(`div`,{className:`mt-5 flex justify-end`,children:(0,u.jsx)(P,{label:y,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,onClick:C})})]}):null,(0,u.jsxs)(`section`,{"aria-labelledby":`new-import-title`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsx)(v,{as:`h2`,id:`new-import-title`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Start a New Import`}),(0,u.jsxs)(`div`,{className:`mt-5 grid gap-6`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-3 gap-y-1`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:`Region`}),o.trim()?null:(0,u.jsx)(v,{variant:`free`,className:`text-xs text-accent`,children:`Select one region.`})]}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(Ko,{options:a,value:o,placeholder:``,onChange:w})})]}),(0,u.jsx)(Nf,{label:`Locality`,options:s,value:l,disabled:d,onSelect:e=>T({locality:e})}),(0,u.jsx)(Nf,{label:`Import Intent`,options:f,value:p,onSelect:e=>E({intent:e})}),(0,u.jsxs)(`fieldset`,{children:[(0,u.jsx)(`legend`,{className:`text-sm font-bold text-primary`,children:`Source File`}),(0,u.jsxs)(`div`,{className:`mt-3 flex min-h-40 flex-col items-center justify-center rounded-lg border border-dashed border-secondaryActive bg-adminSideNavBackground p-5 text-center transition hover:border-primary`,"aria-disabled":F||void 0,onDragOver:e=>e.preventDefault(),onDrop:e=>{e.preventDefault(),F||I(e.dataTransfer.files)},children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`,className:`text-primary`}),(0,u.jsx)(v,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:`Drag an .xlsx file here`}),(0,u.jsx)(v,{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)(P,{label:`Select File`,iconType:`fa-solid`,iconName:`folder-open`,iconAlt:``,variant:`outline`,size:`sm`,disabled:F,onClick:()=>j.current?.click()})}),(0,u.jsx)(`input`,{ref:j,id:`${M}-import-upload`,type:`file`,accept:`.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,className:`sr-only`,disabled:F,onChange:e=>I(e.target.files)})]}),m?(0,u.jsxs)(`div`,{className:`mt-4 flex flex-col gap-4 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`file-excel`,alt:``,size:`lg`}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(v,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:m.name}),m.sizeLabel?(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:m.sizeLabel}):null]})]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row`,children:[(0,u.jsx)(P,{label:x,variant:`outline`,size:`sm`,disabled:N,onClick:O}),(0,u.jsx)(P,{label:b,iconType:`fa-solid`,iconName:N?`spinner`:`cloud-arrow-up`,iconAlt:``,size:`sm`,disabled:_||F,"aria-busy":N||void 0,onClick:k})]})]}):null,(0,u.jsx)(Mf,{status:h,message:g})]})]})]})]}):(0,u.jsx)(ff,{status:r,onRetryClick:A})})},Ff={error:{iconName:`circle-exclamation`,label:`Error`,className:`text-accent`},warning:{iconName:`triangle-exclamation`,label:`Warning`,className:`text-primary`},info:{iconName:`circle-info`,label:`Information`,className:`text-primary`}},If=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},fileName:i,scopeLabel:a,summary:o,groups:s,backLabel:c=`Back to Upload`,continueLabel:l=`Continue to Review`,continueDisabled:d=!1,onBackClick:f,onContinueClick:p,onRetryClick:m})=>(0,u.jsx)(lf,{pageTitle:e,pageDescription:t,sideNavProps:n,children:r.state===`ready`?(0,u.jsxs)(`div`,{className:`mt-6 grid gap-5`,children:[(0,u.jsxs)(`section`,{"aria-label":`Import issue summary`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Validation Summary`}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm font-bold text-primary`,children:i}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:a})]}),(0,u.jsxs)(v,{variant:`free`,className:`shrink-0 rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-tertiary`,children:[o.totalCount.toLocaleString(),` issues`]})]}),(0,u.jsxs)(`dl`,{className:`mt-5 grid gap-3 md:grid-cols-3`,children:[(0,u.jsxs)(`div`,{className:`rounded-md bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Issues`}),(0,u.jsx)(`dd`,{className:`mt-1 text-2xl font-bold text-primary`,children:o.totalCount.toLocaleString()})]}),(0,u.jsxs)(`div`,{className:`rounded-md bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Blocking`}),(0,u.jsx)(`dd`,{className:`mt-1 text-2xl font-bold text-accent`,children:o.blockingCount.toLocaleString()})]}),(0,u.jsxs)(`div`,{className:`rounded-md bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Warnings`}),(0,u.jsx)(`dd`,{className:`mt-1 text-2xl font-bold text-primary`,children:o.warningCount.toLocaleString()})]})]})]}),(0,u.jsx)(`section`,{"aria-label":`Import issues`,className:`grid gap-4`,children:s.map(e=>(0,u.jsxs)(`article`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e.title}),e.description?(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:e.description}):null]}),(0,u.jsxs)(v,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:[e.issues.length.toLocaleString(),` `,e.issues.length===1?`issue`:`issues`]})]}),(0,u.jsx)(`ul`,{className:`mt-4 divide-y divide-borderTertiary rounded-md border border-borderTertiary`,children:e.issues.map(e=>{let t=Ff[e.severity];return(0,u.jsxs)(`li`,{className:`flex items-start gap-3 p-4`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:t.iconName,alt:``,className:`mt-0.5 shrink-0 ${t.className}`}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-xs font-bold uppercase ${t.className}`,children:t.label}),(0,u.jsx)(v,{variant:`free`,className:`rounded-full px-2 py-0.5 text-xs font-bold ${e.blocking?`bg-accent text-secondary`:`bg-tertiaryActive text-tertiary`}`,children:e.blocking?`Blocking`:`Non-blocking`}),e.location||e.identifier?(0,u.jsx)(v,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:[e.location,e.identifier?`${e.identifier.label}: ${e.identifier.value}`:null].filter(Boolean).join(` · `)}):null]}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:e.message})]})]},e.id)})})]},e.id))}),(0,u.jsxs)(`div`,{className:`flex flex-col-reverse gap-3 md:flex-row md:justify-end`,children:[(0,u.jsx)(P,{label:c,variant:`outline`,onClick:f}),(0,u.jsx)(P,{label:l,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,disabled:d,onClick:p})]})]}):(0,u.jsx)(ff,{status:r,onRetryClick:m})}),Lf={added:`Added`,updated:`Updated`,unchanged:`Unchanged`},Rf=({changeType:e})=>{let t=Lf[e];return(0,u.jsx)(`span`,{"aria-label":t,title:t,className:`mt-0.5 flex h-5 w-5 shrink-0 self-start items-center justify-center rounded-full bg-tertiary text-secondary`,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:e===`added`?`plus`:`pencil`,alt:``,size:`xs`})})},zf=({row:e})=>{let t=e.currentValue?.trim()||`—`,n=e.afterValue?.trim()||`—`;return(0,u.jsxs)(`div`,{className:`grid border-t border-borderTertiary md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 p-4`,children:[(0,u.jsx)(v,{variant:`free`,className:`mb-2 text-xs font-bold uppercase text-tertiary md:hidden`,children:`Current`}),(0,u.jsx)(v,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:e.label}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 break-words text-sm text-primary`,children:t})]}),(0,u.jsxs)(`div`,{className:`min-w-0 border-t border-borderTertiary bg-adminSideNavBackground p-4 md:border-l md:border-t-0`,children:[(0,u.jsx)(v,{variant:`free`,className:`mb-2 text-xs font-bold uppercase text-tertiary md:hidden`,children:`After`}),(0,u.jsx)(v,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:e.label}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 break-words text-sm ${e.changeType===`unchanged`?`text-tertiary`:`font-bold text-primary`}`,children:e.changeType===`unchanged`?t:n})]})]})},Bf=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},fileName:i,scopeLabel:a,ranges:o,cancelLabel:s=`Cancel Import`,continueLabel:c=`Apply Import`,continueDisabled:l=!1,cancelConfirmation:d,onCancelClick:f,onCancelConfirm:p,onCancelClose:m,onContinueClick:h,onRetryClick:g})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(lf,{pageTitle:e,pageDescription:t,sideNavProps:n,children:r.state===`ready`?(0,u.jsxs)(`div`,{className:`mt-6 grid gap-5`,children:[(0,u.jsxs)(`section`,{"aria-label":`Import review summary`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Final Import Review`}),(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm font-bold text-primary`,children:i}),(0,u.jsxs)(v,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:[a,` · `,o.length.toLocaleString(),` `,o.length===1?`range`:`ranges`]})]}),(0,u.jsx)(`section`,{"aria-label":`Changes in this import`,className:`grid gap-5`,children:o.map(e=>(0,u.jsxs)(`article`,{className:`overflow-hidden rounded-lg border border-borderTertiary bg-secondary shadow-sm`,children:[(0,u.jsxs)(`header`,{className:`flex flex-col gap-2 border-b border-borderTertiary p-5 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:`Range`}),(0,u.jsxs)(v,{as:`h2`,variant:`free`,className:`mt-1 text-lg font-bold text-primary`,children:[e.name,e.code?` · ${e.code}`:``]})]}),(0,u.jsx)(Rf,{changeType:e.changeType})]}),(0,u.jsx)(`div`,{className:`grid gap-5 p-5`,children:e.decors.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`${e.id}-title`,className:`overflow-hidden rounded-lg border border-borderTertiary`,children:[(0,u.jsxs)(`header`,{className:`flex flex-col gap-2 bg-tertiaryActive p-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:`Decor`}),(0,u.jsxs)(v,{as:`h3`,id:`${e.id}-title`,variant:`free`,className:`mt-1 text-base font-bold text-primary`,children:[e.code,e.name?` · ${e.name}`:``]})]}),(0,u.jsx)(Rf,{changeType:e.changeType})]}),(0,u.jsx)(`div`,{className:`grid gap-5 p-4`,children:e.sections.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`${e.id}-title`,children:[(0,u.jsx)(v,{as:`h4`,id:`${e.id}-title`,variant:`free`,className:`text-sm font-bold text-primary`,children:e.title}),(0,u.jsxs)(`div`,{className:`mt-3 overflow-hidden rounded-md border border-borderTertiary`,children:[(0,u.jsxs)(`div`,{className:`hidden grid-cols-2 bg-tertiaryActive md:grid`,children:[(0,u.jsx)(v,{variant:`free`,className:`px-4 py-3 text-xs font-bold uppercase text-tertiary`,children:`Current`}),(0,u.jsx)(v,{variant:`free`,className:`border-l border-borderTertiary px-4 py-3 text-xs font-bold uppercase text-tertiary`,children:`After`})]}),e.rows.map(e=>(0,u.jsx)(zf,{row:e},e.id))]})]},e.id))})]},e.id))})]},e.id))}),(0,u.jsxs)(`div`,{className:`flex flex-col-reverse gap-3 md:flex-row md:justify-end`,children:[(0,u.jsx)(P,{label:s,variant:`outline`,intent:`danger`,onClick:f}),(0,u.jsx)(P,{label:c,iconType:`fa-solid`,iconName:`check`,iconAlt:``,disabled:l,onClick:h})]})]}):(0,u.jsx)(ff,{status:r,onRetryClick:g})}),(0,u.jsx)(Hc,{open:d?.open??!1,title:d?.title??`Cancel import?`,closeLabel:d?.cancelLabel,size:`sm`,onClose:m??(()=>void 0),children:d?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsx)(v,{variant:`free`,className:`whitespace-pre-line text-sm text-primary`,children:d.message}),(0,u.jsxs)(`div`,{className:`flex flex-col-reverse gap-2 md:flex-row md:justify-end`,children:[(0,u.jsx)(P,{label:d.cancelLabel??`Keep Import Set`,variant:`outline`,disabled:d.pending,onClick:m}),(0,u.jsx)(P,{label:d.confirmLabel??`Delete Import Set`,intent:`danger`,disabled:d.pending,"aria-busy":d.pending||void 0,onClick:p})]})]}):null})]}),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)(v,{role:e===`error`?`alert`:`status`,variant:`free`,className:`mt-3 text-sm ${Vf(e)}`,children:n})},Uf=({guide:e,uploadDropLabel:t,uploadBrowseLabel:n,uploadLabel:r,clearFileLabel:i,completeLabel:a,onGuideFileSelect:o,onUploadClick:s,onClearSelectedFileClick:l})=>{let d=(0,c.useRef)(null),f=(0,c.useId)(),p=e.actionStatus??`idle`,m=p===`validating`||p===`pending`,h=(e.availability??`available`)===`available`,g=e.uploadDropLabel??t,_=e.uploadBrowseLabel??n,y=e.uploadLabel??r,b=e.completeLabel??a,x=t=>o?.({guideId:e.id,files:Array.from(t??[])});return(0,u.jsxs)(`article`,{className:`flex w-full flex-col rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:flex-row md:items-start md:gap-6`,children:[(0,u.jsxs)(`div`,{className:`flex items-start gap-4`,children:[e.logo?(0,u.jsx)(`span`,{className:`flex h-10 w-20 shrink-0 items-center justify-center rounded-md border border-borderTertiary bg-adminSideNavBackground px-3`,children:(0,u.jsx)(`img`,{src:e.logo.src,alt:e.logo.alt??``,className:`max-h-6 w-full object-contain opacity-70 brightness-0`,loading:`eager`,decoding:`async`})}):(0,u.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-borderTertiary bg-adminSideNavBackground text-primary`,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`book-open`,alt:``,size:`md`})}),(0,u.jsxs)(`div`,{className:`min-w-0 md:w-72`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e.title}),(0,u.jsx)(v,{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:h?(0,u.jsxs)(u.Fragment,{children:[p===`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)(S,{iconType:`fa-solid`,iconName:`circle-check`,alt:``,className:`shrink-0 text-saleGreen`}),(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:b})]}):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(),x(e.dataTransfer.files)},children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`,className:`text-primary`}),(0,u.jsx)(v,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:g}),(0,u.jsx)(v,{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)(P,{label:_,iconType:`fa-solid`,iconName:`folder-open`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,disabled:m,onClick:()=>d.current?.click()})}),(0,u.jsx)(`input`,{ref:d,id:`${f}-product-guide-upload`,type:`file`,accept:e.fileAccept??`.pdf,application/pdf`,className:`sr-only`,disabled:m,onChange:e=>x(e.target.files)})]}),e.selectedFile?(0,u.jsxs)(`div`,{className:`mt-4 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,u.jsx)(S,{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)(v,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:e.selectedFile.name}),e.selectedFile.sizeLabel?(0,u.jsx)(v,{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)(P,{label:i,variant:`outline`,intent:`primary`,size:`sm`,disabled:m,onClick:()=>l?.({guideId:e.id})}),(0,u.jsx)(P,{label:y,iconType:`fa-solid`,iconName:`cloud-arrow-up`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,disabled:e.uploadDisabled||m,"aria-busy":m||void 0,onClick:()=>s?.({guideId:e.id})})]})]}):null,e.validationIssues?.length?(0,u.jsxs)(`div`,{role:`alert`,className:`mt-4 rounded-md border border-accent bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(v,{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,p===`success`?null:(0,u.jsx)(Hf,{status:p,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)(S,{iconType:`fa-solid`,iconName:`clock`,alt:``,size:`xl`,className:`text-tertiary`}),(0,u.jsx)(v,{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 PDF file here`,uploadBrowseLabel:c=`Select PDF File`,uploadLabel:l=`Replace Active Guide`,clearFileLabel:d=`Clear File`,completeLabel:f=`Complete`,onGuideFileSelect:p,onUploadClick:m,onClearSelectedFileClick:h,onRetryClick:g})=>{let _;return _=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)(S,{iconType:`fa-solid`,iconName:`book`,alt:``,size:`2xl`,className:`text-tertiary`}),(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`mt-4 text-lg font-bold text-primary`,children:a}),(0,u.jsx)(v,{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,uploadLabel:l,clearFileLabel:d,completeLabel:f,onGuideFileSelect:p,onUploadClick:m,onClearSelectedFileClick:h},e.id))}):(0,u.jsx)(ff,{status:r,onRetryClick:g}),(0,u.jsx)(lf,{pageTitle:e,pageDescription:t,sideNavProps:n,children:_})},Gf=({scopeDescription:e,importDescription:t,acceptedExtensions:n,maxFileSizeBytes:r,fileName:i,state:a,message:o,errors:s=[],disabled:l=!1,onFileSelect:d,onFileRemove:f,onImportClick:p,onTemplateDownloadClick:m,mode:h,targetLabel:g,onModeChange:_,modeLabels:y})=>{let b=(0,c.useId)(),x=(0,c.useRef)(null),[C,w]=(0,c.useState)(!1),[T,E]=(0,c.useState)(``),D=a===`processing`||a===`importing`,O=l||D,k={add:{label:`Add or update current data`,description:`Add new vendors and update matching vendors in ${g}. Vendors missing from the upload are kept.`,uploadLabel:`Upload`,...y?.add},replace:{label:`Replace current data`,description:`Remove all current vendors in ${g} and use only the uploaded vendors.`,uploadLabel:`Upload`,...y?.replace}},A=e=>{if(O||!e.length)return;let t=e[0];if(e.length!==1){E(`Choose one spreadsheet at a time.`);return}if(!n.some(e=>t.name.toLowerCase().endsWith(e.toLowerCase()))){E(`Choose a supported file: ${n.join(`, `)}.`);return}if(!t.size||t.size>r){E(`Choose a non-empty file no larger than ${r/1024/1024} MB.`);return}E(``),d({file:t})};return(0,u.jsxs)(`section`,{"aria-labelledby":`${b}-title`,"aria-busy":D,className:`rounded-lg border border-borderTertiary bg-secondary p-5 md:p-6`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{as:`h2`,variant:`bold`,id:`${b}-title`,children:`Import vendor spreadsheet`}),(0,u.jsx)(v,{variant:`body`,className:`mt-2`,children:e}),(0,u.jsx)(v,{variant:`caption`,className:`mt-1`,children:t})]}),m&&(0,u.jsx)(P,{label:`Download template`,variant:`link`,size:`sm`,onClick:m,disabled:O})]}),(0,u.jsxs)(`div`,{className:`mt-5 flex min-h-40 flex-col items-center justify-center rounded-lg border border-dashed p-6 text-center transition ${C&&!O?`border-primary bg-secondaryActive`:`border-secondaryActive bg-adminSideNavBackground`}`,onDragOver:e=>{e.preventDefault(),O||w(!0)},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||w(!1)},onDrop:e=>{e.preventDefault(),w(!1),A(Array.from(e.dataTransfer.files))},children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`}),(0,u.jsx)(v,{variant:`bold`,className:`mt-3`,children:`Drop your spreadsheet here`}),(0,u.jsxs)(v,{variant:`caption`,className:`mt-1`,id:`${b}-hint`,children:[n.join(`, `),` · One file, up to`,` `,r/1024/1024,` MB`]}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(P,{label:i?`Choose another file`:`Choose file`,variant:`outline`,size:`sm`,disabled:O,onClick:()=>x.current?.click()})}),(0,u.jsx)(`input`,{ref:x,type:`file`,"aria-label":`Vendor spreadsheet`,"aria-describedby":`${b}-hint`,accept:n.join(`,`),className:`sr-only`,tabIndex:-1,disabled:O,onChange:e=>{A(Array.from(e.target.files??[])),e.target.value=``}})]}),T&&(0,u.jsx)(`p`,{role:`alert`,className:`mt-3 text-sm`,children:T}),i&&(0,u.jsxs)(`div`,{className:`mt-4 flex flex-col gap-3 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsx)(v,{variant:`body`,className:`min-w-0 break-words`,children:i}),(0,u.jsx)(P,{label:`Remove file`,variant:`ghost`,size:`sm`,disabled:O,onClick:()=>{E(``),f()}})]}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(Jd,{title:`How should this upload change the data?`,name:`${b}-mode`,selectedValue:h,options:[{id:`${b}-add`,value:`add`,label:k.add.label,description:k.add.description,disabled:O},{id:`${b}-replace`,value:`replace`,label:k.replace.label,description:k.replace.description,disabled:O}],onChange:e=>{(e===`add`||e===`replace`)&&_({mode:e})}})}),h===`replace`&&(0,u.jsxs)(`div`,{className:`mt-4 rounded-md border border-accent bg-secondary p-4`,role:`note`,children:[(0,u.jsxs)(v,{variant:`bold`,children:[`This will replace all vendor listings in `,g,`.`]}),(0,u.jsx)(v,{variant:`body`,className:`mt-1`,children:`Vendors missing from your spreadsheet will be removed. Other regions will not change.`})]}),(0,u.jsxs)(`div`,{role:a===`error`?`alert`:`status`,"aria-live":`polite`,className:`mt-3`,children:[o&&(0,u.jsx)(v,{variant:`body`,children:o}),s.length>0&&(0,u.jsx)(`ul`,{className:`mt-2 list-disc pl-5 text-sm`,children:s.map((e,t)=>(0,u.jsx)(`li`,{children:e},`${t}-${e}`))})]}),a!==`success`&&(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(P,{label:D?`Uploading…`:k[h].uploadLabel,disabled:O||!!T||!i,intent:h===`replace`?`danger`:`primary`,onClick:()=>p({mode:h})})})]})},Kf=({sideNavProps:e,regionSelectorProps:t,localities:n,status:r={state:`ready`},onLocalitySelect:i,onRetryClick:a,importProps:o})=>{let s=n.filter(e=>e.region===t.value);return(0,u.jsxs)(lf,{pageTitle:`Where to Buy`,pageDescription:`Manage the vendors customers see in each sub-region and language.`,sideNavProps:e,headerActions:(0,u.jsx)(Ko,{...t,helpText:`Select the region whose vendor listings you want to manage.`}),children:[r.state===`ready`?(0,u.jsxs)(`section`,{className:`mt-5 max-w-6xl`,"aria-label":`Localities`,children:[(0,u.jsx)(v,{as:`h2`,variant:`bold`,children:`Sub-regions and languages`}),(0,u.jsx)(v,{variant:`body`,className:`mt-1 mb-5`,children:`Select a locality to edit its vendor listings. Each language has its own content.`}),s.length?(0,u.jsx)(U,{columns:1,gridClassName:`md:grid-cols-3`,gap:`sm`,children:s.map(e=>(0,u.jsxs)(G,{ariaLabel:`Edit ${e.subRegion} · ${e.language}`,onCardClick:()=>i({localityId:e.id}),className:`w-full rounded-lg border border-borderTertiary bg-secondary p-5 text-left shadow-sm transition hover:border-primary focus-visible:ring-2 focus-visible:ring-primary`,children:[(0,u.jsx)(v,{as:`span`,variant:`bold`,className:`block`,children:e.subRegion}),(0,u.jsxs)(v,{as:`span`,variant:`body`,className:`mt-1 block`,children:[e.language,` · `,e.locale]}),(0,u.jsxs)(v,{as:`span`,variant:`caption`,className:`mt-4 block`,children:[e.vendorCount,` `,e.vendorCount===1?`vendor`:`vendors`]})]},e.id))}):(0,u.jsx)(ff,{status:{state:`empty`,title:t.value?`No localities in this region`:`Select a region`,message:`Choose a region above to browse its localities.`}})]}):(0,u.jsx)(ff,{status:r,onRetryClick:a}),r.state===`ready`&&o&&(0,u.jsx)(`div`,{className:`mt-8 max-w-6xl`,children:(0,u.jsx)(Gf,{...o},t.value)})]})},qf=(e,t={},n=[])=>[{id:`name`,label:`Vendor name`,type:`text`,value:e.name,required:!0},{id:`description`,label:`Description`,type:`textarea`,value:e.description},{id:`companyName`,label:`Company`,type:`select`,options:n,value:e.companyName,required:!0},{id:`address1`,label:`Street address`,type:`text`,value:e.address1,required:!0},{id:`city`,label:`Town or city`,type:`text`,value:e.city,required:!0,layoutWidth:`half`},{id:`postalCode`,label:`Postcode`,type:`text`,value:e.postalCode,layoutWidth:`half`},{id:`country`,label:`Country`,type:`text`,value:e.country,required:!0},{id:`latitude`,label:`Latitude`,type:`number`,value:e.latitude,required:!0,min:-90,max:90,step:1e-7,layoutWidth:`half`},{id:`longitude`,label:`Longitude`,type:`number`,value:e.longitude,required:!0,min:-180,max:180,step:1e-7,layoutWidth:`half`},{id:`email`,label:`Email address`,type:`text`,value:e.email,layoutWidth:`half`},{id:`phone`,label:`Telephone`,type:`text`,value:e.phone,layoutWidth:`half`},{id:`websiteUrl`,label:`Website URL`,type:`text`,value:e.websiteUrl}].map(e=>({...e,state:t[e.id]?`error`:`neutral`,message:t[e.id]})),Jf=e=>{let{locality:t,vendors:n,editor:r,selectedVendorId:i,isCreating:a=!1,saveState:o,lookup:s,status:c={state:`ready`}}=e,l=r??(i?n.find(e=>e.id===i):n[0]),d=o===`saving`||e.deletePending||s.state===`resolving`,f=o===`unsaved`||o===`error`||a,p=!!(d||f),m=`No matching addresses.`;s.state===`loading`?m=`Finding addresses...`:s.state===`error`&&(m=`Address suggestions are unavailable. Try again.`);let h={localityId:t.id,vendorId:l?.id??``},g=n.filter(t=>`${t.name} ${t.city}`.toLowerCase().includes(e.searchValue.trim().toLowerCase())),_=l&&l.latitude!==null&&l.longitude!==null&&Number.isFinite(l.latitude)&&Number.isFinite(l.longitude)&&Math.abs(l.latitude)<=90&&Math.abs(l.longitude)<=180;return(0,u.jsxs)(lf,{pageTitle:`Where to Buy`,pageDescription:`${t.subRegion} · ${t.language} · ${t.locale}`,sideNavProps:e.sideNavProps,children:[(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(P,{label:`Back to localities`,variant:`ghost`,iconType:`fa-solid`,iconName:`chevron-left`,disabled:p,onClick:e.onBackClick})}),c.state===`ready`?(0,u.jsxs)(`div`,{className:`mt-5 grid gap-5 md:h-[calc(100dvh-13rem)] md:min-h-96 md:grid-cols-3`,children:[(0,u.jsx)(`section`,{className:`order-2 min-h-0 min-w-0 md:order-1 md:col-span-2 md:overflow-y-auto`,"aria-label":`Vendor editor`,children:l?(0,u.jsxs)(`div`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsx)(v,{as:`h2`,variant:`bold`,children:a?`New vendor`:l.name}),(0,u.jsxs)(v,{variant:`caption`,className:`mt-1 mb-5`,children:[`Editing `,t.locale,`. Save or cancel your changes before switching vendors or localities.`]}),(0,u.jsxs)(`section`,{"aria-label":`Find address`,className:`mb-6`,children:[(0,u.jsx)(v,{as:`h3`,variant:`bold`,children:`Find address`}),(0,u.jsx)(`div`,{className:`mt-3`,children:(0,u.jsx)($o,{id:`vendor-address-autocomplete`,value:s.query,ariaLabel:`Address lookup`,placeholder:`Start typing an address`,minQueryLength:3,disabled:!!d,options:s.results.map(e=>({...e,value:e.id})),emptyMessage:m,onQueryChange:e.onLookupQueryChange,onClear:()=>e.onLookupQueryChange({value:``}),onOptionSelect:({option:t})=>e.onAddressSelect({...h,suggestion:{id:t.id,label:t.label}})})}),s.message?(0,u.jsx)(v,{role:s.state===`error`?`alert`:`status`,variant:`caption`,className:`mt-2`,children:s.message}):null,_?(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(Vu,{googleMapsApiKey:e.googleMapsApiKey,selectedLocationId:l.id,zoom:14,center:{lat:l.latitude,lng:l.longitude},ariaLabel:`Vendor location map`,legendLabel:`${l.address1}, ${l.city} · ${l.latitude}, ${l.longitude}`,locations:[{id:l.id,name:l.name,type:`distributor`,address:{lines:[l.address1],city:l.city,region:t.subRegion,postalCode:l.postalCode,country:l.country},coordinates:{lat:l.latitude,lng:l.longitude},stockedProducts:e.stockedRangeOptions.filter(e=>l.stockedRanges.includes(e.id))}]})}):(0,u.jsx)(v,{variant:`caption`,className:`mt-3`,children:`Find a location or enter valid coordinates to preview the map.`})]}),(0,u.jsxs)(`fieldset`,{disabled:!!d,className:`min-w-0`,children:[(0,u.jsx)(`legend`,{className:`sr-only`,children:`Vendor details`}),(0,u.jsx)(xs,{fields:qf(l,e.fieldErrors,e.companyNameOptions),density:`compact`,showActions:!1,fieldGroups:[{id:`content`,title:`Locality content`,fieldIds:[`name`,`description`,`companyName`]},{id:`address`,title:`Address`,fieldIds:[`address1`,`city`,`postalCode`,`country`,`latitude`,`longitude`]},{id:`contact`,title:`Contact details`,fieldIds:[`email`,`phone`,`websiteUrl`]}],onDynamicFormFieldChange:t=>e.onVendorFieldChange({...h,...t})}),(0,u.jsxs)(`div`,{className:`mt-5 flex flex-col gap-5`,children:[(0,u.jsx)(`div`,{className:`w-full rounded-lg border border-borderTertiary p-4`,children:(0,u.jsx)(ts,{label:`Distributor types`,indentOptions:!0,columns:2,iconName:`store`,options:e.distributorTypeOptions.map(t=>({id:`type-${t.id}`,name:`distributorTypes`,label:t.label,checked:l.distributorTypes.includes(t.id),onChange:({checked:n})=>e.onVendorSelectionChange({...h,field:`distributorTypes`,optionId:t.id,checked:n})}))})}),(0,u.jsx)(`div`,{className:`w-full rounded-lg border border-borderTertiary p-4`,children:(0,u.jsx)(ts,{label:`Stocked ranges`,indentOptions:!0,columns:2,iconName:`layer-group`,options:e.stockedRangeOptions.map(t=>({id:`range-${t.id}`,name:`stockedRanges`,label:t.label,checked:l.stockedRanges.includes(t.id),onChange:({checked:n})=>e.onVendorSelectionChange({...h,field:`stockedRanges`,optionId:t.id,checked:n})}))})})]})]}),(0,u.jsxs)(`div`,{className:`mt-6 border-t border-borderTertiary pt-4`,children:[(0,u.jsx)(v,{role:o===`error`?`alert`:`status`,variant:`caption`,children:e.saveMessage??{saved:`All changes saved`,unsaved:`Unsaved changes`,saving:`Saving vendor...`,error:`Unable to save. Please retry.`}[o]}),(0,u.jsxs)(`div`,{className:`mt-3 flex flex-wrap justify-between gap-3`,children:[a?(0,u.jsx)(`span`,{}):(0,u.jsx)(P,{label:`Delete vendor`,variant:`outline`,intent:`danger`,disabled:!!d,onClick:()=>e.onDeleteVendorRequest(h)}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(P,{label:`Cancel`,variant:`outline`,disabled:!!d||!f,onClick:e.onCancelEdit}),(0,u.jsx)(P,{label:a?`Create vendor`:`Save changes`,disabled:!!d||!f,onClick:()=>e.onSaveVendor({vendor:l,isNew:a})})]})]})]})]}):(0,u.jsx)(ff,{status:{state:`empty`,title:`No vendor selected`,message:`Add the first vendor or select a vendor from the list.`},action:(0,u.jsx)(P,{label:`Add first vendor`,onClick:e.onAddVendorClick})})}),(0,u.jsxs)(`aside`,{className:`order-1 flex w-full min-h-0 min-w-0 flex-col rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm md:order-2 md:h-full`,"aria-label":`Vendor list`,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,u.jsxs)(v,{as:`h2`,variant:`bold`,children:[`Vendors (`,n.length,`)`]}),(0,u.jsx)(P,{label:`Add vendor`,size:`sm`,disabled:p,onClick:e.onAddVendorClick})]}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(Qo,{value:e.searchValue,ariaLabel:`Search vendors`,placeholder:`Search name or city`,onChange:t=>e.onSearchChange({value:t.target.value}),onClear:()=>e.onSearchChange({value:``})})}),(0,u.jsxs)(`div`,{className:`mt-4 flex min-h-0 max-h-96 flex-col gap-2 overflow-y-auto md:max-h-none md:flex-1`,children:[g.map(n=>(0,u.jsx)(P,{variant:n.id===l?.id?`solid`:`outline`,fullWidth:!0,buttonAlignment:`justify-start`,"aria-pressed":n.id===l?.id,disabled:p,onClick:()=>e.onVendorSelect({localityId:t.id,vendorId:n.id}),children:(0,u.jsxs)(`span`,{className:`min-w-0 text-left`,children:[(0,u.jsx)(v,{as:`span`,variant:`free`,className:`block font-bold`,children:n.name}),(0,u.jsxs)(v,{as:`span`,variant:`free`,className:`block text-xs`,children:[n.city,` · `,n.country]})]})},n.id)),g.length?null:(0,u.jsx)(v,{variant:`caption`,children:n.length?`No matching vendors.`:`No vendors yet.`})]})]})]}):(0,u.jsx)(ff,{status:c,onRetryClick:e.onRetryClick}),(0,u.jsxs)(Hc,{open:!!(e.deleteOpen&&l),title:`Delete vendor?`,onClose:()=>{e.deletePending||e.onDeleteVendorCancel()},children:[(0,u.jsxs)(v,{variant:`body`,children:[`Remove `,l?.name,` from `,t.locale,`? Other localities will not be changed.`]}),e.deleteError?(0,u.jsx)(v,{role:`alert`,variant:`body`,children:e.deleteError}):null,(0,u.jsxs)(`div`,{className:`mt-5 flex justify-end gap-3`,children:[(0,u.jsx)(P,{label:`Keep vendor`,variant:`outline`,disabled:e.deletePending,onClick:e.onDeleteVendorCancel}),(0,u.jsx)(P,{label:e.deletePending?`Deleting...`:`Confirm delete`,intent:`danger`,disabled:e.deletePending,onClick:()=>e.onDeleteVendorConfirm(h)})]})]})]})},Yf=({shellProps:e,items:t,emptyTitle:n=`No favorite products yet`,emptyMessage:r=`Save products you love and they will appear here.`,browseLabel:i=`Browse products`,onFavoriteClick:a,onBrowseClick:o})=>(0,u.jsxs)(Qu,{...e,activeTabId:`favorites`,children:[(0,u.jsx)(v,{as:`h1`,variant:`free`,className:`font-rockwell text-3xl text-primary`,children:`Favorites`}),(0,u.jsx)(v,{className:`mt-2 text-secondaryActive`,children:`Your saved products, all in one place.`}),t.length>0?(0,u.jsx)(`section`,{"aria-label":`Favorite products`,className:`mt-8 grid grid-cols-1 gap-6 md:grid-cols-3`,children:t.map(e=>(0,u.jsx)(Ec,{...e,onSwatchClick:()=>a({item:e})},e.id))}):(0,u.jsxs)(`section`,{className:`mt-6 flex min-h-72 flex-col items-center justify-center rounded-lg border border-borderTertiary bg-white p-8 text-center`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`heart`,alt:``,size:`4xl`,color:`secondaryHover`}),(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`mt-5 font-rockwell text-2xl text-primary`,children:n}),(0,u.jsx)(v,{className:`mt-2 text-secondaryActive`,children:r}),(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(P,{label:i,intent:`accent`,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,onClick:o})})]})]}),Xf=({shellProps:e,personalInformation:t,password:n,shippingAddresses:r,billingAddresses:i,onAddAddressClick:a,onEditAddressClick:o,onRemoveAddressClick:s})=>{let c=t.errors??{},l=n.errors??{};return(0,u.jsxs)(Qu,{...e,activeTabId:`account-settings`,children:[(0,u.jsx)(`h1`,{className:`sr-only`,children:`Account Settings`}),(0,u.jsxs)(`section`,{"aria-labelledby":`personal-information-heading`,children:[(0,u.jsx)(v,{id:`personal-information-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Personal Information`}),(0,u.jsxs)(`div`,{className:`mt-4 rounded-lg border border-borderTertiary bg-white p-6`,children:[(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-5 md:grid-cols-2`,children:[(0,u.jsx)($,{id:`customer-first-name`,name:`firstName`,label:`First name`,value:t.firstName,autoComplete:`given-name`,hasError:!!c.firstName,errorMessage:c.firstName,onChange:t.onFirstNameChange}),(0,u.jsx)($,{id:`customer-last-name`,name:`lastName`,label:`Last name`,value:t.lastName,autoComplete:`family-name`,hasError:!!c.lastName,errorMessage:c.lastName,onChange:t.onLastNameChange}),(0,u.jsx)($,{id:`customer-email`,name:`email`,type:`email`,label:`Email address`,value:t.email,autoComplete:`email`,hasError:!!c.email,errorMessage:c.email,onChange:t.onEmailChange}),(0,u.jsx)($,{id:`customer-phone-number`,name:`phoneNumber`,type:`tel`,label:`Phone number`,placeholder:`Phone number`,value:t.phoneNumber??``,autoComplete:`tel`,hasError:!!c.phoneNumber,errorMessage:c.phoneNumber,onChange:t.onPhoneNumberChange})]}),(0,u.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,u.jsx)(P,{label:`Save changes`,intent:`accent`,disabled:t.saveDisabled,onClick:t.onSaveClick})})]})]}),(0,u.jsxs)(`section`,{className:`mt-10`,"aria-labelledby":`change-password-heading`,children:[(0,u.jsx)(v,{id:`change-password-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Change Password`}),(0,u.jsxs)(`div`,{className:`mt-4 rounded-lg border border-borderTertiary bg-white p-6`,children:[(0,u.jsxs)(`div`,{className:`flex max-w-xl flex-col gap-5`,children:[(0,u.jsx)($,{id:`customer-current-password`,name:`currentPassword`,type:`password`,label:`Current password`,placeholder:`Enter current password`,value:n.currentPassword,autoComplete:`current-password`,hasError:!!l.currentPassword,errorMessage:l.currentPassword,onChange:n.onCurrentPasswordChange}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)($,{id:`customer-new-password`,name:`newPassword`,type:`password`,label:`New password`,placeholder:`Enter new password`,value:n.newPassword,autoComplete:`new-password`,hasError:!!l.newPassword,errorMessage:l.newPassword,onChange:n.onNewPasswordChange}),n.passwordRequirements?(0,u.jsx)(v,{variant:`caption`,className:`mt-2`,children:n.passwordRequirements}):null]}),(0,u.jsx)($,{id:`customer-confirm-password`,name:`confirmPassword`,type:`password`,label:`Confirm new password`,placeholder:`Repeat new password`,value:n.confirmPassword,autoComplete:`new-password`,hasError:!!l.confirmPassword,errorMessage:l.confirmPassword,onChange:n.onConfirmPasswordChange})]}),(0,u.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,u.jsx)(P,{label:`Update password`,intent:`accent`,disabled:n.submitDisabled,onClick:n.onSubmitClick})})]})]}),(0,u.jsxs)(`section`,{className:`mt-10`,"aria-labelledby":`shipping-addresses-heading`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsx)(v,{id:`shipping-addresses-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Shipping Addresses`}),(0,u.jsx)(P,{label:`Add shipping address`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,intent:`accent`,onClick:()=>a({addressType:`shipping`})})]}),r.length>0?(0,u.jsx)(`div`,{className:`mt-4 grid grid-cols-1 gap-6 md:grid-cols-2`,children:r.map(e=>(0,u.jsx)(Dc,{address:e,onEditClick:({address:e})=>o({addressType:`shipping`,address:e}),onRemoveClick:({address:e})=>s({addressType:`shipping`,address:e})},e.id))}):(0,u.jsx)(v,{className:`mt-4 text-secondaryActive`,children:`No shipping addresses have been saved.`})]}),(0,u.jsxs)(`section`,{className:`mt-10 border-t border-borderTertiary pt-10`,"aria-labelledby":`billing-addresses-heading`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsx)(v,{id:`billing-addresses-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Billing Addresses`}),(0,u.jsx)(P,{label:`Add billing address`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,intent:`accent`,onClick:()=>a({addressType:`billing`})})]}),i.length>0?(0,u.jsx)(`div`,{className:`mt-4 grid grid-cols-1 gap-6 md:grid-cols-2`,children:i.map(e=>(0,u.jsx)(Dc,{address:e,onEditClick:({address:e})=>o({addressType:`billing`,address:e}),onRemoveClick:({address:e})=>s({addressType:`billing`,address:e})},e.id))}):(0,u.jsx)(v,{className:`mt-4 text-secondaryActive`,children:`No billing addresses have been saved.`})]})]})},Zf=({shellProps:e,status:t,period:n,statusOptions:r,periodOptions:i,orders:a,totalOrderCount:o,hasMoreOrders:s=!1,isLoadingMore:c=!1,seeMoreLabel:l=`See more orders`,searchDisabled:d=!1,emptyMessage:f=`No orders match your current filters.`,onStatusChange:p,onPeriodChange:m,onSearchClick:h,onOrderClick:g,onSeeMoreClick:_})=>{let y=s&&!!_;return(0,u.jsxs)(Qu,{...e,activeTabId:`order-history`,children:[(0,u.jsx)(v,{as:`h1`,variant:`free`,className:`font-rockwell text-3xl text-primary`,children:`Order History`}),(0,u.jsx)(`section`,{"aria-label":`Search orders`,className:`mt-5 rounded-lg border border-borderTertiary bg-white p-6`,children:(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-5 md:grid-cols-3 md:items-end`,children:[(0,u.jsxs)(`label`,{className:`flex flex-col gap-2 text-sm font-semibold text-primary`,children:[`Status`,(0,u.jsx)(os,{id:`customer-order-status`,name:`status`,value:t,options:r,onChange:p})]}),(0,u.jsxs)(`label`,{className:`flex flex-col gap-2 text-sm font-semibold text-primary`,children:[`Period`,(0,u.jsx)(os,{id:`customer-order-period`,name:`period`,value:n,options:i,onChange:m})]}),(0,u.jsx)(P,{label:`Search orders`,iconType:`fa-solid`,iconName:`magnifying-glass`,iconAlt:``,intent:`accent`,disabled:d,onClick:h})]})}),a.length>0?(0,u.jsxs)(`section`,{"aria-label":`Orders`,className:`mt-6 space-y-4`,children:[(0,u.jsxs)(`div`,{className:`hidden grid-cols-5 gap-4 rounded-lg bg-tertiaryActive px-6 py-3 text-sm font-semibold text-primary md:grid`,children:[(0,u.jsx)(`span`,{children:`Order`}),(0,u.jsx)(`span`,{children:`Date`}),(0,u.jsx)(`span`,{children:`Status`}),(0,u.jsx)(`span`,{children:`Total`}),(0,u.jsx)(`span`,{children:`Tracking`})]}),a.map(e=>(0,u.jsxs)(`article`,{className:`grid grid-cols-1 gap-4 rounded-lg border border-borderTertiary bg-white p-6 md:grid-cols-5 md:items-center`,children:[(0,u.jsxs)(`button`,{type:`button`,className:`text-left font-semibold text-accent hover:underline`,onClick:()=>g({order:e}),children:[`#`,e.orderNumber]}),(0,u.jsx)(`span`,{className:`text-sm text-primary`,children:e.date}),(0,u.jsx)(`span`,{className:`text-sm text-primary`,children:e.status}),(0,u.jsx)(`span`,{className:`text-sm font-semibold text-primary`,children:e.total}),(0,u.jsx)(`span`,{className:`text-sm text-primary`,children:e.trackingNumber??`Not available`})]},e.id)),y?(0,u.jsxs)(`div`,{className:`flex flex-col items-center gap-3 pt-2`,children:[o?(0,u.jsxs)(v,{variant:`caption`,children:[`Showing `,a.length,` of `,o,` orders`]}):null,(0,u.jsx)(P,{label:c?`Loading orders…`:l,variant:`outline`,intent:`primary`,disabled:c,onClick:_})]}):null]}):(0,u.jsx)(`section`,{className:`mt-6 rounded-lg border border-borderTertiary bg-white p-10 text-center`,children:(0,u.jsx)(v,{className:`text-secondaryActive`,children:f})})]})},Qf=(e,t)=>(0,u.jsxs)(`section`,{"aria-label":e,children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`font-semibold text-primary`,children:e}),(0,u.jsxs)(`address`,{className:`mt-3 not-italic`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:t.name}),t.lines.map((e,t)=>(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:e},`${e}-${t}`))]})]}),$f=({shellProps:e,orderNumber:t,orderDate:n,status:r,statusTone:i=`neutral`,projectName:a,fulfillmentGroups:o,shippingAddress:s,billingAddress:c,paymentMethod:l,summaryRows:d,backLabel:f=`Back to order history`,invoiceLabel:p=`Download invoice`,helpLabel:m=`Get help with this order`,onBackClick:h,onInvoiceClick:g,onHelpClick:_,onProductClick:y,onTrackingClick:b})=>(0,u.jsxs)(Qu,{...e,activeTabId:`order-history`,children:[(0,u.jsx)(`div`,{className:`flex justify-start`,children:(0,u.jsx)(P,{label:f,iconType:`fa-solid`,iconName:`arrow-left`,iconAlt:``,variant:`link`,intent:`primary`,size:`sm`,onClick:h})}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(kc,{orderNumber:t,orderDate:n,status:r,statusTone:i,projectName:a,invoiceLabel:p,onInvoiceClick:g})}),(0,u.jsxs)(`section`,{className:`mt-8`,"aria-labelledby":`order-items-heading`,children:[(0,u.jsx)(v,{id:`order-items-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Items`}),(0,u.jsx)(`div`,{className:`mt-4 space-y-8`,children:o.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`${e.id}-heading`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 border-b border-borderTertiary pb-3 md:flex-row md:items-end md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{id:`${e.id}-heading`,as:`h3`,variant:`free`,className:`font-rockwell text-xl text-primary`,children:e.title}),e.facility?(0,u.jsxs)(v,{className:`mt-1 text-sm text-secondaryActive`,children:[`Ships from `,e.facility]}):null]}),(0,u.jsxs)(`div`,{className:`text-left md:text-right`,children:[(0,u.jsxs)(v,{className:`text-sm font-semibold text-primary`,children:[e.shippingMethod.name,` · `,e.shippingCost]}),e.shippingMethod.estimatedDelivery?(0,u.jsx)(v,{className:`mt-1 text-sm text-secondaryActive`,children:e.shippingMethod.estimatedDelivery}):null]})]}),(0,u.jsx)(`div`,{className:`mt-4 space-y-4`,children:e.items.map(e=>(0,u.jsx)(jc,{item:e,onProductClick:y,onTrackingClick:b},e.id))})]},e.id))})]}),(0,u.jsxs)(`div`,{className:`mt-8 grid grid-cols-1 gap-6 md:grid-cols-2`,children:[(0,u.jsxs)(`section`,{className:`rounded-lg border border-borderTertiary bg-white p-5 md:p-6`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Delivery details`}),(0,u.jsx)(`div`,{className:`mt-5`,children:Qf(`Shipping address`,s)}),c||l?(0,u.jsxs)(`div`,{className:`mt-6 grid grid-cols-1 gap-6 border-t border-borderTertiary pt-6 md:grid-cols-2`,children:[c?Qf(`Billing address`,c):null,l?(0,u.jsxs)(`section`,{"aria-label":`Payment method`,children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`font-semibold text-primary`,children:`Payment method`}),(0,u.jsx)(v,{className:`mt-3 text-sm text-primary`,children:l})]}):null]}):null]}),(0,u.jsxs)(`section`,{className:`rounded-lg bg-tertiaryActive p-5 md:p-6`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Order total`}),(0,u.jsx)(`dl`,{className:`mt-5 space-y-4`,children:d.map((e,t)=>(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-6 ${e.isEmphasized?`border-t border-borderTertiary pt-4`:``}`,children:[(0,u.jsx)(`dt`,{className:e.isEmphasized?`font-semibold text-primary`:`text-sm text-primary`,children:e.label}),(0,u.jsx)(`dd`,{className:`${e.isEmphasized?`font-semibold text-primary`:`text-sm text-primary`} ${e.tone===`accent`?`text-accent`:``}`,children:e.value})]},`${e.label}-${t}`))})]})]}),_?(0,u.jsx)(`div`,{className:`mt-8 flex justify-end`,children:(0,u.jsx)(P,{label:m,variant:`outline`,intent:`primary`,onClick:_})}):null]}),ep=(e,t,n)=>e.map(e=>({...e,options:e.options.map(e=>e.id===t?{...e,checked:n}:e)})),tp=({title:e,resultsHeading:t=`Documents`,description:n,documentInfoCollectionProps:r,filterSections:i,searchBarProps:a,filterPanelHeader:o=`Filters`,appliedOptionsHeader:s=`Applied Filters`,appliedOptionsEmptyLabel:l=`No filters selected`,clearAllLabel:d=`Clear All`,applyFiltersLabel:f=`Apply Filters`,mobileFilterLabel:p=`Filters`,onFilterChange:m,optInModalProps:h})=>{let[g,_]=c.default.useState(!1),y=c.default.useId(),b=i.flatMap(e=>e.options.filter(e=>e.checked).map(e=>({id:e.id,label:e.label}))),x=(e,t)=>m?.(e,t),S=()=>x(i.map(e=>({...e,options:e.options.map(e=>({...e,checked:!1}))})),{action:`clear-all`}),C={header:o,headerIcon:`filter`,sections:i.map(e=>({...e,type:`checkbox`})),appliedOptions:{header:s,emptyStateLabel:l,clearAllLabel:d,optionsList:b,onRemoveOption:({id:e})=>x(ep(i,e,!1),{action:`remove`,optionId:e,checked:!1}),onRemoveAll:S},resetLabel:d,applyFiltersLabel:f,onResetClick:S,onApplyFiltersClick:()=>_(!1)};return(0,u.jsxs)(V,{spacing:`paddedSection`,className:`pt-4 md:px-4`,children:[(0,u.jsxs)(`header`,{className:`pb-3 md:flex md:items-center md:gap-8 border-b-1 border-primary`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 md:flex-1`,children:[(0,u.jsx)(v,{as:`h1`,variant:`free`,className:`text-3xl text-primary md:text-4xl`,children:e}),(0,u.jsx)(v,{variant:`body`,className:`mt-1 text-sm text-tertiary`,children:n})]}),(0,u.jsx)(`div`,{className:`${g?`hidden`:`block`} mt-5 min-w-0 md:mt-0 md:flex md:flex-1 md:justify-end`,children:(0,u.jsx)(Ps,{searchBarProps:a})})]}),(0,u.jsxs)(`div`,{className:`mt-8 md:mt-10 md:flex md:items-start md:gap-8`,children:[i.length>0?(0,u.jsx)(`aside`,{className:`hidden md:block md:shrink-0`,"aria-label":o,children:(0,u.jsx)(Ju,{...C,onCheckboxChange:({id:e,checked:t})=>x(ep(i,e,t),{action:`toggle`,optionId:e,checked:t})})}):null,g&&i.length>0?(0,u.jsx)(`div`,{id:y,role:`dialog`,"aria-modal":`true`,"aria-label":p,className:`md:hidden`,children:(0,u.jsx)(Ju,{...C,sections:i.map(e=>({...e,type:`checkbox`,options:e.options.map(e=>({...e,id:`${y}-${e.id}`}))})),onCheckboxChange:({id:e,checked:t})=>{let n=e.slice(y.length+1);x(ep(i,n,t),{action:`toggle`,optionId:n,checked:t})}})}):null,(0,u.jsxs)(`div`,{className:`${g?`hidden`:`block`} min-w-0 flex-1 md:block`,children:[i.length>0?(0,u.jsx)(`div`,{className:`mb-4 md:hidden`,children:(0,u.jsx)(P,{variant:`solid`,intent:`neutral`,iconName:`sliders`,iconType:`fa-solid`,iconPosition:`left`,label:p,size:`sm`,"aria-expanded":g,"aria-controls":y,onClick:()=>_(!0)})}):null,(0,u.jsx)(`div`,{className:`flex items-center border-b border-secondaryHover py-4`,children:(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`font-sans text-lg font-normal text-primary`,children:t})}),(0,u.jsx)(`div`,{children:(0,u.jsx)(Fu,{...r,layoutVariant:`compact`})})]})]}),(0,u.jsx)(Wc,{...h})]})};exports.AccountAccessPanel=Zu,exports.AdminAuthStatusTemplate=Sf,exports.AdminBackgroundJobTray=Bc,exports.AdminDashboardTemplate=hf,exports.AdminDataIssuesSourceTemplate=Af,exports.AdminDataReportTemplate=Tf,exports.AdminImportDataIssuesTemplate=If,exports.AdminImportDataReviewTemplate=Bf,exports.AdminImportDataSourceTemplate=Pf,exports.AdminPageTemplateShell=lf,exports.AdminProductGuidesTemplate=Wf,exports.AdminRegionSelector=Ko,exports.AdminSideNav=Nc,exports.AdminUsersTemplate=yf,exports.AnnouncementBar=ml,exports.ArticleBanner=lu,exports.ArticleBannerContent=Xs,exports.ArticleLandingPageTemplate=vd,exports.BpcsCartConfirmationTemplate=Kd,exports.BpcsCartSamplesTemplate=Zd,exports.BpcsCartShippingTemplate=Xd,exports.BrandNavBar=tl,exports.Breadcrumbs=hl,exports.BusinessInfoCard=W,exports.Button=P,exports.CallToActionHero=El,exports.CallToActionHeroContent=Zs,exports.CarouselArrowControls=Fs,exports.CarouselDots=Is,exports.CartItemCard=ge,exports.CategoryPageTemplate=Od,exports.ClickableCard=G,exports.ColourMatchingChart=uc,exports.ColumnBanner=Nl,exports.ColumnCarouselCard=Lo,exports.CommerceSyncPanel=Ku,exports.ContentCarousel=uu,exports.ContentContainer=V,exports.ContentGrid=U,exports.CountrySelector=Wo,exports.CustomerAccountFavoritesTemplate=Yf,exports.CustomerAccountOrderDetailTemplate=$f,exports.CustomerAccountOrderHistoryTemplate=Zf,exports.CustomerAccountSettingsTemplate=Xf,exports.CustomerAccountShell=Qu,exports.CustomerAddressCard=Dc,exports.DataReportCollection=Mu,exports.DecorSummaryCard=we,exports.DecorSummaryCollection=Nu,exports.DocumentInfoCard=rc,exports.DocumentInfoCollection=Fu,exports.DocumentLinkCard=ic,exports.DocumentResultsTemplate=tp,exports.DropdownFilter=Ms,exports.DynamicForm=xs,exports.EcommCartConfirmationTemplate=$d,exports.EcommCartPaymentTemplate=nf,exports.EcommCartShippingTemplate=rf,exports.EcommCartSummaryTemplate=cf,exports.EmbeddedVideo=z,exports.EmbeddedVideoCard=nc,exports.FaqCard=ac,exports.FaqCardCollection=vu,exports.FeatureCard=Ro,exports.FeatureCardCollection=Ll,exports.FeaturedArticleBanner=Dl,exports.FeaturedArticleBannerContent=Qs,exports.FeaturedProductCard=zo,exports.FeaturedProductsCarousel=gu,exports.FilterBar=As,exports.FilterBarButton=js,exports.FlowRow=de,exports.Footer=Sl,exports.FormicaText=v,exports.GalleryTemplate=Ad,exports.Icon=S,exports.Image=L,exports.ImageCard=du,exports.ImageOverlayCard=tc,exports.ImageOverlayGrid=xu,exports.InfoCard=oc,exports.Interactive3DViewer=te,exports.LocalizationMarketCollection=wu,exports.LocalizationStatusCard=Cc,exports.LocationCard=Uo,exports.LocationCardCollection=Cu,exports.LocationMap=Vu,exports.LoginTemplate=Rd,exports.MarketReadinessBrowseTemplate=Cf,exports.MarketReadinessItemSkuSection=Os,exports.MarketReadinessRangeSelector=qo,exports.MarketReadinessRangeTemplate=wf,exports.MarketReadinessSampleCard=be,exports.MarketReadinessSaveStatusIndicator=K,exports.MarketReadinessSkuCard=Se,exports.MarketReadinessStatusDots=ve,exports.MarketReadinessTemplate=mf,exports.MarketReadinessVariantAvailabilitySection=ks,exports.MarketReadinessVariantOptions=Jo,exports.Modal=Hc,exports.MoreInfoHighlightsCard=sc,exports.MoreInfoHighlightsCollection=Rl,exports.OptInModal=Wc,exports.OrderDetailHeaderCard=kc,exports.OrderItemDetailCard=jc,exports.ProResourceTemplate=Nd,exports.ProductContactActions=_e,exports.ProductDetailPageTemplate=gd,exports.QuantityCheckoutCard=fc,exports.RangeSummaryCard=ze,exports.RangeSummaryCollection=Pu,exports.RecentArticleCard=bc,exports.RecentArticleCollection=_u,exports.ResilientImage=re,exports.SalesforceCartShippingTemplate=Qd,exports.SalesforceCustomerDetailsForm=Bl,exports.SampleOrderSummaryPanel=zl,exports.SearchCombobox=$o,exports.SearchFilter=Ps,exports.SearchResultsTemplate=Ld,exports.SingleButtonCard=xc,exports.SocialLinkRow=ec,exports.Spinner=w,exports.StandardBannerContainer=wl,exports.StandardCarousel=qs,exports.StandardCopyBannerContent=$s,exports.StandardCopyHero=cu,exports.SwatchCard=Ec,exports.SwatchPurchasePanel=su,exports.TextCard=mu,exports.Textarea=ie,exports.TopNavAccountDrawer=ul,exports.TopNavActions=sl,exports.TopNavBar=pl,exports.TopNavMegaMenu=nl,exports.TopNavSearchResults=al,exports.VendorImportSection=Gf,exports.VerticalCheckboxListCollection=Ju,exports.VerticalColorSwatchList=Ys,exports.WarrantyCard=hu,exports.WhereToBuyDetailPage=Jf,exports.WhereToBuyLandingPage=Kf,exports.WhereToBuySearchBanner=Tl,exports.WhereToBuyTemplate=Bd,exports.applySketchfabTexture=h,exports.connectSketchfabViewer=_,exports.setSketchfabAppearance=p,exports.userTypeOptions=Yu;
|
|
610
|
+
`,ul=({isOpen:e,customerName:t,title:n=`Account`,orderHistoryLabel:r=`Order History`,favoritesLabel:i=`Favorites`,profileLabel:a=`Profile & Addresses`,logoutLabel:o=`Log Out`,onClose:s,onOrderHistoryClick:l,onFavoritesClick:f,onProfileClick:p,onLogoutClick:m})=>{let[h,g]=(0,c.useState)(e),[_,y]=(0,c.useState)(e?`opening`:`open`);if((0,c.useEffect)(()=>{let t;return e?(g(!0),y(`opening`)):h&&(y(`closing`),t=window.setTimeout(()=>g(!1),cl)),()=>window.clearTimeout(t)},[e,h]),(0,c.useEffect)(()=>{if(!h)return;let e=document.body.style.overflow,t=document.body.style.paddingRight,n=window.innerWidth-document.documentElement.clientWidth,r=e=>{e.key===`Escape`&&s()};if(n>0){let e=Number.parseFloat(window.getComputedStyle(document.body).paddingRight);document.body.style.paddingRight=`${e+n}px`}return document.body.style.overflow=`hidden`,document.addEventListener(`keydown`,r),()=>{document.body.style.overflow=e,document.body.style.paddingRight=t,document.removeEventListener(`keydown`,r)}},[s,h]),!h||typeof document>`u`)return null;let b=e=>{e?.(),s()};return(0,d.createPortal)((0,u.jsxs)(`div`,{className:`fixed inset-0 z-60 ${e?``:`pointer-events-none`}`,children:[(0,u.jsx)(`style`,{children:ll}),(0,u.jsx)(`button`,{type:`button`,"aria-label":`Close account overlay`,"data-phase":_,className:`top-nav-account-drawer-backdrop absolute inset-0 bg-black/40`,onClick:s}),(0,u.jsxs)(`aside`,{role:`dialog`,"aria-modal":`true`,"aria-labelledby":`top-nav-account-title`,"data-phase":_,className:`top-nav-account-drawer-panel fixed inset-y-0 right-0 z-10 flex h-dvh w-full max-w-md flex-col bg-secondary shadow-xl will-change-transform`,onAnimationEnd:e=>{e.target===e.currentTarget&&(_===`opening`?y(`open`):_===`closing`&&g(!1))},children:[(0,u.jsxs)(`header`,{className:`flex items-start justify-between gap-4 border-b border-borderTertiary px-6 py-5`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,u.jsx)(`span`,{className:`flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-tertiaryActive text-primary`,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`user`,alt:``,size:`lg`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(v,{id:`top-nav-account-title`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:n}),t?(0,u.jsx)(v,{className:`mt-1 truncate text-sm text-secondaryActive`,children:t}):null]})]}),(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`xmark`,iconAlt:``,variant:`ghost`,intent:`primary`,"aria-label":`Close account menu`,onClick:s})]}),(0,u.jsx)(`nav`,{"aria-label":`Account sections`,className:`flex-1 px-4 py-4`,children:(0,u.jsxs)(`div`,{className:`flex flex-col`,children:[(0,u.jsx)(P,{label:r,iconType:`fa-solid`,iconName:`receipt`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`primary`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>b(l)}),(0,u.jsx)(P,{label:i,iconType:`fa-regular`,iconName:`heart`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`primary`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>b(f)}),(0,u.jsx)(P,{label:a,iconType:`fa-solid`,iconName:`address-card`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`primary`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>b(p)})]})}),(0,u.jsx)(`footer`,{className:`border-t border-borderTertiary px-4 py-5`,children:(0,u.jsx)(P,{label:o,iconType:`fa-solid`,iconName:`arrow-right-from-bracket`,iconAlt:``,iconPosition:`left`,variant:`ghost`,intent:`danger`,buttonAlignment:`justify-start`,fullWidth:!0,onClick:()=>b(m)})})]})]}),document.body)},dl=`__mobile-menu-open__`,fl=300,pl=({NavMenuWithSubItems:e=[],countries:t,selectedCountry:n,Login:r,Account:i,Cart:a,showCart:o=!0,showFavorites:s=!0,showLogin:l=!0,Logo:d,searchPlaceholder:f=`Search`,searchLabel:p=`Search`,searchResultsAriaLabel:m=`Search results`,clearSearchLabel:h=`Clear search`,closeSearchLabel:g=`Close search`,searchResultItems:_,searchViewAllLabel:v,onLogoClick:y,onNavItemClick:b,onMegaMenuLinkClick:x,onSearchClick:S,onSearchChange:C,onSearchSubmit:w,onSearchResultClick:T,onSearchViewAllClick:E,onCartClick:D,onLoginClick:O,onAccountClick:k,onOrderHistoryClick:A,onProfileClick:j,onLogoutClick:M,onFavoritesClick:N,onCountrySelect:F})=>{let I=(0,c.useRef)(null),[R,ee]=(0,c.useState)(null),[z,B]=(0,c.useState)(null),[te,V]=(0,c.useState)(!1),[ne,re]=(0,c.useState)(!1),[ie,H]=(0,c.useState)(``),U=(0,c.useRef)(!1),W=z!==null,ae=e.find(e=>e.id===R),G=t??[],oe=r??{label:`Log In`,href:`/login`},se={hasCart:a?.hasCart??!1,itemCount:a?.itemCount??0},ce=i??{loggedIn:oe.loggedIn??!1},le=()=>{V(!0),k?.()},ue=`Formica`,de=d?.src??ue,fe=Ie(de),pe=Re(ue)??``,me=Re(de,pe)??pe,he=d?.alt??`${de} Logo`,ge=fe===`broadview`?`w-36 md:w-44`:`w-24`,K=fe===`broadview`?`h-12 md:h-14`:`h-7 md:h-10`,_e=d?.containerClassName??ge,ve=d?.className??K;(0,c.useEffect)(()=>{if(!R)return;let e=e=>{I.current?.contains(e.target)||ee(null)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[R]),(0,c.useEffect)(()=>{if(!U.current)return;let e=window.setTimeout(()=>{C?.({query:ie})},fl);return()=>window.clearTimeout(e)},[ie,C]);let ye=()=>{re(!0),S?.()},be=()=>{re(!1)},xe=()=>{let e=ie.trim();e&&w?.({query:e})},Se=e=>{T?.(e),be()},Ce=()=>{E?.({query:ie.trim()}),be()},we=()=>{B(null)},Te=(e,t={})=>{t.closeMobile&&we(),ee(null),b?.(e)},Ee=(e,t)=>{if(e.subcategories?.length&&!e.href){ee(R===t?null:t);return}Te(e)},De=(e,t={})=>{ee(null),t.closeMobile&&we(),x?.(e)},Oe=e=>{B(t=>t===e?dl:e)};return(0,u.jsxs)(`header`,{ref:I,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)(P,{variant:`ghost`,className:`p-0 bg-transparent shadow-none border-0 ${_e} hover:bg-secondary`,onClick:y,"aria-label":`Go to home page`,children:(0,u.jsx)(L,{src:me,alt:``,className:ve,quality:90})}),(0,u.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,u.jsx)(P,{variant:`ghost`,iconType:`fa-solid`,iconName:`magnifying-glass`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":p,"aria-haspopup":`dialog`,"aria-expanded":ne,onClick:ye}),o?(0,u.jsx)(P,{variant:`ghost`,iconType:`fa-solid`,iconName:`cart-shopping`,iconSize:`lg`,className:`relative h-9 w-9 p-0`,"aria-label":`Cart${se.itemCount?` (${se.itemCount})`:``}`,onClick:D,children:se.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:se.itemCount}):null}):null,l&&ce.loggedIn?(0,u.jsx)(P,{variant:`ghost`,iconType:`fa-solid`,iconName:`user`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":`Open account menu`,"aria-haspopup":`dialog`,onClick:le}):null,(0,u.jsx)(P,{variant:`ghost`,iconType:`fa-solid`,iconName:W?`xmark`:`bars`,iconSize:`lg`,className:`h-9 w-9 p-0`,"aria-label":W?`Close menu`:`Open menu`,onClick:()=>{B(e=>e===null?dl:null)},"aria-expanded":W})]})]}),W?(0,u.jsxs)(`nav`,{className:`border-t border-gray-200 px-3 py-2 md:hidden`,children:[e.map(e=>{let t=e.id,n=!!e.subcategories?.length,r=z===t;return n?(0,u.jsxs)(`div`,{className:`border-b border-gray-200`,children:[(0,u.jsx)(P,{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:()=>Oe(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)(P,{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:()=>De(e,{closeMobile:!0})},e.id))})]},e.id))}):null]},t):(0,u.jsx)(P,{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:()=>Te(e,{closeMobile:!0})},t)}),l&&!ce.loggedIn?(0,u.jsx)(`div`,{className:`border-t border-gray-200 pt-2`,children:(0,u.jsx)(P,{variant:`link`,label:oe.label,className:`w-full min-w-0 px-0 py-3 text-left`,buttonAlignment:`justify-start`,onClick:()=>{we(),O?.()}})}):null]}):null,(0,u.jsxs)(`div`,{className:`hidden items-center justify-between md:flex md:px-8`,children:[(0,u.jsx)(P,{variant:`ghost`,className:`p-0 bg-transparent shadow-none border-0 ${_e} hover:bg-secondary!`,onClick:y,"aria-label":`Go to home page`,children:(0,u.jsx)(L,{src:me,alt:he,className:ve,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)(P,{variant:`link`,label:e.label,onClick:()=>Ee(e,t),active:R===t},t)})}),(0,u.jsx)(sl,{Countries:G,selectedCountry:n,Login:oe,Account:ce,Cart:se,showCart:o,showFavorites:s,showLogin:l,searchPlaceholder:f,searchLabel:p,searchResultsAriaLabel:m,clearSearchLabel:h,searchResultItems:_,searchViewAllLabel:v,onSearchClick:S,onSearchChange:C,onSearchSubmit:w,onSearchResultClick:T,onSearchViewAllClick:E,onCartClick:D,onLoginClick:O,onAccountClick:le,onFavoritesClick:N,onCountrySelect:F})]})]}),(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`,R?`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)(nl,{activeItem:ae,onMegaMenuLinkClick:De})})})}),(0,u.jsx)(ul,{...ce,isOpen:te,onClose:()=>V(!1),onOrderHistoryClick:A,onFavoritesClick:N,onProfileClick:j,onLogoutClick:M??O}),(0,u.jsx)(`div`,{className:`md:hidden`,children:(0,u.jsx)(Hc,{open:ne,title:p,closeLabel:g,size:`sm`,onClose:be,children:(0,u.jsxs)(`div`,{className:`space-y-4`,children:[(0,u.jsx)(Qo,{id:`top-nav-mobile-search`,ariaLabel:p,value:ie,placeholder:f,clearLabel:h,controlSize:`default`,autoComplete:`off`,autoFocus:!0,onChange:e=>{U.current=!0,H(e.target.value)},onSearchSubmit:xe}),(0,u.jsx)(al,{id:`top-nav-mobile-search-results`,items:_,viewAllLabel:v,ariaLabel:m,layoutVariant:`contained`,onResultClick:Se,onViewAllClick:Ce})]})})})]})},ml=({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)(v,{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)(P,{label:t,size:`sm`,variant:`solid`,intent:`accent`,onClick:n,className:`border-2 border-white`})}):null]})}):null},hl=({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)(v,{as:`a`,href:e.href,variant:`breadcrumb`,className:`text-sm md:text-base`,onClick:t=>i(t,e),children:e.label}):(0,u.jsx)(v,{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)(v,{as:`span`,variant:`nav`,className:`text-sm md:text-base`,"aria-current":`page`,children:n.label})},n.id)]})})})})},gl=({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=Zc(e.src),i=Zc(e.alt),a=e.label?Zc(e.label):``,o=e.alt===void 0||e.alt===null?a:i,s=Le(r,Le(a||i))??``;if(!s)return null;let c=(0,u.jsx)(L,{src:s,alt:o,className:n,loading:`lazy`,decoding:`async`,quality:90}),l=Qc(e.href);if(!l)return c;let d=$c(e.href,e.target)??`_self`;return(0,u.jsx)(`a`,{href:l,target:d,rel:el(e.href,e.rel)??(d===`_blank`?`noreferrer noopener`:void 0),className:`inline-flex`,children:c})},_l=({primaryLogo:e,phoneLine:t,socials:n=[]})=>{let r=t?Zc(t):``;return(0,u.jsxs)(`div`,{className:`space-y-6`,children:[(0,u.jsx)(gl,{img:e,size:`primary`}),r?(0,u.jsx)(v,{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=Zc(e.label),n=Qc(e.href),r=e.iconSrc?Zc(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)(jo,{icon:e.faIcon,className:`w-4 h-4 text-black`}):null]},`${t}-${n}`):null})}):null]})},vl=({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=Zc(e.label),i=Qc(e.href),a=$c(e.href,e.target)??`_self`,o=el(e.href,e.rel)??(a===`_blank`?`noreferrer noopener`:void 0);return i?(0,u.jsx)(v,{as:`a`,href:i,target:a,rel:o,variant:`body`,className:n,children:r}):(0,u.jsx)(v,{variant:`body`,className:n,children:r})},yl=({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=Zc(e.heading);return(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{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)(vl,{item:e})},`${n}-${Zc(e.label)}-${t}`))})]},`${n}-${t}`)})})}),bl=({links:e=[],utilityLink:t,disclaimerLines:n=[],copyrightLine:r})=>{let i=r?Zc(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)(vl,{item:e,variant:`legal`},`${Zc(e.label)}-${t}`)),t?(0,u.jsx)(`div`,{className:`ml-auto`,children:(0,u.jsx)(vl,{item:t,variant:`legal`})}):null]}),a?(0,u.jsxs)(`div`,{className:`space-y-2 mt-10`,children:[n.map((e,t)=>(0,u.jsx)(v,{variant:`standard`,className:`text-white/70 text-xs leading-relaxed`,children:Zc(e)},t)),i?(0,u.jsx)(v,{variant:`standard`,className:`text-white/70 text-xs leading-relaxed`,children:i}):null]}):null]})},xl=({affiliateLogos:e=[],parentLogo:t,phoneLine:n})=>{let r=n?Zc(n):``;if(!e.length&&!t&&!r)return null;let i=t?(0,u.jsx)(`div`,{className:`ml-6 shrink-0`,children:(0,u.jsx)(gl,{img:t,size:`parent`})}):null,a=!i&&r?(0,u.jsx)(v,{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)(gl,{img:e,size:`affiliate`},`${e.label?Zc(e.label):``}|${Zc(e.alt)}|${Qc(e.href)}|${Zc(e.src)}|${t}`))}),i,a]})})},Sl=({brand:e,columns:t,parentLogo:n,phoneLinePlacement:r=`brand`,legal:i})=>{let a=r===`logosBar`;return(0,u.jsx)(`footer`,{className:`bg-footBackground text-secondary pt-6`,children:(0,u.jsxs)(`div`,{className:`max-w-screen-xl mx-auto px-4 py-8 md:px-6 md:py-10`,children:[(0,u.jsxs)(`div`,{className:`grid gap-8 md:grid-cols-12 md:gap-10`,children:[(0,u.jsx)(`div`,{className:`md:col-span-4`,children:(0,u.jsx)(_l,{...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)(yl,{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=Zc(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)(vl,{item:e,variant:`mobile`})},`${n}-${Zc(e.label)}-${t}`))})]},`${n}-${t}`)})})]}),(0,u.jsx)(xl,{affiliateLogos:e.affiliateLogos,parentLogo:n,phoneLine:a?e.phoneLine:void 0}),(0,u.jsx)(bl,{...i})]})})},Cl=({open:e,message:t,onClose:n,onButtonClick:r,buttonLabel:i,closeLabel:a=`Close Promo Banner`})=>e?(0,u.jsx)(`div`,{className:`relative w-full bg-accentActive px-8 py-3 text-secondary`,children:(0,u.jsxs)(`div`,{className:`flex w-full items-center justify-center`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-2 text-center`,children:[(0,u.jsx)(Uc,{html:t,className:`text-sm md:text-base`}),i&&(0,u.jsx)(P,{label:i,size:`sm`,variant:`solid`,intent:`secondary`,onClick:r})]}),(0,u.jsx)(`div`,{className:`absolute right-2 top-1/2 -translate-y-1/2`,children:(0,u.jsx)(we,{iconType:`fa-solid`,iconName:`xmark`,iconSize:`sm`,intent:`secondary`,size:`sm`,"aria-label":a,onClick:n})})]})}):null,wl=(...e)=>e.filter(Boolean).join(` `),Tl=({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:wl(`relative`,i),children:[(0,u.jsx)(L,{src:c,alt:t,className:a,quality:s}),(0,u.jsx)(`div`,{className:o,children:n})]})})},El=({imageSrc:e,imageAlt:t=`Where to buy`,heading:n,productDropdownProps:r,searchInputProps:i,searchButtonLabel:a=`Search`,onProductChange:o,onSearchSubmit:s})=>{let l=!!r?.options?.length,[d,f]=c.default.useState(r?.value??``),[p,m]=c.default.useState(i.value??``);c.default.useEffect(()=>{f(r?.value??``)},[r?.value]),c.default.useEffect(()=>{m(i.value??``)},[i.value]);let h=e=>{let t=e.target.value;f(t),o?.({productValue:t})};return(0,u.jsx)(Tl,{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)(v,{as:`h1`,variant:`free`,className:`mb-8 text-center font-rockwell text-4xl text-white md:text-5xl`,children:n}),(0,u.jsxs)(`form`,{className:`flex w-full max-w-3xl flex-col gap-3 md:flex-row md:items-center`,onSubmit:e=>{e.preventDefault(),s?.({productValue:d,searchValue:p.trim()})},children:[l&&r?(0,u.jsx)(`div`,{className:`w-full md:w-56`,children:(0,u.jsx)(os,{...r,value:d,onChange:h})}):null,(0,u.jsx)(`div`,{className:`w-full md:flex-1`,children:(0,u.jsx)(Qo,{...i,value:p,onChange:e=>m(e.target.value)})}),(0,u.jsx)(P,{type:`submit`,variant:`solid`,intent:`accent`,size:`sm`,label:a,className:`w-full md:w-auto`})]})]})})},Dl=({imageSrc:e,imageAlt:t=`Call To Action Hero`,heading:n,subheading:r,body:i,eyebrow:a,ctas:o=[]})=>(0,u.jsx)(Tl,{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)(Zs,{heading:n,subheading:r,body:i,eyebrow:a,ctas:o})}),Ol=({imageSrc:e,imageAlt:t=`Featured article banner`,heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})=>(0,u.jsx)(Tl,{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)(Qs,{heading:n,subheading:r,articleCategory:i,ctaLabel:a,onCtaClick:o})}),kl=({items:e,value:t,onChange:n,renderTab:r,className:i=``,durationMs:a=700,thicknessClassName:o=`h-[3px]`,baselineClassName:s=`h-px`})=>{let l=(0,c.useRef)(null),d=(0,c.useRef)([]),[f,p]=(0,c.useState)({left:0,width:0}),m=(0,c.useMemo)(()=>Math.max(0,e.findIndex(e=>(e.value??e.label)===t)),[e,t]),h=()=>{let e=l.current,t=d.current[m];if(!e||!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();p({left:r.left-n.left,width:r.width})};return(0,c.useLayoutEffect)(()=>{h();let e=new ResizeObserver(()=>h());l.current&&e.observe(l.current),window.addEventListener(`resize`,h);let t=requestAnimationFrame(h);return()=>{e.disconnect(),window.removeEventListener(`resize`,h),cancelAnimationFrame(t)}},[m,e.length]),(0,u.jsx)(`div`,{className:[`w-full`,i].join(` `),children:(0,u.jsxs)(`div`,{ref:l,className:`relative grid items-center`,style:{gridTemplateColumns:`repeat(${e.length}, minmax(0, 1fr))`},children:[e.map((e,t)=>{let i=t===m;return(0,u.jsx)(`div`,{ref:e=>{d.current[t]=e},className:`flex justify-center mb-1 md:mb-3 w-full`,children:r?r({item:e,isActive:i,onTabClick:()=>!e.disabled&&n(e.value??e.label)}):(0,u.jsx)(`button`,{type:`button`,disabled:e.disabled,onClick:()=>n(e.value??e.label),className:[`px-3 py-2 text-sm`,`transition-opacity`,i?`opacity-100 font-medium`:`opacity-60 hover:opacity-90`,e.disabled?`cursor-not-allowed opacity-30`:`cursor-pointer`].join(` `),children:e.label})},e.label)}),(0,u.jsx)(`div`,{className:[`absolute left-0 right-0 bottom-0`,s,`bg-black/60`].join(` `)}),(0,u.jsx)(`div`,{className:[`absolute bottom-0`,o,`bg-black`,`will-change-transform`].join(` `),style:{width:`${f.width}px`,transform:`translateX(${f.left}px)`,transitionProperty:`transform, width`,transitionDuration:`${a}ms`,transitionTimingFunction:`cubic-bezier(0.22, 1, 0.36, 1)`}})]})})},Al=e=>e.id||e.href||e.label,jl=({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=Al})=>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)(jo,{icon:Fo,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)(jo,{icon:No,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)(Lo,{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,Ml=4,Nl=e=>{e.forEach(e=>{if(!e)return;let t=new window.Image;t.decoding=`async`,t.src=e})},Pl=({heading:e,body:t,TabsWithColumns:n=[],favoriteIds:r=[],showFavorites:i=!0,onFavoriteToggle:a,onItemClick:o})=>{let[s,l]=(0,c.useState)(n?.[0]?.label??null);c.default.useEffect(()=>{if(!n?.length){l(null);return}n.some(e=>e.label===s)||l(n[0].label)},[n,s]);let d=(0,c.useMemo)(()=>n.map(e=>({label:e.label,disabled:!1})),[n]),f=(0,c.useMemo)(()=>n.find(e=>e.label===s),[n,s])?.columns?.[0]?.items??[],[p,m]=(0,c.useState)(0),[h,g]=(0,c.useState)(null);c.default.useEffect(()=>{m(0),g(null)},[s]);let _=p>0,y=p+Ml<f.length,b=()=>m(e=>Math.max(0,e-1)),x=()=>m(e=>Math.min(Math.max(f.length-Ml,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(()=>{Nl(f.slice(p,p+Ml*2).map(e=>e.source).filter(Boolean))},[f,p]);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)(v,{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)(v,{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)(kl,{items:d,value:s??d[0]?.label??``,onChange:e=>l(e),className:`mb-2`,durationMs:700}),(0,u.jsx)(jl,{items:f,startIndex:p,desktopVisibleCount:Ml,activeIndex:h,setActiveIndex:g,canPrev:_,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})]})]})})})},Fl=e=>e===1?`md:grid-cols-1`:e===2?`md:grid-cols-2`:`md:grid-cols-3`,Il=(e,t)=>e===`vertical`&&t===2?`grid-cols-2`:e===`vertical`&&t===3?`grid-cols-3`:`grid-cols-1`,Ll=e=>e===`underBanner`?`mt-10 md:mt-16`:``,Rl=({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=Fl(n.length),d=Il(n[0]?.cardStyle,n.length);return(0,u.jsx)(`section`,{className:`flex justify-center ${Ll(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)(v,{as:`h2`,variant:`free`,className:`text-2xl md:text-4xl`,children:e}):null,t?(0,u.jsx)(v,{variant:`body`,className:`text-sm`,children:t}):null]}),(0,u.jsx)(`div`,{className:`grid ${d} gap-x-4 gap-y-6 ${l} md:gap-x-6 md:gap-y-12`,children:n.map((e,t)=>{let n=`${e.title??`card`}-${t}`;return(0,u.jsx)(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)(v,{variant:`body`,className:`mb-4 text-sm`,children:i}):null,a?(0,u.jsx)(P,{variant:`outline`,intent:`muted`,label:a,onClick:c,className:`w-full md:w-80`}):null]})]})})},zl=({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)(v,{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)(v,{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)(sc,{...e},`${e.title}-${t}`))})]})}),Bl=({title:e=`Sample Order Summary`,items:t,sampleCountLabel:n,note:r=`No payment is required for sample requests.`})=>{let i=n??`${t.length} ${t.length===1?`sample`:`samples`}`;return(0,u.jsxs)(`aside`,{className:`rounded-lg border border-secondaryActive bg-white p-6`,children:[(0,u.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-xl font-extrabold text-primary`,children:e}),(0,u.jsx)(v,{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)(fc,{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)(v,{variant:`free`,className:`mt-6 text-sm text-tertiary`,children:r}):null]})},Vl=({title:e=`Personal & Project Information`,idPrefix:t=`salesforce-customer`,firstName:n=``,lastName:r=``,profession:i=``,companyName:a=``,projectType:o=``,projectSquareMetres:s=``,projectName:c=``,projectDetails:l=``,phoneNumber:d=``,email:f=``,confirmEmail:p=``,firstNamePlaceholder:m=`First Name*`,lastNamePlaceholder:h=`Last Name*`,professionPlaceholder:g=`Profession*`,companyNamePlaceholder:_=`Company Name*`,projectTypePlaceholder:y=`Project Type`,projectSquareMetresPlaceholder:b=`Project Square Metres`,projectNamePlaceholder:x=`Project Name`,projectDetailsPlaceholder:S=`Project Details`,phoneNumberPlaceholder:C=`Phone Number*`,emailPlaceholder:w=`Email*`,confirmEmailPlaceholder:T=`Confirm Email*`,professionOptions:E=[],projectTypeOptions:D=[],projectSquareMetresOptions:O=[],errors:k={},onFirstNameChange:A,onLastNameChange:j,onProfessionChange:M,onCompanyNameChange:N,onProjectTypeChange:P,onProjectSquareMetresChange:F,onProjectNameChange:I,onProjectDetailsChange:L,onPhoneNumberChange:R,onEmailChange:ee,onConfirmEmailChange:z})=>(0,u.jsxs)(`section`,{className:`flex flex-col gap-6`,children:[(0,u.jsx)(v,{as:`h2`,variant:`bold`,className:`text-primary`,children:e}),(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2`,children:[(0,u.jsx)($,{id:`${t}-first-name`,name:`firstName`,placeholder:m,value:n,hasError:!!k.firstName,errorMessage:k.firstName,onChange:A}),(0,u.jsx)($,{id:`${t}-last-name`,name:`lastName`,placeholder:h,value:r,hasError:!!k.lastName,errorMessage:k.lastName,onChange:j}),(0,u.jsx)(os,{id:`${t}-profession`,name:`profession`,placeholder:g,options:E,value:i,hasError:!!k.profession,variant:`field`,onChange:M}),(0,u.jsx)($,{id:`${t}-company-name`,name:`companyName`,placeholder:_,value:a,hasError:!!k.companyName,errorMessage:k.companyName,onChange:N}),(0,u.jsx)(os,{id:`${t}-project-type`,name:`projectType`,placeholder:y,options:D,value:o,hasError:!!k.projectType,variant:`field`,onChange:P}),(0,u.jsx)(os,{id:`${t}-project-square-metres`,name:`projectSquareMetres`,placeholder:b,options:O,value:s,hasError:!!k.projectSquareMetres,variant:`field`,onChange:F}),(0,u.jsx)(`div`,{className:`md:col-span-2`,children:(0,u.jsx)($,{id:`${t}-project-name`,name:`projectName`,placeholder:x,value:c,hasError:!!k.projectName,errorMessage:k.projectName,onChange:I})}),(0,u.jsx)(`div`,{className:`md:col-span-2`,children:(0,u.jsx)(ne,{id:`${t}-project-details`,name:`projectDetails`,placeholder:S,value:l,rows:5,hasError:!!k.projectDetails,onChange:L})}),(0,u.jsx)($,{id:`${t}-phone-number`,name:`phoneNumber`,type:`tel`,placeholder:C,value:d,hasError:!!k.phoneNumber,errorMessage:k.phoneNumber,onChange:R}),(0,u.jsx)($,{id:`${t}-email`,name:`email`,type:`email`,placeholder:w,value:f,hasError:!!k.email,errorMessage:k.email,onChange:ee}),(0,u.jsx)(`div`,{className:`md:col-span-2`,children:(0,u.jsx)($,{id:`${t}-confirm-email`,name:`confirmEmail`,type:`email`,placeholder:T,value:p,hasError:!!k.confirmEmail,errorMessage:k.confirmEmail,onChange:z})})]})]}),Hl=(e,t,n)=>Math.max(t,Math.min(n,e)),Ul=e=>[`h-12 w-12 border-secondaryActive!`,e?`text-primary! hover:text-accent!`:`border-secondaryHover! text-tertiary!`].join(` `),Wl=({initialQuantity:e=1,errorMessage:t,minQuantity:n=1,maxQuantity:r=99,onAddToWishlist:i,onAddToCart:a,onQuantityChange:o,wishlistLabel:s=`Add To Wishlist`,cartLabel:l=`Add to Cart`,decreaseQuantityLabel:d=`Decrease quantity`,increaseQuantityLabel:f=`Increase quantity`,showFavorites:p=!0,className:m=``})=>{let[h,g]=c.default.useState(()=>Hl(e,n,r));c.default.useEffect(()=>{g(Hl(e,n,r))},[e,n,r]);let _=e=>{let t=Hl(e,n,r);g(t),o?.(t)},y=()=>_(h-1),b=()=>_(h+1),x=h>n,S=h<r,C=()=>a(h),w=(0,u.jsxs)(`div`,{className:`flex shrink-0 items-stretch gap-3`,children:[(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`fa-minus`,intent:`ghost`,variant:`solid`,"aria-label":d,type:`button`,disabled:!x,onClick:y,className:Ul(x)}),(0,u.jsx)(`div`,{className:`flex min-w-10 items-center justify-center`,children:(0,u.jsx)(v,{as:`span`,variant:`free`,children:h})}),(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`fa-plus`,intent:`ghost`,variant:`solid`,"aria-label":f,type:`button`,disabled:!S,onClick:b,className:Ul(S)})]}),T=(0,u.jsx)(P,{type:`button`,intent:`accent`,onClick:C,className:`h-12 w-full justify-center`,children:(0,u.jsx)(v,{as:`span`,variant:`free`,children:l})});return(0,u.jsxs)(`div`,{className:[`w-full`,m].join(` `),children:[t?(0,u.jsx)(v,{variant:`free`,role:`alert`,className:`mb-2 text-sm text-accent`,children:t}):null,p?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`flex items-stretch gap-4`,children:[w,(0,u.jsx)(`div`,{className:`flex-1`,children:(0,u.jsx)(P,{iconName:`fa-heart`,iconType:`fa-solid`,label:s,type:`button`,intent:`ghost`,variant:`solid`,onClick:i,className:`h-12 w-full justify-center border-primary! text-primary! hover:text-accent!`})})]}),(0,u.jsx)(`div`,{className:`mt-4`,children:T})]}):(0,u.jsxs)(`div`,{"aria-label":`Cart actions`,className:`flex items-stretch gap-4`,children:[w,(0,u.jsx)(`div`,{className:`min-w-0 flex-1`,children:T})]})]})},Gl=({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)(v,{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)(P,{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)(v,{as:`span`,variant:`free`,children:e.label})},e.id))})]})},Kl=e=>{let{title:t,decor:n,description:r,colourMatching:i,colourMatchingLabel:a,patternRepeat:o,onDownloadSwatch:s,onDownloadFullSheet:c,downloadSwatchLabel:l=`Download Swatch`,downloadFullSheetLabel:d=`Download Full Sheet`,tabs:f=[`Sample`,`Buy Now`],tabLabels:p,labels:m,activeTab:h,onTabChange:g,productOptions:_=[],gradeOptions:y=[],textureOptions:b=[],sizeOptions:x=[],selectedProduct:S,selectedGrade:C,selectedTexture:w,selectedSize:T,onQuantityChange:E,availabilityHref:D,availabilityLabel:O=`View full product availability and information`,notReturnableText:k=`This item is not returnable.`,returnPolicyHref:A,returnPolicyLabel:j=`View return policy`,onPurchaseInfoLinkClick:M,priceLabel:N,initialQuantity:F=1,errorMessage:I,minQuantity:L=1,maxQuantity:R=99,showCartActions:ee=!0,showFavorites:z=!0,actionMode:B=`cart`,contactActions:te,onAddToWishlist:V,onAddToCart:ne,onContactActionClick:re,mobileMediaSlot:ie}=e,H=f.map(e=>({label:p?.[e]??e,value:e})),U=B===`cart`&&ee&&H.length>0,W=B===`contact`&&!!te,ae=U&&H.length>1,G=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?.()},oe=(e,t)=>n=>{e&&M&&(n.preventDefault(),M(e,t))};return(0,u.jsxs)(`div`,{className:[`w-full`,W?`md:relative md:aspect-square md:overflow-hidden`:``].join(` `),children:[(0,u.jsxs)(`div`,{className:[W?`md:max-h-[calc(100%-8rem)] md:overflow-y-auto md:pr-2`:``].join(` `),children:[n?(0,u.jsx)(v,{as:`p`,variant:`caption`,className:`mb-0 md:mb-1 text-lg!`,children:n}):null,t?(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`mb-2 text-2xl md:text-4xl`,children:t}):null,r?(0,u.jsx)(v,{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)(uc,{colourMatching:i,label:a})}):null,o?(0,u.jsxs)(v,{as:`p`,variant:`body`,className:`mb-4`,children:[m?.patternRepeat??`Pattern Repeat`,`: `,o]}):null,(0,u.jsxs)(`div`,{className:`flex gap-6 justify-start mb-4 md:mb-6`,children:[(0,u.jsx)(P,{label:l,iconName:`fa-download`,iconType:`fa-solid`,intent:`primary`,variant:`link`,onClick:s,className:`px-0! border-0! hover:text-accent! mr-4 md:mr-10`}),(0,u.jsx)(P,{label:d,iconName:`fa-download`,iconType:`fa-solid`,intent:`primary`,variant:`link`,onClick:c,className:`px-0! border-0! hover:text-accent!`})]}),ie?(0,u.jsx)(`div`,{className:`md:hidden mb-10`,children:ie}):null,ae?(0,u.jsx)(`div`,{className:`mb-5`,children:(0,u.jsx)(kl,{items:H,value:h,onChange:g,renderTab:({item:e,isActive:t,onTabClick:n})=>(0,u.jsx)(`button`,{type:`button`,onClick:n,className:[`w-full py-2 text-md`,t?`opacity-100 font-medium`:`opacity-60 hover:opacity-90`].join(` `),children:e.label})})}):null,(0,u.jsxs)(`div`,{className:`md:mb-10`,children:[(0,u.jsxs)(`div`,{className:[`space-y-5`,U?`md:min-h-[32rem]`:``].join(` `),children:[U&&_.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(v,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.product??`Product`,`:`]}),(0,u.jsx)(Gl,{items:_,value:S??void 0,onChange:G(_)})]}):null,U&&y.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(v,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.grade??`Grade`,`:`]}),(0,u.jsx)(Gl,{items:y,value:C??void 0,onChange:G(y)})]}):null,U&&b.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(v,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.texture??`Texture`,`:`]}),(0,u.jsx)(Gl,{items:b,value:w??void 0,onChange:G(b)})]}):null,U&&x.length?(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(v,{as:`p`,variant:`bold`,className:`mb-2 text-sm md:text-base md:font-medium!`,children:[m?.size??`Size`,`:`]}),(0,u.jsx)(Gl,{items:x,value:T??void 0,onChange:G(x)})]}):null,U&&h===`Buy Now`?(0,u.jsxs)(`div`,{children:[D?(0,u.jsx)(v,{as:`a`,href:D,variant:`body`,className:`text-sm underline hover:text-accent`,onClick:oe(D,{kind:`availability`}),children:O}):null,(0,u.jsxs)(`div`,{className:`hidden md:block text-sm md:mt-4`,children:[(0,u.jsxs)(`span`,{className:`opacity-80`,children:[k,` `]}),A?(0,u.jsx)(v,{as:`a`,href:A,variant:`body`,className:`underline hover:text-accent`,onClick:oe(A,{kind:`returnPolicy`}),children:j}):null]})]}):null,U&&h===`Buy Now`&&N?(0,u.jsx)(v,{as:`p`,variant:`h3`,className:`mt-1`,children:N}):null]}),U?(0,u.jsx)(`div`,{children:(0,u.jsx)(Wl,{errorMessage:I,initialQuantity:F,minQuantity:L,maxQuantity:R,showFavorites:z,wishlistLabel:m?.addToWishlist,decreaseQuantityLabel:m?.decreaseQuantity,increaseQuantityLabel:m?.increaseQuantity,onAddToWishlist:V,onAddToCart:ne??(()=>{}),onQuantityChange:E,cartLabel:h===`Sample`?m?.addSampleToCart??`Add Sample to Cart`:m?.addToCart})}):null,U&&h===`Buy Now`?(0,u.jsxs)(`div`,{className:`md:hidden text-sm pb-10`,children:[(0,u.jsxs)(`span`,{className:`opacity-80`,children:[k,` `]}),A?(0,u.jsx)(v,{as:`a`,href:A,variant:`body`,className:`underline hover:text-accent`,onClick:oe(A,{kind:`returnPolicy`}),children:j}):null]}):null]})]}),W&&te?(0,u.jsx)(`div`,{className:`md:absolute md:inset-x-0 md:bottom-0`,children:(0,u.jsx)(ge,{actions:te,onActionClick:re})}):null]})},ql=(e,t)=>Math.max(0,Math.min(e,t-1)),Jl=({items:e,initialIndex:t=0,loop:n=!0,showArrows:r=!0,arrowPosition:i=`sides`,onSelect:a,renderItem:o,className:s=``,trackClassName:l=``,ariaLabel:d=`Carousel`,header:f})=>{let p=e?.length??0,[m,h]=c.default.useState(()=>ql(t,p||1)),[g,_]=c.default.useState(()=>ql(t,p||1));if(c.default.useEffect(()=>{p>0&&(h(e=>ql(e,p)),_(e=>ql(e,p)))},[p]),p===0)return null;let v=t=>{let n=ql(t,p);h(n),a?.(n,e[n])},y=e=>{_(n?(e+p)%p:ql(e,p))},b=()=>y(g-1),x=()=>y(g+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)(P,{variant:`ghost`,"aria-label":`Previous`,onClick:b,intent:`primary`,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`chevron-left`,alt:``,size:`md`})}),(0,u.jsx)(P,{variant:`ghost`,"aria-label":`Next`,onClick:x,intent:`primary`,children:(0,u.jsx)(S,{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)(P,{variant:`ghost`,"aria-label":`Previous`,onClick:b,intent:`primary`,children:(0,u.jsx)(S,{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)(P,{variant:`ghost`,"aria-label":`Next`,onClick:x,intent:`primary`,children:(0,u.jsx)(S,{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(-${g} * (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:()=>v(t)})},t))})]})]})},Yl=(e,t)=>Math.max(0,Math.min(e,t-1)),Xl=e=>typeof e==`string`?e.replace(/^http:\/\//i,`https://`):``,Zl=({slides:e,initialIndex:t=0,text:n,fallbackImage:r})=>{let i=e??[],a=r?{id:`fallback-image`,image:r}:null,o=i;!o.length&&a&&(o=[a]);let s=o.length,[l,d]=c.default.useState(()=>Yl(t,s||1)),[f,p]=c.default.useState(()=>new Set);if(c.default.useEffect(()=>{s>0&&d(e=>Yl(e,s))},[s]),s===0)return null;let m=o[l];if(!m?.image?.src&&!r?.src)return null;let h=(e,t)=>(!e||f.has(e)||f.has(Xl(e)))&&r?.src?r:{src:e??``,alt:t??``},g=h(m?.image?.src,m?.image?.alt),_=Xl(g.src),y=g.alt??``,b=e=>{!e||r?.src===e||p(t=>{let n=new Set(t);return n.add(e),n.add(Xl(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)(L,{src:_,alt:y,className:`w-full h-full object-cover`,loading:`lazy`,decoding:`async`,quality:90,onError:()=>b(g.src)})}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(Jl,{items:o,initialIndex:l,loop:!0,showArrows:!0,ariaLabel:`Thumbnail carousel`,onSelect:e=>d(e),renderItem:({item:e,isActive:t,select:n,index:r})=>{let i=h(e.thumbnail?.src??e.image?.src,e.thumbnail?.alt??e.image?.alt),a=Xl(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)(L,{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)(v,{as:`p`,variant:`body`,className:`text-xs md:text-sm`,children:n})})]})},Ql=({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)(Zl,{slides:r,initialIndex:i,text:a,fallbackImage:n})})},$l=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},eu=(e,t)=>!!(t&&e.some(e=>(e.value??e.id)===t)),tu=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),[])},nu=(e,t)=>!e||!t?null:`${e}x${t}`,ru=(e,t,n)=>Math.max(t,Math.min(n,e)),iu=(e,t=`USD`)=>new Intl.NumberFormat(`en-US`,{style:`currency`,currency:t}).format(e),au=e=>!!e?.length,ou=(e,t)=>au(e)&&au(t),su=(e=[])=>e.some(e=>!!e.sku&&!!e.rangeId&&!!e.grade&&!!e.texture&&!!e.widthIn&&!!e.lengthIn),cu=e=>{let{sku:t,decor:n,title:r,description:i,colourMatching:a,colourMatchingLabel:o,patternRepeat:s,onDownloadSwatch:l,onDownloadFullSheet:d,downloadSwatchLabel:f,downloadFullSheetLabel:p,carousel:m,tabs:h=[`Sample`,`Buy Now`],tabLabels:g,labels:_,initialTab:v=`Sample`,tabOptions:y,productOptions:b=[],sizeOptions:x=[],variants:S=[],currency:C,initialQuantity:w=1,errorMessage:T,minQuantity:E=1,maxQuantity:D=99,showFavorites:O=!0,actionMode:k=`cart`,contactActions:A,onAddToWishlist:j,onAddToCart:M,onSelectionChange:N,onContactActionClick:P,availabilityHref:F,availabilityLabel:I=`View full product availability and information`,returnPolicyHref:L,returnPolicyLabel:R=`View return policy`,notReturnableText:ee=`This item is not returnable.`,onPurchaseInfoLinkClick:z}=e,B=Array.isArray(h)&&h.length?h:[`Sample`,`Buy Now`],te=y?.Sample,V=y?.[`Buy Now`],ne=te?.productOptions??b??[],re=te?.sizeOptions??x??[],ie=V?.productOptions??b??[],H=ou(ne,re),U=au(ie)&&su(S),W=B.filter(e=>e===`Sample`?H:e===`Buy Now`?U:!0),ae=W[0]??`Sample`,[G,oe]=c.default.useState(W.includes(v)?v:ae);c.default.useEffect(()=>{if(!W.length){oe(`Sample`);return}W.includes(G)||oe(ae)},[G,W,ae]);let se=y?.[G],ce=!!se,le=se?.minQuantity??E,ue=se?.maxQuantity??D,de=se?.productOptions??(ce?[]:b)??[],fe=G===`Buy Now`,[pe,me]=c.default.useState(()=>({product:$l(de),grade:null,texture:null,size:null})),he=c.default.useRef(!1),ge=eu(de,pe.product)?pe.product:$l(de),K=fe&&ge?S.filter(e=>e.rangeId===ge):[],_e=tu(K.map(e=>({value:e.grade,label:e.grade}))),ve=fe?_e:se?.gradeOptions??[],ye=eu(ve,pe.grade)?pe.grade:$l(ve),be=ye?K.filter(e=>e.grade===ye):K,xe=tu(be.map(e=>({value:e.texture,label:e.finish||e.texture}))),Se=fe?xe:se?.textureOptions??[],Ce=eu(Se,pe.texture)?pe.texture:$l(Se),we=Ce?be.filter(e=>e.texture===Ce):be,Te=new Map((se?.sizeOptions??x??[]).map(e=>[e.value??e.id,e.label])),Ee=tu(we.map(e=>{let t=nu(e.widthIn,e.lengthIn)??void 0;return{value:t,label:t?Te.get(t)??t:void 0}})),De=fe?Ee:se?.sizeOptions??(ce?[]:x)??[],Oe=eu(De,pe.size)?pe.size:$l(De);c.default.useEffect(()=>{if(!he.current){he.current=!0;return}me({product:$l(de),grade:$l(ve),texture:$l(Se),size:$l(De)})},[G]),c.default.useEffect(()=>{me(e=>{let t=e.product&&de.some(t=>(t.value??t.id)===e.product)?e.product:$l(de),n=e.grade&&ve.some(t=>(t.value??t.id)===e.grade)?e.grade:$l(ve),r=e.texture&&Se.some(t=>(t.value??t.id)===e.texture)?e.texture:$l(Se),i=e.size&&De.some(t=>(t.value??t.id)===e.size)?e.size:$l(De);return e.product===t&&e.grade===n&&e.texture===r&&e.size===i?e:{product:t,grade:n,texture:r,size:i}})},[de,ve,Se,De]);let q=c.default.useMemo(()=>{if(G!==`Buy Now`)return null;let e={product:ge,grade:ye,texture:Ce,size:Oe},t=S.filter(t=>{let n=nu(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},[G,S,ge,ye,Ce,Oe]),ke=G!==`Buy Now`||!!q,Ae=G===`Buy Now`&&q?q.price?.label??iu(q.price?.value??0,C):``,je=G===`Buy Now`&&q?q.price?.value??0:0,Me=G===`Buy Now`?q?.sku??t:t,[J,Ne]=c.default.useState(()=>ru(w,le,ue)),Pe=c.default.useRef(G),Fe=c.default.useRef(N);c.default.useEffect(()=>{Fe.current=N},[N]),c.default.useEffect(()=>{Fe.current?.({type:G,sku:Me,decor:n,product:ge,grade:ye,texture:Ce,size:Oe,quantity:ru(J,le,ue)})},[G,Me,n,ge,ye,Ce,Oe,J,le,ue]),c.default.useEffect(()=>{Ne(ru(w,le,ue))},[w,le,ue]),c.default.useEffect(()=>{Pe.current!==G&&(Pe.current=G,Ne(le))},[G,le]);let Ie=(e,t)=>(t??[]).map(t=>{let n=t.value??t.id;return{id:t.id,label:t.label,disabled:t.disabled,value:n,active:pe[e]===n,onOptionClick:()=>{t.disabled||(me(t=>({...t,[e]:n})),t.onOptionClick?.(t.id))}}}),Le={sku:Me,title:r,decor:n,description:i,colourMatching:a,colourMatchingLabel:o,patternRepeat:s,onDownloadSwatch:l,onDownloadFullSheet:d,downloadSwatchLabel:f,downloadFullSheetLabel:p,tabs:W,tabLabels:g,labels:_,activeTab:G,onTabChange:oe,productOptions:Ie(`product`,de),gradeOptions:Ie(`grade`,ve),textureOptions:Ie(`texture`,Se),sizeOptions:Ie(`size`,De),availabilityHref:F,availabilityLabel:I,returnPolicyHref:L,returnPolicyLabel:R,notReturnableText:ee,priceLabel:Ae,errorMessage:T,initialQuantity:J,minQuantity:le,maxQuantity:ue,showCartActions:W.includes(G)&&ke,showFavorites:O,actionMode:k,contactActions:A,selectedProduct:ge,selectedGrade:ye,selectedTexture:Ce,selectedSize:Oe,onAddToWishlist:()=>{j?.({sku:Me,decor:n})},onAddToCart:e=>{if(G===`Buy Now`&&!q)return;let t={type:G,sku:Me,decor:n,product:ge,grade:ye,texture:Ce,size:Oe,quantity:e,priceValue:G===`Buy Now`?je:0,priceLabel:G===`Buy Now`?Ae:`$0.00`,currency:C,bigCommerceProductId:q?.bigCommerceProductId};M?.(t)},onContactActionClick:e=>{P?.({...e,sku:Me,decor:n,title:r,activeTab:G,product:ge,grade:ye,texture:Ce,size:Oe})},onQuantityChange:e=>Ne(e),onPurchaseInfoLinkClick:z,mobileMediaSlot:(0,u.jsx)(Ql,{carousel:m})};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)(Ql,{carousel:m})}),(0,u.jsx)(Kl,{...Le})]})})})},lu=({imageSrc:e,imageAlt:t=`Standard Copy Hero`,heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})=>(0,u.jsx)(Tl,{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)($s,{heading:n,subheading:r,body:i,linkLabel:a,onLinkClick:o})})}),uu=({categoryText:e,imageSrc:t,imageAlt:n=`Article Header`,tags:r=[],onTagClick:i})=>(0,u.jsx)(Tl,{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)(Xs,{categoryText:e,tags:r,onTagClick:i})}),du=({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)(qs,{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)(v,{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`})]})})},fu=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)(L,{src:t,alt:n,className:`w-full h-full object-cover`,quality:90})})},pu={left:`text-left`,center:`text-center`,right:`text-right`},mu={small:`text-xl md:text-4xl`,medium:`text-2xl md:text-4xl`,large:`text-3xl md:text-5xl`},hu=e=>{let{heading:t,align:n=`left`,headingAlign:r=n,subheading:i,body:a,datetimeStamp:o,headingLevel:s=`h1`,headingSize:c=`large`,addTopMargin:l=!1}=e,d=pu[n],f=pu[r],p=l?`mt-10 md:mt-20`:``,m=o?`mb-1`:`mb-4 md:mb-6`,h=`${f} ${mu[c]} text-primary ${m}`;return(0,u.jsxs)(`section`,{className:`w-full ${p}`.trim(),children:[t?(0,u.jsx)(v,{as:s,variant:`free`,className:h,children:t}):null,o?(0,u.jsx)(v,{variant:`caption`,className:`${d} md:text-base font-bold mb-6`,children:o}):null,i?(0,u.jsx)(v,{as:`h2`,variant:`bold`,className:`${d} text-primary mb-4`,children:i}):null,a?(0,u.jsx)(Uc,{html:a,className:d}):null]})},gu=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)(hu,{...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)(hu,{...a,body:t})})]})},_u=({title:e=`Featured Products`,body:t,headerAlign:n=`center`,headerVariant:r=`default`,items:i,onItemClick:a})=>{if(!i?.length)return null;let o=n===`left`?`text-left md:mx-0`:`text-center`,s=r===`compact`?`text-tertiary text-base font-bold`:`text-primary text-2xl md:text-4xl`,c=r===`compact`?`text-tertiary text-base font-bold`:`text-primary text-xl font-bold md:font-normal md:text-2xl`,l=r===`compact`?`max-w-6xl w-full mb-8 md:mb-10 mx-auto px-4 md:px-0`:`max-w-6xl w-full mb-16 md:mb-20 mx-auto px-4 md:px-0`,d=i.length<4,f=d?`justify-evenly`:``;return(0,u.jsxs)(`section`,{className:l,children:[t?(0,u.jsxs)(`div`,{className:`mx-auto mb-4 max-w-4xl md:mb-6 ${o}`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:s,children:e}),(0,u.jsx)(v,{variant:`body`,className:`mt-4 text-primary`,children:t})]}):null,(0,u.jsx)(Jl,{items:i,ariaLabel:e,arrowPosition:`top-right`,showArrows:!d,trackClassName:f,header:t?null:(0,u.jsx)(v,{variant:`free`,className:c,children:e}),renderItem:({item:e})=>(0,u.jsx)(zo,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,title:e.title,brand:e.brand,decorNumber:e.decorNumber,onProductClick:a?()=>a(e):void 0},e.id)})]})},vu=({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)(v,{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)(bc,{...e})},`${e.title}-${t}`))})]})}):null,yu=({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)(v,{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)(v,{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)(ac,{question:e.question,answer:e.answer,initiallyOpen:e.initiallyOpen},e.id))})]})}),bu=(e,t)=>e.id??[e.label,e.imageSrc,t].join(`-`),xu=e=>{let t=[],n=0,r=0;for(;n<e.length;){let i=r%2==0?2:3;t.push({entries:e.slice(n,n+i),columns:i}),n+=i,r+=1}return t},Su=({items:e=[],onImageOverlayCardClick:t,layoutVariant:n=`uniform`})=>{if(!e.length)return null;let r=e.map((e,t)=>({item:e,index:t}));return n===`uniform`?(0,u.jsx)(`section`,{children:(0,u.jsx)(G,{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)(tc,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,onCardClick:t?()=>t({item:e,index:n}):void 0},bu(e,n)))})}):(0,u.jsx)(`section`,{className:`px-4 py-20 md:px-4`,children:xu(r).map((e,n,r)=>{let i=e.columns===3;return(0,u.jsx)(G,{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)(tc,{imageSrc:e.imageSrc,imageAlt:e.imageAlt,label:e.label,aspectRatio:i?`compact`:`video`,onCardClick:t?()=>t({item:e,index:n}):void 0},bu(e,n)))},`image-overlay-grid-row-${n}`)})})},Cu={2:`md:grid-cols-2`,3:`md:grid-cols-3`,4:`md:grid-cols-4`},wu=({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)(G,{columns:1,gap:`lg`,gridClassName:Cu[n],children:e.map(e=>(0,u.jsx)(`div`,{"aria-current":e.id===t?`true`:void 0,className:`h-full`,children:(0,u.jsx)(Uo,{location:e,stockedProductsLabel:r,preferredLabel:i,websiteLabel:a,directionsLabel:o,emailLabel:s,onWebsiteClick:c,onDirectionsClick:l,onPhoneClick:d,onEmailClick:f})},e.id))}):null,Tu=({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)(v,{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)(Cc,{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)(Cc,{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)(P,{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)(v,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:i}):null]}):null]}),Eu={left:`text-left`,center:`text-center`,right:`text-right`},Du={left:`justify-start text-left`,center:`justify-center text-center`,right:`justify-end text-right`},Ou={xs:`w-24`,sm:`w-32`,md:`w-48`,lg:`w-64`,xl:`w-80`},ku=e=>e==null||e===``?`-`:String(e),Au=e=>e==null?``:String(e),ju=e=>e==null||String(e).trim()===``,Mu=e=>e.reduce((e,t)=>(e[t.id]={...t,values:{...t.values}},e),{}),Nu=({title:e,description:t,columns:n,rows:r,rowCountLabel:i,updateLabel:a=`Update`,updateDisabled:o=!1,emptyMessage:s=`No report data available.`,ariaLabel:l,onRowUpdate:d})=>{let f=(0,c.useRef)(null),[p,m]=(0,c.useState)(Mu(r)),[h,g]=(0,c.useState)(null),_=t?.trim()??``,y=i?.trim()??(r.length===1?`1 row`:`${r.length.toLocaleString()} rows`),b=r.length>0;(0,c.useEffect)(()=>{m(Mu(r)),g(null)},[r]),(0,c.useEffect)(()=>{if(!h)return;let e=e=>{let t=e.target;t instanceof Element&&(t.closest(`[data-data-report-cell-editor='true']`)||g(null))};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[h]);let x=(e,t,n)=>{m(r=>{let i=r[e];return i?{...r,[e]:{...i,values:{...i.values,[t]:n}}}:r})},S=e=>{let t=p[e.id]??e;d?.({row:t,originalRow:e})},C=(e,t)=>!!(t.required||t.requiredWhen&&e.values[t.requiredWhen.columnId]===t.requiredWhen.value),w=e=>{let t=p[e.id]??e;return n.some(e=>C(t,e)&&ju(t.values[e.id]))},T=(e,t)=>{let n=(p[e.id]??e).values[t.id];return ju(n)?t.placeholder??`-`:t.editor===`select`?t.options?.find(e=>e.value===String(n))?.label??ku(n):ku(n)},E=(e,t,n,r,i)=>{let a=p[e.id]??e,s=h===n,c=t.editable!==!1,l=C(a,t),d=l&&ju(a.values[t.id]);return s?t.editor===`select`?(0,u.jsx)(`div`,{"data-data-report-cell-editor":`true`,children:(0,u.jsx)(os,{id:`${n}-editor`,name:t.id,ariaLabel:`${t.label} for row ${e.id}`,value:Au(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:Au(a.values[t.id]),onBlur:()=>g(null),onChange:n=>x(e.id,t.id,n.target.value),onKeyDown:e=>{(e.key===`Enter`||e.key===`Escape`)&&g(null)}}):c?(0,u.jsx)(`button`,{type:`button`,className:i,disabled:o,onClick:()=>g(n),children:(0,u.jsx)(`span`,{className:`min-w-0 truncate`,children:T(e,t)})}):T(e,t)};return(0,u.jsxs)(`section`,{ref:f,"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)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e}),_?(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:_}):null]}),(0,u.jsx)(v,{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:Ou[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 ${Ou[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 ${Ou[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 ${Du[r]}`)},n)}),(0,u.jsx)(`td`,{className:`whitespace-nowrap px-4 py-3 text-center`,children:(0,u.jsx)(we,{"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)(we,{"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)(v,{variant:`free`,className:`px-3 py-4 text-sm text-primary`,children:s})})]})},Pu=({groups:e,itemLabel:t=`decors`,emptyMessage:n=`No decors are available.`,showGroupHeaders:r=!0,onDecorClick:i,onDeleteDecorRequest:a})=>{let o=(0,c.useId)();return e.some(e=>e.items.length>0)?(0,u.jsx)(`div`,{className:`space-y-8`,children:e.map((e,n)=>{if(!e.items.length)return null;let s=`${o}-${n}`;return(0,u.jsxs)(`section`,{"aria-labelledby":r?s:void 0,"aria-label":r?void 0:e.label,children:[r?(0,u.jsxs)(`header`,{className:`flex items-end justify-between gap-4 border-b border-borderTertiary pb-3`,children:[(0,u.jsx)(v,{as:`h2`,id:s,variant:`free`,className:`text-base font-bold text-primary`,children:e.label}),(0,u.jsxs)(v,{variant:`free`,className:`shrink-0 text-xs font-bold text-tertiary`,children:[e.totalCount.toLocaleString(),` `,t]})]}):null,(0,u.jsx)(`div`,{className:r?`mt-3 space-y-3`:`space-y-3`,children:e.items.map(e=>(0,u.jsx)(Te,{...e,onDecorClick:i,onDeleteDecorRequest:a},e.decorId))})]},e.id)})}):(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:n})},Fu=({ranges:e,emptyMessage:t=`No ranges are available.`,onRangeClick:n,onDeleteRangeRequest:r})=>e.length?(0,u.jsx)(`section`,{"aria-label":`Ranges`,className:`space-y-3`,children:e.map(e=>(0,u.jsx)(ze,{...e,onRangeClick:n,onDeleteRangeRequest:r},e.rangeId))}):(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:t}),Iu=({layoutVariant:e=`table`,documentTitleLabel:t=`Document Title`,documentRangeLabel:n=`Range`,documentTypeLabel:r=`Type`,documentSubtypeLabel:i=`Subtype`,emptyMessage:a=`No Documents Are Available`,downloadLabelTemplate:o,documentInfoCards:s,onDownloadClick:c,onRangeClick:l})=>s.length===0?(0,u.jsx)(v,{variant:`free`,className:`pt-6 text-center text-sm text-primary`,children:a}):(0,u.jsx)(`section`,{className:`w-full`,children:(0,u.jsxs)(`div`,{className:e===`compact`?`flex flex-col`:`flex flex-col p-2`,children:[e===`table`?(0,u.jsxs)(`header`,{className:`hidden md:flex flex-row gap-4 border-b border-secondaryHover pb-3 pr-10 font-bold`,children:[(0,u.jsx)(v,{className:`flex-2`,children:t}),(0,u.jsx)(v,{className:`flex-1`,children:n}),(0,u.jsx)(v,{className:`flex-1`,children:r}),(0,u.jsx)(v,{className:`flex-1`,children:i})]}):null,s.map(t=>(0,u.jsx)(rc,{documentInfoCardItem:t,layoutVariant:e,downloadLabelTemplate:o,onDownloadClick:c,onRangeClick:l},t.id))]})}),Lu={lat:39.9612,lng:-82.9988},Ru=()=>window,zu=()=>Ru().google,Bu=e=>{let t=Ru();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)},Vu=({center:e,locations:t,selectedLocationId:n})=>{let r=t.find(e=>e.id===n);return e??r?.coordinates??t[0]?.coordinates??Lu},Hu=({googleMapsApiKey:e,mapId:t,locations:n,center:r,zoom:i=10,selectedLocationId:a,ariaLabel:o=`Locations map`,legendLabel:s,onLocationSelect:l})=>{let d=c.default.useRef(null),f=c.default.useRef(null),p=c.default.useRef([]),[m,h]=c.default.useState(e?`loading`:`missing-key`),g=c.default.useMemo(()=>Vu({center:r,locations:n,selectedLocationId:a}),[r,n,a]);c.default.useEffect(()=>{if(!e)return h(`missing-key`),()=>void 0;let t=!0;return h(`loading`),Bu(e).then(()=>{t&&h(`loaded`)}).catch(()=>{t&&h(`error`)}),()=>{t=!1}},[e]),c.default.useEffect(()=>{if(m!==`loaded`||!d.current)return;let e=zu();e&&(f.current?(f.current.setCenter(g),f.current.setZoom(i)):f.current=new e.maps.Map(d.current,{center:g,zoom:i,mapId:t,clickableIcons:!1,fullscreenControl:!0,mapTypeControl:!1,streetViewControl:!1}))},[m,t,g,i]),c.default.useEffect(()=>{if(m!==`loaded`||!f.current)return;let e=zu();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`,()=>{l?.({location:t})}),r}))},[m,n,l]),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 _=n.slice(0,6);return(0,u.jsxs)(`section`,{className:`w-full`,"aria-label":o,children:[(0,u.jsx)(`div`,{ref:d,"data-testid":`location-map-canvas`,className:`h-80 w-full bg-secondary/10 md:h-96`,children: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:_.map((e,t)=>(0,u.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-left text-primary`,onClick:()=>l?.({location:e}),children:[(0,u.jsx)(`span`,{className:`flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-accent text-xs text-white`,children:t+1}),(0,u.jsx)(v,{as:`span`,variant:`body`,children:e.name})]},e.id))}):null}),s?(0,u.jsxs)(`div`,{className:`mt-3 flex items-center gap-2`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`location-dot`,color:`accent`,size:`sm`}),(0,u.jsx)(v,{variant:`caption`,className:`text-primary`,children:s})]}):null]})},Uu={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`}},Wu={match:`text-saleGreen`,mismatch:`text-accent`,neutral:`text-tertiary`},Gu=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 ${Wu[n]}`,children:t}):null]})]},e.id)},Ku=(e,t,n)=>{let r=e.description?.trim()??``,i=e.actionHelpText?.trim()??``,a=Uu[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)(S,{iconType:`fa-solid`,iconName:a.iconName,alt:``,size:`xs`}),e.statusLabel]})]}),(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`mt-4 text-base font-bold`,children:e.title}),r?(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:r}):null]}),(0,u.jsx)(`dl`,{className:`mt-5`,children:e.fields.map(Gu)}),e.actionLabel?(0,u.jsxs)(`footer`,{className:`mt-auto pt-5`,children:[i?(0,u.jsx)(v,{variant:`free`,className:`mb-2 text-xs text-tertiary`,children:i}):null,(0,u.jsx)(P,{label:e.actionLabel,iconType:`fa-solid`,iconName:`arrows-rotate`,iconAlt:``,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:e.actionDisabled,onClick:n})]}):null]})},qu=({title:e=`Commerce Sync`,summary:t,detail:n,overallStatus:r,overallStatusLabel:i,lxStage:a,salsifyStage:o,bigCommerceStage:s,refreshLabel:c=`Check Again`,onLxSyncClick:l,onBigCommerceSyncClick:d,onRefreshClick:f})=>{let p=n?.trim()??``,m=Uu[r],h=[{stage:a,onActionClick:void 0},{stage:o,onActionClick:l},{stage:s,onActionClick:d}];return(0,u.jsxs)(`section`,{"aria-labelledby":`commerce-sync-panel-heading`,children:[(0,u.jsx)(`div`,{"aria-label":`Commerce sync summary`,className:`rounded-lg border p-4 ${m.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)(S,{iconType:`fa-solid`,iconName:m.iconName,alt:``,size:`sm`})}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(v,{as:`h2`,id:`commerce-sync-panel-heading`,variant:`free`,className:`text-base font-bold text-inherit`,children:[e,`: `,i]}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-inherit`,children:t}),p?(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs text-inherit`,children:p}):null]})]}),f?(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(P,{label:c,iconType:`fa-solid`,iconName:`arrows-rotate`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,onClick:f})}):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:h.map((e,t)=>(0,u.jsxs)(`div`,{className:`relative min-w-0`,children:[Ku(e.stage,t+1,e.onActionClick),t<h.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)(S,{iconType:`fa-solid`,iconName:`chevron-right`,alt:``,size:`xs`})}):null]},e.stage.title))})]})},Ju=({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)(v,{variant:`bold`,className:`pt-2`,children:e}),r.length>0&&(0,u.jsx)(P,{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)(P,{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)(v,{as:`span`,variant:`body`,className:`text-secondaryActive leading-none`,children:n})})]})})},Yu=({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)(S,{iconType:`fa-solid`,iconName:n,className:`text-primary text-md mr-2`}):null,t?(0,u.jsx)(v,{variant:`free`,className:`text-lg text-primary `,children:t}):null]}),r&&(0,u.jsx)(Ju,{header:r.header,clearAllLabel:r.clearAllLabel,emptyStateLabel:r.emptyStateLabel,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)(Ys,{label:e.label,options:e.options,onOptionSelect:l}),e.type===`checkbox`&&(0,u.jsx)(ts,{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)(P,{variant:`outline`,intent:`accent`,size:`sm`,className:`w-full`,label:i,onClick:()=>o()}),(0,u.jsx)(P,{variant:`solid`,intent:`accent`,size:`sm`,className:`w-full`,label:a,onClick:()=>s()})]})})]}),Xu=[{label:`Architect or Designer`,value:`architectDesigner`},{label:`Builder or Construction`,value:`builderConstruction`},{label:`Dealer or Retailer`,value:`dealerRetailer`},{label:`Distributor`,value:`distributor`},{label:`Fabricator`,value:`fabricator`},{label:`General Contractor`,value:`generalContractor`},{label:`Homeowner`,value:`homeowner`},{label:`Media and Press`,value:`mediaPress`},{label:`Other`,value:`other`},{label:`Postformer`,value:`postformer`}],Zu=({htmlFor:e,label:t,errorMessage:n})=>(0,u.jsx)(v,{as:`label`,htmlFor:e,className:`text-sm ${n?`text-accent!`:`text-primary`}`,children:n||t}),Qu=({data:e,actionLabels:t,labels:n,onModeChange:r,onEmailChange:i,onPasswordChange:a,onFirstNameChange:o,onLastNameChange:s,onPhoneNumberChange:c,onUserTypeChange:l,onConfirmPasswordChange:d,onMarketingOptInChange:f,onTermsAcceptedChange:p,onEmailBlur:m,onPasswordBlur:h,onForgotPasswordClick:g,onTermsClick:_,onPrivacyClick:y,onSignInClick:b,onCreateAccountClick:x,onSecondaryClick:S})=>{let C=e.mode??`signIn`,w=C===`createAccount`,T=e.errors??{},E=e.userTypeOptions??Xu,D=[{id:`createAccount`,label:n?.createAccountMode??`Create Account`},{id:`signIn`,label:n?.signInMode??`Sign In`}],O=w?t?.createAccountPrimary??`Create Account`:t?.signInPrimary??`Sign In`,k=t?.secondary??`Cancel`;return(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-8`,children:[(0,u.jsx)(Gc,{ariaLabel:n?.modeAriaLabel??`Login mode`,layoutVariant:`equalWidth`,items:D,selectedId:C,onSelect:e=>r?.(e)}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[w?(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-5 md:grid-cols-2`,children:[(0,u.jsx)($,{id:`account-access-first-name`,name:`firstName`,label:n?.firstName??`First Name*`,value:e.firstName??``,placeholder:n?.firstNamePlaceholder??`First Name*`,hasError:!!T.firstName,errorMessage:T.firstName,autoComplete:`given-name`,onChange:o}),(0,u.jsx)($,{id:`account-access-last-name`,name:`lastName`,label:n?.lastName??`Last Name`,value:e.lastName??``,placeholder:n?.lastNamePlaceholder??`Last Name`,autoComplete:`family-name`,onChange:s})]}):null,(0,u.jsx)($,{id:`account-access-email`,name:`email`,type:`email`,label:n?.email??`Email`,value:e.email??``,placeholder:w?n?.emailPlaceholder??`Email*`:``,hasError:!!T.email,errorMessage:T.email,autoComplete:`email`,onChange:i,onBlur:m}),w?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)($,{id:`account-access-phone-number`,name:`phoneNumber`,type:`tel`,label:n?.phoneNumber??`Phone Number*`,value:e.phoneNumber??``,placeholder:n?.phoneNumberPlaceholder??`Phone Number*`,hasError:!!T.phoneNumber,errorMessage:T.phoneNumber,autoComplete:`tel`,onChange:c}),(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[(0,u.jsx)(Zu,{htmlFor:`account-access-user-type`,label:n?.userType??`I am a*`,errorMessage:T.userType}),(0,u.jsx)(os,{id:`account-access-user-type`,name:`userType`,placeholder:n?.userTypePlaceholder??`I am a*`,value:e.userType??``,hasError:!!T.userType,options:E.map(e=>({label:e.label,value:e.value,disabled:e.disabled})),onChange:e=>l?.(e.target.value)})]})]}):null,(0,u.jsx)($,{id:`account-access-password`,name:`password`,type:`password`,label:n?.password??`Password`,value:e.password??``,placeholder:w?n?.passwordPlaceholder??`Password*`:``,hasError:!!T.password,errorMessage:T.password,autoComplete:w?`new-password`:`current-password`,linkText:w?void 0:n?.forgotPassword??`Forgot Password?`,linkHref:`#`,onLinkClick:g,onChange:a,onBlur:h}),w?(0,u.jsxs)(u.Fragment,{children:[e.passwordRequirementsText?(0,u.jsx)(v,{variant:`caption`,className:`text-accent`,children:e.passwordRequirementsText}):null,(0,u.jsx)($,{id:`account-access-confirm-password`,name:`confirmPassword`,type:`password`,label:n?.confirmPassword??`Confirm Password*`,value:e.confirmPassword??``,placeholder:n?.confirmPasswordPlaceholder??`Confirm Password*`,hasError:!!T.confirmPassword,errorMessage:T.confirmPassword,autoComplete:`new-password`,onChange:d}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,u.jsxs)(`label`,{htmlFor:`account-access-marketing-opt-in`,className:`flex cursor-pointer items-center gap-3 rounded-md border border-secondaryHover bg-secondaryHover/30 py-3 pr-3 pl-5 text-sm leading-5 text-primary`,children:[(0,u.jsx)(`input`,{id:`account-access-marketing-opt-in`,name:`marketingOptIn`,type:`checkbox`,checked:e.marketingOptIn??!1,onChange:e=>f?.(e.target.checked),className:`h-4 w-4 shrink-0 accent-accent`}),(0,u.jsx)(`span`,{children:n?.marketingOptIn??`I give my permission to collect and use my information and receive updates regarding new launches, sales and marketing materials.`})]}),(0,u.jsxs)(`div`,{className:`flex items-center gap-3 rounded-md border border-secondaryHover bg-secondaryHover/30 py-3 pr-3 pl-5 text-sm leading-5 text-primary`,children:[(0,u.jsx)(`input`,{id:`account-access-terms-accepted`,name:`termsAccepted`,type:`checkbox`,"aria-label":n?.termsConsentAriaLabel??`I agree to Formica's Terms of Use and Privacy Policy`,checked:e.termsAccepted??!1,onChange:e=>p?.(e.target.checked),className:`h-4 w-4 shrink-0 accent-accent`}),(0,u.jsxs)(`span`,{children:[n?.termsConsentPrefix??`I agree to Formica's`,` `,(0,u.jsx)(P,{type:`button`,variant:`link`,intent:`accent`,className:`p-0! text-sm leading-5 align-baseline`,label:n?.termsOfUse??`Terms of Use`,onClick:_}),` `,n?.termsConsentJoin??`and`,` `,(0,u.jsx)(P,{type:`button`,variant:`link`,intent:`accent`,className:`p-0! text-sm leading-5 align-baseline`,label:n?.privacyPolicy??`Privacy Policy`,onClick:y}),`.`]})]}),T.termsAccepted?(0,u.jsx)(v,{variant:`caption`,className:`text-accent`,children:T.termsAccepted}):null]})]}):null]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 ${w?`mb-8`:``}`,children:[(0,u.jsx)(P,{type:`button`,variant:`solid`,intent:`accent`,className:`w-full`,onClick:w?x:b,children:O}),(0,u.jsx)(P,{type:`button`,variant:`outline`,intent:`primary`,className:`w-full border-primary text-primary`,onClick:S,children:k})]})]})},$u=({customerName:e,children:t,tabs:n,activeTabId:r,greeting:i=`Welcome back,`,logoutLabel:a=`Log out`,onTabClick:o,onLogoutClick:s})=>(0,u.jsx)(`section`,{className:`w-full bg-white`,children:(0,u.jsxs)(`div`,{className:`mx-auto w-full max-w-6xl px-4 pb-16 pt-6 md:px-0 md:pt-10`,children:[(0,u.jsxs)(`header`,{className:`flex items-center justify-between gap-4 pb-5`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-4`,children:[(0,u.jsx)(`span`,{className:`flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-tertiaryActive text-primary`,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`user`,alt:``,size:`2xl`})}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(v,{variant:`caption`,children:i}),(0,u.jsx)(v,{as:`p`,variant:`free`,className:`mt-1 truncate font-rockwell text-2xl text-primary`,children:e})]})]}),(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(P,{label:a,variant:`link`,intent:`accent`,size:`sm`,onClick:s})})]}),(0,u.jsx)(`nav`,{"aria-label":`Customer account sections`,children:(0,u.jsx)(`div`,{role:`tablist`,children:(0,u.jsx)(kl,{items:n.map(e=>({label:e.label,value:e.id})),value:r,onChange:e=>{let t=n.find(t=>t.id===e);t&&o({item:t})},renderTab:({item:e,isActive:t,onTabClick:n})=>(0,u.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":t,className:`w-full px-2 py-4 text-xs font-semibold transition md:px-5 md:text-sm ${t?`text-primary`:`text-secondaryActive hover:text-primary`}`,onClick:n,children:e.label})})})}),(0,u.jsx)(`main`,{className:`pt-8 md:pt-10`,children:t})]})}),ed=({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)(P,{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)})})},td=({data:e})=>e?(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:gap-6`,children:[!!e?.summary&&(0,u.jsx)(v,{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)(uc,{colourMatching:e.colourMatching,label:e.colourMatchingLabel})]}):null,nd=({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)(v,{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)(L,{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)(v,{as:`h4`,variant:`free`,className:`text-lg md:text-xl font-bold text-primary`,children:e.title}),!!e.description&&(0,u.jsx)(v,{as:`p`,variant:`body`,className:`max-w-80 leading-6`,children:e.description})]})]},e.key))})]},e.id))}):null,rd=(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},id=({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)(v,{as:`h3`,variant:`free`,className:`text-xl md:text-3xl leading-none mb-1`,children:n.title}),!!a&&(0,u.jsx)(v,{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)(v,{as:`span`,variant:`free`,className:`text-xs text-nowrap`,children:rd(e)},e))}),(0,u.jsx)(`div`,{className:`flex flex-col gap-2`,children:i.map(e=>(0,u.jsx)(v,{as:`span`,variant:`free`,className:`text-xs text-nowrap`,children:rd(e,!0)},e))})]})]},n.id)})}),!!e.content&&(0,u.jsx)(`div`,{children:e.content}),!!e.summary&&(0,u.jsx)(v,{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)(v,{as:`span`,variant:`body`,children:[(0,u.jsxs)(`span`,{className:`font-medium`,children:[e.grade,`: `]}),e.text]},e.id))})]}):null,ad=[{label:`Product Details`,value:`details`},{label:`Texture`,value:`texture`},{label:`Size & Grade Guide`,value:`sizeAndGrade`}],od=(e,t)=>e?.length?t&&e.some(e=>e.id===t)?t:e[0].id:``,sd=e=>{typeof window>`u`||e.forEach(e=>{if(!e)return;let t=new window.Image;t.src=e})},cd=({ranges:e,defaultTab:t=`details`,tabLabels:n,defaultRangeId:r,selectedGrade:i})=>{let[a,o]=c.default.useState(t),[s,l]=c.default.useState(od(e,r));if(c.default.useEffect(()=>{l(od(e,r))},[e,r]),c.default.useEffect(()=>{let t=e?.flatMap(e=>e.texture?.groups??[]).flatMap(e=>e.items??[]).map(e=>e.imageSrc).filter(e=>!!e)??[];sd([...new Set(t)])},[e]),!e?.length)return null;let d=ad.map(e=>({...e,label:n?.[e.value]??e.label})),f=e.find(e=>e.id===s)??e[0];return(0,u.jsxs)(`section`,{className:`w-full flex flex-col pb-10 md:pb-0`,children:[(0,u.jsx)(`div`,{className:`w-full`,children:(0,u.jsx)(`div`,{className:`max-w-6xl w-full mx-auto px-4 md:px-6`,children:(0,u.jsx)(`div`,{className:`flex justify-start`,children:(0,u.jsx)(kl,{items:d.map(e=>({label:e.label,value:e.value,disabled:!1})),value:a,onChange:e=>o(e)})})})}),(0,u.jsx)(`div`,{className:`md:max-w-6xl md:mx-auto px-4 md:px-6 md:py-8 pt-6 w-full md:pl-32 md:min-h-[489px]`,children:(0,u.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-[240px_minmax(0,1fr)] gap-6 md:gap-10`,children:[(0,u.jsx)(`div`,{className:`md:pr-8 md:border-r border-black/10 md:min-h-40`,children:(0,u.jsx)(ed,{items:e.map(e=>({id:e.id,label:e.label})),value:f.id,onChange:e=>l(e)})}),(0,u.jsx)(`div`,{children:(()=>{switch(a){case`details`:return(0,u.jsx)(td,{data:f.details});case`texture`:return(0,u.jsx)(nd,{data:f.texture});case`sizeAndGrade`:return(0,u.jsx)(id,{data:f.sizeAndGrade,selectedGrade:i});default:return null}})()})]})})]})},ld=({isOpen:e,title:t=`My Cart`,projectName:n=``,projectNamePlaceholder:r=`Enter project name`,emptyCartText:i=`Your cart is empty.`,goToCartLabel:a=`Go to Cart`,clearCartLabel:o=`Clear Cart`,freeLabel:s=`Free`,closeOverlayLabel:c=`Close cart overlay`,closeCartLabel:l=`Close cart`,flyoutAriaLabel:d=`Shopping cart flyout`,removeItemLabel:f=`Remove item`,decreaseQuantityLabel:p=`Decrease quantity`,increaseQuantityLabel:m=`Increase quantity`,items:h=[],className:g=``,onClose:_,onProjectNameChange:y,onQuantityChange:b,onRemoveItem:x,onClearCart:S,onGoToCart:C})=>{if(!e)return null;let w=h.length>0;return(0,u.jsxs)(`div`,{className:`fixed inset-0 z-50 flex justify-end`,children:[(0,u.jsx)(`button`,{type:`button`,"aria-label":c,className:`absolute inset-0 bg-black/40`,onClick:_}),(0,u.jsxs)(`aside`,{className:`relative z-10 flex h-full w-full max-w-md flex-col bg-white shadow-xl ${g}`,"aria-label":d,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between px-6 py-4`,children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`text-3xl text-primary`,children:t}),(0,u.jsx)(P,{iconType:`fa-solid`,iconName:`fa-xmark`,intent:`ghost`,variant:`ghost`,"aria-label":l,onClick:_,className:`text-secondaryActive!`})]}),(0,u.jsx)(`div`,{className:`mt-6 px-6`,children:(0,u.jsx)(`input`,{type:`text`,value:n,onChange:e=>y?.(e.target.value),placeholder:r,className:`w-full rounded-lg border border-secondaryActive px-4 py-1 text-primary outline-none focus:border-primary`})}),(0,u.jsx)(`div`,{className:`flex-1 overflow-y-auto px-6 py-5`,children:w?(0,u.jsx)(`div`,{className:`flex flex-col gap-4`,children:h.map(e=>(0,u.jsx)(he,{sku:e.sku,imageSrc:e.imageSrc,imageAlt:e.imageAlt,title:e.title,brand:e.brand,decorNumber:e.decorNumber,productType:e.productType,quantity:e.quantity,errorMessage:e.errorMessage,price:e.price,minQuantity:e.minQuantity,maxQuantity:e.maxQuantity,freeLabel:s,removeItemLabel:f,decreaseQuantityLabel:p,increaseQuantityLabel:m,onQuantityChange:t=>b?.(e.id,t),onRemoveItem:()=>x?.(e.id),id:``},e.id))}):(0,u.jsx)(`div`,{className:`rounded-lg border border-secondaryActive p-6`,children:(0,u.jsx)(v,{variant:`free`,className:`text-base text-primary`,children:i})})}),(0,u.jsx)(`div`,{className:`px-6 py-5`,children:(0,u.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,u.jsx)(P,{label:a,intent:`accent`,variant:`solid`,onClick:C,disabled:!w,className:`w-full`}),(0,u.jsx)(P,{label:o,intent:`secondary`,variant:`solid`,onClick:S,disabled:!w,className:`w-full`})]})})]})]})};function ud(e=[]){return e.reduce((e,t)=>(e[t.id]=t,e[t.value]=t,e),{})}var dd=(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})),fd=(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}))},pd=(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)},[])},md=(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},[])},hd=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??[]})),gd=e=>e?`Grade ${e}`:``,_d=({breadcrumbsProps:e,productData:t,errorMessage:n,showFavorites:r=!0,onDownloadSwatch:i,onDownloadFullSheet:a,onAddToWishlist:o,onAddToCart:s,onSelectionChange:l,onContactActionClick:d,onProductNavigate:f,cartFlyoutProps:p})=>{let m=t??{},h=m.images??[],g=m.product,_=m.content,v=m.optionSets,y=m.purchase,b=m.downloads,x=m.ranges??[],S=m.standardCopyHero,C=m.featuredProducts??[],w=g?.colourMatching,T=v?.ranges??[],E=v?.textures??[],D=v?.sizes??[],O=v?.sampleSizes??[],k=ud(T),A=ud(E),j=ud(D),M=ud(O),N=y?.tabOptions?.Sample??{},P=y?.tabOptions?.[`Buy Now`]??{},F=y?.defaults??{},I=fd(m.variants??[]),L=m.variants?.[0]?.grade??null,[R,ee]=c.default.useState(gd(L));c.default.useEffect(()=>{ee(gd(L))},[L]);let z=I.map(e=>{let t=gd(e.value);return{...e,active:t===R,onOptionClick:()=>ee(t)}}),B=N.productOptionIds,te=B?.filter(e=>!!k[e])??[],V=B?.length?te:md(m.variants??[]),ne=N.textureOptionIds,re=ne?.filter(e=>!!A[e])??[],ie=ne?.length?dd(A,re,F.texture??null):pd(m.variants??[],F.texture??null),H=P.productOptionIds,U=H?.filter(e=>!!k[e])??[],W=H?U:T.map(e=>e.id),ae={sku:g?.sku??``,decor:g?.decor??``,title:g?.title??``,description:g?.description??``,colourMatching:w,colourMatchingLabel:g?.colourMatchingLabel,patternRepeat:g?.patternRepeat??``,variants:m.variants??[],onDownloadSwatch:()=>i?.(m),onDownloadFullSheet:()=>a?.(m),downloadSwatchLabel:b?.swatch?.label,downloadFullSheetLabel:b?.fullSheet?.label,carousel:{slides:h.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:_?.sampleDisclaimer??``,fallbackImage:{src:Tc,alt:`Product image unavailable`}},tabs:v?.purchaseTabs??[`Sample`,`Buy Now`],tabLabels:_?.purchaseTabLabels,labels:_?.purchaseLabels,initialTab:_?.defaultPurchaseTab??`Buy Now`,tabOptions:{Sample:{minQuantity:N.minQuantity,maxQuantity:N.maxQuantity,productOptions:dd(k,V,_?.defaultRangeId??T[0]?.value??null),gradeOptions:[],textureOptions:ie,sizeOptions:dd(M,N.sizeOptionIds??[],null)},"Buy Now":{minQuantity:P.minQuantity,maxQuantity:P.maxQuantity,productOptions:dd(k,W,_?.defaultRangeId??T[0]?.value??null),gradeOptions:z,textureOptions:dd(A,P.textureOptionIds??[],F.texture??null),sizeOptions:dd(j,P.sizeOptionIds??[],F.size??null)}},productOptions:dd(k,W,_?.defaultRangeId??T[0]?.value??null),gradeOptions:z,selectedGrade:R,textureOptions:dd(A,P.textureOptionIds??[],F.texture??null),sizeOptions:dd(j,P.sizeOptionIds??[],F.size??null),availabilityHref:_?.availabilityHref??`#`,availabilityLabel:_?.availabilityLabel??`View full product availability and information`,returnPolicyHref:_?.returnPolicyHref??`#`,returnPolicyLabel:_?.returnPolicyLabel??`View return policy`,notReturnableText:_?.notReturnableText??`This item is not returnable.`,priceLabel:g?.price?.label??``,priceValue:g?.price?.value??0,currency:g?.currency??`USD`,errorMessage:n,onSelectionChange:l,initialQuantity:F.quantity??1,minQuantity:F.minQuantity??1,maxQuantity:F.maxQuantity??99,showFavorites:r,actionMode:y?.actionMode??`cart`,contactActions:y?.contactActions,onAddToWishlist:e=>{o?.(e,m)},onAddToCart:e=>{s?.(e,m)},onContactActionClick:e=>{d?.(e,m)},onPurchaseInfoLinkClick:f},G={ranges:x.map(e=>{let t=e.sizeAndGrade?.definitions??[],n=hd(e.sizeAndGrade?.cards);return{id:e.id,label:e.label,details:{summary:e.details?.summary??``,content:e.details?.content,colourMatching:e.details?.colourMatching,colourMatchingLabel:e.details?.colourMatchingLabel},texture:{groups:e.texture?.groups??[]},sizeAndGrade:{summary:e.sizeAndGrade?.summary??``,definitions:t,cards:n,content:e.sizeAndGrade?.content}}}),defaultTab:_?.defaultInfoTab??`details`,tabLabels:_?.productInformationTabLabels,defaultRangeId:_?.defaultRangeId??x[0]?.id??``,selectedGrade:R,className:``},oe=e=>{let t=e.href||(e.rangeCode&&e.decorNumber?`/products/${e.rangeCode.toUpperCase()}/${e.decorNumber.toUpperCase()}`:``);t&&f?.(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)(hl,{...e}),(0,u.jsx)(cu,{...ae}),(0,u.jsx)(cd,{...G}),(0,u.jsx)(`div`,{className:`hidden md:block`,children:S&&(0,u.jsx)(lu,{imageSrc:S.imageSrc??``,imageAlt:S.imageAlt??``,heading:S.heading??``,subheading:S.subheading??``,body:S.body??``,linkLabel:S.linkLabel,linkHref:S.linkHref??`#`})}),C.length>0&&(0,u.jsx)(_u,{title:t.featuredProductsTitle??``,items:C,onItemClick:oe})]}),p?(0,u.jsx)(ld,{...p}):null]})},vd=({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)(P,{label:e.label,variant:t?`solid`:`ghost`,intent:t?`neutral`:`radio`,size:`sm`,active:t,onClick:()=>a(e),"aria-pressed":t},e.value)})})})},yd=({standardCopyHeroProps:e,multiButtonBarProps:t,featuredArticleBannerProps:n,featureCardCollectionProps:r})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(lu,{...e}),(0,u.jsx)(vd,{...t}),(0,u.jsx)(Ol,{...n}),(0,u.jsx)(Rl,{...r})]}),bd=(e,t)=>e.id??[e.decorNumber,e.title,e.brand,e.product,e.status??`standard`,t].join(`-`),xd=({swatches:e=[],onSwatchClick:t})=>(0,u.jsx)(G,{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)(Ec,{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},bd(e,n))})}),Sd=e=>e.flatMap(e=>e.options.filter(e=>e.checked).map(e=>({id:e.id,label:e.label}))),Cd=(e,t,n)=>e.map(e=>({...e,options:e.options.map(e=>e.id===t?{...e,checked:n}:e)})),wd=e=>e.map(e=>({...e,options:e.options.map(e=>({...e,checked:!1}))})),Td=e=>e.tabs?.selectedValue??e.tabs?.options[0]?.value??``,Ed=e=>e.filters.sort?.value??e.filters.sort?.options?.[0]?.value??e.filters.sort?.options?.[0]?.label??``,Dd=e=>e.filters.search?.value??``,Od=e=>e.filters.panel?e.filters.toggleButton?.initiallyVisible??!0:!1,kd=({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(()=>Od(e)),m=e.filters.panel?.sections??[],h=Td(e),g=Ed(e),_=Dd(e),v=e.tabs,y=e.filters.sort,b=e.filters.search,x=e.filters.panel,S=!!(x||y||b),C=c.default.useMemo(()=>Sd(m),[m]),w=e.filters.labels,T=w?.panelHeader??x?.header,E=w?.clearAllLabel??x?.clearAllLabel,D=w?.applyFiltersLabel??x?.applyFiltersLabel,O=w?.appliedOptionsHeader??x?.appliedOptionsHeader,k=f?w?.hideFiltersLabel??e.filters.toggleButton?.hideLabel??`Hide Filters`:w?.showFiltersLabel??e.filters.toggleButton?.showLabel??`Show Filters`,A=w?.mobileFiltersLabel??e.filters.toggleButton?.mobileLabel??T??`Filters`,j=c.default.useCallback((t,n)=>{o?.(t,n,e)},[e,o]),M=c.default.useCallback(e=>{j(Cd(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`checkbox`})},[j,m]),N=c.default.useCallback(e=>{j(Cd(m,e.id,e.checked),{action:`toggle`,optionId:e.id,checked:e.checked,sectionType:`colorSwatch`})},[j,m]),P=c.default.useCallback(()=>{j(wd(m),{action:`clear-all`})},[j,m]);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)(lu,{...e.hero,onLinkClick:()=>n?.(e)}),v?(0,u.jsx)(vd,{options:v.options,selectedValue:h,onSelect:t=>{r?.(t,e)}}):null,S?(0,u.jsxs)(As,{children:[x?(0,u.jsx)(js,{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)(Ms,{className:`hidden md:block md:w-70`,dropdownProps:{...y,value:g,onChange:t=>{i?.(t.target.value,e)}}}):null,b?(0,u.jsx)(Ps,{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)(Yu,{header:T,headerIcon:x.headerIcon,resetLabel:E,applyFiltersLabel:D,sections:m,appliedOptions:{header:O,clearAllLabel:E,emptyStateLabel:w?.emptyStateLabel,optionsList:C,onRemoveOption:e=>{j(Cd(m,e.id,!1),{action:`remove`,optionId:e.id})},onRemoveAll:P},onResetClick:P,onApplyFiltersClick:()=>void 0,onCheckboxChange:M,onColorSelect:N})}):null,l&&x?(0,u.jsx)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":T??A,className:`md:hidden`,children:(0,u.jsx)(Yu,{header:T,headerIcon:x.headerIcon,resetLabel:E,applyFiltersLabel:D,sections:m,appliedOptions:{header:O,clearAllLabel:E,emptyStateLabel:w?.emptyStateLabel,optionsList:C,onRemoveOption:e=>{j(Cd(m,e.id,!1),{action:`remove`,optionId:e.id})},onRemoveAll:P},onResetClick:P,onApplyFiltersClick:()=>d(!1),onCheckboxChange:M,onColorSelect:N})}):null,(0,u.jsx)(`div`,{className:`${l?`hidden`:`block`} my-8 md:my-0 md:block md:min-w-0 md:flex-1`,children:(0,u.jsx)(xd,{swatches:e.decorGrid.swatches,onSwatchClick:(t,n)=>s?.(t,n,e)})})]})]})},Ad=({images:e=[],onImageClick:t})=>(0,u.jsx)(G,{className:`mb-16 px-4 md:my-12 md:px-0`,gridClassName:`md:grid-cols-4`,columns:2,gap:`md`,children:e.map((e,n)=>(0,u.jsx)(`div`,{children:(0,u.jsx)(K,{className:`block w-full cursor-pointer text-left`,onCardClick:()=>t?.({image:e,index:n}),ariaLabel:`Open ${e.alt}`,children:(0,u.jsx)(L,{src:e.src,alt:e.alt,quality:e.quality,className:`aspect-square rounded-lg object-cover`})})},`${e.alt}-${n}`))}),jd=({standardCopyHeroProps:e,multiButtonBarProps:t,imageGridProps:n})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(lu,{...e}),(0,u.jsx)(vd,{...t}),(0,u.jsx)(As,{layoutVariant:`separator`}),(0,u.jsx)(Ad,{...n})]}),Md=({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)(v,{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)(ic,{title:e.title,details:e.details,iconName:e.iconName,onDocumentClick:e.onDocumentClick},e.id))})]})}),Nd=e=>!!e?.replace(/<[^>]*>/g,``).replace(/ | | /gi,` `).trim(),Pd=({standardCopyHeroProps:e,multiButtonBarProps:t,warrantyCardProps:n,documentLinkCollectionProps:r,infoCardProps:i,faqCardCollectionProps:a})=>(0,u.jsxs)(u.Fragment,{children:[e&&[e.imageSrc,e.heading,e.subheading,e.body,e.linkLabel].some(Nd)&&(0,u.jsx)(lu,{...e}),t&&!!t.options?.length&&(0,u.jsx)(vd,{...t}),n&&Nd(n.body)&&(0,u.jsx)(U,{spacing:`section`,children:(0,u.jsx)(gu,{...n})}),r&&!!r.documentLinkCards?.length&&(0,u.jsx)(Md,{...r}),i&&([i.imageSrc,i.headline,i.body].some(Nd)||i.buttons?.some(e=>Nd(e.buttonLabel)))&&(0,u.jsx)(U,{spacing:`section`,children:(0,u.jsx)(oc,{...i})}),a&&!!a.faqCards?.length&&(0,u.jsx)(yu,{...a})]}),Fd=(e,t)=>e.id??[e.decorNumber,e.title,e.brand,e.rangeCode,t].join(`-`),Id=(e,t)=>e.slice(0,Math.max(0,Math.min(t??e.length,e.length))),Ld=(e,t,n)=>n??`View ${e} more ${t}`,Rd=({searchFilterProps:e,resultsHeading:t,decorResultsProps:n,resourceResultsProps:r,documentResultsProps:i,noResultsMessage:a})=>{let o=n?.items??[],s=r?.items??[],c=i?.items??[],l=Id(c,i?.visibleItemCount),d=c.length-l.length,f=Id(o,n?.visibleItemCount),p=Id(s,r?.visibleItemCount),m=o.length-f.length,h=s.length-p.length,g=e.searchBarProps.value?.trim(),_=g?`Showing results for "${g}"`:`Search Results`,y=t??_,b=o.length>0,x=s.length>0,S=c.length>0,C=b||x||S;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(U,{isFirst:!0,spacing:`compactPaddedSection`,children:[(0,u.jsx)(v,{as:`h1`,variant:`free`,className:`mb-6 text-2xl text-primary md:text-3xl`,children:y}),(0,u.jsx)(Ps,{...e,layoutVariant:`full`})]}),b&&n?(0,u.jsxs)(U,{spacing:`compactPaddedSection`,children:[n.title?(0,u.jsx)(v,{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:`grid grid-cols-2 gap-6 md:grid-cols-5`,children:f.map((e,t)=>(0,u.jsx)(Ec,{imageSrc:e.imageSrc,imageAlt:e.imageAlt??`${e.title} decor`,title:e.title,brand:e.brand??``,product:e.rangeCode,decorNumber:e.decorNumber??``,onSwatchClick:n.onItemClick?()=>n.onItemClick?.(e):void 0},Fd(e,t)))}),m>0?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(P,{variant:`outline`,intent:`accent`,size:`sm`,label:Ld(m,`decor results`,n.viewMoreLabel),onClick:n.onViewMoreClick})}):null]}):null,S&&i?(0,u.jsxs)(U,{spacing:`compactPaddedSection`,children:[i.title?(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`mb-4 text-base font-bold text-tertiary md:mb-8`,children:i.title}):null,(0,u.jsx)(G,{columns:1,gridClassName:`md:grid-cols-2`,children:l.map(e=>(0,u.jsx)(ic,{title:e.title,details:e.details,iconName:e.iconName,onDocumentClick:e.onDocumentClick},e.id))}),d>0?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(P,{variant:`outline`,intent:`accent`,size:`sm`,label:Ld(d,`documents`,i.viewMoreLabel),onClick:i.onViewMoreClick})}):null]}):null,x&&r?(0,u.jsxs)(U,{spacing:`compactPaddedSection`,children:[r.title?(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`mb-4 text-base font-bold text-tertiary md:mb-8`,children:r.title}):null,(0,u.jsx)(`div`,{className:`flex flex-col gap-4 md:gap-8`,children:p.map((e,t)=>(0,u.jsx)(bc,{...e,layoutVariant:e.layoutVariant??`mediaLeftCompact`},`${e.title}-${t}`))}),h>0?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(P,{variant:`outline`,intent:`accent`,size:`sm`,label:Ld(h,`resources`,r.viewMoreLabel),onClick:r.onViewMoreClick})}):null]}):null,C?null:(0,u.jsx)(U,{spacing:`paddedSection`,children:(0,u.jsx)(v,{variant:`body`,children:a})})]})},zd=({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)(L,{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)(Qu,{...n,onSecondaryClick:t})})]})}),Bd=e=>{let t=e.options.find(t=>t.value===e.selectedValue)??e.options[0];return t?.value??t?.label??``},Vd=({data:e,className:t=``,onProductChange:n,onSearchSubmit:r,onTabChange:i,onLocationSelect:a,onWebsiteClick:o,onDirectionsClick:s,onPhoneClick:c,onEmailClick:l})=>{let d=e.locations.length>0,f=e.results.selectedLocationId??e.map.selectedLocationId,p=Bd(e.tabs);return(0,u.jsxs)(`section`,{className:t,children:[(0,u.jsx)(El,{...e.banner,onProductChange:t=>n?.(t,e),onSearchSubmit:t=>r?.(t,e)}),(0,u.jsx)(U,{spacing:`none`,className:`mb-8 pt-10`,innerClassName:`flex justify-center`,children:(0,u.jsx)(kl,{className:`w-full`,items:e.tabs.options.map(e=>({label:e.label,value:e.value,disabled:e.disabled})),value:p,onChange:t=>{let n=e.tabs.options.find(e=>(e.value??e.label)===t);n&&i?.({label:n.label,value:n.value},e)}})}),(0,u.jsx)(U,{spacing:`none`,className:`mb-8 pb-10 md:mb-10`,children:(0,u.jsx)(Hu,{...e.map,locations:e.locations,selectedLocationId:e.map.selectedLocationId??f,onLocationSelect:t=>a?.(t,e)})}),d?(0,u.jsx)(wu,{...e.results,locations:e.locations,selectedLocationId:f,onWebsiteClick:t=>o?.(t,e),onDirectionsClick:t=>s?.(t,e),onPhoneClick:t=>c?.(t,e),onEmailClick:t=>l?.(t,e)}):(0,u.jsx)(U,{spacing:`paddedSection`,children:(0,u.jsxs)(`div`,{className:`text-center`,children:[e.emptyState?.heading?(0,u.jsx)(v,{as:`h2`,variant:`h2`,children:e.emptyState.heading}):null,e.emptyState?.body?(0,u.jsx)(v,{variant:`body`,children:e.emptyState.body}):null]})})]})},Hd=({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)(v,{as:`h1`,variant:`h1`,className:``,children:e}),(0,u.jsx)(v,{as:`p`,variant:`body`,className:`mt-4`,children:t}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(P,{type:`button`,variant:`solid`,intent:`accent`,label:n,onClick:r,className:`w-80`})})]})}),Ud=({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)(v,{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)(v,{variant:`free`,className:`text-primary`,children:n.methodLabel}):null,n.estimatedDeliveryLabel?(0,u.jsx)(v,{variant:`free`,className:`mt-3 text-sm text-tertiary`,children:n.estimatedDeliveryLabel}):null]}),n.price?(0,u.jsx)(v,{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)(v,{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)(v,{variant:`free`,className:e.isEmphasized?`font-extrabold text-primary`:`text-primary`,children:e.label}),(0,u.jsx)(v,{variant:`free`,className:`${e.isEmphasized?`font-extrabold text-primary`:`text-primary`} ${e.valueClassName||``}`,children:e.value})]},`${e.label}-${t}`))})})]}):null]})})},Wd=e=>(0,u.jsxs)(`div`,{className:`min-w-0 flex flex-col gap-1`,children:[(0,u.jsx)(v,{variant:`free`,className:`font-extrabold text-primary`,children:e.title}),e.name?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:e.name}):null,e.addressLine1?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:e.addressLine1}):null,e.addressLine2?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:e.addressLine2}):null,e.addressLine3?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:e.addressLine3}):null,e.country?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:e.country}):null]}),Gd=({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)(v,{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)(v,{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)(v,{variant:`free`,className:`text-sm text-primary`,children:t.orderNumberLabel}):null,t.orderNumber?(0,u.jsx)(v,{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)(v,{variant:`free`,className:`text-sm text-primary`,children:t.orderDateLabel}):null,t.orderDate?(0,u.jsx)(v,{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)(v,{variant:`free`,className:`text-sm text-primary`,children:t.nameLabel}):null,t.name?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:t.name}):null,t.email?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:t.email}):null,t.phone?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:t.phone}):null]})]}),Wd({title:n.title||`Shipping Address`,...n}),Wd({title:r.title||`Billing Address`,...r})]})]})}),Kd=({sectionTitle:e=`Order Summary`,showPricing:t=!0,columnLabels:n={},items:r=[]})=>{let{orderDetails:i=`Order Details`,quantity:a=`Quantity`,unitPrice:o=`Unit Price`,total:s=`Total`}=n;return(0,u.jsx)(`section`,{className:`w-full`,children:(0,u.jsxs)(`div`,{className:`w-full`,children:[(0,u.jsx)(v,{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)(v,{variant:`free`,className:`font-extrabold text-primary`,children:i}),(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(v,{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)(v,{variant:`free`,className:`font-extrabold text-primary`,children:o})}),(0,u.jsx)(`div`,{className:`flex justify-center`,children:(0,u.jsx)(v,{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)(fc,{...e,isReadOnly:!0,showPricing:t})},`${e.decorNumber||e.title||`item`}-${n}`))})]})})},qd=({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)(Hd,{...e}),(0,u.jsxs)(`div`,{className:`px-12 pb-16`,children:[(0,u.jsx)(`div`,{className:`mt-10`,children:(0,u.jsx)(Gd,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Kd,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Ud,{...r})})]})]})}),Jd=({title:e=`Ship To`,idPrefix:t=`shipping`,addressPurpose:n=`shipping`,firstName:r=``,lastName:i=``,email:a=``,phoneNumber:o=``,companyName:s=``,userType:l=``,address:d=``,addressAutocomplete:f,apartment:p=``,postalCode:m=``,city:h=``,country:g=`united-states`,countryLabel:_,stateProvince:y=``,addressRegionVariant:b=`default`,countryDisplayMode:x=`select`,countryOptions:C=[],stateProvinceOptions:w=[],userTypeOptions:T=[],firstNamePlaceholder:E=`First Name`,lastNamePlaceholder:D=`Last Name`,emailPlaceholder:O=`Email`,phoneNumberPlaceholder:k=`Phone Number`,companyNamePlaceholder:A=`Company Name (Optional)`,userTypePlaceholder:j=`I am a*`,addressPlaceholder:M=`Address`,apartmentPlaceholder:N=`Apartment/Suite/Building (Optional)`,cityPlaceholder:P,postalCodePlaceholder:F,stateProvincePlaceholder:I,countryPlaceholder:L=`Country`,showCompanyName:R=!0,showContactFields:ee=!0,addressErrorMessage:z,errors:B={},onFirstNameChange:te,onLastNameChange:V,onEmailChange:ne,onPhoneNumberChange:re,onCompanyNameChange:ie,onUserTypeChange:H,onAddressChange:U,onApartmentChange:W,onPostalCodeChange:ae,onCityChange:G,onCountryChange:oe,onStateProvinceChange:se,onFirstNameBlur:ce,onLastNameBlur:le,onEmailBlur:ue,onPhoneNumberBlur:de,onCompanyNameBlur:fe,onUserTypeBlur:pe,onAddressBlur:me,onApartmentBlur:he,onPostalCodeBlur:ge,onCityBlur:K,onCountryBlur:_e,onStateProvinceBlur:ve})=>{let ye=c.default.useId(),be=`section-`+(t+n+ye).replace(/[^a-zA-Z0-9]/g,``),xe=e=>`${be} ${n} ${e}`,Se=b===`ca`||b===`mx`,Ce=b===`uk`,we=P??`City`,Te=F??`Postal Code`,Ee=I??(b===`ca`?`Province`:`State/Province`),De=_??C.find(e=>e.value===g)?.label??g,Oe=`${t}-address-error`,q=!!z,ke=(0,u.jsx)($,{id:`${t}-city`,name:`city`,autoComplete:xe(`address-level2`),placeholder:we,value:h,hasError:q||!!B.city,ariaDescribedBy:q?Oe:void 0,errorMessage:B.city,onChange:G,onBlur:K}),Ae=(0,u.jsx)($,{id:`${t}-postal-code`,name:`postalCode`,autoComplete:xe(`postal-code`),placeholder:Te,value:m,hasError:q||!!B.postalCode,ariaDescribedBy:q?Oe:void 0,errorMessage:B.postalCode,onChange:ae,onBlur:ge}),je=(0,u.jsx)(os,{id:`${t}-state-province`,name:`stateProvince`,autoComplete:xe(`address-level1`),options:w,value:y,placeholder:Ee,hasError:q||!!B.stateProvince,ariaDescribedBy:q?Oe:void 0,variant:`field`,onChange:se,onBlur:ve}),Me=x===`readonly`?(0,u.jsx)($,{id:`${t}-country`,name:`country`,autoComplete:xe(`country-name`),placeholder:L,value:De,readOnly:!0,hasError:q||!!B.country,ariaDescribedBy:q?Oe:void 0,errorMessage:B.country}):(0,u.jsx)(os,{id:`${t}-country`,name:`country`,autoComplete:xe(`country`),options:C,value:g,placeholder:L,hasError:q||!!B.country,ariaDescribedBy:q?Oe:void 0,variant:`field`,onChange:oe,onBlur:_e}),J=(0,u.jsxs)(u.Fragment,{children:[Ae,ke,Me,je]});return Se&&(J=(0,u.jsxs)(u.Fragment,{children:[ke,je,Ae,Me]})),Ce&&(J=(0,u.jsxs)(u.Fragment,{children:[ke,Ae,(0,u.jsx)(`div`,{className:`col-span-2`,children:Me})]})),(0,u.jsxs)(`section`,{className:`flex flex-col gap-6`,children:[(0,u.jsx)(v,{as:`h2`,variant:`bold`,className:`text-primary`,children:e}),(0,u.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[ee?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)($,{id:`${t}-first-name`,name:`firstName`,autoComplete:xe(`given-name`),placeholder:E,value:r,hasError:!!B.firstName,errorMessage:B.firstName,onChange:te,onBlur:ce}),(0,u.jsx)($,{id:`${t}-last-name`,name:`lastName`,autoComplete:xe(`family-name`),placeholder:D,value:i,hasError:!!B.lastName,errorMessage:B.lastName,onChange:V,onBlur:le}),(0,u.jsx)($,{id:`${t}-email`,name:`email`,autoComplete:xe(`email`),type:`email`,placeholder:O,value:a,hasError:!!B.email,errorMessage:B.email,onChange:ne,onBlur:ue}),(0,u.jsx)($,{id:`${t}-phone-number`,name:`phoneNumber`,autoComplete:xe(`tel`),type:`tel`,placeholder:k,value:o,hasError:!!B.phoneNumber,errorMessage:B.phoneNumber,onChange:re,onBlur:de}),T.length>0?(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)(os,{id:`${t}-user-type`,name:`userType`,options:T,value:l,placeholder:j,hasError:!!B.userType,variant:`field`,onChange:e=>H?.(e.target.value),onBlur:pe})}):null,R?(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-company-name`,name:`companyName`,autoComplete:xe(`organization`),placeholder:A,value:s,hasError:!!B.companyName,errorMessage:B.companyName,onChange:ie,onBlur:fe})}):null]}):null,(0,u.jsx)(`div`,{className:`col-span-2`,children:f?(0,u.jsx)($o,{...f,variant:`address`,id:t+`-address`,name:`address`,ariaLabel:M,placeholder:M,value:d,minQueryLength:f.minQueryLength??3,autoComplete:xe(`address-line1`),hasError:q||!!B.address,ariaDescribedBy:q?Oe:void 0,errorMessage:B.address,onInputChange:U,onBlur:me}):(0,u.jsx)($,{id:`${t}-address`,name:`address`,autoComplete:xe(`address-line1`),placeholder:M,value:d,hasError:q||!!B.address,ariaDescribedBy:q?Oe:void 0,errorMessage:B.address,onChange:U,onBlur:me})}),(0,u.jsx)(`div`,{className:`col-span-2`,children:(0,u.jsx)($,{id:`${t}-apartment`,name:`apartment`,autoComplete:xe(`address-line2`),placeholder:N,value:p,hasError:!!B.apartment,errorMessage:B.apartment,onChange:W,onBlur:he})}),z?(0,u.jsxs)(`div`,{id:Oe,role:`alert`,className:`col-span-2 flex items-center gap-3 rounded-md border border-accent bg-accent/10 p-4`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`route`,size:`xl`,color:`accent`,className:`shrink-0`}),(0,u.jsx)(v,{variant:`body`,className:`font-bold text-accent`,children:z})]}):null,J]})]})},Yd=({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)(v,{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)(ss,{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))})]}),Xd=({steps:e=[],currentStep:t=0,onStepClick:n,className:r=``,completedColorClass:i=`text-accent!`,upcomingColorClass:a=`text-primary`,connectorCompletedClass:o=`bg-accent!`,connectorUpcomingClass:s=`bg-primary`})=>{if(!e.length)return null;let l=typeof t==`number`?t:e.findIndex(e=>e===t),d=l>=0?l:0,f=(e,t)=>e<t?{left:o,icon:i,right:o}:e===t?{left:o,icon:a,right:s}:{left:s,icon:a,right:s},p=(e,t)=>{let r=t<=d?i:a;return typeof n==`function`?(0,u.jsx)(`button`,{type:`button`,onClick:()=>n(e,t),className:`shrink-0 text-left`,children:(0,u.jsx)(v,{as:`span`,className:`${r} whitespace-nowrap`,children:e})},`step-${e}-${t}`):(0,u.jsx)(`div`,{className:`shrink-0`,children:(0,u.jsx)(v,{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 p(t,n);let r=f(n,d);return(0,u.jsxs)(c.default.Fragment,{children:[p(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)(S,{iconName:`fa-circle-check`,iconType:`fa-solid`,className:`mx-3 shrink-0 text-md ${r.icon}`}),(0,u.jsx)(`span`,{className:`block h-px flex-1 ${r.right}`})]})]},`${t}-${n}`)})})},Zd=({shippingAddressFormProps:e,shippingOptionSelectorProps:t,checkoutProgressIndicatorProps:n,sampleOrderSummaryPanelProps:r,submitLabel:i=`Submit Sample Order`,onSubmitSampleOrder:a})=>(0,u.jsx)(`section`,{className:`flex w-full justify-center px-4 py-10 pb-24 md:py-16 md:pb-28`,children:(0,u.jsx)(`div`,{className:`w-full max-w-6xl`,children:(0,u.jsxs)(`div`,{className:`grid w-full grid-cols-1 gap-8 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Jd,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Yd,{...t})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Xd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Bl,{...r})}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(P,{label:i,intent:`accent`,fullWidth:!0,onClick:a})})]})]})})}),Qd=({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)(v,{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)(fc,{imageSrc:e.imageSrc,imageAlt:e.imageAlt||e.title,title:e.title,brand:e.brand||``,decorNumber:e.decorNumber||``,quantity:e.quantity,errorMessage:e.errorMessage,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)(Xd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Bl,{...r})}),(0,u.jsxs)(`div`,{className:`mt-8 flex flex-col gap-3 bg-white`,children:[(0,u.jsx)(P,{label:i,intent:`accent`,fullWidth:!0,onClick:c}),(0,u.jsx)(P,{label:a,intent:`muted`,variant:`outline`,fullWidth:!0,onClick:l})]})]})]})})}),$d=({customerDetailsFormProps:e,shippingAddressFormProps:t,shippingOptionSelectorProps:n,checkoutProgressIndicatorProps:r,sampleOrderSummaryPanelProps:i,privacyConsentLabel:a=`I have read and agree to the`,privacyPolicyLabel:o=`Privacy Policy`,privacyConsentChecked:s=!1,privacyConsentErrorMessage:c,submitLabel:l=`Submit Sample Order`,isSubmitting:d=!1,submittingLabel:f=`Submitting order…`,onPrivacyConsentChange:p,onPrivacyPolicyClick:m,onSubmitSampleOrder:h})=>(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)(Vl,{...e}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Jd,{...t,addressRegionVariant:`uk`,showContactFields:!1})}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Yd,{...n})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Xd,{...r}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(Bl,{...i})}),(0,u.jsxs)(`div`,{className:`mt-8 flex flex-wrap items-center gap-x-1 gap-y-2`,children:[(0,u.jsx)(es,{id:`salesforce-privacy-consent`,name:`privacyConsent`,label:a,checked:s,onChange:({checked:e})=>p?.(e)}),(0,u.jsx)(`button`,{type:`button`,className:`text-sm font-bold text-accent underline underline-offset-2`,onClick:m,children:o}),c?(0,u.jsx)(v,{role:`alert`,variant:`caption`,className:`w-full text-accent`,children:c}):null]}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(P,{label:d?f:l,iconType:d?`fa-solid`:void 0,iconName:d?`spinner`:void 0,disabled:d,"aria-busy":d,intent:`accent`,fullWidth:!0,onClick:h})})]})]})})}),ef=({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)(Hd,{...e}),(0,u.jsxs)(`div`,{className:`px-12 pb-16`,children:[(0,u.jsx)(`div`,{className:`mt-10`,children:(0,u.jsx)(Gd,{...t})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Kd,{...n})}),(0,u.jsx)(`div`,{className:`mt-14`,children:(0,u.jsx)(Ud,{...r})})]})]})}),tf=({discountCode:e=``,discountCodeStatus:t=`idle`,discountCodeMessage:n=``,subtotalLabel:r=`Sub total`,discountLabel:i=`Discount`,taxLabel:a=`Tax`,shippingLabel:o=`Shipping`,totalLabel:s=`Total`,subtotal:l=`$0.00`,discount:d=``,tax:f=`Not calculated`,shipping:p=`Not calculated`,total:m=`$0.00`,continueLabel:h=`Continue`,discountCodePlaceholder:g=`Enter discount code`,applyDiscountLabel:_=`Apply`,notCalculatedLabel:y=`Not calculated`,showDiscountCode:b=!0,onDiscountCodeChange:x,onApplyDiscount:C,onContinue:w,className:T=``})=>{let E=!!(e.trim()&&d),D=!!(f.trim()&&f!==`Not calculated`&&f!==y),O=D?f:y,k=!!(p.trim()&&p!==`Not calculated`&&p!==y),A=k?p:y,[j,M]=c.default.useState(!0),N=t!==`idle`&&!!n&&(t!==`success`||j),F=t===`success`;return c.default.useEffect(()=>{if(M(!0),t!==`success`)return;let e=window.setTimeout(()=>{M(!1)},2200);return()=>{window.clearTimeout(e)}},[t,n]),(0,u.jsxs)(`section`,{className:`flex w-full flex-col gap-8 ${T}`,children:[b?(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)(Zo,{id:`cart-totals-discount-code`,name:`discountCode`,value:e,placeholder:g,hasError:t===`error`,onChange:x}),N?F?(0,u.jsxs)(`div`,{className:`flex items-center gap-2 rounded-md border border-secondaryHover bg-tertiaryActive 0 px-3 py-2 `,"aria-live":`polite`,children:[(0,u.jsx)(S,{iconType:`fa-regular`,iconName:`face-grin-beam`,size:`xl`,className:`text-saleGreen`}),(0,u.jsx)(v,{variant:`body`,className:`font-bold text-shadow-saleGreen`,children:n})]}):(0,u.jsx)(v,{variant:`caption`,className:`text-accent`,"aria-live":`polite`,children:n}):null]}),(0,u.jsx)(P,{type:`button`,variant:`solid`,intent:`accent`,label:_,onClick:C,className:`min-w-20`})]}):null,(0,u.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(v,{variant:`body`,children:r}),(0,u.jsx)(v,{variant:`body`,children:l})]}),E?(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(v,{variant:`body`,children:i}),(0,u.jsx)(v,{variant:`body`,className:`text-accent`,children:d})]}):null,(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(v,{variant:`body`,children:a}),(0,u.jsx)(v,{variant:`body`,className:D?``:`text-secondaryActive`,children:O})]}),(0,u.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,u.jsx)(v,{variant:`body`,children:o}),(0,u.jsx)(v,{variant:`body`,className:k?``:`text-secondaryActive`,children:A})]}),(0,u.jsxs)(`div`,{className:`flex items-center justify-between pt-2`,children:[(0,u.jsx)(v,{variant:`bold`,children:s}),(0,u.jsx)(v,{variant:`bold`,children:m})]})]}),(0,u.jsx)(P,{type:`button`,variant:`solid`,intent:`accent`,className:`w-full`,onClick:w,children:h})]})},nf=({paymentTypeTitle:e=`Select Payment Type`,paymentTypeSelectorProps:t,cardNumber:n=``,expirationDate:r=``,securityCode:i=``,errors:a={},submitError:o,onCardNumberChange:s,onExpirationDateChange:c,onSecurityCodeChange:l,onCardNumberBlur:d,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)(v,{as:`h2`,variant:`bold`,className:`text-primary`,children:e}),(0,u.jsx)(Yd,{...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`,ariaLabel:`Card number`,mask:`cardNumber`,autoComplete:`cc-number`,value:n,hasError:!!a.cardNumber,errorMessage:a.cardNumber,onChange:s,onBlur:d}),(0,u.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,u.jsx)($,{id:`payment-expiration-date`,name:`expirationDate`,placeholder:`MM/YY`,ariaLabel:`Expiration date (MM/YY)`,mask:`expirationDate`,autoComplete:`cc-exp`,value:r,hasError:!!a.expirationDate,errorMessage:a.expirationDate,onChange:c,onBlur:f}),(0,u.jsx)($,{id:`payment-security-code`,name:`securityCode`,placeholder:`CVC`,ariaLabel:`Security code (3 or 4 digits)`,mask:`digits`,maxDigits:4,autoComplete:`cc-csc`,value:i,hasError:!!a.securityCode,errorMessage:a.securityCode,onChange:l,onBlur:p})]})]}),o?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`rounded-md border border-accent bg-accent/10 p-4 text-sm text-accent`,children:o}):null]}),rf=({requiresPayment:e=!0,shippingMethodSelectorProps:t,cartPaymentPanelProps:n,checkoutProgressIndicatorProps:r,cartTotalsPanelProps:i})=>(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)(Yd,{...t}),e?(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(nf,{...n})}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Xd,{...r}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(tf,{...i})})]})]})}),af=({shippingAddressFormProps:e,billingAddressFormProps:t={},checkoutProgressIndicatorProps:n,cartTotalsPanelProps:r,billingSectionTitle:i=`Billing Information`,sameAsShipping:a=!0,sameAsShippingLabel:o=`My billing address is the same as my shipping address`,onSameAsShippingChange:s})=>{let[l,d]=c.default.useState(a);c.default.useEffect(()=>{d(a)},[a]);let f=t.countryOptions?.length?t.countryOptions:e.countryOptions,p=t.stateProvinceOptions?.length?t.stateProvinceOptions:e.stateProvinceOptions;return(0,u.jsx)(`section`,{className:`mt-10 flex w-full justify-center px-4 pb-16`,children:(0,u.jsxs)(`div`,{className:`grid w-full max-w-6xl grid-cols-1 gap-8 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Jd,{...e,addressPurpose:`shipping`}),(0,u.jsxs)(`div`,{className:`mt-8 flex flex-col gap-4`,children:[(0,u.jsx)(v,{as:`h2`,variant:`bold`,className:`text-primary`,children:i}),(0,u.jsx)(es,{id:`same-as-shipping`,name:`sameAsShipping`,label:o,checked:l,onChange:e=>{d(e.checked),s?.(e)}})]}),l?null:(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(Jd,{...t,addressPurpose:`billing`,idPrefix:t.idPrefix??`billing`,title:t.title??``,countryOptions:f,stateProvinceOptions:p})})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(Xd,{...n}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(tf,{...r})})]})]})})},of=(e,t,n)=>new Intl.NumberFormat(t,{style:`currency`,currency:n}).format(e),sf=({subtotal:e,shippingCost:t,items:n=[],title:r=`Order Summary`,totalLabel:i=`Total`,locale:a=`en-US`,currency:o=`USD`,removeItemLabel:s=`Remove item`,decreaseQuantityLabel:c=`Decrease quantity`,increaseQuantityLabel:l=`Increase quantity`,onQuantityChange:d,onRemoveItem:f})=>{if(n.length===0)return null;let p=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)(v,{as:`h2`,id:`cart-summary-heading`,variant:`free`,className:`p-6 text-xl font-extrabold text-primary`,children:r}),(0,u.jsx)(`ol`,{className:`flex flex-col min-h-[24rem]`,children:n.map((e,t)=>{let r=t===n.length-1;return(0,u.jsxs)(`li`,{children:[(0,u.jsx)(fc,{imageSrc:e.imageSrc,imageAlt:e.imageAlt||e.title,title:e.title,brand:e.brand||``,decorNumber:e.decorNumber||``,quantity:e.quantity,errorMessage:e.errorMessage,price:e.price,minQuantity:e.minQuantity,maxQuantity:e.maxQuantity,removeItemLabel:s,decreaseQuantityLabel:c,increaseQuantityLabel:l,onQuantityChange:t=>d?.(e.id,t),onRemoveItem:()=>f?.(e.id)}),r?null:(0,u.jsx)(`div`,{className:`mx-6 border-b border-secondaryHover`})]},e.id)})}),(0,u.jsx)(`div`,{className:`px-6 pt-8 pb-8 border-t border-secondaryActive`,children:(0,u.jsxs)(`div`,{className:`flex justify-between pb-2`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-left font-bold`,children:i}),(0,u.jsx)(v,{variant:`free`,className:`text-right font-bold pr-7`,children:of(p,a,o)})]})})]})})},cf=({currentStep:e=0,steps:t=[`Account`,`Shipping`,`Payment`],activeMode:n=`signIn`,email:r=``,password:i=``,firstName:a=``,lastName:o=``,phoneNumber:s=``,userType:c=``,confirmPassword:l=``,marketingOptIn:d=!1,termsAccepted:f=!1,passwordRequirementsText:p,emailError:m=``,passwordError:h=``,firstNameError:g=``,phoneNumberError:_=``,userTypeError:v=``,confirmPasswordError:y=``,termsAcceptedError:b=``,emailHasError:x=!1,passwordHasError:S=!1,firstNameHasError:C=!1,phoneNumberHasError:w=!1,userTypeHasError:T=!1,confirmPasswordHasError:E=!1,termsAcceptedHasError:D=!1,actionLabels:O,labels:k,onModeChange:A,onEmailChange:j,onPasswordChange:M,onFirstNameChange:N,onLastNameChange:P,onPhoneNumberChange:F,onUserTypeChange:I,onConfirmPasswordChange:L,onMarketingOptInChange:R,onTermsAcceptedChange:ee,onEmailBlur:z,onPasswordBlur:B,onForgotPasswordClick:te,onTermsClick:V,onPrivacyClick:ne,onContinue:re,onContinueAsGuest:ie})=>(0,u.jsxs)(`div`,{className:`flex w-full flex-col gap-8`,children:[(0,u.jsx)(Xd,{steps:t,currentStep:e}),(0,u.jsx)(Qu,{data:{mode:n,email:r,password:i,firstName:a,lastName:o,phoneNumber:s,userType:c,confirmPassword:l,marketingOptIn:d,termsAccepted:f,passwordRequirementsText:p,errors:{email:x?m:void 0,password:S?h:void 0,firstName:C?g:void 0,phoneNumber:w?_:void 0,userType:T?v:void 0,confirmPassword:E?y:void 0,termsAccepted:D?b:void 0}},actionLabels:O??{signInPrimary:`Continue`,createAccountPrimary:`Continue`,secondary:`Continue as guest`},labels:k,onModeChange:A,onEmailChange:j,onPasswordChange:M,onFirstNameChange:N,onLastNameChange:P,onPhoneNumberChange:F,onUserTypeChange:I,onConfirmPasswordChange:L,onMarketingOptInChange:R,onTermsAcceptedChange:ee,onEmailBlur:z,onPasswordBlur:B,onForgotPasswordClick:te,onTermsClick:V,onPrivacyClick:ne,onSignInClick:re,onCreateAccountClick:re,onSecondaryClick:ie})]}),lf=e=>e.customerState===`authenticated`?(0,u.jsx)(`section`,{className:`mt-10 flex w-full justify-center px-4 pb-16 md:px-6`,children:(0,u.jsxs)(`div`,{className:`w-full max-w-3xl`,children:[(0,u.jsx)(Xd,{...e.checkoutProgressIndicatorProps}),(0,u.jsx)(`div`,{className:`mt-8`,children:(0,u.jsx)(sf,{...e.cartSummaryProps})}),(0,u.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,u.jsx)(P,{label:e.continueLabel??`Continue to shipping`,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`accent`,className:`w-full md:w-auto`,disabled:e.continueDisabled,onClick:e.onContinueClick})})]})}):(0,u.jsx)(`section`,{className:`mt-10 flex w-full justify-center px-4 pb-16 md:px-6`,children:(0,u.jsxs)(`div`,{className:`grid w-full max-w-6xl grid-cols-1 gap-8 md:grid-cols-2`,children:[(0,u.jsx)(sf,{...e.cartSummaryProps}),(0,u.jsx)(cf,{...e.checkoutAccountStepProps})]})}),uf=({pageTitle:e,pageDescription:t,sideNavProps:n,headerLeading:r,headerActions:i,backgroundJobTrayProps:a,children:o})=>{let s=t?.trim()??``;return(0,u.jsx)(`div`,{className:`min-h-screen bg-secondary`,children:(0,u.jsxs)(`div`,{className:`flex min-h-screen overflow-hidden bg-secondary`,children:[(0,u.jsx)(`aside`,{className:`hidden w-56 shrink-0 md:block`,children:(0,u.jsx)(Nc,{...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)(v,{as:`h1`,variant:`free`,className:`text-2xl font-bold text-primary`,children:e}),s?(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-primary`,children:s}):null]}),i?(0,u.jsx)(`div`,{className:`shrink-0`,children:i}):null]}),o]}),a?(0,u.jsx)(Bc,{...a}):null]})})},df={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`}},ff=e=>{if(e===`loading`)return`status`;if(e===`error`)return`alert`},pf=({status:e,action:t,onRetryClick:n})=>{if(e.state===`ready`)return null;let r=df[e.state],i=e.title?.trim()||r.defaultTitle,a=e.message?.trim()??``,o=e.detail?.trim()??``;return(0,u.jsx)(`section`,{role:ff(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)(w,{label:``,size:`2xl`}):(0,u.jsx)(S,{iconType:`fa-solid`,iconName:r.iconName,alt:``,size:`2xl`,className:r.iconClassName}),(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`mt-4 text-lg font-bold text-primary`,children:i}),a?(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-primary`,children:a}):null,o?(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-xs text-tertiary`,children:o}):null,t?(0,u.jsx)(`div`,{className:`mt-5`,children:t}):null,!t&&e.state===`error`&&e.retryLabel?(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(P,{label:e.retryLabel,iconType:`fa-solid`,iconName:`rotate`,iconAlt:``,variant:`solid`,intent:`primary`,onClick:n})}):null]})})},mf=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`,hf=e=>{let t=e.onBackClick?(0,u.jsx)(P,{label:e.backLabel??`Back to browse`,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`ghost`,intent:`primary`,size:`sm`,className:`px-0`,onClick:e.onBackClick}):void 0;if(!(`data`in e)){let n=e.state===`notFound`||e.state===`empty`?`empty`:e.state;return(0,u.jsxs)(uf,{pageTitle:e.pageTitle,sideNavProps:e.sideNavProps,backgroundJobTrayProps:e.backgroundJobTrayProps,children:[t?(0,u.jsx)(`div`,{className:`mt-5`,children:t}):null,(0,u.jsx)(pf,{status:{state:n,message:e.message,retryLabel:e.state===`error`?e.actionLabel:void 0},onRetryClick:`onActionClick`in e?e.onActionClick:void 0})]})}let{data:n,sideNavProps:r={items:[]},backgroundJobTrayProps:i,onTabSelect:a,onLocalizationSelect:o,onDecorFieldChange:s,onDecorLocalizationAvailabilityChange:c,onDecorSave:l,onDecorCancel:d,onDeleteDecorClick:f,onLxImport:p,onNoticeActionClick:m,onVariantAvailabilityChange:h,onVariantAvailabilitySave:g,onVariantAvailabilityCancel:_}=e,{decor:y,decorEditor:b}=n,x=n.variantAvailabilityEditors??[],C=[`decor`,`sheets`,`samples`,...x.length?[`availability`]:[]],T=(n.availableTabs??C).filter(e=>e!==`availability`||x.length),E=n.mode===`create`,D=n.region===`north-america`,O=n.lxImport?.state===`loading`,k=D&&!E&&!!n.lxImport,A=y.name.trim()||`New decor`,j=`Decor ${y.decorCode} · Range ${y.rangeCode}`;E&&(j=`Enter a decor code to begin`,y.decorCode.trim()&&(j=`Decor ${y.decorCode}`,y.rangeCode.trim()&&(j+=` · Range ${y.rangeCode}`)));let M=b.activeLocalization.saveStatus===`saving`,N=b.searchColorFieldId?[...b.sharedFields,...b.localizedFields].filter(e=>e.id===b.searchColorFieldId):[],F=b.decorFlagFieldId?b.sharedFields.filter(e=>e.id===b.decorFlagFieldId):[],I=b.sharedFields.filter(e=>e.id!==b.searchColorFieldId&&e.id!==b.decorFlagFieldId),R=b.localizedFields.filter(e=>e.id!==b.searchColorFieldId);return(0,u.jsxs)(uf,{pageTitle:n.pageTitle,pageDescription:n.pageDescription,sideNavProps:r,backgroundJobTrayProps:i,children:[(0,u.jsxs)(`section`,{className:`mt-5 flex items-center gap-4 rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[y.imageUrl?(0,u.jsx)(L,{src:y.imageUrl,alt:y.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)(S,{iconType:`fa-solid`,iconName:`swatchbook`,alt:``,size:`xl`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:A}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:j})]})]}),t?(0,u.jsx)(`div`,{className:`mt-3`,children:t}):null,n.notice?(0,u.jsxs)(`section`,{role:n.notice.tone===`error`?`alert`:`status`,className:`mt-4 rounded-lg border p-4 ${mf(n.notice.tone)}`,children:[n.notice.title?(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:n.notice.title}):null,(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:n.notice.message}),n.notice.actionLabel?(0,u.jsx)(`div`,{className:`mt-3`,children:(0,u.jsx)(P,{label:n.notice.actionLabel,variant:`outline`,intent:`primary`,size:`sm`,onClick:m})}):null]}):null,(0,u.jsx)(`div`,{role:`tablist`,"aria-label":`Market readiness editor`,className:`mt-5 flex gap-2 overflow-x-auto border-b border-borderTertiary`,children:[{id:`decor`,label:`Decor`},{id:`sheets`,label:`Buy Now (${n.skus.length})`},{id:`samples`,label:`Samples (${n.samples.length})`},{id:`availability`,label:`Availability`}].filter(e=>T.includes(e.id)).map(e=>{let t=n.activeTabId===e.id;return(0,u.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":t,className:`shrink-0 border-b-4 px-5 py-3 text-sm font-bold ${t?`border-primary text-primary`:`border-transparent text-tertiary hover:text-primary`}`,onClick:()=>a?.({tabId:e.id}),children:e.label},e.id)})}),k&&O?(0,u.jsx)(`section`,{role:`status`,"aria-live":`polite`,className:`mt-5 rounded-lg border border-borderTertiary bg-secondary p-4`,children:(0,u.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,u.jsx)(w,{label:``,size:`sm`}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:`Loading SKUs from LX`}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:`Buy Now and Samples will fill in as LX records are added.`})]})]})}):null,k&&n.lxImport?.state===`error`?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`mt-5 rounded-lg border border-accent bg-accent/10 p-4 text-sm text-accent`,children:n.lxImport.errorMessage??`LX SKUs could not be loaded. Try again.`}):null,n.activeTabId===`decor`?(0,u.jsxs)(`section`,{role:`tabpanel`,"aria-label":`Decor`,className:`mt-5 grid gap-5 md:grid-cols-3`,children:[(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:col-span-2`,children:(0,u.jsx)(xs,{title:`Decor details`,description:b.sharedDescription,headerAction:k?(0,u.jsx)(P,{label:`LX`,"aria-label":`Load Buy Now and sample SKUs from LX`,iconType:`fa-solid`,iconName:O?`spinner`:`server`,iconAlt:``,variant:`outline`,intent:`neutral`,size:`xs`,disabled:n.lxImport?.disabled||O||!p,"aria-busy":O||void 0,onClick:()=>p?.({decorId:y.id,decorCode:y.decorCode})}):null,fields:[...R,...I,...F,...N],fieldGroups:[{id:`localized-decor-fields`,title:`${b.activeLocalization.heading} content`,description:b.localizationDescription??`These fields change with the selected locale.`,fieldIds:R.map(e=>e.id)},{id:`shared-decor-fields`,title:b.sharedTitle??`Shared decor details`,fieldIds:I.map(e=>e.id)}],density:`compact`,severityDisplay:`icon`,fieldMessagePlacement:`below-label`,showActions:!1,validationSummary:(0,u.jsxs)(u.Fragment,{children:[b.localizationAvailability?.length?(0,u.jsx)(`div`,{className:`mb-5 border-t border-borderTertiary pt-5`,children:(0,u.jsx)(ts,{iconName:`globe`,indentOptions:!0,label:b.localizationAvailabilityLabel??`Sub-region availability`,defaultOpen:!1,options:b.localizationAvailability.map(e=>({id:`decor-localization-${e.id}`,name:`decorLocalizationAvailability`,label:e.label,checked:e.enabled??!0,disabled:e.disabled||M,onChange:({checked:t})=>c?.({decorId:y.id,localizationId:e.id,enabled:t})}))})}):null,(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:b.deleteLabel?(0,u.jsx)(P,{label:b.deleteLabel,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,variant:`outline`,intent:`danger`,disabled:b.deleteDisabled||M,onClick:()=>f?.({decorId:y.id})}):null}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:items-end`,children:[(0,u.jsx)(Ce,{status:b.activeLocalization.saveStatus,label:b.activeLocalization.saveStatusLabel,errorMessage:b.activeLocalization.saveErrorMessage,lastSavedLabel:b.activeLocalization.lastSavedLabel}),b.controls.saveHelpText?(0,u.jsx)(v,{variant:`free`,className:`max-w-md text-right text-xs text-tertiary`,children:b.controls.saveHelpText}):null,(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(P,{label:b.controls.cancelLabel,variant:`outline`,intent:`primary`,disabled:b.controls.cancelDisabled||M,onClick:()=>d?.({decorId:y.id,localizationId:b.activeLocalization.id})}),(0,u.jsx)(P,{label:b.controls.saveLabel,iconType:`fa-solid`,iconName:M?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:b.controls.saveDisabled||M,"aria-busy":M||void 0,onClick:()=>l?.({decorId:y.id,localizationId:b.activeLocalization.id})})]})]})]})]}),onDynamicFormFieldChange:({fieldId:e,value:t})=>{let n=b.sharedFields.some(t=>t.id===e);s?.({decorId:y.id,localizationId:n?void 0:b.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)(Tu,{title:`Decor localizations`,markets:b.markets,selectedLocalizationId:b.activeLocalization.id,localizationSelectionDisabled:M,onLocalizationSelect:o})})]}):null,n.activeTabId===`sheets`?(0,u.jsx)(Os,{...e,itemType:`sheet`,sectionData:{region:n.region,items:n.skus,editor:n.skuEditor,guide:n.region?n.skuGuides?.[n.region]:void 0}}):null,n.activeTabId===`samples`?(0,u.jsx)(Os,{...e,itemType:`sample`,sectionData:{region:n.region,items:n.samples,editor:n.sampleEditor,guide:n.region?n.skuGuides?.[n.region]:void 0,sampleGuide:n.sampleGuide}}):null,n.activeTabId===`availability`&&T.includes(`availability`)?(0,u.jsx)(ks,{editors:x,onVariantAvailabilityChange:h,onVariantAvailabilitySave:g,onVariantAvailabilityCancel:_}):null]})},gf=({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)(Nc,{...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)(v,{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)(S,{iconType:`fa-solid`,iconName:`database`,alt:``,size:`xl`,className:`text-primary`})}),(0,u.jsx)(v,{as:`h2`,id:`admin-dashboard-welcome-heading`,variant:`free`,className:`mt-5 text-xl font-bold text-primary`,children:t}),(0,u.jsx)(v,{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)(v,{as:`h3`,variant:`free`,className:`text-base font-bold text-primary`,children:r}),(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-primary`,children:i})]})]})]})]})}),_f=e=>e===`admin`?`Admin`:`User`,vf=({message:e,tone:t=`default`})=>(0,u.jsx)(`section`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5`,children:(0,u.jsx)(v,{variant:`free`,className:`text-sm ${t===`error`?`text-accent`:`text-primary`}`,children:e})}),yf=({message:e})=>{let t=e?.trim()??``;return t?(0,u.jsx)(v,{variant:`free`,className:`text-sm text-accent`,children:t}):null},bf=({pageTitle:e,pageDescription:t,sideNavProps:n,hasAdminAccess:r,accessRequiredTitle:i=`Admin Access Required`,accessRequiredMessage:a=`Your account can use Data Forge, but only admins can manage the allow list.`,state:o,loadingMessage:s=`Loading authorization users...`,errorMessage:c=`Data Forge could not load the allow list.`,createUserDraft:l,roleOptions:d,regionOptions:f,users:p,defaultRegionLabel:m=`Default Region`,defaultRegionPlaceholder:h=`Select region`,createMessage:g,updateMessage:_,deleteMessage:y,createPending:b=!1,updatePending:x=!1,deletePending:S=!1,deleteUserEmail:C,addUserLabel:w=`Add User`,addingUserLabel:T=`Adding...`,updateLabel:E=`Update`,updatingLabel:D=`Updating...`,activateLabel:O=`Activate`,suspendLabel:k=`Suspend`,removeLabel:A=`Remove`,removingLabel:j=`Removing...`,cancelLabel:M=`Cancel`,onNewUserEmailChange:N,onNewUserRoleChange:F,onNewUserActiveChange:I,onNewUserDefaultRegionChange:L,onCreateUser:R,onRowUpdate:ee,onUserActiveToggle:z,onDeleteUserRequest:B,onDeleteModalClose:te,onDeleteUserConfirm:V})=>{let ne=t?.trim()??``,re=l.active&&!l.defaultRegion.trim(),ie=p.map(e=>({id:e.email,values:{active:e.active?`active`:`inactive`,email:e.email,role:e.role,defaultRegion:e.defaultRegion}})),H=`${p.length.toLocaleString()} ${p.length===1?`user`:`users`}`,U=e=>(0,u.jsxs)(`article`,{className:`grid gap-3 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3 md:grid-cols-[minmax(0,1fr)_auto] md:items-center`,children:[(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(v,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:e.email}),(0,u.jsxs)(v,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:[_f(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)(P,{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?k:O,size:`sm`,type:`button`,variant:`outline`,onClick:()=>z?.({user:e})}),(0,u.jsx)(P,{disabled:S||e.removeDisabled,iconAlt:``,iconName:`trash`,iconType:`fa-solid`,intent:`danger`,label:A,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)(Nc,{...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)(v,{as:`h1`,variant:`free`,className:`text-2xl font-bold text-primary`,children:e}),ne?(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-primary`,children:ne}):null]}),r?(0,u.jsxs)(`div`,{className:`mt-5 grid gap-5`,children:[(0,u.jsxs)(`form`,{"aria-label":`Add authorization user`,className:`grid gap-4 rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:grid-cols-6 md:items-end`,onSubmit:e=>{e.preventDefault(),R?.({user:l})},children:[(0,u.jsxs)(`div`,{className:`grid gap-2 md:col-span-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-email`,children:`Email`}),(0,u.jsx)(Zo,{id:`authorization-user-email`,name:`email`,type:`email`,value:l.email,placeholder:`person@formica.com`,disabled:b,autoComplete:`email`,onChange:e=>N?.({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)(os,{id:`authorization-user-role`,name:`role`,value:l.role,disabled:b,options:d,onChange:e=>F?.({role:e.target.value})})]}),(0,u.jsxs)(`div`,{className:`grid gap-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-default-region`,children:m}),(0,u.jsx)(os,{id:`authorization-user-default-region`,name:`defaultRegion`,value:l.defaultRegion,placeholder:h,disabled:b,required:l.active,hasError:re,options:f,onChange:e=>L?.({region:e.target.value})})]}),(0,u.jsxs)(`div`,{className:`grid gap-2`,children:[(0,u.jsx)(`label`,{className:`text-xs font-bold uppercase text-tertiary`,htmlFor:`authorization-user-active`,children:`Status`}),(0,u.jsx)(os,{id:`authorization-user-active`,name:`active`,value:l.active?`active`:`inactive`,disabled:b,options:[{label:`Active`,value:`active`},{label:`Inactive`,value:`inactive`}],onChange:e=>I?.({active:e.target.value===`active`})})]}),(0,u.jsx)(P,{disabled:b||re,iconAlt:``,iconName:`user-plus`,iconType:`fa-solid`,intent:`primary`,label:b?T:w,type:`submit`,variant:`solid`})]}),(0,u.jsx)(yf,{message:g}),o===`loading`?(0,u.jsx)(vf,{message:s}):null,o===`error`?(0,u.jsx)(vf,{message:c,tone:`error`}):null,(0,u.jsx)(Nu,{ariaLabel:`Authorization users`,columns:[{editable:!1,id:`email`,label:`Email`,width:`xl`},{id:`role`,label:`Role`,maxLength:5,width:`sm`,editor:`select`,options:d},{id:`active`,label:`Status`,maxLength:8,width:`sm`,editor:`select`,options:[{label:`Active`,value:`active`},{label:`Inactive`,value:`inactive`}]},{id:`defaultRegion`,label:m,width:`md`,editor:`select`,options:f,placeholder:h,requiredWhen:{columnId:`active`,value:`active`}}],description:`Edit role, status, or default region inline, then use Update on that row.`,emptyMessage:`No allow-list users are configured.`,rowCountLabel:H,rows:ie,title:`Allow List`,updateLabel:x?D:E,updateDisabled:x,onRowUpdate:ee}),(0,u.jsx)(yf,{message:_}),(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)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:`User Actions`}),(0,u.jsx)(v,{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:p.map(U)}),(0,u.jsx)(yf,{message:y})]})]}):(0,u.jsxs)(`section`,{className:`mt-5 rounded-lg border border-borderTertiary bg-secondary p-5`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:i}),(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm text-primary`,children:a})]})]})]}),(0,u.jsx)(Hc,{closeLabel:M,open:!!C,size:`md`,title:`Remove User?`,onClose:()=>te?.(),children:(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(v,{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)(P,{disabled:S,intent:`primary`,label:M,size:`sm`,type:`button`,variant:`outline`,onClick:()=>te?.()}),(0,u.jsx)(P,{disabled:S,iconAlt:``,iconName:`trash`,iconType:`fa-solid`,intent:`danger`,label:S?j:A,size:`sm`,type:`button`,variant:`solid`,onClick:()=>{C&&V?.({email:C})}})]})]})})]})},xf={loading:{iconName:`spinner`,iconClassName:`text-tertiary`,iconSurfaceClassName:`bg-tertiaryActive`},info:{iconName:`circle-info`,iconClassName:`text-blue-600`,iconSurfaceClassName:`bg-blue-50`},warning:{iconName:`triangle-exclamation`,iconClassName:`text-yellow-700`,iconSurfaceClassName:`bg-yellow-50`},error:{iconName:`circle-exclamation`,iconClassName:`text-accent`,iconSurfaceClassName:`bg-accent/10`}},Sf=e=>{if(e===`loading`)return`status`;if(e===`error`)return`alert`},Cf=({eyebrow:e,title:t,description:n,detail:r,tone:i,primaryAction:a,secondaryAction:o,informationGroups:s=[],onActionClick:c})=>{let l=e?.trim()??``,d=r?.trim()??``,f=xf[i],p=(e,t)=>(0,u.jsx)(P,{label:e.label,iconAlt:``,iconName:e.loading?`spinner`:e.iconName,iconType:e.loading||e.iconName?`fa-solid`:void 0,intent:`primary`,variant:t,disabled:e.disabled||e.loading,"aria-busy":e.loading||void 0,onClick:()=>c?.({actionId:e.id})},e.id);return(0,u.jsx)(`main`,{className:`flex min-h-screen items-center justify-center bg-tertiaryActive px-4 py-10`,children:(0,u.jsxs)(`section`,{role:Sf(i),"aria-live":i===`loading`?`polite`:void 0,"aria-busy":i===`loading`||void 0,className:`w-full max-w-2xl rounded-lg border border-borderTertiary bg-secondary p-6 text-center shadow-sm md:p-10`,children:[(0,u.jsx)(`div`,{"data-testid":`admin-auth-status-icon`,className:`mx-auto flex h-16 w-16 items-center justify-center rounded-full ${f.iconSurfaceClassName}`,children:i===`loading`?(0,u.jsx)(w,{label:``,size:`2xl`}):(0,u.jsx)(S,{iconType:`fa-solid`,iconName:f.iconName,alt:``,size:`2xl`,className:f.iconClassName})}),l?(0,u.jsx)(v,{variant:`free`,className:`mt-6 text-xs font-bold uppercase tracking-wide text-tertiary`,children:l}):null,(0,u.jsx)(v,{as:`h1`,variant:`free`,className:`${l?`mt-2`:`mt-6`} text-2xl font-bold text-primary`,children:t}),(0,u.jsx)(v,{variant:`free`,className:`mx-auto mt-3 max-w-xl text-primary`,children:n}),d?(0,u.jsx)(v,{variant:`free`,className:`mx-auto mt-3 max-w-xl text-sm text-tertiary`,children:d}):null,s.length?(0,u.jsx)(`div`,{className:`mt-6 grid gap-4 text-left md:grid-cols-2`,children:s.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`admin-auth-status-${e.id}`,className:`rounded-lg border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(v,{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?p(o,`outline`):null,a?p(a,`solid`):null]}):null]})})},wf=({pageTitle:e,pageDescription:t,sideNavProps:n,regionOptions:r,regionValue:i,regionLabel:a=`Region`,regionPlaceholder:o=`Select region`,regionHelpText:s=`Searches and changes will use product data from this region.`,regionDisabled:l=!1,searchValue:d,searchLabel:f=`Search decors`,searchPlaceholder:p,searchDisabled:m=!1,browseMode:h=`decors`,manageRangesLabel:g=`Manage ranges`,rangeOptions:_,rangeResults:y=[],rangeResultCount:b=0,selectedRangeId:x,rangePromptTitle:S=`Select a range to view its decors`,rangePromptMessage:C=`Choose a range above to load its market-readiness records.`,emptyRangeTitle:T=`No decors found`,emptyRangeMessage:E=`Click the button to add the first decor to this range.`,resultCount:D,resultLabel:O=`decors`,addDecorLabel:k=`Add a new decor`,addFirstDecorLabel:A=`Add the first decor`,addRangeLabel:j=`New Range`,groups:M,status:N={state:`ready`},hasMore:F=!1,loadingMore:I=!1,loadMoreLabel:L,deleteDecorTarget:R,deleteDecorConfirmationValue:ee=``,deleteDecorPending:z=!1,deleteDecorErrorMessage:B,deleteDecorTitle:te=`Delete decor?`,deleteDecorLabel:V=`Delete decor`,deletingDecorLabel:ne=`Deleting...`,deleteDecorCancelLabel:re=`Cancel`,deleteDecorCloseLabel:ie=`Close delete decor dialog`,deleteRangeTarget:H,deleteRangeConfirmationValue:U=``,deleteRangePending:W=!1,deleteRangeErrorMessage:ae,deleteRangeTitle:G=`Delete range?`,deleteRangeLabel:oe=`Delete range`,deletingRangeLabel:se=`Deleting...`,deleteRangeCancelLabel:ce=`Cancel`,deleteRangeCloseLabel:le=`Close delete range dialog`,onRegionChange:ue,onSearchChange:de,onSearchSubmit:fe,onRangeSelect:pe,onManageRangesClick:me,onAddDecorClick:he,onAddRangeClick:ge,onRangeClick:K,onDeleteRangeRequest:_e,onDeleteRangeConfirmationChange:ve,onDeleteRangeCancel:ye,onDeleteRangeConfirm:be,onDecorClick:xe,onDeleteDecorRequest:Se,onDeleteDecorConfirmationChange:Ce,onDeleteDecorCancel:Te,onDeleteDecorConfirm:Ee,onLoadMore:De,onRetryClick:Oe})=>{let q=(0,c.useRef)(null),ke=(0,c.useRef)({options:_,selectedRangeId:x});N.state!==`loading`&&(ke.current={options:_,selectedRangeId:x});let Ae=N.state===`loading`&&_.length===0?ke.current.options:_,je=N.state===`loading`&&x===void 0?ke.current.selectedRangeId:x,Me=!i.trim()||l,J=h===`ranges`,Ne=J?b:D,Pe=O;J&&(Pe=b===1?`range`:`ranges`);let Fe=`${Ne.toLocaleString()} ${Pe}`,Ie=L??(J?`Load more ranges`:`Load more decors`),Le=J?y.length:M.reduce((e,t)=>e+t.items.length,0),Re=Ae.find(e=>e.id===je),ze=!!je,Be=!!d.trim(),Ve=J?`Search ranges`:f,He=p??(J?`Search ranges`:`Search decors across all ranges`),Ue=!!(R&&ee.trim()===R.decorCode),We=R?`${R.sheetCount.toLocaleString()} ${R.sheetCount===1?`sheet`:`sheets`} and ${R.sampleCount.toLocaleString()} ${R.sampleCount===1?`sample`:`samples`}`:``,Ge=!!(H&&U.trim()===H.rangeCode),Ke=ze&&!Be&&D===0;(0,c.useEffect)(()=>{let e=q.current;if(!e||!J&&!ze&&!Be||N.state!==`ready`||!F||I||!De||typeof IntersectionObserver>`u`)return;let t=!1,n=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&!t&&(t=!0,De())});return n.observe(e),()=>n.disconnect()},[F,I,De,d,je,J,N.state]);let Y=null;return I?Y=(0,u.jsx)(w,{label:`Loading more ${Pe}`,size:`md`}):F&&(Y=(0,u.jsx)(P,{label:Ie,variant:`outline`,intent:`primary`,disabled:!De,onClick:De})),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(uf,{pageTitle:e,pageDescription:t,sideNavProps:n,headerActions:(0,u.jsx)(Ko,{options:r,value:i,label:a,placeholder:o,helpText:s,disabled:l,name:`market-readiness-browse-region`,onChange:ue}),children:(0,u.jsxs)(`div`,{className:`mt-5 max-w-6xl`,children:[(0,u.jsxs)(`section`,{"aria-label":J?`Browse range controls`:`Browse decor controls`,children:[(0,u.jsx)(Qo,{id:`market-readiness-decor-search`,name:J?`rangeSearch`:`decorSearch`,ariaLabel:Ve,value:d,placeholder:He,controlSize:`default`,disabled:m||Me,onChange:e=>de({value:e.target.value}),onClear:()=>de({value:``}),onSearchSubmit:fe}),(0,u.jsxs)(`div`,{className:`mt-3`,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Ranges`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,u.jsx)(we,{iconType:`fa-solid`,iconName:`list`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:J?`primary`:`neutral`,"aria-label":g,"aria-pressed":J,disabled:Me||N.state===`loading`||!me,onClick:me}),(0,u.jsx)(we,{iconType:`fa-solid`,iconName:`plus`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`primary`,"aria-label":j,disabled:Me||N.state===`loading`||!ge,onClick:()=>ge?.({region:i})})]})]}),(0,u.jsx)(`div`,{className:`mt-2`,children:(0,u.jsx)(qo,{ranges:Ae,selectedRangeId:je,disabled:Me,onRangeSelect:pe})})]})]}),N.state===`loading`?(0,u.jsx)(`section`,{"aria-label":J?`Range results`:`Decor results`,"aria-busy":`true`,className:`mt-5 flex min-h-64 items-center justify-center rounded-lg border border-borderTertiary bg-secondary p-6 text-center shadow-sm`,children:(0,u.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,u.jsx)(w,{label:N.message?.trim()||`Loading ${J?`ranges`:`decors`}`,size:`2xl`}),(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:N.message?.trim()||`Loading ${J?`ranges`:`decors`}...`})]})}):null,N.state!==`ready`&&N.state!==`loading`?(0,u.jsx)(pf,{status:N,onRetryClick:Oe}):null,N.state===`ready`&&!J&&!ze&&!Be?(0,u.jsx)(pf,{status:{state:`empty`,title:S,message:C}}):null,N.state===`ready`&&J?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center justify-between gap-4`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:Be?`Range search results`:`Ranges`}),(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-tertiary`,children:Fe})]}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(Fu,{ranges:y,emptyMessage:`No ranges are available.`,onRangeClick:Me?void 0:K,onDeleteRangeRequest:Me?void 0:_e})})]}):null,N.state===`ready`&&!J&&(ze||Be)?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`mt-6 flex items-center justify-between gap-4`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:Be?`Search results`:Re?.label??`Selected range`}),(0,u.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-tertiary`,children:Fe}),(0,u.jsx)(we,{iconType:`fa-solid`,iconName:`plus`,iconAlt:``,iconSize:`sm`,size:`sm`,intent:`primary`,"aria-label":Re&&!Be?`${k} to ${Re.label}`:k,disabled:Me||!he,onClick:()=>he?.({rangeId:je})})]})]}),Ke?(0,u.jsx)(pf,{status:{state:`empty`,title:T,message:E},action:(0,u.jsx)(P,{label:A,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:Me||!he,onClick:()=>he?.({rangeId:je})})}):(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(Pu,{groups:M,itemLabel:O,showGroupHeaders:!1,onDecorClick:Me?void 0:xe,onDeleteDecorRequest:Me?void 0:Se})})]}):null,(J||ze||Be)&&N.state===`ready`&&(Le>0||F)?(0,u.jsxs)(`div`,{ref:q,className:`mt-6 flex flex-col items-center gap-3 border-t border-borderTertiary pt-5`,children:[(0,u.jsxs)(v,{variant:`free`,className:`text-sm text-tertiary`,children:[`Showing `,Le.toLocaleString(),` of`,` `,Ne.toLocaleString(),` `,Pe]}),Y]}):null]})}),(0,u.jsx)(Hc,{open:!!R,title:te,description:`This permanently removes the decor and all records that belong to it. This action cannot be undone.`,closeLabel:ie,size:`sm`,onClose:()=>{z||Te?.()},children:R?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(`div`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:R.name}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 font-mono text-xs text-tertiary`,children:R.decorCode}),(0,u.jsxs)(v,{variant:`free`,className:`mt-2 text-xs text-primary`,children:[`Deleting this decor also removes `,We,`.`]})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`label`,{htmlFor:`market-readiness-delete-confirmation`,className:`text-sm font-bold text-primary`,children:[`Type `,R.decorCode,` to confirm`]}),(0,u.jsx)(Zo,{id:`market-readiness-delete-confirmation`,name:`deleteDecorConfirmation`,value:ee,placeholder:R.decorCode,autoComplete:`off`,autoFocus:!0,disabled:z,hasError:!!B,onChange:e=>Ce?.({value:e.target.value})}),B?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`mt-2 text-sm text-accent`,children:B}):null]}),(0,u.jsxs)(`div`,{className:`flex justify-end gap-3`,children:[(0,u.jsx)(P,{label:re,size:`sm`,variant:`outline`,intent:`primary`,disabled:z,onClick:()=>Te?.()}),(0,u.jsx)(P,{label:z?ne:V,iconType:`fa-solid`,iconName:z?`spinner`:`trash`,iconAlt:``,size:`sm`,variant:`solid`,intent:`accent`,disabled:!Ue||z||!Ee,onClick:()=>Ee?.(R)})]})]}):null}),(0,u.jsx)(Hc,{open:!!H,title:G,description:`This permanently removes the empty range. This action cannot be undone.`,closeLabel:le,size:`sm`,onClose:()=>{W||ye?.()},children:H?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(`div`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:H.name}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:H.rangeCode}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:[H.company,H.region,H.subRegion].filter(e=>e.trim()).join(` · `)})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`label`,{htmlFor:`market-readiness-range-delete-confirmation`,className:`text-sm font-bold text-primary`,children:[`Type `,H.rangeCode,` to confirm`]}),(0,u.jsx)(Zo,{id:`market-readiness-range-delete-confirmation`,name:`deleteRangeConfirmation`,value:U,placeholder:H.rangeCode,autoComplete:`off`,autoFocus:!0,disabled:W,hasError:!!ae,onChange:e=>ve?.({value:e.target.value})}),ae?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`mt-2 text-sm text-accent`,children:ae}):null]}),(0,u.jsxs)(`div`,{className:`flex justify-end gap-3`,children:[(0,u.jsx)(P,{label:ce,size:`sm`,variant:`outline`,intent:`primary`,disabled:W,onClick:()=>ye?.()}),(0,u.jsx)(P,{label:W?se:oe,iconType:`fa-solid`,iconName:W?`spinner`:`trash`,iconAlt:``,size:`sm`,variant:`solid`,intent:`accent`,disabled:!Ge||W||!be,onClick:()=>be?.(H)})]})]}):null})]})},Tf=({pageTitle:e,pageDescription:t,sideNavProps:n,mode:r,rangeId:i,name:a,bynderName:o,rangeCode:s,productFamilyCode:c=``,company:l,companyCode:d,region:f,subRegion:p=``,companyOptions:m,productFamilyOptions:h=[],regionOptions:g,subRegionOptions:_,status:y={state:`ready`},fieldErrors:b={},formDisabled:x=!1,saveDisabled:C=!1,savePending:w=!1,saveErrorMessage:T,deleteDialogOpen:E=!1,deleteConfirmationValue:D=``,deletePending:O=!1,deleteErrorMessage:k,detailsTitle:A=`Range details`,detailsDescription:j=`These details determine where the range appears in Market Readiness.`,saveLabel:M=r===`create`?`Create range`:`Save changes`,savingLabel:N=`Saving...`,cancelLabel:F=`Cancel`,deleteTitle:I=`Delete range?`,deleteLabel:R=`Delete range`,deletingLabel:ee=`Deleting...`,deleteCancelLabel:z=`Cancel`,deleteCloseLabel:B=`Close delete range dialog`,onNameChange:te,onBynderNameChange:V,onRangeCodeChange:ne,onProductFamilyCodeChange:re,onCompanyChange:ie,onCompanyCodeChange:H,onRegionChange:U,onSubRegionChange:W,onSaveClick:ae,onCancelClick:G,onDeleteRequest:oe,onDeleteConfirmationChange:se,onDeleteCancel:ce,onDeleteConfirm:le,onRetryClick:ue})=>{let de=Le(l),fe=x||w,pe=!!_?.length,me=f===`europe`||f===`asia`,he=f===`europe`?`Product Family (EU)`:`Product Family (AS)`,ge=_??[],K=me&&!p.trim()?`ALL`:p,_e=a.trim()||`New range`,ve=m.find(e=>e.value===l)?.label??l,ye=g.find(e=>e.value===f)?.label??f,be=ge.find(e=>e.value===K)?.label??K,xe=d.trim()?`${ve} (${d})`:ve,Se=[s.trim()?`Range ${s}`:``,xe,ye,me||pe?be:``].filter(e=>e.trim()).join(` · `),Ce=i?{rangeId:i}:{},we=i?{rangeId:i,rangeCode:s}:void 0,Te=!!(we&&s.trim()&&D.trim()===s.trim());return(0,u.jsxs)(uf,{pageTitle:e,pageDescription:t,sideNavProps:n,children:[y.state===`ready`?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`section`,{className:`mt-5 flex items-center gap-4 rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm`,children:[(0,u.jsx)(`span`,{className:`flex h-16 w-16 shrink-0 items-center justify-center rounded-md border border-primary bg-primary p-2`,children:de?(0,u.jsx)(L,{src:de,alt:`${l} logo`,quality:85,fit:`contain`,className:`h-full w-full object-contain`}):(0,u.jsx)(S,{iconType:`fa-regular`,iconName:`building`,alt:`No company logo available`,size:`xl`,className:`text-secondary`})}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:_e}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:Se||`Enter the range details below`})]})]}),(0,u.jsxs)(`form`,{className:`mt-5 max-w-4xl rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,onSubmit:e=>{e.preventDefault(),ae?.(Ce)},children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:A}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:j}),(0,u.jsxs)(`div`,{className:`mt-5 grid gap-5 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-name`,className:`text-sm font-bold text-primary`,children:`Name`}),(0,u.jsx)(Zo,{id:`market-readiness-range-name`,name:`rangeName`,value:a,placeholder:`Marketing name`,autoComplete:`off`,required:!0,disabled:fe,hasError:!!b.name,ariaDescribedBy:b.name?`market-readiness-range-name-error`:void 0,onChange:e=>te?.({value:e.target.value})}),b.name?(0,u.jsx)(v,{id:`market-readiness-range-name-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.name}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-bynder-name`,className:`text-sm font-bold text-primary`,children:`Bynder Name`}),(0,u.jsx)(Zo,{id:`market-readiness-range-bynder-name`,name:`bynderName`,value:o,placeholder:`Bynder name`,autoComplete:`off`,disabled:fe,hasError:!!b.bynderName,ariaDescribedBy:b.bynderName?`market-readiness-range-bynder-name-error`:void 0,onChange:e=>V?.({value:e.target.value})}),b.bynderName?(0,u.jsx)(v,{id:`market-readiness-range-bynder-name-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.bynderName}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-code`,className:`text-sm font-bold text-primary`,children:`Range Code`}),(0,u.jsx)(Zo,{id:`market-readiness-range-code`,name:`rangeCode`,value:s,placeholder:`Short code`,autoComplete:`off`,required:!0,disabled:fe,hasError:!!b.rangeCode,ariaDescribedBy:b.rangeCode?`market-readiness-range-code-error`:void 0,onChange:e=>ne?.({value:e.target.value})}),b.rangeCode?(0,u.jsx)(v,{id:`market-readiness-range-code-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.rangeCode}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-company`,className:`text-sm font-bold text-primary`,children:`Company`}),(0,u.jsx)(os,{id:`market-readiness-range-company`,name:`rangeCompany`,value:l,placeholder:`Select a company`,options:m,required:!0,disabled:fe,hasError:!!b.company,ariaDescribedBy:b.company?`market-readiness-range-company-error`:void 0,onChange:e=>ie?.({value:e.target.value})}),b.company?(0,u.jsx)(v,{id:`market-readiness-range-company-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.company}):null]}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-company-code`,className:`text-sm font-bold text-primary`,children:`Company Code`}),(0,u.jsx)(Zo,{id:`market-readiness-company-code`,name:`companyCode`,value:d,placeholder:`Short code`,autoComplete:`off`,required:!0,disabled:fe,hasError:!!b.companyCode,ariaDescribedBy:b.companyCode?`market-readiness-company-code-error`:void 0,onChange:e=>H?.({value:e.target.value})}),b.companyCode?(0,u.jsx)(v,{id:`market-readiness-company-code-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.companyCode}):null]}),(0,u.jsxs)(`div`,{role:`group`,"aria-label":`Range location`,className:`grid gap-5 md:col-span-2 md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{className:me||!pe?`md:col-span-2`:void 0,children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-region`,className:`text-sm font-bold text-primary`,children:`Region`}),(0,u.jsx)(os,{id:`market-readiness-range-region`,name:`rangeRegion`,value:f,placeholder:`Select a region`,options:g,required:!0,disabled:fe,hasError:!!b.region,ariaDescribedBy:b.region?`market-readiness-range-region-error`:void 0,onChange:e=>U?.({value:e.target.value})}),b.region?(0,u.jsx)(v,{id:`market-readiness-range-region-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.region}):null]}),me?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-product-family-code`,className:`text-sm font-bold text-primary`,children:he}),(0,u.jsx)(os,{id:`market-readiness-product-family-code`,name:`productFamilyCode`,value:c,placeholder:`Select a product family`,options:h,required:!0,disabled:fe,hasError:!!b.productFamilyCode,ariaDescribedBy:b.productFamilyCode?`market-readiness-product-family-code-error`:void 0,onChange:e=>re?.({value:e.target.value})}),b.productFamilyCode?(0,u.jsx)(v,{id:`market-readiness-product-family-code-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.productFamilyCode}):null]}):null,me?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-subregion`,className:`text-sm font-bold text-primary`,children:`Subregion`}),(0,u.jsx)(Zo,{id:`market-readiness-range-subregion`,name:`rangeSubRegion`,value:K,placeholder:`Enter a subregion`,autoComplete:`off`,disabled:fe,hasError:!!b.subRegion,ariaDescribedBy:b.subRegion?`market-readiness-range-subregion-error`:void 0,onChange:e=>W?.({value:e.target.value})}),b.subRegion?(0,u.jsx)(v,{id:`market-readiness-range-subregion-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.subRegion}):null]}):null,!me&&pe?(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:`market-readiness-range-subregion`,className:`text-sm font-bold text-primary`,children:`Subregion`}),(0,u.jsx)(os,{id:`market-readiness-range-subregion`,name:`rangeSubRegion`,value:p,placeholder:`Select a subregion`,options:ge,required:!0,disabled:fe,hasError:!!b.subRegion,ariaDescribedBy:b.subRegion?`market-readiness-range-subregion-error`:void 0,onChange:e=>W?.({value:e.target.value})}),b.subRegion?(0,u.jsx)(v,{id:`market-readiness-range-subregion-error`,role:`alert`,variant:`free`,className:`mt-2 text-xs text-accent`,children:b.subRegion}):null]}):null]})]}),(0,u.jsxs)(`div`,{className:`mt-6 flex flex-col-reverse gap-3 border-t border-borderTertiary pt-5 md:flex-row md:items-center md:justify-end`,children:[T?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`text-sm text-accent md:mr-auto`,children:T}):null,r===`edit`&&we&&oe?(0,u.jsx)(P,{type:`button`,label:R,iconType:`fa-solid`,iconName:`trash`,iconAlt:``,variant:`outline`,intent:`danger`,disabled:fe,className:`md:mr-auto`,onClick:()=>oe(we)}):null,(0,u.jsx)(P,{label:F,variant:`outline`,intent:`primary`,disabled:fe,onClick:()=>G?.(Ce)}),(0,u.jsx)(P,{type:`submit`,label:w?N:M,iconType:`fa-solid`,iconName:w?`spinner`:`floppy-disk`,iconAlt:``,variant:`solid`,intent:`primary`,disabled:fe||C||!ae,"aria-busy":w||void 0})]})]})]}):(0,u.jsx)(pf,{status:y,onRetryClick:ue}),(0,u.jsx)(Hc,{open:!!(E&&we),title:I,description:`This permanently removes the range. This action cannot be undone.`,closeLabel:B,size:`sm`,onClose:()=>{O||ce?.()},children:we?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsxs)(`div`,{className:`rounded-md border border-borderTertiary bg-adminSideNavBackground p-3`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:_e}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 font-mono text-xs text-tertiary`,children:s})]}),(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`label`,{htmlFor:`market-readiness-range-delete-confirmation`,className:`text-sm font-bold text-primary`,children:[`Type `,s,` to confirm`]}),(0,u.jsx)(Zo,{id:`market-readiness-range-delete-confirmation`,name:`deleteRangeConfirmation`,value:D,placeholder:s,autoComplete:`off`,autoFocus:!0,disabled:O,hasError:!!k,onChange:e=>se?.({value:e.target.value})}),k?(0,u.jsx)(v,{role:`alert`,variant:`free`,className:`mt-2 text-sm text-accent`,children:k}):null]}),(0,u.jsxs)(`div`,{className:`flex justify-end gap-3`,children:[(0,u.jsx)(P,{label:z,size:`sm`,variant:`outline`,intent:`primary`,disabled:O,onClick:()=>ce?.()}),(0,u.jsx)(P,{label:O?ee:R,iconType:`fa-solid`,iconName:O?`spinner`:`trash`,iconAlt:``,size:`sm`,variant:`solid`,intent:`accent`,disabled:!Te||O||!le,onClick:()=>le?.(we)})]})]}):null})]})},Ef=({pageTitle:e,pageDescription:t,backLabel:n,sideNavProps:r,report:i,status:a={state:`ready`},pagination:o,onBackClick:s,onRetryClick:c,onPreviousPageClick:l,onNextPageClick:d})=>(0,u.jsx)(uf,{pageTitle:e,pageDescription:t,sideNavProps:r,headerLeading:n?(0,u.jsx)(P,{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)(Nu,{...i})}),o?(0,u.jsxs)(`nav`,{"aria-label":`Report pagination`,className:`mt-5 flex justify-end gap-3`,children:[(0,u.jsx)(P,{label:o.previousLabel,iconType:`fa-solid`,iconName:`chevron-left`,iconAlt:``,variant:`outline`,intent:`primary`,disabled:o.previousDisabled,onClick:l}),(0,u.jsx)(P,{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)(pf,{status:a,onRetryClick:c})}),Df=e=>new Intl.NumberFormat(`en-US`).format(e),Of=({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)(S,{iconType:`fa-solid`,iconName:n,alt:``,size:`md`})}),(0,u.jsxs)(`div`,{className:`min-w-0 md:w-72`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e}),(0,u.jsx)(v,{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})]}),kf=({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)(v,{role:e===`error`?`alert`:`status`,variant:`free`,className:`mt-3 text-sm ${r}`,children:n})},Af=({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:Df(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]}),jf=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},dataSource:i,existingDataTitle:a=`Continue with saved data`,existingDataEmptyTitle:o=`No saved data set yet`,existingDataEmptyDescription:s=`Start by uploading a Salsify report or downloading the latest data directly from Salsify.`,useExistingDataLabel:l=`Use Saved Data`,uploadTitle:d=`Upload a Salsify report`,uploadDescription:f=`Use a report exported from Salsify when you already have the file ready.`,uploadDropLabel:p=`Drag a report file here`,uploadBrowseLabel:m=`Select File`,uploadHelpText:h=`JSON exports from Salsify are supported.`,selectedFile:g,uploadStatus:_=`idle`,uploadStatusMessage:y,uploadLabel:b=`Upload Report`,uploadDisabled:x=!1,clearFileLabel:C=`Clear File`,directDownloadTitle:w=`Download from Salsify`,directDownloadDescription:T=`Choose a product range and Data Forge will request the latest records for you.`,rangeLabel:E=`Product Range`,rangePlaceholder:D=`Select a range`,rangeOptions:O,selectedRangeValue:k=``,directDownloadLabel:A=`Download Latest Data`,downloadStatus:j=`idle`,downloadStatusMessage:M,downloadDisabled:N=!1,onUseExistingDataClick:F,onReportFileSelect:I,onUploadClick:L,onClearSelectedFileClick:R,onRangeChange:ee,onDirectDownloadClick:z,onRetryClick:B})=>{let te=(0,c.useRef)(null),V=_===`pending`,ne=j===`pending`,re=e=>I?.({files:Array.from(e??[])});return(0,u.jsx)(uf,{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)(Of,{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)(Af,{dataSource:i}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(P,{label:l,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,variant:`solid`,intent:`primary`,fullWidth:!0,onClick:F})})]}):(0,u.jsx)(`div`,{className:`rounded-md border border-dashed border-borderTertiary bg-adminSideNavBackground p-4`,children:(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:s})})}),(0,u.jsxs)(Of,{title:d,description:f,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(),re(e.dataTransfer.files)},children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`,className:`text-primary`}),(0,u.jsx)(v,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:p}),(0,u.jsx)(v,{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)(P,{label:m,iconType:`fa-solid`,iconName:`folder-open`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,disabled:V,onClick:()=>te.current?.click()})}),(0,u.jsx)(`input`,{ref:te,id:`salsify-report-upload`,type:`file`,className:`sr-only`,disabled:V,onChange:e=>re(e.target.files)})]}),(0,u.jsx)(v,{variant:`free`,className:`mt-3 text-xs text-tertiary`,children:h}),g?(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)(S,{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)(v,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:g.name}),g.sizeLabel?(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:g.sizeLabel}):null]})]}),(0,u.jsxs)(`div`,{className:`mt-4 flex flex-col gap-2 md:flex-row md:justify-end`,children:[(0,u.jsx)(P,{label:C,variant:`outline`,intent:`primary`,size:`sm`,disabled:V,onClick:R}),(0,u.jsx)(P,{label:b,iconType:`fa-solid`,iconName:`cloud-arrow-up`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,disabled:x||V,"aria-busy":V||void 0,onClick:L})]})]}):null,(0,u.jsx)(kf,{status:_,message:y})]}),(0,u.jsxs)(Of,{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)(os,{id:`salsify-range`,name:`salsifyRange`,value:k,placeholder:D,options:O,disabled:ne,onChange:e=>ee?.({value:e.target.value})})]}),(0,u.jsx)(`div`,{className:`mt-auto pt-5`,children:(0,u.jsx)(P,{label:A,iconType:`fa-solid`,iconName:`cloud-arrow-down`,iconAlt:``,variant:`solid`,intent:`primary`,fullWidth:!0,disabled:N||ne,"aria-busy":ne||void 0,onClick:z})}),(0,u.jsx)(kf,{status:j,message:M})]})]}):(0,u.jsx)(pf,{status:r,onRetryClick:B})})},Mf=(e,t,n)=>`${e.toLocaleString()} ${e===1?t:n}`,Nf=({status:e,message:t})=>{let n=t?.trim()??``;return!n||e===`idle`?null:(0,u.jsx)(v,{role:e===`error`?`alert`:`status`,variant:`free`,className:`mt-3 text-sm ${e===`error`?`text-accent`:`text-primary`}`,children:n})},Pf=({label:e,options:t,value:n,disabled:r=!1,onSelect:i})=>(0,u.jsxs)(`fieldset`,{children:[(0,u.jsxs)(`legend`,{className:`text-sm font-bold text-primary`,children:[e,n?null:(0,u.jsxs)(`span`,{className:`ml-3 text-xs font-normal text-accent`,children:[`Select one `,e.toLowerCase(),`.`]})]}),(0,u.jsx)(`div`,{role:`radiogroup`,"aria-label":e,"aria-required":`true`,"aria-invalid":!n||void 0,className:`mt-4 flex flex-wrap gap-2`,children:t.map(e=>{let t=e.value===n;return(0,u.jsx)(P,{label:e.label,variant:t?`solid`:`outline`,intent:`primary`,size:`sm`,role:`radio`,"aria-checked":t,disabled:r,onClick:()=>i(e.value)},e.value)})})]}),Ff=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},existingImportSet:i,regionOptions:a,selectedRegion:o,localityOptions:s,selectedLocality:l,localityDisabled:d=!1,intentOptions:f,selectedIntent:p,selectedFile:m,uploadStatus:h=`idle`,uploadStatusMessage:g,uploadDisabled:_=!1,continueExistingLabel:y=`Continue Import Set`,uploadLabel:b=`Upload and Continue`,clearFileLabel:x=`Clear File`,onContinueExistingClick:C,onRegionChange:w,onLocalityChange:T,onIntentChange:E,onFileSelect:D,onClearSelectedFileClick:O,onUploadClick:k,onRetryClick:A})=>{let j=(0,c.useRef)(null),M=(0,c.useId)(),N=h===`pending`,F=N||!o.trim()||!l.trim()||!p,I=e=>D?.({files:Array.from(e??[]).slice(0,1)});return(0,u.jsx)(uf,{pageTitle:e,pageDescription:t,sideNavProps:n,children:r.state===`ready`?(0,u.jsxs)(`div`,{className:`mt-6 grid gap-6`,children:[i?(0,u.jsxs)(`section`,{"aria-labelledby":`existing-import-set-title`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{as:`h2`,id:`existing-import-set-title`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Existing Import Set`}),(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-xs font-bold uppercase text-tertiary`,children:`Private and expiring`}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 font-bold text-primary`,children:i.fileName}),(0,u.jsxs)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:[i.regionLabel,` ·`,` `,i.localityLabel,` ·`,` `,i.intentLabel]}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:[i.rangeCount===void 0?null:Mf(i.rangeCount,`range`,`ranges`),i.decorCount===void 0?null:Mf(i.decorCount,`decor`,`decors`),i.skuCount===void 0?null:Mf(i.skuCount,`SKU`,`SKUs`)].filter(Boolean).join(` · `)})]}),(0,u.jsx)(v,{variant:`free`,className:`shrink-0 rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-tertiary`,children:i.expiresLabel})]}),(0,u.jsx)(`div`,{className:`mt-5 flex justify-end`,children:(0,u.jsx)(P,{label:y,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,onClick:C})})]}):null,(0,u.jsxs)(`section`,{"aria-labelledby":`new-import-title`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsx)(v,{as:`h2`,id:`new-import-title`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Start a New Import`}),(0,u.jsxs)(`div`,{className:`mt-5 grid gap-6`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-3 gap-y-1`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:`Region`}),o.trim()?null:(0,u.jsx)(v,{variant:`free`,className:`text-xs text-accent`,children:`Select one region.`})]}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(Ko,{options:a,value:o,placeholder:``,onChange:w})})]}),(0,u.jsx)(Pf,{label:`Locality`,options:s,value:l,disabled:d,onSelect:e=>T({locality:e})}),(0,u.jsx)(Pf,{label:`Import Intent`,options:f,value:p,onSelect:e=>E({intent:e})}),(0,u.jsxs)(`fieldset`,{children:[(0,u.jsx)(`legend`,{className:`text-sm font-bold text-primary`,children:`Source File`}),(0,u.jsxs)(`div`,{className:`mt-3 flex min-h-40 flex-col items-center justify-center rounded-lg border border-dashed border-secondaryActive bg-adminSideNavBackground p-5 text-center transition hover:border-primary`,"aria-disabled":F||void 0,onDragOver:e=>e.preventDefault(),onDrop:e=>{e.preventDefault(),F||I(e.dataTransfer.files)},children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`,className:`text-primary`}),(0,u.jsx)(v,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:`Drag an .xlsx file here`}),(0,u.jsx)(v,{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)(P,{label:`Select File`,iconType:`fa-solid`,iconName:`folder-open`,iconAlt:``,variant:`outline`,size:`sm`,disabled:F,onClick:()=>j.current?.click()})}),(0,u.jsx)(`input`,{ref:j,id:`${M}-import-upload`,type:`file`,accept:`.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,className:`sr-only`,disabled:F,onChange:e=>I(e.target.files)})]}),m?(0,u.jsxs)(`div`,{className:`mt-4 flex flex-col gap-4 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`file-excel`,alt:``,size:`lg`}),(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(v,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:m.name}),m.sizeLabel?(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-xs text-tertiary`,children:m.sizeLabel}):null]})]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row`,children:[(0,u.jsx)(P,{label:x,variant:`outline`,size:`sm`,disabled:N,onClick:O}),(0,u.jsx)(P,{label:b,iconType:`fa-solid`,iconName:N?`spinner`:`cloud-arrow-up`,iconAlt:``,size:`sm`,disabled:_||F,"aria-busy":N||void 0,onClick:k})]})]}):null,(0,u.jsx)(Nf,{status:h,message:g})]})]})]})]}):(0,u.jsx)(pf,{status:r,onRetryClick:A})})},If={error:{iconName:`circle-exclamation`,label:`Error`,className:`text-accent`},warning:{iconName:`triangle-exclamation`,label:`Warning`,className:`text-primary`},info:{iconName:`circle-info`,label:`Information`,className:`text-primary`}},Lf=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},fileName:i,scopeLabel:a,summary:o,groups:s,backLabel:c=`Back to Upload`,continueLabel:l=`Continue to Review`,continueDisabled:d=!1,onBackClick:f,onContinueClick:p,onRetryClick:m})=>(0,u.jsx)(uf,{pageTitle:e,pageDescription:t,sideNavProps:n,children:r.state===`ready`?(0,u.jsxs)(`div`,{className:`mt-6 grid gap-5`,children:[(0,u.jsxs)(`section`,{"aria-label":`Import issue summary`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Validation Summary`}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm font-bold text-primary`,children:i}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:a})]}),(0,u.jsxs)(v,{variant:`free`,className:`shrink-0 rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-tertiary`,children:[o.totalCount.toLocaleString(),` issues`]})]}),(0,u.jsxs)(`dl`,{className:`mt-5 grid gap-3 md:grid-cols-3`,children:[(0,u.jsxs)(`div`,{className:`rounded-md bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Issues`}),(0,u.jsx)(`dd`,{className:`mt-1 text-2xl font-bold text-primary`,children:o.totalCount.toLocaleString()})]}),(0,u.jsxs)(`div`,{className:`rounded-md bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Blocking`}),(0,u.jsx)(`dd`,{className:`mt-1 text-2xl font-bold text-accent`,children:o.blockingCount.toLocaleString()})]}),(0,u.jsxs)(`div`,{className:`rounded-md bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(`dt`,{className:`text-xs font-bold uppercase text-tertiary`,children:`Warnings`}),(0,u.jsx)(`dd`,{className:`mt-1 text-2xl font-bold text-primary`,children:o.warningCount.toLocaleString()})]})]})]}),(0,u.jsx)(`section`,{"aria-label":`Import issues`,className:`grid gap-4`,children:s.map(e=>(0,u.jsxs)(`article`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e.title}),e.description?(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:e.description}):null]}),(0,u.jsxs)(v,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:[e.issues.length.toLocaleString(),` `,e.issues.length===1?`issue`:`issues`]})]}),(0,u.jsx)(`ul`,{className:`mt-4 divide-y divide-borderTertiary rounded-md border border-borderTertiary`,children:e.issues.map(e=>{let t=If[e.severity];return(0,u.jsxs)(`li`,{className:`flex items-start gap-3 p-4`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:t.iconName,alt:``,className:`mt-0.5 shrink-0 ${t.className}`}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-xs font-bold uppercase ${t.className}`,children:t.label}),(0,u.jsx)(v,{variant:`free`,className:`rounded-full px-2 py-0.5 text-xs font-bold ${e.blocking?`bg-accent text-secondary`:`bg-tertiaryActive text-tertiary`}`,children:e.blocking?`Blocking`:`Non-blocking`}),e.location||e.identifier?(0,u.jsx)(v,{variant:`free`,className:`text-xs font-bold text-tertiary`,children:[e.location,e.identifier?`${e.identifier.label}: ${e.identifier.value}`:null].filter(Boolean).join(` · `)}):null]}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:e.message})]})]},e.id)})})]},e.id))}),(0,u.jsxs)(`div`,{className:`flex flex-col-reverse gap-3 md:flex-row md:justify-end`,children:[(0,u.jsx)(P,{label:c,variant:`outline`,onClick:f}),(0,u.jsx)(P,{label:l,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,disabled:d,onClick:p})]})]}):(0,u.jsx)(pf,{status:r,onRetryClick:m})}),Rf={added:`Added`,updated:`Updated`,unchanged:`Unchanged`},zf=({changeType:e})=>{let t=Rf[e];return(0,u.jsx)(`span`,{"aria-label":t,title:t,className:`mt-0.5 flex h-5 w-5 shrink-0 self-start items-center justify-center rounded-full bg-tertiary text-secondary`,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:e===`added`?`plus`:`pencil`,alt:``,size:`xs`})})},Bf=({row:e})=>{let t=e.currentValue?.trim()||`—`,n=e.afterValue?.trim()||`—`;return(0,u.jsxs)(`div`,{className:`grid border-t border-borderTertiary md:grid-cols-2`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 p-4`,children:[(0,u.jsx)(v,{variant:`free`,className:`mb-2 text-xs font-bold uppercase text-tertiary md:hidden`,children:`Current`}),(0,u.jsx)(v,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:e.label}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 break-words text-sm text-primary`,children:t})]}),(0,u.jsxs)(`div`,{className:`min-w-0 border-t border-borderTertiary bg-adminSideNavBackground p-4 md:border-l md:border-t-0`,children:[(0,u.jsx)(v,{variant:`free`,className:`mb-2 text-xs font-bold uppercase text-tertiary md:hidden`,children:`After`}),(0,u.jsx)(v,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:e.label}),(0,u.jsx)(v,{variant:`free`,className:`mt-1 break-words text-sm ${e.changeType===`unchanged`?`text-tertiary`:`font-bold text-primary`}`,children:e.changeType===`unchanged`?t:n})]})]})},Vf=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},fileName:i,scopeLabel:a,ranges:o,cancelLabel:s=`Cancel Import`,continueLabel:c=`Apply Import`,continueDisabled:l=!1,cancelConfirmation:d,onCancelClick:f,onCancelConfirm:p,onCancelClose:m,onContinueClick:h,onRetryClick:g})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(uf,{pageTitle:e,pageDescription:t,sideNavProps:n,children:r.state===`ready`?(0,u.jsxs)(`div`,{className:`mt-6 grid gap-5`,children:[(0,u.jsxs)(`section`,{"aria-label":`Import review summary`,className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-lg font-bold text-primary`,children:`Final Import Review`}),(0,u.jsx)(v,{variant:`free`,className:`mt-2 text-sm font-bold text-primary`,children:i}),(0,u.jsxs)(v,{variant:`free`,className:`mt-1 text-sm text-tertiary`,children:[a,` · `,o.length.toLocaleString(),` `,o.length===1?`range`:`ranges`]})]}),(0,u.jsx)(`section`,{"aria-label":`Changes in this import`,className:`grid gap-5`,children:o.map(e=>(0,u.jsxs)(`article`,{className:`overflow-hidden rounded-lg border border-borderTertiary bg-secondary shadow-sm`,children:[(0,u.jsxs)(`header`,{className:`flex flex-col gap-2 border-b border-borderTertiary p-5 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:`Range`}),(0,u.jsxs)(v,{as:`h2`,variant:`free`,className:`mt-1 text-lg font-bold text-primary`,children:[e.name,e.code?` · ${e.code}`:``]})]}),(0,u.jsx)(zf,{changeType:e.changeType})]}),(0,u.jsx)(`div`,{className:`grid gap-5 p-5`,children:e.decors.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`${e.id}-title`,className:`overflow-hidden rounded-lg border border-borderTertiary`,children:[(0,u.jsxs)(`header`,{className:`flex flex-col gap-2 bg-tertiaryActive p-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{variant:`free`,className:`text-xs font-bold uppercase text-tertiary`,children:`Decor`}),(0,u.jsxs)(v,{as:`h3`,id:`${e.id}-title`,variant:`free`,className:`mt-1 text-base font-bold text-primary`,children:[e.code,e.name?` · ${e.name}`:``]})]}),(0,u.jsx)(zf,{changeType:e.changeType})]}),(0,u.jsx)(`div`,{className:`grid gap-5 p-4`,children:e.sections.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`${e.id}-title`,children:[(0,u.jsx)(v,{as:`h4`,id:`${e.id}-title`,variant:`free`,className:`text-sm font-bold text-primary`,children:e.title}),(0,u.jsxs)(`div`,{className:`mt-3 overflow-hidden rounded-md border border-borderTertiary`,children:[(0,u.jsxs)(`div`,{className:`hidden grid-cols-2 bg-tertiaryActive md:grid`,children:[(0,u.jsx)(v,{variant:`free`,className:`px-4 py-3 text-xs font-bold uppercase text-tertiary`,children:`Current`}),(0,u.jsx)(v,{variant:`free`,className:`border-l border-borderTertiary px-4 py-3 text-xs font-bold uppercase text-tertiary`,children:`After`})]}),e.rows.map(e=>(0,u.jsx)(Bf,{row:e},e.id))]})]},e.id))})]},e.id))})]},e.id))}),(0,u.jsxs)(`div`,{className:`flex flex-col-reverse gap-3 md:flex-row md:justify-end`,children:[(0,u.jsx)(P,{label:s,variant:`outline`,intent:`danger`,onClick:f}),(0,u.jsx)(P,{label:c,iconType:`fa-solid`,iconName:`check`,iconAlt:``,disabled:l,onClick:h})]})]}):(0,u.jsx)(pf,{status:r,onRetryClick:g})}),(0,u.jsx)(Hc,{open:d?.open??!1,title:d?.title??`Cancel import?`,closeLabel:d?.cancelLabel,size:`sm`,onClose:m??(()=>void 0),children:d?(0,u.jsxs)(`div`,{className:`grid gap-5`,children:[(0,u.jsx)(v,{variant:`free`,className:`whitespace-pre-line text-sm text-primary`,children:d.message}),(0,u.jsxs)(`div`,{className:`flex flex-col-reverse gap-2 md:flex-row md:justify-end`,children:[(0,u.jsx)(P,{label:d.cancelLabel??`Keep Import Set`,variant:`outline`,disabled:d.pending,onClick:m}),(0,u.jsx)(P,{label:d.confirmLabel??`Delete Import Set`,intent:`danger`,disabled:d.pending,"aria-busy":d.pending||void 0,onClick:p})]})]}):null})]}),Hf=e=>e===`error`?`text-accent`:e===`success`?`text-saleGreen`:`text-primary`,Uf=({status:e,message:t})=>{let n=t?.trim()??``;return!n||e===`idle`?null:(0,u.jsx)(v,{role:e===`error`?`alert`:`status`,variant:`free`,className:`mt-3 text-sm ${Hf(e)}`,children:n})},Wf=({guide:e,uploadDropLabel:t,uploadBrowseLabel:n,uploadLabel:r,clearFileLabel:i,completeLabel:a,onGuideFileSelect:o,onUploadClick:s,onClearSelectedFileClick:l})=>{let d=(0,c.useRef)(null),f=(0,c.useId)(),p=e.actionStatus??`idle`,m=p===`validating`||p===`pending`,h=(e.availability??`available`)===`available`,g=e.uploadDropLabel??t,_=e.uploadBrowseLabel??n,y=e.uploadLabel??r,b=e.completeLabel??a,x=t=>o?.({guideId:e.id,files:Array.from(t??[])});return(0,u.jsxs)(`article`,{className:`flex w-full flex-col rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:flex-row md:items-start md:gap-6`,children:[(0,u.jsxs)(`div`,{className:`flex items-start gap-4`,children:[e.logo?(0,u.jsx)(`span`,{className:`flex h-10 w-20 shrink-0 items-center justify-center rounded-md border border-borderTertiary bg-adminSideNavBackground px-3`,children:(0,u.jsx)(`img`,{src:e.logo.src,alt:e.logo.alt??``,className:`max-h-6 w-full object-contain opacity-70 brightness-0`,loading:`eager`,decoding:`async`})}):(0,u.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-borderTertiary bg-adminSideNavBackground text-primary`,children:(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`book-open`,alt:``,size:`md`})}),(0,u.jsxs)(`div`,{className:`min-w-0 md:w-72`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`text-base font-bold text-primary`,children:e.title}),(0,u.jsx)(v,{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:h?(0,u.jsxs)(u.Fragment,{children:[p===`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)(S,{iconType:`fa-solid`,iconName:`circle-check`,alt:``,className:`shrink-0 text-saleGreen`}),(0,u.jsx)(v,{variant:`free`,className:`text-sm font-bold text-primary`,children:b})]}):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(),x(e.dataTransfer.files)},children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`,className:`text-primary`}),(0,u.jsx)(v,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:g}),(0,u.jsx)(v,{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)(P,{label:_,iconType:`fa-solid`,iconName:`folder-open`,iconAlt:``,variant:`outline`,intent:`primary`,size:`sm`,disabled:m,onClick:()=>d.current?.click()})}),(0,u.jsx)(`input`,{ref:d,id:`${f}-product-guide-upload`,type:`file`,accept:e.fileAccept??`.pdf,application/pdf`,className:`sr-only`,disabled:m,onChange:e=>x(e.target.files)})]}),e.selectedFile?(0,u.jsxs)(`div`,{className:`mt-4 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4`,children:[(0,u.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,u.jsx)(S,{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)(v,{variant:`free`,className:`truncate text-sm font-bold text-primary`,children:e.selectedFile.name}),e.selectedFile.sizeLabel?(0,u.jsx)(v,{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)(P,{label:i,variant:`outline`,intent:`primary`,size:`sm`,disabled:m,onClick:()=>l?.({guideId:e.id})}),(0,u.jsx)(P,{label:y,iconType:`fa-solid`,iconName:`cloud-arrow-up`,iconAlt:``,variant:`solid`,intent:`primary`,size:`sm`,disabled:e.uploadDisabled||m,"aria-busy":m||void 0,onClick:()=>s?.({guideId:e.id})})]})]}):null,e.validationIssues?.length?(0,u.jsxs)(`div`,{role:`alert`,className:`mt-4 rounded-md border border-accent bg-adminSideNavBackground p-4`,children:[(0,u.jsx)(v,{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,p===`success`?null:(0,u.jsx)(Uf,{status:p,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)(S,{iconType:`fa-solid`,iconName:`clock`,alt:``,size:`xl`,className:`text-tertiary`}),(0,u.jsx)(v,{variant:`free`,className:`mt-3 text-sm font-bold text-primary`,children:e.availabilityMessage??`Upload support is coming soon.`})]})})]})},Gf=({pageTitle:e,pageDescription:t,sideNavProps:n,status:r={state:`ready`},guides:i,emptyTitle:a=`No product guides configured`,emptyDescription:o=`Add a product-guide configuration before uploading data.`,uploadDropLabel:s=`Drag a product guide PDF file here`,uploadBrowseLabel:c=`Select PDF File`,uploadLabel:l=`Replace Active Guide`,clearFileLabel:d=`Clear File`,completeLabel:f=`Complete`,onGuideFileSelect:p,onUploadClick:m,onClearSelectedFileClick:h,onRetryClick:g})=>{let _;return _=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)(S,{iconType:`fa-solid`,iconName:`book`,alt:``,size:`2xl`,className:`text-tertiary`}),(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`mt-4 text-lg font-bold text-primary`,children:a}),(0,u.jsx)(v,{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)(Wf,{guide:e,uploadDropLabel:s,uploadBrowseLabel:c,uploadLabel:l,clearFileLabel:d,completeLabel:f,onGuideFileSelect:p,onUploadClick:m,onClearSelectedFileClick:h},e.id))}):(0,u.jsx)(pf,{status:r,onRetryClick:g}),(0,u.jsx)(uf,{pageTitle:e,pageDescription:t,sideNavProps:n,children:_})},Kf=({scopeDescription:e,importDescription:t,acceptedExtensions:n,maxFileSizeBytes:r,fileName:i,state:a,message:o,errors:s=[],disabled:l=!1,onFileSelect:d,onFileRemove:f,onImportClick:p,onTemplateDownloadClick:m,mode:h,targetLabel:g,onModeChange:_,modeLabels:y})=>{let b=(0,c.useId)(),x=(0,c.useRef)(null),[C,w]=(0,c.useState)(!1),[T,E]=(0,c.useState)(``),D=a===`processing`||a===`importing`,O=l||D,k={add:{label:`Add or update current data`,description:`Add new vendors and update matching vendors in ${g}. Vendors missing from the upload are kept.`,uploadLabel:`Upload`,...y?.add},replace:{label:`Replace current data`,description:`Remove all current vendors in ${g} and use only the uploaded vendors.`,uploadLabel:`Upload`,...y?.replace}},A=e=>{if(O||!e.length)return;let t=e[0];if(e.length!==1){E(`Choose one spreadsheet at a time.`);return}if(!n.some(e=>t.name.toLowerCase().endsWith(e.toLowerCase()))){E(`Choose a supported file: ${n.join(`, `)}.`);return}if(!t.size||t.size>r){E(`Choose a non-empty file no larger than ${r/1024/1024} MB.`);return}E(``),d({file:t})};return(0,u.jsxs)(`section`,{"aria-labelledby":`${b}-title`,"aria-busy":D,className:`rounded-lg border border-borderTertiary bg-secondary p-5 md:p-6`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-start md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{as:`h2`,variant:`bold`,id:`${b}-title`,children:`Import vendor spreadsheet`}),(0,u.jsx)(v,{variant:`body`,className:`mt-2`,children:e}),(0,u.jsx)(v,{variant:`caption`,className:`mt-1`,children:t})]}),m&&(0,u.jsx)(P,{label:`Download template`,variant:`link`,size:`sm`,onClick:m,disabled:O})]}),(0,u.jsxs)(`div`,{className:`mt-5 flex min-h-40 flex-col items-center justify-center rounded-lg border border-dashed p-6 text-center transition ${C&&!O?`border-primary bg-secondaryActive`:`border-secondaryActive bg-adminSideNavBackground`}`,onDragOver:e=>{e.preventDefault(),O||w(!0)},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||w(!1)},onDrop:e=>{e.preventDefault(),w(!1),A(Array.from(e.dataTransfer.files))},children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`cloud-arrow-up`,alt:``,size:`2xl`}),(0,u.jsx)(v,{variant:`bold`,className:`mt-3`,children:`Drop your spreadsheet here`}),(0,u.jsxs)(v,{variant:`caption`,className:`mt-1`,id:`${b}-hint`,children:[n.join(`, `),` · One file, up to`,` `,r/1024/1024,` MB`]}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(P,{label:i?`Choose another file`:`Choose file`,variant:`outline`,size:`sm`,disabled:O,onClick:()=>x.current?.click()})}),(0,u.jsx)(`input`,{ref:x,type:`file`,"aria-label":`Vendor spreadsheet`,"aria-describedby":`${b}-hint`,accept:n.join(`,`),className:`sr-only`,tabIndex:-1,disabled:O,onChange:e=>{A(Array.from(e.target.files??[])),e.target.value=``}})]}),T&&(0,u.jsx)(`p`,{role:`alert`,className:`mt-3 text-sm`,children:T}),i&&(0,u.jsxs)(`div`,{className:`mt-4 flex flex-col gap-3 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsx)(v,{variant:`body`,className:`min-w-0 break-words`,children:i}),(0,u.jsx)(P,{label:`Remove file`,variant:`ghost`,size:`sm`,disabled:O,onClick:()=>{E(``),f()}})]}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(Yd,{title:`How should this upload change the data?`,name:`${b}-mode`,selectedValue:h,options:[{id:`${b}-add`,value:`add`,label:k.add.label,description:k.add.description,disabled:O},{id:`${b}-replace`,value:`replace`,label:k.replace.label,description:k.replace.description,disabled:O}],onChange:e=>{(e===`add`||e===`replace`)&&_({mode:e})}})}),h===`replace`&&(0,u.jsxs)(`div`,{className:`mt-4 rounded-md border border-accent bg-secondary p-4`,role:`note`,children:[(0,u.jsxs)(v,{variant:`bold`,children:[`This will replace all vendor listings in `,g,`.`]}),(0,u.jsx)(v,{variant:`body`,className:`mt-1`,children:`Vendors missing from your spreadsheet will be removed. Other regions will not change.`})]}),(0,u.jsxs)(`div`,{role:a===`error`?`alert`:`status`,"aria-live":`polite`,className:`mt-3`,children:[o&&(0,u.jsx)(v,{variant:`body`,children:o}),s.length>0&&(0,u.jsx)(`ul`,{className:`mt-2 list-disc pl-5 text-sm`,children:s.map((e,t)=>(0,u.jsx)(`li`,{children:e},`${t}-${e}`))})]}),a!==`success`&&(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(P,{label:D?`Uploading…`:k[h].uploadLabel,disabled:O||!!T||!i,intent:h===`replace`?`danger`:`primary`,onClick:()=>p({mode:h})})})]})},qf=({sideNavProps:e,regionSelectorProps:t,localities:n,status:r={state:`ready`},onLocalitySelect:i,onRetryClick:a,importProps:o})=>{let s=n.filter(e=>e.region===t.value);return(0,u.jsxs)(uf,{pageTitle:`Where to Buy`,pageDescription:`Manage the vendors customers see in each sub-region and language.`,sideNavProps:e,headerActions:(0,u.jsx)(Ko,{...t,helpText:`Select the region whose vendor listings you want to manage.`}),children:[r.state===`ready`?(0,u.jsxs)(`section`,{className:`mt-5 max-w-6xl`,"aria-label":`Localities`,children:[(0,u.jsx)(v,{as:`h2`,variant:`bold`,children:`Sub-regions and languages`}),(0,u.jsx)(v,{variant:`body`,className:`mt-1 mb-5`,children:`Select a locality to edit its vendor listings. Each language has its own content.`}),s.length?(0,u.jsx)(G,{columns:1,gridClassName:`md:grid-cols-3`,gap:`sm`,children:s.map(e=>(0,u.jsxs)(K,{ariaLabel:`Edit ${e.subRegion} · ${e.language}`,onCardClick:()=>i({localityId:e.id}),className:`w-full rounded-lg border border-borderTertiary bg-secondary p-5 text-left shadow-sm transition hover:border-primary focus-visible:ring-2 focus-visible:ring-primary`,children:[(0,u.jsx)(v,{as:`span`,variant:`bold`,className:`block`,children:e.subRegion}),(0,u.jsxs)(v,{as:`span`,variant:`body`,className:`mt-1 block`,children:[e.language,` · `,e.locale]}),(0,u.jsxs)(v,{as:`span`,variant:`caption`,className:`mt-4 block`,children:[e.vendorCount,` `,e.vendorCount===1?`vendor`:`vendors`]})]},e.id))}):(0,u.jsx)(pf,{status:{state:`empty`,title:t.value?`No localities in this region`:`Select a region`,message:`Choose a region above to browse its localities.`}})]}):(0,u.jsx)(pf,{status:r,onRetryClick:a}),r.state===`ready`&&o&&(0,u.jsx)(`div`,{className:`mt-8 max-w-6xl`,children:(0,u.jsx)(Kf,{...o},t.value)})]})},Jf=(e,t={},n=[])=>[{id:`name`,label:`Vendor name`,type:`text`,value:e.name,required:!0},{id:`description`,label:`Description`,type:`textarea`,value:e.description},{id:`companyName`,label:`Company`,type:`select`,options:n,value:e.companyName,required:!0},{id:`address1`,label:`Street address`,type:`text`,value:e.address1,required:!0},{id:`city`,label:`Town or city`,type:`text`,value:e.city,required:!0,layoutWidth:`half`},{id:`postalCode`,label:`Postcode`,type:`text`,value:e.postalCode,layoutWidth:`half`},{id:`country`,label:`Country`,type:`text`,value:e.country,required:!0},{id:`latitude`,label:`Latitude`,type:`number`,value:e.latitude,required:!0,min:-90,max:90,step:1e-7,layoutWidth:`half`},{id:`longitude`,label:`Longitude`,type:`number`,value:e.longitude,required:!0,min:-180,max:180,step:1e-7,layoutWidth:`half`},{id:`email`,label:`Email address`,type:`text`,value:e.email,layoutWidth:`half`},{id:`phone`,label:`Telephone`,type:`text`,value:e.phone,layoutWidth:`half`},{id:`websiteUrl`,label:`Website URL`,type:`text`,value:e.websiteUrl}].map(e=>({...e,state:t[e.id]?`error`:`neutral`,message:t[e.id]})),Yf=e=>{let{locality:t,vendors:n,editor:r,selectedVendorId:i,isCreating:a=!1,saveState:o,lookup:s,status:c={state:`ready`}}=e,l=r??(i?n.find(e=>e.id===i):n[0]),d=o===`saving`||e.deletePending||s.state===`resolving`,f=o===`unsaved`||o===`error`||a,p=!!(d||f),m=`No matching addresses.`;s.state===`loading`?m=`Finding addresses...`:s.state===`error`&&(m=`Address suggestions are unavailable. Try again.`);let h={localityId:t.id,vendorId:l?.id??``},g=n.filter(t=>`${t.name} ${t.city}`.toLowerCase().includes(e.searchValue.trim().toLowerCase())),_=l&&l.latitude!==null&&l.longitude!==null&&Number.isFinite(l.latitude)&&Number.isFinite(l.longitude)&&Math.abs(l.latitude)<=90&&Math.abs(l.longitude)<=180;return(0,u.jsxs)(uf,{pageTitle:`Where to Buy`,pageDescription:`${t.subRegion} · ${t.language} · ${t.locale}`,sideNavProps:e.sideNavProps,children:[(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(P,{label:`Back to localities`,variant:`ghost`,iconType:`fa-solid`,iconName:`chevron-left`,disabled:p,onClick:e.onBackClick})}),c.state===`ready`?(0,u.jsxs)(`div`,{className:`mt-5 grid gap-5 md:h-[calc(100dvh-13rem)] md:min-h-96 md:grid-cols-3`,children:[(0,u.jsx)(`section`,{className:`order-2 min-h-0 min-w-0 md:order-1 md:col-span-2 md:overflow-y-auto`,"aria-label":`Vendor editor`,children:l?(0,u.jsxs)(`div`,{className:`rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm`,children:[(0,u.jsx)(v,{as:`h2`,variant:`bold`,children:a?`New vendor`:l.name}),(0,u.jsxs)(v,{variant:`caption`,className:`mt-1 mb-5`,children:[`Editing `,t.locale,`. Save or cancel your changes before switching vendors or localities.`]}),(0,u.jsxs)(`section`,{"aria-label":`Find address`,className:`mb-6`,children:[(0,u.jsx)(v,{as:`h3`,variant:`bold`,children:`Find address`}),(0,u.jsx)(`div`,{className:`mt-3`,children:(0,u.jsx)($o,{id:`vendor-address-autocomplete`,value:s.query,ariaLabel:`Address lookup`,placeholder:`Start typing an address`,minQueryLength:3,disabled:!!d,options:s.results.map(e=>({...e,value:e.id})),emptyMessage:m,onQueryChange:e.onLookupQueryChange,onClear:()=>e.onLookupQueryChange({value:``}),onOptionSelect:({option:t})=>e.onAddressSelect({...h,suggestion:{id:t.id,label:t.label}})})}),s.message?(0,u.jsx)(v,{role:s.state===`error`?`alert`:`status`,variant:`caption`,className:`mt-2`,children:s.message}):null,_?(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(Hu,{googleMapsApiKey:e.googleMapsApiKey,selectedLocationId:l.id,zoom:14,center:{lat:l.latitude,lng:l.longitude},ariaLabel:`Vendor location map`,legendLabel:`${l.address1}, ${l.city} · ${l.latitude}, ${l.longitude}`,locations:[{id:l.id,name:l.name,type:`distributor`,address:{lines:[l.address1],city:l.city,region:t.subRegion,postalCode:l.postalCode,country:l.country},coordinates:{lat:l.latitude,lng:l.longitude},stockedProducts:e.stockedRangeOptions.filter(e=>l.stockedRanges.includes(e.id))}]})}):(0,u.jsx)(v,{variant:`caption`,className:`mt-3`,children:`Find a location or enter valid coordinates to preview the map.`})]}),(0,u.jsxs)(`fieldset`,{disabled:!!d,className:`min-w-0`,children:[(0,u.jsx)(`legend`,{className:`sr-only`,children:`Vendor details`}),(0,u.jsx)(xs,{fields:Jf(l,e.fieldErrors,e.companyNameOptions),density:`compact`,showActions:!1,fieldGroups:[{id:`content`,title:`Locality content`,fieldIds:[`name`,`description`,`companyName`]},{id:`address`,title:`Address`,fieldIds:[`address1`,`city`,`postalCode`,`country`,`latitude`,`longitude`]},{id:`contact`,title:`Contact details`,fieldIds:[`email`,`phone`,`websiteUrl`]}],onDynamicFormFieldChange:t=>e.onVendorFieldChange({...h,...t})}),(0,u.jsxs)(`div`,{className:`mt-5 flex flex-col gap-5`,children:[(0,u.jsx)(`div`,{className:`w-full rounded-lg border border-borderTertiary p-4`,children:(0,u.jsx)(ts,{label:`Distributor types`,indentOptions:!0,columns:2,iconName:`store`,options:e.distributorTypeOptions.map(t=>({id:`type-${t.id}`,name:`distributorTypes`,label:t.label,checked:l.distributorTypes.includes(t.id),onChange:({checked:n})=>e.onVendorSelectionChange({...h,field:`distributorTypes`,optionId:t.id,checked:n})}))})}),(0,u.jsx)(`div`,{className:`w-full rounded-lg border border-borderTertiary p-4`,children:(0,u.jsx)(ts,{label:`Stocked ranges`,indentOptions:!0,columns:2,iconName:`layer-group`,options:e.stockedRangeOptions.map(t=>({id:`range-${t.id}`,name:`stockedRanges`,label:t.label,checked:l.stockedRanges.includes(t.id),onChange:({checked:n})=>e.onVendorSelectionChange({...h,field:`stockedRanges`,optionId:t.id,checked:n})}))})})]})]}),(0,u.jsxs)(`div`,{className:`mt-6 border-t border-borderTertiary pt-4`,children:[(0,u.jsx)(v,{role:o===`error`?`alert`:`status`,variant:`caption`,children:e.saveMessage??{saved:`All changes saved`,unsaved:`Unsaved changes`,saving:`Saving vendor...`,error:`Unable to save. Please retry.`}[o]}),(0,u.jsxs)(`div`,{className:`mt-3 flex flex-wrap justify-between gap-3`,children:[a?(0,u.jsx)(`span`,{}):(0,u.jsx)(P,{label:`Delete vendor`,variant:`outline`,intent:`danger`,disabled:!!d,onClick:()=>e.onDeleteVendorRequest(h)}),(0,u.jsxs)(`div`,{className:`flex gap-2`,children:[(0,u.jsx)(P,{label:`Cancel`,variant:`outline`,disabled:!!d||!f,onClick:e.onCancelEdit}),(0,u.jsx)(P,{label:a?`Create vendor`:`Save changes`,disabled:!!d||!f,onClick:()=>e.onSaveVendor({vendor:l,isNew:a})})]})]})]})]}):(0,u.jsx)(pf,{status:{state:`empty`,title:`No vendor selected`,message:`Add the first vendor or select a vendor from the list.`},action:(0,u.jsx)(P,{label:`Add first vendor`,onClick:e.onAddVendorClick})})}),(0,u.jsxs)(`aside`,{className:`order-1 flex w-full min-h-0 min-w-0 flex-col rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm md:order-2 md:h-full`,"aria-label":`Vendor list`,children:[(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,u.jsxs)(v,{as:`h2`,variant:`bold`,children:[`Vendors (`,n.length,`)`]}),(0,u.jsx)(P,{label:`Add vendor`,size:`sm`,disabled:p,onClick:e.onAddVendorClick})]}),(0,u.jsx)(`div`,{className:`mt-4`,children:(0,u.jsx)(Qo,{value:e.searchValue,ariaLabel:`Search vendors`,placeholder:`Search name or city`,onChange:t=>e.onSearchChange({value:t.target.value}),onClear:()=>e.onSearchChange({value:``})})}),(0,u.jsxs)(`div`,{className:`mt-4 flex min-h-0 max-h-96 flex-col gap-2 overflow-y-auto md:max-h-none md:flex-1`,children:[g.map(n=>(0,u.jsx)(P,{variant:n.id===l?.id?`solid`:`outline`,fullWidth:!0,buttonAlignment:`justify-start`,"aria-pressed":n.id===l?.id,disabled:p,onClick:()=>e.onVendorSelect({localityId:t.id,vendorId:n.id}),children:(0,u.jsxs)(`span`,{className:`min-w-0 text-left`,children:[(0,u.jsx)(v,{as:`span`,variant:`free`,className:`block font-bold`,children:n.name}),(0,u.jsxs)(v,{as:`span`,variant:`free`,className:`block text-xs`,children:[n.city,` · `,n.country]})]})},n.id)),g.length?null:(0,u.jsx)(v,{variant:`caption`,children:n.length?`No matching vendors.`:`No vendors yet.`})]})]})]}):(0,u.jsx)(pf,{status:c,onRetryClick:e.onRetryClick}),(0,u.jsxs)(Hc,{open:!!(e.deleteOpen&&l),title:`Delete vendor?`,onClose:()=>{e.deletePending||e.onDeleteVendorCancel()},children:[(0,u.jsxs)(v,{variant:`body`,children:[`Remove `,l?.name,` from `,t.locale,`? Other localities will not be changed.`]}),e.deleteError?(0,u.jsx)(v,{role:`alert`,variant:`body`,children:e.deleteError}):null,(0,u.jsxs)(`div`,{className:`mt-5 flex justify-end gap-3`,children:[(0,u.jsx)(P,{label:`Keep vendor`,variant:`outline`,disabled:e.deletePending,onClick:e.onDeleteVendorCancel}),(0,u.jsx)(P,{label:e.deletePending?`Deleting...`:`Confirm delete`,intent:`danger`,disabled:e.deletePending,onClick:()=>e.onDeleteVendorConfirm(h)})]})]})]})},Xf=({shellProps:e,items:t,emptyTitle:n=`No favorite products yet`,emptyMessage:r=`Save products you love and they will appear here.`,browseLabel:i=`Browse products`,onFavoriteClick:a,onBrowseClick:o})=>(0,u.jsxs)($u,{...e,activeTabId:`favorites`,children:[(0,u.jsx)(v,{as:`h1`,variant:`free`,className:`font-rockwell text-3xl text-primary`,children:`Favorites`}),(0,u.jsx)(v,{className:`mt-2 text-secondaryActive`,children:`Your saved products, all in one place.`}),t.length>0?(0,u.jsx)(`section`,{"aria-label":`Favorite products`,className:`mt-8 grid grid-cols-1 gap-6 md:grid-cols-3`,children:t.map(e=>(0,u.jsx)(Ec,{...e,onSwatchClick:()=>a({item:e})},e.id))}):(0,u.jsxs)(`section`,{className:`mt-6 flex min-h-72 flex-col items-center justify-center rounded-lg border border-borderTertiary bg-white p-8 text-center`,children:[(0,u.jsx)(S,{iconType:`fa-solid`,iconName:`heart`,alt:``,size:`4xl`,color:`secondaryHover`}),(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`mt-5 font-rockwell text-2xl text-primary`,children:n}),(0,u.jsx)(v,{className:`mt-2 text-secondaryActive`,children:r}),(0,u.jsx)(`div`,{className:`mt-6`,children:(0,u.jsx)(P,{label:i,intent:`accent`,iconType:`fa-solid`,iconName:`arrow-right`,iconAlt:``,iconPosition:`right`,onClick:o})})]})]}),Zf=({shellProps:e,personalInformation:t,password:n,shippingAddresses:r,billingAddresses:i,onAddAddressClick:a,onEditAddressClick:o,onRemoveAddressClick:s})=>{let c=t.errors??{},l=n.errors??{};return(0,u.jsxs)($u,{...e,activeTabId:`account-settings`,children:[(0,u.jsx)(`h1`,{className:`sr-only`,children:`Account Settings`}),(0,u.jsxs)(`section`,{"aria-labelledby":`personal-information-heading`,children:[(0,u.jsx)(v,{id:`personal-information-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Personal Information`}),(0,u.jsxs)(`div`,{className:`mt-4 rounded-lg border border-borderTertiary bg-white p-6`,children:[(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-5 md:grid-cols-2`,children:[(0,u.jsx)($,{id:`customer-first-name`,name:`firstName`,label:`First name`,value:t.firstName,autoComplete:`given-name`,hasError:!!c.firstName,errorMessage:c.firstName,onChange:t.onFirstNameChange}),(0,u.jsx)($,{id:`customer-last-name`,name:`lastName`,label:`Last name`,value:t.lastName,autoComplete:`family-name`,hasError:!!c.lastName,errorMessage:c.lastName,onChange:t.onLastNameChange}),(0,u.jsx)($,{id:`customer-email`,name:`email`,type:`email`,label:`Email address`,value:t.email,autoComplete:`email`,hasError:!!c.email,errorMessage:c.email,onChange:t.onEmailChange}),(0,u.jsx)($,{id:`customer-phone-number`,name:`phoneNumber`,type:`tel`,label:`Phone number`,placeholder:`Phone number`,value:t.phoneNumber??``,autoComplete:`tel`,hasError:!!c.phoneNumber,errorMessage:c.phoneNumber,onChange:t.onPhoneNumberChange})]}),(0,u.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,u.jsx)(P,{label:`Save changes`,intent:`accent`,disabled:t.saveDisabled,onClick:t.onSaveClick})})]})]}),(0,u.jsxs)(`section`,{className:`mt-10`,"aria-labelledby":`change-password-heading`,children:[(0,u.jsx)(v,{id:`change-password-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Change Password`}),(0,u.jsxs)(`div`,{className:`mt-4 rounded-lg border border-borderTertiary bg-white p-6`,children:[(0,u.jsxs)(`div`,{className:`flex max-w-xl flex-col gap-5`,children:[(0,u.jsx)($,{id:`customer-current-password`,name:`currentPassword`,type:`password`,label:`Current password`,placeholder:`Enter current password`,value:n.currentPassword,autoComplete:`current-password`,hasError:!!l.currentPassword,errorMessage:l.currentPassword,onChange:n.onCurrentPasswordChange}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)($,{id:`customer-new-password`,name:`newPassword`,type:`password`,label:`New password`,placeholder:`Enter new password`,value:n.newPassword,autoComplete:`new-password`,hasError:!!l.newPassword,errorMessage:l.newPassword,onChange:n.onNewPasswordChange}),n.passwordRequirements?(0,u.jsx)(v,{variant:`caption`,className:`mt-2`,children:n.passwordRequirements}):null]}),(0,u.jsx)($,{id:`customer-confirm-password`,name:`confirmPassword`,type:`password`,label:`Confirm new password`,placeholder:`Repeat new password`,value:n.confirmPassword,autoComplete:`new-password`,hasError:!!l.confirmPassword,errorMessage:l.confirmPassword,onChange:n.onConfirmPasswordChange})]}),(0,u.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,u.jsx)(P,{label:`Update password`,intent:`accent`,disabled:n.submitDisabled,onClick:n.onSubmitClick})})]})]}),(0,u.jsxs)(`section`,{className:`mt-10`,"aria-labelledby":`shipping-addresses-heading`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsx)(v,{id:`shipping-addresses-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Shipping Addresses`}),(0,u.jsx)(P,{label:`Add shipping address`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,intent:`accent`,onClick:()=>a({addressType:`shipping`})})]}),r.length>0?(0,u.jsx)(`div`,{className:`mt-4 grid grid-cols-1 gap-6 md:grid-cols-2`,children:r.map(e=>(0,u.jsx)(Dc,{address:e,onEditClick:({address:e})=>o({addressType:`shipping`,address:e}),onRemoveClick:({address:e})=>s({addressType:`shipping`,address:e})},e.id))}):(0,u.jsx)(v,{className:`mt-4 text-secondaryActive`,children:`No shipping addresses have been saved.`})]}),(0,u.jsxs)(`section`,{className:`mt-10 border-t border-borderTertiary pt-10`,"aria-labelledby":`billing-addresses-heading`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-center md:justify-between`,children:[(0,u.jsx)(v,{id:`billing-addresses-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Billing Addresses`}),(0,u.jsx)(P,{label:`Add billing address`,iconType:`fa-solid`,iconName:`plus`,iconAlt:``,intent:`accent`,onClick:()=>a({addressType:`billing`})})]}),i.length>0?(0,u.jsx)(`div`,{className:`mt-4 grid grid-cols-1 gap-6 md:grid-cols-2`,children:i.map(e=>(0,u.jsx)(Dc,{address:e,onEditClick:({address:e})=>o({addressType:`billing`,address:e}),onRemoveClick:({address:e})=>s({addressType:`billing`,address:e})},e.id))}):(0,u.jsx)(v,{className:`mt-4 text-secondaryActive`,children:`No billing addresses have been saved.`})]})]})},Qf=({shellProps:e,status:t,period:n,statusOptions:r,periodOptions:i,orders:a,totalOrderCount:o,hasMoreOrders:s=!1,isLoadingMore:c=!1,seeMoreLabel:l=`See more orders`,searchDisabled:d=!1,emptyMessage:f=`No orders match your current filters.`,onStatusChange:p,onPeriodChange:m,onSearchClick:h,onOrderClick:g,onSeeMoreClick:_})=>{let y=s&&!!_;return(0,u.jsxs)($u,{...e,activeTabId:`order-history`,children:[(0,u.jsx)(v,{as:`h1`,variant:`free`,className:`font-rockwell text-3xl text-primary`,children:`Order History`}),(0,u.jsx)(`section`,{"aria-label":`Search orders`,className:`mt-5 rounded-lg border border-borderTertiary bg-white p-6`,children:(0,u.jsxs)(`div`,{className:`grid grid-cols-1 gap-5 md:grid-cols-3 md:items-end`,children:[(0,u.jsxs)(`label`,{className:`flex flex-col gap-2 text-sm font-semibold text-primary`,children:[`Status`,(0,u.jsx)(os,{id:`customer-order-status`,name:`status`,value:t,options:r,onChange:p})]}),(0,u.jsxs)(`label`,{className:`flex flex-col gap-2 text-sm font-semibold text-primary`,children:[`Period`,(0,u.jsx)(os,{id:`customer-order-period`,name:`period`,value:n,options:i,onChange:m})]}),(0,u.jsx)(P,{label:`Search orders`,iconType:`fa-solid`,iconName:`magnifying-glass`,iconAlt:``,intent:`accent`,disabled:d,onClick:h})]})}),a.length>0?(0,u.jsxs)(`section`,{"aria-label":`Orders`,className:`mt-6 space-y-4`,children:[(0,u.jsxs)(`div`,{className:`hidden grid-cols-5 gap-4 rounded-lg bg-tertiaryActive px-6 py-3 text-sm font-semibold text-primary md:grid`,children:[(0,u.jsx)(`span`,{children:`Order`}),(0,u.jsx)(`span`,{children:`Date`}),(0,u.jsx)(`span`,{children:`Status`}),(0,u.jsx)(`span`,{children:`Total`}),(0,u.jsx)(`span`,{children:`Tracking`})]}),a.map(e=>(0,u.jsxs)(`article`,{className:`grid grid-cols-1 gap-4 rounded-lg border border-borderTertiary bg-white p-6 md:grid-cols-5 md:items-center`,children:[(0,u.jsxs)(`button`,{type:`button`,className:`text-left font-semibold text-accent hover:underline`,onClick:()=>g({order:e}),children:[`#`,e.orderNumber]}),(0,u.jsx)(`span`,{className:`text-sm text-primary`,children:e.date}),(0,u.jsx)(`span`,{className:`text-sm text-primary`,children:e.status}),(0,u.jsx)(`span`,{className:`text-sm font-semibold text-primary`,children:e.total}),(0,u.jsx)(`span`,{className:`text-sm text-primary`,children:e.trackingNumber??`Not available`})]},e.id)),y?(0,u.jsxs)(`div`,{className:`flex flex-col items-center gap-3 pt-2`,children:[o?(0,u.jsxs)(v,{variant:`caption`,children:[`Showing `,a.length,` of `,o,` orders`]}):null,(0,u.jsx)(P,{label:c?`Loading orders…`:l,variant:`outline`,intent:`primary`,disabled:c,onClick:_})]}):null]}):(0,u.jsx)(`section`,{className:`mt-6 rounded-lg border border-borderTertiary bg-white p-10 text-center`,children:(0,u.jsx)(v,{className:`text-secondaryActive`,children:f})})]})},$f=(e,t)=>(0,u.jsxs)(`section`,{"aria-label":e,children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`font-semibold text-primary`,children:e}),(0,u.jsxs)(`address`,{className:`mt-3 not-italic`,children:[(0,u.jsx)(v,{variant:`free`,className:`text-sm text-primary`,children:t.name}),t.lines.map((e,t)=>(0,u.jsx)(v,{variant:`free`,className:`mt-1 text-sm text-primary`,children:e},`${e}-${t}`))]})]}),ep=({shellProps:e,orderNumber:t,orderDate:n,status:r,statusTone:i=`neutral`,projectName:a,fulfillmentGroups:o,shippingAddress:s,billingAddress:c,paymentMethod:l,summaryRows:d,backLabel:f=`Back to order history`,invoiceLabel:p=`Download invoice`,helpLabel:m=`Get help with this order`,onBackClick:h,onInvoiceClick:g,onHelpClick:_,onProductClick:y,onTrackingClick:b})=>(0,u.jsxs)($u,{...e,activeTabId:`order-history`,children:[(0,u.jsx)(`div`,{className:`flex justify-start`,children:(0,u.jsx)(P,{label:f,iconType:`fa-solid`,iconName:`arrow-left`,iconAlt:``,variant:`link`,intent:`primary`,size:`sm`,onClick:h})}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(kc,{orderNumber:t,orderDate:n,status:r,statusTone:i,projectName:a,invoiceLabel:p,onInvoiceClick:g})}),(0,u.jsxs)(`section`,{className:`mt-8`,"aria-labelledby":`order-items-heading`,children:[(0,u.jsx)(v,{id:`order-items-heading`,as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Items`}),(0,u.jsx)(`div`,{className:`mt-4 space-y-8`,children:o.map(e=>(0,u.jsxs)(`section`,{"aria-labelledby":`${e.id}-heading`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 border-b border-borderTertiary pb-3 md:flex-row md:items-end md:justify-between`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(v,{id:`${e.id}-heading`,as:`h3`,variant:`free`,className:`font-rockwell text-xl text-primary`,children:e.title}),e.facility?(0,u.jsxs)(v,{className:`mt-1 text-sm text-secondaryActive`,children:[`Ships from `,e.facility]}):null]}),(0,u.jsxs)(`div`,{className:`text-left md:text-right`,children:[(0,u.jsxs)(v,{className:`text-sm font-semibold text-primary`,children:[e.shippingMethod.name,` · `,e.shippingCost]}),e.shippingMethod.estimatedDelivery?(0,u.jsx)(v,{className:`mt-1 text-sm text-secondaryActive`,children:e.shippingMethod.estimatedDelivery}):null]})]}),(0,u.jsx)(`div`,{className:`mt-4 space-y-4`,children:e.items.map(e=>(0,u.jsx)(jc,{item:e,onProductClick:y,onTrackingClick:b},e.id))})]},e.id))})]}),(0,u.jsxs)(`div`,{className:`mt-8 grid grid-cols-1 gap-6 md:grid-cols-2`,children:[(0,u.jsxs)(`section`,{className:`rounded-lg border border-borderTertiary bg-white p-5 md:p-6`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Delivery details`}),(0,u.jsx)(`div`,{className:`mt-5`,children:$f(`Shipping address`,s)}),c||l?(0,u.jsxs)(`div`,{className:`mt-6 grid grid-cols-1 gap-6 border-t border-borderTertiary pt-6 md:grid-cols-2`,children:[c?$f(`Billing address`,c):null,l?(0,u.jsxs)(`section`,{"aria-label":`Payment method`,children:[(0,u.jsx)(v,{as:`h3`,variant:`free`,className:`font-semibold text-primary`,children:`Payment method`}),(0,u.jsx)(v,{className:`mt-3 text-sm text-primary`,children:l})]}):null]}):null]}),(0,u.jsxs)(`section`,{className:`rounded-lg bg-tertiaryActive p-5 md:p-6`,children:[(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`font-rockwell text-2xl text-primary`,children:`Order total`}),(0,u.jsx)(`dl`,{className:`mt-5 space-y-4`,children:d.map((e,t)=>(0,u.jsxs)(`div`,{className:`flex items-center justify-between gap-6 ${e.isEmphasized?`border-t border-borderTertiary pt-4`:``}`,children:[(0,u.jsx)(`dt`,{className:e.isEmphasized?`font-semibold text-primary`:`text-sm text-primary`,children:e.label}),(0,u.jsx)(`dd`,{className:`${e.isEmphasized?`font-semibold text-primary`:`text-sm text-primary`} ${e.tone===`accent`?`text-accent`:``}`,children:e.value})]},`${e.label}-${t}`))})]})]}),_?(0,u.jsx)(`div`,{className:`mt-8 flex justify-end`,children:(0,u.jsx)(P,{label:m,variant:`outline`,intent:`primary`,onClick:_})}):null]}),tp=(e,t,n)=>e.map(e=>({...e,options:e.options.map(e=>e.id===t?{...e,checked:n}:e)})),np=({title:e,resultsHeading:t=`Documents`,description:n,documentInfoCollectionProps:r,filterSections:i,searchBarProps:a,filterPanelHeader:o=`Filters`,appliedOptionsHeader:s=`Applied Filters`,appliedOptionsEmptyLabel:l=`No filters selected`,clearAllLabel:d=`Clear All`,applyFiltersLabel:f=`Apply Filters`,mobileFilterLabel:p=`Filters`,onFilterChange:m,optInModalProps:h})=>{let[g,_]=c.default.useState(!1),y=c.default.useId(),b=i.flatMap(e=>e.options.filter(e=>e.checked).map(e=>({id:e.id,label:e.label}))),x=(e,t)=>m?.(e,t),S=()=>x(i.map(e=>({...e,options:e.options.map(e=>({...e,checked:!1}))})),{action:`clear-all`}),C={header:o,headerIcon:`filter`,sections:i.map(e=>({...e,type:`checkbox`})),appliedOptions:{header:s,emptyStateLabel:l,clearAllLabel:d,optionsList:b,onRemoveOption:({id:e})=>x(tp(i,e,!1),{action:`remove`,optionId:e,checked:!1}),onRemoveAll:S},resetLabel:d,applyFiltersLabel:f,onResetClick:S,onApplyFiltersClick:()=>_(!1)};return(0,u.jsxs)(U,{spacing:`paddedSection`,className:`pt-4 md:px-4`,children:[(0,u.jsxs)(`header`,{className:`pb-3 md:flex md:items-center md:gap-8 border-b-1 border-primary`,children:[(0,u.jsxs)(`div`,{className:`min-w-0 md:flex-1`,children:[(0,u.jsx)(v,{as:`h1`,variant:`free`,className:`text-3xl text-primary md:text-4xl`,children:e}),(0,u.jsx)(v,{variant:`body`,className:`mt-1 text-sm text-tertiary`,children:n})]}),(0,u.jsx)(`div`,{className:`${g?`hidden`:`block`} mt-5 min-w-0 md:mt-0 md:flex md:flex-1 md:justify-end`,children:(0,u.jsx)(Ps,{searchBarProps:a})})]}),(0,u.jsxs)(`div`,{className:`mt-8 md:mt-10 md:flex md:items-start md:gap-8`,children:[i.length>0?(0,u.jsx)(`aside`,{className:`hidden md:block md:shrink-0`,"aria-label":o,children:(0,u.jsx)(Yu,{...C,onCheckboxChange:({id:e,checked:t})=>x(tp(i,e,t),{action:`toggle`,optionId:e,checked:t})})}):null,g&&i.length>0?(0,u.jsx)(`div`,{id:y,role:`dialog`,"aria-modal":`true`,"aria-label":p,className:`md:hidden`,children:(0,u.jsx)(Yu,{...C,sections:i.map(e=>({...e,type:`checkbox`,options:e.options.map(e=>({...e,id:`${y}-${e.id}`}))})),onCheckboxChange:({id:e,checked:t})=>{let n=e.slice(y.length+1);x(tp(i,n,t),{action:`toggle`,optionId:n,checked:t})}})}):null,(0,u.jsxs)(`div`,{className:`${g?`hidden`:`block`} min-w-0 flex-1 md:block`,children:[i.length>0?(0,u.jsx)(`div`,{className:`mb-4 md:hidden`,children:(0,u.jsx)(P,{variant:`solid`,intent:`neutral`,iconName:`sliders`,iconType:`fa-solid`,iconPosition:`left`,label:p,size:`sm`,"aria-expanded":g,"aria-controls":y,onClick:()=>_(!0)})}):null,(0,u.jsx)(`div`,{className:`flex items-center border-b border-secondaryHover py-4`,children:(0,u.jsx)(v,{as:`h2`,variant:`free`,className:`font-sans text-lg font-normal text-primary`,children:t})}),(0,u.jsx)(`div`,{children:(0,u.jsx)(Iu,{...r,layoutVariant:`compact`})})]})]}),(0,u.jsx)(Wc,{...h})]})};exports.AccountAccessPanel=Qu,exports.AdminAuthStatusTemplate=Cf,exports.AdminBackgroundJobTray=Bc,exports.AdminDashboardTemplate=gf,exports.AdminDataIssuesSourceTemplate=jf,exports.AdminDataReportTemplate=Ef,exports.AdminImportDataIssuesTemplate=Lf,exports.AdminImportDataReviewTemplate=Vf,exports.AdminImportDataSourceTemplate=Ff,exports.AdminPageTemplateShell=uf,exports.AdminProductGuidesTemplate=Gf,exports.AdminRegionSelector=Ko,exports.AdminSideNav=Nc,exports.AdminUsersTemplate=bf,exports.AnnouncementBar=ml,exports.ArticleBanner=uu,exports.ArticleBannerContent=Xs,exports.ArticleLandingPageTemplate=yd,exports.BpcsCartConfirmationTemplate=qd,exports.BpcsCartSamplesTemplate=Qd,exports.BpcsCartShippingTemplate=Zd,exports.BrandNavBar=tl,exports.Breadcrumbs=hl,exports.BusinessInfoCard=fe,exports.Button=P,exports.CallToActionHero=Dl,exports.CallToActionHeroContent=Zs,exports.CarouselArrowControls=Fs,exports.CarouselDots=Is,exports.CartItemCard=he,exports.CategoryPageTemplate=kd,exports.ClickableCard=K,exports.ColourMatchingChart=uc,exports.ColumnBanner=Pl,exports.ColumnCarouselCard=Lo,exports.CommerceSyncPanel=qu,exports.ContentCarousel=du,exports.ContentContainer=U,exports.ContentGrid=G,exports.CountrySelector=Wo,exports.CustomerAccountFavoritesTemplate=Xf,exports.CustomerAccountOrderDetailTemplate=ep,exports.CustomerAccountOrderHistoryTemplate=Qf,exports.CustomerAccountSettingsTemplate=Zf,exports.CustomerAccountShell=$u,exports.CustomerAddressCard=Dc,exports.DataReportCollection=Nu,exports.DecorSummaryCard=Te,exports.DecorSummaryCollection=Pu,exports.DocumentInfoCard=rc,exports.DocumentInfoCollection=Iu,exports.DocumentLinkCard=ic,exports.DocumentResultsTemplate=np,exports.DropdownFilter=Ms,exports.DynamicForm=xs,exports.EcommCartConfirmationTemplate=ef,exports.EcommCartPaymentTemplate=rf,exports.EcommCartShippingTemplate=af,exports.EcommCartSummaryTemplate=lf,exports.EmbeddedVideo=z,exports.EmbeddedVideoCard=nc,exports.FaqCard=ac,exports.FaqCardCollection=yu,exports.FeatureCard=Ro,exports.FeatureCardCollection=Rl,exports.FeaturedArticleBanner=Ol,exports.FeaturedArticleBannerContent=Qs,exports.FeaturedProductCard=zo,exports.FeaturedProductsCarousel=_u,exports.FilterBar=As,exports.FilterBarButton=js,exports.FlowRow=le,exports.Footer=Sl,exports.FormicaText=v,exports.GalleryTemplate=jd,exports.Icon=S,exports.Image=L,exports.ImageCard=fu,exports.ImageOverlayCard=tc,exports.ImageOverlayGrid=Su,exports.InfoCard=oc,exports.Interactive3DViewer=B,exports.LocalizationMarketCollection=Tu,exports.LocalizationStatusCard=Cc,exports.LocationCard=Uo,exports.LocationCardCollection=wu,exports.LocationMap=Hu,exports.LoginTemplate=zd,exports.MarketReadinessBrowseTemplate=wf,exports.MarketReadinessItemSkuSection=Os,exports.MarketReadinessRangeSelector=qo,exports.MarketReadinessRangeTemplate=Tf,exports.MarketReadinessSampleCard=ye,exports.MarketReadinessSaveStatusIndicator=Ce,exports.MarketReadinessSkuCard=xe,exports.MarketReadinessStatusDots=_e,exports.MarketReadinessTemplate=hf,exports.MarketReadinessVariantAvailabilitySection=ks,exports.MarketReadinessVariantOptions=Jo,exports.Modal=Hc,exports.MoreInfoHighlightsCard=sc,exports.MoreInfoHighlightsCollection=zl,exports.OptInModal=Wc,exports.OrderDetailHeaderCard=kc,exports.OrderItemDetailCard=jc,exports.ProResourceTemplate=Pd,exports.ProductContactActions=ge,exports.ProductDetailPageTemplate=_d,exports.PromoBanner=Cl,exports.QuantityCheckoutCard=fc,exports.RangeSummaryCard=ze,exports.RangeSummaryCollection=Fu,exports.RecentArticleCard=bc,exports.RecentArticleCollection=vu,exports.ResilientImage=V,exports.SalesforceCartShippingTemplate=$d,exports.SalesforceCustomerDetailsForm=Vl,exports.SampleOrderSummaryPanel=Bl,exports.SearchCombobox=$o,exports.SearchFilter=Ps,exports.SearchResultsTemplate=Rd,exports.SingleButtonCard=xc,exports.SocialLinkRow=ec,exports.Spinner=w,exports.StandardBannerContainer=Tl,exports.StandardCarousel=qs,exports.StandardCopyBannerContent=$s,exports.StandardCopyHero=lu,exports.SwatchCard=Ec,exports.SwatchPurchasePanel=cu,exports.TextCard=hu,exports.Textarea=ne,exports.TopNavAccountDrawer=ul,exports.TopNavActions=sl,exports.TopNavBar=pl,exports.TopNavMegaMenu=nl,exports.TopNavSearchResults=al,exports.VendorImportSection=Kf,exports.VerticalCheckboxListCollection=Yu,exports.VerticalColorSwatchList=Ys,exports.WarrantyCard=gu,exports.WhereToBuyDetailPage=Yf,exports.WhereToBuyLandingPage=qf,exports.WhereToBuySearchBanner=El,exports.WhereToBuyTemplate=Vd,exports.applySketchfabTexture=h,exports.connectSketchfabViewer=_,exports.setSketchfabAppearance=p,exports.userTypeOptions=Xu;
|