efficient-storefront-blocks 0.130.12 → 0.130.13
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/CHANGELOG.md +14 -0
- package/dist/chunks/EditorPreviewCheckout-DZWAHBAZ.js +4 -0
- package/dist/index.js +2 -2
- package/dist/render/components/FormBlock.js +1 -1
- package/dist/render/components/checkout/checkout-parts.js +1 -1
- package/dist/render/components/checkout/checkout-state.d.ts +3 -1
- package/dist/render/components/checkout/checkout-state.js +3 -3
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/package.json +1 -1
- package/dist/chunks/EditorPreviewCheckout-QA7Z7CGI.js +0 -4
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ Minimum version required to store current data is: `+a+`.
|
|
|
10
10
|
@keyframes storefront-cart-fade { from { opacity: 0 } to { opacity: 1 } }
|
|
11
11
|
@keyframes storefront-cart-slide { from { transform: translateX(40px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
|
|
12
12
|
${x?` @keyframes storefront-cart-slide-left { from { transform: translateX(-40px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
|
|
13
|
-
`:""}`}),d]})]})}let g=x=>{!m||!Tfe(e,!1)||x.target===x.currentTarget&&p()},h=e.height==="full",w=e.fullWidth||h,b=DGe(e),k=ND("div",{ref:c,tabIndex:-1,"data-popup-panel":"",className:"relative flex flex-col bg-bg text-fg outline-none",style:{width:e.fullWidth?"100%":`min(${e.width}px, 100%)`,height:h?"100%":void 0,maxHeight:e.fullWidth&&!h||b.place==="outside"?`calc(100% - ${LD}px)`:"100%",borderRadius:w?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[b.place!=="none"?wg("button",{type:"button","aria-label":"Close",onClick:r?void 0:p,"data-popup-close":b.place,"data-popup-close-until":b.until,className:"absolute z-[5] flex h-[38px] w-[38px] items-center justify-center border border-line bg-bg font-mono text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-fg",style:b.place==="outside"?{top:-HGe,right:0}:{top:12,right:12},children:"\xD7"}):null,b.until?wg("style",{children:`@container popup-frame (min-width: ${b.until+1}px){[data-popup-close-until="${b.until}"]{display:none}}`}):null,wg("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return wg("div",{role:a||r?"dialog":"region","aria-modal":m?!0:void 0,"aria-label":s,"data-popup-frame":r?"inline":"live",onClick:g,className:r?"relative flex min-h-[100vh] w-full":"fixed inset-0 z-[90] flex",style:{...BGe[e.placement],background:Sfe(e.tintColor,e.tintOpacity),padding:w?0:b.place==="outside"&&e.placement.startsWith("top")?`${24+LD}px 24px 24px`:24,...b.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:k})}var zGe=25.4,q1=400,sO=152,WGe=58,Efe=sO*Math.cos(WGe*Math.PI/180),UGe=14,GGe=q1/2,$Ge={sectionWidth:225,aspectRatio:60,rimDiameter:17};function _fe(e){let t=hc(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:$Ge}function Cfe(e){let t=e.rimDiameter*zGe/2,o=t+e.sectionWidth*e.aspectRatio/100,n=sO*(e.sectionWidth/o),r=t/o;return{cy:GGe,rx:Efe,ry:sO,cxf:q1/2-n/2-UGe,dx:n,rimRx:Efe*r,rimRy:sO*r}}var ro=e=>e.toFixed(1);function lO(e,t,o,n=!1){let r=e.cxf+t*e.dx,[a,i]=n?[e.cy+e.ry,e.cy-e.ry]:[e.cy-e.ry,e.cy+e.ry];return`M${ro(r)} ${ro(a)} A${ro(e.rx)} ${ro(e.ry)} 0 0 ${o} ${ro(r)} ${ro(i)}`}function FD(e,t,o){let n=e.cxf+t*e.dx,r=e.cxf+o*e.dx,a=e.cy-e.ry,i=e.cy+e.ry;return`M${ro(n)} ${ro(a)} L${ro(r)} ${ro(a)} A${ro(e.rx)} ${ro(e.ry)} 0 0 1 ${ro(r)} ${ro(i)} L${ro(n)} ${ro(i)} A${ro(e.rx)} ${ro(e.ry)} 0 0 0 ${ro(n)} ${ro(a)} Z`}function iO(e,t,o){let n=o*Math.PI;return[e.cxf+t*e.dx+e.rx*Math.sin(n),e.cy-e.ry*Math.cos(n)]}function Rfe(e,t,o,n,r){let[a,i]=iO(e,t,n),[s,l]=iO(e,t,r),[d,c]=iO(e,o,r),[p,m]=iO(e,o,n);return`M${ro(a)} ${ro(i)} A${ro(e.rx)} ${ro(e.ry)} 0 0 1 ${ro(s)} ${ro(l)} L${ro(d)} ${ro(c)} A${ro(e.rx)} ${ro(e.ry)} 0 0 0 ${ro(p)} ${ro(m)} L${ro(a)} ${ro(i)} Z`}var Pfe=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],KGe={COM:[{f:[0,.115]},{f:[.145,.26]},{f:[.29,.405]},{f:[.435,.55]},{f:[.58,.695]},{f:[.725,.84]},{f:[.87,1]}],P:[{f:[0,.17],blocks:{count:9,gap:.34}},{f:[.2,.38]},{f:[.42,.58]},{f:[.62,.8]},{f:[.83,1],blocks:{count:9,gap:.34,phase:.5}}],HP:[{f:[0,.3]},{f:[.34,.52]},{f:[.56,.7]},{f:[.74,1],blocks:{count:16,gap:.18}}],UHP:[{f:[0,.34]},{f:[.4,.56]},{f:[.62,1]}],SUV:[{f:[0,.16],blocks:{count:7,gap:.4}},{f:[.2,.36],blocks:{count:11,gap:.26,phase:.5}},{f:[.4,.6]},{f:[.64,.8],blocks:{count:11,gap:.26,phase:.5}},{f:[.84,1],blocks:{count:7,gap:.4}}],LT:[{f:[0,.22],blocks:{count:11,gap:.26}},{f:[.26,.48],blocks:{count:11,gap:.26,phase:.5}},{f:[.52,.74],blocks:{count:11,gap:.26}},{f:[.78,1],blocks:{count:11,gap:.26,phase:.5}}],AT:[{f:[0,.23],blocks:{count:6,gap:.46}},{f:[.29,.5],blocks:{count:6,gap:.46,phase:.5}},{f:[.56,.77],blocks:{count:6,gap:.46}},{f:[.83,1],blocks:{count:6,gap:.46,phase:.5}}],MT:[{f:[0,.29],blocks:{count:4,gap:.58}},{f:[.36,.64],blocks:{count:4,gap:.58,phase:.5}},{f:[.71,1],blocks:{count:4,gap:.58}}]},VGe=[["ultra high performance","UHP"],["uhp","UHP"],["high performance","HP"],["hp","HP"],["performance","HP"],["sport","HP"],["mud terrain","MT"],["mud","MT"],["mt","MT"],["all terrain","AT"],["at","AT"],["light truck","LT"],["lt","LT"],["commercial","COM"],["com","COM"],["van","COM"],["cargo","COM"],["suv","SUV"],["4x4","SUV"],["crossover","SUV"],["cuv","SUV"],["passenger","P"],["touring","P"],["highway","P"],["p","P"]];function Ofe(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return Pfe;for(let[o,n]of VGe)if(t.includes(` ${o} `))return KGe[n];return Pfe}var dO="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as YGe}from"react";function Ka(e,t=/:/g){let o=YGe().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as X1,jsx as jt,jsxs as Lc}from"react/jsx-runtime";var vs={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},jGe=[.8,.52,.24],Nfe=.4,Lfe=.88,Afe=.3,Ife=5,Ffe=.3,Bfe=.84,qGe=7,bo=e=>Math.round(e*10)/10;function BD({size:e,type:t,className:o}){let n=Ka("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=Cfe(_fe(e)),i=FD(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Lc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${q1} ${q1}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[jt("title",{children:s}),Lc("defs",{children:[jt(ZGe,{id:r}),jt("clipPath",{id:r.crown,children:jt("path",{d:i})})]}),jt("ellipse",{cx:bo(a.cxf+a.dx/2),cy:bo(a.cy+a.ry-4),rx:bo(a.dx*1.5),ry:16,fill:`url(#${r.shadow})`}),jt(JGe,{g:a,id:r}),jt(QGe,{g:a,id:r}),jt("path",{d:i,fill:`url(#${r.tread})`}),jt("g",{clipPath:`url(#${r.crown})`,children:Ofe(t).map(l=>jt(XGe,{g:a,column:l},l.f[0]))}),jt("path",{d:lO(a,0,0,!0),stroke:"currentColor",strokeOpacity:vs.shoulder,strokeWidth:1.2}),jt("path",{d:lO(a,1,1),stroke:"currentColor",strokeOpacity:vs.silhouette,strokeWidth:1.4})]})}function XGe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Lc(X1,{children:[jt("path",{d:FD(e,o,n),fill:"currentColor",fillOpacity:vs.rib}),jt("path",{d:lO(e,o,1),stroke:"currentColor",strokeOpacity:vs.grooveWall,strokeWidth:1})]});let{count:r,gap:a,phase:i=0}=t.blocks,s=1/r,l=[];for(let d=-1;d<=r;d+=1){let c=Math.max((d+i+a/2)*s,0),p=Math.min((d+i+1-a/2)*s,1);p-c>s*.15&&l.push([c,p])}return jt(X1,{children:l.map(([d,c])=>jt("path",{d:Rfe(e,o,n,d,c),fill:"currentColor",fillOpacity:vs.rib,stroke:"currentColor",strokeOpacity:vs.grooveWall,strokeWidth:1},d))})}function ZGe({id:e}){return Lc(X1,{children:[Lc("linearGradient",{id:e.tread,x1:"0",y1:"0",x2:"1",y2:"0",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.07}),jt("stop",{offset:"0.14",stopColor:"currentColor",stopOpacity:.24}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.18}),jt("stop",{offset:"0.84",stopColor:"currentColor",stopOpacity:.1}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.05})]}),Lc("linearGradient",{id:e.wall,x1:"0.15",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.28}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.17}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.08})]}),Lc("linearGradient",{id:e.rim,x1:"0.1",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.46}),jt("stop",{offset:"0.5",stopColor:"currentColor",stopOpacity:.26}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.12})]}),Lc("radialGradient",{id:e.shadow,children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function JGe({g:e,id:t}){let o=e.rimRy/e.ry,n=a=>o+(1-o)*a,r=Math.max(6,(e.ry-e.rimRy)*.3);return Lc(X1,{children:[jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx),ry:bo(e.ry),fill:`url(#${t.wall})`}),jGe.map((a,i)=>{let s=n(a);return jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*s),ry:bo(e.ry*s),stroke:"currentColor",strokeOpacity:vs.relief[i],strokeWidth:1},a)}),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*n(Nfe)),ry:bo(e.ry*n(Nfe)),stroke:"currentColor",strokeOpacity:vs.lettering,strokeWidth:bo(r)})]})}function QGe({g:e,id:t}){let o=Array.from({length:Ife},(n,r)=>{let a=(r*(360/Ife)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*Ffe*Math.cos(a),y1:e.cy+e.rimRy*Ffe*Math.sin(a),x2:e.cxf+e.rimRx*Bfe*Math.cos(a),y2:e.cy+e.rimRy*Bfe*Math.sin(a)}});return Lc(X1,{children:[jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx),ry:bo(e.rimRy),fill:`url(#${t.rim})`}),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Lfe),ry:bo(e.rimRy*Lfe),fill:"currentColor",fillOpacity:vs.dishFill,stroke:"currentColor",strokeOpacity:vs.dishEdge,strokeWidth:1}),o.map((n,r)=>jt("line",{x1:bo(n.x1),y1:bo(n.y1),x2:bo(n.x2),y2:bo(n.y2),stroke:"currentColor",strokeOpacity:vs.spoke,strokeWidth:qGe,strokeLinecap:"round"},r)),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Afe),ry:bo(e.rimRy*Afe),fill:"currentColor",fillOpacity:vs.hubFill,stroke:"currentColor",strokeOpacity:vs.hubEdge,strokeWidth:1})]})}import{jsx as HD}from"react/jsx-runtime";function am({image:e,size:t,type:o,sizes:n,priority:r=!1,className:a="aspect-square",showBackground:i=!0}){return HD("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:HD(co,{label:t||"Tyre",src:ms(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:HD(BD,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as Z1}from"react/jsx-runtime";function e$e(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function DD({line:e,catalog:t,tyre:o}){let n=t.find(c=>c.slug===e.slug),r=e.config.find(c=>c.gold)?.label,a=n?.finishes.find(c=>c.name===r&&c.src)??n?.finishes.find(c=>c.src),i=n?.spokes??5,s=n?.mesh??!1,d=(n?.finishes.find(c=>c.name===r)??n?.finishes[0])?.color??$se;return Z1("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:nR(e)?Z1(am,{image:o?.coverImage,size:e.size,type:e$e(o),sizes:"96px",className:"h-full w-full"}):a?.src?Z1(Qs,{src:a.src,alt:`${n?.name??e.slug} \u2014 ${a.name}`,width:120,height:120,sizes:"96px",className:"relative z-[2] block w-[88%] object-contain",style:{filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"}}):n||t.length===0?Z1("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:Z1(Kh,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as MD,jsxs as o$e}from"react/jsx-runtime";var Hfe={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function Dfe(e,t){return Math.min(EB,Math.max(1,e+t))}var Mfe="disabled:cursor-not-allowed disabled:opacity-40",t$e={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${Hfe.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${Mfe}`,value:`w-11 text-center font-mono ${Hfe.labelSmall} font-bold tracking-[0.1em] text-fg`},small:{frame:"flex items-center border border-line",button:`h-[30px] w-[30px] cursor-pointer font-mono text-fg-dim transition-colors enabled:hover:text-accent ${Mfe}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function J1({value:e,onChange:t,size:o}){let n=t$e[o];return o$e("div",{className:n.frame,children:[MD("button",{type:"button",onClick:()=>t(Dfe(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),MD("span",{className:n.value,children:e}),MD("button",{type:"button",onClick:()=>t(Dfe(e,1)),disabled:e>=EB,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as Ac,jsx as Ke,jsxs as ao}from"react/jsx-runtime";function zfe({content:e,closeRef:t}){let{close:o,items:n}=Fn(),r=t;return ao("header",{className:"flex flex-shrink-0 flex-col gap-4 border-b border-line px-8 pb-6 pt-8 max-[640px]:px-6 max-[640px]:pt-6 max-[640px]:pb-5",children:[ao("div",{className:"flex items-center justify-between",children:[ao("span",{className:"flex items-center gap-3 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?Ke("span",{className:"border px-2 py-1 text-[10px]",style:{background:"color-mix(in oklab, var(--accent) 12%, transparent)",borderColor:"color-mix(in oklab, var(--accent) 50%, transparent)"},children:e.kickerBadge}):null,(e.kickerBadge?"\xB7 ":"")+e.kickerText]}),Ke("button",{ref:r,type:"button",onClick:o,"aria-label":"Close cart",className:"flex h-8 w-8 items-center justify-center border border-line text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u2715"})]}),ao("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",Ke("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),Ke("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:Une(e,n.length)})]})}function Wfe({content:e}){let{totals:t}=Fn(),{activeCountry:o}=Lt(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return Ke(Ac,{children:ao("div",{className:`grid flex-shrink-0 ${n$e[r-1]} gap-px border-b border-line bg-line`,children:[Ke(zD,{label:"Items",value:ao(Ac,{children:[Ke("em",{className:"font-serif font-normal italic text-accent",children:t.sets})," set",t.sets===1?"":"s"," \xB7 ",t.units," item",t.units===1?"":"s"]})}),e.leadTimeValue?Ke(zD,{label:"Lead time",value:e.leadTimeValue}):null,n?Ke(zD,{label:"Ships to",value:n}):null]})})}function Ufe({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=Fn();return Ke(Ac,{children:o.length===0?Ke(l$e,{content:e}):o.map(a=>Ke(r$e,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function Gfe(){let{items:e,totals:t,bundles:o}=Fn(),{formatMoney:n}=Lt(),r=new Set(e.flatMap(s=>(s.components??[]).map(l=>l.partNumber))),a=new Set(t.appliedBundles.map(s=>s.slug)),i=o.filter(s=>!a.has(s.slug)).filter(s=>s.components.some(l=>r.has(l.partNumber))).slice(0,2);return Ke(Ac,{children:i.length>0&&ao("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",style:{background:"color-mix(in oklab, var(--site-surface) 60%, transparent)"},children:[ao("div",{className:"mb-4 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[Ke("span",{children:"You may also need"}),Ke("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),Ke("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:i.map(s=>Ke(a$e,{href:`/bundles/${s.slug}`,title:s.name,sub:i$e(s,t.currency,n)},s.slug))})]})})}function $fe(){return Ke(Ac,{children:Ke("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:Ke(Yse,{})})})}function Kfe({content:e}){return Ke(Ac,{children:e.promises.length>0&&Ke("div",{className:"flex flex-wrap justify-center gap-5 border-b border-line px-8 pt-6 pb-8 font-mono text-[9px] uppercase tracking-[0.24em] text-fg-dim max-[640px]:px-6",children:e.promises.map(t=>Ke(s$e,{children:t},t))})})}function Vfe(){let{totals:e,coupon:t}=Fn(),{formatMoney:o}=Lt();return Ke(Ac,{children:ao("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[Ke(ef,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>Ke(ef,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:ao("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),e.discount>0&&t?.valid&&Ke(ef,{label:`Coupon \xB7 ${t.code}`,value:ao("span",{style:{color:"var(--green)"},children:["\u2212 ",o(e.discount,e.currency)]})}),t?.deferred&&Ke(ef,{label:`Coupon \xB7 ${t.code}`,value:mse}),t?.valid&&t.effects?.gift&&Ke(ef,{label:`Free gift \xB7 ${t.effects.gift.partNumber}${t.effects.gift.quantity>1?` \xD7${t.effects.gift.quantity}`:""}`,value:Ke("span",{style:{color:"var(--green)"},children:$h})}),Ke(ef,{label:"Shipping",value:e.shippingStatus==="free"?Ke("span",{style:{color:"var(--green)"},children:$h}):Wse(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?Ke(ef,{label:e.tax.inclusive?`${e.tax.name} included \xB7 ${e.tax.rate}%`:e.tax.name,value:o(e.tax.amount,e.currency)}):e.tax.name?Ke(ef,{label:e.tax.name,value:zse}):null),ao("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[ao("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",Ke("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),Ke("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:e.repricing?Ise:o(e.grand,e.currency)})]})]})})}function Yfe(){let{items:e,close:t}=Fn();return Ke(Ac,{children:ao("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[ao(Be,{href:"/checkout",onClick:t,"aria-disabled":e.length===0,className:["group flex items-center justify-between border px-5 py-5 font-mono text-[12px] uppercase tracking-[0.3em] transition-colors",e.length===0?"pointer-events-none cursor-not-allowed border-line bg-surface text-fg-dim":"border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg"].join(" "),children:["Begin checkout",Ke("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),Ke("div",{className:"flex items-center justify-between px-1 py-2 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:Ke(Be,{href:"/wheels",onClick:t,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})})}var n$e=["grid-cols-1","grid-cols-2","grid-cols-3"];function zD({label:e,value:t}){return ao("div",{className:"flex flex-col gap-1 bg-bg px-4 py-4",children:[Ke("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),Ke("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function r$e({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=Fn(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=Lt();return ao(Ac,{children:[ao("article",{className:"grid grid-cols-[96px_1fr] gap-5 border-b border-line px-8 py-6 transition-colors hover:bg-[color-mix(in_oklab,var(--site-surface)_60%,transparent)] max-[640px]:grid-cols-[78px_1fr] max-[640px]:px-6 max-[640px]:py-5",children:[Ke(DD,{line:e,catalog:r,tyre:t}),ao("div",{className:"flex min-w-0 flex-col gap-2",children:[ao("div",{className:"flex items-start justify-between gap-3",children:[ao("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:["N\xB0 ",e.positionNo," \xB7 ",e.process==="FusionForge\xAE"?ao(Ac,{children:["FusionForge",Ke(x_,{})]}):e.process]}),Ke("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:PB(e,s)===null?Tu:l(PB(e,s),s)})]}),ao("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,Ke("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&ao("div",{className:"mt-1 flex flex-wrap gap-2",children:[e.config.map(d=>Ke("span",{className:["border px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em]",d.gold?"border-[color-mix(in_oklab,var(--accent)_45%,var(--site-line))] text-accent":"border-line text-fg-dim"].join(" "),children:d.label},d.label)),i>0&&ao("span",{className:"border border-accent bg-accent px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em] text-bg",children:[i,"\xD7 free"]})]}),ao("div",{className:"mt-3 flex items-center justify-between gap-3",children:[Ke(J1,{value:e.qty,onChange:n,size:"small"}),ao("div",{className:"flex gap-4 font-mono text-[10px] uppercase tracking-[0.22em]",children:[Ke(Be,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),Ke("button",{type:"button",onClick:o,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&ao("div",{className:"mx-8 -mt-px flex items-start gap-3 border-t-0 px-4 py-4 font-display text-[13px] leading-[1.45] text-fg max-[640px]:mx-6",style:{background:"color-mix(in oklab, var(--accent) 8%, transparent)",border:"1px solid color-mix(in oklab, var(--accent) 35%, var(--site-line))",borderTop:"0"},children:[Ke("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),ao("span",{children:["Verified for your ",Ke("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function a$e({title:e,sub:t,href:o}){return ao(Be,{href:o,className:"flex items-center justify-between border border-line bg-bg px-4 py-3 text-left transition-colors hover:border-accent",children:[ao("span",{className:"flex min-w-0 flex-col gap-1",children:[Ke("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),Ke("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),Ke("span",{className:"ml-2 flex h-6 w-6 flex-shrink-0 items-center justify-center font-mono text-[13px] text-accent",style:{borderColor:"color-mix(in oklab, var(--accent) 45%, var(--site-line))",borderWidth:1,borderStyle:"solid"},children:"+"})]})}function i$e(e,t,o){let n=e.savings[t];if(n===void 0)return"Buy together";let r=o(n,t);return e.savingIsFrom?`Save from ${r}`:`Save ${r}`}function s$e({children:e}){return Ke("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function ef({label:e,value:t}){return ao("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[Ke("span",{children:e}),Ke("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function l$e({content:e}){return ao("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[Ke("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),Ke("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),ao(Be,{href:"/wheels",className:"mt-3 inline-flex items-center gap-3 border border-line px-5 py-3 font-mono text-[11px] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:["Browse the catalog ",Ke("span",{className:"text-accent",children:"\u2192"})]})]})}import{jsx as tf,jsxs as jfe}from"react/jsx-runtime";var p$e=xu(void 0);function Q1({content:e=bC,look:t=p$e}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=Fn(),s=c$e(null),l=kfe(a.filter(nR).map(d=>d.slug));return d$e(()=>{i(t.autoOpen)},[t.autoOpen,i]),jfe($i,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:"Your cart",children:[tf(zfe,{content:e,closeRef:s}),tf(Wfe,{content:e}),jfe("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[tf(Ufe,{content:e,tyres:l}),tf(Gfe,{}),tf($fe,{}),tf(Kfe,{content:e})]}),tf(Vfe,{}),tf(Yfe,{})]})}import m$e from"efficient-easel/screen/components/UiIcon";import{Fragment as f$e,jsx as xg,jsxs as cO}from"react/jsx-runtime";var u$e=Rw(()=>import("./chunks/EditorPreviewCheckout-QA7Z7CGI.js"),{ssr:!1});function WD(){let{chromePlaceholder:e,themeFromDocument:t}=Zn(),{surface:o}=xae();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?cO(f$e,{children:[xg(u$e,{}),xg(qfe,{surface:o})]}):xg(Pu,{children:cO(fw,{preview:!0,children:[xg(Q1,{}),xg(qfe,{surface:o})]})})}function qfe({surface:e}){let{label:t,href:o}=Nue(e);return cO("div",{className:"rounded-full py-1 pr-2 pl-3",style:{position:"fixed",bottom:14,left:"50%",transform:"translateX(-50%)",zIndex:2147483e3,display:"flex",alignItems:"center",gap:8,maxWidth:"calc(100% - 24px)",fontSize:12,fontWeight:600,fontFamily:"system-ui, sans-serif",color:"#334155",background:"rgba(255,255,255,0.94)",border:"1px solid rgba(15,23,42,0.12)",boxShadow:"0 6px 24px rgba(15,23,42,0.18)",pointerEvents:"none"},children:[xg("span",{style:{whiteSpace:"nowrap"},children:u("{name} \xB7 preview only",{name:u(t)})}),cO("a",{className:"rounded-(--radius-control) px-3 py-1",href:o,target:"_blank",rel:"noopener noreferrer",style:{pointerEvents:"auto",flex:"none",display:"inline-flex",alignItems:"center",gap:5,color:"#fff",background:"#2563eb",textDecoration:"none"},children:[u("Open live"),xg(m$e,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as h$e,CursorClickIcon as g$e,EyeIcon as b$e,FullWidthIcon as w$e,HeightIcon as x$e,OpacityIcon as Jfe,PlacementIcon as y$e,WidthIcon as v$e}from"efficient-easel/icons";import{group as ix}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as k$e}from"efficient-easel/screen/lib/document/device-fields";import{jsx as im}from"react/jsx-runtime";var S$e={label:"Inside",value:"inside"},T$e={label:"None",value:"none"};function UD(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,k$e("desktop",o)]))}function Xfe(e,t){return{_gDesign:ix("Color"),tintColor:fs("Tint color",e),tintOpacity:ae("Tint opacity",im(Jfe,{}),I2.min,I2.max,5,t,"%")}}function Zfe(e,t){return{_gBehavior:ix("Behavior"),outsideClick:oe("Outside click",e,im(g$e,{})),...t}}var E$e=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function GD(e){return ae("Width",im(v$e,{}),Q6.min,Q6.max,4,e,"px")}function Qfe(e){if(e===wu){let o=xu(void 0);return UD({_gSize:ix("Width"),width:GD(o.width),_gPosition:ix("Placement"),placement:ne("Placement",im(y$e,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...Xfe(o.tintColor,o.tintOpacity),...Zfe(o.outsideClick,{autoOpen:oe("Auto open",o.autoOpen,im(b$e,{}))})})}let t=bu;return Le(UD({_gSize:ix("Width"),width:GD(t.width),height:ne("Height",im(x$e,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:ix("Placement"),placement:ad("Placement",{fallback:t.placement}),fullWidth:oe("Full width",t.fullWidth,im(w$e,{})),...Xfe(t.tintColor,t.tintOpacity),...Zfe(t.outsideClick,{closeButton:ne("Close button",im(h$e,{}),[S$e,{label:"Outside",value:"outside"},T$e],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],E$e])}function ehe(e,t){return UD({menuPanelWidth:GD(e),menuPanelTintColor:fs("Tint color",bu.tintColor),menuPanelTintOpacity:ae("Tint opacity",im(Jfe,{}),I2.min,I2.max,5,t,"%")})}import{PictureTiles as P$e}from"efficient-shell/ui";import{SettingsField as _$e}from"efficient-easel/panel";import{GridIcon as C$e}from"efficient-easel/icons";import{jsx as yg}from"react/jsx-runtime";function R$e({layout:e}){return yg("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?yg("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):yg("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var the={type:"custom",render:({value:e,onChange:t})=>{let o=wC({layout:e}).layout,n=eB.find(r=>r.value===o);return yg(_$e,{label:u(tB),icon:yg(C$e,{}),value:n?u(n.label):void 0,children:yg(P$e,{className:"sf-gallery-layouts",label:u(tB),value:o,onChange:t,options:eB.map(r=>({value:r.value,label:u(r.label),picture:yg(R$e,{layout:r.value})}))})})}};import{CategoryIcon as U_t,CheckIcon as G_t,ClockIcon as bj,ColumnsIcon as $_t,DirectionIcon as K_t,EyeIcon as V_t,ListIcon as Y_t,PageIcon as j_t,PlacementIcon as q_t,ScrollPointIcon as X_t,TabsIcon as Z_t,TriggerIcon as J_t}from"efficient-easel/icons";import{deviceField as OBe}from"efficient-easel/screen/lib/document/device-fields";import{group as Xl,phoneTwinFields as Q_t}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as O$e}from"efficient-easel/screen/lib/document/box-fields";function sx(e){let t=O$e(e);return{...t,render:o=>t.render({...o,value:Gm(o.value)??o.value})}}import{useContext as L$e,useEffect as nhe,useRef as mO,useState as uO}from"react";import{Button as fO}from"efficient-shell/ui";import{ScreenDocumentContext as A$e}from"efficient-easel/screen/components/ScreenDocumentContext";var ek=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},pO=null,$D=null,KD=null;function N$e(){pO=null,$D=null,KD=null}function ohe(e=!1){let t=fa(),o=In();return(e||!pO||$D===null&&t!==null||KD!==o)&&($D=t,KD=o,pO=(t?Fe.listForms(t,{siteId:o}):Promise.reject(new ek)).catch(n=>{throw N$e(),n instanceof ek?n:new ek(n)})),pO}import{useEaselHost as I$e}from"efficient-easel/screen/lib/host";import{InertHint as VD}from"efficient-easel/panel";import{jsx as cr,jsxs as Ic}from"react/jsx-runtime";var rhe="__create-a-new-form__";function F$e({value:e,forms:t,loadFailed:o,emptyLabel:n}){let r=t??[],a=e?r.some(p=>p.slug===e):!0,i=t===null&&!o,s={value:"",label:i?u("Loading\u2026"):o?u("Forms couldn\u2019t be loaded"):n===void 0?u("No form yet"):u(n)},l=e&&!a?[{value:e,label:i||o?e:u("{slug} \u2014 no form with this name",{slug:e})}]:[],d=r.map(p=>({value:p.slug,label:p.is_active?p.title:u("{title} (switched off)",{title:p.title})})),c=i?[]:[{value:rhe,label:u("Create a new form")}];return[s,...l,...d,...c]}function B$e(e){return e===rhe?{action:"create"}:{action:"store",slug:e}}function H$e({value:e,pickedId:t,forms:o}){if(!e||!t||o.some(r=>r.slug===e))return null;let n=o.find(r=>r.id===t);return n&&n.slug&&n.slug!==e?n.slug:null}function D$e(e){let t=[u("Goes to {place}",{place:u("Storefront \u2192 Forms")})],o=(e.notify_email??"").trim();return o&&t.push(u("Emails a copy to {email}",{email:o})),e.mailing_list_name&&t.push(e.subscribe_mode==="checkbox"?u("Joins the \u201C{audience}\u201D audience, but only when the consent box is ticked",{audience:e.mailing_list_name}):u("Joins the \u201C{audience}\u201D audience",{audience:e.mailing_list_name})),e.kind==="account_signup"&&t.push(e.signup_customer_type==="importer"?u("Creates a wholesale account"):u("Creates a retail account")),t}function YD({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=I$e(),a=L$e(A$e),i=a?a.capabilities.hasForms:!0,[s,l]=uO(null),[d,c]=uO(!1),[p,m]=uO(!1),[f,g]=uO(!1),h=mO(!0),w=mO(e);w.current=e;let b=mO(t);b.current=t;let k=mO(null),x=(P=!1)=>ohe(P).then(I=>{if(h.current){l(I),c(!1);let D=H$e({value:w.current,pickedId:k.current,forms:I});D&&b.current(D)}return I},()=>(h.current&&c(!0),[]));nhe(()=>(h.current=!0,i&&x(),()=>{h.current=!1}),[i]),nhe(()=>i?bR(()=>{x(!0)}):void 0,[i]);let y=e?(s??[]).find(P=>P.slug===e)??null:null;y?k.current=y.id:e||(k.current=null);let S=!!e&&!y&&s!==null&&!d,E=F$e({value:e,forms:s,loadFailed:d,emptyLabel:n}),T=async()=>{m(!0),g(!1);try{let P=await mle(r,{mode:"create"}),I=await x(!0);if(!h.current)return;if(P.status==="timeout"){g(!0);return}if(P.status!=="saved")return;let{form:D}=P;D.slug!==w.current&&b.current(D.slug),I.some(F=>F.id===D.id)||x(!0)}finally{h.current&&m(!1)}},_=P=>{let I=B$e(P);I.action==="create"?T():(g(!1),t(I.slug))};return i?Ic("div",{className:"sf-formpicker",children:[cr(Mb,{label:o,options:E,fallback:"",value:e??"",onChange:_,placeholder:u("Search forms\u2026")}),f&&cr("p",{className:"sf-formsummary-warn",children:u("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),y?Ic("div",{className:"sf-blogsource sf-formsummary",children:[Ic("div",{children:[cr("div",{className:"sf-formsummary-caption",children:ar("{n} field","{n} fields",y.fields.length)}),y.fields.length?cr("ol",{className:"sf-formsummary-fields",children:y.fields.map((P,I)=>cr("li",{children:P.label},P.key||`${P.label}-${I}`))}):cr(VD,{children:u("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),Ic("div",{children:[cr("div",{className:"sf-formsummary-caption",children:u("Where the answers go")}),cr("ul",{className:"sf-formsummary-fields",children:D$e(y).map(P=>cr("li",{children:P},P))})]}),!y.is_active&&cr("p",{className:"sf-formsummary-warn",children:u("This form is switched off, so it won\u2019t appear on the published page. Turn it back on in {place}.",{place:u("Storefront \u2192 Forms")})}),Ic("div",{className:"sf-formsummary-actions",children:[cr(fO,{variant:"secondary",size:"md",onClick:()=>ple(r,y.id),children:u("Edit form \u270E")}),cr(fO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:u("New form +")})]}),cr("p",{className:"es-field-hint",children:u("The questions, the button text and the thank-you message all come from {place}. Edit them there \u2014 this section updates to match.",{place:u("Storefront \u2192 Forms")})})]}):Ic("div",{className:"sf-blogsource sf-formsummary",children:[d?Ic(VD,{children:[u("This website\u2019s forms couldn\u2019t be loaded, so there is nothing to choose from yet."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]}):S&&cr("p",{className:"sf-formsummary-warn",children:u("This section points at \u201C{slug}\u201D, and this website has no form with that name. Pick one from the list above, or leave it \u2014 nothing has been changed.",{slug:e??""})}),Ic("div",{className:"sf-formsummary-actions",children:[d&&cr(fO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{x(!0)},children:u("Try again")}),cr(fO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:u("New form +")})]}),!d&&cr("p",{className:"es-field-hint",children:u("Pick a form to show here, or build a new one. Forms are made once in {place} and can be shown on any number of pages.",{place:u("Storefront \u2192 Forms")})})]})]}):cr("div",{className:"sf-formpicker",children:cr("div",{className:"sf-blogsource sf-formsummary",children:Ic("div",{children:[cr("div",{className:"sf-formsummary-caption",children:u(o)}),Ic(VD,{children:[u("Forms aren\u2019t available in this editor, so there is nothing to choose here."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]})]})})})}import{jsx as M$e}from"react/jsx-runtime";function Fc(e,t){return{type:"custom",render:({value:o,onChange:n})=>M$e(YD,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{createContext as z$e,useContext as W$e}from"react";import{jsx as Bc,jsxs as jD}from"react/jsx-runtime";function qD(e){return lc(e)??void 0}var XD=z$e({}),ahe=3;function ZD({tag:e,name:t,desc:o,href:n,imageSrc:r,imageLabel:a,price:i}){let s=he(),{showPrice:l,cardStyle:d,partStyles:c,editing:p,ownerId:m,Template:f}=W$e(XD),g=d==="bordered"?" border border-line":d==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",h=qD(r),w=Ln();if(f){let x={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:h??"",tag:e??"",href:n||"#"};return w.scope(Bc("div",{className:to(`block w-full min-w-0 ${ib}${s?` ${Xm}`:""}`,w.className),...w.attrs,children:Bc(Ge,{ownerId:m??"Collections",ownerType:"Collections",Template:f,rows:[x],fallback:null,children:v=>v})}))}let b=x=>p?{[eb]:x}:{},k=x=>iP(c?.[ed(x)]?.role,Uh[x],jE);return w.scope(jD(Be,{href:n||"#",className:to(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${g}`,w.className),...w.attrs,children:[Bc("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${ape}`,children:Bc(co,{label:a||"collection.jpg",src:h})}),Bc("div",{className:`pointer-events-none absolute inset-0 z-[1] ${lpe} max-view-wide:hidden`,style:{transition:"none"}}),jD("div",{className:"absolute inset-x-8 bottom-8 z-[2] flex flex-col gap-3 text-overlay-fg max-view-wide:relative max-view-wide:inset-auto max-view-wide:p-6 max-view-wide:gap-3 max-view-wide:text-fg",children:[e&&Bc("span",{...b("tag"),style:k("tag"),className:`font-mono ${zp.tag} uppercase tracking-[0.25em] opacity-70`,children:L(e)}),t&&Bc("h3",{...b("name"),style:k("name"),className:`font-heading2 ${zp.name} font-medium leading-none tracking-[-0.03em] ${zp.namePhone}`,children:typeof t=="string"?te(t,!1):t}),o&&Bt(o).map((x,v)=>Bc("p",{...b("body"),style:k("body"),className:`max-w-[420px] ${zp.body} leading-[1.5] opacity-80`,children:L(x)},v)),l&&i&&Bc("span",{...b("price"),style:k("price"),className:`font-mono ${zp.price} tracking-[0.05em] text-accent`,children:L(i)}),jD("span",{...b("link"),style:k("link"),className:`mt-2 inline-flex items-center gap-3 font-mono ${zp.link} uppercase tracking-[0.2em]`,children:["Explore",Bc("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as uhe,useCallback as rKe,useContext as phe,useEffect as fhe,useRef as aKe,useState as oM}from"react";import{slugify as iKe}from"efficient-shell/format";import{useState as G$e}from"react";import{jsx as JD,Fragment as U$e}from"react/jsx-runtime";function yl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=_ee(e),a=Cee(e),i=t?a:r,s=Pee(i);return o&&!i?JD("span",{[ou]:e,children:n}):i?JD("span",{ref:s,[mQ]:i.stamp,...i.textStyle?{[uQ]:i.textStyle}:{},children:n}):JD(U$e,{children:n})}import{jsx as Ki,jsxs as lx}from"react/jsx-runtime";var QD=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function eM({build:e,hiddenMobile:t,alwaysShowOverlay:o,forceHover:n,index:r,total:a,ratio:i,captionPlace:s,display:l,displayPhone:d,styleOwner:c,editing:p=!1}){let m=x=>Tne(l,d,x),f=x=>p&&c?{[lQ]:c,[dQ]:`@${x}`}:{},g=(x,v)=>!p&&c?Ki(yl,{kind:`@${x}`,shared:!0,children:v}):v,[h,w]=G$e(!1),b=WZ(s),k=lx("div",{className:["sf-card group relative overflow-hidden bg-surface-2",lb(i),t?"max-view-wide:hidden":""].join(" "),children:[lx("div",{className:["absolute inset-0 z-[1] flex items-center justify-center transition-[transform,filter,opacity] duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)]",n?"scale-[1.06] opacity-0 [filter:brightness(0.5)]":"group-hover:scale-[1.06] group-hover:opacity-0 group-hover:[filter:brightness(0.5)]"].join(" "),children:[Ki(co,{label:e.imageLabel,src:e.imageSrc}),!o&&Ki("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),Ki("div",{className:["absolute inset-0 z-[1] flex items-center justify-center transition-[transform,filter,opacity] duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)]",n?"opacity-100 scale-[1.06] [filter:brightness(0.5)]":"opacity-0 group-hover:scale-[1.06] group-hover:opacity-100 group-hover:[filter:brightness(0.5)]"].join(" "),style:{background:"var(--site-surface)"},children:e.detailSrc&&Ki(Qs,{src:e.detailSrc,alt:"",fill:!0,sizes:"(max-width: 800px) 100vw, (max-width: 1500px) 33vw, 25vw",loading:"lazy",className:"absolute inset-0 z-[3] object-cover",style:{display:h?"none":"block"},onError:()=>w(!0)})}),(e.process||r!=null&&a!=null)&&lx("div",{className:"pointer-events-none absolute top-3 left-3 right-3 z-[3] flex items-baseline gap-2 max-view-wide:top-2.5 max-view-wide:left-2.5 max-view-wide:right-2.5",children:[e.process&&Ki("span",{...f("tag"),className:["min-w-0 truncate font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-accent",m("tag"),"transition-opacity duration-300 ease-out",o||n?"opacity-100":"opacity-0 group-hover:opacity-100 max-view-wide:opacity-100"].join(" "),children:g("tag",Eo(e.process))}),r!=null&&a!=null&&Ki("span",{...f("number"),className:`ml-auto shrink-0 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] ${m("number")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:g("number",QD(r,a))})]}),Ki("div",{className:["absolute inset-0 z-[2]","transition-[opacity,transform] duration-300 ease-out",o||n?"opacity-100 translate-y-0":"opacity-0 translate-y-2 group-hover:opacity-100 group-hover:translate-y-0 max-view-wide:opacity-100 max-view-wide:translate-y-0"].join(" "),style:{color:"var(--overlay-fg)",background:o?"linear-gradient(180deg, rgba(10,10,10,.55) 0%, transparent 35%, transparent 55%, rgba(10,10,10,.92) 100%)":"linear-gradient(180deg, transparent 40%, rgba(10,10,10,.85) 100%)"},children:lx("div",{className:"absolute inset-x-0 bottom-0 top-9 flex flex-col justify-end gap-1 overflow-hidden p-6 max-view-wide:top-8 max-view-wide:p-3.5",children:[e.car&&Ki("div",{...f("eyebrow"),className:`truncate font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] text-accent max-view-wide:text-[length:var(--size-label,11px)] max-view-wide:tracking-[0.15em] ${m("eyebrow")}`.trim(),children:g("eyebrow",e.car)}),e.wheel&&Ki("div",{...f("title"),className:`font-heading3 text-[length:var(--size-headingSmall,22px)] font-medium leading-[1.05] tracking-[-0.02em] max-view-wide:text-[length:var(--size-body,16px)] ${o?"uppercase ":""}${m("title")}`.trim(),children:g("title",e.wheel)}),e.finish&&Ki("div",{...f("meta"),className:`mt-1.5 flex gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.12em] ${m("meta")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:Ki("span",{children:g("meta",Eo(e.finish))})})]})})]});return b?lx("div",{className:t?"max-view-wide:hidden":"",children:[k,lx("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&Ki("div",{...f("title"),className:`font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg ${m("title")}`.trim(),children:g("title",e.wheel)}),(e.finish||e.car)&&Ki("div",{...f(e.finish?"meta":"eyebrow"),className:`mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim ${m(e.finish?"meta":"eyebrow")}`.trim(),children:g(e.finish?"meta":"eyebrow",Eo(e.finish||e.car))})]})]}):k}import{createContext as $$e,useCallback as K$e,useContext as V$e,useEffect as Y$e,useLayoutEffect as j$e,useRef as tM,useState as q$e}from"react";import{createPortal as X$e}from"react-dom";import{Fragment as eKe,jsx as tk,jsxs as tKe}from"react/jsx-runtime";var Z$e=".sf-themed-content",ihe="sf-section-accent";function J$e(e,t){let o={},n=!1,r=[];for(let a=e;a&&a!==t;a=a.parentElement)r.push(a);for(let a of r.reverse()){a.classList.contains(ihe)&&(n=!0);let i=a.style;if(i)for(let s=0;s<i.length;s+=1){let l=i.item(s);l.startsWith("--")&&(o[l]=i.getPropertyValue(l))}}return{className:n?`contents ${ihe}`:"contents",style:o}}function Q$e(e){let t=e.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])");return Array.from(t).filter(o=>!o.hasAttribute("hidden")&&o.getAttribute("aria-hidden")!=="true")}var she=$$e(()=>{});function sm({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=tM(null),l=tM(null),[d,c]=q$e(null);j$e(()=>{if(!e){c(null);return}let g=s.current;if(!g)return;let h=g.closest(Z$e)??g.ownerDocument.body;c({host:h,theme:J$e(g,h)})},[e]);let p=tM({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let m=e&&d!==null,f=K$e(()=>p.current.onClose(),[]);return Nc({active:m,onDismiss:f,scopeRef:l}),Y$e(()=>{if(!m)return;let g=l.current,h=g?.ownerDocument??document,w=h.activeElement;g?.focus();let b=x=>{if(x.key==="ArrowLeft")p.current.onPrev?.();else if(x.key==="ArrowRight")p.current.onNext?.();else if(x.key==="Tab"&&g){let v=Q$e(g);if(v.length===0){x.preventDefault(),g.focus();return}let y=v[0],S=v[v.length-1],E=h.activeElement,T=!!E&&g.contains(E)&&E!==g;if(x.shiftKey&&(!T||E===y))x.preventDefault(),S.focus();else if(!x.shiftKey&&(!T||E===S))x.preventDefault(),y.focus();else{x.preventDefault();let _=v.indexOf(E);v[x.shiftKey?_-1:_+1]?.focus()}}},k=h.defaultView??window;return k.addEventListener("keydown",b),()=>{k.removeEventListener("keydown",b),w&&w.isConnected&&w.focus()}},[m]),e?tKe(eKe,{children:[tk("span",{ref:s,hidden:!0}),d&&X$e(tk("div",{className:d.theme.className,style:d.theme.style,children:tk("div",{ref:l,role:"dialog","aria-modal":"true","aria-label":o,tabIndex:-1,onClick:t,className:`fixed inset-0 z-(--sf-layer-lightbox) outline-none ${ID[8]} ${a}`,style:{background:AD},children:tk(she.Provider,{value:t,children:i})})}),d.host)]}):null}var hO="color-mix(in oklab, var(--bg) 70%, transparent)";function of({className:e="absolute right-5 top-5 flex h-10 w-10 cursor-pointer items-center justify-center border border-fg-dim/40 text-fg-dim transition-colors hover:border-accent hover:text-accent",style:t,label:o="Close",children:n="\xD7"}){let r=V$e(she);return tk("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as oKe,useContext as vg}from"react";var ok=oKe(null);function lhe(){let e=vg(L2),t=vg(ok),o=zC();return e?e.socialLinks??hae:t?t.socialLinks:o.links}function nf(){return vg(ok)?.commerceEnabled??!0}function nKe(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function dx(){return nKe(vg(ok))}function dhe(){let e=vg(ok),t=Zn();return e?e.showThemeSwitch??Pp:t.themeSwitchShown??Pp}function che(){let e=vg(L2),t=vg(ok),o=Zn();return e?cR({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?cR({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):cR({siteName:o.websiteName?.trim()||vu})}import{useBrowserLayoutEffect as sKe}from"efficient-shell/hooks";import{Fragment as cx,jsx as _o,jsxs as ya}from"react/jsx-runtime";var lKe="(max-width: 1100px) 100vw, min(59vw, 1050px)",nk=uhe({}),hhe=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],rM=uhe(null),rf="data-gallery-grid",nM="data-gallery-tile";function dKe(e,t){let[o,n]=oM(null);return fhe(()=>{let r=e.current,a=r?.closest(`[${rf}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${nM}]`)),d=l.indexOf(r),c=d>=0?{index:d+1,total:l.length}:null;n(p=>p?.index===c?.index&&p?.total===c?.total?p:c)};if(i(),!t)return;let s=new MutationObserver(i);return s.observe(a,{childList:!0,subtree:!0}),()=>s.disconnect()},[e,t]),o}var xd={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},cKe=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),ghe=Array.from({length:6},cKe);function pKe(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=iKe(e.name)||"gallery-item";return{car:e.eyebrow??"",wheel:e.name??"",process:e.process??"",finish:e.meta??"",imageLabel:`${r}.jpg`,detailLabel:`${r}-detail.jpg`,imageSrc:o||void 0,detailSrc:t[0]||o||void 0,photos:n,href:e.href}}function kg({editing:e=!1,previewHover:t,ratio:o,captionPlace:n,tile:r,...a}){let i=he(),{galleryHref:s="/gallery",submitHref:l="/contact",previewHover:d,display:c,displayPhone:p,styleOwner:m,photosOnly:f=!1,wordsAtRest:g=!1,Template:h,ownerId:w}=phe(nk),b=pKe(a),x=nf()&&!f,v=!x&&!mKe(b),y=b.photos??(b.imageSrc?[b.imageSrc]:[]),S=aKe(null),E=rKe(ee=>{S.current=ee},[]),T=dKe(S,e),_=phe(rM),P=_?.report,I=r?.id,D=r?.tag??"",F=r?.name??"";sKe(()=>{if(!P||!I)return;let ee={id:I,tag:D,name:F};return P(ee),()=>P(ee,!0)},[P,I,D,F]);let A=(I?_?.positionOf(I):null)??T,N=e&&(!!t||!!d),[B,Y]=oM(!1),[K,X]=oM(0),Z=!!I&&!!_&&_.walkCount>1,V=ee=>{let se=K+ee;if(Z&&(se<0||se>=y.length)){Y(!1),_.walk(I,ee);return}X((se+y.length)%y.length)},j=()=>V(-1),J=()=>V(1),C=y.length>1||Z,O=_?.opening;fhe(()=>{!O||O.id!==I||(X(O.at==="last"?Math.max(0,y.length-1):0),Y(!0))},[O,I]);let G=y[K]??b.imageSrc??"",$=y.slice(1),H=h?_o("div",{className:`block w-full min-w-0 ${ib}${i?` ${Xm}`:""}`,children:_o(Ge,{ownerId:w??"GalleryB",ownerType:"GalleryB",Template:h,rows:[{key:I??b.imageSrc??"tile",image:b.imageSrc??"",tag:b.process,number:A?QD(A.index,A.total):"",eyebrow:b.car,name:b.wheel,meta:b.finish,href:b.href??""}],items:[{hoverMedia:$.length?{photos:[{finish:"",items:$.map(ee=>({url:ee,kind:"image"}))}]}:null}],previewHover:N,fallback:null,children:ee=>ee})}):_o(eM,{build:b,forceHover:N,alwaysShowOverlay:g,index:A?.index,total:A?.total,ratio:o,captionPlace:n,display:c,displayPhone:p,styleOwner:m,editing:e});return ya(cx,{children:[e?_o(z,{as:"div",ref:E,[nM]:"",className:"block w-full text-left",children:H}):_o(z,{as:"button",ref:E,[nM]:"",type:"button","aria-label":x?`Open ${b.car||"build"} on ${b.wheel||"wheel"}`:mhe(b),onClick:()=>{X(0),Y(!0)},className:"block w-full cursor-pointer text-left focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2",children:H}),_o(sm,{open:B,onClose:()=>Y(!1),label:x?`${b.car} on ${b.wheel}`:mhe(b),onPrev:C?j:void 0,onNext:C?J:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:ya("div",{onClick:ee=>ee.stopPropagation(),className:`relative grid w-[min(1800px,100%)] max-h-[calc(100vh-48px)] ${v?"grid-cols-1":"grid-cols-[1.4fr_1fr]"} overflow-hidden border border-line bg-bg max-view-desktop:grid-cols-1 max-view-desktop:overflow-auto`,style:{boxShadow:"0 60px 120px -20px color-mix(in srgb, var(--sf-shadow-color, #141416) 70%, transparent)"},children:[_o(of,{label:"Close popup",className:"absolute right-[24px] top-[24px] z-[5] flex h-[56px] w-[56px] items-center justify-center border border-line font-mono text-[length:var(--size-label,21px)] text-fg-dim transition-colors hover:border-accent hover:text-fg",style:{background:hO},children:"\u2715"}),ya("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[G&&_o("img",{...go(G,{fallbackWidth:1280}),sizes:lKe,alt:`${(x?b.car:b.wheel||b.car)||"Photo"} \u2014 ${K+1} of ${y.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},G),C&&ya(cx,{children:[_o("button",{type:"button","aria-label":"Previous photo",onClick:j,className:"absolute left-4 top-1/2 flex h-16 w-16 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg-dim/40 bg-overlay-scrim/40 font-mono text-[length:var(--size-label,24px)] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u25C1"}),_o("button",{type:"button","aria-label":"Next photo",onClick:J,className:"absolute right-4 top-1/2 flex h-16 w-16 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg-dim/40 bg-overlay-scrim/40 font-mono text-[length:var(--size-label,24px)] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u25B7"}),y.length>1&&ya("span",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 border border-fg-dim/30 bg-overlay-scrim/50 px-4 py-1.5 font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.22em] text-fg-dim backdrop-blur-[4px]",children:[K+1," / ",y.length]})]})]}),x?ya("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[b.process&&_o("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:L(b.process)}),b.wheel&&_o("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(42px,4.5vw,60px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.025em]",children:te(b.wheel,!1)}),b.car&&ya("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",_o("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:L(b.car,!0)})]}),ya("dl",{className:"mt-3 grid grid-cols-[auto_1fr] gap-x-7 gap-y-[18px] border-y border-line py-[30px] font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.22em]",children:[b.wheel&&ya(cx,{children:[_o("dt",{className:"text-fg-dim",children:"Wheel"}),_o("dd",{className:"text-fg",children:L(b.wheel)})]}),b.process&&ya(cx,{children:[_o("dt",{className:"text-fg-dim",children:"Process"}),_o("dd",{className:"text-fg",children:L(b.process)})]}),b.finish&&ya(cx,{children:[_o("dt",{className:"text-fg-dim",children:"Finish"}),_o("dd",{className:"text-fg",children:L(b.finish)})]}),b.car&&ya(cx,{children:[_o("dt",{className:"text-fg-dim",children:"Vehicle"}),_o("dd",{className:"text-fg",children:L(b.car)})]})]}),ya("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[ya(Be,{href:b.href||"/wheels",onClick:()=>Y(!1),className:"group flex items-center justify-between gap-6 border border-btn bg-btn px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-btn-ink transition-colors hover:border-fg hover:bg-fg",children:[_o("span",{children:"View product"}),_o("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),ya(Be,{href:s,onClick:()=>Y(!1),className:"flex items-center justify-between gap-6 border border-line px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:[_o("span",{children:"See more builds"}),_o("span",{children:"\u2192"})]}),ya(Be,{href:l,onClick:()=>Y(!1),className:"flex items-center justify-between gap-6 border border-line px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:[_o("span",{children:"Submit your build"}),_o("span",{children:"\u2192"})]})]})]}):!v&&_o(uKe,{build:b})]})})]})}function bhe(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function mKe(e){return!!e.wheel||bhe(e).length>0}function mhe(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function uKe({build:e}){let t=e.wheel,o=bhe(e);return ya("div",{className:"flex flex-col gap-[24px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[t&&_o("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(42px,4.5vw,60px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.025em]",children:te(t,!1)}),o.map(n=>_o("p",{className:"text-[length:var(--size-body,18px)] leading-[1.5] text-fg",children:L(n)},n))]})}import{createContext as xKe,useContext as yKe,useEffect as rk,useId as vKe,useState as Rr,useSyncExternalStore as kKe}from"react";var fKe=14,hKe=3;function gKe(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function bKe(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),gKe(o)}async function whe(e,t,o={}){let n=o.days??fKe,r=o.read??Gh.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=bKe(t,s);try{let d=await r(e,l);if(a=0,i++,d.slots.length>0)return{outcome:"found",date:l,availability:d}}catch{if(a++,a>=hKe)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as xhe,formatDateTime as aM,formatTime as khe}from"efficient-shell/format";var wKe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},yhe={weekday:"long",day:"numeric",month:"long",year:"numeric"},She={hour:"numeric",minute:"2-digit"},vhe={...She,timeZoneName:"short"};function iM(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function sM(e,...t){let o=ml(...t);return!o||!iM(e)?"":khe(e,{locale:xB(),timeZone:o})}function lM(e,...t){let o=typeof e=="string"?{start:e}:e,n=ml(...t),r=iM(o.start);if(!n||!r)return"";let a=xB(),i=o.end?iM(o.end):null;if(!i||i.getTime()<=r.getTime())return aM(o.start,{locale:a,timeZone:n,style:wKe,zoneName:"short"});let s=aM(o.start,{locale:a,timeZone:n,style:yhe,clock:She}),d=xhe(o.start,n)===xhe(o.end,n)?khe(o.end,{locale:a,timeZone:n,clock:vhe}):aM(o.end,{locale:a,timeZone:n,style:yhe,clock:vhe});return`${s} \u2013 ${d}`}function gO(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as SKe,userToday as TKe,userZone as EKe}from"efficient-shell/format";import{jsx as LKe}from"react/jsx-runtime";var Ehe=xKe(null);function af(){let e=yKe(Ehe);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var dM=[{id:"example-1",name:"Example service",durationMinutes:45,price:"80.00",description:"What this appointment includes, in a sentence."},{id:"example-2",name:"Second example",durationMinutes:30,price:"0",description:""}],PKe=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function The(e,t){return{timezone:"",slots:t?PKe.flatMap(({hour:n,minute:r})=>SKe(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var cM={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function _Ke(e){let t=String(e?.slots[0]?.start??"");return t?{...cM,startAt:t}:cM}function Phe(e){return e.bookingNumber===cM.bookingNumber}function CKe(e,t){return e&&t?.length===0}function RKe(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!gO(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function OKe(){return()=>{}}function NKe(){return null}function _he({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=vKe(),r=kKe(OKe,TKe,NKe)??"",[a,i]=Rr(),[s,l]=Rr(""),[d,c]=Rr(""),[p,m]=Rr(r),[f,g]=Rr(r),[h,w]=Rr(!1),[b,k]=Rr(null),[x,v]=Rr(),[y,S]=Rr(""),[E,T]=Rr(""),[_,P]=Rr(""),[I,D]=Rr(""),[F,A]=Rr(""),[N,B]=Rr(()=>RB()),[Y,K]=Rr(null),[X,Z]=Rr(!1),[V,j]=Rr(!1),[J,C]=Rr(null),[O,G]=Rr("");rk(()=>{G(EKe()??"")},[]),rk(()=>{let me=!1;return Gh.listServices().then(Ce=>{if(me)return;let Pe=qC(Ce);i(Pe),l(Ce.currency),c(ie=>ie||Pe[0]?.id||"")}).catch(()=>{me||i([])}),()=>{me=!0}},[]),rk(()=>{r&&(m(me=>me||r),g(me=>me||r))},[r]),rk(()=>{if(h||!d||!r)return;let me={aborted:!1};return S(""),v(void 0),C(null),k(null),Z(!0),whe(d,r,{signal:me}).then(Ce=>{if(!me.aborted){if(Ce.outcome==="found"){m(Ce.date),g(Ce.date),v(Ce.availability);return}k(Ce.outcome==="noneInWindow"?`No times are available in the next ${Ce.days} days.`:"We couldn't load available times. Please try again.")}}).finally(()=>{me.aborted||Z(!1)}),()=>{me.aborted=!0}},[h,d,r]),rk(()=>{if(!h||!d||!p)return;let me=!1;return S(""),v(void 0),C(null),k(null),Z(!0),Gh.getAvailability(d,p).then(Ce=>{me||(v(Ce),Ce.slots.length===0&&k("No times are available on this date."))}).catch(()=>{me||k("We couldn't load available times. Please try again.")}).finally(()=>{me||Z(!1)}),()=>{me=!0}},[p,h,d]);let $=a?.find(me=>me.id===d),H=$?.depositAmountDue!=null,ee=RKe({editing:e,submitting:V,hasService:!!$,hasDay:!!p,selectedStart:y,name:E,email:_,requiresPayment:H},Date.now());async function se(me){if(me.preventDefault(),!(!ee||!$)){j(!0),C(null);try{let Ce=await Gh.create({serviceId:$.id,start:y,customer:{name:E.trim(),email:_.trim(),phone:I.trim()},notes:F.trim(),idempotencyKey:N,customerTimezone:O});K(Ce),B(RB())}catch(Ce){C(Ce instanceof sr&&Ce.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),Ce instanceof sr&&Ce.status===409&&(S(""),Gh.getAvailability($.id,p).then(v).catch(()=>{}))}finally{j(!1)}}}let pe=CKe(e,a),Ne=pe?The(p,O):void 0,ce=t&&!Y?_Ke(Ne??The(p,O)):null;return LKe(Ehe.Provider,{value:{fieldPrefix:n,editing:e,services:pe?dM:a,currency:pe?"AUD":s,serviceId:pe?dM[0].id:d,setServiceId:c,service:pe?dM[0]:$,requiresPayment:pe?!1:H,date:p,earliestDate:f,setDate:m,setDateTouched:w,availability:Ne??x,loadingSlots:pe?!1:X,noSlotsMessage:b,selectedStart:Ne?Ne.slots[0]?.start??"":y,setSelectedStart:S,customerTimezone:O,name:E,setName:T,email:_,setEmail:P,phone:I,setPhone:D,notes:F,setNotes:A,confirmation:Y??ce,submitting:V,error:J,canSubmit:pe?!1:ee,handleSubmit:se,sample:!!pe},children:o})}import{jsx as bO,Fragment as Che,jsxs as Rhe}from"react/jsx-runtime";var Ohe=`sf-button group inline-flex items-center justify-center gap-2.5 border ${ere} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,Nhe={primary:"border-btn bg-btn text-btn-ink hover:border-btn-2 hover:bg-btn-2",ghost:"border-current bg-transparent hover:bg-white/10"};function va(e){let{variant:t="primary",arrow:o,glyphBefore:n,spread:r,className:a,style:i,part:s,glyphPart:l,children:d,href:c,newTab:p,hrefRewrite:m,...f}=e,g=`${r?Ohe.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):Ohe} ${Nhe[t]??Nhe.primary} ${a??""}`,h=n?Rhe(Che,{children:[o!==null&&bO("span",{"aria-hidden":!0,className:"inline-flex",...l,children:o??"\u2192"}),d]}):Rhe(Che,{children:[d,o!==null&&bO("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",...l,children:o??"\u2192"})]});return c?bO(Tt,{href:c,className:g,style:i,newTab:p?!0:"auto",...m?{hrefRewrite:m}:{},...s,children:h}):bO("button",{type:"button",className:g,style:i,...f,children:h})}import{jsx as AKe}from"react/jsx-runtime";var ak=e=>AKe("div",{className:"grid bg-bg",children:e});import{jsx as mo,jsxs as yd}from"react/jsx-runtime";var ik="w-full border-2 border-line bg-bg px-4 py-4 font-[family-name:var(--bk-value-font,var(--font-display))] text-[length:var(--bk-value-size,17px)] text-fg outline-none transition-colors placeholder:text-fg-dim hover:border-fg-dim focus:border-accent";function IKe(e,t){let o=Number(e);if(o===0)return $h;try{return yse(o,t)}catch{return`${t} ${e}`}}var Lhe={selected:!0};function Ahe(e,t){return({index:o})=>t?{[e_]:t_(e,o)}:{}}var sk="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function pM({number:e,children:t}){return yd("div",{className:"mb-4 flex items-center gap-3",children:[mo("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full border border-line font-[family-name:var(--bk-step-font,var(--font-mono))] text-[length:var(--bk-step-size,11px)] font-semibold text-fg-dim",children:e}),mo("h3",{className:"font-[family-name:var(--bk-step-font,var(--font-mono))] text-[length:var(--bk-step-size,12px)] font-semibold uppercase tracking-[0.2em] text-fg",children:t})]})}function wO({eyebrow:e,heading:t,intro:o}){return yd("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&mo("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&mo("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.98] tracking-[-0.025em] text-fg max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:t}),(o??"").trim()&&mo("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function xO({style:e,owner:t}){let{fieldPrefix:o,services:n,currency:r,serviceId:a,setServiceId:i,requiresPayment:s,date:l,earliestDate:d,setDate:c,setDateTouched:p,availability:m,loadingSlots:f,noSlotsMessage:g,selectedStart:h,setSelectedStart:w,customerTimezone:b,editing:k}=af();if(!n)return null;let x=Date.now(),v=ml(b,m?.timezone??""),y=ml(m?.timezone??""),S=y&&y!==v?y:"",E=(m?.slots??[]).map(T=>({start:T.start,time:sM(T.start,v),businessTime:S?`${sM(T.start,S)} business`:"",passed:!k&&gO(T.start,x)}));return yd(z,{className:"flex flex-col gap-10",style:e,children:[yd("div",{children:[mo(pM,{number:"01",children:"Choose a service"}),mo("div",{className:"grid gap-3 sm:grid-cols-2",children:mo(Ge,{ownerId:t.id,ownerType:t.type,slot:mg,Template:t.serviceTemplate,rows:n.map(T=>({name:T.name,meta:`${T.durationMinutes} min \xB7 ${IKe(T.price,r)}`,description:T.description??""})),states:n.map(T=>T.id===a?Lhe:void 0),actions:k?void 0:n.map(T=>({press:()=>i(T.id),label:T.name})),copyAttrs:Ahe(mg,k),fallback:null,wrapCopy:ak,children:T=>mo(Fo,{children:T})})}),s&&mo("p",{className:"mt-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.14em] text-alert",role:"alert",children:"This service requires an upfront payment and cannot be booked through this form yet."})]}),yd("div",{children:[mo(pM,{number:"02",children:"Choose a date and time"}),mo($r,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:sk,children:mo("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:T=>{p(!0),c(T.target.value)},className:ik,required:!0})}),mo("div",{className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-3 min-[1200px]:grid-cols-4",role:"group","aria-label":"Available appointment times",children:f?mo("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",children:"Loading times\u2026"}):m?.slots.length?mo(Ge,{ownerId:t.id,ownerType:t.type,slot:ug,Template:t.timeTemplate,rows:E.map(T=>({time:T.time,businessTime:T.businessTime})),states:E.map(T=>T.start===h&&!T.passed?Lhe:void 0),actions:k?void 0:E.map(T=>({press:()=>w(T.start),label:T.time,disabled:T.passed})),copyAttrs:Ahe(ug,k),fallback:null,wrapCopy:ak,children:T=>mo(Fo,{children:T})}):g?mo("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",role:"status",children:g}):null}),v&&!f&&!!m?.slots.length&&yd("p",{className:"mt-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,10px)] uppercase tracking-[0.16em] text-fg-dim",children:["Times shown in ",v,S?` \xB7 business timezone ${S}`:""]})]})]})}function yO({buttonLabel:e,style:t}){let{fieldPrefix:o,editing:n,name:r,setName:a,email:i,setEmail:s,phone:l,setPhone:d,notes:c,setNotes:p,submitting:m,error:f,canSubmit:g}=af();return yd(z,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[mo(pM,{number:"03",children:"Your details"}),yd("div",{className:"flex flex-col gap-4",children:[mo($r,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:sk,children:mo("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:h=>a(h.target.value),className:ik,required:!0})}),mo($r,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:sk,children:mo("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:h=>s(h.target.value),className:ik,required:!0})}),mo($r,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:sk,children:mo("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:h=>d(h.target.value),className:ik})}),mo($r,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:sk,children:mo("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:h=>p(h.target.value),className:`${ik} resize-y`})})]}),f&&mo("p",{className:"mt-4 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.16em] text-alert",role:"alert",children:f}),mo(va,{type:n?"button":"submit",disabled:!g,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:m?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function vO({successMessage:e}){let{confirmation:t,customerTimezone:o}=af();if(!t)return null;let n=ml(t.customerTimezone,o,t.timezone),r=ml(t.timezone),a=r&&r!==n?r:"";return yd("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[yd("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),mo("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),mo("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:lM(t.startAt,n)}),a&&yd("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",lM(t.startAt,a)]}),(e??"").trim()&&mo("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),mo(va,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!Phe(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as px}from"react/jsx-runtime";var Ihe=["head","booking","details","confirm"],Fhe={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function mM({region:e,nodeId:t="BookingBox",serviceTemplate:o,timeTemplate:n,eyebrow:r,heading:a,intro:i,buttonLabel:s,successMessage:l,...d}){let{confirmation:c,services:p}=af(),m=Rme(d);return e==="head"?px(z,{className:"min-[960px]:col-span-2",style:m,children:px(wO,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?px(z,{className:"min-[960px]:col-span-2",style:m,children:px(vO,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?px(xO,{style:m,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?px(yO,{buttonLabel:s,style:m}):null}import{useEffect as Bhe,useState as sf}from"react";import{jsx as mx,jsxs as BKe}from"react/jsx-runtime";function Hc(e,t){let[o,n]=sf(void 0),[r,a]=sf(0);return Bhe(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return Bo.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),Bhe(()=>{if(t===void 0)return bR(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var FKe="Something went wrong \u2014 your submission wasn't sent. Please try again.";function ux(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function lf({form:e,formSlug:t,editing:o=!1}){let[n,r]=sf({}),[a,i]=sf(""),[s,l]=sf(!1),[d,c]=sf(!1),[p,m]=sf(null),[f,g]=sf(null);async function h(w){if(w.preventDefault(),!(o||s||!e||!t)){l(!0),g(null);try{let b=e.fields.map(x=>({fieldKey:x.key,value:n[x.key]??""})),k=await Bo.submitForm(t,{answers:b,...a?{company:a}:{}});m(k?.account??null),c(!0)}catch{g(FKe)}finally{l(!1)}}}return{valueOf:w=>n[w]??"",set:(w,b)=>r(k=>({...k,[w]:b})),honeypot:a,setHoneypot:i,submitting:s,done:d,account:p,error:f,handleSubmit:h}}function fx({value:e,onChange:t}){return mx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:o=>t(o.target.value)})}function df({field:e,value:t,onChange:o,className:n,rows:r=5,placeholder:a,ariaLabel:i}){let s=a??e.placeholder,l=i?.trim()?{"aria-label":i.trim()}:{};return e.type==="textarea"?mx("textarea",{required:e.required,rows:r,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l}):e.type==="select"?BKe("select",{required:e.required,value:t,onChange:d=>o(d.target.value),className:n,...l,children:[mx("option",{value:"",children:s||"Select\u2026"}),e.options.map(d=>mx("option",{value:d,children:d},d))]}):e.type==="checkbox"?mx("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:d=>o(d.target.checked?"true":""),className:n}):mx("input",{type:e.type==="email"?"email":e.type==="tel"?"tel":"text",required:e.required,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l})}var Wt={eyebrow:"Section number",title:"Show *us yours.*",body:"Tell people what they get for submitting, and what you do with what they send.",buttonText:"Submit \u2192",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties."};import{jsx as vl,jsxs as lk}from"react/jsx-runtime";function HKe(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function Hhe({eyebrow:e,title:t}){return lk("div",{className:"flex flex-col gap-4",children:[e&&vl(lt,{text:e,scaled:!1}),t&&vl("h2",{className:"font-display text-[min(clamp(40px,5vw,72px),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:te(t,!0)})]})}function kO({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return lk("div",{className:"flex flex-col gap-8",children:[e&&Bt(e).map((l,d)=>vl("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:L(l)},d)),a&&(n?r.done?vl("p",{role:"status",className:"max-w-[480px] font-[family-name:var(--sb-thanks-font,var(--font-serif))] text-[length:var(--sb-thanks-size,17px)] italic leading-[1.6] text-fg-dim",children:ux(n)}):lk("form",{className:"grid grid-cols-2 gap-2",onSubmit:r.handleSubmit,children:[n.fields.map(l=>{let d=["border border-line bg-transparent px-4 py-4 font-[family-name:var(--sb-field-font,var(--font-mono))] text-[length:var(--sb-field-size,14px)] tracking-[0.1em] text-fg outline-none focus:border-accent",HKe(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?lk("label",{className:"col-span-2 flex items-start gap-3 font-[family-name:var(--sb-tick-font,var(--font-mono))] text-[length:var(--sb-tick-size,12px)] uppercase tracking-[0.18em] text-fg-dim",children:[vl(df,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),lk("span",{children:[l.label,l.required?vl("span",{className:"text-accent",children:" *"}):null]})]},l.key):vl(df,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),rows:4,placeholder:l.placeholder||l.label,ariaLabel:l.label,className:l.type==="textarea"?`${d} resize-y`:d},l.key)}),vl(fx,{value:r.honeypot,onChange:r.setHoneypot}),r.error&&vl("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:r.error}),vl("button",{type:s?"button":"submit",disabled:r.submitting,className:"col-span-2 cursor-pointer bg-btn px-6 py-4 font-mono text-[14px] uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg hover:text-bg disabled:cursor-wait disabled:opacity-60",children:r.submitting?"Sending\u2026":L(t||Wt.buttonText)})]}):vl("p",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:i?u("Loading form\u2026"):u("Choose a form in the inspector, under Form \u2014 until then this form is hidden on the live page and nothing can be submitted.")})),a&&o&&vl("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:L(o)})]})}var SO=["field","tick","thanks"],Dhe={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},TO={field:"styleField",tick:"styleTick",thanks:"styleThanks"},DKe={field:{font:"--sb-field-font",size:"--sb-field-size"},tick:{font:"--sb-tick-font",size:"--sb-tick-size"},thanks:{font:"--sb-thanks-font",size:"--sb-thanks-size"}};function MKe(e){return typeof e=="string"&&Y0.includes(e)?e:null}function Mhe(e){let t={};for(let o of SO){let n=MKe(e[TO[o]]);n&&Object.assign(t,Ku(n,DKe[o]))}return t}import{jsx as EO}from"react/jsx-runtime";var zhe=["head","form"],Whe={head:"Head",form:"Form"};function uM({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=Hc(i,s),p=lf({form:c,formSlug:i,editing:l}),m=Mhe(d);return e==="head"?EO(z,{as:"div",style:m,children:EO(Mt,{look:"statement",num:t,title:o})}):EO(z,{as:"div",style:m,children:EO(kO,{body:n??"",buttonLabel:r??"",consent:a??"",form:c,submission:p,showForm:!!c||l,resolving:c===void 0,editing:l})})}var zKe={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>Ihe.map(e=>({region:e,name:Fhe[e]})),addBlocked:()=>u("A Booking Form is these three boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},SubmitBuild:{slot:"boxes",childType:"SubmitBox",addLabel:"Add box",fixed:!0,seeds:()=>zhe.map(e=>({region:e,name:Whe[e]})),addBlocked:()=>u("A Submit-a-build section is these two boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},Collections:{slot:"cards",childType:"CollectionCard",addLabel:"Add card",seeds:()=>Array.from({length:ahe},()=>({collection:null}))},ProductGrid:{slot:"products",childType:"ProductRef",addLabel:"Add product",seeds:()=>[{code:""},{code:""},{code:""}],legacy:e=>Array.isArray(e.design_codes)?e.design_codes.map(t=>t?.code).filter(t=>!!t).map(t=>({code:t})):[]},GalleryB:{slot:"items",childType:"GalleryItem",addLabel:"Add image",seeds:()=>ghe.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};Noe(zKe);import{jsx as Uhe}from"react/jsx-runtime";var WKe={body:"text-[length:var(--size-body,17px)]"},lm=5;function hx({rating:e}){let t=Math.min(lm,Math.max(0,Math.round(e)));return Uhe(z,{role:"img","aria-label":`${t} out of ${lm} stars`,className:`flex gap-1 ${WKe.body} leading-none`,children:Array.from({length:lm}).map((o,n)=>Uhe("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var fM="mx-auto max-w-[var(--sf-site-width,1600px)]",UKe=[/^border(-[tblrxy])?$/,/^border-line$/,/^bg-/,/^mx-auto$/,/^max-w-\[var\(--sf-site-width/,/--sf-site-gutter/,/^p[xytblr]?-(\d+(\.\d+)?|px|\[\d+(\.\d+)?px\])$/];function Ghe(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function hM(e){return e.split(/\s+/).filter(t=>t&&!UKe.some(o=>o.test(Ghe(t)))).join(" ")}var GKe=new Set(["max-view-desktop","max-view-wide"]);function $Ke(e){let t=/^\[(\d+(?:\.\d+)?)px\]$/.exec(e);return t?Number(t[1]):e==="px"?1:/^\d+(\.\d+)?$/.test(e)?Number(e)*4:void 0}function gx(e){let t=0,o,n=!1;for(let r of e.split(/\s+/)){if(!r)continue;let a=r.lastIndexOf(":"),i=a<0?"":r.slice(0,a),s=Ghe(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?$Ke(l[1]):void 0;d!==void 0&&(i?GKe.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as KKe,jsx as VKe}from"react/jsx-runtime";function gM({inBox:e,atTop:t,anyBox:o=!1}){let n=hu(),r=Nb();return VKe(KKe,{children:n||o&&r?e:t})}import{createContext as $he,useContext as wM}from"react";import{Fragment as jKe,jsx as bM}from"react/jsx-runtime";var YKe={atTop:null,inBox:null},xM=$he(YKe);function PO({pad:e,children:t}){return bM(xM.Provider,{value:e,children:t})}var pr=()=>wM(xM).atTop,Khe=()=>wM(xM),Vhe=$he(void 0);function Yhe({pads:e,children:t}){return e?bM(Vhe.Provider,{value:e,children:t}):bM(jKe,{children:t})}var jhe=()=>wM(Vhe);import{jsx as dk}from"react/jsx-runtime";function yt({className:e,capped:t=!1,column:o=Ci,style:n,defaults:r,id:a,attrs:i,rootRef:s,inAnyBox:l=!1,padOnColumn:d=!1,children:c}){let p=he(),m=Khe(),f=hM(e),g=o===null?"":hM(o),{className:h,style:w,...b}=Te(f,m.inBox,n),k=dk(z,{as:"section",ref:s,...i,...b,className:h||void 0,style:w,id:a,children:g?dk("div",{className:g,children:c}):c}),x=r?{...r,...n}:n,v=d?null:m.atTop,y=d?m.atTop:null,{className:S,style:E,...T}=Te(t?`${fM} ${e}`:e,v,x),_=dk(z,{as:"section",ref:s,...i,...T,className:S,style:E,id:a,children:o===null?c:dk("div",{...Te(fe(o,p),y),children:c})});return dk(gM,{inBox:k,atTop:_,anyBox:l})}import{Fragment as XKe,jsx as dm,jsxs as _O}from"react/jsx-runtime";var bx={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,19px)]",label:"text-[length:var(--size-label,12px)]"},qKe="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[84px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",yM="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-0 pb-[84px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]";function vM({look:e,eyebrow:t,title:o,columns:n,rows:r=[],editing:a=!1,sample:i=!1,cards:s,omitHead:l=!1}){let d=Math.min(3,Math.max(1,n??3));return!a&&r.length===0?null:_O(yt,{className:"relative z-[2] border-t border-line bg-surface",column:l?yM:qKe,padOnColumn:!0,children:[l?null:_O(XKe,{children:[(t??"").trim()&&dm(lt,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&dm("h2",{className:`mb-12 font-heading2 ${bx.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${bx.headingMediumUpTo800}`,children:te(o??"",!1)})]}),dm("div",{className:"sf-card grid grid-cols-1 gap-px border border-line bg-line min-[700px]:[grid-template-columns:repeat(var(--rv-cols),minmax(0,1fr))]",style:{"--rv-cols":String(d)},children:s??r.map(c=>_O("article",{className:["flex flex-col gap-4 bg-bg p-10 max-view-wide:p-8",i?"opacity-60":""].join(" "),children:[c.rating!==void 0&&dm(hx,{rating:c.rating}),(c.title??"").trim()&&dm("h3",{className:`font-display ${bx.bodyLarge} font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg`,children:c.title}),dm("div",{className:`flex-1 font-serif ${bx.bodySmall} leading-[1.65] text-fg-dim`,children:Bt(c.quote).map((p,m)=>dm("p",{className:m?"mt-3":"",children:p},m))}),_O("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-5",children:[dm("span",{className:`font-mono ${bx.label} uppercase tracking-[0.22em] text-fg`,children:c.name}),dm("span",{className:`font-mono ${bx.label} uppercase tracking-[0.18em] text-fg-dim`,children:c.meta??""})]})]},c.key))})]})}var qhe=gx(yM),kM={top:84,bottom:qhe.bottom,topPhone:84,bottomPhone:qhe.bottomPhone},Xhe=kM,[ZKe,JKe]=i2("Testimonials"),QKe={type:Vs,props:{...ze,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[Ys]:[{type:"Text",props:{...Ue,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Ie("quote",_t,{size:16,lineHeight:1.6}),{type:Vs,props:{...ze,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[Ys]:[Ie("name",Ue,{...Ql,weight:500,letterSpacing:.04}),Ie("role",_t,{textStyle:"body-5"})]}}]}},eVe={name:"Testimonials",boxProps:e=>({...oc,direction:"column",gap:44,sectionBorder:{top:1},...nu(e,Xhe)}),box:[...Op,...Ch(Xhe)],parts:[{kind:"group",name:"Heading",props:{...ze,gap:16},parts:[{...ZKe,props:Ue},{...JKe,props:Ue,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[QKe]}}],site:TQ("title"),drop:{...nc,...rc,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Testimonials' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the Reviews block, which is always own-box here"}};Nn({Testimonials:eVe});var Yr={inline:"border-b border-line py-[120px] max-view-desktop:py-20",ownBox:"border-b border-line pt-0 pb-[120px] max-view-desktop:pt-0 max-view-desktop:pb-20"};import{phoneKey as RO,tabletKey as SM}from"efficient-easel/draw";var tVe={textStyle:"body-5",...ho("label",14),letterSpacing:.05,lineHeight:1.5},oVe={type:Vs,props:{...ze,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[RO("share")]:"content",[RO("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[Ys]:[Ie("label",_t,{...Aa(14),letterSpacing:.05,lineHeight:1.5}),Ie("value",{...Ue,align:"right"},{...tVe,align:"right"})]}},Zhe={[Oh]:u_},nVe=["dynamic","source","finish","size","wheel"],ck=ol("SpecTable",{slots:{template:[oVe]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...ze,direction:"row",share:"content",gap:48,[SM("gap")]:80,[RO("gap")]:80,...Zhe}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),rVe=ck.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(nVe.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),CO=gx(Yr.ownBox),aVe={...ck,parts:rVe,boxProps:(e,t)=>{let o=typeof ck.boxProps=="function"?ck.boxProps(e,t):ck.boxProps;return{...o,sectionPaddingBottom:CO.bottom,sectionPaddingBottomPhone:CO.bottomPhone,...Zhe,[SM("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[SM("sectionPaddingBottom")]:CO.bottomPhone,[RO("gap")]:36,...CO.line?{sectionBorder:s_({bottom:1})}:{}}}};Nn({SpecTable:aVe});Nn({ProductGrid:ol("ProductGrid",{slots:{[Nt]:[cue()]},pressHeading:!0})});Nn({Events:ol("Events",{slots:{[Nt]:$8()},coreProps:{sectionAccent:_P},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});Nn({Collections:ol("Collections",{slots:{[Nt]:[K8()]},roomBelow:dpe,pressHeading:!0})});Nn({GalleryB:ol("GalleryB",{slots:{[Nt]:[V8()]},roomBelow:{bottom:pi.bottom,bottomPhone:i5},pressHeading:!0})});Nn({[dr]:{name:"Product hero",box:[...XZ],boxProps:{direction:"column",gap:0,gapPhone:0,...mt(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[Uw]:Gw},slots:e=>({[Nt]:g8(e)})}]}});var TM=gx(Yr.ownBox);Nn({FitmentTable:ol("FitmentTable",{slots:{[H5]:[qme()],[Vu]:[Xme()]},roomBelow:{bottom:TM.bottom,bottomPhone:TM.bottomPhone},boxProps:TM.line?{sectionBorder:s_({bottom:1})}:{},pressHeading:!0})});var iVe=e=>({type:Vs,props:{...ze,name:"Row",mirrorCards:e?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[Ys]:[{type:Vs,props:{...ze,name:"Words",direction:"column",gap:16},slots:{[Ys]:[Ie("eyebrow",Ue,{...Aa(13),color:"accent"}),Ie("title",Ue,{textStyle:"heading-2",...ho("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Ie("copy",_t,{textStyle:"body-1",...ho("body",15),lineHeight:1.6})]}},{type:Vs,props:{...ze,name:"Picture",direction:"column",gap:12},slots:{[Ys]:[{type:"ImageBlock",props:{[Ws]:"image",aspect:"1/1",fit:"contain"}},Ie("tag",{..._t,align:"right"},{...Aa(11),align:"right"})]}}]}}),sVe={name:"Feature Rows",boxProps:{...oc,...PQ,direction:"column",gap:0},box:Op,parts:[{kind:"core",keep:"rest",slots:e=>({template:[iVe(e.startLeft===!0)]})}]};Nn({DetailRows:sVe});import{phoneKey as PM}from"efficient-easel/draw";var NO=e=>[...Op.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>i_(t,n)],...Ch(e)],_M=(e,t,o)=>(n,r)=>({...oc,sectionAccent:i_(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...nu(n,e)}),CM=(e,t,o)=>({kind:"text",key:e,role:"heading",props:Ue,style:{textStyle:"heading-2",...ho("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),RM=(e,t,o={})=>({kind:"group",name:"Heading",props:{...ze,gap:e,gapPhone:e,...o},parts:t}),OM=(e={})=>({kind:"core",keep:"rest",props:r_,...e}),OO=kM,[lVe]=i2("ReviewForm"),dVe=()=>({name:"Review Form",boxProps:_M(OO,48,32),box:NO(OO),parts:[RM(16,[{...lVe,props:Ue},CM("title",1,-.02)]),OM()],pressKeepsEmpty:["eyebrow","title"],drop:{...nc,...rc,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[cVe]=i2("Reviews"),EM=e=>({...Aa(12),letterSpacing:e}),pVe={type:Vs,props:{...ze,name:"Card",gap:16,...mt(40,40,32,32),sectionAccent:0},slots:{[Ys]:[{type:"RatingBlock",props:{[Ws]:"rating"}},Ie("title",Ue,{textStyle:"heading-1",...ho("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Ie("quote",_t,{textStyle:"body-1",...ho("body",15),lineHeight:1.65}),{type:Vs,props:{...ze,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[PM("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[Ys]:[Ie("name",Ue,EM(.22)),Ie("dateLabel",{..._t,align:"right"},{...EM(.18),align:"right"}),Ie("role",{..._t,align:"right"},{...EM(.18),align:"right"})]}}]}},mVe=()=>({name:"Reviews",boxProps:_M(OO,48,32),box:NO(OO),parts:[RM(16,[{...cVe,props:Ue},CM("title",1,-.02)]),OM({slots:{template:[pVe]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...nc,...rc,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Reviews' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the reviews, which are always own-box here"}}),Jhe={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},uVe=()=>({name:"Booking Form",boxProps:_M(Jhe,40,40),box:NO(Jhe),parts:[RM(16,[a_("eyebrow",{...ho("label",12),weight:600,letterSpacing:.24,color:"accent"}),CM("heading",.98,-.025),{kind:"text",key:"intro",props:{..._t,maxWidth:660},style:{textStyle:"heading-1",...ho("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),OM()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...nc,...rc}}),Qhe={top:88,bottom:88,topPhone:64,bottomPhone:64},fVe=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...oc,direction:"column",align:"center",gap:20,gapPhone:20,...nu(e,Qhe)}),box:[...Op,...Ch(Qhe)],parts:[{...a_("eyebrow"),props:{...Ue,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...Ue,align:"center",maxWidth:720},style:{textStyle:"heading-1",...ho("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...Ue,align:"center",maxWidth:560},style:{textStyle:"body-1",...ho("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...ze,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[PM("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...SQ,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...f2,align:"center",icon:"none"},style:{...Km(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...nc,...rc}}),ege={top:60,bottom:0,topPhone:60,bottomPhone:0},hVe=()=>({name:"Contact Form",boxProps:(e,t)=>({...oc,sectionAccent:i_(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...nu(e,ege)}),box:NO(ege),parts:[{kind:"group",name:"Header",props:{...ze,direction:"row",align:"center",share:"content",phoneRow:2,[PM("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[a_("routingNumber"),{kind:"text",key:"routingTagline",props:_t,style:{textStyle:"heading-1",...ho("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:EQ(e.sectionAccent??0,t)})}}],drop:{...nc,...rc}});Nn({ContactRouting:hVe(),ReviewForm:dVe(),AppointmentBooking:uVe(),Reviews:mVe(),CheckoutCTA:fVe()});var tge={top:40,bottom:40,topPhone:40,bottomPhone:40},oge={textStyle:"heading-1",...JQ("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},NM=["heading","intro"],nge=[Nt,Ua,Ga,$a];function gVe(e,t){let o=(t?ob:zX)(Po,e);return Object.fromEntries(nge.map(n=>[n,o[n]]))}var bVe=()=>({name:"List",boxProps:e=>({...oc,direction:"column",gap:24,gapPhone:24,...nu(e,tge)}),box:[...Op,...Ch(tge)],parts:[{kind:"group",name:"Heading",props:{...ze,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...Ue,tag:"h1"},style:oge,when:e=>!w6(e)},{kind:"text",key:"heading",role:"heading",props:{...Ue,tag:"h2"},style:oge,when:w6},{kind:"text",key:"intro",role:"body",props:_t,style:{textStyle:"body-1",...ho("body",15)}}]},{kind:"core",keep:"rest",props:r_,derive:{reads:[...nge],props:(e,t)=>gVe(e,t.press===!0)}}],pressKeepsEmpty:NM,drop:{...nc,...rc,[E_]:"read by the heading part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}});Nn({AlloyWheelsListing:bVe()});var rge={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as wVe,useContext as xVe}from"react";function gt(e){return Ht}import{Fragment as vVe,jsx as wx}from"react/jsx-runtime";var yVe=gt("ProductCard")("buy"),Co={headingSmall1:"text-[length:var(--size-headingSmall,22px)]",headingSmall2:"text-[length:var(--size-headingSmall,30px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},xx=wVe("catalog");function ks(){return xVe(xx)==="catalog"}function cf({children:e}){let t=ks();return wx(vVe,{children:e??(t?wx(z,{"aria-hidden":!0}):null)})}function yx({children:e}){return wx(cf,{children:e?wx(z,{children:e}):null})}function LO({children:e}){return wx(cf,{children:e?wx(z,{className:"[.sf-card-rows>*>&]:self-end",...yVe,children:e}):null})}var age={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:sP(Co.label),writable:!0,sized:!0}},ige={sku:{label:"SKU",follows:"Label",builtIn:sP(Co.label),writable:!0,sized:!0}},sge={name:{label:"Name",follows:"Heading 3",builtIn:sP(Co.headingSmall2),writable:!0,sized:!0}};uie({ProductPrice:rge,ProductEyebrow:age,ProductName:sge,ProductSku:ige});function vx(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as kVe}from"react/jsx-runtime";import{OpacityIcon as SVe}from"efficient-easel/icons";import{group as AO}from"efficient-easel/screen/lib/document/box-fields";var lge={fields:{_gContent:AO("Content"),eyebrow:U("Eyebrow",mu.eyebrow),title:q("Heading",mu.title),body:q("Body",mu.body),_gBackground:AO("Background image"),imageSrc:Qe("Image","image/*"),overlay:ae("Overlay",kVe(SVe,{}),0,100,5,60,"%"),_gButton:AO("Button"),...xl,_gLayout:AO("Layout")}};import{jsx as pk}from"react/jsx-runtime";import{GroundIcon as cge,ListIcon as TVe}from"efficient-easel/icons";function pge(e){let t=e?.data?.root,o=Bte(t?.props)??"";return o&&W6(o,"text").length?o:""}var LM="outsideCardTemplate",EVe={not:{context:LM,is:!0}},Va={[LM]:(e,t)=>{let o=Ep(t.appState,e.props?.id);if(o!==void 0)return o===null&&!pge(t.appState)},[Gq]:(e,t)=>{let o=td(t.appState,e.props?.id);return o===void 0?void 0:!o.inCopy},[Kq]:(e,t)=>td(t.appState,e.props?.id)?.inCopy};function jr(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?pk(ua,{noun:"link"}):t==="colour"?pk(cge,{}):pk(TVe,{}),a={...ne(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return at(a,EVe)}function Dc(){return jr("Link from","link")}var PVe={any:[{field:Vo,set:!1},{context:LM,is:!0,default:!0}]};function pf(e){return at(e,PVe)}function mk(e){return e.kind==="link"?Pr(Q(e.label)):e.kind==="colour"?_Ve(e.label):e.multiline?je(e.label):ye(e.label)}function _Ve(e){return{type:"custom",render:({value:t,onChange:o})=>pk(Dre,{label:e,icon:pk(cge,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function CVe(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var dge=new WeakMap;function Ya(e,t,o){let n=Object.keys(e).filter(y=>CVe(e[y]));if(!n.length)return e;let r=t.props??{},a=Ep(o.appState,r.id),i=typeof a?.type=="string"?a.type:"",s=a?zF(o.appState,r.id)??"":"",l=n.map(y=>typeof r[y]=="string"?r[y].trim():""),d=dt(a?.props),c=i===Mr?Ep(o.appState,a?.props?.id):null,p=c?zF(o.appState,a?.props?.id)??void 0:void 0,m=c?mP(a?.props,c.type,p):"",f=c?dt(c.props):"",g=c?`${String(c.type??"")}\0${f}\0${p??""}`:"",h=i===Mr&&!c?JSON.stringify(a?.props?.[HX]??null):"",w=a?"":pge(o.appState),b=[i,s,d,m,g,h,YE(),w,Rte(),...l].join("\0"),k=dge.get(e);k||dge.set(e,k=new Map);let x=k.get(b);if(x)return x;let v={...e};return n.forEach((y,S)=>{let E=e[y],T=i===Mr?kh(o.appState,a,E.cardRowKind):i?UX(a,E.cardRowKind,s||void 0):W6(w,E.cardRowKind),_=E.cardRowKind==="link"&&!!i&&!T.length;if(!l[S]&&(_||(E.cardRowContent?!i||!T.length:!T.length&&!i&&w))){delete v[y];return}let P=l[S]&&!T.some(F=>F.key===l[S])?l[S]:"",I=E.cardRowKind==="list",D=(F,A)=>I&&A===0&&F.key!==l[S]?"":F.key;v[y]={...E,options:[...I?[]:E.options,...T.map((F,A)=>({label:F.label,value:D(F,A)})),...P?[{label:P,value:P}]:[]]}}),k.set(b,v),v}import{group as uge}from"efficient-easel/screen/lib/document/box-fields";var IO={meta:"Trailing note"},mge={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var fge={fields:{_gContent:uge("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:Q("Label"),href:Pr(Q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:U("Trailing note",IO.meta),_gText:uge("Text"),rowField:jr("Shows","text")},resolveFields:(e,t)=>Ya(t.fields,e,t),showWhenFacts:Va};import{jsx as fi,jsxs as BVe}from"react/jsx-runtime";import{ButtonIcon as HVe,ButtonIconIcon as DVe,IconAfterTextIcon as MVe,IconBeforeTextIcon as zVe}from"efficient-easel/icons";import{SettingsField as WVe}from"efficient-easel/panel";import{useSelectedFields as vge}from"efficient-easel/easel";import{buttonFieldSet as UVe}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as GVe}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as $Ve,Segmented as KVe}from"efficient-shell/ui";function FO(e){return typeof e=="boolean"?e:!0}import{parseOption as RVe}from"efficient-shell/format";var AM=["none","arrow-right","arrow-long-right","arrow-up-right","chevron-right","external","cart","bag","tag","email","location","play","download","search","car","phone","wheel","chat","chevron-left","package","truck","shield-check","receipt-refund"],OVe=["before","after","end"];function IM(e){return typeof e=="string"&&AM.includes(e)?e:void 0}function hge(e,t){return IM(e)??(FO(t)?"arrow-right":"none")}function uk(e){return RVe(OVe,"after",e)}function gge(e,t){return uk(e)==="end"&&Sg(t)==="fill"}function Sg(e){return e==="fill"||e==="fixed"?"fill":"fit"}function bge(e,t,o,{atSectionLine:n=!1}={}){let r=Sg(e);if(Sr(o)){let i=Sg(o),s=Sr(t)?Sg(t):i;return n?[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-tablet:max-view-desktop:w-full":"view-tablet:max-view-desktop:w-auto",s==="fill"?"max-view-tablet:w-full":"max-view-tablet:w-auto"].join(" "):[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-wide:max-view-desktop:w-full":"view-wide:max-view-desktop:w-auto",s==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto"].join(" ")}let a=r==="fill"?["w-full"]:[];if(Sr(t)){let i=Sg(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as DO}from"efficient-easel/screen/lib/document/style-fields";import{group as wge}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as VVe}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as FM}from"react/jsx-runtime";import{LockIcon as NVe}from"efficient-easel/icons";import{FieldText as LVe}from"efficient-easel/fields";import{SettingsField as AVe}from"efficient-easel/panel";import{keptByRow as IVe}from"efficient-easel/screen/lib/document/style-fields";function FVe(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??Kne}-words`;return FM(AVe,{label:u("Words"),icon:FM(NVe,{}),htmlFor:o,children:FM(LVe,{id:o,value:u("Set by country"),onChange:()=>{},readOnly:!0})})}}}function BO(e){return IVe(e)}function HO(e,t,o,n=[]){return xC(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?FVe():a]))}var BM=e=>dC(e==="none"?"no-symbol":e),YVe=AM.map(e=>({value:e,icon:e==="none"?hne(BM(e),fi(V6,{value:e})):BM(e)})),kge=Q("Button");function jVe({value:e,onChange:t}){let o=vge(),n=o.values.href,r=typeof e=="string"?e:e&&typeof e=="object"&&"text"in e?String(e.text??""):"";return o.fields&&"href"in o.fields?fi(Qne,{label:"Button",icon:fi(HVe,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):kge.render({value:r,field:{label:"Button"},onChange:a=>t(vre(a))})}function qVe({value:e,onChange:t}){let o=vge(),n=hge(e,o.values.arrow),r=uk(o.values.iconPosition),a=Sg(o.values.widthFit)==="fill",i=BM("icon-at-end");return fi(WVe,{label:u("Icon"),icon:fi(DVe,{size:18}),value:n==="none"?void 0:fi(V6,{value:n}),children:BVe("div",{className:"flex items-center gap-2",children:[fi($Ve,{label:u("Icon"),value:n,options:YVe,onChange:t}),n!=="none"&&fi(KVe,{size:"sm",block:!0,label:u("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:fi(zVe,{size:16}),label:fi("span",{className:"sr-only",children:u("Icon before text")}),title:u("Icon before text")},{value:"after",icon:fi(MVe,{size:16}),label:fi("span",{className:"sr-only",children:u("Icon after text")}),title:u("Icon after text")},...a?[{value:"end",icon:i,label:fi("span",{className:"sr-only",children:u("Icon at the far end")}),title:u("Icon at the far end")}]:[]]})]})})}var xge=()=>$F(Zn().theme),yge=UVe({lengthUnits:aC,follows:{useFill:()=>xge().fill,useText:()=>xge().ink,useBorder:()=>{let[e]=mc("variant"),[t]=mc("buttonColor"),{theme:o}=Zn(),n=oB({variant:e,buttonColor:t}).border.width,r=Sr(t)??(e==="ghost"?eZ(o).text:$F(o).fill);return{width:n,color:r}},useCorners:()=>iZ(Zn().cornerRadiusPx),useFillOpacity:()=>oB({variant:mc("variant")[0]}).fillOpacity},usePresets:Cne,resetTo:e=>kre(e,u("Styles")),padding:{fallback:tre,tablet:!0},phone:GVe,say:Ab});function XVe(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var Sge={fields:{label:Tre(kge,e=>fi(jVe,{value:e.value,onChange:e.onChange})),labelText:Ore("label"),href:pf({...Ve("Button link"),...DO("label")}),consentWords:BO("label"),_gButton:wge("Button"),rowField:jr("Shows","text"),[Vo]:Dc(),...XVe(yge,VVe.Design),_gStyle:wge("Style"),variant:DO("buttonColor"),icon:{type:"custom",render:e=>fi(qVe,{value:e.value,onChange:e.onChange})},iconPosition:DO("icon"),arrow:DO("icon"),...yge},resolveFields:(e,t)=>HO(Ya(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:Va};import{jsx as fk}from"react/jsx-runtime";import{AccentIcon as ZVe,ColumnsIcon as _ge,StylesIcon as Cge}from"efficient-easel/icons";import{group as HM}from"efficient-easel/screen/lib/document/box-fields";import{newId as Ege}from"efficient-easel/data";function MO(e,{rows:t="items",label:o="title"}={}){let n=dt(e);return n?Tp(n).map(r=>({label:r.label,value:r.key})):(Array.isArray(e[t])?e[t]:[]).map((r,a)=>({label:typeof r?.[o]=="string"&&r[o].trim()||u("Card {n}",{n:a+1}),value:KX(nn(r),a)}))}var Tge=new WeakMap;function zO(e,t){let o=Tge.get(e);o||Tge.set(e,o=new Map);let n=JSON.stringify(t),r=o.get(n);return r||o.set(n,r={...e,options:[...e.options,...t]}),r}function Pge(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>Ege(t),enumerable:!0})}function WO(e,t="items"){if(!Array.isArray(e[t])||dt(e))return e;let o=e[t],n=typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",r=c=>c&&typeof c=="object"&&typeof c.key=="string"?c.key:"",a=!!n&&!o.some(c=>r(c)===n),i=new Set,s=e.highlightedCard,l=!1,d=o.map((c,p)=>{if(!c||typeof c!="object")return c;let m=r(c);if(m&&!i.has(m))return i.add(m),c;let f=!m&&a&&n===String(p+1);if(m||f){let g=Ege("card");return i.add(g),l=!0,f&&(s=g),{...c,key:g}}return c});return l?{...e,[t]:d,highlightedCard:s}:e}import{isNodeList as JVe}from"efficient-easel/data";var QVe=e=>JVe(e.template)&&e.template.length>0;function eYe(e,t){let o=QVe(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,zO(r,MO(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,nYe(r)]]:[[n,r]]))}var tYe=Object.fromEntries(n2("Cards").filter(e=>!e.everySource).map(e=>[e.key,mk(e)])),oYe=Object.fromEntries(n2("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,mk(e)])),Rge=new WeakMap;function nYe(e){let t=Rge.get(e);return t||Rge.set(e,t={...e,arrayFields:tYe}),t}var Oge={fields:{_gSource:HM("Source"),dataSource:oo("Card content","Manual"),[Zb]:Jb(),_gContent:HM("Content"),eyebrow:U("Eyebrow",gb.eyebrow),eyebrowLook:ne("Eyebrow style",fk(Cge,{}),[...Js],Np("Cards")),title:q("Heading",gb.title),items:{type:"array",label:"Cards",arrayFields:oYe,defaultItemProps:Pge({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},..._Q,highlightedCard:ne("Highlighted card",fk(ZVe,{}),[{label:"None",value:""}],""),highlightBadge:U("Highlight badge","Most popular"),_gStyle:HM("Style"),cardStyle:lo("Card style",fk(Cge,{}),[{label:"Cards",value:"cards",picture:nB.cards},{label:"Label only",value:"label-only",picture:nB["label-only"]}],"cards",{columns:2,cell:Er}),columns:ae("Columns",fk(_ge,{}),2,4,1,3),fillLastRow:oe("Last card fills its row",!1,fk(_ge,{}),"When the last row is short, its last card widens to fill it.")},resolveData:(e,t)=>{let o=t?.lastData?.props,n=cie(e.props,o),r=aP(n),a=r===e.props?e:{...e,props:r},i=a.props,s=WO(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=it(no("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,st.Cards.headRows),n=e.props,r=eYe(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:ye("Feature label"),href:Pr(Q("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:Np("KeyFeatures")}}:{}}}};import{jsx as rYe}from"react/jsx-runtime";import{StickyIcon as aYe}from"efficient-easel/icons";import{group as Nge}from"efficient-easel/screen/lib/document/box-fields";var Lge={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Label"),count:Q("Count")},getItemSummary:e=>e?.label?`${e.label}${e.count?` \xB7 ${e.count}`:""}`:"Tab"},activeTab:Qo(Pr(Q("Active tab","All"))),_gLinks:Nge("Links"),links:{type:"array",label:"Right links",arrayFields:{label:Q("Label"),href:Pr(Q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:Nge("Style"),sticky:oe("Stick to top",!0,rYe(aYe,{}))}};import{jsx as iYe}from"react/jsx-runtime";import{StylesIcon as sYe}from"efficient-easel/icons";import{group as Age}from"efficient-easel/screen/lib/document/box-fields";var lYe=[...ete],Ige={fields:_i({_gContent:Age("Content"),eyebrow:U("Chip label",Cb.eyebrow),title:q("Heading",Cb.title),body:q("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:ye("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:U("Caption","Illustrative example"),_gStyle:Age("Style"),chartStyle:lo("Chart style",iYe(sYe,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:EC.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:EC.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:EC.donut}],"bars",{columns:3,cell:Er}),valueSuffix:Qo(U("Value suffix","%"))},lYe,Ia)};import{jsx as EYe}from"react/jsx-runtime";import{group as PYe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as ot,Fragment as MM,jsxs as vd}from"react/jsx-runtime";import{useId as dYe,useState as cYe}from"react";import{InspectorUpLevel as hk}from"efficient-easel/chrome";import{useEasel as pYe}from"efficient-easel/easel";import{ListField as Dge}from"efficient-easel/fields";import{SettingsField as Mge}from"efficient-easel/panel";import{ClockIcon as Fge,ContrastIcon as mYe,GlobeIcon as uYe,LinkIcon as fYe,LocationIcon as hYe,PhoneIcon as gYe,SquareIcon as bYe,TypeIcon as zM}from"efficient-easel/icons";import{useSectionOps as wYe}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as xYe}from"efficient-easel/draw";var WM=(e,t)=>t||e?Sie(e,t):u("Ungrouped");function yYe(e){let t=[];return e.forEach((o,n)=>{let r=ku(o),a=t.find(i=>i.key===r);a||(a={key:r,name:String(o?.groupName??""),indices:[]},t.push(a)),a.indices.push(n)}),t}function DM({children:e}){return ot("div",{style:{fontSize:11,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--ink-faint)",margin:"14px 0 6px"},children:e})}var zge={width:"100%",height:32,textAlign:"left",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"0 12px",fontSize:12,border:"1px solid var(--line-strong)",borderRadius:6,background:"transparent",color:"inherit",cursor:"inherit"},vYe={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},Wge={...vYe,color:"var(--status-danger-soft-ink)"};function cm({label:e,value:t,placeholder:o,textarea:n,icon:r,onChange:a,onBlur:i,onKeyDown:s}){let l=dYe();return ot(Mge,{label:e,icon:r??ot(zM,{}),htmlFor:l,children:n?ot("textarea",{id:l,value:t,placeholder:o,onChange:d=>a(d.target.value)}):ot("input",{id:l,type:"text",value:t,placeholder:o,onChange:d=>a(d.target.value),onBlur:i,onKeyDown:s})})}var kYe=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],SYe=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function Bge({label:e,icon:t,options:o,value:n,onChange:r}){return ot(Mge,{label:e,icon:t,children:ot("div",{role:"group","aria-label":e,style:{display:"flex",gap:4,flex:1},children:o.map(a=>{let i=n===a.value;return ot("button",{type:"button","aria-pressed":i,onClick:()=>r(a.value),style:{flex:1,padding:"6px 8px",fontSize:12,borderRadius:6,cursor:"pointer",border:`1px solid ${i?"var(--sf-accent)":"var(--line-strong)"}`,background:i?"var(--sf-accent)":"transparent",color:i?"var(--sf-on-accent)":"inherit",fontWeight:i?500:400},children:u(a.label)},a.value)})})})}function Hge({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||En.mapTheme,a=En;return vd(MM,{children:[!o&&ot(DM,{children:u("Section")}),ot(cm,{label:u("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),ot(cm,{label:u("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),ot(cm,{label:u("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:vd(MM,{children:[ot(DM,{children:u("City strip")}),ot(cm,{label:u("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),ot(cm,{label:u("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),ot(Bge,{label:u("Shape"),icon:ot(bYe,{}),options:SYe,value:S_(e.imageShape),onChange:i=>t({imageShape:i})}),ot(DM,{children:u("Map & Theme")}),ot(Bge,{label:u("Map theme"),icon:ot(mYe,{}),options:kYe,value:r,onChange:i=>t({mapTheme:i})})]})]})}function TYe({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((f,g)=>ku(f)===t?g:-1).filter(f=>f>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(ku).filter(f=>f!==t)),[d,c]=cYe(t),p=f=>o(e.map(g=>ku(g)===t?{...g,...f}:g)),m=()=>{let f=d;if(f!==t){if(l.has(f)){c(t);return}o(e.map(g=>ku(g)===t?{...g,group:f}:g)),a(f)}};return vd("div",{className:"sf-locations-view",children:[ot(hk,{inline:!0,name:u("Section"),onSelect:n,title:WM(t,s)}),ot(cm,{label:u("Group heading"),value:d,placeholder:u("e.g. Americas"),onChange:c,onBlur:m,onKeyDown:f=>{f.key==="Enter"&&f.currentTarget.blur()}}),l.has(d)&&d!==t&&ot("p",{className:"sf-note sf-note--error",role:"alert",children:u("Another group already uses this heading \u2014 pick a different one.")}),ot(cm,{label:u("Group name"),value:s,placeholder:u("Shown beside the heading"),onChange:f=>p({groupName:f})}),ot(Dge,{label:u("Cities in this group"),noun:u("city"),items:i.map(f=>e[f]),onChange:f=>o(Tie(e,t,f)),newItem:()=>({...wB,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(f,g)=>vd("button",{type:"button",style:zge,onClick:()=>r(i[g]),children:[ot("span",{children:f?.name||u("City")}),ot("span",{"aria-hidden":"true",children:"\u203A"})]})}),ot("div",{style:{marginTop:12},children:ot("button",{type:"button",style:Wge,onClick:()=>{o(e.filter(f=>ku(f)!==t)),n()},children:ar("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function Uge({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=kie(),r=Tae(),a=yYe(o),{appState:i,selectedItem:s}=pYe(h=>h),l=wYe(),d=s?.props??{},c=h=>{if(!s)return;let w=(i.data.content??[]).findIndex(b=>b.props.id===s.props.id);w<0||l.replaceComponent(xYe,w,{type:s.type,props:{...s.props,...h}})},p=(h,w)=>t(o.map((b,k)=>k===h?{...b,...w}:b)),m=()=>{let h=new Set(a.map(k=>k.key)),w=a.length+1,b=`Group ${w}`;for(;h.has(b);)b=`Group ${++w}`;return b};if(n.level==="texts")return vd("div",{className:"sf-locations-view",children:[ot(hk,{inline:!0,name:u("Locations"),onSelect:()=>sd({level:"groups"}),title:u("Texts")}),ot(Hge,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let h=o[n.index];return h?vd("div",{className:"sf-locations-view",children:[ot(hk,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>sd({level:"city",index:n.index}),title:u("Image")}),ot(Ane,{value:h.photo||"",onChange:w=>p(n.index,{photo:w}),label:"Image",accept:"image/*"})]}):f()}if(n.level==="map"){let h=o[n.index];return h?vd("div",{className:"sf-locations-view",children:[ot(hk,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>sd({level:"city",index:n.index}),title:u("Map")}),ot(IC,{value:h.geocode,onChange:w=>p(n.index,{geocode:w}),label:"Coordinates"}),ot(cm,{label:u("Directions link"),icon:ot(fYe,{}),value:String(h.mapsUrl??""),onChange:w=>p(n.index,{mapsUrl:w})})]}):f()}if(n.level==="city"){let h=n.index,w=o[h];if(!w)return f();let b=ku(w),k=(v,y)=>p(h,{[v]:y}),x=(v,y,S,E=!1)=>ot(cm,{label:y,icon:S,textarea:E,value:String(w[v]??""),onChange:T=>k(v,T)});return vd("div",{className:"sf-locations-view",children:[ot(hk,{inline:!0,name:WM(b,String(w.groupName??"")),onSelect:()=>sd({level:"group",key:b}),title:w.name||u("City")}),x("name",u("Location name"),ot(zM,{})),x("state",u("State / Province"),ot(zM,{})),x("country",u("Country"),ot(uYe,{})),x("address",u("Address"),ot(hYe,{}),!0),x("phone",u("Phone"),ot(gYe,{})),x("hours",u("Opening hours"),ot(Fge,{})),x("timezone",u("Timezone chip"),ot(Fge,{})),ot("div",{style:{marginTop:12},children:ot("button",{type:"button",style:Wge,onClick:()=>{t(o.filter((v,y)=>y!==h)),sd({level:"group",key:b})},children:u("Delete city")})})]})}if(n.level==="group")return a.some(h=>h.key===n.key)?ot(TYe,{cards:o,groupKey:n.key,onChange:t,onBack:()=>sd({level:"groups"}),onOpenCity:h=>sd({level:"city",index:h}),onNavigate:h=>sd({level:"group",key:h})},n.key):f();function f(){return vd("div",{className:"sf-locations-view",children:[ot(Hge,{props:d,setSection:c}),!r&&ot(MM,{children:g()})]})}function g(){return ot(Dge,{label:u("Locations"),noun:u("group"),items:a,onChange:h=>{let w=h.find(b=>!a.some(k=>k.key===b.key));t(Eie(o,h.map(b=>b.key),b=>[{...wB,group:b,groupName:""}])),w&&sd({level:"group",key:w.key})},newItem:()=>({key:m(),name:"",indices:[]}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,above:a.length===0?ot("div",{style:{fontSize:12,color:"var(--ink-faint)",padding:"4px 0"},children:u("No locations yet.")}):void 0,renderRow:h=>vd("button",{type:"button",style:zge,onClick:()=>sd({level:"group",key:h.key}),children:[ot("span",{style:{fontWeight:500},children:WM(h.key,h.name)}),vd("span",{style:{color:"var(--ink-faint)"},children:[ar("{n} city","{n} cities",h.indices.length)," \u203A"]})]})})}return f()}var Gge={fields:{_gOffices:PYe("Offices"),dataSource:oo("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>EYe(Uge,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,o=t.locations??[];if(!pC(o))return e;let n=await mC(o,i=>{let s=T_(i.region);return[String(i.address??"").replace(/\s*\n+\s*/g,", "),i.name,String(i.state??"").trim()||s.state,String(i.country??"").trim()||s.country].map(l=>String(l??"").trim()).filter(Boolean).join(", ")}),{[KE]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>no("ContactLocations",t,e.props)};import{jsx as $ge}from"react/jsx-runtime";import{ClockIcon as _Ye,TagIcon as CYe}from"efficient-easel/icons";var RYe=[...ite],Kge={fields:_i({title:U("Heading",y6.title),zeroText:Qo(U("At zero",y6.zeroText)),endsAt:Hre("Ends",$ge(_Ye,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:oe("Unit labels",!0,$ge(CYe,{}))},RYe,Ia)};import{jsx as gk,jsxs as OYe}from"react/jsx-runtime";import{Suspense as NYe,lazy as LYe,useState as AYe}from"react";import{Button as IYe}from"efficient-shell/ui";import{CodeIcon as FYe}from"efficient-shell/icons/efficient";import{SettingsField as BYe}from"efficient-easel/panel";import{iconOf as HYe}from"efficient-easel/screen/lib/document/box-fields";var DYe=LYe(()=>import("./chunks/CustomHtmlCodeWindow-WDJYQRZA.js"));function MYe({value:e,onChange:t}){let[o,n]=AYe(!1);return OYe(BYe,{label:u("HTML"),icon:HYe(gk(FYe,{})),children:[gk(IYe,{variant:"secondary",onClick:()=>n(!0),children:u("Edit code")}),o?gk(NYe,{fallback:null,children:gk(DYe,{open:!0,onClose:()=>n(!1),value:typeof e=="string"?e:"",onChange:t})}):null]})}var Vge={fields:{html:{type:"custom",label:"HTML",render:({value:e,onChange:t})=>gk(MYe,{value:e,onChange:t})}}};import{jsx as UM}from"react/jsx-runtime";import{StylesIcon as zYe,WeightIcon as WYe,WidthIcon as UYe}from"efficient-easel/icons";import{keptByRow as GYe}from"efficient-easel/screen/lib/document/style-fields";var $Ye={any:[{field:"style",set:!1},{field:"style",is:Mh}]},KYe={not:{field:"style",is:"none"}},Yge={fields:Le({style:lo("Style",UM(zYe,{}),sre.map(e=>({...e,picture:mre(e.value)})),Mh,{columns:3,cell:Er}),spacing:GYe("sectionPaddingTop"),thickness:ae("Thickness",UM(WYe,{}),1,8,1,1,H2),...id(H2,"thickness"),lengthPct:ae("Length",UM(UYe,{}),10,100,1,100,D2),...id(D2,"lengthPct")},[[["thickness"],$Ye],[["lengthPct"],KYe]]),resolveFields:(e,{fields:t})=>{let o=SC[TC(e.props.spacing)],n=Hp({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return W2(t,n)}};import{jsx as $M}from"react/jsx-runtime";import{HashIcon as VYe,StickyIcon as YYe,TargetIcon as jYe}from"efficient-easel/icons";import{group as qge,select as qYe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as kx}from"efficient-easel/screen/lib/document/device-fields";var GM={title:"On this page"},jge={label:"Contents",defaultProps:{title:GM.title,sticky:!0}};var Xge={fields:{title:kx("desktop",U("Heading",GM.title)),_gList:kx("desktop",qge("List")),[GC]:kx("desktop",qYe("Number",$M(VYe,{}),zee,Wee)),markCurrent:kx("desktop",oe("Mark the current section",!1,$M(jYe,{}),"The row of the section a reader is in stands out as they scroll.")),_gStick:kx("desktop",qge(o6)),sticky:kx("desktop",oe(o6,!0,$M(YYe,{})))}};import{group as XYe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as KM}from"efficient-easel/screen/lib/document/device-fields";var bk={hint:"Search questions",noMatchText:"No question matches your search."},Zge={label:"List search",defaultProps:{hint:bk.hint,noMatchText:bk.noMatchText}};var Jge={fields:{_gContent:KM("desktop",XYe("Content")),hint:KM("desktop",Qo(U("Hint",bk.hint))),noMatchText:KM("desktop",Qo(U("No match",bk.noMatchText)))}};import{group as e0e}from"efficient-easel/screen/lib/document/box-fields";var UO={toc:"On this page"},Qge={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var t0e={fields:{_gContent:e0e("Contents"),tocTitle:U("Contents heading",UO.toc),_gSections:e0e("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:ye("Contents label"),heading:ye("Title"),body:je("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as o0e}from"efficient-easel/screen/lib/document/box-fields";var n0e={fields:{_gContent:o0e("Content"),eyebrow:U("Eyebrow",du.eyebrow),title:q("Heading",du.title),deck:q("Deck / standfirst",du.deck),_gMeta:o0e("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:ye("Label"),value:ye("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var GO=[{label:"Label",value:"Value",desc:"Short description of this card."},{label:"Label",value:"Value",desc:"Short description of this card."},{label:"Label",value:"Value",desc:"Short description of this card."}],r0e={label:"Document Detail Cards",defaultProps:{cards:[]}};var a0e={fields:{cards:Wb({type:"array",label:"Cards",arrayFields:{label:ye("Label"),value:ye("Value"),desc:je("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},GO)}};import{jsx as ZYe}from"react/jsx-runtime";import{PageIcon as JYe}from"efficient-easel/icons";import{group as QYe}from"efficient-easel/screen/lib/document/box-fields";var Sx={metaLabel:W.label,metaValue:W.value},i0e={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var s0e={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Tab label"),href:Ve("Links to"),current:oe("Current page",!1,ZYe(JYe,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:QYe("Trailing note"),metaLabel:U("Note label",Sx.metaLabel),metaValue:U("Note value",Sx.metaValue)}};import{jsx as eje}from"react/jsx-runtime";import{StylesIcon as tje}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as oje}from"efficient-easel/screen/lib/document/box-fields";var l0e={fields:{eyebrow:U("Eyebrow",W.eyebrow),...il("align",{access:oje}),eyebrowLook:ne("Look",eje(tje,{}),Js,l_)}};import{jsx as c0e}from"react/jsx-runtime";import{ChevronIcon as nje,LinkIcon as rje}from"efficient-easel/icons";import{group as YM}from"efficient-easel/screen/lib/document/box-fields";var mf={num:W.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},VM=jn.FAQ,d0e={label:"Q&A",inline:!0,fields:VM,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var p0e="faqOnTemplate",aje={not:{context:p0e,is:!0}},ije={[p0e]:e=>xQ("FAQ",e.props??{})},sje=new Set([eJ,...tJ]);function lje(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||sje.has(t))}var m0e={fields:{_gContent:YM("Content"),num:U("Number",mf.num),title:q("Heading",mf.title),linkText:U("Button",mf.link),linkHref:Ve("Link"),_gQuestions:YM("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:ye("Question"),answer:je("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:YM("Layout"),defaultOpen:oe("Open first answer",!0,c0e(nje,{})),openFromLink:oe("Open from a link",!1,c0e(rje,{}),"A link to a question opens its answer. Each question gets an anchor made from its words, after the section's Anchor."),...VM},resolveFields:(e,{fields:t})=>{let o=it(t,e.props.headPlacement,st.FAQ.headRows);return _i(o,lje(o),aje)},showWhenFacts:ije};import{jsx as Vi,Fragment as $O,jsxs as cje}from"react/jsx-runtime";import{useContext as pje}from"react";import{SettingsField as g0e}from"efficient-easel/panel";import{FieldSelect as b0e}from"efficient-easel/fields";import{BlogPostIcon as w0e}from"efficient-easel/icons";import{ScreenDocumentContext as mje}from"efficient-easel/screen/components/ScreenDocumentContext";var u0e=ex({fetch:async(e,t)=>await Jd().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:In});import{useEffect as f0e,useRef as dje,useState as jM}from"react";function Tg(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function Tx({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=jM(null),[s,l]=jM(!1),[d,c]=jM(!1),p=dje(!0);return f0e(()=>(p.current=!0,e().then(m=>{p.current&&i(m)}),()=>{p.current=!1}),[]),f0e(()=>{if(!n?.slug||a===null)return;let m=t(a,n);if(!m)return;let f=o(m);Tg(f,n)&&r(f)},[a]),{rows:a,loading:a===null,refreshing:s,errored:d,refresh:()=>{n?.slug&&(l(!0),c(!1),e(!0).then(m=>{if(!p.current)return;i(m);let f=t(m,n);f&&r(o(f))}).catch(()=>{p.current&&c(!0)}).finally(()=>{p.current&&l(!1)}))}}}function h0e(e,t){return{label:t?u("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function Ex({value:e,onChange:t}){let o=pje(mje);return o&&!o.capabilities.hasBlog?e?.slug?Vi(uje,{value:e,onChange:t}):Vi($O,{}):Vi(fje,{value:e,onChange:t})}function uje({value:e,onChange:t}){return Vi("div",{children:Vi(g0e,{label:u("Blog post source"),icon:Vi(w0e,{}),hint:Vi($O,{children:u("Linked to a blog post. This editor has no blog to pick another from; choose \u201CNone (manual)\u201D to author the section yourself.")}),children:Vi(b0e,{value:e.slug,ariaLabel:u("Blog post source"),onChange:o=>o?void 0:t(null),options:[{label:u("None (manual)"),value:""},{label:e.title||e.slug,value:e.slug}]})})})}function fje({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=Tx({load:u0e,resolve:(m,f)=>m.find(g=>g.slug===f.slug),snapshot:l1,value:e,onChange:t}),s=m=>{if(!m){t(null);return}let f=(o??[]).find(g=>g.slug===m);f&&t(l1(f))},l=e?.slug&&!(o??[]).some(m=>m.slug===e.slug),d=a?"error":r?"loading":"idle",c=u("Storefront \u2192 Blog"),p=a?u("Couldn\u2019t reach {place}.",{place:c}):r?u("Syncing from {place}\u2026",{place:c}):u("Linked to \u201C{name}\u201D",{name:e?.title||e?.slug||""});return cje("div",{children:[Vi(g0e,{label:u("Blog post source"),icon:Vi(w0e,{}),hint:e?.slug?void 0:Vi($O,{children:u("Pick a post from {place} to auto-fill this section, or keep \u201CNone (manual)\u201D to author it yourself below.",{place:c})}),children:Vi(b0e,{value:e?.slug??"",ariaLabel:u("Blog post source"),onChange:s,readOnly:n,options:[{label:u("None (manual)"),value:""},...l?[h0e({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(m=>({label:m.title,value:m.slug}))]})}),e?.slug?Vi(ll,{status:d,statusText:p,onRefresh:i,busy:r,hint:Vi($O,{children:u("Auto-fills the cover image, headline, dek, date and link from this post each time you open the editor. Those fields are hidden while a post is linked; the remaining fields stay yours to set.")})}):null]})}import{group as hje}from"efficient-easel/screen/lib/document/box-fields";var qr={badge:"Featured",imageDate:W.date,category:W.category,readLabel:"0 min read",date:W.date,title:"Add a *headline* for this story.",dek:"A short summary of the featured article \u2014 one or two sentences that draw the reader in.",ctaText:"Read the story",ctaHref:ac.href},x0e={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var gje=["image","imageDate","date","title","dek","ctaHref"],y0e={fields:_i({source:Uo(Ex),_nBound:at(dl(RC),OC),image:Qe("Cover image","image/*"),badge:U("Badge",qr.badge),imageDate:U("Image date",qr.imageDate),_gContent:hje("Content"),category:U("Category",qr.category),readLabel:U("Read time",qr.readLabel),date:U("Date",qr.date),title:q("Heading",qr.title),dek:q("Dek",qr.dek),ctaText:U("Button",qr.ctaText),ctaHref:Ve("Link")},gje,Gb)};import{jsx as mr}from"react/jsx-runtime";import{phoneKey as Or,tabletKey as ka}from"efficient-easel/draw";import{keptByRow as xqe}from"efficient-easel/screen/lib/document/style-fields";import{jsx as v0e}from"react/jsx-runtime";import{OpacityIcon as bje,StylesIcon as wje}from"efficient-easel/icons";function Px(){return{darken:ae("Darken",v0e(bje,{}),nd.min,nd.max,nd.step,nd.fallback,nd.unit),darkenStyle:ne("Darken style",v0e(wje,{}),c2,c2[0].value)}}var xje={"top-left":"left-0 top-[120px]","top-center":"left-1/2 top-[120px] -translate-x-1/2","top-right":"right-0 top-[120px]",left:"left-0 top-1/2 -translate-y-1/2",center:"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",right:"right-0 top-1/2 -translate-y-1/2","bottom-left":"left-0 bottom-[120px]","bottom-center":"left-1/2 bottom-[120px] -translate-x-1/2","bottom-right":"right-0 bottom-[120px]"},yje=`calc(${EZ} - ${VF}*2)`,k0e=`var(${PZ},${VF})`,cYt=`pointer-events-none absolute inset-y-0 left-[${k0e}] right-[${k0e}] z-[6] mx-auto max-w-[var(${_Z},${yje.replace(/ /g,"_")})]`;function KO(e,t){return`pointer-events-auto absolute ${xje[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function S0e(e){return IP.includes(e)?e:null}import{parseOption as qM}from"efficient-shell/format";var vje=IP,XM="top-right",kje=["cards","dots","numbers","bar","squares","tabs","largeTabs"],ZM=["cards","dots","numbers","bar","squares"],VO="cards",YO={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},jO=["tabs","largeTabs"],T0e=!0;function qO(e){return qM(kje,VO,e)}function E0e(e){return qM(ZM,VO,e)}function Sje(e){return qM(vje,XM,e)}var P0e={cards:"flex-col gap-2.5",dots:"flex-row items-center gap-2",numbers:"flex-col gap-2",bar:"h-0.5 w-[34%] max-w-[420px] gap-px overflow-hidden rounded-full",squares:"flex-col gap-0",tabs:"flex-row items-stretch w-full overflow-x-auto",largeTabs:"items-stretch border-y border-line"};function _0e(e,t){return KO(Sje(t),P0e[qO(e)])}function C0e(e){return`flex ${P0e[qO(e)]}`}function R0e(e){return e.shown!==!1&&(e.count??0)>1}function Tje(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function Eje(e,t){return e===t?!0:e.length!==t.length?!1:e.every((o,n)=>o.name===t[n].name&&o.process===t[n].process&&o.video===t[n].video)}function O0e(e,t){let o=Array.from(t,Tje);return Eje(e,o)?e:o}import{deviceField as kd}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as yqe,ClockIcon as vqe,CropIcon as ube,GapIcon as kqe,MediaLayoutStackedIcon as Sbe,LineBetweenIcon as Sqe,LineSolidIcon as Tqe,ListIcon as Eqe,NumberedListIcon as fbe,ShadowIcon as Pqe,StylesIcon as hbe,TableIcon as gbe,TargetIcon as _qe,WrapIcon as Tbe}from"efficient-easel/icons";var Pg=BP.map(e=>e.shape),QM=e=>e!==qs&&Pg.includes(String(e??""))?e:null;function Eg(e){return QM(e)??(Zm(e)?qs:"auto")}function XO(e){let t=Eg(e);return t==="auto"?"":lb(t)}function N0e(e,t,o){return zZ({desktop:e,phone:JM(t)!==null?t:o,tablet:o})}var Pje={tall:"view-wide:aspect-[3/4]",square:"view-wide:aspect-square",landscape:"view-wide:aspect-[4/3]",screen:"view-wide:aspect-[16/10]",video:"view-wide:aspect-[16/9]",wide:"view-wide:aspect-[2/1]",panorama:"view-wide:aspect-[21/9]",story:"view-wide:aspect-[9/16]",poster:"view-wide:aspect-[2/3]",portrait:"view-wide:aspect-[4/5]",custom:"view-wide:aspect-[var(--shape-ratio)]"},_je={auto:"max-view-wide:aspect-auto",tall:"max-view-wide:h-auto max-view-wide:aspect-[3/4]",square:"max-view-wide:h-auto max-view-wide:aspect-square",landscape:"max-view-wide:h-auto max-view-wide:aspect-[4/3]",screen:"max-view-wide:h-auto max-view-wide:aspect-[16/10]",video:"max-view-wide:h-auto max-view-wide:aspect-[16/9]",wide:"max-view-wide:h-auto max-view-wide:aspect-[2/1]",panorama:"max-view-wide:h-auto max-view-wide:aspect-[21/9]",story:"max-view-wide:h-auto max-view-wide:aspect-[9/16]",poster:"max-view-wide:h-auto max-view-wide:aspect-[2/3]",portrait:"max-view-wide:h-auto max-view-wide:aspect-[4/5]",custom:"max-view-wide:h-auto max-view-wide:aspect-[var(--shape-ratio-phone)]"};function Cje(e,t){let o=Eg(t);return o==="auto"&&QM(t)===null?null:o===qs?t===e?null:o:o===Eg(e)?null:o}var Rje={auto:"view-wide:max-view-desktop:aspect-auto!",tall:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[3/4]!",square:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-square!",landscape:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[4/3]!",screen:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[16/10]!",video:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[16/9]!",wide:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[2/1]!",panorama:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[21/9]!",story:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[9/16]!",poster:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[2/3]!",portrait:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[4/5]!",custom:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[var(--shape-ratio-tablet)]!"};function JM(e){let t=Eg(e);return t==="auto"&&QM(e)===null?null:t}function L0e(e,t,o){let n=JM(o),r=Cje(e,JM(t)!==null?t:o);if(r===null&&n===null)return XO(e);let a=Eg(e);return[r===null?XO(e):a==="auto"?"":Pje[a],r===null?"":_je[r],n===null?"":Rje[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as Ebe,VIEW_KEY_ACCESS as Mc,group as Cg,phoneTwinFields as zc}from"efficient-easel/screen/lib/document/box-fields";var Oje={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},Nje=Qv.map(e=>({value:e.value,picture:dC(Oje[e.value])}));function ZO(e,t){return lo("Separator",e,Nje,t,{resolve:Qq})}import{jsx as Lje}from"react/jsx-runtime";import{cloneElement as Aje}from"react";import{PaddingXIcon as Ije}from"efficient-easel/icons";import{deviceField as Fje}from"efficient-easel/screen/lib/document/device-fields";function A0e(){let e=ne(Rae,Lje(Ije,{}),qJ,XJ);return Fje("desktop",{...e,render:t=>{let o=e.render({...t,value:QP(t.value),onChange:n=>t.onChange(JJ(n))});return Aje(o,{hint:u(ZJ)})}})}import{newNodeId as e9}from"efficient-easel/draw";var I0e=["First row","Second row","Third row"],Bje="Write the words for this row.",F0e=e=>({type:"Text",props:{...Ue,id:e9("Text"),tag:"p",text:e}}),Hje=(e,t)=>({type:ue,props:{...ze,id:e9(ue),...t?{startsOpen:!0}:{},rowTitle:[F0e(e)],content:[{type:"Text",props:{..._t,id:e9("Text"),tag:"p",text:Bje}}]}}),Dje=e=>!Array.isArray(e)||e.length===0;function B0e(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:I0e.map((r,a)=>Hje(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==ue||!Dje(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(I0e[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[F0e(i)]}}});return o?{...e,content:n}:e}import{parseOption as Mje}from"efficient-shell/format";var wk="rowStyle",zje=["plain","numbered","chevron"],H0e=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function D0e(e){return Mje(zje,"plain",e)}var JO="flex cursor-pointer list-none items-center gap-6 py-7 [&::-webkit-details-marker]:hidden max-view-wide:gap-4 max-view-wide:py-5",QO="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",eN="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",M0e="border-t border-line",z0e="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",W0e="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as Wje}from"efficient-easel/screen/lib/content/view-tiers";var tN=jn.Flex,U0e={label:"Box",fields:tN,phoneOrder:{prop:Wje("order"),slot:"content"},defaultProps:{direction:"row",justify:"start",align:"stretch",wrap:!0,content:[],share:"equal",blockSpacing:"gap",padV2:!0,sectionPaddingTop:24,sectionPaddingBottom:24}};import{jsx as G0e}from"react/jsx-runtime";import{isNode as Uje}from"efficient-easel/data";import{useEasel as Gje}from"efficient-easel/easel";import{PhoneOrderField as $je}from"efficient-easel/fields";import{slotChildRowName as Kje}from"efficient-easel/draw";import{deviceField as Vje}from"efficient-easel/screen/lib/document/device-fields";function Yje(){try{let e=Gje(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!Uje(a)||typeof t[a.type]?.render!="function"?!1:Sr(a.props?.id)!==void 0):[],r=n.map(a=>a.props.id);return{blocks:n,ids:r,labelOf:a=>t[a]?.label??a}}catch{return null}}function jje({value:e,onChange:t,readOnly:o}){let n=Yje();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return G0e($je,{stored:"ids",value:e,ids:a,onChange:t,readOnly:o,noun:"block",hint:u("The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order."),itemLabel:s=>Kje(r[s],i,So,void 0,Zre)})}function $0e(){return Vje("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>G0e(jje,{value:e,onChange:t,readOnly:o})})}import{jsx as kk}from"react/jsx-runtime";import{SettingsDefaultReset as aqe,SettingsField as iqe}from"efficient-easel/panel";import{Segmented as sqe}from"efficient-shell/ui";import{SwapIcon as lqe}from"efficient-easel/icons";import{describedAs as dqe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as cqe}from"efficient-easel/screen/lib/document/device-fields";var xk="Mirror cards",yk="off",t9=[{value:yk,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],K0e={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function uf(e){return e==="even"||e==="odd"?e:null}function V0e(e){return uf(e)??void 0}function vk(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function _g(e,t,o){return!t||e.direction!=="row"||o||$m("row",e.separator)||e.loop==="scroll"||e.line===!0||ds(e)||IF(e.columns)!==""||cX(e.columnsTablet)!==""?!1:!(ls(e.share)===""&&X0(e.wrap)!=="")}function Y0e(e,t){let o=uf(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var j0e="view-wide:flex-row-reverse",qje={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},Xje={left:"view-wide:text-right!",right:"view-wide:text-left!"},Zje={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},Jje={start:"view-wide:items-end!",end:"view-wide:items-start!"},Qje={start:"view-wide:max-view-desktop:justify-end!",end:"view-wide:max-view-desktop:justify-start!",center:"view-wide:max-view-desktop:justify-center!",between:"view-wide:max-view-desktop:justify-between!"},oN=(e,t)=>(typeof t=="string"?Us(e,t):void 0)??"";function o9(e,t,o){return e?[oN(qje,t),oN(Xje,o)].filter(Boolean).join(" "):""}function q0e(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=nX(o,r,void 0).tablet;return[oN(Zje,o),a?Qje[a]:""].filter(Boolean).join(" ")}return t==="column"?oN(Jje,n):""}function n9(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||ds(e)?!1:IF(e.columns)===""}function nN(e,t){let o=uf(e.mirrorCards);return o&&n9(e,t)?{mirror:o}:null}import{isNodeList as obe}from"efficient-easel/data";import{parseOption as X0e}from"efficient-shell/format";var eqe=["columns","rows-left","rows-right"],tqe=["half","third"],Z0e=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],J0e=[{value:"half",label:"Half"},{value:"third",label:"One third"}],Q0e=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function oqe(e){return X0e(eqe,"columns",e)}var nqe={"rows-left":"even","rows-right":"odd"},rqe={half:"equal",third:"bigRight"};function rN(e){let t=oqe(e?.arrangement);if(t==="columns")return null;let o=X0e(tqe,"half",e?.imageWidth);return{mirror:nqe[t],row:{share:rqe[o],phoneReverse:e?.phoneOrder==="words"}}}var ebe={ProcessSteps:{slot:"boxes",hand:rN}},tbe=(e,t,o)=>obe(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function _x(e,t){let o=j_(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===ue&&tbe(o,Oe,t)){let s=td(e,o.props?.id)?.inCopy===!0;return nN(Zs(o.props??{},s),s)}let i=Us(ebe,a);if(i&&tbe(o,i.slot,t))return i.hand(o.props??{})}let n=fP(e,t),r=n&&typeof n.type=="string"?Us(ebe,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function nbe(e){let t=e?.[Oe];return obe(t)&&t.some(o=>o?.type===ue)}var rbe="mirrorCardsIdle",r9="mirrorCardsMirrors",abe={[r9]:(e,t)=>{let o=td(t.appState,e.props?.id);if(o===void 0)return;let n=Zs(e.props??{},o.inCopy),r=_x(t.appState,e.props?.id);if(r){let a=r.row?{...n,direction:"row",share:r.row.share}:n;return r.mirror!==null&&_g(a,!0,Xp(a).desktop)}return _g(n,vk(o),Xp(n).desktop)&&uf(n.mirrorCards)!==null},[rbe]:(e,t)=>{let o=td(t.appState,e.props?.id);if(o===void 0)return;let n=Zs(e.props??{},o.inCopy);return _x(t.appState,e.props?.id)?!0:_g(n,vk(o),Xp(n).desktop)?!1:!(n9(n,o.inCopy)&&nbe(n))}};function pqe(e=!1){return t9.map(t=>({value:t.value,label:u(t.label),title:t.value===yk?void 0:u(K0e[t.value]),disabled:e}))}function mqe({value:e,onChange:t,readOnly:o}){let n=uf(e)??yk;return kk(iqe,{label:u(xk),icon:kk(lqe,{}),action:kk(aqe,{words:PP()?.panel,label:u(xk),changed:n!==yk,detail:u("Off"),onReset:()=>t(void 0)}),children:kk(sqe,{size:"sm",block:!0,label:u(xk),value:n,onChange:r=>t(V0e(r)),options:pqe(o===!0)})})}function ibe(){return at(cqe("desktop",{type:"custom",...dqe({},{type:"radio",label:xk,options:t9.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>kk(mqe,{value:e,onChange:t,readOnly:o})}),{not:{context:rbe,is:!0}})}import{jsx as uqe}from"react/jsx-runtime";import{FilterIcon as fqe}from"efficient-easel/icons";import{deviceField as hqe}from"efficient-easel/screen/lib/document/device-fields";var dbe="showForUnoffered",cbe={[dbe]:e=>Q_().length===0&&N2(e.props?.[O2])===void 0},gqe="Show for",bqe="All";function wqe(e,t){if(!e)return;let o=Q_().find(r=>r.slug===e);if(o)return{slug:o.slug,name:o.name};let n=N2(t);return n?.slug===e?n:void 0}function pbe(){let e=ne(gqe,uqe(fqe,{}),[{label:bqe,value:""}],"");return at(hqe("desktop",{...e,render:t=>e.render({...t,value:N2(t.value)?.slug??"",onChange:o=>t.onChange(wqe(o,t.value))})}),{not:{context:dbe,is:!0}})}var sbe=new WeakMap;function mbe(e,t){let o=e[O2];if(!o)return e;let n=Q_(),r=N2(t?.[O2]),a=r&&!n.some(p=>p.slug===r.slug)?r:void 0,i=sbe.get(o);i||sbe.set(o,i=new Map);let s=`${Qoe()}\0${a?`${a.slug}\0${a.name}`:""}`,l=i.get(s);l||(l={...o,options:[...o.options,...n.map(p=>({label:p.name,value:p.slug})),...a?[{label:a.name,value:a.slug}]:[]]},i.set(s,l));let d=lbe.get(e);d||lbe.set(e,d=new Map);let c=d.get(s);return c||d.set(s,c={...e,[O2]:l}),c}var lbe=new WeakMap;var bbe=$q,wbe={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},Cqe={field:"direction",is:"tabs"},Rqe={field:"line",in:[!0,!1]},Oqe={field:"anchor",set:!0},a9=["fixed","screen","fill"],Nqe={not:{any:[{field:"sectionHeightMode",in:a9},{field:"sectionHeightModeTablet",in:a9},{field:"sectionHeightModePhone",in:a9}]}},Lqe={context:"parent.line",is:!0},Rg={not:{field:"direction",is:"accordion"}},xbe={field:"direction",is:"accordion"},ybe={any:[Rg,{not:{field:wk,in:["numbered","chevron"]}},{field:"columns",in:[...pX]},{field:"phoneRow",in:[...mX]}]},Pbe="notAccordionRow",Aqe={not:{context:Pbe,is:!0}},Iqe={[Pbe]:(e,t)=>t.parent?.props?.direction!=="accordion"},s9={field:"direction",is:"row",default:"row"},Og={not:fZ},Ag={all:[s9,Og,{not:{field:"separator",in:Qv.map(e=>e.value)}},{not:{field:"line",is:!0}}]},Fqe={field:"direction",is:"column"},_be={all:[Ag,...["columns",ka("columns")].map(e=>({not:{field:e,in:Array.from({length:rP},(t,o)=>o+nP)}}))]},Bqe={all:[Og,{not:{all:[s9,{field:"separator",in:Qv.map(e=>e.value)}]}}]},i9={not:{all:[Ag,{field:"columns",in:Array.from({length:rP},(e,t)=>t+nP)}]}},Hqe="sharedColumnsFits",Cbe="sharedColumnsMisfit",Rbe="sharedColumnsDraws",Obe="sharedColumnsPhoneDraws";function Lg(e,t){return Zs(e.props??{},td(t.appState,e.props?.id)?.inCopy!==!1)}var Dqe={[Hqe]:(e,t)=>m5(Lg(e,t)),[Cbe]:(e,t)=>!m5(Lg(e,t)),[Rbe]:(e,t)=>Xp(Lg(e,t)).desktop,[Obe]:(e,t)=>Xp(Lg(e,t)).phone};function vbe(e){return{all:[{not:{context:Cbe,is:!0}},{any:[sB,{field:e,set:!0}]}]}}var Ng={not:{context:Rbe,is:!0}},Cx={not:{context:Obe,is:!0}},Nbe="sharedRowsDraws",Mqe={[Nbe]:(e,t)=>u5(Lg(e,t))&&_x(t.appState,e.props?.id)?.row===void 0},Sk={not:{context:Nbe,is:!0}},zqe={any:[Ng,Cx]},l9=Vq,Wqe={not:{context:r9,is:!0}},Lbe="rowHanded",Uqe={not:{context:Lbe,is:!0}},Gqe={[Lbe]:(e,t)=>{let o=_x(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},kbe={all:[Rg,l9,Ng,Cx,Wqe]},$qe={field:"direction",is:"row"},Kqe={field:"align",in:["start","center","end"]},Vqe={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function Yqe(){let{darken:e,darkenStyle:t}=Px();return{...zc("darken",e,Mc),...zc("darkenStyle",t,Mc)}}var Abe={not:{all:[Ag,{field:ka("columns"),in:Array.from({length:rP},(e,t)=>t+nP)}]}};function jqe(){let e=oe(Ebe,!1,mr(Tbe,{})),t=o=>{let n=AF(o);return n===void 0?void 0:n==="wrap"};return{...Bh(),render:o=>e.render({...o,value:t(o.value),follows:t(o.follows)??!1,onChange:n=>o.onChange(n===void 0?void 0:n?"wrap":"nowrap")})}}function qqe(){let e=oe(Ebe,!0,mr(Tbe,{})),t=o=>{let n=AF(o);return n===void 0?void 0:n==="wrap"};return{...Bh(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!uX(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var Ibe={hint:ru},Fbe={all:[l9,{any:[Fqe,{all:[Ag,Abe,{not:{all:[_be,{field:ka("share"),set:!0}]}}]}]}]},Xqe=at(kd("desktop",ae("Narrows below",mr(Sbe,{}),Rh.min,Rh.max,Rh.step,ru,{kind:"breakpoint"},{clear:Ibe,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),Fbe);function Zqe(e,t){let o=e;return!(Oh in o)||t.direction!=="column"?e:{...o,[Oh]:Xqe}}var Bbe={fields:Le({_gContent:Cg("Content"),rowTitle:tN.rowTitle,content:tN.content,_gCardDisplay:Cg("Display"),cardDisplay:FC("desktop"),cardDisplayTablet:FC("tablet"),cardDisplayPhone:FC("mobile"),showFor:pbe(),_gLayout:Cg("Layout"),direction:CC("Flex"),tabShape:lo("Tab shape",mr(hbe,{}),jO.map(e=>({label:YO[e],value:e,picture:ure[e]})),"tabs",{columns:2,cell:Er}),mirrorCards:ibe(),[Oh]:kd("desktop",ae("Stacks below",mr(Sbe,{}),Rh.min,Rh.max,Rh.step,ru,{kind:"breakpoint"},{clear:Ibe,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[m2]:A0e(),startsOpen:kd("desktop",oe("Starts open",!1,mr(yqe,{}))),[wk]:kd("desktop",lo("Row style",mr(fbe,{}),H0e.map(e=>({...e,picture:e.value==="numbered"?mr(fbe,{}):mr(Eqe,{})})),"plain",{columns:2})),label:Qo(Q("Tab name")),...di("Flex"),...zc("justify",sC(),Mc),...zc("align",lC(),Mc),...(()=>{let e=zc("wrap",Bh(),Mc,{phoneRow:qqe()}),t=zc("wrap",Bh(),Mc,{phoneRow:jqe()});return{wrap:t.wrap,[ka("wrap")]:t[ka("wrap")],[Or("wrap")]:e[Or("wrap")]}})(),[Or("order")]:$0e(),...zc("boxShape",ox("Box shape",mr(ube,{}),db(Pg),"shape","auto"),Mc,{phoneRow:ox("Box shape",mr(ube,{}),db(Pg),"shape","auto",{phoneRest:e=>Eg(e)})}),[qE]:kd("desktop",une(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:ZO(mr(Sqe,{size:18}),"none"),[vb]:kd("desktop",lo("Card style",mr(hbe,{}),QQ.map(e=>({...e,picture:hre[e.value]})),"table",{columns:2,cell:Er})),share:kd("desktop",Nre()),[ka("share")]:Ire(),[Or("share")]:Are(),[qp]:kd("desktop",ne(ZH,mr(gbe,{}),[...ype],k1)),[Or(qp)]:kd("mobile",ne(ZH,mr(gbe,{}),[...vpe],k1)),...Fre(),...zc("blockSpacing",Lre(),Mc),line:oe("Line",!1,mr(Tqe,{}),"A line across the blocks, with a dot on each."),upcoming:oe("Upcoming",!1,mr(vqe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:ne("Join",mr(kqe,{}),b_,g_),_gShadow:Cg("Shadow"),...zc("shadow",oe("Shadow",!1,mr(Pqe,{})),Mc),...zc("fillColor",Mre(),Mc),[ma]:jr("Fill content","colour"),[qP]:xqe("fillColor"),_gBackground:Cg("Background image"),bgImage:kd("desktop",Qe("Image","image/*")),bgImagePhone:kd("mobile",Qe("Image","image/*")),[rr]:jr("Image content","image",{content:!0}),...Yqe(),placement:ad("Content position"),_gLink:Cg("Link"),link:pf(Ve("Link to")),[Vo]:Dc(),_gJump:Cg("Anchor"),jumpHighlight:oe("Highlight when a link jumps here",!1,mr(_qe,{}),"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.")},[[["darken","darkenStyle","placement"],bbe],[[Or("share")],{all:[wbe,Cx]}],[[qp],vbe(qp)],[[Or(qp)],vbe(Or(qp))],[[Or("wrap")],{all:[wbe,Og,Cx,Sk]}],[[Or("order")],{all:[Ag,Cx,Ng]}],[["phoneRow"],Cx],[[wk],{all:[xbe,{not:{field:wk,is:"chevron"}}]}],[["tabShape"],Cqe],[["rowTitle","startsOpen"],Aqe],[["align","blockSpacing",ka("blockSpacing"),Or("blockSpacing")],Rg],[[ka("justify"),Or("justify")],{all:[Og,kbe,Sk]}],[[ka("align"),Or("align")],{all:[$qe,Kqe,kbe]}],[[ka("wrap")],{all:[Og,i9,Abe,Ng,Rg,Sk]}],[[ka("shadow"),Or("shadow")],l9],[[ka("darken"),Or("darken"),ka("darkenStyle"),Or("darkenStyle")],{all:[bbe,Vqe]}],[["separator"],s9],[[vb],{field:vb,set:!0}],[["columns"],{any:[Ag,xbe]}],[[ka("columns")],Ag],[[Oh],Fbe],[[ka("gap")],{all:[Bqe,ybe]}],[["gap",Or("gap")],ybe],[["justify"],{all:[Og,zqe,Rg,Sk]}],[["wrap"],{all:[Og,i9,Ng,Rg,Sk]}],[["share"],{all:[i9,Ng,Rg]}],[[ka("share")],{all:[_be,Ng]}],[["line"],Rqe],[["upcoming"],Lqe],[["jumpHighlight"],Oqe],[["boxShape",ka("boxShape"),Or("boxShape")],Nqe],[["direction","share",Or("order")],Uqe],[["join"],z6],[[m2],z6]]),resolveData:(e,t)=>{let o=e.props,n=o[vb];return t.changed?.[vb]===!0&&eee(n)?{...e,props:tee(o,n,ue,Oe)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:B0e(o)}:e},resolveFields:(e,t)=>{let o=td(t.appState,e.props?.id)?.inCopy===!0,n=o&&fP(t.appState,e.props?.id)===null;return Zqe(eXe(tXe(mbe(oXe(e,{...t,fields:Ya(t.fields,e,t)}),e.props),Lg(e,t),o),n),e.props)},showWhenFacts:{...Va,...Qre,...abe,...Gqe,...Dqe,...Mqe,...cbe,...Iqe}},Jqe=at(qre,sB),Qqe=["darken","darkenStyle",XE,wh];function eXe(e,t){if(!t)return e;let o={...e};for(let n of Qqe){if(!(n in o))continue;let{showWhen:r,...a}=o[n];o[n]=a}return o}function tXe(e,t,o=!1){let n=e;return bh in n&&ds(t)&&o?{...n,[bh]:at(Xre,Jre)}:!(bh in n)||ds(t)?e:{...n,[bh]:Jqe}}function oXe(...[e,t]){let{fields:o}=t;{if(ds(Lg(e,t))){let n=Hp({fallback:{top:Ri.desktop,bottom:Ri.desktop,left:Ri.side,right:Ri.side},tablet:!0,siteSide:!0});return W2(o,n)}return e.props.padV2!==!0?W2(o,Hp({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as Ig}from"react/jsx-runtime";import{ColumnsIcon as Gbe,GridIcon as rXe,LayoutIcon as aXe,SlidePickerCardsIcon as iXe,WidthIcon as $be}from"efficient-easel/icons";import{deviceField as dN}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as nXe}from"efficient-shell/format";var d9=["grid","carousel"],c9="grid",Hbe={grid:"Grid",carousel:"Carousel"};function Dbe(e){return nXe(d9,c9,e)}var aN=50,iN=80,sN=30,lN=90;function p9(e,t){let o=Tn(e);return o===void 0?t:Math.min(lN,Math.max(sN,o))}function Mbe(e,t,o){if(o<=0)return null;let n=((e-t)%o+o)%o;return n===0?0:n===1?1:n===o-1?-1:null}function zbe(e,t,o){return o<=0?0:((e+t)%o+o)%o}function Wbe(e,t){return!t||t.height<=0?null:Math.round(t.top-e.top+t.height/2)}var m9=jn.Grid,Ube={label:"Grid",fields:m9,defaultProps:{columns:"3",content:[]}};var sXe={grid:Ig(rXe,{}),carousel:Ig(iXe,{})},Kbe={field:"layout",is:"carousel"},Vbe={fields:{layout:lo("Layout",Ig(aXe,{}),d9.map(e=>({label:Hbe[e],value:e,picture:sXe[e]})),c9),carouselTile:at(dN("desktop",ae("Tile width",Ig($be,{}),sN,lN,1,aN,{kind:"size",base:"%"})),Kbe),carouselTilePhone:at(dN("mobile",ae("Tile width",Ig($be,{}),sN,lN,1,iN,{kind:"size",base:"%"})),Kbe),columns:dN("desktop",ae("Columns",Ig(Gbe,{}),1,YZ,1,qZ)),mobileColumns:dN("mobile",ae("Columns",Ig(Gbe,{}),e6,jZ,1,e6)),...di("Grid"),content:m9.content}};import{jsx as lXe}from"react/jsx-runtime";var Ybe={fields:{text:q("Heading",W.heading),level:ne("Level",lXe(ua,{noun:"heading"}),[{label:"H1",value:"1"},{label:"H2",value:"2"},{label:"H3",value:"3"},{label:"H4",value:"4"},{label:"H5",value:"5"},{label:"H6",value:"6"}],"2")}};import{jsx as gn}from"react/jsx-runtime";import{parseOption as dXe}from"efficient-shell/format";var u9="bottom-right",f9=["outline","solid","square","bare"],h9="outline",jbe={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},qbe=!1,Xbe=["prev","next"],Zbe={prev:"Previous slide",next:"Next slide"};function cXe(e){return dXe(f9,h9,e)}function pXe(e){return S0e(e)??u9}var mXe="flex-row items-center gap-2";function Jbe(e){return KO(pXe(e),mXe)}var uXe={outline:"grid h-10 w-10 cursor-pointer place-items-center rounded-full border border-overlay-chrome/60 text-overlay-fg transition-colors hover:border-overlay-chrome hover:bg-overlay-scrim/30",solid:"grid h-10 w-10 cursor-pointer place-items-center rounded-full border border-overlay-chrome bg-overlay-chrome text-overlay-scrim transition-colors hover:bg-overlay-chrome/85",square:"grid h-10 w-10 cursor-pointer place-items-center rounded-md border border-overlay-chrome/60 text-overlay-fg transition-colors hover:border-overlay-chrome hover:bg-overlay-scrim/30",bare:"grid h-10 w-10 cursor-pointer place-items-center text-overlay-fg transition-colors hover:text-overlay-chrome"};function Qbe(e){return uXe[cXe(e)]}function ewe(e){return e.shown===!0&&(e.count??0)>1}function cN(e,t,o){if(o<=1)return t;let n=Math.min(Math.max(t,0),o-1);return e==="prev"?(n-1+o)%o:(n+1)%o}import{ClockIcon as cwe,EyeIcon as v9,HandIcon as gXe,ScrollMoveDownIcon as pwe,OpacityIcon as bXe,PhoneIcon as lwe,PlayIcon as wXe,SlideArrowsBareIcon as xXe,SlideArrowsRoundIcon as yXe,SlideArrowsSquareIcon as vXe,SlidePickerBarIcon as kXe,SlidePickerCardsIcon as SXe,SlidePickerDotsIcon as TXe,SlidePickerNumbersIcon as EXe,SlidePickerSquaresIcon as PXe,SquareIcon as dwe,StylesIcon as _Xe}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as CXe}from"efficient-shell/icons/efficient-looks";import{group as ff}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as k9,deviceNote as LXe}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as twe}from"efficient-shell/format";var g9=["manual","timer","scroll"],owe={manual:"Hand",timer:"Timer",scroll:"Scroll"};function pN(e){return twe(g9,e.autoplay===!0?"timer":"manual",e.slideChange)}var b9=25,w9=10,x9=100;function nwe(e){let t=Tn(e);return t===void 0?b9:Math.min(x9,Math.max(w9,t))}function rwe(e,t,o){return o<=0||t<=0?0:Math.min(o-1,Math.max(0,Math.floor(e/t)))}var fXe=["wipe"],hXe="wipe";function awe(e){return twe(fXe,hXe,e)}var iwe=350,y9=8;var mN=jn.Hero,swe={label:"Hero",drawsPictures:!0,fields:mN,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};var RXe=CXe,OXe={cards:gn(SXe,{}),dots:gn(TXe,{}),numbers:gn(EXe,{}),bar:gn(kXe,{}),squares:gn(PXe,{})},NXe={outline:gn(yXe,{}),solid:gn(RXe,{}),square:gn(vXe,{}),bare:gn(xXe,{})},AXe={manual:gn(gXe,{}),timer:gn(cwe,{}),scroll:gn(pwe,{})},IXe={any:[{field:"slideChange",is:"timer"},{all:[{field:"slideChange",set:!1},{field:"autoplay",is:!0}]}]},FXe={field:"slideChange",is:"scroll"},mwe={fields:{_dDevice:LXe(),_gContent:ff("Content"),slides:mN.slides,strip:mN.strip,_gStyle:ff("Style"),alignment:pne(),_gTexture:ff("Texture"),showTexture:oe("Show texture",Toe,gn(v9,{})),textureColor:Jue,textureOpacity:ae("Texture opacity",gn(bXe,{}),0,100,1,40,"%"),textureShape:ne("Texture style",gn(_Xe,{}),Poe,Eoe),_gLayout:ff("Layout"),...q5(),...tfe,_gAutoplay:ff("Auto-slide"),slideChange:gne("Change slides",gn(wXe,{}),g9.map(e=>({label:owe[e],value:e,picture:AXe[e]})),"manual"),autoplayInterval:at(ae("Still time per slide",gn(cwe,{}),2,15,1,6,"s"),IXe),scrollPerSlide:at(ae("Scroll per slide",gn(pwe,{}),w9,x9,1,b9,{kind:"height",base:"%"}),FXe),_gPicker:ff("Slide picker"),showPicker:oe("Show slide picker",T0e,gn(v9,{})),pickerShape:lo("Slide picker shape",gn(dwe,{}),ZM.map(e=>({label:YO[e],value:e,picture:OXe[e]})),VO),pickerPlacement:ad("Slide picker placement",{fallback:XM}),_gArrows:ff("Arrows"),showArrows:oe("Show arrows",qbe,gn(v9,{})),arrowsShape:lo("Arrows shape",gn(dwe,{}),f9.map(e=>({label:jbe[e],value:e,picture:NXe[e]})),h9),arrowsPlacement:ad("Arrows placement",{fallback:u9}),_gPhone:k9("mobile",ff("On a phone")),phoneUpDown:k9("mobile",_e(woe,gn(lwe,{}),koe(),goe)),phoneSideways:k9("mobile",_e(xoe,gn(lwe,{}),Soe(),boe)),phoneWordsTop:qu.phoneWordsTop,phoneWordsBottom:qu.phoneWordsBottom,phoneBoxGap:qu.phoneBoxGap},resolveFields:(e,{fields:t})=>{let o=e.props??{},n=pN(o),r=t.slideChange;return!r||r.currentValue===n?t:{...t,slideChange:{...r,currentValue:n}}}};import{jsx as fwe}from"react/jsx-runtime";import{WidthIcon as hwe}from"efficient-easel/icons";import{BOX_NUDGE_ROW as gwe,BOX_WIDTH_ROW as T9,group as E9}from"efficient-easel/screen/lib/document/box-fields";var S9={...jn.HeroGroup,content:{...jn.HeroGroup.content,allow:_q}},uwe={label:Pq,inline:!0,fields:S9,defaultProps:{placement:LZ,nudgeX:0,nudgeY:0,content:[]}};var bwe={fields:Le({_gContent:E9("Content"),name:Qo(Ub(Pr(Q("Box name",W.boxName)))),content:S9.content,_gLayout:E9("Layout"),placement:ad("Placement",{pointsFor:Sre}),width:ae("Width",fwe(hwe,{}),qF,XF,5,AZ,T9),...id(T9,"width"),direction:CC("HeroGroup"),...di("HeroGroup"),justify:sC(),align:lC(),wrap:Bh(),_gNudge:E9("Nudge"),...mne({keys:{x:"nudgeX",y:"nudgeY"},min:-jF,max:jF,label:null,length:gwe}),...id(gwe,"nudgeX"),...Hp({tablet:!0,siteSide:!0})},[[["placement"],{context:"heroGroupDepth",is:0,default:0}]]),resolveFields:(e,{fields:t,appState:o})=>{let n=typeof e.props.id=="string"?e.props.id:"";if(FP(o?.data,n)===0)return t;let r={...t};return r.width=ae("Width",fwe(hwe,{}),qF,XF,5,IZ,T9),r}};import{jsx as xwe}from"react/jsx-runtime";import{MediaIcon as HXe,OpacityIcon as DXe}from"efficient-easel/icons";import{group as Tk}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as MXe,deviceNote as zXe}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as BXe}from"efficient-shell/format";var P9=jn.HeroSingle,wwe={label:"Hero Single",drawsPictures:!0,fields:P9,defaultProps:{mediaType:Ba.HeroSingle,[Fa.image]:BXe,tintColor:us,tintOpacity:0,overlay:100,overlayColor:us,overlayPosition:Ah}};var ywe=Ob("video",Ba.HeroSingle),WXe=Ob("image",Ba.HeroSingle),vwe=[...J5,"tintColor","tintOpacity"],kwe={fields:z_({_dDevice:zXe(),boxNotice:tO("HeroSingle"),boxes:P9.boxes,_gStyle:Tk("Style"),overlay:ae("Overlay",xwe(DXe,{}),0,100,5,100,"%"),overlayColor:fD.overlayColor,overlayPosition:fD.overlayPosition,_gLayout:Tk("Layout"),...q5({tabletNumber:!1}),_gPhone:MXe("mobile",Tk("On a phone")),phoneWordsTop:qu.phoneWordsTop,phoneWordsBottom:qu.phoneWordsBottom,phoneBoxGap:qu.phoneBoxGap,_gMedia:Tk("Media"),mediaType:_e("Type",xwe(HXe,{}),AC,Ba.HeroSingle),mediaLayout:gg.mediaLayout,mediaLayoutPhone:gg.mediaLayoutPhone,...X5,videoSource:ju.videoSource,mediaVideo:Qe(S2,"video/*",T2),youtubeUrl:ju.youtubeUrl,videoPlayback:ju.videoPlayback,poster:Qe("Video poster","image/*","Upload a poster still"),_gTint:Tk("Image tint"),tintColor:G1(),tintOpacity:U1(),...$1},{parts:{media:["mediaType",...Z5,"videoSource","mediaVideo","youtubeUrl","videoPlayback","poster"],image:vwe,image2:nx},onlyFor:{image:[...vwe,"_gTint",...nx],video:["videoSource","videoPlayback","poster"]},rules:{mediaVideo:{all:[ywe,{field:"videoSource",is:"upload",default:rl}]},youtubeUrl:{all:[ywe,{field:"videoSource",is:"youtube",default:rl}]},...Q5(WXe)},fallback:Ba.HeroSingle})};import{jsx as Ek}from"react/jsx-runtime";import{BlockVideoIcon as GXe,ClockIcon as $Xe,ImageIcon as KXe,MediaIcon as VXe,PlayIcon as YXe}from"efficient-easel/icons";import{group as uN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Rx}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as UXe}from"efficient-shell/format";var _9=jn.HeroSlide,Swe={label:"Hero Slide",fields:_9,defaultProps:{mediaType:Ba.HeroSlide,videoSpeed:100,[Fa.image]:UXe,tintColor:us,overlay:0}};var hf=Ob("video",Ba.HeroSlide),jXe=Ob("image",Ba.HeroSlide),Twe=[...J5,"tintColor","overlay"],Ewe={fields:z_({_gContent:uN("Content"),name:Qo(Ub(Q("Slide name",W.slideName))),process:Qo(U("Reel label","Label")),groupNotice:tO("HeroSlide"),groups:_9.groups,_gMedia:uN("Media"),mediaType:_e("Type",Ek(VXe,{}),AC,Ba.HeroSlide),mediaLayout:gg.mediaLayout,mediaLayoutPhone:gg.mediaLayoutPhone,videoSource:ju.videoSource,mediaVideo:Rx("desktop",Qe(S2,"video/*",T2,{frame:"videoFrame"})),mediaVideoPhone:Rx("mobile",Qe(S2,"video/*",T2,{frame:"videoFramePhone"})),videoFramePhone:Mp(),mediaVideoAv1:Rx("desktop",Qe(_6,"video/mp4",C6)),mediaVideoAv1Phone:Rx("mobile",Qe(_6,"video/mp4",C6)),youtubeUrl:ju.youtubeUrl,videoPlayback:ju.videoPlayback,videoSpeed:ae("Playback speed",Ek(YXe,{}),25,100,5,100,"%"),loadingShows:zre("Show while loading",Ek($Xe,{}),{frame:Ek(GXe,{}),image:Ek(KXe,{})}),videoFrame:Mp(),...X5,poster:Rx("desktop",Qe("Image","image/*","Choose an image")),posterPhone:Rx("mobile",Qe("Image","image/*","Choose an image")),_gTint:uN("Image tint"),tintColor:G1(),overlay:U1(),...$1,_gOverlay:uN("Overlay"),overlayColor:hD.overlayColor,overlayPosition:hD.overlayPosition},{parts:{media:["mediaType",...Z5,"videoSource","mediaVideo","mediaVideoPhone","videoFramePhone","mediaVideoAv1","mediaVideoAv1Phone","youtubeUrl","videoPlayback","videoSpeed","loadingShows","videoFrame","poster","posterPhone"],image:Twe,image2:nx},onlyFor:{image:[...Twe,"_gTint",...nx],video:["videoSource","videoPlayback","loadingShows","videoFrame"]},fallback:Ba.HeroSlide,rules:{mediaVideo:{all:[hf,{field:"videoSource",is:"upload",default:rl}]},mediaVideoPhone:{all:[hf,{field:"videoSource",is:"upload",default:rl}]},mediaVideoAv1:{all:[hf,{field:"videoSource",is:"upload",default:rl}]},mediaVideoAv1Phone:{all:[hf,{field:"videoSource",is:"upload",default:rl}]},youtubeUrl:{all:[hf,{field:"videoSource",is:"youtube",default:rl}]},videoSpeed:{all:[hf,{field:"videoSource",is:"upload",default:rl},{field:"videoPlayback",is:"background",default:U_}]},...Q5(jXe),poster:{all:[hf,O6]},posterPhone:{all:[hf,O6]}}})};import{jsx as C9}from"react/jsx-runtime";import{phoneKey as qXe}from"efficient-easel/draw";import{CropIcon as Pwe,ImageIcon as XXe}from"efficient-easel/icons";import{group as R9,phoneTwinFields as ZXe}from"efficient-easel/screen/lib/document/box-fields";var _we={fields:{_gImage:R9("Image"),src:Qe("Image","image/*",void 0,{focus:"focal",focusWhen:(e,t)=>d2(t,e.fit,e.aspect,e[qXe("aspect")])}),alt:Qo(Q("Alt text")),rowField:jr("Shows","image"),[Vo]:Dc(),...ZXe("aspect",ox("Aspect ratio",C9(Pwe,{}),db(Pg),"image","16/9",{more:[Wue(bJ)]}),void 0,{phoneRow:ox("Aspect ratio",C9(Pwe,{}),db(Pg),"image","16/9",{phoneRest:EJ})}),fit:ne($P,C9(XXe,{}),fJ(),"cover"),focal:Mp(),focalTablet:Mp(),focalPhone:Mp(),href:pf(Ve("Link")),_gStyle:R9("Style"),grayscale:rx(),...Px(),_gShape:R9("Shape"),corners:Kre(),..._re(yne,"corners"),cornerSides:Cre()},resolveFields:(e,t)=>jre(Ya(t.fields,e,t),e,t),showWhenFacts:Va};import{jsx as JXe}from"react/jsx-runtime";import{group as Cwe}from"efficient-easel/screen/lib/document/box-fields";var Rwe={fields:{_gContent:Cwe("Content"),eyebrow:U("Chip label","Integrations"),title:q("Heading",`Plays well with
|
|
13
|
+
`:""}`}),d]})]})}let g=x=>{!m||!Tfe(e,!1)||x.target===x.currentTarget&&p()},h=e.height==="full",w=e.fullWidth||h,b=DGe(e),k=ND("div",{ref:c,tabIndex:-1,"data-popup-panel":"",className:"relative flex flex-col bg-bg text-fg outline-none",style:{width:e.fullWidth?"100%":`min(${e.width}px, 100%)`,height:h?"100%":void 0,maxHeight:e.fullWidth&&!h||b.place==="outside"?`calc(100% - ${LD}px)`:"100%",borderRadius:w?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[b.place!=="none"?wg("button",{type:"button","aria-label":"Close",onClick:r?void 0:p,"data-popup-close":b.place,"data-popup-close-until":b.until,className:"absolute z-[5] flex h-[38px] w-[38px] items-center justify-center border border-line bg-bg font-mono text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-fg",style:b.place==="outside"?{top:-HGe,right:0}:{top:12,right:12},children:"\xD7"}):null,b.until?wg("style",{children:`@container popup-frame (min-width: ${b.until+1}px){[data-popup-close-until="${b.until}"]{display:none}}`}):null,wg("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return wg("div",{role:a||r?"dialog":"region","aria-modal":m?!0:void 0,"aria-label":s,"data-popup-frame":r?"inline":"live",onClick:g,className:r?"relative flex min-h-[100vh] w-full":"fixed inset-0 z-[90] flex",style:{...BGe[e.placement],background:Sfe(e.tintColor,e.tintOpacity),padding:w?0:b.place==="outside"&&e.placement.startsWith("top")?`${24+LD}px 24px 24px`:24,...b.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:k})}var zGe=25.4,q1=400,sO=152,WGe=58,Efe=sO*Math.cos(WGe*Math.PI/180),UGe=14,GGe=q1/2,$Ge={sectionWidth:225,aspectRatio:60,rimDiameter:17};function _fe(e){let t=hc(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:$Ge}function Cfe(e){let t=e.rimDiameter*zGe/2,o=t+e.sectionWidth*e.aspectRatio/100,n=sO*(e.sectionWidth/o),r=t/o;return{cy:GGe,rx:Efe,ry:sO,cxf:q1/2-n/2-UGe,dx:n,rimRx:Efe*r,rimRy:sO*r}}var ro=e=>e.toFixed(1);function lO(e,t,o,n=!1){let r=e.cxf+t*e.dx,[a,i]=n?[e.cy+e.ry,e.cy-e.ry]:[e.cy-e.ry,e.cy+e.ry];return`M${ro(r)} ${ro(a)} A${ro(e.rx)} ${ro(e.ry)} 0 0 ${o} ${ro(r)} ${ro(i)}`}function FD(e,t,o){let n=e.cxf+t*e.dx,r=e.cxf+o*e.dx,a=e.cy-e.ry,i=e.cy+e.ry;return`M${ro(n)} ${ro(a)} L${ro(r)} ${ro(a)} A${ro(e.rx)} ${ro(e.ry)} 0 0 1 ${ro(r)} ${ro(i)} L${ro(n)} ${ro(i)} A${ro(e.rx)} ${ro(e.ry)} 0 0 0 ${ro(n)} ${ro(a)} Z`}function iO(e,t,o){let n=o*Math.PI;return[e.cxf+t*e.dx+e.rx*Math.sin(n),e.cy-e.ry*Math.cos(n)]}function Rfe(e,t,o,n,r){let[a,i]=iO(e,t,n),[s,l]=iO(e,t,r),[d,c]=iO(e,o,r),[p,m]=iO(e,o,n);return`M${ro(a)} ${ro(i)} A${ro(e.rx)} ${ro(e.ry)} 0 0 1 ${ro(s)} ${ro(l)} L${ro(d)} ${ro(c)} A${ro(e.rx)} ${ro(e.ry)} 0 0 0 ${ro(p)} ${ro(m)} L${ro(a)} ${ro(i)} Z`}var Pfe=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],KGe={COM:[{f:[0,.115]},{f:[.145,.26]},{f:[.29,.405]},{f:[.435,.55]},{f:[.58,.695]},{f:[.725,.84]},{f:[.87,1]}],P:[{f:[0,.17],blocks:{count:9,gap:.34}},{f:[.2,.38]},{f:[.42,.58]},{f:[.62,.8]},{f:[.83,1],blocks:{count:9,gap:.34,phase:.5}}],HP:[{f:[0,.3]},{f:[.34,.52]},{f:[.56,.7]},{f:[.74,1],blocks:{count:16,gap:.18}}],UHP:[{f:[0,.34]},{f:[.4,.56]},{f:[.62,1]}],SUV:[{f:[0,.16],blocks:{count:7,gap:.4}},{f:[.2,.36],blocks:{count:11,gap:.26,phase:.5}},{f:[.4,.6]},{f:[.64,.8],blocks:{count:11,gap:.26,phase:.5}},{f:[.84,1],blocks:{count:7,gap:.4}}],LT:[{f:[0,.22],blocks:{count:11,gap:.26}},{f:[.26,.48],blocks:{count:11,gap:.26,phase:.5}},{f:[.52,.74],blocks:{count:11,gap:.26}},{f:[.78,1],blocks:{count:11,gap:.26,phase:.5}}],AT:[{f:[0,.23],blocks:{count:6,gap:.46}},{f:[.29,.5],blocks:{count:6,gap:.46,phase:.5}},{f:[.56,.77],blocks:{count:6,gap:.46}},{f:[.83,1],blocks:{count:6,gap:.46,phase:.5}}],MT:[{f:[0,.29],blocks:{count:4,gap:.58}},{f:[.36,.64],blocks:{count:4,gap:.58,phase:.5}},{f:[.71,1],blocks:{count:4,gap:.58}}]},VGe=[["ultra high performance","UHP"],["uhp","UHP"],["high performance","HP"],["hp","HP"],["performance","HP"],["sport","HP"],["mud terrain","MT"],["mud","MT"],["mt","MT"],["all terrain","AT"],["at","AT"],["light truck","LT"],["lt","LT"],["commercial","COM"],["com","COM"],["van","COM"],["cargo","COM"],["suv","SUV"],["4x4","SUV"],["crossover","SUV"],["cuv","SUV"],["passenger","P"],["touring","P"],["highway","P"],["p","P"]];function Ofe(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return Pfe;for(let[o,n]of VGe)if(t.includes(` ${o} `))return KGe[n];return Pfe}var dO="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as YGe}from"react";function Ka(e,t=/:/g){let o=YGe().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as X1,jsx as jt,jsxs as Lc}from"react/jsx-runtime";var vs={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},jGe=[.8,.52,.24],Nfe=.4,Lfe=.88,Afe=.3,Ife=5,Ffe=.3,Bfe=.84,qGe=7,bo=e=>Math.round(e*10)/10;function BD({size:e,type:t,className:o}){let n=Ka("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=Cfe(_fe(e)),i=FD(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Lc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${q1} ${q1}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[jt("title",{children:s}),Lc("defs",{children:[jt(ZGe,{id:r}),jt("clipPath",{id:r.crown,children:jt("path",{d:i})})]}),jt("ellipse",{cx:bo(a.cxf+a.dx/2),cy:bo(a.cy+a.ry-4),rx:bo(a.dx*1.5),ry:16,fill:`url(#${r.shadow})`}),jt(JGe,{g:a,id:r}),jt(QGe,{g:a,id:r}),jt("path",{d:i,fill:`url(#${r.tread})`}),jt("g",{clipPath:`url(#${r.crown})`,children:Ofe(t).map(l=>jt(XGe,{g:a,column:l},l.f[0]))}),jt("path",{d:lO(a,0,0,!0),stroke:"currentColor",strokeOpacity:vs.shoulder,strokeWidth:1.2}),jt("path",{d:lO(a,1,1),stroke:"currentColor",strokeOpacity:vs.silhouette,strokeWidth:1.4})]})}function XGe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Lc(X1,{children:[jt("path",{d:FD(e,o,n),fill:"currentColor",fillOpacity:vs.rib}),jt("path",{d:lO(e,o,1),stroke:"currentColor",strokeOpacity:vs.grooveWall,strokeWidth:1})]});let{count:r,gap:a,phase:i=0}=t.blocks,s=1/r,l=[];for(let d=-1;d<=r;d+=1){let c=Math.max((d+i+a/2)*s,0),p=Math.min((d+i+1-a/2)*s,1);p-c>s*.15&&l.push([c,p])}return jt(X1,{children:l.map(([d,c])=>jt("path",{d:Rfe(e,o,n,d,c),fill:"currentColor",fillOpacity:vs.rib,stroke:"currentColor",strokeOpacity:vs.grooveWall,strokeWidth:1},d))})}function ZGe({id:e}){return Lc(X1,{children:[Lc("linearGradient",{id:e.tread,x1:"0",y1:"0",x2:"1",y2:"0",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.07}),jt("stop",{offset:"0.14",stopColor:"currentColor",stopOpacity:.24}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.18}),jt("stop",{offset:"0.84",stopColor:"currentColor",stopOpacity:.1}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.05})]}),Lc("linearGradient",{id:e.wall,x1:"0.15",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.28}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.17}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.08})]}),Lc("linearGradient",{id:e.rim,x1:"0.1",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.46}),jt("stop",{offset:"0.5",stopColor:"currentColor",stopOpacity:.26}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.12})]}),Lc("radialGradient",{id:e.shadow,children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function JGe({g:e,id:t}){let o=e.rimRy/e.ry,n=a=>o+(1-o)*a,r=Math.max(6,(e.ry-e.rimRy)*.3);return Lc(X1,{children:[jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx),ry:bo(e.ry),fill:`url(#${t.wall})`}),jGe.map((a,i)=>{let s=n(a);return jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*s),ry:bo(e.ry*s),stroke:"currentColor",strokeOpacity:vs.relief[i],strokeWidth:1},a)}),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*n(Nfe)),ry:bo(e.ry*n(Nfe)),stroke:"currentColor",strokeOpacity:vs.lettering,strokeWidth:bo(r)})]})}function QGe({g:e,id:t}){let o=Array.from({length:Ife},(n,r)=>{let a=(r*(360/Ife)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*Ffe*Math.cos(a),y1:e.cy+e.rimRy*Ffe*Math.sin(a),x2:e.cxf+e.rimRx*Bfe*Math.cos(a),y2:e.cy+e.rimRy*Bfe*Math.sin(a)}});return Lc(X1,{children:[jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx),ry:bo(e.rimRy),fill:`url(#${t.rim})`}),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Lfe),ry:bo(e.rimRy*Lfe),fill:"currentColor",fillOpacity:vs.dishFill,stroke:"currentColor",strokeOpacity:vs.dishEdge,strokeWidth:1}),o.map((n,r)=>jt("line",{x1:bo(n.x1),y1:bo(n.y1),x2:bo(n.x2),y2:bo(n.y2),stroke:"currentColor",strokeOpacity:vs.spoke,strokeWidth:qGe,strokeLinecap:"round"},r)),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Afe),ry:bo(e.rimRy*Afe),fill:"currentColor",fillOpacity:vs.hubFill,stroke:"currentColor",strokeOpacity:vs.hubEdge,strokeWidth:1})]})}import{jsx as HD}from"react/jsx-runtime";function am({image:e,size:t,type:o,sizes:n,priority:r=!1,className:a="aspect-square",showBackground:i=!0}){return HD("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:HD(co,{label:t||"Tyre",src:ms(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:HD(BD,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as Z1}from"react/jsx-runtime";function e$e(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function DD({line:e,catalog:t,tyre:o}){let n=t.find(c=>c.slug===e.slug),r=e.config.find(c=>c.gold)?.label,a=n?.finishes.find(c=>c.name===r&&c.src)??n?.finishes.find(c=>c.src),i=n?.spokes??5,s=n?.mesh??!1,d=(n?.finishes.find(c=>c.name===r)??n?.finishes[0])?.color??$se;return Z1("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:nR(e)?Z1(am,{image:o?.coverImage,size:e.size,type:e$e(o),sizes:"96px",className:"h-full w-full"}):a?.src?Z1(Qs,{src:a.src,alt:`${n?.name??e.slug} \u2014 ${a.name}`,width:120,height:120,sizes:"96px",className:"relative z-[2] block w-[88%] object-contain",style:{filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"}}):n||t.length===0?Z1("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:Z1(Kh,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as MD,jsxs as o$e}from"react/jsx-runtime";var Hfe={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function Dfe(e,t){return Math.min(EB,Math.max(1,e+t))}var Mfe="disabled:cursor-not-allowed disabled:opacity-40",t$e={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${Hfe.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${Mfe}`,value:`w-11 text-center font-mono ${Hfe.labelSmall} font-bold tracking-[0.1em] text-fg`},small:{frame:"flex items-center border border-line",button:`h-[30px] w-[30px] cursor-pointer font-mono text-fg-dim transition-colors enabled:hover:text-accent ${Mfe}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function J1({value:e,onChange:t,size:o}){let n=t$e[o];return o$e("div",{className:n.frame,children:[MD("button",{type:"button",onClick:()=>t(Dfe(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),MD("span",{className:n.value,children:e}),MD("button",{type:"button",onClick:()=>t(Dfe(e,1)),disabled:e>=EB,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as Ac,jsx as Ke,jsxs as ao}from"react/jsx-runtime";function zfe({content:e,closeRef:t}){let{close:o,items:n}=Fn(),r=t;return ao("header",{className:"flex flex-shrink-0 flex-col gap-4 border-b border-line px-8 pb-6 pt-8 max-[640px]:px-6 max-[640px]:pt-6 max-[640px]:pb-5",children:[ao("div",{className:"flex items-center justify-between",children:[ao("span",{className:"flex items-center gap-3 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?Ke("span",{className:"border px-2 py-1 text-[10px]",style:{background:"color-mix(in oklab, var(--accent) 12%, transparent)",borderColor:"color-mix(in oklab, var(--accent) 50%, transparent)"},children:e.kickerBadge}):null,(e.kickerBadge?"\xB7 ":"")+e.kickerText]}),Ke("button",{ref:r,type:"button",onClick:o,"aria-label":"Close cart",className:"flex h-8 w-8 items-center justify-center border border-line text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u2715"})]}),ao("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",Ke("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),Ke("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:Une(e,n.length)})]})}function Wfe({content:e}){let{totals:t}=Fn(),{activeCountry:o}=Lt(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return Ke(Ac,{children:ao("div",{className:`grid flex-shrink-0 ${n$e[r-1]} gap-px border-b border-line bg-line`,children:[Ke(zD,{label:"Items",value:ao(Ac,{children:[Ke("em",{className:"font-serif font-normal italic text-accent",children:t.sets})," set",t.sets===1?"":"s"," \xB7 ",t.units," item",t.units===1?"":"s"]})}),e.leadTimeValue?Ke(zD,{label:"Lead time",value:e.leadTimeValue}):null,n?Ke(zD,{label:"Ships to",value:n}):null]})})}function Ufe({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=Fn();return Ke(Ac,{children:o.length===0?Ke(l$e,{content:e}):o.map(a=>Ke(r$e,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function Gfe(){let{items:e,totals:t,bundles:o}=Fn(),{formatMoney:n}=Lt(),r=new Set(e.flatMap(s=>(s.components??[]).map(l=>l.partNumber))),a=new Set(t.appliedBundles.map(s=>s.slug)),i=o.filter(s=>!a.has(s.slug)).filter(s=>s.components.some(l=>r.has(l.partNumber))).slice(0,2);return Ke(Ac,{children:i.length>0&&ao("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",style:{background:"color-mix(in oklab, var(--site-surface) 60%, transparent)"},children:[ao("div",{className:"mb-4 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[Ke("span",{children:"You may also need"}),Ke("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),Ke("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:i.map(s=>Ke(a$e,{href:`/bundles/${s.slug}`,title:s.name,sub:i$e(s,t.currency,n)},s.slug))})]})})}function $fe(){return Ke(Ac,{children:Ke("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:Ke(Yse,{})})})}function Kfe({content:e}){return Ke(Ac,{children:e.promises.length>0&&Ke("div",{className:"flex flex-wrap justify-center gap-5 border-b border-line px-8 pt-6 pb-8 font-mono text-[9px] uppercase tracking-[0.24em] text-fg-dim max-[640px]:px-6",children:e.promises.map(t=>Ke(s$e,{children:t},t))})})}function Vfe(){let{totals:e,coupon:t}=Fn(),{formatMoney:o}=Lt();return Ke(Ac,{children:ao("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[Ke(ef,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>Ke(ef,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:ao("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),e.discount>0&&t?.valid&&Ke(ef,{label:`Coupon \xB7 ${t.code}`,value:ao("span",{style:{color:"var(--green)"},children:["\u2212 ",o(e.discount,e.currency)]})}),t?.deferred&&Ke(ef,{label:`Coupon \xB7 ${t.code}`,value:mse}),t?.valid&&t.effects?.gift&&Ke(ef,{label:`Free gift \xB7 ${t.effects.gift.partNumber}${t.effects.gift.quantity>1?` \xD7${t.effects.gift.quantity}`:""}`,value:Ke("span",{style:{color:"var(--green)"},children:$h})}),Ke(ef,{label:"Shipping",value:e.shippingStatus==="free"?Ke("span",{style:{color:"var(--green)"},children:$h}):Wse(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?Ke(ef,{label:e.tax.inclusive?`${e.tax.name} included \xB7 ${e.tax.rate}%`:e.tax.name,value:o(e.tax.amount,e.currency)}):e.tax.name?Ke(ef,{label:e.tax.name,value:zse}):null),ao("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[ao("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",Ke("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),Ke("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:e.repricing?Ise:o(e.grand,e.currency)})]})]})})}function Yfe(){let{items:e,close:t}=Fn();return Ke(Ac,{children:ao("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[ao(Be,{href:"/checkout",onClick:t,"aria-disabled":e.length===0,className:["group flex items-center justify-between border px-5 py-5 font-mono text-[12px] uppercase tracking-[0.3em] transition-colors",e.length===0?"pointer-events-none cursor-not-allowed border-line bg-surface text-fg-dim":"border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg"].join(" "),children:["Begin checkout",Ke("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),Ke("div",{className:"flex items-center justify-between px-1 py-2 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:Ke(Be,{href:"/wheels",onClick:t,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})})}var n$e=["grid-cols-1","grid-cols-2","grid-cols-3"];function zD({label:e,value:t}){return ao("div",{className:"flex flex-col gap-1 bg-bg px-4 py-4",children:[Ke("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),Ke("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function r$e({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=Fn(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=Lt();return ao(Ac,{children:[ao("article",{className:"grid grid-cols-[96px_1fr] gap-5 border-b border-line px-8 py-6 transition-colors hover:bg-[color-mix(in_oklab,var(--site-surface)_60%,transparent)] max-[640px]:grid-cols-[78px_1fr] max-[640px]:px-6 max-[640px]:py-5",children:[Ke(DD,{line:e,catalog:r,tyre:t}),ao("div",{className:"flex min-w-0 flex-col gap-2",children:[ao("div",{className:"flex items-start justify-between gap-3",children:[ao("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:["N\xB0 ",e.positionNo," \xB7 ",e.process==="FusionForge\xAE"?ao(Ac,{children:["FusionForge",Ke(x_,{})]}):e.process]}),Ke("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:PB(e,s)===null?Tu:l(PB(e,s),s)})]}),ao("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,Ke("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&ao("div",{className:"mt-1 flex flex-wrap gap-2",children:[e.config.map(d=>Ke("span",{className:["border px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em]",d.gold?"border-[color-mix(in_oklab,var(--accent)_45%,var(--site-line))] text-accent":"border-line text-fg-dim"].join(" "),children:d.label},d.label)),i>0&&ao("span",{className:"border border-accent bg-accent px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em] text-bg",children:[i,"\xD7 free"]})]}),ao("div",{className:"mt-3 flex items-center justify-between gap-3",children:[Ke(J1,{value:e.qty,onChange:n,size:"small"}),ao("div",{className:"flex gap-4 font-mono text-[10px] uppercase tracking-[0.22em]",children:[Ke(Be,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),Ke("button",{type:"button",onClick:o,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&ao("div",{className:"mx-8 -mt-px flex items-start gap-3 border-t-0 px-4 py-4 font-display text-[13px] leading-[1.45] text-fg max-[640px]:mx-6",style:{background:"color-mix(in oklab, var(--accent) 8%, transparent)",border:"1px solid color-mix(in oklab, var(--accent) 35%, var(--site-line))",borderTop:"0"},children:[Ke("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),ao("span",{children:["Verified for your ",Ke("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function a$e({title:e,sub:t,href:o}){return ao(Be,{href:o,className:"flex items-center justify-between border border-line bg-bg px-4 py-3 text-left transition-colors hover:border-accent",children:[ao("span",{className:"flex min-w-0 flex-col gap-1",children:[Ke("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),Ke("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),Ke("span",{className:"ml-2 flex h-6 w-6 flex-shrink-0 items-center justify-center font-mono text-[13px] text-accent",style:{borderColor:"color-mix(in oklab, var(--accent) 45%, var(--site-line))",borderWidth:1,borderStyle:"solid"},children:"+"})]})}function i$e(e,t,o){let n=e.savings[t];if(n===void 0)return"Buy together";let r=o(n,t);return e.savingIsFrom?`Save from ${r}`:`Save ${r}`}function s$e({children:e}){return Ke("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function ef({label:e,value:t}){return ao("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[Ke("span",{children:e}),Ke("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function l$e({content:e}){return ao("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[Ke("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),Ke("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),ao(Be,{href:"/wheels",className:"mt-3 inline-flex items-center gap-3 border border-line px-5 py-3 font-mono text-[11px] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:["Browse the catalog ",Ke("span",{className:"text-accent",children:"\u2192"})]})]})}import{jsx as tf,jsxs as jfe}from"react/jsx-runtime";var p$e=xu(void 0);function Q1({content:e=bC,look:t=p$e}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=Fn(),s=c$e(null),l=kfe(a.filter(nR).map(d=>d.slug));return d$e(()=>{i(t.autoOpen)},[t.autoOpen,i]),jfe($i,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:"Your cart",children:[tf(zfe,{content:e,closeRef:s}),tf(Wfe,{content:e}),jfe("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[tf(Ufe,{content:e,tyres:l}),tf(Gfe,{}),tf($fe,{}),tf(Kfe,{content:e})]}),tf(Vfe,{}),tf(Yfe,{})]})}import m$e from"efficient-easel/screen/components/UiIcon";import{Fragment as f$e,jsx as xg,jsxs as cO}from"react/jsx-runtime";var u$e=Rw(()=>import("./chunks/EditorPreviewCheckout-DZWAHBAZ.js"),{ssr:!1});function WD(){let{chromePlaceholder:e,themeFromDocument:t}=Zn(),{surface:o}=xae();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?cO(f$e,{children:[xg(u$e,{}),xg(qfe,{surface:o})]}):xg(Pu,{children:cO(fw,{preview:!0,children:[xg(Q1,{}),xg(qfe,{surface:o})]})})}function qfe({surface:e}){let{label:t,href:o}=Nue(e);return cO("div",{className:"rounded-full py-1 pr-2 pl-3",style:{position:"fixed",bottom:14,left:"50%",transform:"translateX(-50%)",zIndex:2147483e3,display:"flex",alignItems:"center",gap:8,maxWidth:"calc(100% - 24px)",fontSize:12,fontWeight:600,fontFamily:"system-ui, sans-serif",color:"#334155",background:"rgba(255,255,255,0.94)",border:"1px solid rgba(15,23,42,0.12)",boxShadow:"0 6px 24px rgba(15,23,42,0.18)",pointerEvents:"none"},children:[xg("span",{style:{whiteSpace:"nowrap"},children:u("{name} \xB7 preview only",{name:u(t)})}),cO("a",{className:"rounded-(--radius-control) px-3 py-1",href:o,target:"_blank",rel:"noopener noreferrer",style:{pointerEvents:"auto",flex:"none",display:"inline-flex",alignItems:"center",gap:5,color:"#fff",background:"#2563eb",textDecoration:"none"},children:[u("Open live"),xg(m$e,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as h$e,CursorClickIcon as g$e,EyeIcon as b$e,FullWidthIcon as w$e,HeightIcon as x$e,OpacityIcon as Jfe,PlacementIcon as y$e,WidthIcon as v$e}from"efficient-easel/icons";import{group as ix}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as k$e}from"efficient-easel/screen/lib/document/device-fields";import{jsx as im}from"react/jsx-runtime";var S$e={label:"Inside",value:"inside"},T$e={label:"None",value:"none"};function UD(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,k$e("desktop",o)]))}function Xfe(e,t){return{_gDesign:ix("Color"),tintColor:fs("Tint color",e),tintOpacity:ae("Tint opacity",im(Jfe,{}),I2.min,I2.max,5,t,"%")}}function Zfe(e,t){return{_gBehavior:ix("Behavior"),outsideClick:oe("Outside click",e,im(g$e,{})),...t}}var E$e=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function GD(e){return ae("Width",im(v$e,{}),Q6.min,Q6.max,4,e,"px")}function Qfe(e){if(e===wu){let o=xu(void 0);return UD({_gSize:ix("Width"),width:GD(o.width),_gPosition:ix("Placement"),placement:ne("Placement",im(y$e,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...Xfe(o.tintColor,o.tintOpacity),...Zfe(o.outsideClick,{autoOpen:oe("Auto open",o.autoOpen,im(b$e,{}))})})}let t=bu;return Le(UD({_gSize:ix("Width"),width:GD(t.width),height:ne("Height",im(x$e,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:ix("Placement"),placement:ad("Placement",{fallback:t.placement}),fullWidth:oe("Full width",t.fullWidth,im(w$e,{})),...Xfe(t.tintColor,t.tintOpacity),...Zfe(t.outsideClick,{closeButton:ne("Close button",im(h$e,{}),[S$e,{label:"Outside",value:"outside"},T$e],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],E$e])}function ehe(e,t){return UD({menuPanelWidth:GD(e),menuPanelTintColor:fs("Tint color",bu.tintColor),menuPanelTintOpacity:ae("Tint opacity",im(Jfe,{}),I2.min,I2.max,5,t,"%")})}import{PictureTiles as P$e}from"efficient-shell/ui";import{SettingsField as _$e}from"efficient-easel/panel";import{GridIcon as C$e}from"efficient-easel/icons";import{jsx as yg}from"react/jsx-runtime";function R$e({layout:e}){return yg("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?yg("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):yg("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var the={type:"custom",render:({value:e,onChange:t})=>{let o=wC({layout:e}).layout,n=eB.find(r=>r.value===o);return yg(_$e,{label:u(tB),icon:yg(C$e,{}),value:n?u(n.label):void 0,children:yg(P$e,{className:"sf-gallery-layouts",label:u(tB),value:o,onChange:t,options:eB.map(r=>({value:r.value,label:u(r.label),picture:yg(R$e,{layout:r.value})}))})})}};import{CategoryIcon as U_t,CheckIcon as G_t,ClockIcon as bj,ColumnsIcon as $_t,DirectionIcon as K_t,EyeIcon as V_t,ListIcon as Y_t,PageIcon as j_t,PlacementIcon as q_t,ScrollPointIcon as X_t,TabsIcon as Z_t,TriggerIcon as J_t}from"efficient-easel/icons";import{deviceField as OBe}from"efficient-easel/screen/lib/document/device-fields";import{group as Xl,phoneTwinFields as Q_t}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as O$e}from"efficient-easel/screen/lib/document/box-fields";function sx(e){let t=O$e(e);return{...t,render:o=>t.render({...o,value:Gm(o.value)??o.value})}}import{useContext as L$e,useEffect as nhe,useRef as mO,useState as uO}from"react";import{Button as fO}from"efficient-shell/ui";import{ScreenDocumentContext as A$e}from"efficient-easel/screen/components/ScreenDocumentContext";var ek=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},pO=null,$D=null,KD=null;function N$e(){pO=null,$D=null,KD=null}function ohe(e=!1){let t=fa(),o=In();return(e||!pO||$D===null&&t!==null||KD!==o)&&($D=t,KD=o,pO=(t?Fe.listForms(t,{siteId:o}):Promise.reject(new ek)).catch(n=>{throw N$e(),n instanceof ek?n:new ek(n)})),pO}import{useEaselHost as I$e}from"efficient-easel/screen/lib/host";import{InertHint as VD}from"efficient-easel/panel";import{jsx as cr,jsxs as Ic}from"react/jsx-runtime";var rhe="__create-a-new-form__";function F$e({value:e,forms:t,loadFailed:o,emptyLabel:n}){let r=t??[],a=e?r.some(p=>p.slug===e):!0,i=t===null&&!o,s={value:"",label:i?u("Loading\u2026"):o?u("Forms couldn\u2019t be loaded"):n===void 0?u("No form yet"):u(n)},l=e&&!a?[{value:e,label:i||o?e:u("{slug} \u2014 no form with this name",{slug:e})}]:[],d=r.map(p=>({value:p.slug,label:p.is_active?p.title:u("{title} (switched off)",{title:p.title})})),c=i?[]:[{value:rhe,label:u("Create a new form")}];return[s,...l,...d,...c]}function B$e(e){return e===rhe?{action:"create"}:{action:"store",slug:e}}function H$e({value:e,pickedId:t,forms:o}){if(!e||!t||o.some(r=>r.slug===e))return null;let n=o.find(r=>r.id===t);return n&&n.slug&&n.slug!==e?n.slug:null}function D$e(e){let t=[u("Goes to {place}",{place:u("Storefront \u2192 Forms")})],o=(e.notify_email??"").trim();return o&&t.push(u("Emails a copy to {email}",{email:o})),e.mailing_list_name&&t.push(e.subscribe_mode==="checkbox"?u("Joins the \u201C{audience}\u201D audience, but only when the consent box is ticked",{audience:e.mailing_list_name}):u("Joins the \u201C{audience}\u201D audience",{audience:e.mailing_list_name})),e.kind==="account_signup"&&t.push(e.signup_customer_type==="importer"?u("Creates a wholesale account"):u("Creates a retail account")),t}function YD({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=I$e(),a=L$e(A$e),i=a?a.capabilities.hasForms:!0,[s,l]=uO(null),[d,c]=uO(!1),[p,m]=uO(!1),[f,g]=uO(!1),h=mO(!0),w=mO(e);w.current=e;let b=mO(t);b.current=t;let k=mO(null),x=(P=!1)=>ohe(P).then(I=>{if(h.current){l(I),c(!1);let D=H$e({value:w.current,pickedId:k.current,forms:I});D&&b.current(D)}return I},()=>(h.current&&c(!0),[]));nhe(()=>(h.current=!0,i&&x(),()=>{h.current=!1}),[i]),nhe(()=>i?bR(()=>{x(!0)}):void 0,[i]);let y=e?(s??[]).find(P=>P.slug===e)??null:null;y?k.current=y.id:e||(k.current=null);let S=!!e&&!y&&s!==null&&!d,E=F$e({value:e,forms:s,loadFailed:d,emptyLabel:n}),T=async()=>{m(!0),g(!1);try{let P=await mle(r,{mode:"create"}),I=await x(!0);if(!h.current)return;if(P.status==="timeout"){g(!0);return}if(P.status!=="saved")return;let{form:D}=P;D.slug!==w.current&&b.current(D.slug),I.some(F=>F.id===D.id)||x(!0)}finally{h.current&&m(!1)}},_=P=>{let I=B$e(P);I.action==="create"?T():(g(!1),t(I.slug))};return i?Ic("div",{className:"sf-formpicker",children:[cr(Mb,{label:o,options:E,fallback:"",value:e??"",onChange:_,placeholder:u("Search forms\u2026")}),f&&cr("p",{className:"sf-formsummary-warn",children:u("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),y?Ic("div",{className:"sf-blogsource sf-formsummary",children:[Ic("div",{children:[cr("div",{className:"sf-formsummary-caption",children:ar("{n} field","{n} fields",y.fields.length)}),y.fields.length?cr("ol",{className:"sf-formsummary-fields",children:y.fields.map((P,I)=>cr("li",{children:P.label},P.key||`${P.label}-${I}`))}):cr(VD,{children:u("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),Ic("div",{children:[cr("div",{className:"sf-formsummary-caption",children:u("Where the answers go")}),cr("ul",{className:"sf-formsummary-fields",children:D$e(y).map(P=>cr("li",{children:P},P))})]}),!y.is_active&&cr("p",{className:"sf-formsummary-warn",children:u("This form is switched off, so it won\u2019t appear on the published page. Turn it back on in {place}.",{place:u("Storefront \u2192 Forms")})}),Ic("div",{className:"sf-formsummary-actions",children:[cr(fO,{variant:"secondary",size:"md",onClick:()=>ple(r,y.id),children:u("Edit form \u270E")}),cr(fO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:u("New form +")})]}),cr("p",{className:"es-field-hint",children:u("The questions, the button text and the thank-you message all come from {place}. Edit them there \u2014 this section updates to match.",{place:u("Storefront \u2192 Forms")})})]}):Ic("div",{className:"sf-blogsource sf-formsummary",children:[d?Ic(VD,{children:[u("This website\u2019s forms couldn\u2019t be loaded, so there is nothing to choose from yet."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]}):S&&cr("p",{className:"sf-formsummary-warn",children:u("This section points at \u201C{slug}\u201D, and this website has no form with that name. Pick one from the list above, or leave it \u2014 nothing has been changed.",{slug:e??""})}),Ic("div",{className:"sf-formsummary-actions",children:[d&&cr(fO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{x(!0)},children:u("Try again")}),cr(fO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:u("New form +")})]}),!d&&cr("p",{className:"es-field-hint",children:u("Pick a form to show here, or build a new one. Forms are made once in {place} and can be shown on any number of pages.",{place:u("Storefront \u2192 Forms")})})]})]}):cr("div",{className:"sf-formpicker",children:cr("div",{className:"sf-blogsource sf-formsummary",children:Ic("div",{children:[cr("div",{className:"sf-formsummary-caption",children:u(o)}),Ic(VD,{children:[u("Forms aren\u2019t available in this editor, so there is nothing to choose here."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]})]})})})}import{jsx as M$e}from"react/jsx-runtime";function Fc(e,t){return{type:"custom",render:({value:o,onChange:n})=>M$e(YD,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{createContext as z$e,useContext as W$e}from"react";import{jsx as Bc,jsxs as jD}from"react/jsx-runtime";function qD(e){return lc(e)??void 0}var XD=z$e({}),ahe=3;function ZD({tag:e,name:t,desc:o,href:n,imageSrc:r,imageLabel:a,price:i}){let s=he(),{showPrice:l,cardStyle:d,partStyles:c,editing:p,ownerId:m,Template:f}=W$e(XD),g=d==="bordered"?" border border-line":d==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",h=qD(r),w=Ln();if(f){let x={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:h??"",tag:e??"",href:n||"#"};return w.scope(Bc("div",{className:to(`block w-full min-w-0 ${ib}${s?` ${Xm}`:""}`,w.className),...w.attrs,children:Bc(Ge,{ownerId:m??"Collections",ownerType:"Collections",Template:f,rows:[x],fallback:null,children:v=>v})}))}let b=x=>p?{[eb]:x}:{},k=x=>iP(c?.[ed(x)]?.role,Uh[x],jE);return w.scope(jD(Be,{href:n||"#",className:to(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${g}`,w.className),...w.attrs,children:[Bc("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${ape}`,children:Bc(co,{label:a||"collection.jpg",src:h})}),Bc("div",{className:`pointer-events-none absolute inset-0 z-[1] ${lpe} max-view-wide:hidden`,style:{transition:"none"}}),jD("div",{className:"absolute inset-x-8 bottom-8 z-[2] flex flex-col gap-3 text-overlay-fg max-view-wide:relative max-view-wide:inset-auto max-view-wide:p-6 max-view-wide:gap-3 max-view-wide:text-fg",children:[e&&Bc("span",{...b("tag"),style:k("tag"),className:`font-mono ${zp.tag} uppercase tracking-[0.25em] opacity-70`,children:L(e)}),t&&Bc("h3",{...b("name"),style:k("name"),className:`font-heading2 ${zp.name} font-medium leading-none tracking-[-0.03em] ${zp.namePhone}`,children:typeof t=="string"?te(t,!1):t}),o&&Bt(o).map((x,v)=>Bc("p",{...b("body"),style:k("body"),className:`max-w-[420px] ${zp.body} leading-[1.5] opacity-80`,children:L(x)},v)),l&&i&&Bc("span",{...b("price"),style:k("price"),className:`font-mono ${zp.price} tracking-[0.05em] text-accent`,children:L(i)}),jD("span",{...b("link"),style:k("link"),className:`mt-2 inline-flex items-center gap-3 font-mono ${zp.link} uppercase tracking-[0.2em]`,children:["Explore",Bc("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as uhe,useCallback as rKe,useContext as phe,useEffect as fhe,useRef as aKe,useState as oM}from"react";import{slugify as iKe}from"efficient-shell/format";import{useState as G$e}from"react";import{jsx as JD,Fragment as U$e}from"react/jsx-runtime";function yl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=_ee(e),a=Cee(e),i=t?a:r,s=Pee(i);return o&&!i?JD("span",{[ou]:e,children:n}):i?JD("span",{ref:s,[mQ]:i.stamp,...i.textStyle?{[uQ]:i.textStyle}:{},children:n}):JD(U$e,{children:n})}import{jsx as Ki,jsxs as lx}from"react/jsx-runtime";var QD=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function eM({build:e,hiddenMobile:t,alwaysShowOverlay:o,forceHover:n,index:r,total:a,ratio:i,captionPlace:s,display:l,displayPhone:d,styleOwner:c,editing:p=!1}){let m=x=>Tne(l,d,x),f=x=>p&&c?{[lQ]:c,[dQ]:`@${x}`}:{},g=(x,v)=>!p&&c?Ki(yl,{kind:`@${x}`,shared:!0,children:v}):v,[h,w]=G$e(!1),b=WZ(s),k=lx("div",{className:["sf-card group relative overflow-hidden bg-surface-2",lb(i),t?"max-view-wide:hidden":""].join(" "),children:[lx("div",{className:["absolute inset-0 z-[1] flex items-center justify-center transition-[transform,filter,opacity] duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)]",n?"scale-[1.06] opacity-0 [filter:brightness(0.5)]":"group-hover:scale-[1.06] group-hover:opacity-0 group-hover:[filter:brightness(0.5)]"].join(" "),children:[Ki(co,{label:e.imageLabel,src:e.imageSrc}),!o&&Ki("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),Ki("div",{className:["absolute inset-0 z-[1] flex items-center justify-center transition-[transform,filter,opacity] duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)]",n?"opacity-100 scale-[1.06] [filter:brightness(0.5)]":"opacity-0 group-hover:scale-[1.06] group-hover:opacity-100 group-hover:[filter:brightness(0.5)]"].join(" "),style:{background:"var(--site-surface)"},children:e.detailSrc&&Ki(Qs,{src:e.detailSrc,alt:"",fill:!0,sizes:"(max-width: 800px) 100vw, (max-width: 1500px) 33vw, 25vw",loading:"lazy",className:"absolute inset-0 z-[3] object-cover",style:{display:h?"none":"block"},onError:()=>w(!0)})}),(e.process||r!=null&&a!=null)&&lx("div",{className:"pointer-events-none absolute top-3 left-3 right-3 z-[3] flex items-baseline gap-2 max-view-wide:top-2.5 max-view-wide:left-2.5 max-view-wide:right-2.5",children:[e.process&&Ki("span",{...f("tag"),className:["min-w-0 truncate font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-accent",m("tag"),"transition-opacity duration-300 ease-out",o||n?"opacity-100":"opacity-0 group-hover:opacity-100 max-view-wide:opacity-100"].join(" "),children:g("tag",Eo(e.process))}),r!=null&&a!=null&&Ki("span",{...f("number"),className:`ml-auto shrink-0 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] ${m("number")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:g("number",QD(r,a))})]}),Ki("div",{className:["absolute inset-0 z-[2]","transition-[opacity,transform] duration-300 ease-out",o||n?"opacity-100 translate-y-0":"opacity-0 translate-y-2 group-hover:opacity-100 group-hover:translate-y-0 max-view-wide:opacity-100 max-view-wide:translate-y-0"].join(" "),style:{color:"var(--overlay-fg)",background:o?"linear-gradient(180deg, rgba(10,10,10,.55) 0%, transparent 35%, transparent 55%, rgba(10,10,10,.92) 100%)":"linear-gradient(180deg, transparent 40%, rgba(10,10,10,.85) 100%)"},children:lx("div",{className:"absolute inset-x-0 bottom-0 top-9 flex flex-col justify-end gap-1 overflow-hidden p-6 max-view-wide:top-8 max-view-wide:p-3.5",children:[e.car&&Ki("div",{...f("eyebrow"),className:`truncate font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] text-accent max-view-wide:text-[length:var(--size-label,11px)] max-view-wide:tracking-[0.15em] ${m("eyebrow")}`.trim(),children:g("eyebrow",e.car)}),e.wheel&&Ki("div",{...f("title"),className:`font-heading3 text-[length:var(--size-headingSmall,22px)] font-medium leading-[1.05] tracking-[-0.02em] max-view-wide:text-[length:var(--size-body,16px)] ${o?"uppercase ":""}${m("title")}`.trim(),children:g("title",e.wheel)}),e.finish&&Ki("div",{...f("meta"),className:`mt-1.5 flex gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.12em] ${m("meta")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:Ki("span",{children:g("meta",Eo(e.finish))})})]})})]});return b?lx("div",{className:t?"max-view-wide:hidden":"",children:[k,lx("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&Ki("div",{...f("title"),className:`font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg ${m("title")}`.trim(),children:g("title",e.wheel)}),(e.finish||e.car)&&Ki("div",{...f(e.finish?"meta":"eyebrow"),className:`mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim ${m(e.finish?"meta":"eyebrow")}`.trim(),children:g(e.finish?"meta":"eyebrow",Eo(e.finish||e.car))})]})]}):k}import{createContext as $$e,useCallback as K$e,useContext as V$e,useEffect as Y$e,useLayoutEffect as j$e,useRef as tM,useState as q$e}from"react";import{createPortal as X$e}from"react-dom";import{Fragment as eKe,jsx as tk,jsxs as tKe}from"react/jsx-runtime";var Z$e=".sf-themed-content",ihe="sf-section-accent";function J$e(e,t){let o={},n=!1,r=[];for(let a=e;a&&a!==t;a=a.parentElement)r.push(a);for(let a of r.reverse()){a.classList.contains(ihe)&&(n=!0);let i=a.style;if(i)for(let s=0;s<i.length;s+=1){let l=i.item(s);l.startsWith("--")&&(o[l]=i.getPropertyValue(l))}}return{className:n?`contents ${ihe}`:"contents",style:o}}function Q$e(e){let t=e.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])");return Array.from(t).filter(o=>!o.hasAttribute("hidden")&&o.getAttribute("aria-hidden")!=="true")}var she=$$e(()=>{});function sm({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=tM(null),l=tM(null),[d,c]=q$e(null);j$e(()=>{if(!e){c(null);return}let g=s.current;if(!g)return;let h=g.closest(Z$e)??g.ownerDocument.body;c({host:h,theme:J$e(g,h)})},[e]);let p=tM({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let m=e&&d!==null,f=K$e(()=>p.current.onClose(),[]);return Nc({active:m,onDismiss:f,scopeRef:l}),Y$e(()=>{if(!m)return;let g=l.current,h=g?.ownerDocument??document,w=h.activeElement;g?.focus();let b=x=>{if(x.key==="ArrowLeft")p.current.onPrev?.();else if(x.key==="ArrowRight")p.current.onNext?.();else if(x.key==="Tab"&&g){let v=Q$e(g);if(v.length===0){x.preventDefault(),g.focus();return}let y=v[0],S=v[v.length-1],E=h.activeElement,T=!!E&&g.contains(E)&&E!==g;if(x.shiftKey&&(!T||E===y))x.preventDefault(),S.focus();else if(!x.shiftKey&&(!T||E===S))x.preventDefault(),y.focus();else{x.preventDefault();let _=v.indexOf(E);v[x.shiftKey?_-1:_+1]?.focus()}}},k=h.defaultView??window;return k.addEventListener("keydown",b),()=>{k.removeEventListener("keydown",b),w&&w.isConnected&&w.focus()}},[m]),e?tKe(eKe,{children:[tk("span",{ref:s,hidden:!0}),d&&X$e(tk("div",{className:d.theme.className,style:d.theme.style,children:tk("div",{ref:l,role:"dialog","aria-modal":"true","aria-label":o,tabIndex:-1,onClick:t,className:`fixed inset-0 z-(--sf-layer-lightbox) outline-none ${ID[8]} ${a}`,style:{background:AD},children:tk(she.Provider,{value:t,children:i})})}),d.host)]}):null}var hO="color-mix(in oklab, var(--bg) 70%, transparent)";function of({className:e="absolute right-5 top-5 flex h-10 w-10 cursor-pointer items-center justify-center border border-fg-dim/40 text-fg-dim transition-colors hover:border-accent hover:text-accent",style:t,label:o="Close",children:n="\xD7"}){let r=V$e(she);return tk("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as oKe,useContext as vg}from"react";var ok=oKe(null);function lhe(){let e=vg(L2),t=vg(ok),o=zC();return e?e.socialLinks??hae:t?t.socialLinks:o.links}function nf(){return vg(ok)?.commerceEnabled??!0}function nKe(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function dx(){return nKe(vg(ok))}function dhe(){let e=vg(ok),t=Zn();return e?e.showThemeSwitch??Pp:t.themeSwitchShown??Pp}function che(){let e=vg(L2),t=vg(ok),o=Zn();return e?cR({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?cR({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):cR({siteName:o.websiteName?.trim()||vu})}import{useBrowserLayoutEffect as sKe}from"efficient-shell/hooks";import{Fragment as cx,jsx as _o,jsxs as ya}from"react/jsx-runtime";var lKe="(max-width: 1100px) 100vw, min(59vw, 1050px)",nk=uhe({}),hhe=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],rM=uhe(null),rf="data-gallery-grid",nM="data-gallery-tile";function dKe(e,t){let[o,n]=oM(null);return fhe(()=>{let r=e.current,a=r?.closest(`[${rf}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${nM}]`)),d=l.indexOf(r),c=d>=0?{index:d+1,total:l.length}:null;n(p=>p?.index===c?.index&&p?.total===c?.total?p:c)};if(i(),!t)return;let s=new MutationObserver(i);return s.observe(a,{childList:!0,subtree:!0}),()=>s.disconnect()},[e,t]),o}var xd={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},cKe=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),ghe=Array.from({length:6},cKe);function pKe(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=iKe(e.name)||"gallery-item";return{car:e.eyebrow??"",wheel:e.name??"",process:e.process??"",finish:e.meta??"",imageLabel:`${r}.jpg`,detailLabel:`${r}-detail.jpg`,imageSrc:o||void 0,detailSrc:t[0]||o||void 0,photos:n,href:e.href}}function kg({editing:e=!1,previewHover:t,ratio:o,captionPlace:n,tile:r,...a}){let i=he(),{galleryHref:s="/gallery",submitHref:l="/contact",previewHover:d,display:c,displayPhone:p,styleOwner:m,photosOnly:f=!1,wordsAtRest:g=!1,Template:h,ownerId:w}=phe(nk),b=pKe(a),x=nf()&&!f,v=!x&&!mKe(b),y=b.photos??(b.imageSrc?[b.imageSrc]:[]),S=aKe(null),E=rKe(ee=>{S.current=ee},[]),T=dKe(S,e),_=phe(rM),P=_?.report,I=r?.id,D=r?.tag??"",F=r?.name??"";sKe(()=>{if(!P||!I)return;let ee={id:I,tag:D,name:F};return P(ee),()=>P(ee,!0)},[P,I,D,F]);let A=(I?_?.positionOf(I):null)??T,N=e&&(!!t||!!d),[B,Y]=oM(!1),[K,X]=oM(0),Z=!!I&&!!_&&_.walkCount>1,V=ee=>{let se=K+ee;if(Z&&(se<0||se>=y.length)){Y(!1),_.walk(I,ee);return}X((se+y.length)%y.length)},j=()=>V(-1),J=()=>V(1),C=y.length>1||Z,O=_?.opening;fhe(()=>{!O||O.id!==I||(X(O.at==="last"?Math.max(0,y.length-1):0),Y(!0))},[O,I]);let G=y[K]??b.imageSrc??"",$=y.slice(1),H=h?_o("div",{className:`block w-full min-w-0 ${ib}${i?` ${Xm}`:""}`,children:_o(Ge,{ownerId:w??"GalleryB",ownerType:"GalleryB",Template:h,rows:[{key:I??b.imageSrc??"tile",image:b.imageSrc??"",tag:b.process,number:A?QD(A.index,A.total):"",eyebrow:b.car,name:b.wheel,meta:b.finish,href:b.href??""}],items:[{hoverMedia:$.length?{photos:[{finish:"",items:$.map(ee=>({url:ee,kind:"image"}))}]}:null}],previewHover:N,fallback:null,children:ee=>ee})}):_o(eM,{build:b,forceHover:N,alwaysShowOverlay:g,index:A?.index,total:A?.total,ratio:o,captionPlace:n,display:c,displayPhone:p,styleOwner:m,editing:e});return ya(cx,{children:[e?_o(z,{as:"div",ref:E,[nM]:"",className:"block w-full text-left",children:H}):_o(z,{as:"button",ref:E,[nM]:"",type:"button","aria-label":x?`Open ${b.car||"build"} on ${b.wheel||"wheel"}`:mhe(b),onClick:()=>{X(0),Y(!0)},className:"block w-full cursor-pointer text-left focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2",children:H}),_o(sm,{open:B,onClose:()=>Y(!1),label:x?`${b.car} on ${b.wheel}`:mhe(b),onPrev:C?j:void 0,onNext:C?J:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:ya("div",{onClick:ee=>ee.stopPropagation(),className:`relative grid w-[min(1800px,100%)] max-h-[calc(100vh-48px)] ${v?"grid-cols-1":"grid-cols-[1.4fr_1fr]"} overflow-hidden border border-line bg-bg max-view-desktop:grid-cols-1 max-view-desktop:overflow-auto`,style:{boxShadow:"0 60px 120px -20px color-mix(in srgb, var(--sf-shadow-color, #141416) 70%, transparent)"},children:[_o(of,{label:"Close popup",className:"absolute right-[24px] top-[24px] z-[5] flex h-[56px] w-[56px] items-center justify-center border border-line font-mono text-[length:var(--size-label,21px)] text-fg-dim transition-colors hover:border-accent hover:text-fg",style:{background:hO},children:"\u2715"}),ya("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[G&&_o("img",{...go(G,{fallbackWidth:1280}),sizes:lKe,alt:`${(x?b.car:b.wheel||b.car)||"Photo"} \u2014 ${K+1} of ${y.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},G),C&&ya(cx,{children:[_o("button",{type:"button","aria-label":"Previous photo",onClick:j,className:"absolute left-4 top-1/2 flex h-16 w-16 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg-dim/40 bg-overlay-scrim/40 font-mono text-[length:var(--size-label,24px)] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u25C1"}),_o("button",{type:"button","aria-label":"Next photo",onClick:J,className:"absolute right-4 top-1/2 flex h-16 w-16 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg-dim/40 bg-overlay-scrim/40 font-mono text-[length:var(--size-label,24px)] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u25B7"}),y.length>1&&ya("span",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 border border-fg-dim/30 bg-overlay-scrim/50 px-4 py-1.5 font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.22em] text-fg-dim backdrop-blur-[4px]",children:[K+1," / ",y.length]})]})]}),x?ya("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[b.process&&_o("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:L(b.process)}),b.wheel&&_o("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(42px,4.5vw,60px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.025em]",children:te(b.wheel,!1)}),b.car&&ya("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",_o("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:L(b.car,!0)})]}),ya("dl",{className:"mt-3 grid grid-cols-[auto_1fr] gap-x-7 gap-y-[18px] border-y border-line py-[30px] font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.22em]",children:[b.wheel&&ya(cx,{children:[_o("dt",{className:"text-fg-dim",children:"Wheel"}),_o("dd",{className:"text-fg",children:L(b.wheel)})]}),b.process&&ya(cx,{children:[_o("dt",{className:"text-fg-dim",children:"Process"}),_o("dd",{className:"text-fg",children:L(b.process)})]}),b.finish&&ya(cx,{children:[_o("dt",{className:"text-fg-dim",children:"Finish"}),_o("dd",{className:"text-fg",children:L(b.finish)})]}),b.car&&ya(cx,{children:[_o("dt",{className:"text-fg-dim",children:"Vehicle"}),_o("dd",{className:"text-fg",children:L(b.car)})]})]}),ya("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[ya(Be,{href:b.href||"/wheels",onClick:()=>Y(!1),className:"group flex items-center justify-between gap-6 border border-btn bg-btn px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-btn-ink transition-colors hover:border-fg hover:bg-fg",children:[_o("span",{children:"View product"}),_o("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),ya(Be,{href:s,onClick:()=>Y(!1),className:"flex items-center justify-between gap-6 border border-line px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:[_o("span",{children:"See more builds"}),_o("span",{children:"\u2192"})]}),ya(Be,{href:l,onClick:()=>Y(!1),className:"flex items-center justify-between gap-6 border border-line px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:[_o("span",{children:"Submit your build"}),_o("span",{children:"\u2192"})]})]})]}):!v&&_o(uKe,{build:b})]})})]})}function bhe(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function mKe(e){return!!e.wheel||bhe(e).length>0}function mhe(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function uKe({build:e}){let t=e.wheel,o=bhe(e);return ya("div",{className:"flex flex-col gap-[24px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[t&&_o("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(42px,4.5vw,60px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.025em]",children:te(t,!1)}),o.map(n=>_o("p",{className:"text-[length:var(--size-body,18px)] leading-[1.5] text-fg",children:L(n)},n))]})}import{createContext as xKe,useContext as yKe,useEffect as rk,useId as vKe,useState as Rr,useSyncExternalStore as kKe}from"react";var fKe=14,hKe=3;function gKe(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function bKe(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),gKe(o)}async function whe(e,t,o={}){let n=o.days??fKe,r=o.read??Gh.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=bKe(t,s);try{let d=await r(e,l);if(a=0,i++,d.slots.length>0)return{outcome:"found",date:l,availability:d}}catch{if(a++,a>=hKe)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as xhe,formatDateTime as aM,formatTime as khe}from"efficient-shell/format";var wKe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},yhe={weekday:"long",day:"numeric",month:"long",year:"numeric"},She={hour:"numeric",minute:"2-digit"},vhe={...She,timeZoneName:"short"};function iM(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function sM(e,...t){let o=ml(...t);return!o||!iM(e)?"":khe(e,{locale:xB(),timeZone:o})}function lM(e,...t){let o=typeof e=="string"?{start:e}:e,n=ml(...t),r=iM(o.start);if(!n||!r)return"";let a=xB(),i=o.end?iM(o.end):null;if(!i||i.getTime()<=r.getTime())return aM(o.start,{locale:a,timeZone:n,style:wKe,zoneName:"short"});let s=aM(o.start,{locale:a,timeZone:n,style:yhe,clock:She}),d=xhe(o.start,n)===xhe(o.end,n)?khe(o.end,{locale:a,timeZone:n,clock:vhe}):aM(o.end,{locale:a,timeZone:n,style:yhe,clock:vhe});return`${s} \u2013 ${d}`}function gO(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as SKe,userToday as TKe,userZone as EKe}from"efficient-shell/format";import{jsx as LKe}from"react/jsx-runtime";var Ehe=xKe(null);function af(){let e=yKe(Ehe);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var dM=[{id:"example-1",name:"Example service",durationMinutes:45,price:"80.00",description:"What this appointment includes, in a sentence."},{id:"example-2",name:"Second example",durationMinutes:30,price:"0",description:""}],PKe=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function The(e,t){return{timezone:"",slots:t?PKe.flatMap(({hour:n,minute:r})=>SKe(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var cM={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function _Ke(e){let t=String(e?.slots[0]?.start??"");return t?{...cM,startAt:t}:cM}function Phe(e){return e.bookingNumber===cM.bookingNumber}function CKe(e,t){return e&&t?.length===0}function RKe(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!gO(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function OKe(){return()=>{}}function NKe(){return null}function _he({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=vKe(),r=kKe(OKe,TKe,NKe)??"",[a,i]=Rr(),[s,l]=Rr(""),[d,c]=Rr(""),[p,m]=Rr(r),[f,g]=Rr(r),[h,w]=Rr(!1),[b,k]=Rr(null),[x,v]=Rr(),[y,S]=Rr(""),[E,T]=Rr(""),[_,P]=Rr(""),[I,D]=Rr(""),[F,A]=Rr(""),[N,B]=Rr(()=>RB()),[Y,K]=Rr(null),[X,Z]=Rr(!1),[V,j]=Rr(!1),[J,C]=Rr(null),[O,G]=Rr("");rk(()=>{G(EKe()??"")},[]),rk(()=>{let me=!1;return Gh.listServices().then(Ce=>{if(me)return;let Pe=qC(Ce);i(Pe),l(Ce.currency),c(ie=>ie||Pe[0]?.id||"")}).catch(()=>{me||i([])}),()=>{me=!0}},[]),rk(()=>{r&&(m(me=>me||r),g(me=>me||r))},[r]),rk(()=>{if(h||!d||!r)return;let me={aborted:!1};return S(""),v(void 0),C(null),k(null),Z(!0),whe(d,r,{signal:me}).then(Ce=>{if(!me.aborted){if(Ce.outcome==="found"){m(Ce.date),g(Ce.date),v(Ce.availability);return}k(Ce.outcome==="noneInWindow"?`No times are available in the next ${Ce.days} days.`:"We couldn't load available times. Please try again.")}}).finally(()=>{me.aborted||Z(!1)}),()=>{me.aborted=!0}},[h,d,r]),rk(()=>{if(!h||!d||!p)return;let me=!1;return S(""),v(void 0),C(null),k(null),Z(!0),Gh.getAvailability(d,p).then(Ce=>{me||(v(Ce),Ce.slots.length===0&&k("No times are available on this date."))}).catch(()=>{me||k("We couldn't load available times. Please try again.")}).finally(()=>{me||Z(!1)}),()=>{me=!0}},[p,h,d]);let $=a?.find(me=>me.id===d),H=$?.depositAmountDue!=null,ee=RKe({editing:e,submitting:V,hasService:!!$,hasDay:!!p,selectedStart:y,name:E,email:_,requiresPayment:H},Date.now());async function se(me){if(me.preventDefault(),!(!ee||!$)){j(!0),C(null);try{let Ce=await Gh.create({serviceId:$.id,start:y,customer:{name:E.trim(),email:_.trim(),phone:I.trim()},notes:F.trim(),idempotencyKey:N,customerTimezone:O});K(Ce),B(RB())}catch(Ce){C(Ce instanceof sr&&Ce.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),Ce instanceof sr&&Ce.status===409&&(S(""),Gh.getAvailability($.id,p).then(v).catch(()=>{}))}finally{j(!1)}}}let pe=CKe(e,a),Ne=pe?The(p,O):void 0,ce=t&&!Y?_Ke(Ne??The(p,O)):null;return LKe(Ehe.Provider,{value:{fieldPrefix:n,editing:e,services:pe?dM:a,currency:pe?"AUD":s,serviceId:pe?dM[0].id:d,setServiceId:c,service:pe?dM[0]:$,requiresPayment:pe?!1:H,date:p,earliestDate:f,setDate:m,setDateTouched:w,availability:Ne??x,loadingSlots:pe?!1:X,noSlotsMessage:b,selectedStart:Ne?Ne.slots[0]?.start??"":y,setSelectedStart:S,customerTimezone:O,name:E,setName:T,email:_,setEmail:P,phone:I,setPhone:D,notes:F,setNotes:A,confirmation:Y??ce,submitting:V,error:J,canSubmit:pe?!1:ee,handleSubmit:se,sample:!!pe},children:o})}import{jsx as bO,Fragment as Che,jsxs as Rhe}from"react/jsx-runtime";var Ohe=`sf-button group inline-flex items-center justify-center gap-2.5 border ${ere} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,Nhe={primary:"border-btn bg-btn text-btn-ink hover:border-btn-2 hover:bg-btn-2",ghost:"border-current bg-transparent hover:bg-white/10"};function va(e){let{variant:t="primary",arrow:o,glyphBefore:n,spread:r,className:a,style:i,part:s,glyphPart:l,children:d,href:c,newTab:p,hrefRewrite:m,...f}=e,g=`${r?Ohe.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):Ohe} ${Nhe[t]??Nhe.primary} ${a??""}`,h=n?Rhe(Che,{children:[o!==null&&bO("span",{"aria-hidden":!0,className:"inline-flex",...l,children:o??"\u2192"}),d]}):Rhe(Che,{children:[d,o!==null&&bO("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",...l,children:o??"\u2192"})]});return c?bO(Tt,{href:c,className:g,style:i,newTab:p?!0:"auto",...m?{hrefRewrite:m}:{},...s,children:h}):bO("button",{type:"button",className:g,style:i,...f,children:h})}import{jsx as AKe}from"react/jsx-runtime";var ak=e=>AKe("div",{className:"grid bg-bg",children:e});import{jsx as mo,jsxs as yd}from"react/jsx-runtime";var ik="w-full border-2 border-line bg-bg px-4 py-4 font-[family-name:var(--bk-value-font,var(--font-display))] text-[length:var(--bk-value-size,17px)] text-fg outline-none transition-colors placeholder:text-fg-dim hover:border-fg-dim focus:border-accent";function IKe(e,t){let o=Number(e);if(o===0)return $h;try{return yse(o,t)}catch{return`${t} ${e}`}}var Lhe={selected:!0};function Ahe(e,t){return({index:o})=>t?{[e_]:t_(e,o)}:{}}var sk="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function pM({number:e,children:t}){return yd("div",{className:"mb-4 flex items-center gap-3",children:[mo("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full border border-line font-[family-name:var(--bk-step-font,var(--font-mono))] text-[length:var(--bk-step-size,11px)] font-semibold text-fg-dim",children:e}),mo("h3",{className:"font-[family-name:var(--bk-step-font,var(--font-mono))] text-[length:var(--bk-step-size,12px)] font-semibold uppercase tracking-[0.2em] text-fg",children:t})]})}function wO({eyebrow:e,heading:t,intro:o}){return yd("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&mo("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&mo("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.98] tracking-[-0.025em] text-fg max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:t}),(o??"").trim()&&mo("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function xO({style:e,owner:t}){let{fieldPrefix:o,services:n,currency:r,serviceId:a,setServiceId:i,requiresPayment:s,date:l,earliestDate:d,setDate:c,setDateTouched:p,availability:m,loadingSlots:f,noSlotsMessage:g,selectedStart:h,setSelectedStart:w,customerTimezone:b,editing:k}=af();if(!n)return null;let x=Date.now(),v=ml(b,m?.timezone??""),y=ml(m?.timezone??""),S=y&&y!==v?y:"",E=(m?.slots??[]).map(T=>({start:T.start,time:sM(T.start,v),businessTime:S?`${sM(T.start,S)} business`:"",passed:!k&&gO(T.start,x)}));return yd(z,{className:"flex flex-col gap-10",style:e,children:[yd("div",{children:[mo(pM,{number:"01",children:"Choose a service"}),mo("div",{className:"grid gap-3 sm:grid-cols-2",children:mo(Ge,{ownerId:t.id,ownerType:t.type,slot:mg,Template:t.serviceTemplate,rows:n.map(T=>({name:T.name,meta:`${T.durationMinutes} min \xB7 ${IKe(T.price,r)}`,description:T.description??""})),states:n.map(T=>T.id===a?Lhe:void 0),actions:k?void 0:n.map(T=>({press:()=>i(T.id),label:T.name})),copyAttrs:Ahe(mg,k),fallback:null,wrapCopy:ak,children:T=>mo(Fo,{children:T})})}),s&&mo("p",{className:"mt-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.14em] text-alert",role:"alert",children:"This service requires an upfront payment and cannot be booked through this form yet."})]}),yd("div",{children:[mo(pM,{number:"02",children:"Choose a date and time"}),mo($r,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:sk,children:mo("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:T=>{p(!0),c(T.target.value)},className:ik,required:!0})}),mo("div",{className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-3 min-[1200px]:grid-cols-4",role:"group","aria-label":"Available appointment times",children:f?mo("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",children:"Loading times\u2026"}):m?.slots.length?mo(Ge,{ownerId:t.id,ownerType:t.type,slot:ug,Template:t.timeTemplate,rows:E.map(T=>({time:T.time,businessTime:T.businessTime})),states:E.map(T=>T.start===h&&!T.passed?Lhe:void 0),actions:k?void 0:E.map(T=>({press:()=>w(T.start),label:T.time,disabled:T.passed})),copyAttrs:Ahe(ug,k),fallback:null,wrapCopy:ak,children:T=>mo(Fo,{children:T})}):g?mo("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",role:"status",children:g}):null}),v&&!f&&!!m?.slots.length&&yd("p",{className:"mt-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,10px)] uppercase tracking-[0.16em] text-fg-dim",children:["Times shown in ",v,S?` \xB7 business timezone ${S}`:""]})]})]})}function yO({buttonLabel:e,style:t}){let{fieldPrefix:o,editing:n,name:r,setName:a,email:i,setEmail:s,phone:l,setPhone:d,notes:c,setNotes:p,submitting:m,error:f,canSubmit:g}=af();return yd(z,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[mo(pM,{number:"03",children:"Your details"}),yd("div",{className:"flex flex-col gap-4",children:[mo($r,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:sk,children:mo("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:h=>a(h.target.value),className:ik,required:!0})}),mo($r,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:sk,children:mo("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:h=>s(h.target.value),className:ik,required:!0})}),mo($r,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:sk,children:mo("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:h=>d(h.target.value),className:ik})}),mo($r,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:sk,children:mo("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:h=>p(h.target.value),className:`${ik} resize-y`})})]}),f&&mo("p",{className:"mt-4 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.16em] text-alert",role:"alert",children:f}),mo(va,{type:n?"button":"submit",disabled:!g,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:m?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function vO({successMessage:e}){let{confirmation:t,customerTimezone:o}=af();if(!t)return null;let n=ml(t.customerTimezone,o,t.timezone),r=ml(t.timezone),a=r&&r!==n?r:"";return yd("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[yd("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),mo("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),mo("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:lM(t.startAt,n)}),a&&yd("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",lM(t.startAt,a)]}),(e??"").trim()&&mo("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),mo(va,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!Phe(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as px}from"react/jsx-runtime";var Ihe=["head","booking","details","confirm"],Fhe={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function mM({region:e,nodeId:t="BookingBox",serviceTemplate:o,timeTemplate:n,eyebrow:r,heading:a,intro:i,buttonLabel:s,successMessage:l,...d}){let{confirmation:c,services:p}=af(),m=Rme(d);return e==="head"?px(z,{className:"min-[960px]:col-span-2",style:m,children:px(wO,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?px(z,{className:"min-[960px]:col-span-2",style:m,children:px(vO,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?px(xO,{style:m,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?px(yO,{buttonLabel:s,style:m}):null}import{useEffect as Bhe,useState as sf}from"react";import{jsx as mx,jsxs as BKe}from"react/jsx-runtime";function Hc(e,t){let[o,n]=sf(void 0),[r,a]=sf(0);return Bhe(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return Bo.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),Bhe(()=>{if(t===void 0)return bR(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var FKe="Something went wrong \u2014 your submission wasn't sent. Please try again.";function ux(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function lf({form:e,formSlug:t,editing:o=!1}){let[n,r]=sf({}),[a,i]=sf(""),[s,l]=sf(!1),[d,c]=sf(!1),[p,m]=sf(null),[f,g]=sf(null);async function h(w){if(w.preventDefault(),!(o||s||!e||!t)){l(!0),g(null);try{let b=e.fields.map(x=>({fieldKey:x.key,value:n[x.key]??""})),k=await Bo.submitForm(t,{answers:b,...a?{company:a}:{}});m(k?.account??null),c(!0)}catch{g(FKe)}finally{l(!1)}}}return{valueOf:w=>n[w]??"",set:(w,b)=>r(k=>({...k,[w]:b})),honeypot:a,setHoneypot:i,submitting:s,done:d,account:p,error:f,handleSubmit:h}}function fx({value:e,onChange:t}){return mx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:o=>t(o.target.value)})}function df({field:e,value:t,onChange:o,className:n,rows:r=5,placeholder:a,ariaLabel:i}){let s=a??e.placeholder,l=i?.trim()?{"aria-label":i.trim()}:{};return e.type==="textarea"?mx("textarea",{required:e.required,rows:r,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l}):e.type==="select"?BKe("select",{required:e.required,value:t,onChange:d=>o(d.target.value),className:n,...l,children:[mx("option",{value:"",children:s||"Select\u2026"}),e.options.map(d=>mx("option",{value:d,children:d},d))]}):e.type==="checkbox"?mx("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:d=>o(d.target.checked?"true":""),className:n}):mx("input",{type:e.type==="email"?"email":e.type==="tel"?"tel":"text",required:e.required,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l})}var Wt={eyebrow:"Section number",title:"Show *us yours.*",body:"Tell people what they get for submitting, and what you do with what they send.",buttonText:"Submit \u2192",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties."};import{jsx as vl,jsxs as lk}from"react/jsx-runtime";function HKe(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function Hhe({eyebrow:e,title:t}){return lk("div",{className:"flex flex-col gap-4",children:[e&&vl(lt,{text:e,scaled:!1}),t&&vl("h2",{className:"font-display text-[min(clamp(40px,5vw,72px),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:te(t,!0)})]})}function kO({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return lk("div",{className:"flex flex-col gap-8",children:[e&&Bt(e).map((l,d)=>vl("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:L(l)},d)),a&&(n?r.done?vl("p",{role:"status",className:"max-w-[480px] font-[family-name:var(--sb-thanks-font,var(--font-serif))] text-[length:var(--sb-thanks-size,17px)] italic leading-[1.6] text-fg-dim",children:ux(n)}):lk("form",{className:"grid grid-cols-2 gap-2",onSubmit:r.handleSubmit,children:[n.fields.map(l=>{let d=["border border-line bg-transparent px-4 py-4 font-[family-name:var(--sb-field-font,var(--font-mono))] text-[length:var(--sb-field-size,14px)] tracking-[0.1em] text-fg outline-none focus:border-accent",HKe(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?lk("label",{className:"col-span-2 flex items-start gap-3 font-[family-name:var(--sb-tick-font,var(--font-mono))] text-[length:var(--sb-tick-size,12px)] uppercase tracking-[0.18em] text-fg-dim",children:[vl(df,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),lk("span",{children:[l.label,l.required?vl("span",{className:"text-accent",children:" *"}):null]})]},l.key):vl(df,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),rows:4,placeholder:l.placeholder||l.label,ariaLabel:l.label,className:l.type==="textarea"?`${d} resize-y`:d},l.key)}),vl(fx,{value:r.honeypot,onChange:r.setHoneypot}),r.error&&vl("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:r.error}),vl("button",{type:s?"button":"submit",disabled:r.submitting,className:"col-span-2 cursor-pointer bg-btn px-6 py-4 font-mono text-[14px] uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg hover:text-bg disabled:cursor-wait disabled:opacity-60",children:r.submitting?"Sending\u2026":L(t||Wt.buttonText)})]}):vl("p",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:i?u("Loading form\u2026"):u("Choose a form in the inspector, under Form \u2014 until then this form is hidden on the live page and nothing can be submitted.")})),a&&o&&vl("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:L(o)})]})}var SO=["field","tick","thanks"],Dhe={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},TO={field:"styleField",tick:"styleTick",thanks:"styleThanks"},DKe={field:{font:"--sb-field-font",size:"--sb-field-size"},tick:{font:"--sb-tick-font",size:"--sb-tick-size"},thanks:{font:"--sb-thanks-font",size:"--sb-thanks-size"}};function MKe(e){return typeof e=="string"&&Y0.includes(e)?e:null}function Mhe(e){let t={};for(let o of SO){let n=MKe(e[TO[o]]);n&&Object.assign(t,Ku(n,DKe[o]))}return t}import{jsx as EO}from"react/jsx-runtime";var zhe=["head","form"],Whe={head:"Head",form:"Form"};function uM({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=Hc(i,s),p=lf({form:c,formSlug:i,editing:l}),m=Mhe(d);return e==="head"?EO(z,{as:"div",style:m,children:EO(Mt,{look:"statement",num:t,title:o})}):EO(z,{as:"div",style:m,children:EO(kO,{body:n??"",buttonLabel:r??"",consent:a??"",form:c,submission:p,showForm:!!c||l,resolving:c===void 0,editing:l})})}var zKe={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>Ihe.map(e=>({region:e,name:Fhe[e]})),addBlocked:()=>u("A Booking Form is these three boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},SubmitBuild:{slot:"boxes",childType:"SubmitBox",addLabel:"Add box",fixed:!0,seeds:()=>zhe.map(e=>({region:e,name:Whe[e]})),addBlocked:()=>u("A Submit-a-build section is these two boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},Collections:{slot:"cards",childType:"CollectionCard",addLabel:"Add card",seeds:()=>Array.from({length:ahe},()=>({collection:null}))},ProductGrid:{slot:"products",childType:"ProductRef",addLabel:"Add product",seeds:()=>[{code:""},{code:""},{code:""}],legacy:e=>Array.isArray(e.design_codes)?e.design_codes.map(t=>t?.code).filter(t=>!!t).map(t=>({code:t})):[]},GalleryB:{slot:"items",childType:"GalleryItem",addLabel:"Add image",seeds:()=>ghe.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};Noe(zKe);import{jsx as Uhe}from"react/jsx-runtime";var WKe={body:"text-[length:var(--size-body,17px)]"},lm=5;function hx({rating:e}){let t=Math.min(lm,Math.max(0,Math.round(e)));return Uhe(z,{role:"img","aria-label":`${t} out of ${lm} stars`,className:`flex gap-1 ${WKe.body} leading-none`,children:Array.from({length:lm}).map((o,n)=>Uhe("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var fM="mx-auto max-w-[var(--sf-site-width,1600px)]",UKe=[/^border(-[tblrxy])?$/,/^border-line$/,/^bg-/,/^mx-auto$/,/^max-w-\[var\(--sf-site-width/,/--sf-site-gutter/,/^p[xytblr]?-(\d+(\.\d+)?|px|\[\d+(\.\d+)?px\])$/];function Ghe(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function hM(e){return e.split(/\s+/).filter(t=>t&&!UKe.some(o=>o.test(Ghe(t)))).join(" ")}var GKe=new Set(["max-view-desktop","max-view-wide"]);function $Ke(e){let t=/^\[(\d+(?:\.\d+)?)px\]$/.exec(e);return t?Number(t[1]):e==="px"?1:/^\d+(\.\d+)?$/.test(e)?Number(e)*4:void 0}function gx(e){let t=0,o,n=!1;for(let r of e.split(/\s+/)){if(!r)continue;let a=r.lastIndexOf(":"),i=a<0?"":r.slice(0,a),s=Ghe(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?$Ke(l[1]):void 0;d!==void 0&&(i?GKe.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as KKe,jsx as VKe}from"react/jsx-runtime";function gM({inBox:e,atTop:t,anyBox:o=!1}){let n=hu(),r=Nb();return VKe(KKe,{children:n||o&&r?e:t})}import{createContext as $he,useContext as wM}from"react";import{Fragment as jKe,jsx as bM}from"react/jsx-runtime";var YKe={atTop:null,inBox:null},xM=$he(YKe);function PO({pad:e,children:t}){return bM(xM.Provider,{value:e,children:t})}var pr=()=>wM(xM).atTop,Khe=()=>wM(xM),Vhe=$he(void 0);function Yhe({pads:e,children:t}){return e?bM(Vhe.Provider,{value:e,children:t}):bM(jKe,{children:t})}var jhe=()=>wM(Vhe);import{jsx as dk}from"react/jsx-runtime";function yt({className:e,capped:t=!1,column:o=Ci,style:n,defaults:r,id:a,attrs:i,rootRef:s,inAnyBox:l=!1,padOnColumn:d=!1,children:c}){let p=he(),m=Khe(),f=hM(e),g=o===null?"":hM(o),{className:h,style:w,...b}=Te(f,m.inBox,n),k=dk(z,{as:"section",ref:s,...i,...b,className:h||void 0,style:w,id:a,children:g?dk("div",{className:g,children:c}):c}),x=r?{...r,...n}:n,v=d?null:m.atTop,y=d?m.atTop:null,{className:S,style:E,...T}=Te(t?`${fM} ${e}`:e,v,x),_=dk(z,{as:"section",ref:s,...i,...T,className:S,style:E,id:a,children:o===null?c:dk("div",{...Te(fe(o,p),y),children:c})});return dk(gM,{inBox:k,atTop:_,anyBox:l})}import{Fragment as XKe,jsx as dm,jsxs as _O}from"react/jsx-runtime";var bx={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,19px)]",label:"text-[length:var(--size-label,12px)]"},qKe="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[84px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",yM="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-0 pb-[84px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]";function vM({look:e,eyebrow:t,title:o,columns:n,rows:r=[],editing:a=!1,sample:i=!1,cards:s,omitHead:l=!1}){let d=Math.min(3,Math.max(1,n??3));return!a&&r.length===0?null:_O(yt,{className:"relative z-[2] border-t border-line bg-surface",column:l?yM:qKe,padOnColumn:!0,children:[l?null:_O(XKe,{children:[(t??"").trim()&&dm(lt,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&dm("h2",{className:`mb-12 font-heading2 ${bx.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${bx.headingMediumUpTo800}`,children:te(o??"",!1)})]}),dm("div",{className:"sf-card grid grid-cols-1 gap-px border border-line bg-line min-[700px]:[grid-template-columns:repeat(var(--rv-cols),minmax(0,1fr))]",style:{"--rv-cols":String(d)},children:s??r.map(c=>_O("article",{className:["flex flex-col gap-4 bg-bg p-10 max-view-wide:p-8",i?"opacity-60":""].join(" "),children:[c.rating!==void 0&&dm(hx,{rating:c.rating}),(c.title??"").trim()&&dm("h3",{className:`font-display ${bx.bodyLarge} font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg`,children:c.title}),dm("div",{className:`flex-1 font-serif ${bx.bodySmall} leading-[1.65] text-fg-dim`,children:Bt(c.quote).map((p,m)=>dm("p",{className:m?"mt-3":"",children:p},m))}),_O("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-5",children:[dm("span",{className:`font-mono ${bx.label} uppercase tracking-[0.22em] text-fg`,children:c.name}),dm("span",{className:`font-mono ${bx.label} uppercase tracking-[0.18em] text-fg-dim`,children:c.meta??""})]})]},c.key))})]})}var qhe=gx(yM),kM={top:84,bottom:qhe.bottom,topPhone:84,bottomPhone:qhe.bottomPhone},Xhe=kM,[ZKe,JKe]=i2("Testimonials"),QKe={type:Vs,props:{...ze,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[Ys]:[{type:"Text",props:{...Ue,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Ie("quote",_t,{size:16,lineHeight:1.6}),{type:Vs,props:{...ze,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[Ys]:[Ie("name",Ue,{...Ql,weight:500,letterSpacing:.04}),Ie("role",_t,{textStyle:"body-5"})]}}]}},eVe={name:"Testimonials",boxProps:e=>({...oc,direction:"column",gap:44,sectionBorder:{top:1},...nu(e,Xhe)}),box:[...Op,...Ch(Xhe)],parts:[{kind:"group",name:"Heading",props:{...ze,gap:16},parts:[{...ZKe,props:Ue},{...JKe,props:Ue,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[QKe]}}],site:TQ("title"),drop:{...nc,...rc,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Testimonials' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the Reviews block, which is always own-box here"}};Nn({Testimonials:eVe});var Yr={inline:"border-b border-line py-[120px] max-view-desktop:py-20",ownBox:"border-b border-line pt-0 pb-[120px] max-view-desktop:pt-0 max-view-desktop:pb-20"};import{phoneKey as RO,tabletKey as SM}from"efficient-easel/draw";var tVe={textStyle:"body-5",...ho("label",14),letterSpacing:.05,lineHeight:1.5},oVe={type:Vs,props:{...ze,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[RO("share")]:"content",[RO("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[Ys]:[Ie("label",_t,{...Aa(14),letterSpacing:.05,lineHeight:1.5}),Ie("value",{...Ue,align:"right"},{...tVe,align:"right"})]}},Zhe={[Oh]:u_},nVe=["dynamic","source","finish","size","wheel"],ck=ol("SpecTable",{slots:{template:[oVe]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...ze,direction:"row",share:"content",gap:48,[SM("gap")]:80,[RO("gap")]:80,...Zhe}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),rVe=ck.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(nVe.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),CO=gx(Yr.ownBox),aVe={...ck,parts:rVe,boxProps:(e,t)=>{let o=typeof ck.boxProps=="function"?ck.boxProps(e,t):ck.boxProps;return{...o,sectionPaddingBottom:CO.bottom,sectionPaddingBottomPhone:CO.bottomPhone,...Zhe,[SM("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[SM("sectionPaddingBottom")]:CO.bottomPhone,[RO("gap")]:36,...CO.line?{sectionBorder:s_({bottom:1})}:{}}}};Nn({SpecTable:aVe});Nn({ProductGrid:ol("ProductGrid",{slots:{[Nt]:[cue()]},pressHeading:!0})});Nn({Events:ol("Events",{slots:{[Nt]:$8()},coreProps:{sectionAccent:_P},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});Nn({Collections:ol("Collections",{slots:{[Nt]:[K8()]},roomBelow:dpe,pressHeading:!0})});Nn({GalleryB:ol("GalleryB",{slots:{[Nt]:[V8()]},roomBelow:{bottom:pi.bottom,bottomPhone:i5},pressHeading:!0})});Nn({[dr]:{name:"Product hero",box:[...XZ],boxProps:{direction:"column",gap:0,gapPhone:0,...mt(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[Uw]:Gw},slots:e=>({[Nt]:g8(e)})}]}});var TM=gx(Yr.ownBox);Nn({FitmentTable:ol("FitmentTable",{slots:{[H5]:[qme()],[Vu]:[Xme()]},roomBelow:{bottom:TM.bottom,bottomPhone:TM.bottomPhone},boxProps:TM.line?{sectionBorder:s_({bottom:1})}:{},pressHeading:!0})});var iVe=e=>({type:Vs,props:{...ze,name:"Row",mirrorCards:e?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[Ys]:[{type:Vs,props:{...ze,name:"Words",direction:"column",gap:16},slots:{[Ys]:[Ie("eyebrow",Ue,{...Aa(13),color:"accent"}),Ie("title",Ue,{textStyle:"heading-2",...ho("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Ie("copy",_t,{textStyle:"body-1",...ho("body",15),lineHeight:1.6})]}},{type:Vs,props:{...ze,name:"Picture",direction:"column",gap:12},slots:{[Ys]:[{type:"ImageBlock",props:{[Ws]:"image",aspect:"1/1",fit:"contain"}},Ie("tag",{..._t,align:"right"},{...Aa(11),align:"right"})]}}]}}),sVe={name:"Feature Rows",boxProps:{...oc,...PQ,direction:"column",gap:0},box:Op,parts:[{kind:"core",keep:"rest",slots:e=>({template:[iVe(e.startLeft===!0)]})}]};Nn({DetailRows:sVe});import{phoneKey as PM}from"efficient-easel/draw";var NO=e=>[...Op.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>i_(t,n)],...Ch(e)],_M=(e,t,o)=>(n,r)=>({...oc,sectionAccent:i_(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...nu(n,e)}),CM=(e,t,o)=>({kind:"text",key:e,role:"heading",props:Ue,style:{textStyle:"heading-2",...ho("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),RM=(e,t,o={})=>({kind:"group",name:"Heading",props:{...ze,gap:e,gapPhone:e,...o},parts:t}),OM=(e={})=>({kind:"core",keep:"rest",props:r_,...e}),OO=kM,[lVe]=i2("ReviewForm"),dVe=()=>({name:"Review Form",boxProps:_M(OO,48,32),box:NO(OO),parts:[RM(16,[{...lVe,props:Ue},CM("title",1,-.02)]),OM()],pressKeepsEmpty:["eyebrow","title"],drop:{...nc,...rc,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[cVe]=i2("Reviews"),EM=e=>({...Aa(12),letterSpacing:e}),pVe={type:Vs,props:{...ze,name:"Card",gap:16,...mt(40,40,32,32),sectionAccent:0},slots:{[Ys]:[{type:"RatingBlock",props:{[Ws]:"rating"}},Ie("title",Ue,{textStyle:"heading-1",...ho("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Ie("quote",_t,{textStyle:"body-1",...ho("body",15),lineHeight:1.65}),{type:Vs,props:{...ze,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[PM("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[Ys]:[Ie("name",Ue,EM(.22)),Ie("dateLabel",{..._t,align:"right"},{...EM(.18),align:"right"}),Ie("role",{..._t,align:"right"},{...EM(.18),align:"right"})]}}]}},mVe=()=>({name:"Reviews",boxProps:_M(OO,48,32),box:NO(OO),parts:[RM(16,[{...cVe,props:Ue},CM("title",1,-.02)]),OM({slots:{template:[pVe]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...nc,...rc,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Reviews' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the reviews, which are always own-box here"}}),Jhe={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},uVe=()=>({name:"Booking Form",boxProps:_M(Jhe,40,40),box:NO(Jhe),parts:[RM(16,[a_("eyebrow",{...ho("label",12),weight:600,letterSpacing:.24,color:"accent"}),CM("heading",.98,-.025),{kind:"text",key:"intro",props:{..._t,maxWidth:660},style:{textStyle:"heading-1",...ho("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),OM()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...nc,...rc}}),Qhe={top:88,bottom:88,topPhone:64,bottomPhone:64},fVe=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...oc,direction:"column",align:"center",gap:20,gapPhone:20,...nu(e,Qhe)}),box:[...Op,...Ch(Qhe)],parts:[{...a_("eyebrow"),props:{...Ue,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...Ue,align:"center",maxWidth:720},style:{textStyle:"heading-1",...ho("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...Ue,align:"center",maxWidth:560},style:{textStyle:"body-1",...ho("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...ze,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[PM("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...SQ,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...f2,align:"center",icon:"none"},style:{...Km(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...nc,...rc}}),ege={top:60,bottom:0,topPhone:60,bottomPhone:0},hVe=()=>({name:"Contact Form",boxProps:(e,t)=>({...oc,sectionAccent:i_(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...nu(e,ege)}),box:NO(ege),parts:[{kind:"group",name:"Header",props:{...ze,direction:"row",align:"center",share:"content",phoneRow:2,[PM("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[a_("routingNumber"),{kind:"text",key:"routingTagline",props:_t,style:{textStyle:"heading-1",...ho("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:EQ(e.sectionAccent??0,t)})}}],drop:{...nc,...rc}});Nn({ContactRouting:hVe(),ReviewForm:dVe(),AppointmentBooking:uVe(),Reviews:mVe(),CheckoutCTA:fVe()});var tge={top:40,bottom:40,topPhone:40,bottomPhone:40},oge={textStyle:"heading-1",...JQ("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},NM=["heading","intro"],nge=[Nt,Ua,Ga,$a];function gVe(e,t){let o=(t?ob:zX)(Po,e);return Object.fromEntries(nge.map(n=>[n,o[n]]))}var bVe=()=>({name:"List",boxProps:e=>({...oc,direction:"column",gap:24,gapPhone:24,...nu(e,tge)}),box:[...Op,...Ch(tge)],parts:[{kind:"group",name:"Heading",props:{...ze,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...Ue,tag:"h1"},style:oge,when:e=>!w6(e)},{kind:"text",key:"heading",role:"heading",props:{...Ue,tag:"h2"},style:oge,when:w6},{kind:"text",key:"intro",role:"body",props:_t,style:{textStyle:"body-1",...ho("body",15)}}]},{kind:"core",keep:"rest",props:r_,derive:{reads:[...nge],props:(e,t)=>gVe(e,t.press===!0)}}],pressKeepsEmpty:NM,drop:{...nc,...rc,[E_]:"read by the heading part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}});Nn({AlloyWheelsListing:bVe()});var rge={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as wVe,useContext as xVe}from"react";function gt(e){return Ht}import{Fragment as vVe,jsx as wx}from"react/jsx-runtime";var yVe=gt("ProductCard")("buy"),Co={headingSmall1:"text-[length:var(--size-headingSmall,22px)]",headingSmall2:"text-[length:var(--size-headingSmall,30px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},xx=wVe("catalog");function ks(){return xVe(xx)==="catalog"}function cf({children:e}){let t=ks();return wx(vVe,{children:e??(t?wx(z,{"aria-hidden":!0}):null)})}function yx({children:e}){return wx(cf,{children:e?wx(z,{children:e}):null})}function LO({children:e}){return wx(cf,{children:e?wx(z,{className:"[.sf-card-rows>*>&]:self-end",...yVe,children:e}):null})}var age={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:sP(Co.label),writable:!0,sized:!0}},ige={sku:{label:"SKU",follows:"Label",builtIn:sP(Co.label),writable:!0,sized:!0}},sge={name:{label:"Name",follows:"Heading 3",builtIn:sP(Co.headingSmall2),writable:!0,sized:!0}};uie({ProductPrice:rge,ProductEyebrow:age,ProductName:sge,ProductSku:ige});function vx(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as kVe}from"react/jsx-runtime";import{OpacityIcon as SVe}from"efficient-easel/icons";import{group as AO}from"efficient-easel/screen/lib/document/box-fields";var lge={fields:{_gContent:AO("Content"),eyebrow:U("Eyebrow",mu.eyebrow),title:q("Heading",mu.title),body:q("Body",mu.body),_gBackground:AO("Background image"),imageSrc:Qe("Image","image/*"),overlay:ae("Overlay",kVe(SVe,{}),0,100,5,60,"%"),_gButton:AO("Button"),...xl,_gLayout:AO("Layout")}};import{jsx as pk}from"react/jsx-runtime";import{GroundIcon as cge,ListIcon as TVe}from"efficient-easel/icons";function pge(e){let t=e?.data?.root,o=Bte(t?.props)??"";return o&&W6(o,"text").length?o:""}var LM="outsideCardTemplate",EVe={not:{context:LM,is:!0}},Va={[LM]:(e,t)=>{let o=Ep(t.appState,e.props?.id);if(o!==void 0)return o===null&&!pge(t.appState)},[Gq]:(e,t)=>{let o=td(t.appState,e.props?.id);return o===void 0?void 0:!o.inCopy},[Kq]:(e,t)=>td(t.appState,e.props?.id)?.inCopy};function jr(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?pk(ua,{noun:"link"}):t==="colour"?pk(cge,{}):pk(TVe,{}),a={...ne(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return at(a,EVe)}function Dc(){return jr("Link from","link")}var PVe={any:[{field:Vo,set:!1},{context:LM,is:!0,default:!0}]};function pf(e){return at(e,PVe)}function mk(e){return e.kind==="link"?Pr(Q(e.label)):e.kind==="colour"?_Ve(e.label):e.multiline?je(e.label):ye(e.label)}function _Ve(e){return{type:"custom",render:({value:t,onChange:o})=>pk(Dre,{label:e,icon:pk(cge,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function CVe(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var dge=new WeakMap;function Ya(e,t,o){let n=Object.keys(e).filter(y=>CVe(e[y]));if(!n.length)return e;let r=t.props??{},a=Ep(o.appState,r.id),i=typeof a?.type=="string"?a.type:"",s=a?zF(o.appState,r.id)??"":"",l=n.map(y=>typeof r[y]=="string"?r[y].trim():""),d=dt(a?.props),c=i===Mr?Ep(o.appState,a?.props?.id):null,p=c?zF(o.appState,a?.props?.id)??void 0:void 0,m=c?mP(a?.props,c.type,p):"",f=c?dt(c.props):"",g=c?`${String(c.type??"")}\0${f}\0${p??""}`:"",h=i===Mr&&!c?JSON.stringify(a?.props?.[HX]??null):"",w=a?"":pge(o.appState),b=[i,s,d,m,g,h,YE(),w,Rte(),...l].join("\0"),k=dge.get(e);k||dge.set(e,k=new Map);let x=k.get(b);if(x)return x;let v={...e};return n.forEach((y,S)=>{let E=e[y],T=i===Mr?kh(o.appState,a,E.cardRowKind):i?UX(a,E.cardRowKind,s||void 0):W6(w,E.cardRowKind),_=E.cardRowKind==="link"&&!!i&&!T.length;if(!l[S]&&(_||(E.cardRowContent?!i||!T.length:!T.length&&!i&&w))){delete v[y];return}let P=l[S]&&!T.some(F=>F.key===l[S])?l[S]:"",I=E.cardRowKind==="list",D=(F,A)=>I&&A===0&&F.key!==l[S]?"":F.key;v[y]={...E,options:[...I?[]:E.options,...T.map((F,A)=>({label:F.label,value:D(F,A)})),...P?[{label:P,value:P}]:[]]}}),k.set(b,v),v}import{group as uge}from"efficient-easel/screen/lib/document/box-fields";var IO={meta:"Trailing note"},mge={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var fge={fields:{_gContent:uge("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:Q("Label"),href:Pr(Q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:U("Trailing note",IO.meta),_gText:uge("Text"),rowField:jr("Shows","text")},resolveFields:(e,t)=>Ya(t.fields,e,t),showWhenFacts:Va};import{jsx as fi,jsxs as BVe}from"react/jsx-runtime";import{ButtonIcon as HVe,ButtonIconIcon as DVe,IconAfterTextIcon as MVe,IconBeforeTextIcon as zVe}from"efficient-easel/icons";import{SettingsField as WVe}from"efficient-easel/panel";import{useSelectedFields as vge}from"efficient-easel/easel";import{buttonFieldSet as UVe}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as GVe}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as $Ve,Segmented as KVe}from"efficient-shell/ui";function FO(e){return typeof e=="boolean"?e:!0}import{parseOption as RVe}from"efficient-shell/format";var AM=["none","arrow-right","arrow-long-right","arrow-up-right","chevron-right","external","cart","bag","tag","email","location","play","download","search","car","phone","wheel","chat","chevron-left","package","truck","shield-check","receipt-refund"],OVe=["before","after","end"];function IM(e){return typeof e=="string"&&AM.includes(e)?e:void 0}function hge(e,t){return IM(e)??(FO(t)?"arrow-right":"none")}function uk(e){return RVe(OVe,"after",e)}function gge(e,t){return uk(e)==="end"&&Sg(t)==="fill"}function Sg(e){return e==="fill"||e==="fixed"?"fill":"fit"}function bge(e,t,o,{atSectionLine:n=!1}={}){let r=Sg(e);if(Sr(o)){let i=Sg(o),s=Sr(t)?Sg(t):i;return n?[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-tablet:max-view-desktop:w-full":"view-tablet:max-view-desktop:w-auto",s==="fill"?"max-view-tablet:w-full":"max-view-tablet:w-auto"].join(" "):[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-wide:max-view-desktop:w-full":"view-wide:max-view-desktop:w-auto",s==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto"].join(" ")}let a=r==="fill"?["w-full"]:[];if(Sr(t)){let i=Sg(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as DO}from"efficient-easel/screen/lib/document/style-fields";import{group as wge}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as VVe}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as FM}from"react/jsx-runtime";import{LockIcon as NVe}from"efficient-easel/icons";import{FieldText as LVe}from"efficient-easel/fields";import{SettingsField as AVe}from"efficient-easel/panel";import{keptByRow as IVe}from"efficient-easel/screen/lib/document/style-fields";function FVe(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??Kne}-words`;return FM(AVe,{label:u("Words"),icon:FM(NVe,{}),htmlFor:o,children:FM(LVe,{id:o,value:u("Set by country"),onChange:()=>{},readOnly:!0})})}}}function BO(e){return IVe(e)}function HO(e,t,o,n=[]){return xC(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?FVe():a]))}var BM=e=>dC(e==="none"?"no-symbol":e),YVe=AM.map(e=>({value:e,icon:e==="none"?hne(BM(e),fi(V6,{value:e})):BM(e)})),kge=Q("Button");function jVe({value:e,onChange:t}){let o=vge(),n=o.values.href,r=typeof e=="string"?e:e&&typeof e=="object"&&"text"in e?String(e.text??""):"";return o.fields&&"href"in o.fields?fi(Qne,{label:"Button",icon:fi(HVe,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):kge.render({value:r,field:{label:"Button"},onChange:a=>t(vre(a))})}function qVe({value:e,onChange:t}){let o=vge(),n=hge(e,o.values.arrow),r=uk(o.values.iconPosition),a=Sg(o.values.widthFit)==="fill",i=BM("icon-at-end");return fi(WVe,{label:u("Icon"),icon:fi(DVe,{size:18}),value:n==="none"?void 0:fi(V6,{value:n}),children:BVe("div",{className:"flex items-center gap-2",children:[fi($Ve,{label:u("Icon"),value:n,options:YVe,onChange:t}),n!=="none"&&fi(KVe,{size:"sm",block:!0,label:u("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:fi(zVe,{size:16}),label:fi("span",{className:"sr-only",children:u("Icon before text")}),title:u("Icon before text")},{value:"after",icon:fi(MVe,{size:16}),label:fi("span",{className:"sr-only",children:u("Icon after text")}),title:u("Icon after text")},...a?[{value:"end",icon:i,label:fi("span",{className:"sr-only",children:u("Icon at the far end")}),title:u("Icon at the far end")}]:[]]})]})})}var xge=()=>$F(Zn().theme),yge=UVe({lengthUnits:aC,follows:{useFill:()=>xge().fill,useText:()=>xge().ink,useBorder:()=>{let[e]=mc("variant"),[t]=mc("buttonColor"),{theme:o}=Zn(),n=oB({variant:e,buttonColor:t}).border.width,r=Sr(t)??(e==="ghost"?eZ(o).text:$F(o).fill);return{width:n,color:r}},useCorners:()=>iZ(Zn().cornerRadiusPx),useFillOpacity:()=>oB({variant:mc("variant")[0]}).fillOpacity},usePresets:Cne,resetTo:e=>kre(e,u("Styles")),padding:{fallback:tre,tablet:!0},phone:GVe,say:Ab});function XVe(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var Sge={fields:{label:Tre(kge,e=>fi(jVe,{value:e.value,onChange:e.onChange})),labelText:Ore("label"),href:pf({...Ve("Button link"),...DO("label")}),consentWords:BO("label"),_gButton:wge("Button"),rowField:jr("Shows","text"),[Vo]:Dc(),...XVe(yge,VVe.Design),_gStyle:wge("Style"),variant:DO("buttonColor"),icon:{type:"custom",render:e=>fi(qVe,{value:e.value,onChange:e.onChange})},iconPosition:DO("icon"),arrow:DO("icon"),...yge},resolveFields:(e,t)=>HO(Ya(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:Va};import{jsx as fk}from"react/jsx-runtime";import{AccentIcon as ZVe,ColumnsIcon as _ge,StylesIcon as Cge}from"efficient-easel/icons";import{group as HM}from"efficient-easel/screen/lib/document/box-fields";import{newId as Ege}from"efficient-easel/data";function MO(e,{rows:t="items",label:o="title"}={}){let n=dt(e);return n?Tp(n).map(r=>({label:r.label,value:r.key})):(Array.isArray(e[t])?e[t]:[]).map((r,a)=>({label:typeof r?.[o]=="string"&&r[o].trim()||u("Card {n}",{n:a+1}),value:KX(nn(r),a)}))}var Tge=new WeakMap;function zO(e,t){let o=Tge.get(e);o||Tge.set(e,o=new Map);let n=JSON.stringify(t),r=o.get(n);return r||o.set(n,r={...e,options:[...e.options,...t]}),r}function Pge(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>Ege(t),enumerable:!0})}function WO(e,t="items"){if(!Array.isArray(e[t])||dt(e))return e;let o=e[t],n=typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",r=c=>c&&typeof c=="object"&&typeof c.key=="string"?c.key:"",a=!!n&&!o.some(c=>r(c)===n),i=new Set,s=e.highlightedCard,l=!1,d=o.map((c,p)=>{if(!c||typeof c!="object")return c;let m=r(c);if(m&&!i.has(m))return i.add(m),c;let f=!m&&a&&n===String(p+1);if(m||f){let g=Ege("card");return i.add(g),l=!0,f&&(s=g),{...c,key:g}}return c});return l?{...e,[t]:d,highlightedCard:s}:e}import{isNodeList as JVe}from"efficient-easel/data";var QVe=e=>JVe(e.template)&&e.template.length>0;function eYe(e,t){let o=QVe(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,zO(r,MO(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,nYe(r)]]:[[n,r]]))}var tYe=Object.fromEntries(n2("Cards").filter(e=>!e.everySource).map(e=>[e.key,mk(e)])),oYe=Object.fromEntries(n2("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,mk(e)])),Rge=new WeakMap;function nYe(e){let t=Rge.get(e);return t||Rge.set(e,t={...e,arrayFields:tYe}),t}var Oge={fields:{_gSource:HM("Source"),dataSource:oo("Card content","Manual"),[Zb]:Jb(),_gContent:HM("Content"),eyebrow:U("Eyebrow",gb.eyebrow),eyebrowLook:ne("Eyebrow style",fk(Cge,{}),[...Js],Np("Cards")),title:q("Heading",gb.title),items:{type:"array",label:"Cards",arrayFields:oYe,defaultItemProps:Pge({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},..._Q,highlightedCard:ne("Highlighted card",fk(ZVe,{}),[{label:"None",value:""}],""),highlightBadge:U("Highlight badge","Most popular"),_gStyle:HM("Style"),cardStyle:lo("Card style",fk(Cge,{}),[{label:"Cards",value:"cards",picture:nB.cards},{label:"Label only",value:"label-only",picture:nB["label-only"]}],"cards",{columns:2,cell:Er}),columns:ae("Columns",fk(_ge,{}),2,4,1,3),fillLastRow:oe("Last card fills its row",!1,fk(_ge,{}),"When the last row is short, its last card widens to fill it.")},resolveData:(e,t)=>{let o=t?.lastData?.props,n=cie(e.props,o),r=aP(n),a=r===e.props?e:{...e,props:r},i=a.props,s=WO(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=it(no("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,st.Cards.headRows),n=e.props,r=eYe(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:ye("Feature label"),href:Pr(Q("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:Np("KeyFeatures")}}:{}}}};import{jsx as rYe}from"react/jsx-runtime";import{StickyIcon as aYe}from"efficient-easel/icons";import{group as Nge}from"efficient-easel/screen/lib/document/box-fields";var Lge={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Label"),count:Q("Count")},getItemSummary:e=>e?.label?`${e.label}${e.count?` \xB7 ${e.count}`:""}`:"Tab"},activeTab:Qo(Pr(Q("Active tab","All"))),_gLinks:Nge("Links"),links:{type:"array",label:"Right links",arrayFields:{label:Q("Label"),href:Pr(Q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:Nge("Style"),sticky:oe("Stick to top",!0,rYe(aYe,{}))}};import{jsx as iYe}from"react/jsx-runtime";import{StylesIcon as sYe}from"efficient-easel/icons";import{group as Age}from"efficient-easel/screen/lib/document/box-fields";var lYe=[...ete],Ige={fields:_i({_gContent:Age("Content"),eyebrow:U("Chip label",Cb.eyebrow),title:q("Heading",Cb.title),body:q("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:ye("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:U("Caption","Illustrative example"),_gStyle:Age("Style"),chartStyle:lo("Chart style",iYe(sYe,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:EC.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:EC.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:EC.donut}],"bars",{columns:3,cell:Er}),valueSuffix:Qo(U("Value suffix","%"))},lYe,Ia)};import{jsx as EYe}from"react/jsx-runtime";import{group as PYe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as ot,Fragment as MM,jsxs as vd}from"react/jsx-runtime";import{useId as dYe,useState as cYe}from"react";import{InspectorUpLevel as hk}from"efficient-easel/chrome";import{useEasel as pYe}from"efficient-easel/easel";import{ListField as Dge}from"efficient-easel/fields";import{SettingsField as Mge}from"efficient-easel/panel";import{ClockIcon as Fge,ContrastIcon as mYe,GlobeIcon as uYe,LinkIcon as fYe,LocationIcon as hYe,PhoneIcon as gYe,SquareIcon as bYe,TypeIcon as zM}from"efficient-easel/icons";import{useSectionOps as wYe}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as xYe}from"efficient-easel/draw";var WM=(e,t)=>t||e?Sie(e,t):u("Ungrouped");function yYe(e){let t=[];return e.forEach((o,n)=>{let r=ku(o),a=t.find(i=>i.key===r);a||(a={key:r,name:String(o?.groupName??""),indices:[]},t.push(a)),a.indices.push(n)}),t}function DM({children:e}){return ot("div",{style:{fontSize:11,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--ink-faint)",margin:"14px 0 6px"},children:e})}var zge={width:"100%",height:32,textAlign:"left",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"0 12px",fontSize:12,border:"1px solid var(--line-strong)",borderRadius:6,background:"transparent",color:"inherit",cursor:"inherit"},vYe={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},Wge={...vYe,color:"var(--status-danger-soft-ink)"};function cm({label:e,value:t,placeholder:o,textarea:n,icon:r,onChange:a,onBlur:i,onKeyDown:s}){let l=dYe();return ot(Mge,{label:e,icon:r??ot(zM,{}),htmlFor:l,children:n?ot("textarea",{id:l,value:t,placeholder:o,onChange:d=>a(d.target.value)}):ot("input",{id:l,type:"text",value:t,placeholder:o,onChange:d=>a(d.target.value),onBlur:i,onKeyDown:s})})}var kYe=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],SYe=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function Bge({label:e,icon:t,options:o,value:n,onChange:r}){return ot(Mge,{label:e,icon:t,children:ot("div",{role:"group","aria-label":e,style:{display:"flex",gap:4,flex:1},children:o.map(a=>{let i=n===a.value;return ot("button",{type:"button","aria-pressed":i,onClick:()=>r(a.value),style:{flex:1,padding:"6px 8px",fontSize:12,borderRadius:6,cursor:"pointer",border:`1px solid ${i?"var(--sf-accent)":"var(--line-strong)"}`,background:i?"var(--sf-accent)":"transparent",color:i?"var(--sf-on-accent)":"inherit",fontWeight:i?500:400},children:u(a.label)},a.value)})})})}function Hge({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||En.mapTheme,a=En;return vd(MM,{children:[!o&&ot(DM,{children:u("Section")}),ot(cm,{label:u("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),ot(cm,{label:u("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),ot(cm,{label:u("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:vd(MM,{children:[ot(DM,{children:u("City strip")}),ot(cm,{label:u("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),ot(cm,{label:u("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),ot(Bge,{label:u("Shape"),icon:ot(bYe,{}),options:SYe,value:S_(e.imageShape),onChange:i=>t({imageShape:i})}),ot(DM,{children:u("Map & Theme")}),ot(Bge,{label:u("Map theme"),icon:ot(mYe,{}),options:kYe,value:r,onChange:i=>t({mapTheme:i})})]})]})}function TYe({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((f,g)=>ku(f)===t?g:-1).filter(f=>f>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(ku).filter(f=>f!==t)),[d,c]=cYe(t),p=f=>o(e.map(g=>ku(g)===t?{...g,...f}:g)),m=()=>{let f=d;if(f!==t){if(l.has(f)){c(t);return}o(e.map(g=>ku(g)===t?{...g,group:f}:g)),a(f)}};return vd("div",{className:"sf-locations-view",children:[ot(hk,{inline:!0,name:u("Section"),onSelect:n,title:WM(t,s)}),ot(cm,{label:u("Group heading"),value:d,placeholder:u("e.g. Americas"),onChange:c,onBlur:m,onKeyDown:f=>{f.key==="Enter"&&f.currentTarget.blur()}}),l.has(d)&&d!==t&&ot("p",{className:"sf-note sf-note--error",role:"alert",children:u("Another group already uses this heading \u2014 pick a different one.")}),ot(cm,{label:u("Group name"),value:s,placeholder:u("Shown beside the heading"),onChange:f=>p({groupName:f})}),ot(Dge,{label:u("Cities in this group"),noun:u("city"),items:i.map(f=>e[f]),onChange:f=>o(Tie(e,t,f)),newItem:()=>({...wB,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(f,g)=>vd("button",{type:"button",style:zge,onClick:()=>r(i[g]),children:[ot("span",{children:f?.name||u("City")}),ot("span",{"aria-hidden":"true",children:"\u203A"})]})}),ot("div",{style:{marginTop:12},children:ot("button",{type:"button",style:Wge,onClick:()=>{o(e.filter(f=>ku(f)!==t)),n()},children:ar("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function Uge({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=kie(),r=Tae(),a=yYe(o),{appState:i,selectedItem:s}=pYe(h=>h),l=wYe(),d=s?.props??{},c=h=>{if(!s)return;let w=(i.data.content??[]).findIndex(b=>b.props.id===s.props.id);w<0||l.replaceComponent(xYe,w,{type:s.type,props:{...s.props,...h}})},p=(h,w)=>t(o.map((b,k)=>k===h?{...b,...w}:b)),m=()=>{let h=new Set(a.map(k=>k.key)),w=a.length+1,b=`Group ${w}`;for(;h.has(b);)b=`Group ${++w}`;return b};if(n.level==="texts")return vd("div",{className:"sf-locations-view",children:[ot(hk,{inline:!0,name:u("Locations"),onSelect:()=>sd({level:"groups"}),title:u("Texts")}),ot(Hge,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let h=o[n.index];return h?vd("div",{className:"sf-locations-view",children:[ot(hk,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>sd({level:"city",index:n.index}),title:u("Image")}),ot(Ane,{value:h.photo||"",onChange:w=>p(n.index,{photo:w}),label:"Image",accept:"image/*"})]}):f()}if(n.level==="map"){let h=o[n.index];return h?vd("div",{className:"sf-locations-view",children:[ot(hk,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>sd({level:"city",index:n.index}),title:u("Map")}),ot(IC,{value:h.geocode,onChange:w=>p(n.index,{geocode:w}),label:"Coordinates"}),ot(cm,{label:u("Directions link"),icon:ot(fYe,{}),value:String(h.mapsUrl??""),onChange:w=>p(n.index,{mapsUrl:w})})]}):f()}if(n.level==="city"){let h=n.index,w=o[h];if(!w)return f();let b=ku(w),k=(v,y)=>p(h,{[v]:y}),x=(v,y,S,E=!1)=>ot(cm,{label:y,icon:S,textarea:E,value:String(w[v]??""),onChange:T=>k(v,T)});return vd("div",{className:"sf-locations-view",children:[ot(hk,{inline:!0,name:WM(b,String(w.groupName??"")),onSelect:()=>sd({level:"group",key:b}),title:w.name||u("City")}),x("name",u("Location name"),ot(zM,{})),x("state",u("State / Province"),ot(zM,{})),x("country",u("Country"),ot(uYe,{})),x("address",u("Address"),ot(hYe,{}),!0),x("phone",u("Phone"),ot(gYe,{})),x("hours",u("Opening hours"),ot(Fge,{})),x("timezone",u("Timezone chip"),ot(Fge,{})),ot("div",{style:{marginTop:12},children:ot("button",{type:"button",style:Wge,onClick:()=>{t(o.filter((v,y)=>y!==h)),sd({level:"group",key:b})},children:u("Delete city")})})]})}if(n.level==="group")return a.some(h=>h.key===n.key)?ot(TYe,{cards:o,groupKey:n.key,onChange:t,onBack:()=>sd({level:"groups"}),onOpenCity:h=>sd({level:"city",index:h}),onNavigate:h=>sd({level:"group",key:h})},n.key):f();function f(){return vd("div",{className:"sf-locations-view",children:[ot(Hge,{props:d,setSection:c}),!r&&ot(MM,{children:g()})]})}function g(){return ot(Dge,{label:u("Locations"),noun:u("group"),items:a,onChange:h=>{let w=h.find(b=>!a.some(k=>k.key===b.key));t(Eie(o,h.map(b=>b.key),b=>[{...wB,group:b,groupName:""}])),w&&sd({level:"group",key:w.key})},newItem:()=>({key:m(),name:"",indices:[]}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,above:a.length===0?ot("div",{style:{fontSize:12,color:"var(--ink-faint)",padding:"4px 0"},children:u("No locations yet.")}):void 0,renderRow:h=>vd("button",{type:"button",style:zge,onClick:()=>sd({level:"group",key:h.key}),children:[ot("span",{style:{fontWeight:500},children:WM(h.key,h.name)}),vd("span",{style:{color:"var(--ink-faint)"},children:[ar("{n} city","{n} cities",h.indices.length)," \u203A"]})]})})}return f()}var Gge={fields:{_gOffices:PYe("Offices"),dataSource:oo("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>EYe(Uge,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,o=t.locations??[];if(!pC(o))return e;let n=await mC(o,i=>{let s=T_(i.region);return[String(i.address??"").replace(/\s*\n+\s*/g,", "),i.name,String(i.state??"").trim()||s.state,String(i.country??"").trim()||s.country].map(l=>String(l??"").trim()).filter(Boolean).join(", ")}),{[KE]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>no("ContactLocations",t,e.props)};import{jsx as $ge}from"react/jsx-runtime";import{ClockIcon as _Ye,TagIcon as CYe}from"efficient-easel/icons";var RYe=[...ite],Kge={fields:_i({title:U("Heading",y6.title),zeroText:Qo(U("At zero",y6.zeroText)),endsAt:Hre("Ends",$ge(_Ye,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:oe("Unit labels",!0,$ge(CYe,{}))},RYe,Ia)};import{jsx as gk,jsxs as OYe}from"react/jsx-runtime";import{Suspense as NYe,lazy as LYe,useState as AYe}from"react";import{Button as IYe}from"efficient-shell/ui";import{CodeIcon as FYe}from"efficient-shell/icons/efficient";import{SettingsField as BYe}from"efficient-easel/panel";import{iconOf as HYe}from"efficient-easel/screen/lib/document/box-fields";var DYe=LYe(()=>import("./chunks/CustomHtmlCodeWindow-WDJYQRZA.js"));function MYe({value:e,onChange:t}){let[o,n]=AYe(!1);return OYe(BYe,{label:u("HTML"),icon:HYe(gk(FYe,{})),children:[gk(IYe,{variant:"secondary",onClick:()=>n(!0),children:u("Edit code")}),o?gk(NYe,{fallback:null,children:gk(DYe,{open:!0,onClose:()=>n(!1),value:typeof e=="string"?e:"",onChange:t})}):null]})}var Vge={fields:{html:{type:"custom",label:"HTML",render:({value:e,onChange:t})=>gk(MYe,{value:e,onChange:t})}}};import{jsx as UM}from"react/jsx-runtime";import{StylesIcon as zYe,WeightIcon as WYe,WidthIcon as UYe}from"efficient-easel/icons";import{keptByRow as GYe}from"efficient-easel/screen/lib/document/style-fields";var $Ye={any:[{field:"style",set:!1},{field:"style",is:Mh}]},KYe={not:{field:"style",is:"none"}},Yge={fields:Le({style:lo("Style",UM(zYe,{}),sre.map(e=>({...e,picture:mre(e.value)})),Mh,{columns:3,cell:Er}),spacing:GYe("sectionPaddingTop"),thickness:ae("Thickness",UM(WYe,{}),1,8,1,1,H2),...id(H2,"thickness"),lengthPct:ae("Length",UM(UYe,{}),10,100,1,100,D2),...id(D2,"lengthPct")},[[["thickness"],$Ye],[["lengthPct"],KYe]]),resolveFields:(e,{fields:t})=>{let o=SC[TC(e.props.spacing)],n=Hp({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return W2(t,n)}};import{jsx as $M}from"react/jsx-runtime";import{HashIcon as VYe,StickyIcon as YYe,TargetIcon as jYe}from"efficient-easel/icons";import{group as qge,select as qYe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as kx}from"efficient-easel/screen/lib/document/device-fields";var GM={title:"On this page"},jge={label:"Contents",defaultProps:{title:GM.title,sticky:!0}};var Xge={fields:{title:kx("desktop",U("Heading",GM.title)),_gList:kx("desktop",qge("List")),[GC]:kx("desktop",qYe("Number",$M(VYe,{}),zee,Wee)),markCurrent:kx("desktop",oe("Mark the current section",!1,$M(jYe,{}),"The row of the section a reader is in stands out as they scroll.")),_gStick:kx("desktop",qge(o6)),sticky:kx("desktop",oe(o6,!0,$M(YYe,{})))}};import{group as XYe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as KM}from"efficient-easel/screen/lib/document/device-fields";var bk={hint:"Search questions",noMatchText:"No question matches your search."},Zge={label:"List search",defaultProps:{hint:bk.hint,noMatchText:bk.noMatchText}};var Jge={fields:{_gContent:KM("desktop",XYe("Content")),hint:KM("desktop",Qo(U("Hint",bk.hint))),noMatchText:KM("desktop",Qo(U("No match",bk.noMatchText)))}};import{group as e0e}from"efficient-easel/screen/lib/document/box-fields";var UO={toc:"On this page"},Qge={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var t0e={fields:{_gContent:e0e("Contents"),tocTitle:U("Contents heading",UO.toc),_gSections:e0e("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:ye("Contents label"),heading:ye("Title"),body:je("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as o0e}from"efficient-easel/screen/lib/document/box-fields";var n0e={fields:{_gContent:o0e("Content"),eyebrow:U("Eyebrow",du.eyebrow),title:q("Heading",du.title),deck:q("Deck / standfirst",du.deck),_gMeta:o0e("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:ye("Label"),value:ye("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var GO=[{label:"Label",value:"Value",desc:"Short description of this card."},{label:"Label",value:"Value",desc:"Short description of this card."},{label:"Label",value:"Value",desc:"Short description of this card."}],r0e={label:"Document Detail Cards",defaultProps:{cards:[]}};var a0e={fields:{cards:Wb({type:"array",label:"Cards",arrayFields:{label:ye("Label"),value:ye("Value"),desc:je("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},GO)}};import{jsx as ZYe}from"react/jsx-runtime";import{PageIcon as JYe}from"efficient-easel/icons";import{group as QYe}from"efficient-easel/screen/lib/document/box-fields";var Sx={metaLabel:W.label,metaValue:W.value},i0e={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var s0e={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Tab label"),href:Ve("Links to"),current:oe("Current page",!1,ZYe(JYe,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:QYe("Trailing note"),metaLabel:U("Note label",Sx.metaLabel),metaValue:U("Note value",Sx.metaValue)}};import{jsx as eje}from"react/jsx-runtime";import{StylesIcon as tje}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as oje}from"efficient-easel/screen/lib/document/box-fields";var l0e={fields:{eyebrow:U("Eyebrow",W.eyebrow),...il("align",{access:oje}),eyebrowLook:ne("Look",eje(tje,{}),Js,l_)}};import{jsx as c0e}from"react/jsx-runtime";import{ChevronIcon as nje,LinkIcon as rje}from"efficient-easel/icons";import{group as YM}from"efficient-easel/screen/lib/document/box-fields";var mf={num:W.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},VM=jn.FAQ,d0e={label:"Q&A",inline:!0,fields:VM,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var p0e="faqOnTemplate",aje={not:{context:p0e,is:!0}},ije={[p0e]:e=>xQ("FAQ",e.props??{})},sje=new Set([eJ,...tJ]);function lje(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||sje.has(t))}var m0e={fields:{_gContent:YM("Content"),num:U("Number",mf.num),title:q("Heading",mf.title),linkText:U("Button",mf.link),linkHref:Ve("Link"),_gQuestions:YM("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:ye("Question"),answer:je("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:YM("Layout"),defaultOpen:oe("Open first answer",!0,c0e(nje,{})),openFromLink:oe("Open from a link",!1,c0e(rje,{}),"A link to a question opens its answer. Each question gets an anchor made from its words, after the section's Anchor."),...VM},resolveFields:(e,{fields:t})=>{let o=it(t,e.props.headPlacement,st.FAQ.headRows);return _i(o,lje(o),aje)},showWhenFacts:ije};import{jsx as Vi,Fragment as $O,jsxs as cje}from"react/jsx-runtime";import{useContext as pje}from"react";import{SettingsField as g0e}from"efficient-easel/panel";import{FieldSelect as b0e}from"efficient-easel/fields";import{BlogPostIcon as w0e}from"efficient-easel/icons";import{ScreenDocumentContext as mje}from"efficient-easel/screen/components/ScreenDocumentContext";var u0e=ex({fetch:async(e,t)=>await Jd().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:In});import{useEffect as f0e,useRef as dje,useState as jM}from"react";function Tg(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function Tx({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=jM(null),[s,l]=jM(!1),[d,c]=jM(!1),p=dje(!0);return f0e(()=>(p.current=!0,e().then(m=>{p.current&&i(m)}),()=>{p.current=!1}),[]),f0e(()=>{if(!n?.slug||a===null)return;let m=t(a,n);if(!m)return;let f=o(m);Tg(f,n)&&r(f)},[a]),{rows:a,loading:a===null,refreshing:s,errored:d,refresh:()=>{n?.slug&&(l(!0),c(!1),e(!0).then(m=>{if(!p.current)return;i(m);let f=t(m,n);f&&r(o(f))}).catch(()=>{p.current&&c(!0)}).finally(()=>{p.current&&l(!1)}))}}}function h0e(e,t){return{label:t?u("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function Ex({value:e,onChange:t}){let o=pje(mje);return o&&!o.capabilities.hasBlog?e?.slug?Vi(uje,{value:e,onChange:t}):Vi($O,{}):Vi(fje,{value:e,onChange:t})}function uje({value:e,onChange:t}){return Vi("div",{children:Vi(g0e,{label:u("Blog post source"),icon:Vi(w0e,{}),hint:Vi($O,{children:u("Linked to a blog post. This editor has no blog to pick another from; choose \u201CNone (manual)\u201D to author the section yourself.")}),children:Vi(b0e,{value:e.slug,ariaLabel:u("Blog post source"),onChange:o=>o?void 0:t(null),options:[{label:u("None (manual)"),value:""},{label:e.title||e.slug,value:e.slug}]})})})}function fje({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=Tx({load:u0e,resolve:(m,f)=>m.find(g=>g.slug===f.slug),snapshot:l1,value:e,onChange:t}),s=m=>{if(!m){t(null);return}let f=(o??[]).find(g=>g.slug===m);f&&t(l1(f))},l=e?.slug&&!(o??[]).some(m=>m.slug===e.slug),d=a?"error":r?"loading":"idle",c=u("Storefront \u2192 Blog"),p=a?u("Couldn\u2019t reach {place}.",{place:c}):r?u("Syncing from {place}\u2026",{place:c}):u("Linked to \u201C{name}\u201D",{name:e?.title||e?.slug||""});return cje("div",{children:[Vi(g0e,{label:u("Blog post source"),icon:Vi(w0e,{}),hint:e?.slug?void 0:Vi($O,{children:u("Pick a post from {place} to auto-fill this section, or keep \u201CNone (manual)\u201D to author it yourself below.",{place:c})}),children:Vi(b0e,{value:e?.slug??"",ariaLabel:u("Blog post source"),onChange:s,readOnly:n,options:[{label:u("None (manual)"),value:""},...l?[h0e({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(m=>({label:m.title,value:m.slug}))]})}),e?.slug?Vi(ll,{status:d,statusText:p,onRefresh:i,busy:r,hint:Vi($O,{children:u("Auto-fills the cover image, headline, dek, date and link from this post each time you open the editor. Those fields are hidden while a post is linked; the remaining fields stay yours to set.")})}):null]})}import{group as hje}from"efficient-easel/screen/lib/document/box-fields";var qr={badge:"Featured",imageDate:W.date,category:W.category,readLabel:"0 min read",date:W.date,title:"Add a *headline* for this story.",dek:"A short summary of the featured article \u2014 one or two sentences that draw the reader in.",ctaText:"Read the story",ctaHref:ac.href},x0e={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var gje=["image","imageDate","date","title","dek","ctaHref"],y0e={fields:_i({source:Uo(Ex),_nBound:at(dl(RC),OC),image:Qe("Cover image","image/*"),badge:U("Badge",qr.badge),imageDate:U("Image date",qr.imageDate),_gContent:hje("Content"),category:U("Category",qr.category),readLabel:U("Read time",qr.readLabel),date:U("Date",qr.date),title:q("Heading",qr.title),dek:q("Dek",qr.dek),ctaText:U("Button",qr.ctaText),ctaHref:Ve("Link")},gje,Gb)};import{jsx as mr}from"react/jsx-runtime";import{phoneKey as Or,tabletKey as ka}from"efficient-easel/draw";import{keptByRow as xqe}from"efficient-easel/screen/lib/document/style-fields";import{jsx as v0e}from"react/jsx-runtime";import{OpacityIcon as bje,StylesIcon as wje}from"efficient-easel/icons";function Px(){return{darken:ae("Darken",v0e(bje,{}),nd.min,nd.max,nd.step,nd.fallback,nd.unit),darkenStyle:ne("Darken style",v0e(wje,{}),c2,c2[0].value)}}var xje={"top-left":"left-0 top-[120px]","top-center":"left-1/2 top-[120px] -translate-x-1/2","top-right":"right-0 top-[120px]",left:"left-0 top-1/2 -translate-y-1/2",center:"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",right:"right-0 top-1/2 -translate-y-1/2","bottom-left":"left-0 bottom-[120px]","bottom-center":"left-1/2 bottom-[120px] -translate-x-1/2","bottom-right":"right-0 bottom-[120px]"},yje=`calc(${EZ} - ${VF}*2)`,k0e=`var(${PZ},${VF})`,cYt=`pointer-events-none absolute inset-y-0 left-[${k0e}] right-[${k0e}] z-[6] mx-auto max-w-[var(${_Z},${yje.replace(/ /g,"_")})]`;function KO(e,t){return`pointer-events-auto absolute ${xje[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function S0e(e){return IP.includes(e)?e:null}import{parseOption as qM}from"efficient-shell/format";var vje=IP,XM="top-right",kje=["cards","dots","numbers","bar","squares","tabs","largeTabs"],ZM=["cards","dots","numbers","bar","squares"],VO="cards",YO={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},jO=["tabs","largeTabs"],T0e=!0;function qO(e){return qM(kje,VO,e)}function E0e(e){return qM(ZM,VO,e)}function Sje(e){return qM(vje,XM,e)}var P0e={cards:"flex-col gap-2.5",dots:"flex-row items-center gap-2",numbers:"flex-col gap-2",bar:"h-0.5 w-[34%] max-w-[420px] gap-px overflow-hidden rounded-full",squares:"flex-col gap-0",tabs:"flex-row items-stretch w-full overflow-x-auto",largeTabs:"items-stretch border-y border-line"};function _0e(e,t){return KO(Sje(t),P0e[qO(e)])}function C0e(e){return`flex ${P0e[qO(e)]}`}function R0e(e){return e.shown!==!1&&(e.count??0)>1}function Tje(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function Eje(e,t){return e===t?!0:e.length!==t.length?!1:e.every((o,n)=>o.name===t[n].name&&o.process===t[n].process&&o.video===t[n].video)}function O0e(e,t){let o=Array.from(t,Tje);return Eje(e,o)?e:o}import{deviceField as kd}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as yqe,ClockIcon as vqe,CropIcon as ube,GapIcon as kqe,MediaLayoutStackedIcon as Sbe,LineBetweenIcon as Sqe,LineSolidIcon as Tqe,ListIcon as Eqe,NumberedListIcon as fbe,ShadowIcon as Pqe,StylesIcon as hbe,TableIcon as gbe,TargetIcon as _qe,WrapIcon as Tbe}from"efficient-easel/icons";var Pg=BP.map(e=>e.shape),QM=e=>e!==qs&&Pg.includes(String(e??""))?e:null;function Eg(e){return QM(e)??(Zm(e)?qs:"auto")}function XO(e){let t=Eg(e);return t==="auto"?"":lb(t)}function N0e(e,t,o){return zZ({desktop:e,phone:JM(t)!==null?t:o,tablet:o})}var Pje={tall:"view-wide:aspect-[3/4]",square:"view-wide:aspect-square",landscape:"view-wide:aspect-[4/3]",screen:"view-wide:aspect-[16/10]",video:"view-wide:aspect-[16/9]",wide:"view-wide:aspect-[2/1]",panorama:"view-wide:aspect-[21/9]",story:"view-wide:aspect-[9/16]",poster:"view-wide:aspect-[2/3]",portrait:"view-wide:aspect-[4/5]",custom:"view-wide:aspect-[var(--shape-ratio)]"},_je={auto:"max-view-wide:aspect-auto",tall:"max-view-wide:h-auto max-view-wide:aspect-[3/4]",square:"max-view-wide:h-auto max-view-wide:aspect-square",landscape:"max-view-wide:h-auto max-view-wide:aspect-[4/3]",screen:"max-view-wide:h-auto max-view-wide:aspect-[16/10]",video:"max-view-wide:h-auto max-view-wide:aspect-[16/9]",wide:"max-view-wide:h-auto max-view-wide:aspect-[2/1]",panorama:"max-view-wide:h-auto max-view-wide:aspect-[21/9]",story:"max-view-wide:h-auto max-view-wide:aspect-[9/16]",poster:"max-view-wide:h-auto max-view-wide:aspect-[2/3]",portrait:"max-view-wide:h-auto max-view-wide:aspect-[4/5]",custom:"max-view-wide:h-auto max-view-wide:aspect-[var(--shape-ratio-phone)]"};function Cje(e,t){let o=Eg(t);return o==="auto"&&QM(t)===null?null:o===qs?t===e?null:o:o===Eg(e)?null:o}var Rje={auto:"view-wide:max-view-desktop:aspect-auto!",tall:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[3/4]!",square:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-square!",landscape:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[4/3]!",screen:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[16/10]!",video:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[16/9]!",wide:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[2/1]!",panorama:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[21/9]!",story:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[9/16]!",poster:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[2/3]!",portrait:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[4/5]!",custom:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[var(--shape-ratio-tablet)]!"};function JM(e){let t=Eg(e);return t==="auto"&&QM(e)===null?null:t}function L0e(e,t,o){let n=JM(o),r=Cje(e,JM(t)!==null?t:o);if(r===null&&n===null)return XO(e);let a=Eg(e);return[r===null?XO(e):a==="auto"?"":Pje[a],r===null?"":_je[r],n===null?"":Rje[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as Ebe,VIEW_KEY_ACCESS as Mc,group as Cg,phoneTwinFields as zc}from"efficient-easel/screen/lib/document/box-fields";var Oje={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},Nje=Qv.map(e=>({value:e.value,picture:dC(Oje[e.value])}));function ZO(e,t){return lo("Separator",e,Nje,t,{resolve:Qq})}import{jsx as Lje}from"react/jsx-runtime";import{cloneElement as Aje}from"react";import{PaddingXIcon as Ije}from"efficient-easel/icons";import{deviceField as Fje}from"efficient-easel/screen/lib/document/device-fields";function A0e(){let e=ne(Rae,Lje(Ije,{}),qJ,XJ);return Fje("desktop",{...e,render:t=>{let o=e.render({...t,value:QP(t.value),onChange:n=>t.onChange(JJ(n))});return Aje(o,{hint:u(ZJ)})}})}import{newNodeId as e9}from"efficient-easel/draw";var I0e=["First row","Second row","Third row"],Bje="Write the words for this row.",F0e=e=>({type:"Text",props:{...Ue,id:e9("Text"),tag:"p",text:e}}),Hje=(e,t)=>({type:ue,props:{...ze,id:e9(ue),...t?{startsOpen:!0}:{},rowTitle:[F0e(e)],content:[{type:"Text",props:{..._t,id:e9("Text"),tag:"p",text:Bje}}]}}),Dje=e=>!Array.isArray(e)||e.length===0;function B0e(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:I0e.map((r,a)=>Hje(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==ue||!Dje(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(I0e[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[F0e(i)]}}});return o?{...e,content:n}:e}import{parseOption as Mje}from"efficient-shell/format";var wk="rowStyle",zje=["plain","numbered","chevron"],H0e=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function D0e(e){return Mje(zje,"plain",e)}var JO="flex cursor-pointer list-none items-center gap-6 py-7 [&::-webkit-details-marker]:hidden max-view-wide:gap-4 max-view-wide:py-5",QO="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",eN="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",M0e="border-t border-line",z0e="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",W0e="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as Wje}from"efficient-easel/screen/lib/content/view-tiers";var tN=jn.Flex,U0e={label:"Box",fields:tN,phoneOrder:{prop:Wje("order"),slot:"content"},defaultProps:{direction:"row",justify:"start",align:"stretch",wrap:!0,content:[],share:"equal",blockSpacing:"gap",padV2:!0,sectionPaddingTop:24,sectionPaddingBottom:24}};import{jsx as G0e}from"react/jsx-runtime";import{isNode as Uje}from"efficient-easel/data";import{useEasel as Gje}from"efficient-easel/easel";import{PhoneOrderField as $je}from"efficient-easel/fields";import{slotChildRowName as Kje}from"efficient-easel/draw";import{deviceField as Vje}from"efficient-easel/screen/lib/document/device-fields";function Yje(){try{let e=Gje(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!Uje(a)||typeof t[a.type]?.render!="function"?!1:Sr(a.props?.id)!==void 0):[],r=n.map(a=>a.props.id);return{blocks:n,ids:r,labelOf:a=>t[a]?.label??a}}catch{return null}}function jje({value:e,onChange:t,readOnly:o}){let n=Yje();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return G0e($je,{stored:"ids",value:e,ids:a,onChange:t,readOnly:o,noun:"block",hint:u("The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order."),itemLabel:s=>Kje(r[s],i,So,void 0,Zre)})}function $0e(){return Vje("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>G0e(jje,{value:e,onChange:t,readOnly:o})})}import{jsx as kk}from"react/jsx-runtime";import{SettingsDefaultReset as aqe,SettingsField as iqe}from"efficient-easel/panel";import{Segmented as sqe}from"efficient-shell/ui";import{SwapIcon as lqe}from"efficient-easel/icons";import{describedAs as dqe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as cqe}from"efficient-easel/screen/lib/document/device-fields";var xk="Mirror cards",yk="off",t9=[{value:yk,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],K0e={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function uf(e){return e==="even"||e==="odd"?e:null}function V0e(e){return uf(e)??void 0}function vk(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function _g(e,t,o){return!t||e.direction!=="row"||o||$m("row",e.separator)||e.loop==="scroll"||e.line===!0||ds(e)||IF(e.columns)!==""||cX(e.columnsTablet)!==""?!1:!(ls(e.share)===""&&X0(e.wrap)!=="")}function Y0e(e,t){let o=uf(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var j0e="view-wide:flex-row-reverse",qje={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},Xje={left:"view-wide:text-right!",right:"view-wide:text-left!"},Zje={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},Jje={start:"view-wide:items-end!",end:"view-wide:items-start!"},Qje={start:"view-wide:max-view-desktop:justify-end!",end:"view-wide:max-view-desktop:justify-start!",center:"view-wide:max-view-desktop:justify-center!",between:"view-wide:max-view-desktop:justify-between!"},oN=(e,t)=>(typeof t=="string"?Us(e,t):void 0)??"";function o9(e,t,o){return e?[oN(qje,t),oN(Xje,o)].filter(Boolean).join(" "):""}function q0e(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=nX(o,r,void 0).tablet;return[oN(Zje,o),a?Qje[a]:""].filter(Boolean).join(" ")}return t==="column"?oN(Jje,n):""}function n9(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||ds(e)?!1:IF(e.columns)===""}function nN(e,t){let o=uf(e.mirrorCards);return o&&n9(e,t)?{mirror:o}:null}import{isNodeList as obe}from"efficient-easel/data";import{parseOption as X0e}from"efficient-shell/format";var eqe=["columns","rows-left","rows-right"],tqe=["half","third"],Z0e=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],J0e=[{value:"half",label:"Half"},{value:"third",label:"One third"}],Q0e=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function oqe(e){return X0e(eqe,"columns",e)}var nqe={"rows-left":"even","rows-right":"odd"},rqe={half:"equal",third:"bigRight"};function rN(e){let t=oqe(e?.arrangement);if(t==="columns")return null;let o=X0e(tqe,"half",e?.imageWidth);return{mirror:nqe[t],row:{share:rqe[o],phoneReverse:e?.phoneOrder==="words"}}}var ebe={ProcessSteps:{slot:"boxes",hand:rN}},tbe=(e,t,o)=>obe(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function _x(e,t){let o=j_(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===ue&&tbe(o,Oe,t)){let s=td(e,o.props?.id)?.inCopy===!0;return nN(Zs(o.props??{},s),s)}let i=Us(ebe,a);if(i&&tbe(o,i.slot,t))return i.hand(o.props??{})}let n=fP(e,t),r=n&&typeof n.type=="string"?Us(ebe,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function nbe(e){let t=e?.[Oe];return obe(t)&&t.some(o=>o?.type===ue)}var rbe="mirrorCardsIdle",r9="mirrorCardsMirrors",abe={[r9]:(e,t)=>{let o=td(t.appState,e.props?.id);if(o===void 0)return;let n=Zs(e.props??{},o.inCopy),r=_x(t.appState,e.props?.id);if(r){let a=r.row?{...n,direction:"row",share:r.row.share}:n;return r.mirror!==null&&_g(a,!0,Xp(a).desktop)}return _g(n,vk(o),Xp(n).desktop)&&uf(n.mirrorCards)!==null},[rbe]:(e,t)=>{let o=td(t.appState,e.props?.id);if(o===void 0)return;let n=Zs(e.props??{},o.inCopy);return _x(t.appState,e.props?.id)?!0:_g(n,vk(o),Xp(n).desktop)?!1:!(n9(n,o.inCopy)&&nbe(n))}};function pqe(e=!1){return t9.map(t=>({value:t.value,label:u(t.label),title:t.value===yk?void 0:u(K0e[t.value]),disabled:e}))}function mqe({value:e,onChange:t,readOnly:o}){let n=uf(e)??yk;return kk(iqe,{label:u(xk),icon:kk(lqe,{}),action:kk(aqe,{words:PP()?.panel,label:u(xk),changed:n!==yk,detail:u("Off"),onReset:()=>t(void 0)}),children:kk(sqe,{size:"sm",block:!0,label:u(xk),value:n,onChange:r=>t(V0e(r)),options:pqe(o===!0)})})}function ibe(){return at(cqe("desktop",{type:"custom",...dqe({},{type:"radio",label:xk,options:t9.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>kk(mqe,{value:e,onChange:t,readOnly:o})}),{not:{context:rbe,is:!0}})}import{jsx as uqe}from"react/jsx-runtime";import{FilterIcon as fqe}from"efficient-easel/icons";import{deviceField as hqe}from"efficient-easel/screen/lib/document/device-fields";var dbe="showForUnoffered",cbe={[dbe]:e=>Q_().length===0&&N2(e.props?.[O2])===void 0},gqe="Show for",bqe="All";function wqe(e,t){if(!e)return;let o=Q_().find(r=>r.slug===e);if(o)return{slug:o.slug,name:o.name};let n=N2(t);return n?.slug===e?n:void 0}function pbe(){let e=ne(gqe,uqe(fqe,{}),[{label:bqe,value:""}],"");return at(hqe("desktop",{...e,render:t=>e.render({...t,value:N2(t.value)?.slug??"",onChange:o=>t.onChange(wqe(o,t.value))})}),{not:{context:dbe,is:!0}})}var sbe=new WeakMap;function mbe(e,t){let o=e[O2];if(!o)return e;let n=Q_(),r=N2(t?.[O2]),a=r&&!n.some(p=>p.slug===r.slug)?r:void 0,i=sbe.get(o);i||sbe.set(o,i=new Map);let s=`${Qoe()}\0${a?`${a.slug}\0${a.name}`:""}`,l=i.get(s);l||(l={...o,options:[...o.options,...n.map(p=>({label:p.name,value:p.slug})),...a?[{label:a.name,value:a.slug}]:[]]},i.set(s,l));let d=lbe.get(e);d||lbe.set(e,d=new Map);let c=d.get(s);return c||d.set(s,c={...e,[O2]:l}),c}var lbe=new WeakMap;var bbe=$q,wbe={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},Cqe={field:"direction",is:"tabs"},Rqe={field:"line",in:[!0,!1]},Oqe={field:"anchor",set:!0},a9=["fixed","screen","fill"],Nqe={not:{any:[{field:"sectionHeightMode",in:a9},{field:"sectionHeightModeTablet",in:a9},{field:"sectionHeightModePhone",in:a9}]}},Lqe={context:"parent.line",is:!0},Rg={not:{field:"direction",is:"accordion"}},xbe={field:"direction",is:"accordion"},ybe={any:[Rg,{not:{field:wk,in:["numbered","chevron"]}},{field:"columns",in:[...pX]},{field:"phoneRow",in:[...mX]}]},Pbe="notAccordionRow",Aqe={not:{context:Pbe,is:!0}},Iqe={[Pbe]:(e,t)=>t.parent?.props?.direction!=="accordion"},s9={field:"direction",is:"row",default:"row"},Og={not:fZ},Ag={all:[s9,Og,{not:{field:"separator",in:Qv.map(e=>e.value)}},{not:{field:"line",is:!0}}]},Fqe={field:"direction",is:"column"},_be={all:[Ag,...["columns",ka("columns")].map(e=>({not:{field:e,in:Array.from({length:rP},(t,o)=>o+nP)}}))]},Bqe={all:[Og,{not:{all:[s9,{field:"separator",in:Qv.map(e=>e.value)}]}}]},i9={not:{all:[Ag,{field:"columns",in:Array.from({length:rP},(e,t)=>t+nP)}]}},Hqe="sharedColumnsFits",Cbe="sharedColumnsMisfit",Rbe="sharedColumnsDraws",Obe="sharedColumnsPhoneDraws";function Lg(e,t){return Zs(e.props??{},td(t.appState,e.props?.id)?.inCopy!==!1)}var Dqe={[Hqe]:(e,t)=>m5(Lg(e,t)),[Cbe]:(e,t)=>!m5(Lg(e,t)),[Rbe]:(e,t)=>Xp(Lg(e,t)).desktop,[Obe]:(e,t)=>Xp(Lg(e,t)).phone};function vbe(e){return{all:[{not:{context:Cbe,is:!0}},{any:[sB,{field:e,set:!0}]}]}}var Ng={not:{context:Rbe,is:!0}},Cx={not:{context:Obe,is:!0}},Nbe="sharedRowsDraws",Mqe={[Nbe]:(e,t)=>u5(Lg(e,t))&&_x(t.appState,e.props?.id)?.row===void 0},Sk={not:{context:Nbe,is:!0}},zqe={any:[Ng,Cx]},l9=Vq,Wqe={not:{context:r9,is:!0}},Lbe="rowHanded",Uqe={not:{context:Lbe,is:!0}},Gqe={[Lbe]:(e,t)=>{let o=_x(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},kbe={all:[Rg,l9,Ng,Cx,Wqe]},$qe={field:"direction",is:"row"},Kqe={field:"align",in:["start","center","end"]},Vqe={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function Yqe(){let{darken:e,darkenStyle:t}=Px();return{...zc("darken",e,Mc),...zc("darkenStyle",t,Mc)}}var Abe={not:{all:[Ag,{field:ka("columns"),in:Array.from({length:rP},(e,t)=>t+nP)}]}};function jqe(){let e=oe(Ebe,!1,mr(Tbe,{})),t=o=>{let n=AF(o);return n===void 0?void 0:n==="wrap"};return{...Bh(),render:o=>e.render({...o,value:t(o.value),follows:t(o.follows)??!1,onChange:n=>o.onChange(n===void 0?void 0:n?"wrap":"nowrap")})}}function qqe(){let e=oe(Ebe,!0,mr(Tbe,{})),t=o=>{let n=AF(o);return n===void 0?void 0:n==="wrap"};return{...Bh(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!uX(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var Ibe={hint:ru},Fbe={all:[l9,{any:[Fqe,{all:[Ag,Abe,{not:{all:[_be,{field:ka("share"),set:!0}]}}]}]}]},Xqe=at(kd("desktop",ae("Narrows below",mr(Sbe,{}),Rh.min,Rh.max,Rh.step,ru,{kind:"breakpoint"},{clear:Ibe,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),Fbe);function Zqe(e,t){let o=e;return!(Oh in o)||t.direction!=="column"?e:{...o,[Oh]:Xqe}}var Bbe={fields:Le({_gContent:Cg("Content"),rowTitle:tN.rowTitle,content:tN.content,_gCardDisplay:Cg("Display"),cardDisplay:FC("desktop"),cardDisplayTablet:FC("tablet"),cardDisplayPhone:FC("mobile"),showFor:pbe(),_gLayout:Cg("Layout"),direction:CC("Flex"),tabShape:lo("Tab shape",mr(hbe,{}),jO.map(e=>({label:YO[e],value:e,picture:ure[e]})),"tabs",{columns:2,cell:Er}),mirrorCards:ibe(),[Oh]:kd("desktop",ae("Stacks below",mr(Sbe,{}),Rh.min,Rh.max,Rh.step,ru,{kind:"breakpoint"},{clear:Ibe,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[m2]:A0e(),startsOpen:kd("desktop",oe("Starts open",!1,mr(yqe,{}))),[wk]:kd("desktop",lo("Row style",mr(fbe,{}),H0e.map(e=>({...e,picture:e.value==="numbered"?mr(fbe,{}):mr(Eqe,{})})),"plain",{columns:2})),label:Qo(Q("Tab name")),...di("Flex"),...zc("justify",sC(),Mc),...zc("align",lC(),Mc),...(()=>{let e=zc("wrap",Bh(),Mc,{phoneRow:qqe()}),t=zc("wrap",Bh(),Mc,{phoneRow:jqe()});return{wrap:t.wrap,[ka("wrap")]:t[ka("wrap")],[Or("wrap")]:e[Or("wrap")]}})(),[Or("order")]:$0e(),...zc("boxShape",ox("Box shape",mr(ube,{}),db(Pg),"shape","auto"),Mc,{phoneRow:ox("Box shape",mr(ube,{}),db(Pg),"shape","auto",{phoneRest:e=>Eg(e)})}),[qE]:kd("desktop",une(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:ZO(mr(Sqe,{size:18}),"none"),[vb]:kd("desktop",lo("Card style",mr(hbe,{}),QQ.map(e=>({...e,picture:hre[e.value]})),"table",{columns:2,cell:Er})),share:kd("desktop",Nre()),[ka("share")]:Ire(),[Or("share")]:Are(),[qp]:kd("desktop",ne(ZH,mr(gbe,{}),[...ype],k1)),[Or(qp)]:kd("mobile",ne(ZH,mr(gbe,{}),[...vpe],k1)),...Fre(),...zc("blockSpacing",Lre(),Mc),line:oe("Line",!1,mr(Tqe,{}),"A line across the blocks, with a dot on each."),upcoming:oe("Upcoming",!1,mr(vqe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:ne("Join",mr(kqe,{}),b_,g_),_gShadow:Cg("Shadow"),...zc("shadow",oe("Shadow",!1,mr(Pqe,{})),Mc),...zc("fillColor",Mre(),Mc),[ma]:jr("Fill content","colour"),[qP]:xqe("fillColor"),_gBackground:Cg("Background image"),bgImage:kd("desktop",Qe("Image","image/*")),bgImagePhone:kd("mobile",Qe("Image","image/*")),[rr]:jr("Image content","image",{content:!0}),...Yqe(),placement:ad("Content position"),_gLink:Cg("Link"),link:pf(Ve("Link to")),[Vo]:Dc(),_gJump:Cg("Anchor"),jumpHighlight:oe("Highlight when a link jumps here",!1,mr(_qe,{}),"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.")},[[["darken","darkenStyle","placement"],bbe],[[Or("share")],{all:[wbe,Cx]}],[[qp],vbe(qp)],[[Or(qp)],vbe(Or(qp))],[[Or("wrap")],{all:[wbe,Og,Cx,Sk]}],[[Or("order")],{all:[Ag,Cx,Ng]}],[["phoneRow"],Cx],[[wk],{all:[xbe,{not:{field:wk,is:"chevron"}}]}],[["tabShape"],Cqe],[["rowTitle","startsOpen"],Aqe],[["align","blockSpacing",ka("blockSpacing"),Or("blockSpacing")],Rg],[[ka("justify"),Or("justify")],{all:[Og,kbe,Sk]}],[[ka("align"),Or("align")],{all:[$qe,Kqe,kbe]}],[[ka("wrap")],{all:[Og,i9,Abe,Ng,Rg,Sk]}],[[ka("shadow"),Or("shadow")],l9],[[ka("darken"),Or("darken"),ka("darkenStyle"),Or("darkenStyle")],{all:[bbe,Vqe]}],[["separator"],s9],[[vb],{field:vb,set:!0}],[["columns"],{any:[Ag,xbe]}],[[ka("columns")],Ag],[[Oh],Fbe],[[ka("gap")],{all:[Bqe,ybe]}],[["gap",Or("gap")],ybe],[["justify"],{all:[Og,zqe,Rg,Sk]}],[["wrap"],{all:[Og,i9,Ng,Rg,Sk]}],[["share"],{all:[i9,Ng,Rg]}],[[ka("share")],{all:[_be,Ng]}],[["line"],Rqe],[["upcoming"],Lqe],[["jumpHighlight"],Oqe],[["boxShape",ka("boxShape"),Or("boxShape")],Nqe],[["direction","share",Or("order")],Uqe],[["join"],z6],[[m2],z6]]),resolveData:(e,t)=>{let o=e.props,n=o[vb];return t.changed?.[vb]===!0&&eee(n)?{...e,props:tee(o,n,ue,Oe)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:B0e(o)}:e},resolveFields:(e,t)=>{let o=td(t.appState,e.props?.id)?.inCopy===!0,n=o&&fP(t.appState,e.props?.id)===null;return Zqe(eXe(tXe(mbe(oXe(e,{...t,fields:Ya(t.fields,e,t)}),e.props),Lg(e,t),o),n),e.props)},showWhenFacts:{...Va,...Qre,...abe,...Gqe,...Dqe,...Mqe,...cbe,...Iqe}},Jqe=at(qre,sB),Qqe=["darken","darkenStyle",XE,wh];function eXe(e,t){if(!t)return e;let o={...e};for(let n of Qqe){if(!(n in o))continue;let{showWhen:r,...a}=o[n];o[n]=a}return o}function tXe(e,t,o=!1){let n=e;return bh in n&&ds(t)&&o?{...n,[bh]:at(Xre,Jre)}:!(bh in n)||ds(t)?e:{...n,[bh]:Jqe}}function oXe(...[e,t]){let{fields:o}=t;{if(ds(Lg(e,t))){let n=Hp({fallback:{top:Ri.desktop,bottom:Ri.desktop,left:Ri.side,right:Ri.side},tablet:!0,siteSide:!0});return W2(o,n)}return e.props.padV2!==!0?W2(o,Hp({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as Ig}from"react/jsx-runtime";import{ColumnsIcon as Gbe,GridIcon as rXe,LayoutIcon as aXe,SlidePickerCardsIcon as iXe,WidthIcon as $be}from"efficient-easel/icons";import{deviceField as dN}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as nXe}from"efficient-shell/format";var d9=["grid","carousel"],c9="grid",Hbe={grid:"Grid",carousel:"Carousel"};function Dbe(e){return nXe(d9,c9,e)}var aN=50,iN=80,sN=30,lN=90;function p9(e,t){let o=Tn(e);return o===void 0?t:Math.min(lN,Math.max(sN,o))}function Mbe(e,t,o){if(o<=0)return null;let n=((e-t)%o+o)%o;return n===0?0:n===1?1:n===o-1?-1:null}function zbe(e,t,o){return o<=0?0:((e+t)%o+o)%o}function Wbe(e,t){return!t||t.height<=0?null:Math.round(t.top-e.top+t.height/2)}var m9=jn.Grid,Ube={label:"Grid",fields:m9,defaultProps:{columns:"3",content:[]}};var sXe={grid:Ig(rXe,{}),carousel:Ig(iXe,{})},Kbe={field:"layout",is:"carousel"},Vbe={fields:{layout:lo("Layout",Ig(aXe,{}),d9.map(e=>({label:Hbe[e],value:e,picture:sXe[e]})),c9),carouselTile:at(dN("desktop",ae("Tile width",Ig($be,{}),sN,lN,1,aN,{kind:"size",base:"%"})),Kbe),carouselTilePhone:at(dN("mobile",ae("Tile width",Ig($be,{}),sN,lN,1,iN,{kind:"size",base:"%"})),Kbe),columns:dN("desktop",ae("Columns",Ig(Gbe,{}),1,YZ,1,qZ)),mobileColumns:dN("mobile",ae("Columns",Ig(Gbe,{}),e6,jZ,1,e6)),...di("Grid"),content:m9.content}};import{jsx as lXe}from"react/jsx-runtime";var Ybe={fields:{text:q("Heading",W.heading),level:ne("Level",lXe(ua,{noun:"heading"}),[{label:"H1",value:"1"},{label:"H2",value:"2"},{label:"H3",value:"3"},{label:"H4",value:"4"},{label:"H5",value:"5"},{label:"H6",value:"6"}],"2")}};import{jsx as gn}from"react/jsx-runtime";import{parseOption as dXe}from"efficient-shell/format";var u9="bottom-right",f9=["outline","solid","square","bare"],h9="outline",jbe={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},qbe=!1,Xbe=["prev","next"],Zbe={prev:"Previous slide",next:"Next slide"};function cXe(e){return dXe(f9,h9,e)}function pXe(e){return S0e(e)??u9}var mXe="flex-row items-center gap-2";function Jbe(e){return KO(pXe(e),mXe)}var uXe={outline:"grid h-10 w-10 cursor-pointer place-items-center rounded-full border border-overlay-chrome/60 text-overlay-fg transition-colors hover:border-overlay-chrome hover:bg-overlay-scrim/30",solid:"grid h-10 w-10 cursor-pointer place-items-center rounded-full border border-overlay-chrome bg-overlay-chrome text-overlay-scrim transition-colors hover:bg-overlay-chrome/85",square:"grid h-10 w-10 cursor-pointer place-items-center rounded-md border border-overlay-chrome/60 text-overlay-fg transition-colors hover:border-overlay-chrome hover:bg-overlay-scrim/30",bare:"grid h-10 w-10 cursor-pointer place-items-center text-overlay-fg transition-colors hover:text-overlay-chrome"};function Qbe(e){return uXe[cXe(e)]}function ewe(e){return e.shown===!0&&(e.count??0)>1}function cN(e,t,o){if(o<=1)return t;let n=Math.min(Math.max(t,0),o-1);return e==="prev"?(n-1+o)%o:(n+1)%o}import{ClockIcon as cwe,EyeIcon as v9,HandIcon as gXe,ScrollMoveDownIcon as pwe,OpacityIcon as bXe,PhoneIcon as lwe,PlayIcon as wXe,SlideArrowsBareIcon as xXe,SlideArrowsRoundIcon as yXe,SlideArrowsSquareIcon as vXe,SlidePickerBarIcon as kXe,SlidePickerCardsIcon as SXe,SlidePickerDotsIcon as TXe,SlidePickerNumbersIcon as EXe,SlidePickerSquaresIcon as PXe,SquareIcon as dwe,StylesIcon as _Xe}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as CXe}from"efficient-shell/icons/efficient-looks";import{group as ff}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as k9,deviceNote as LXe}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as twe}from"efficient-shell/format";var g9=["manual","timer","scroll"],owe={manual:"Hand",timer:"Timer",scroll:"Scroll"};function pN(e){return twe(g9,e.autoplay===!0?"timer":"manual",e.slideChange)}var b9=25,w9=10,x9=100;function nwe(e){let t=Tn(e);return t===void 0?b9:Math.min(x9,Math.max(w9,t))}function rwe(e,t,o){return o<=0||t<=0?0:Math.min(o-1,Math.max(0,Math.floor(e/t)))}var fXe=["wipe"],hXe="wipe";function awe(e){return twe(fXe,hXe,e)}var iwe=350,y9=8;var mN=jn.Hero,swe={label:"Hero",drawsPictures:!0,fields:mN,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};var RXe=CXe,OXe={cards:gn(SXe,{}),dots:gn(TXe,{}),numbers:gn(EXe,{}),bar:gn(kXe,{}),squares:gn(PXe,{})},NXe={outline:gn(yXe,{}),solid:gn(RXe,{}),square:gn(vXe,{}),bare:gn(xXe,{})},AXe={manual:gn(gXe,{}),timer:gn(cwe,{}),scroll:gn(pwe,{})},IXe={any:[{field:"slideChange",is:"timer"},{all:[{field:"slideChange",set:!1},{field:"autoplay",is:!0}]}]},FXe={field:"slideChange",is:"scroll"},mwe={fields:{_dDevice:LXe(),_gContent:ff("Content"),slides:mN.slides,strip:mN.strip,_gStyle:ff("Style"),alignment:pne(),_gTexture:ff("Texture"),showTexture:oe("Show texture",Toe,gn(v9,{})),textureColor:Jue,textureOpacity:ae("Texture opacity",gn(bXe,{}),0,100,1,40,"%"),textureShape:ne("Texture style",gn(_Xe,{}),Poe,Eoe),_gLayout:ff("Layout"),...q5(),...tfe,_gAutoplay:ff("Auto-slide"),slideChange:gne("Change slides",gn(wXe,{}),g9.map(e=>({label:owe[e],value:e,picture:AXe[e]})),"manual"),autoplayInterval:at(ae("Still time per slide",gn(cwe,{}),2,15,1,6,"s"),IXe),scrollPerSlide:at(ae("Scroll per slide",gn(pwe,{}),w9,x9,1,b9,{kind:"height",base:"%"}),FXe),_gPicker:ff("Slide picker"),showPicker:oe("Show slide picker",T0e,gn(v9,{})),pickerShape:lo("Slide picker shape",gn(dwe,{}),ZM.map(e=>({label:YO[e],value:e,picture:OXe[e]})),VO),pickerPlacement:ad("Slide picker placement",{fallback:XM}),_gArrows:ff("Arrows"),showArrows:oe("Show arrows",qbe,gn(v9,{})),arrowsShape:lo("Arrows shape",gn(dwe,{}),f9.map(e=>({label:jbe[e],value:e,picture:NXe[e]})),h9),arrowsPlacement:ad("Arrows placement",{fallback:u9}),_gPhone:k9("mobile",ff("On a phone")),phoneUpDown:k9("mobile",_e(woe,gn(lwe,{}),koe(),goe)),phoneSideways:k9("mobile",_e(xoe,gn(lwe,{}),Soe(),boe)),phoneWordsTop:qu.phoneWordsTop,phoneWordsBottom:qu.phoneWordsBottom,phoneBoxGap:qu.phoneBoxGap},resolveFields:(e,{fields:t})=>{let o=e.props??{},n=pN(o),r=t.slideChange;return!r||r.currentValue===n?t:{...t,slideChange:{...r,currentValue:n}}}};import{jsx as fwe}from"react/jsx-runtime";import{WidthIcon as hwe}from"efficient-easel/icons";import{BOX_NUDGE_ROW as gwe,BOX_WIDTH_ROW as T9,group as E9}from"efficient-easel/screen/lib/document/box-fields";var S9={...jn.HeroGroup,content:{...jn.HeroGroup.content,allow:_q}},uwe={label:Pq,inline:!0,fields:S9,defaultProps:{placement:LZ,nudgeX:0,nudgeY:0,content:[]}};var bwe={fields:Le({_gContent:E9("Content"),name:Qo(Ub(Pr(Q("Box name",W.boxName)))),content:S9.content,_gLayout:E9("Layout"),placement:ad("Placement",{pointsFor:Sre}),width:ae("Width",fwe(hwe,{}),qF,XF,5,AZ,T9),...id(T9,"width"),direction:CC("HeroGroup"),...di("HeroGroup"),justify:sC(),align:lC(),wrap:Bh(),_gNudge:E9("Nudge"),...mne({keys:{x:"nudgeX",y:"nudgeY"},min:-jF,max:jF,label:null,length:gwe}),...id(gwe,"nudgeX"),...Hp({tablet:!0,siteSide:!0})},[[["placement"],{context:"heroGroupDepth",is:0,default:0}]]),resolveFields:(e,{fields:t,appState:o})=>{let n=typeof e.props.id=="string"?e.props.id:"";if(FP(o?.data,n)===0)return t;let r={...t};return r.width=ae("Width",fwe(hwe,{}),qF,XF,5,IZ,T9),r}};import{jsx as xwe}from"react/jsx-runtime";import{MediaIcon as HXe,OpacityIcon as DXe}from"efficient-easel/icons";import{group as Tk}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as MXe,deviceNote as zXe}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as BXe}from"efficient-shell/format";var P9=jn.HeroSingle,wwe={label:"Hero Single",drawsPictures:!0,fields:P9,defaultProps:{mediaType:Ba.HeroSingle,[Fa.image]:BXe,tintColor:us,tintOpacity:0,overlay:100,overlayColor:us,overlayPosition:Ah}};var ywe=Ob("video",Ba.HeroSingle),WXe=Ob("image",Ba.HeroSingle),vwe=[...J5,"tintColor","tintOpacity"],kwe={fields:z_({_dDevice:zXe(),boxNotice:tO("HeroSingle"),boxes:P9.boxes,_gStyle:Tk("Style"),overlay:ae("Overlay",xwe(DXe,{}),0,100,5,100,"%"),overlayColor:fD.overlayColor,overlayPosition:fD.overlayPosition,_gLayout:Tk("Layout"),...q5({tabletNumber:!1}),_gPhone:MXe("mobile",Tk("On a phone")),phoneWordsTop:qu.phoneWordsTop,phoneWordsBottom:qu.phoneWordsBottom,phoneBoxGap:qu.phoneBoxGap,_gMedia:Tk("Media"),mediaType:_e("Type",xwe(HXe,{}),AC,Ba.HeroSingle),mediaLayout:gg.mediaLayout,mediaLayoutPhone:gg.mediaLayoutPhone,...X5,videoSource:ju.videoSource,mediaVideo:Qe(S2,"video/*",T2),youtubeUrl:ju.youtubeUrl,videoPlayback:ju.videoPlayback,poster:Qe("Video poster","image/*","Upload a poster still"),_gTint:Tk("Image tint"),tintColor:G1(),tintOpacity:U1(),...$1},{parts:{media:["mediaType",...Z5,"videoSource","mediaVideo","youtubeUrl","videoPlayback","poster"],image:vwe,image2:nx},onlyFor:{image:[...vwe,"_gTint",...nx],video:["videoSource","videoPlayback","poster"]},rules:{mediaVideo:{all:[ywe,{field:"videoSource",is:"upload",default:rl}]},youtubeUrl:{all:[ywe,{field:"videoSource",is:"youtube",default:rl}]},...Q5(WXe)},fallback:Ba.HeroSingle})};import{jsx as Ek}from"react/jsx-runtime";import{BlockVideoIcon as GXe,ClockIcon as $Xe,ImageIcon as KXe,MediaIcon as VXe,PlayIcon as YXe}from"efficient-easel/icons";import{group as uN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Rx}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as UXe}from"efficient-shell/format";var _9=jn.HeroSlide,Swe={label:"Hero Slide",fields:_9,defaultProps:{mediaType:Ba.HeroSlide,videoSpeed:100,[Fa.image]:UXe,tintColor:us,overlay:0}};var hf=Ob("video",Ba.HeroSlide),jXe=Ob("image",Ba.HeroSlide),Twe=[...J5,"tintColor","overlay"],Ewe={fields:z_({_gContent:uN("Content"),name:Qo(Ub(Q("Slide name",W.slideName))),process:Qo(U("Reel label","Label")),groupNotice:tO("HeroSlide"),groups:_9.groups,_gMedia:uN("Media"),mediaType:_e("Type",Ek(VXe,{}),AC,Ba.HeroSlide),mediaLayout:gg.mediaLayout,mediaLayoutPhone:gg.mediaLayoutPhone,videoSource:ju.videoSource,mediaVideo:Rx("desktop",Qe(S2,"video/*",T2,{frame:"videoFrame"})),mediaVideoPhone:Rx("mobile",Qe(S2,"video/*",T2,{frame:"videoFramePhone"})),videoFramePhone:Mp(),mediaVideoAv1:Rx("desktop",Qe(_6,"video/mp4",C6)),mediaVideoAv1Phone:Rx("mobile",Qe(_6,"video/mp4",C6)),youtubeUrl:ju.youtubeUrl,videoPlayback:ju.videoPlayback,videoSpeed:ae("Playback speed",Ek(YXe,{}),25,100,5,100,"%"),loadingShows:zre("Show while loading",Ek($Xe,{}),{frame:Ek(GXe,{}),image:Ek(KXe,{})}),videoFrame:Mp(),...X5,poster:Rx("desktop",Qe("Image","image/*","Choose an image")),posterPhone:Rx("mobile",Qe("Image","image/*","Choose an image")),_gTint:uN("Image tint"),tintColor:G1(),overlay:U1(),...$1,_gOverlay:uN("Overlay"),overlayColor:hD.overlayColor,overlayPosition:hD.overlayPosition},{parts:{media:["mediaType",...Z5,"videoSource","mediaVideo","mediaVideoPhone","videoFramePhone","mediaVideoAv1","mediaVideoAv1Phone","youtubeUrl","videoPlayback","videoSpeed","loadingShows","videoFrame","poster","posterPhone"],image:Twe,image2:nx},onlyFor:{image:[...Twe,"_gTint",...nx],video:["videoSource","videoPlayback","loadingShows","videoFrame"]},fallback:Ba.HeroSlide,rules:{mediaVideo:{all:[hf,{field:"videoSource",is:"upload",default:rl}]},mediaVideoPhone:{all:[hf,{field:"videoSource",is:"upload",default:rl}]},mediaVideoAv1:{all:[hf,{field:"videoSource",is:"upload",default:rl}]},mediaVideoAv1Phone:{all:[hf,{field:"videoSource",is:"upload",default:rl}]},youtubeUrl:{all:[hf,{field:"videoSource",is:"youtube",default:rl}]},videoSpeed:{all:[hf,{field:"videoSource",is:"upload",default:rl},{field:"videoPlayback",is:"background",default:U_}]},...Q5(jXe),poster:{all:[hf,O6]},posterPhone:{all:[hf,O6]}}})};import{jsx as C9}from"react/jsx-runtime";import{phoneKey as qXe}from"efficient-easel/draw";import{CropIcon as Pwe,ImageIcon as XXe}from"efficient-easel/icons";import{group as R9,phoneTwinFields as ZXe}from"efficient-easel/screen/lib/document/box-fields";var _we={fields:{_gImage:R9("Image"),src:Qe("Image","image/*",void 0,{focus:"focal",focusWhen:(e,t)=>d2(t,e.fit,e.aspect,e[qXe("aspect")])}),alt:Qo(Q("Alt text")),rowField:jr("Shows","image"),[Vo]:Dc(),...ZXe("aspect",ox("Aspect ratio",C9(Pwe,{}),db(Pg),"image","16/9",{more:[Wue(bJ)]}),void 0,{phoneRow:ox("Aspect ratio",C9(Pwe,{}),db(Pg),"image","16/9",{phoneRest:EJ})}),fit:ne($P,C9(XXe,{}),fJ(),"cover"),focal:Mp(),focalTablet:Mp(),focalPhone:Mp(),href:pf(Ve("Link")),_gStyle:R9("Style"),grayscale:rx(),...Px(),_gShape:R9("Shape"),corners:Kre(),..._re(yne,"corners"),cornerSides:Cre()},resolveFields:(e,t)=>jre(Ya(t.fields,e,t),e,t),showWhenFacts:Va};import{jsx as JXe}from"react/jsx-runtime";import{group as Cwe}from"efficient-easel/screen/lib/document/box-fields";var Rwe={fields:{_gContent:Cwe("Content"),eyebrow:U("Chip label","Integrations"),title:q("Heading",`Plays well with
|
|
14
14
|
*your favourite apps.*`),body:q("Body",""),apps:Gr("App chips",JXe(ua,{noun:"tag"}),"App name","verbatim"),_gStat:Cwe("Stat & note"),statValue:U("Big stat","100s"),statLabel:U("Stat label",""),note:U("Footnote","")}};import{jsx as Pk}from"react/jsx-runtime";import{keptByRow as QXe}from"efficient-easel/screen/lib/document/style-fields";import{CaseIcon as eZe,OpacityIcon as tZe,PlacementIcon as oZe,TextLinesIcon as Owe}from"efficient-easel/icons";import{group as Ox}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Wc,deviceNote as nZe}from"efficient-easel/screen/lib/document/device-fields";var Nwe={fields:{_dDevice:nZe(),_gContent:Ox("Content"),eyebrow:U("Eyebrow",Ap.eyebrow),title:q("Heading",Ap.title),body:q("Subtitle",Ap.body),uppercase:oe("Uppercase heading",!1,Pk(eZe,{})),_gBackground:Ox("Background images"),imageSrc:Wc("desktop",Qe("Background image","image/*")),imageSrcMobile:Wc("mobile",Qe("Background image","image/*")),_gLayout:Ox("Layout"),layout:lo("Text position",Pk(oZe,{}),Qee.map(e=>({...e,picture:bre[e.value]})),Jee,{columns:2,cell:PC}),heightDesktop:gD("desktop"),heightMobile:gD("mobile"),copyShareDesktop:Wc("desktop",ae("Text height",Pk(Owe,{}),nl.min,nl.max,nl.step,nl.desktop,"%")),copyShareMobile:Wc("mobile",ae("Text height",Pk(Owe,{}),nl.min,nl.max,nl.step,nl.mobile,"%")),sticky:QXe("stickTop"),overlay:ae("Overlay",Pk(tZe,{}),0,100,5,60,"%"),_gTextDesktop:Wc("desktop",Ox("Text style")),titleSizeDesktop:Wc("desktop",z2("Heading font size",32,120,1,96,"heading",{row:R_,view:"desktop"})),bodySizeDesktop:Wc("desktop",z2("Subtitle font size",12,28,1,17,"body",{row:O_,view:"desktop"})),_gTextMobile:Wc("mobile",Ox("Text style")),titleSizeMobile:Wc("mobile",z2("Heading font size",24,72,1,44,"heading",{row:R_,view:"phone"})),bodySizeMobile:Wc("mobile",z2("Subtitle font size",12,22,1,16,"body",{row:O_,view:"phone"})),...id(R_,"titleSizeDesktop",{phone:!0}),...id(O_,"bodySizeDesktop",{phone:!0}),_gButton:Ox("Button"),...xl,buttonColor:fs("Button color","#C9A461"),buttonTextColor:fs("Button text color","#000000")}};import{jsx as Lwe}from"react/jsx-runtime";import{ColumnsIcon as rZe,StylesIcon as aZe}from"efficient-easel/icons";import{group as Awe}from"efficient-easel/screen/lib/document/box-fields";var Iwe={fields:{_gContent:Awe("Content"),eyebrow:U("Eyebrow",bb.eyebrow),eyebrowLook:ne("Eyebrow style",Lwe(aZe,{}),[...Js],Np("KeyFeatures")),title:q("Heading",bb.title),items:{type:"array",label:"Features",arrayFields:{label:ye("Feature label"),href:Pr(Q("Link"))},defaultItemProps:{label:"",href:""},getItemSummary:e=>e?.label||"Feature"},_gStyle:Awe("Style"),columns:ae("Columns",Lwe(rZe,{}),2,4,1,3)}};import{jsx as iZe}from"react/jsx-runtime";import{readHidable as sZe}from"efficient-easel/draw";import{ThemeIcon as lZe}from"efficient-easel/icons";import{group as Fwe}from"efficient-easel/screen/lib/document/box-fields";var fN=e=>sZe(e).text;function dZe(e){return[fN(e.address).replace(/\s*\n+\s*/g,", "),fN(e.name),fN(e.state),fN(e.country)].map(t=>t.trim()).filter(Boolean).join(", ")}var Bwe={fields:{_gMap:Fwe("Map"),name:Q("Location name"),state:Q("State / Province"),country:Q("Country"),address:q("Address"),geocode:Uo(IC,{label:"Coordinates"}),mapsUrl:Q("Directions link"),_gStyle:Fwe("Style"),mapTheme:_e("Map theme",iZe(lZe,{}),[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],"auto")},resolveData:async e=>{let t=e.props,o={...t,lat:Number(t.lat)||0,lng:Number(t.lng)||0};if(!pC([o]))return e;let[n]=await mC([o],dZe);return{...e,props:{...e.props,lat:n.lat,lng:n.lng,geocode:n.geocode}}}};import{jsx as pZe}from"react/jsx-runtime";import{HeightIcon as mZe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as uZe,group as fZe}from"efficient-easel/screen/lib/document/box-fields";var Hwe="auto";var hN="custom",O9="#000000";function gN(e,t){return e===hN?{reverse:!1,color:(typeof t=="string"?t.trim():"")||O9}:{reverse:e!=="off",color:null}}var bN={reverse:{type:"select",label:"Logo color",options:[{label:"Auto contrast",value:Hwe},{label:"As uploaded",value:"off"},{label:"Custom color",value:hN}]},customColor:at(fs("Color",O9),{field:"reverse",is:hN})};var Dwe={fields:Le({src:Qe("Logo image","image/*"),alt:Qo(Q("Alt text","Brand name","Read out in place of the picture, and shown if it can\u2019t load.")),href:pf(Ve("Link")),heightPx:ae("Height",pZe(mZe,{}),pee,mee,1,iu,"px"),...il("align",{access:uZe}),...bN,_gText:fZe("Text"),rowField:jr("Shows","text"),[Vo]:Dc()},[[["alt"],{field:"src",set:!0}]]),resolveFields:(e,t)=>Ya(t.fields,e,t),showWhenFacts:Va};import{jsx as Ck}from"react/jsx-runtime";import{BlackAndWhiteIcon as gZe,ColumnsIcon as bZe,HeightIcon as wZe,PaddingYIcon as xZe,StylesIcon as yZe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as vZe,group as zwe}from"efficient-easel/screen/lib/document/box-fields";import{parseOption as hZe}from"efficient-shell/format";var _k="plain",N9=[{label:"Plain",value:"plain"},{label:"Cards",value:"cards"},{label:"Marks",value:"marks"},{label:"Chips",value:"chips"}],Mwe=e=>hZe(N9,_k,e);var kZe=["items","heading","bandPadding"],SZe=["look"],TZe={field:"bandPadding",set:!0},EZe={field:Xv,set:!0},Wwe={not:{field:"look",is:"chips"}},PZe=Le({_gContent:zwe("Content"),dataSource:oo("Logo content","Manual"),heading:q("Heading",f_.heading),items:{type:"array",label:"Logos",arrayFields:{src:Qe("Image","image/*"),alt:Qo(Q("Name / alt"))},getItemSummary:e=>e.alt||e.src||"logo"},logos:at(c6.logos,cl),template:at(c6.template,EZe),_gStyle:zwe("Style"),columns:ae("Columns",Ck(bZe,{}),3,6,1,5),logoHeight:at(ae("Logo height",Ck(wZe,{}),16,72,2,28,"px"),Wwe),bandPadding:at(ae("Space above and below",Ck(xZe,{}),16,120,4,40,"px"),TZe),grayscale:at(oe("Black and white logos",!0,Ck(gZe,{})),Wwe),look:lo("Logo style",Ck(yZe,{}),N9.map(e=>({...e,picture:gre[e.value]})),_k,{columns:2,cell:Er}),...il("align",{access:vZe})},[[kZe,Ia],[SZe,_X]]),Uwe={fields:PZe,resolveFields:(e,{fields:t})=>no("Logos",t,e.props,{hides:["logos"]}),resolveData:(e,t)=>{if(!t?.changed?.[Xv])return e;let o=PX(e.props);return o===e.props?e:{...e,props:o}}};import{group as Rk}from"efficient-easel/screen/lib/document/box-fields";var Ro={headNum:W.sectionNumber,headTitle:W.headingAccent,headDesc:W.body,category:W.category,metaMiddle:"Section",readLabel:"0 min read",title:"Article *headline* goes here.",dek:"A short summary of the article goes here.",quote:"A short pull quote.",quoteAttribution:"\u2014 "+W.date,ctaText:"Begin reading",ctaHref:ac.href,imageLabel:"Featured *image*",metaPublished:W.date,metaReads:"0 min"},Gwe={label:"Long read",drawsPictures:!0,defaultProps:{source:null,headNum:"",headTitle:"",headDesc:"",category:"",metaMiddle:"",readLabel:"",title:"",dek:"",quote:"",quoteAttribution:"",ctaText:"",ctaHref:"",image:"",imageLabel:"",metaPublished:"",metaReads:""}};var _Ze=["image","title","dek","ctaHref","metaPublished"],$we={fields:_i({source:Uo(Ex),_nBound:at(dl(RC),OC),_gHead:Rk("Section header"),headNum:U("Number",Ro.headNum),headTitle:q("Heading",Ro.headTitle),headDesc:q("Body",Ro.headDesc),_gMeta:Rk("Article"),category:U("Category",Ro.category),metaMiddle:U("Middle meta",Ro.metaMiddle),readLabel:U("Read time",Ro.readLabel),title:q("Article title",Ro.title),dek:q("Dek",Ro.dek),_gQuote:Rk("Pull quote"),quote:q("Quote",Ro.quote),quoteAttribution:U("Attribution",Ro.quoteAttribution),_gLink:Rk("Link"),ctaText:U("Button",Ro.ctaText),ctaHref:Ve("Link"),image:Qe("Image","image/*"),imageLabel:U("Image label",Ro.imageLabel),_gOverlay:Rk("Image caption"),metaPublished:U("Published",Ro.metaPublished),metaReads:U("Reads in",Ro.metaReads)},_Ze,Gb),resolveFields:(e,{fields:t})=>it(t,e.props.headPlacement,st.LongRead.headRows)};import{group as L9}from"efficient-easel/screen/lib/document/box-fields";var Kwe={fields:{_gContent:L9("Content"),eyebrow:U("Eyebrow",W.eyebrow),heading:q("Heading",`Main heading
|
|
15
15
|
*Highlight line*`),body:q("Body",W.body),stats:{type:"array",label:"Stats",arrayFields:{value:Q("Number"),label:Q("Label")},getItemSummary:e=>e.label||e.value||"Stat"},_gMedia:L9("Media"),imageSrc:Qe("Image","image/*"),_gStyle:L9("Style"),grayscale:rx()}};import{jsx as CZe}from"react/jsx-runtime";import{TextLinesIcon as RZe}from"efficient-easel/icons";import{group as A9}from"efficient-easel/screen/lib/document/box-fields";var Uc={eyebrow:W.eyebrow,lead:"A short lead paragraph introducing this section \u2014 a sentence or two about its theme.",issueHeading:"In this issue",issueTotal:"\u2014 Articles in total"},Vwe={label:"Issue Header",defaultProps:{eyebrow:"",issueMeta:[],lead:"",issueHeading:"",issueList:[],issueTotal:""}};var Ywe={fields:{_gTop:A9("Top row"),eyebrow:U("Eyebrow",Uc.eyebrow),issueMeta:{type:"array",label:"Issue meta lines",arrayFields:{lead:ye("Bold word"),rest:ye("Rest")},getItemSummary:e=>[e?.lead,e?.rest].filter(Boolean).join(" ")||"Line"},_gLead:A9("Lead"),lead:q("Lead",Uc.lead),_gIssue:A9("In this issue"),issueHeading:q("Panel heading",Uc.issueHeading),issueList:Gr("Issue lines",CZe(RZe,{}),"Line","markup"),issueTotal:U("Total line",Uc.issueTotal)}};import{jsx as gf}from"react/jsx-runtime";import{BlockColumnIcon as wN,PlacementIcon as LZe,StateIcon as AZe,TemplateIcon as IZe,TextLinesIcon as FZe}from"efficient-easel/icons";import{group as Fg}from"efficient-easel/screen/lib/document/box-fields";import{parseOption as fQt}from"efficient-shell/format";var I9=[{label:"Product record",hint:"Product record (spec tiles)",value:"spec-card"},{label:"Selector guide",hint:"Selector guide (pills + results)",value:"fitment"},{label:"Portal card",hint:"Portal card (stock + button + orders)",value:"portal"},{label:"Kanban board",hint:"Kanban board (job columns)",value:"kanban"},{label:"Claims panel",hint:"Claims panel (rows + defect bars)",value:"claims"},{label:"Browser shop",hint:"Browser storefront (hero + tiles)",value:"browser"},{label:"Terminal",hint:"Terminal (CLI session)",value:"terminal"}],OZe=I9.map(e=>e.value),F9="spec-card",NZe={badge:["spec-card","fitment","portal","kanban","claims","browser"],cardTitle:["spec-card","fitment","portal","kanban","claims"],cardSubtitle:["spec-card","fitment","portal","kanban","claims"],rows:["spec-card","fitment","portal","kanban","claims"],button:["spec-card","fitment","portal","kanban","claims"],footnote:["spec-card","fitment","portal","kanban","claims"],pills:["fitment"],tiles:["spec-card","portal","kanban","claims"],_gKanban:["kanban"],col1Title:["kanban"],col1Cards:["kanban"],col2Title:["kanban"],col2Cards:["kanban"],col3Title:["kanban"],col3Cards:["kanban"],col4Title:["kanban"],col4Cards:["kanban"],_gClaims:["claims"],barsHeading:["claims"],bars:["claims"],_gTerminal:["terminal"],termLines:["terminal"],_gBrowser:["browser"],urlText:["browser"],heroTitle:["browser"],heroButton:["browser"],products:["browser"]};function jwe(e){return Le(e,Object.entries(NZe).map(([t,o])=>[[t],qn("variant",OZe,F9,o)]))}var BZe=[...ote,"align"],qwe={fields:_i(jwe({_gContent:Fg("Content"),eyebrow:U("Chip label","In the product"),title:q("Heading",`Seen from
|
|
16
16
|
*the counter.*`),body:q("Body",""),_gCard:Fg("Mockup card"),variant:lo("Card type",gf(IZe,{}),I9.map(e=>({...e,picture:xre[e.value]})),F9,{columns:3,cell:Er}),cardHeader:U("Card header strip","Product record"),badge:U("Header badge","LIVE"),cardTitle:U("Card title",""),cardSubtitle:U("Card subtitle",""),pills:{type:"array",label:"Selector pills",arrayFields:{label:Q("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" ")||"Pill"},tiles:{type:"array",label:"Spec tiles",arrayFields:{label:Q("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" ")||"Tile"},rows:{type:"array",label:"Result / order rows",arrayFields:{lead:Q("Lead"),detail:Q("Detail"),state:ne("State",gf(AZe,{}),[{label:"Match / done (green)",value:"ok"},{label:"In progress (main)",value:"warn"},{label:"No match (gray \u2715)",value:"no"}],"ok"),status:Q("Status chip")},defaultItemProps:{lead:"",detail:"",state:"ok",status:""},getItemSummary:e=>[e?.lead,e?.detail].filter(Boolean).join(" \xB7 ")||"Row"},button:U("Button",""),footnote:U("Footnote",""),_gKanban:Fg("Kanban columns"),col1Title:U("Column 1 title",""),col1Cards:Gr("Column 1 cards",gf(wN,{}),"Job card label","verbatim"),col2Title:U("Column 2 title",""),col2Cards:Gr("Column 2 cards",gf(wN,{}),"Job card label","verbatim"),col3Title:U("Column 3 title",""),col3Cards:Gr("Column 3 cards",gf(wN,{}),"Job card label","verbatim"),col4Title:U("Column 4 title",""),col4Cards:Gr("Column 4 cards",gf(wN,{}),"Job card label","verbatim"),_gClaims:Fg("Claims bars"),barsHeading:U("Bars heading","Defect rate by product"),bars:{type:"array",label:"Bars",arrayFields:{label:Q("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Bar"},_gTerminal:Fg("Terminal"),termLines:Gr("Terminal lines",gf(FZe,{}),"$ efficient \u2026","verbatim"),_gBrowser:Fg("Browser mock"),urlText:U("URL pill",""),heroTitle:U("Hero line",""),heroButton:U("Hero button",""),products:{type:"array",label:"Product tiles",arrayFields:{name:Q("Name"),price:Q("Price")},defaultItemProps:{name:"",price:""},getItemSummary:e=>[e?.name,e?.price].filter(Boolean).join(" \xB7 ")||"Tile"},_gStyle:Fg("Style"),align:ne("Mockup position",gf(LZe,{}),[{label:"Right of the copy",value:"right"},{label:"Left of the copy",value:"left"}],"right")}),BZe,Ia)};import{group as xN}from"efficient-easel/screen/lib/document/box-fields";var Bg={title:"Order summary",note:"A short reassurance note under the total."},B9=jn.OrderSummary,Xwe={label:"Order Table",fields:B9,defaultProps:{eyebrow:"",title:"",rows:[],subRows:[],totalLabel:"",totalAmount:"",note:"",contained:!0}};var Zwe={fields:{_gContent:xN("Content"),eyebrow:U("Eyebrow",W.eyebrow),title:q("Heading",Bg.title),_gItems:xN("Items"),dataSource:oo("Order content","Manual"),rows:{type:"array",label:"Items",arrayFields:{label:ye("Item"),meta:ye("Meta line"),amount:ye("Amount")},getItemSummary:e=>e.label||"Item"},...B9,subRows:{type:"array",label:"Sub-total lines",arrayFields:{label:ye("Label"),amount:ye("Amount")},getItemSummary:e=>e.label||"Line"},_gTotal:xN("Total"),totalLabel:U("Total label","Total"),totalAmount:U("Total amount","$0,000"),note:q("Note",Bg.note),_gLayout:xN("Layout")},resolveFields:(e,{fields:t})=>no("OrderSummary",t,e.props,{hides:["rows"]})};import{jsx as pxe}from"react/jsx-runtime";import{AccentIcon as JZe,ListIcon as QZe}from"efficient-easel/icons";import{isNodeList as eJe,newId as tJe}from"efficient-easel/data";import{group as sxe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as hi}from"react/jsx-runtime";import{useId as Qwe}from"react";import{useEasel as HZe,useSelectedHost as DZe}from"efficient-easel/easel";import{CloseIcon as MZe,LinkIcon as exe,LockIcon as zZe}from"efficient-easel/icons";import{SettingsField as txe}from"efficient-easel/panel";import{deviceField as WZe,deviceNote as UZe}from"efficient-easel/screen/lib/document/device-fields";import{Input as H9}from"efficient-shell/ui";var D9=(e,t)=>t==="number"?`${mB(e.value)} \xB7 ${u(e.label)}`:`${u(e.label)} \xB7 ${mB(e.value)}`;function GZe(e,t){return[{type:"label",key:"heading",label:u("Live numbers")},...e.map(o=>({key:o.key,label:D9(o,"name"),onSelect:()=>t(o.key)}))]}var oxe=(e,t)=>e.length?{label:u("Connect to a live number"),icon:hi(exe,{size:16}),menu:GZe(e,t)}:void 0,nxe=(e,t,o)=>hi(H9,{id:e,readOnly:!0,value:t,leftIcon:hi(zZe,{size:16}),endAction:{label:u("Unlink"),icon:hi(MZe,{size:16}),onClick:()=>o("")}});function $Ze({id:e,text:t,countKey:o,choices:n,onText:r,onLink:a}){let i=o?n.find(s=>s.key===o):void 0;return hi("div",{className:"sf-copybox",children:o?nxe(e,i?D9(i,"number"):t,a):hi(H9,{id:e,value:t,onChange:s=>r(s.target.value),endAction:oxe(n,a)})})}function KZe({id:e,countKey:t,onLink:o}){let n=Tp(Zv),r=Xb({[Xd]:t}),a=r?n.find(i=>i.key===r):void 0;return hi("div",{className:"sf-copybox",children:r?nxe(e,a?D9(a,"number"):r,o):hi(H9,{id:e,readOnly:!0,value:u("Typed by hand"),endAction:oxe(n,o)})})}var rxe={type:"custom",icon:hi(exe,{}),render:({value:e,onChange:t})=>hi(VZe,{value:e,onChange:t})};function VZe({value:e,onChange:t}){let o=Qwe();return hi(txe,{label:u("Live number"),htmlFor:o,children:hi(KZe,{id:o,countKey:typeof e=="string"?e:"",onLink:t})})}function YZe(){let e=DZe();try{return HZe(t=>vae(t.appState.data.content,e?.id))}catch{return!0}}function jZe({value:e,onChange:t}){let o=Qwe(),[n,r]=mc(Xd),a=YZe();return hi(txe,{label:u("Body"),htmlFor:o,children:hi($Ze,{id:o,text:_C(e).text,countKey:Xb({[Xd]:n}),choices:a?Tp(Zv):XZe,onText:i=>t(aQ("textarea",e,i)),onLink:r})})}var qZe=UZe(),XZe=[],Jwe=new WeakMap;function ZZe(e){let t=Jwe.get(e);if(!t){let o={...e,render:({value:n,onChange:r})=>hi(jZe,{value:n,onChange:r})};t=WZe("desktop",o),Jwe.set(e,t)}return t}function axe(e,t){if(typeof t?.[Xd]!="string"||xC(t)!==null||Xn(t))return e;let o=e.text;return!o||typeof o!="object"?e:{_dDevice:qZe,...e,text:ZZe(o)}}var M9=jn.CardList,ixe={label:"Card list",inline:!0,fields:M9,defaultProps:{rowField:""}};function mxe(e){return eJe(e)?e.some(t=>{let o=t.props??{};return t.type==="Text"&&typeof o[Xd]=="string"&&Xn(o)?!0:Object.values(o).some(mxe)}):!1}var oJe=e=>Object.defineProperty(Object.fromEntries(e.map(t=>[t.key,""])),"key",{get:()=>tJe("row"),enumerable:!0}),lxe=new WeakMap;function nJe(e,t,o){let n=t.filter(s=>!s.everySource),r=lxe.get(e);r||lxe.set(e,r=new Map);let a=JSON.stringify([n,o]),i=r.get(a);if(!i){let s=Object.fromEntries(n.map(d=>[d.key,mk(d)]));o&&(s[Xd]=rxe);let l=n[0]?.key;i={...e,arrayFields:s,defaultItemProps:oJe(n),getItemSummary:d=>l&&typeof d?.[l]=="string"&&d[l]||u("Row")},r.set(a,i)}return i}var uxe="cardListInCardTemplate",yN={not:{context:uxe,is:!0}},rJe={...Va,[uxe]:(e,t)=>{let o=Ep(t.appState,e.props?.id);return o===void 0?void 0:o!==null}},aJe=at({type:"array",label:"Rows",icon:pxe(QZe,{}),arrayFields:{}},{all:[yN,cl]}),iJe=e=>DX(e,"text").find(t=>!t.everySource)?.key??"title",dxe=new WeakMap;function sJe(e,t){let o=dxe.get(e);o||dxe.set(e,o=new WeakMap);let n=o.get(t);return n||o.set(t,n={...e,highlightedCard:t}),n}var lJe=e=>{let t=new Set(kh(null,{type:Mr,props:e}).map(o=>o.key));return o=>t.has(o)},cxe=new WeakMap;function dJe(e,t){let o=cxe.get(e);o||cxe.set(e,o=new WeakMap);let n=o.get(t);return n||o.set(t,n={...e,[Ym]:t}),n}var fxe={fields:{_gSource:sxe("Source"),dataSource:at(oo("Card content","Manual"),yN),[Zb]:Jb(),_gCardList:sxe("Card list"),rowField:jr("Shows","list"),[Ym]:aJe,highlightedCard:at(ne("Highlighted card",pxe(JZe,{}),[{label:"None",value:""}],""),yN),highlightBadge:at(U("Highlight badge","Most popular"),yN),...M9},resolveData:(e,t)=>{let o=e.props,n=t?.lastData?.props,r=WO(die(o,n),Ym),a=aP(r,lJe(r));return a===o?e:{...e,props:a}},resolveFields:(e,t)=>{let o=e.props??{},n=no(Mr,Ya(t.fields,e,t),o),r=!!Ep(t.appState,o.id),a=n[Ym];if(r||!a)return n;let i=kh(t.appState,{type:Mr,props:o}),s=dJe(n,nJe(a,i,mxe(o.template))),l=n.highlightedCard;return l?sJe(s,zO(l,MO(o,{rows:Ym,label:iJe(i)}))):s},showWhenFacts:rJe};function cJe(e){let t=typeof e?.label=="string"?e.label.trim():"",o=typeof e?.name=="string"?e.name.trim():"";return t||o}var hxe={fields:{},resolveFields:e=>({_nHostPart:dl("The section draws {what} here, in every card.",{what:cJe(e.props)})})};import{group as gxe}from"efficient-easel/screen/lib/document/box-fields";var bxe={fields:{_gContent:gxe("Content"),eyebrow:U("Eyebrow",sc.eyebrow),lead:q("Lead",W.body),stats:{type:"array",label:"Stats",arrayFields:{value:ye("Number"),label:ye("Unit")},getItemSummary:e=>e.label||e.value||"Stat"},_gFounders:gxe("Founders"),foundersHeading:q("Founders heading",sc.foundersHeading),foundersBody:q("Founders statement",sc.foundersBody),attribution:U("Attribution",sc.attribution)}};import{group as wxe}from"efficient-easel/screen/lib/document/box-fields";var xxe={fields:{_gContent:wxe("Content"),heading:U("Heading",y2.heading),dataSource:oo("Payment content","Manual"),badges:{type:"array",label:"Payment methods",arrayFields:{label:ye("Name"),src:Qe("Logo","image/*")},getItemSummary:e=>e.label||e.src||"Method"},assurances:{type:"array",label:"Reassurance lines",arrayFields:{text:ye("Line")},getItemSummary:e=>e.text||"Line"},_gLayout:wxe("Layout")},resolveFields:(e,{fields:t})=>no("PaymentBadges",t,e.props,{hides:["badges"]})};import{jsx as z9}from"react/jsx-runtime";import{HeightIcon as pJe,ImageIcon as mJe,LayoutIcon as uJe}from"efficient-easel/icons";import{group as fJe}from"efficient-easel/screen/lib/document/box-fields";var kl={title:"Add a *headline* for this post.",excerpt:"A short summary of the post \u2014 one or two sentences.",category:W.category,date:W.date,readLabel:"0 min read"},yxe={label:"Post Card",drawsPictures:!0,defaultProps:{source:null,image:"",title:"",excerpt:"",href:"",category:"",date:"",readLabel:"",layout:o5,showCover:!0,placement:"bottom-left",darken:55,darkenStyle:c2[0].value,minHeight:fl.fallback}};var vxe={field:"layout",is:"cover"},hJe={not:vxe},gJe=["placement","darken","darkenStyle","minHeight","_gTint"],bJe=["showCover"],wJe=["image","title","excerpt","href"],kxe={fields:Le({source:Uo(Ex),image:Qe("Cover image","image/*"),title:q("Heading",kl.title),excerpt:q("Excerpt",kl.excerpt),href:Ve("Link"),category:U("Category",kl.category),date:U("Date",kl.date),readLabel:U("Read time",kl.readLabel),layout:lo("Card layout",z9(uJe,{}),tpe.map(e=>({...e,picture:fre[e.value]})),o5,{columns:2,cell:PC}),showCover:oe("Show cover image",!0,z9(mJe,{})),placement:ad("Text position"),minHeight:ae("Card height",z9(pJe,{}),fl.min,fl.max,fl.step,fl.fallback,fl.length),_gTint:fJe("Image tint"),...Px()},[[gJe,vxe],[bJe,hJe],[wJe,Gb]])};import{jsx as Ok}from"react/jsx-runtime";import{ColumnWidthsIcon as xJe,ColumnsIcon as yJe,LayoutIcon as vJe,MediaLayoutStackedIcon as kJe,PlacementIcon as SJe}from"efficient-easel/icons";import{deviceField as TJe}from"efficient-easel/screen/lib/document/device-fields";import{group as Txe,section as Exe}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as EJe}from"efficient-easel/screen/lib/document/field-buckets";import{isNodeList as Cxe}from"efficient-easel/data";var Nx={num:W.sectionNumber,title:W.headingAccent,description:W.body,cta:W.viewAll},vN=jn.ProcessSteps,Sxe={label:"Image & Text Columns",drawsPictures:!0,fields:vN,defaultProps:{num:"",title:"",description:"",columns:3,padTop:120,padBottom:120}};var Pxe={field:"arrangement",in:["rows-left","rows-right"]},Rxe="drawsLegacySteps",_xe={not:{context:Rxe,is:!0}},PJe={[Rxe]:e=>{let t=e.props??{};return!dt(t)&&!Cxe(t.boxes)}},_Je=e=>e?.data?.root?.props??null,Oxe={fields:Le({_gSource:Txe("Source"),dataSource:oo("Item content","Manual"),[Zb]:Jb(),_sHeader:Exe("Header"),_gContent:Txe("Content"),num:U("Number",Nx.num),title:U("Heading",Nx.title),description:q("Body",W.body),boxes:vN.boxes,[Nt]:vN[Nt],[EJe.Design]:Exe("Design"),arrangement:lo("Arrangement",Ok(vJe,{}),Z0e.map(e=>({label:e.label,hint:e.hint,value:e.value,picture:yre[e.value]})),"columns",{columns:3,cell:Er}),imageWidth:_e("Image width",Ok(xJe,{}),J0e.map(e=>({label:e.label,value:e.value})),"half"),phoneOrder:TJe("mobile",_e("Order",Ok(kJe,{}),Q0e.map(e=>({label:e.label,value:e.value})),"picture")),columns:ae("Columns",Ok(yJe,{}),2,4,1,3),...$re(),cardText:_e("Text position",Ok(SJe,{}),[{label:"Below picture",value:"below"},{label:"On picture",value:"on-image"}],"below")},[[["cardText"],{not:{field:"boxes",set:!0}}],[["arrangement"],_xe],[["imageWidth","phoneOrder"],{all:[Pxe,_xe]}],[["columns"],{not:Pxe}]]),showWhenFacts:PJe,resolveFields:(e,t)=>no(HF,it(t.fields,e.props.headPlacement,st.ProcessSteps.headRows),e.props,{root:_Je(t.appState)}),resolveData:(e,t)=>{let o=e.props;return t?.changed?.dataSource!==!0||!dt(o)||Cxe(o[Nt])?e:{...e,props:{...o,[Nt]:SX(vX(o,HF))}}}};import{jsx as CJe}from"react/jsx-runtime";import{SquareIcon as RJe}from"efficient-easel/icons";import{group as OJe,section as NJe}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as LJe}from"efficient-easel/screen/lib/document/field-buckets";var Nxe={fields:{_gContent:OJe("Content"),eyebrow:U("Eyebrow",pu.eyebrow),title:q("Heading",pu.title),body:q("Body",pu.body),[LJe.Design]:NJe("Design"),topBorder:oe("Top border",!0,CJe(RJe,{}))},resolveFields:(e,{fields:t})=>it(t,e.props.headPlacement,st.Prose.headRows)};import{jsx as W9}from"react/jsx-runtime";import{HashIcon as AJe,StylesIcon as Lxe}from"efficient-easel/icons";import{group as Axe}from"efficient-easel/screen/lib/document/box-fields";var Ixe={fields:rQ({_gContent:Axe("Content"),headStyle:lo("Style",W9(Lxe,{}),eQ.map(e=>({...e,picture:wre[e.value]})),QJ,{columns:3,cell:Er}),num:U("Number",An.num),eyebrowLook:ne("Eyebrow style",W9(Lxe,{}),[...Js],NQ),numStyle:_e("Number style",W9(AJe,{}),[...fte],ute),title:q("Heading",An.title),description:q("Body",An.description),linkText:U("Button",An.linkText),linkHref:Ve("Link"),_gLogo:Axe("Logo"),logoSrc:Qe("Logo image","image/*"),logoAlt:Qo(Q("Logo alt text","Logo description"))})};import{group as kN}from"efficient-easel/screen/lib/document/box-fields";var Gc={headNum:W.sectionNumber,headTitle:W.headingAccent,headDesc:W.body,viewLabel:"View series \u2192"},Fxe={label:"Recurring Columns",defaultProps:{headNum:"",headTitle:"",headDesc:"",cards:[],viewLabel:"",background:"transparent"}};var Bxe={fields:{_gHead:kN("Section header"),headNum:U("Number",Gc.headNum),headTitle:q("Heading",Gc.headTitle),headDesc:q("Body",Gc.headDesc),_gCards:kN("Cards"),cards:{type:"array",label:"Cards",arrayFields:{num:ye("Number"),since:ye("Right Top Text"),title:je("Title"),desc:je("Body"),entries:ye("Entries count"),entriesLabel:ye("Button Right Text")},getItemSummary:e=>e?.title||(e?.num?`Column ${e.num}`:"Column")},_gViewLabel:kN("Card link"),viewLabel:U("Card button",Gc.viewLabel),_gStyle:kN("Style"),background:pc("Background color",ir.Series,!0)},resolveFields:(e,{fields:t})=>it(t,e.props.headPlacement,st.Series.headRows)};var Hxe={fields:{size:{type:"select",options:[{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"},{label:"X-Large",value:"xl"}]}}};import{jsx as Dxe}from"react/jsx-runtime";import{BackgroundIcon as IJe,ContrastIcon as FJe}from"efficient-easel/icons";import{group as Mxe}from"efficient-easel/screen/lib/document/box-fields";var zxe={fields:{_gContent:Mxe("Content"),cells:{type:"array",label:"Strip items",arrayFields:{text:Q("Label","Label"),tone:_e("Tone",Dxe(FJe,{}),[{label:"Normal",value:"normal"},{label:"Muted",value:"muted"}],"normal")},defaultItemProps:{text:"",tone:"normal"},getItemSummary:e=>e?.text||"Item",min:2,max:8},_gStyle:Mxe("Style"),fill:_e("Strip fill",Dxe(IJe,{}),[{label:"Dark band",value:"dark"},{label:"None",value:"none"}],"dark")}};import{jsx as SN}from"react/jsx-runtime";import{CaseIcon as BJe,OpacityIcon as Wxe,PlacementIcon as HJe}from"efficient-easel/icons";import{group as Lx,section as Uxe}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as DJe}from"efficient-easel/screen/lib/document/box-fields";var Gxe={fields:{_sText:Uxe("Text column"),_gContent:Lx("Content"),eyebrow:U("Eyebrow",Lp.eyebrow),title:q("Heading",Lp.title),body:q("Body",Lp.body),uppercase:oe("Uppercase heading",!1,SN(BJe,{})),...iC("textAlign",{access:DJe}),_gButton:Lx("Button"),...xl,_gTextBg:Lx("Background image"),textBgSrc:Qe("Background image","image/*"),overlay:ae("Overlay",SN(Wxe,{}),0,100,5,60,"%"),_sImage:Uxe("Image column"),_gImage:Lx("Image"),imageSrc:Qe("Image","image/*"),reverse:_e("Image side",SN(HJe,{}),[{label:"Image left",value:!1},{label:"Image right",value:!0}],!1),_gImageBtn:Lx("Overlay button"),imageBtnText:U("Overlay button",C_.text),imageBtnHref:Ve("Overlay button link"),_gStyle:Lx("Style"),grayscale:rx(),imageOverlay:ae("Image overlay",SN(Wxe,{}),0,100,5,40,"%")}};import{jsx as MJe}from"react/jsx-runtime";import{ColumnsIcon as zJe}from"efficient-easel/icons";import{group as $xe}from"efficient-easel/screen/lib/document/box-fields";var Kxe={fields:{_gContent:$xe("Content"),heading:U("Heading","By the *numbers*"),items:{type:"array",label:"Stats",arrayFields:{value:ye("Value"),label:ye("Label")},getItemSummary:e=>e.label||e.value||"stat"},columns:ae("Columns",MJe(zJe,{}),2,4,1,4),_gStyle:$xe("Style"),background:pc("Background color",ir.Stats)}};import{jsx as WJe}from"react/jsx-runtime";import{AccentIcon as UJe}from"efficient-easel/icons";import{group as Yxe}from"efficient-easel/screen/lib/document/box-fields";var bf={eyebrow:W.eyebrow,title:W.headingAccent,desc:W.body},Vxe={label:"Stats with Text",defaultProps:{eyebrow:"",title:"",desc:"",stats:[],background:yQ,padTop:120,padBottom:120}};var jxe={fields:{_gContent:Yxe("Content"),eyebrow:U("Eyebrow",bf.eyebrow),title:q("Heading",bf.title),desc:q("Body",bf.desc),stats:{type:"array",label:"Stats",arrayFields:{value:Q("Number"),prefix:Q("Prefix"),suffix:Q("Unit"),supSuffix:Q("Superscript"),emphasizeAll:oe("Whole number Theme Color",!1,WJe(UJe,{})),label:Q("Label"),sub:je("Body")},defaultItemProps:{value:"",prefix:"",suffix:"",supSuffix:"",emphasizeAll:!1,label:"",sub:""},getItemSummary:e=>e.label||e.value||"Stat"},_gStyle:Yxe("Style"),background:pc("Background color",ir.StatsParagraph,!0)},resolveFields:(e,{fields:t})=>it(t,e.props.headPlacement,st.StatsParagraph.headRows)};import{jsx as Xxe}from"react/jsx-runtime";import{ColumnsIcon as GJe,StylesIcon as $Je}from"efficient-easel/icons";import{group as Zxe}from"efficient-easel/screen/lib/document/box-fields";var Ax={eyebrow:"Feedback",title:"What people *say.*"},qxe={label:"Testimonials",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Jxe={fields:{_gContent:Zxe("Content"),eyebrow:U("Eyebrow",Ax.eyebrow),eyebrowLook:ne("Eyebrow style",Xxe($Je,{}),[...Js],Np("Testimonials")),title:q("Heading",Ax.title),items:{type:"array",label:"Quotes",arrayFields:{quote:je("Quote"),name:Q("Name"),role:Q("Role \xB7 location")},defaultItemProps:{quote:"",name:"",role:""},getItemSummary:e=>e?.name||e?.quote||"Quote"},_gStyle:Zxe("Style"),columns:ae("Columns",Xxe(GJe,{}),1,3,1,3)},resolveFields:(e,{fields:t})=>it(t,e.props.headPlacement,st.Testimonials.headRows)};import{jsx as TN}from"react/jsx-runtime";import{BlockBadgeIcon as KJe,BorderTopIcon as VJe,MediaLayoutInsetIcon as YJe}from"efficient-easel/icons";import{group as jJe}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as qJe}from"efficient-easel/screen/lib/document/style-fields";import{VIEW_KEY_ACCESS as XJe}from"efficient-easel/screen/lib/document/box-fields";function ZJe(e,t){let o=t?.textStyle;if(typeof o!="string"||!o.startsWith("heading-"))return e;let{align:n,alignTablet:r,alignPhone:a,...i}=e;return i}var Qxe={fields:{text:q("Body",W.body),consentWords:BO("text"),[Xd]:qJe("text"),...il("align",{access:XJe}),tone:eO(),_gText:jJe("Text"),rowField:jr("Shows",["text","date"]),[Vo]:Dc(),[AQ]:at(_e("Place",TN(KJe,{}),[{label:"In the card",value:"",picture:TN(YJe,{})},{label:"On the top line",value:"top-line",picture:TN(VJe,{})}],""),{not:{context:d6,is:!0}}),tag:ne("HTML tag",TN(ua,{noun:"heading"}),[{label:"Paragraph",value:"p"},{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"}],"p")},resolveFields:(e,t)=>ZJe(axe(HO(Ya(t.fields,e,t),e.props,"text"),e.props),e.props),showWhenFacts:{...Va,[d6]:(e,t)=>{let o=Ep(t.appState,e.props?.id);return o===void 0?void 0:!wb(o?.type)}}};import{jsx as Nk}from"react/jsx-runtime";import{GapIcon as JJe,LineBetweenIcon as QJe,SquareIcon as eQe,StylesIcon as tQe,TextSizeIcon as oQe}from"efficient-easel/icons";import{group as eye}from"efficient-easel/screen/lib/document/box-fields";var tye={fields:{_gContent:eye("Content"),items:Wb(Gr(iB.label,iB.icon,"item","markup"),EP),_gStyle:eye("Style"),tone:_e("Style",Nk(tQe,{}),[{label:"Solid",value:"scrim"},{label:"Plain",value:"plain"}],"scrim"),borders:oe("Hairline borders",!0,Nk(eQe,{})),size:_e("Text size",Nk(oQe,{}),[...Yq],QE),separator:ZO(Nk(QJe,{}),eP),join:ne("Join",Nk(JJe,{}),b_,g_)}};import{jsx as oye}from"react/jsx-runtime";import{ClockIcon as nQe,EyeIcon as rQe}from"efficient-easel/icons";import{group as nye,section as EN}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as rye}from"efficient-easel/screen/lib/document/field-buckets";var aye={field:"layout",is:"track"},aQe={not:aye},iye={fields:Le({[rye.Layout]:EN("Layout"),layout:lo("Display",oye(rQe,{}),[{label:"Split",hint:"Split (editorial aside)",value:"split",picture:M2.split},{label:"Spine",hint:"Spine (single rail)",value:"spine",picture:M2.spine},{label:"Alternating",hint:"Alternating (zig-zag)",value:"alternating",picture:M2.alternating},{label:"Track",hint:"Track (year rail)",value:"track",picture:M2.track}],"split",{columns:2,cell:Er}),[rye.Design]:EN("Design"),background:pc("Background color",ir.TimelineTrack),_sHeader:EN("Header"),_gContent:nye("Content"),eyebrow:U("Eyebrow",el.eyebrow),title:q("Heading",el.title),intro:q("Intro",el.intro),imageSrc:Qe("Image","image/*"),imageCaption:U("Image caption",el.imageCaption),imageMeta:U("Image meta",el.imageMeta),_gButton:nye("Button"),...xl,_sEntries:EN("Timeline entries"),entries:{type:"array",label:"Entries",arrayFields:{date:ye("Sub-title"),title:je("Title"),body:je("Body")},defaultItemProps:{date:"",title:"",body:""},getItemSummary:e=>e?.date||e?.title||"Entry"}},[[["imageSrc","imageCaption","imageMeta"],aQe],[["background"],aye]]),resolveFields:(e,{fields:t})=>{if(e.props.layout!=="track")return t;let o=t.entries;return{...t,entries:{...o,arrayFields:{...o?.arrayFields,future:oe("Upcoming",!1,oye(nQe,{}))}}}}};import{jsx as iQe}from"react/jsx-runtime";import{ClockIcon as sQe}from"efficient-easel/icons";import{section as Lk}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as sye}from"efficient-easel/screen/lib/document/field-buckets";var lye={fields:{_sHeader:Lk("Header"),eyebrow:U("Eyebrow",tl.eyebrow),title:q("Heading",tl.title),intro:q("Body",tl.intro),_sEntries:Lk("Milestones"),entries:{type:"array",label:"Milestones",arrayFields:{date:Q("Year"),title:je("Title"),blurb:je("Body"),future:oe("Upcoming",!1,iQe(sQe,{}))},defaultItemProps:{date:"",title:"",blurb:"",future:!1},getItemSummary:e=>e?.date||e?.title||"Milestone"},_sButton:Lk("Button"),...xl,[sye.Design]:Lk("Design"),background:pc("Background color",ir.TimelineTrack),[sye.Layout]:Lk("Layout")},resolveFields:(e,{fields:t})=>it(t,e.props.headPlacement,st.TimelineTrack.headRows)};import{jsx as lQe}from"react/jsx-runtime";import{StylesIcon as dQe}from"efficient-easel/icons";import{group as dye}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as cQe}from"efficient-easel/screen/lib/document/box-fields";var cye={fields:{_gContent:dye("Content"),title:q("Heading",L_.title),buttons:{type:"array",label:"Buttons",arrayFields:{label:Q("Button"),href:Pr(Q("Button link")),variant:ne("Style",lQe(dQe,{}),[{label:"Filled",value:"primary"},{label:"Outline",value:"outline"}],"outline")},defaultItemProps:{label:"",href:"#",variant:"outline"},getItemSummary:e=>e?.label||"Button"},_gStyle:dye("Style"),...il("buttonsAlign",{fallback:"right",access:cQe})},resolveFields:(e,{fields:t})=>{let o=_C(e.props.title);if(!(!o.hidden&&o.text.trim()))return t;let{buttonsAlign:n,buttonsAlignPhone:r,...a}=t;return a}};import{jsx as mQe}from"react/jsx-runtime";import{jsx as $c,jsxs as U9}from"react/jsx-runtime";var G9={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]"};function pye({eyebrow:e,title:t,body:o,ctaText:n,ctaHref:r,imageSrc:a,contained:i,overlay:s=60,pad:l}){let d=Math.min(Math.max(s,0),100)/100;return $c(It,{contained:i,...Te("py-6",l),children:U9("div",{className:"sf-card relative overflow-hidden border border-line bg-surface px-10 py-16 max-view-wide:px-6 max-view-wide:py-10",children:[a&&U9("div",{className:"absolute inset-0","aria-hidden":!0,children:[$c(mb,{children:$c(pQe,{src:Ni(a)})}),$c("div",{className:"absolute inset-0",style:{background:pa(d)}})]}),U9("div",{className:"relative z-[1] flex max-w-[680px] flex-col gap-5",style:a?js:void 0,children:[e&&$c(lt,{text:e}),t&&$c("h2",{className:`font-heading2 ${G9.headingMedium} font-medium leading-[1.05] tracking-[-0.03em] ${G9.headingMediumUpTo800}`,children:te(t,!1)}),o&&Bt(o).map((c,p)=>$c("p",{className:`${G9.body} leading-[1.6] opacity-85`,children:L(c)},p)),n&&$c("div",{className:"mt-2 self-start",children:$c(va,{href:r||"#",variant:"primary",children:L(n)})})]})]})})}function pQe({src:e}){let t=go(e);return $c(Ip,{src:t.src,...t.srcSet?{srcSet:t.srcSet,sizes:v2}:{},alt:"",className:"h-full w-full object-cover"})}var mye={...cte,render:e=>{let{eyebrow:t,title:o,body:n,imageSrc:r,ctaText:a,ctaHref:i,contained:s,overlay:l,editor:d}=e,c=si(a,i,d);return mQe(pye,{eyebrow:R(t,mu.eyebrow,d),title:R(o,mu.title,d),body:R(n,mu.body,d),imageSrc:r,overlay:typeof l=="number"?l:60,ctaText:c.text,ctaHref:c.href,contained:s,pad:Xe("Banner",e)})}};import{jsx as hye}from"react/jsx-runtime";import{jsx as Ix,jsxs as $9,Fragment as uQe}from"react/jsx-runtime";import{Fragment as fQe}from"react";var hQe={16:"max-view-tablet:py-4"},uye=e=>GP({values:Wr(e,Ph,!0),frame:UP(RP),drawsFrame:!0},!0).root;function fye({items:e,current:t,meta:o,editing:n=!1,pad:r}){let a=he(),i=(e??[]).filter(d=>d?.label?.trim()),s=t?.trim()?[...i,{label:t}]:i,l=s.length>0?s:n?[{label:u("Breadcrumb")}]:[];return l.length===0&&!o?null:Ix("nav",{className:fe(["border-b border-line px-[var(--sf-site-gutter,40px)]",r?null:l2.all[RP.top],"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))]",r?r.className:hQe[RP.topPhone]].filter(Boolean).join(" "),a),style:r&&Object.keys(r.style).length?r.style:void 0,...r?.attrs,children:$9("div",{className:"mx-auto flex max-w-[var(--sf-content-cap,none)] items-center gap-4",children:[l.map((d,c)=>{let p=c===l.length-1;return $9(fQe,{children:[c>0&&Ix("span",{className:"opacity-40",children:"/"}),d.href&&!p?Ix(Tt,{newTab:"auto",href:d.href,className:"hover:text-fg",children:jo(d.label)}):Ix("span",{className:p?"text-fg":void 0,children:jo(d.label)})]},c)}),o&&$9(uQe,{children:[Ix("span",{className:"opacity-40",children:"\xB7"}),Ix("span",{children:L(o)})]})]})})}var gQe=()=>[{label:u("Home"),href:"/"},{label:u("Section"),href:""}],gye={...mge,render:e=>{let{items:t,meta:o,editor:n}=e,r=a=>hye(fye,{items:De(t,gQe(),n),current:typeof a=="string"?a:void 0,meta:R(o,IO.meta,n),editing:n?.isEditing,pad:uye(e)});return Xn(e)?hye(al,{type:"Breadcrumb",props:e,children:a=>r(a.currentCrumb)}):r()}};import{jsx as K9,Fragment as UQe}from"react/jsx-runtime";import{jsx as PN}from"react/jsx-runtime";import{ArrowLongRightIcon as bQe,ArrowRightIcon as wQe,ArrowUpRightIcon as xQe,BagIcon as yQe,CarIcon as vQe,CartIcon as kQe,ChatIcon as SQe,ChevronLeftIcon as TQe,ChevronRightIcon as EQe,DownloadIcon as PQe,EmailIcon as _Qe,ExternalIcon as CQe,LocationIcon as RQe,PackageIcon as OQe,PhoneIcon as NQe,PlayIcon as LQe,ReceiptRefundIcon as AQe,SearchIcon as IQe,ShieldCheckIcon as FQe,TagIcon as BQe,TruckIcon as HQe,WheelIcon as DQe}from"efficient-shell/icons/efficient";var MQe="sf-button-block",zQe={"arrow-right":wQe,"arrow-long-right":bQe,"arrow-up-right":xQe,"chevron-right":EQe,external:CQe,cart:kQe,bag:yQe,tag:BQe,email:_Qe,location:RQe,play:LQe,download:PQe,search:IQe,car:vQe,phone:NQe,wheel:DQe,chat:SQe,"chevron-left":TQe,package:OQe,truck:HQe,"shield-check":FQe,"receipt-refund":AQe},WQe=e=>e?` ${e}`:"";function bye(e){let{label:t,href:o,variant:n,align:r,alignTablet:a,alignPhone:i,contained:s,arrow:l,icon:d,iconPosition:c,widthFit:p,widthFitPhone:m,widthFitTablet:f,buttonColor:g,buttonTextColor:h,hrefRewrite:w,blockPad:b}=e,k=tu(),x=IM(d),v=x&&x!=="none"?zQe[x]:void 0,y=x===void 0?FO(l)?{}:{arrow:null}:v?{arrow:PN(v,{size:16}),...uk(c)==="before"?{glyphBefore:!0}:{}}:{arrow:null},S=rre(e),E=[bge(p,m,f,{atSectionLine:!k}),S?.className??""].filter(Boolean).join(" "),T=E?{className:E}:{},_=gge(c,p)?{spread:!0}:{},P=ore(e),I=P?P.background==="transparent"?"ghost":"primary":n,D={...P??(g?n==="ghost"?{borderColor:g}:{background:g,borderColor:g}:{}),...h?{color:h}:{},...S?.style??{},...nre(e)??{}},F=Object.keys(D).length?{style:D}:{},A=_h(b,_p.text);return PN(It,{contained:s,...A,className:`${MQe} ${A.className}`,part:Ht("button-block"),children:PN("div",{className:`flex${r?` ${Zd[r]}`:""}${WQe(zr("justify",r,a,i,{atSectionLine:!k}))}`,children:PN(va,{href:o||"#",variant:I,...T,..._,...y,...F,...o&&w?{hrefRewrite:w}:{},part:Ht("button"),glyphPart:Ht("button-icon"),children:L(t)})})})}import{phoneKey as GQe}from"efficient-easel/draw";var wye={...mJ,render:e=>{let{label:t,href:o,variant:n,align:r,alignTablet:a,alignPhone:i,contained:s,arrow:l,icon:d,iconPosition:c,widthFit:p,buttonColor:m,buttonTextColor:f,editor:g}=e,h=Object.fromEntries(Object.entries(e).filter(([y])=>y==="buttonFillOpacity"||y==="buttonBorder"||y==="buttonCorners"||y==="buttonCornerSides"||y.startsWith("buttonPadding"))),w=Oee(e),b=w?{hrefRewrite:w}:{},k=(y,S)=>K9(bye,{label:ic(y,ac.text,g)??"",href:S,variant:n,align:r,alignTablet:a,alignPhone:i,contained:s,arrow:l,icon:d,iconPosition:c,widthFit:p,widthFitPhone:e[GQe("widthFit")],buttonColor:m,buttonTextColor:f,...h,...b,blockPad:Wr(e)}),x=Xn(e),v=Xn(e,Vo);return!x&&!v?k(t,o):K9(al,{type:"ButtonBlock",props:e,children:(y,S,E)=>E&&!g?.isEditing&&!(typeof y.label=="string"&&y.label.trim())?K9(UQe,{}):k(y.label,y.href)})}};import{jsx as Ik,Fragment as Tye}from"react/jsx-runtime";import{jsx as Ak,Fragment as $Qe,jsxs as xye}from"react/jsx-runtime";var yye={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]"},KQe="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[72px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",VQe="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-0 pb-[72px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",YQe="sf-card grid grid-cols-1 gap-px border border-line bg-line view-tablet:[grid-template-columns:repeat(var(--cd-cols),minmax(0,1fr))]",pm={phone:{tl:"max-view-tablet:[border-top-left-radius:inherit]",tr:"max-view-tablet:[border-top-right-radius:inherit]",bl:"max-view-tablet:[border-bottom-left-radius:inherit]",br:"max-view-tablet:[border-bottom-right-radius:inherit]"},wide:{tl:"view-tablet:[border-top-left-radius:inherit]",tr:"view-tablet:[border-top-right-radius:inherit]",bl:"view-tablet:[border-bottom-left-radius:inherit]",br:"view-tablet:[border-bottom-right-radius:inherit]"}};function vye(e,t,o,n=!1){let r=hb(o),a=t-1,i=Math.floor(a/r)*r,s=[];return e===0&&s.push(pm.phone.tl,pm.phone.tr,pm.wide.tl),e===a&&s.push(pm.phone.bl,pm.phone.br),e===r-1&&t>=r&&s.push(pm.wide.tr),e===i&&s.push(pm.wide.bl),e===a&&(t%r===0||_N(e,t,o,n)>1)&&s.push(pm.wide.br),e===a&&t<r&&_N(e,t,o,n)>1&&s.push(pm.wide.tr),s.join(" ")}function _N(e,t,o,n){if(!n||t<1||e!==t-1)return 1;let r=hb(o),a=t%r;return a===0?1:r-a+1}var kye="view-wide:[grid-column:span_var(--cd-span)/span_var(--cd-span)]";function Sye({look:e,eyebrow:t,title:o,columns:n,omitHead:r=!1,editing:a=!1,cards:i,pad:s}={}){let l=he(),d=hb(n),c=!!(t??"").trim()||!!(o??"").trim();return!a&&!c&&!i?null:Ak(z,{as:"section",className:"relative z-[2] bg-surface",children:xye("div",{...Te(fe(r?VQe:KQe,l),s),children:[r?null:xye($Qe,{children:[(t??"").trim()&&Ak(lt,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&Ak("h2",{className:`mb-9 font-heading2 ${yye.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-7 ${yye.headingMediumUpTo800}`,children:te(o??"",!1)})]}),i?Ak("div",{className:YQe,style:{"--cd-cols":String(d),overflowY:"visible"},children:Ak(Fo,{children:i})}):null]})})}var Eye=()=>[{title:u("Card title one"),body:u("A short line about this card.")},{title:u("Card title two"),body:u("A short line about this card.")},{title:u("Card title three"),body:u("A short line about this card.")}],Pye=()=>Eye().map(e=>({[vh.title]:e.title??"",[vh.body]:e.body??""}));function jQe(e){return dt(e)?Kt(e,e.editor?.isEditing===!0,Pye()).rows.filter(t=>t[vh.title]||t[vh.body]).map(t=>({title:t[vh.title]??"",body:t[vh.body]??""})):null}function qQe(e){let t=e.editor?.isEditing===!0,o=dt(e),n=m_(e);if(o){let a=Kt(e,t,Pye());return x2(b2(a.rows,a.sample?Tp(o):[]).filter(w2),n)}let r=De(e.items,Eye(),e.editor).map(nn);return x2(b2(r).filter(a=>t||w2(a)),n)}function XQe(e,t,o=1){let n=[`relative grid ${OJ} bg-bg`,t,o>1?kye:""].filter(Boolean).join(" "),r=o>1?{"--cd-span":String(o)}:void 0;return Ik("div",{className:n,style:r,children:e})}var _ye={...CQ,render:e=>{let t=We(e.headPlacement)==="own-box",o=l=>t?void 0:l,n=(e.template?.blockCount??0)>0,r=jQe(e);if(!n&&r&&!r.length)return Ik(Tye,{});let a=l=>Ik(Sye,{look:cs(e.eyebrowLook,e.cardStyle==="label-only"?"KeyFeatures":"Cards"),eyebrow:o(R(e.eyebrow,gb.eyebrow,e.editor)),title:o(R(e.title,gb.title,e.editor)),columns:e.columns,omitHead:t,editing:e.editor?.isEditing,cards:l,pad:Xe("Cards",e)}),{rows:i,states:s}=n?qQe(e):{rows:[],states:[]};return n&&r&&!i.length?Ik(Tye,{}):Ik(Ge,{ownerId:String(e.id??""),ownerType:"Cards",Template:e.template,rows:i,states:s,fallback:a(),wrapCopy:(l,d)=>{let c=e.columns,p=e.fillLastRow===!0;return XQe(l,vye(d.index,i.length,c,p),_N(d.index,i.length,c,p))},children:l=>i.length?a(l):a()})}};import{jsx as JQe}from"react/jsx-runtime";import{jsx as Fk,jsxs as V9}from"react/jsx-runtime";var Y9={body:"text-[length:var(--size-body,12px)]",label:"text-[length:var(--size-label,13px)]"};function Cye({tabs:e,activeTab:t,links:o,sticky:n=!0,editing:r=!1}){let a=Ln(),i=(e??[]).filter(p=>p?.label?.trim()),s=i.length>0?i:r?[{label:u("Tab")}]:[],l=(o??[]).filter(p=>p?.label?.trim());if(s.length===0&&l.length===0)return null;let d=t?s.findIndex(p=>p.label.toLowerCase()===t.toLowerCase()):-1,c=d===-1?0:d;return a.scope(Fk("nav",{className:to(`${n?`${Rb} sticky top-[var(--sf-header-h,88px)] z-40 `:""}border-b border-line px-[var(--sf-site-gutter,40px)] backdrop-blur-md max-view-desktop:px-[min(16px,var(--sf-site-gutter,40px))]`,a.className),style:{background:"color-mix(in oklab, var(--bg) 92%, transparent)"},...a.attrs,children:V9("div",{className:"mx-auto flex max-w-[calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2)] items-stretch gap-0 overflow-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[s.map((p,m)=>{let f=m===c,g=p.count?.trim()?p.count:"";return V9("span",{className:[`relative whitespace-nowrap border-r border-line px-[22px] py-[18px] font-mono ${Y9.label} uppercase tracking-[0.22em] transition-colors`,m===0?"border-l border-line":"",f?"text-fg":"text-fg-dim hover:text-fg"].join(" "),children:[jo(p.label),g&&Fk("span",{className:`ml-2 ${Y9.body} text-accent opacity-70`,children:jo(g)}),f&&Fk("span",{className:"absolute inset-x-0 -bottom-px h-[2px] bg-accent"})]},m)}),l.length>0&&Fk("div",{className:"ml-auto flex border-l border-line",children:l.map((p,m)=>V9(Tt,{newTab:"auto",href:p.href||"#",className:`flex items-center gap-2.5 px-[22px] py-[18px] font-mono ${Y9.label} uppercase tracking-[0.22em] text-fg-dim hover:text-fg`,children:[jo(p.label)," ",Fk("span",{className:"text-accent",children:"\u2197"})]},m))})]})}))}import{hidableText as QQe}from"efficient-easel/draw";var ZQe=[{label:"Archive",href:"#sub-recent-issues"},{label:"RSS",href:"/contact"}],Rye={label:"Category bar",defaultProps:{tabs:[],activeTab:"All",links:ZQe,sticky:!0}};var eet=()=>[{label:u("All")},{label:W.category},{label:W.category}],Oye={...Rye,render:({tabs:e,activeTab:t,links:o,sticky:n,editor:r})=>JQe(Cye,{tabs:De(e,eet(),r),activeTab:QQe(t),links:o,sticky:n,editing:r?.isEditing})};import{jsx as ret}from"react/jsx-runtime";import{jsx as sn,jsxs as Sd}from"react/jsx-runtime";var mm={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,16px)]",labelSmall:"text-[length:var(--size-label,10px)]",label:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"};function j9(e){return Number.isInteger(e)?String(e):String(Math.round(e*10)/10)}var Nye=[100,70,46,30,19,12];function Lye(e){return`color-mix(in srgb, var(--accent) ${Nye[e%Nye.length]}%, var(--bg))`}function tet({data:e,suffix:t}){let o=Math.max(...e.map(n=>n.value),0)||1;return sn("div",{className:"flex w-full flex-col gap-6",children:e.map((n,r)=>Sd("div",{children:[Sd("div",{className:"mb-2 flex items-baseline justify-between gap-4",children:[sn("span",{className:`font-mono ${mm.label} uppercase tracking-[0.14em] text-fg/60`,children:L(n.label)}),Sd("span",{className:`font-display ${mm.bodyLarge} font-medium text-fg`,children:[j9(n.value),t]})]}),sn("div",{className:"h-[10px] border border-line bg-bg",children:sn("div",{className:"h-full bg-accent",style:{width:`${Math.max(n.value/o*100,n.value===0?0:2)}%`}})})]},r))})}function oet({data:e,suffix:t}){let o={l:42,r:42,t:36,b:38},n=640-o.l-o.r,r=300-o.t-o.b,a=Math.max(...e.map(c=>c.value),0)||1,i=e.length>1?n/(e.length-1):0,s=e.map((c,p)=>({x:o.l+(e.length>1?p*i:n/2),y:o.t+r-c.value/a*r})),l=s.map((c,p)=>`${p===0?"M":"L"}${c.x},${c.y}`).join(" "),d=`${l} L${s[s.length-1].x},${o.t+r} L${s[0].x},${o.t+r} Z`;return Sd("svg",{viewBox:"0 0 640 300",className:"w-full",role:"img","aria-hidden":!0,children:[[.25,.5,.75,1].map(c=>sn("line",{x1:o.l,x2:640-o.r,y1:o.t+r*(1-c),y2:o.t+r*(1-c),stroke:"var(--site-line)",strokeWidth:"1"},c)),sn("line",{x1:o.l,x2:640-o.r,y1:o.t+r,y2:o.t+r,stroke:"var(--site-line)",strokeWidth:"1.5"}),sn("path",{d,fill:"var(--accent)",opacity:"0.13"}),sn("path",{d:l,fill:"none",stroke:"var(--accent)",strokeWidth:"2.5"}),s.map((c,p)=>Sd("g",{children:[sn("circle",{cx:c.x,cy:c.y,r:"4",fill:"var(--accent)"}),Sd("text",{x:c.x,y:c.y-12,textAnchor:"middle",className:"font-display",fontSize:"14",fill:"var(--fg)",children:[j9(e[p].value),t]}),sn("text",{x:c.x,y:288,textAnchor:"middle",className:"font-mono",fontSize:"10",letterSpacing:"0.1em",fill:"var(--fg)",opacity:"0.55",children:e[p].label.toUpperCase()})]},p))]})}function net({data:e,suffix:t}){let o=e.reduce((s,l)=>s+l.value,0)||1,n=80,r=2*Math.PI*n,a=0,i=e.map((s,l)=>{let d=s.value/o,c={frac:d,dash:Math.max(d*r-3,0),off:a,ink:Lye(l)};return a+=d*r,c});return Sd("div",{className:"flex w-full flex-wrap items-center justify-center gap-10",children:[sn("svg",{viewBox:"0 0 200 200",className:"w-[220px] max-w-full -rotate-90",role:"img","aria-hidden":!0,children:i.map((s,l)=>sn("circle",{cx:"100",cy:"100",r:n,fill:"none",stroke:s.ink,strokeWidth:"34",strokeDasharray:`${s.dash} ${r-s.dash}`,strokeDashoffset:-s.off},l))}),sn("ul",{className:"flex min-w-[200px] flex-1 flex-col gap-3",children:e.map((s,l)=>Sd("li",{className:"flex items-baseline gap-3",children:[sn("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] flex-shrink-0 rotate-45",style:{background:Lye(l)}}),sn("span",{className:`flex-1 font-mono ${mm.label} uppercase tracking-[0.12em] text-fg/60`,children:L(s.label)}),sn("span",{className:`font-display ${mm.bodySmall} font-medium text-fg`,children:t?`${j9(s.value)}${t}`:`${Math.round(s.value/o*100)}%`})]},l))})]})}function Aye({eyebrow:e,title:t,body:o,chartStyle:n,items:r,valueSuffix:a,caption:i,editing:s=!1,omitHead:l=!1,pad:d}={}){let c=he(),p=(a??"").trim()===""?"":a??"",m=(r??[]).map(w=>({label:(w.label??"").trim(),value:parseFloat(w.value??"")})).filter(w=>s?!0:w.label&&Number.isFinite(w.value)).map(w=>({label:w.label||"\u2014",value:Number.isFinite(w.value)?w.value:0})),f=!l&&(!!(e??"").trim()||!!(t??"").trim());if(!s&&!f&&m.length===0)return null;let g=n??"bars",h=m.length===0?null:g==="line"&&m.length>1?sn(oet,{data:m,suffix:p}):g==="donut"?sn(net,{data:m,suffix:p}):sn(tet,{data:m,suffix:p});return l?h?sn("div",{className:"w-full",children:h}):null:sn(z,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:Sd("div",{...Te(fe("mx-auto grid max-w-[var(--sf-site-width,1600px)] items-center gap-14 px-[var(--sf-site-gutter,40px)] py-[76px] min-[960px]:[grid-template-columns:minmax(0,5fr)_minmax(0,7fr)] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",c),d),children:[Sd("div",{children:[(e??"").trim()&&sn("span",{className:`inline-block bg-accent px-3.5 py-1.5 font-mono ${mm.labelLarge} font-semibold uppercase tracking-[0.16em] text-bg`,children:L(e??"")}),(t??"").trim()&&sn("h2",{className:`mt-5 font-heading2 ${mm.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${mm.headingMediumUpTo800}`,children:te(t??"",!1)}),(o??"").trim()&&sn("p",{className:`mt-5 max-w-[46ch] ${mm.bodySmall} leading-relaxed text-fg/65`,children:o})]}),Sd("div",{children:[h,(i??"").trim()&&sn("p",{className:`mt-4 font-mono ${mm.labelSmall} uppercase tracking-[0.14em] text-fg/40`,children:i})]})]})})}var aet=()=>[{label:u("Before"),value:"9"},{label:u("After"),value:"3"},{label:u("With us"),value:"1"}],Iye={...tte,render:e=>{let{eyebrow:t,title:o,body:n,items:r,caption:a,chartStyle:i,valueSuffix:s,headPlacement:l,editor:d}=e,c=We(l)==="own-box",p=m=>c?void 0:m;return ret(Aye,{eyebrow:p(R(t,Cb.eyebrow,d)),title:p(R(o,Cb.title,d)),body:p(rn(n)),items:De(r,aet(),d),chartStyle:i,valueSuffix:rn(s),caption:p(rn(a)),editing:d?.isEditing,omitHead:c,pad:Xe("Chart",e)})}};import{jsx as Q9,Fragment as Ret}from"react/jsx-runtime";import{jsx as Ut,jsxs as Ss,Fragment as Mye}from"react/jsx-runtime";import{useEffect as wet,useState as xet}from"react";import{useRootIsDark as yet}from"efficient-shell/theme";import{jsx as Fye,jsxs as Bye}from"react/jsx-runtime";var q9={headingSmall:"text-[length:var(--size-headingSmall,24px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function CN({groupKey:e,name:t,count:o}){return Bye("div",{className:"mb-5 flex items-end justify-between gap-4 border-b border-line pb-4",children:[Fye("span",{className:`font-mono ${q9.labelLarge} uppercase tracking-[0.3em] text-accent`,children:e}),t?Fye("span",{className:`font-heading3 ${q9.headingSmall} font-medium uppercase tracking-[-0.01em]`,children:t}):null,Bye("span",{className:`font-mono ${q9.labelSmall} uppercase tracking-[0.22em] text-fg-dim`,children:[o," location",o===1?"":"s"]})]})}import{jsx as Bk,jsxs as X9}from"react/jsx-runtime";import{useMemo as het}from"react";import{jsx as iet,jsxs as set}from"react/jsx-runtime";import{useEffect as Hye,useRef as det,useState as Dye}from"react";import{EntityMap as cet}from"efficient-shell/map";import{watchRootTheme as pet}from"efficient-shell/format";var met={"--rosh-map-pin":"var(--accent)","--rosh-map-pin-text":"var(--bg)","--rosh-map-pin-edge":"var(--bg)","--rosh-map-ring":"var(--fg)","--rosh-map-radius":"0px","--rosh-map-font":"var(--font-role-label)"};function uet(e){let[t,o]=Dye(()=>lP(e));return Hye(()=>(o(lP(e)),pet(()=>o(lP(e)))),[e]),t?"light":"dark"}function fet(e){let[t,o]=Dye(!1);return Hye(()=>{let n=e.current;if(!n||t)return;if(typeof IntersectionObserver>"u"){o(!0);return}let r=new IntersectionObserver(a=>{a.some(i=>i.isIntersecting)&&(r.disconnect(),o(!0))},{rootMargin:"200px"});return r.observe(n),()=>r.disconnect()},[e,t]),t}function Fx({pins:e,mapTheme:t,ariaLabel:o,className:n="",selectedKey:r=null,focus:a=null,onSelect:i,fitTo:s,card:l,groupCrowded:d=!1,children:c}){let p=det(null),m=fet(p),f=uet(t);return set("div",{ref:p,"data-site-map":"",className:n,style:met,children:[m&&iet(cet,{pins:e,selectedKey:r,focus:a,onSelect:i??(()=>{}),ariaLabel:o,fitTo:s,card:l,groupCrowded:d,look:"site",theme:f,cooperativeGestures:"coarse"}),c]})}var get="relative overflow-hidden max-view-desktop:aspect-square";function bet(e,t,o){return Vm(t,o)?[{key:"place",label:e,lat:t,lng:o,glyph:"",tone:""}]:[]}function Z9(e,t,o,n){return e||(t?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent([t,o,n].filter(Boolean).join(" "))}`:"")}function J9({href:e}){return Bk("a",{href:e,...c_,className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent transition-colors hover:text-fg",children:"Get directions\xA0\u2197"})}function RN({name:e,state:t,country:o,lat:n,lng:r,mapsUrl:a,mapTheme:i="auto",pick:s,editing:l,boxClass:d=get,takesViewHide:c=!1}){let p=Vm(n,r),m=t,f=e||"Location",g=het(()=>bet(f,n,r),[f,n,r]),h=Z9(a,e,t,o),w=X9("div",{className:"absolute left-5 top-5 z-10 flex max-w-[64%] flex-col gap-1.5 border border-line bg-bg p-3.5 shadow-[0_8px_24px_color-mix(in_srgb,var(--overlay-scrim)_40%,transparent)]",children:[X9("span",{className:"font-display text-[length:var(--size-body,14px)] font-medium tracking-[-0.01em]",children:[f,m?`, ${m}`:""]}),h&&Bk(J9,{href:h})]});return p?Bk(z,{takes:c,"data-loc-pick":s,className:d,children:Bk(Fx,{pins:g,mapTheme:i,ariaLabel:f,className:"absolute inset-0",children:w})}):X9(z,{takes:c,"data-loc-pick":s,className:`${d} bg-bg`,style:{backgroundImage:"repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 4%, transparent) 0 1px, transparent 1px 14px), repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent) 4%, transparent) 0 1px, transparent 1px 14px), linear-gradient(135deg, var(--site-surface-2), var(--site-surface))"},children:[w,l&&Bk("div",{className:"absolute inset-0 flex items-center justify-center px-6 text-center font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-fg-dim/40",children:"Add latitude & longitude"})]})}var vet=$Q({box:".contact-loc",lit:['.contact-loc[data-active="true"]'],first:e=>[`${e} > div:first-child`]}),zye=e=>Sr(e?.photo)?.trim()||void 0;function Wye({value:e}){if(typeof e=="string"){let t=e.split(`
|
|
@@ -27,7 +27,7 @@ Minimum version required to store current data is: `+a+`.
|
|
|
27
27
|
`)?K:{ranges:B,writer:S}),!S)return;let Y={...OA(N,E),collections:[...B]};a(K=>{let X=K.states[S];return!X||Nut(X,Y)?K:{...K,states:{...K.states,[S]:{...X,...Y}}}})};return A(),NA(A)},[d,S,E]);let T=S?r.states[S]:void 0;RI(()=>{if(!d||!S||!T||v?.writer!==S||typeof window>"u")return;let A=ul(T),N=new URLSearchParams(window.location.search);for(let K of Object.values(Il))for(let X of N.getAll(K))A.append(K,X);let B=A.toString(),Y=B?`?${B}`:"";Y!==window.location.search&&window.history.replaceState(null,"",`${window.location.pathname}${Y}`)},[d,S,T,v]);let _=d?.known,P=T?.collections,I=v?.ranges,D=YU(()=>!d||!_?null:{selected:(P??I??d.selected).filter(N=>_.includes(N)),known:_},[d,_,P,I]),F=YU(()=>({snap:r,address:d,writer:S,register:m,unregister:f,update:g,reportRows:h,reportShown:w,reportChipParts:b,reportTiles:k,updateGallery:x}),[r,d,S,m,f,g,h,w,b,k,x]);return cRe(NI.Provider,{value:F,children:cRe(Joe,{value:D,children:e})})}var hRe=pRe(null);function gRe(e,t){return{...lr,sort:t,collections:[...e.selected]}}function jU(e,t){if(!t)return null;let o=e.snap.states[t];if(!o)return null;let n=[],r=0,a=0,i=!1,s=!1,l=null;for(let[d,c]of e.snap.assign){if(c!==t||d===t)continue;let p=e.snap.chipParts[d];p?.count&&(i=!0),p?.sort&&(s=!0);let m=e.snap.rows[d];if(!m)continue;a+=1,n.push(...m);let f=e.snap.shown[d];r+=f?.total??0,l=f?.range??null}return a!==1&&(l=null),{key:t,live:!0,state:o,update:d=>e.update(t,d),clear:()=>e.update(t,d=>({...lr,sort:d.sort})),rows:n,total:r,grids:a,countInChips:i,sortInChips:s,range:l}}var lRe={count:!1,sort:!1};function qU(e,t,o,n,r){let a=Rut(),i=IJ(),s=mRe(null),l=dp(p=>{s.current=p},[]),d=e?.register,c=e?.unregister;return OI(()=>{if(!(!d||!c))return d({key:a,role:t,boxId:i,node:s.current,filtersBelow:o},n,r),()=>c(a)},[d,c,a,t,i,o,r]),{key:a,ref:l}}function bRe({filtersBelow:e,openingSort:t}){let o=rT(NI),n=rT(hRe),r=o?.address??null,a=!!n?.writes&&r!==null,i=a?gRe(r,t):{...lr,sort:t},{key:s,ref:l}=qU(o,"filter",e,i,a),[d,c]=nT(i),m=(o?jU(o,s):null)??{key:s,live:!1,state:d,update:f=>c(g=>uRe(g,f)),clear:()=>c(f=>({...lr,sort:f.sort})),rows:[],total:0,grids:0,countInChips:!1,sortInChips:!1,range:null};return{ref:l,scope:m}}function LI(e,t=null,o=lRe){let n=rT(NI),{key:r,ref:a}=qU(n,e,!1),i=n?.reportRows,s=n?.reportShown;OI(()=>{if(!(!i||e!=="grid"))return i(r,t),()=>i(r,null)},[i,r,e,t]);let l=dp(w=>s?.(r,w),[s,r]);RI(()=>()=>s?.(r,null),[s,r]);let d=n?.reportChipParts,{count:c,sort:p}=o;OI(()=>{if(!(!d||e!=="chips"))return d(r,{count:c,sort:p}),()=>d(r,lRe)},[d,r,e,c,p]);let m=n?.snap.assign.get(r),f=rT(hRe),g=n?jU(n,m):null;!g&&m===void 0&&n?.address&&f&&(g=(n.writer?jU(n,n.writer):null)??Aut(gRe(n.address,f.sort)));let h=n&&e==="chips"&&!g?Lut(n,n.snap.galleryFollow.get(r)):null;return{ref:a,scope:g,reportShown:l,gallery:h}}function Lut(e,t){if(!t)return null;let o=e.snap.tiles[t]??[],n=e.snap.galleryStates[t]??PI;return{tags:VU(o),tag:_I(n.tag,o),sort:n.sort,shown:CI(o,n).length,pick:r=>e.updateGallery(t,{tag:r}),setSort:r=>e.updateGallery(t,{sort:r}),clear:()=>e.updateGallery(t,{tag:null})}}function wRe(e){let t=rT(NI),{key:o,ref:n}=qU(t,"gallery",!1),r=t?.reportTiles;OI(()=>{if(r)return r(o,e),()=>r(o,null)},[r,o,e]);let a=!1;if(t)for(let[s,l]of t.snap.galleryFollow)l===o&&!t.snap.assign.get(s)&&(a=!0);let i=t&&a?t.snap.galleryStates[o]??PI:null;return{ref:n,toolbar:i}}var dRe=()=>{};function Aut(e){return{key:"",live:!1,state:e,update:dRe,clear:dRe,rows:[],total:0,grids:0,countInChips:!1,sortInChips:!1,range:null}}import{jsx as yRe}from"react/jsx-runtime";var kRe={fit:null,name:"",resolving:!1,unresolved:!1};function Dut(e,t){return e.fit===t.fit&&e.name===t.name&&e.resolving===t.resolving&&e.unresolved===t.unresolved}var bi=()=>{},SRe=Iut({filters:gI,setProcess:bi,setSize:bi,setLugs:bi,setFinish:bi,setPriceMin:bi,setPriceMax:bi,setSort:bi,clearAll:bi,reportCount:bi,total:0,reportLugs:bi,lugOptions:[],reportSizes:bi,sizeOptions:[],reportFinishes:bi,finishOptions:[],reportCategories:bi,categoryOptions:[],reportPrices:bi,priceOptions:[],optionsReported:!1,scrollProcess:null,vehicle:kRe,publishVehicle:bi}),AI="data-catalog-collection",XU=(e,t)=>e-t,Mut=()=>0;function xRe(e,t){return e.length===t.length&&e.every((o,n)=>o===t[n])}function aT(e){let t=vRe(new Map),[o,n]=Wy([]),r=ns((a,i)=>{let s=t.current.get(a);if(s&&xRe(s,i))return;t.current.set(a,i);let l=new Set;for(let c of t.current.values())for(let p of c)l.add(p);let d=[...l].sort(e);n(c=>xRe(c,d)?c:d)},[e]);return[o,r]}function TRe({children:e,address:t=null,editing:o=!1}){let[n,r]=Wy(gI),a=ns(j=>r(J=>({...J,process:j})),[]),i=ns(j=>r(J=>({...J,size:j})),[]),s=ns(j=>r(J=>({...J,lugs:j})),[]),l=ns(j=>r(J=>({...J,finish:j})),[]),d=ns(j=>r(J=>({...J,priceMin:j})),[]),c=ns(j=>r(J=>({...J,priceMax:j})),[]),p=ns(j=>r(J=>({...J,sort:j})),[]),m=ns(()=>r(j=>({...gI,sort:j.sort})),[]),[f,g]=Wy(kRe),h=ns(j=>{g(J=>Dut(J,j)?J:j)},[]),w=vRe(new Map),[b,k]=Wy(0),x=ns((j,J)=>{if(w.current.get(j)===J)return;w.current.set(j,J);let O=0;for(let G of w.current.values())O+=G;k(O)},[]),[v,y]=aT(XU),[S,E]=aT(XU),[T,_]=aT(Vse),[P,I]=aT(Mut),[D,F]=aT(XU),[A,N]=Wy(!1),B=ns((j,J)=>{N(!0),y(j,J)},[y]),Y=ns((j,J)=>{N(!0),E(j,J)},[E]),K=ns((j,J)=>{N(!0),_(j,J)},[_]),[X,Z]=Wy(null);But(()=>{let J=0,C=()=>{J=0;let G=null,$=document.querySelectorAll(`[${AI}]`);for(let H of $){let ee=H.getBoundingClientRect();if(ee.top<=140&&ee.bottom>140){G=H.getAttribute(AI)??null;break}}Z(G)},O=()=>{J||(J=requestAnimationFrame(C))};return C(),window.addEventListener("scroll",O,{passive:!0}),window.addEventListener("resize",O),()=>{window.removeEventListener("scroll",O),window.removeEventListener("resize",O),J&&cancelAnimationFrame(J)}},[]);let V=Hut(()=>({filters:n,setProcess:a,setSize:i,setLugs:s,setFinish:l,setPriceMin:d,setPriceMax:c,setSort:p,clearAll:m,reportCount:x,total:b,reportLugs:B,lugOptions:v,reportSizes:Y,sizeOptions:S,reportFinishes:K,finishOptions:T,reportCategories:I,categoryOptions:P,reportPrices:F,priceOptions:D,optionsReported:A,scrollProcess:X,vehicle:f,publishVehicle:h}),[n,a,i,s,l,d,c,p,m,x,b,B,v,Y,S,K,T,I,P,F,D,A,X,f,h]);return yRe(SRe.Provider,{value:V,children:yRe(fRe,{address:t,editing:o,children:e})})}function Uy(){return Fut(SRe)}import{jsx as Gy}from"react/jsx-runtime";var JU=zut({wheels:[],loading:!1,live:!1,obeysBar:!1,currency:""});function Gut(e,t,o,n,r){return zt(e)==="tyre"?!0:bI([_Re(e,t)],{...o,process:null},n,r).length>0}function _Re(e,t){let o=t?e.finishes?.find(n=>n.name===t):void 0;return o?{...e,finishes:[o]}:e}function $ut(e,t){return e.find(o=>o.designCode===t)??e.find(o=>o.slug===t)}function CRe({wheels:e,currency:t="",children:o}){return Gy(JU.Provider,{value:{wheels:e??[],loading:!1,live:!0,obeysBar:!0,currency:t},children:o})}function RRe({currency:e="",children:t}){let[o,n]=PRe([]),[r,a]=PRe(!0);return ZU(()=>{let i=!1;return Jn().then(s=>{i||(n(s),a(!1))}).catch(()=>{i||a(!1)}),()=>{i=!0}},[]),Gy(JU.Provider,{value:{wheels:o,loading:r,live:!1,obeysBar:!0,currency:e},children:t})}function QU({code:e,finish:t,wheel:o}){let{wheels:n,loading:r,live:a,obeysBar:i,currency:s}=Wut(JU),l=o??(e?$ut(n,e):void 0),d=Kut(i?l:void 0,t,s);if(l){let c=Gy(lA,{wheels:[l],finishes:[t],children:p=>p},`${l.slug}:${t??""}`);return d?c:a?null:Gy(z,{as:"div","data-bar-hidden":"",className:"opacity-40",children:c})}return a?null:Gy(z,{as:"div",className:"sf-card flex aspect-square w-full items-center justify-center bg-surface-2 p-4 text-center",children:Gy("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] text-fg-dim",children:r?u("Loading\u2026"):e||u("Set a design code")})})}function Kut(e,t,o){let{filters:n,vehicle:r,reportCount:a,reportSizes:i,reportLugs:s,reportFinishes:l,reportPrices:d}=Uy(),c=Uut(),p=ERe(()=>!e||Gut(e,t,n,o,r.fit),[e,t,n,o,r.fit]);ZU(()=>{if(e)return a(c,p?1:0),()=>a(c,0)},[e,p,a,c]);let m=ERe(()=>{if(!e||zt(e)==="tyre")return null;let f=_Re(e,t);return{sizes:zL([f]),lugs:TR([f]),finishes:pR([f]),prices:X2([f],o)}},[e,t,o]);return ZU(()=>{if(m)return i(c,m.sizes),s(c,m.lugs),l(c,m.finishes),d(c,m.prices),()=>{i(c,[]),s(c,[]),l(c,[]),d(c,[])}},[m,i,s,l,d,c]),p}import{useBrowserLayoutEffect as qut}from"efficient-shell/hooks";function Vut(e){if(!e.includes("_"))return e;let t=e.replace(/^_+/,""),o=e.slice(0,e.length-t.length),[n,...r]=t.split("_");return o+n+r.map(a=>a.slice(0,1).toUpperCase()+a.slice(1)).join("")}function eG(e){if(Array.isArray(e))return e.map(eG);if(e&&typeof e=="object"){let t={};for(let[o,n]of Object.entries(e))t[Vut(o)]=eG(n);return t}return e}function Yut(e){return eG(e)}function II(e){return e.map(t=>zt(t)==="tyre"?t:Yut(t))}import{Fragment as Qut,jsx as Qn,jsxs as h0}from"react/jsx-runtime";var cp=gt(wa),Xut=ri({},"ProductGrid"),wi={headingMediumUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",headingMediumUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",headingMediumUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",headingMediumUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",body:"text-[length:var(--size-body,13px)]",headingMedium1:"text-[length:var(--size-headingMedium,40px)]",headingMedium2:"text-[length:var(--size-headingMedium,48px)]",headingMedium3:"text-[length:var(--size-headingMedium,56px)]",headingMedium4:"text-[length:var(--size-headingMedium,64px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},FI=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${wi.labelLarge}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${wi.headingMedium1} ${wi.headingMediumUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${wi.headingMedium2} ${wi.headingMediumUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${wi.headingMedium3} ${wi.headingMediumUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${wi.headingMedium4} ${wi.headingMediumUpTo800Xl}`}];function Zut(e){return(FI.find(t=>t.value===e)??FI.find(t=>t.value==="lg")).cls}var BI=[{label:"Fill the row",value:"fill"},{label:"Keep card width",value:"keep"},{label:"Center the row",value:"center"}],Jut=(e,...t)=>e==="keep"?"":e==="center"?mpe(...t):Hu(...t);function oG({num:e,catalog:t,catalogTotal:o,firstCountInChips:n=!1,kinds:r,title:a,titleSize:i,pads:s,noTop:l=!1,description:d,link:c,products:p,wheels:m,source:f,columns:g,columnsPhone:h,columnsTablet:w,limit:b,moreProducts:k,perPage:x,editing:v,contentCapped:y=!1,hover:S,fieldUsage:E,ownerId:T="",template:_,fewCards:P="fill",cardGround:I="flat",cardWords:D="under",gap:F,gapPhone:A}){let N=he(),B=f0(()=>E?cd(E,"alloy-wheel"):void 0,[E]),Y=f0(()=>E?cd(E,"tyre"):void 0,[E]),K=Ka("pg"),{paged:X,per:Z,limit:V,cap:j}=Ey({moreProducts:k,perPage:x,limit:b}),J=c5(g,h,w),C=y,O=hu(),G=Nb(),$=O||G,H=V5(v===!0&&!!f),ee=f0(()=>f?II(Sy(f,r,H??t??[])):null,[t,H,f,r]),se=LI("grid",ee),pe=ee?se.scope:null,Ne=qW(f),ce=Ne!==null&&!pe,{filters:me,reportCount:Ce,reportLugs:Pe,reportSizes:ie,reportFinishes:Ae,reportCategories:At,reportPrices:Re,vehicle:Dt}=Uy(),{currency:we}=Lt(),$e=ce&&!!me.process&&me.process!==Ne,ft=pe?.state,ct=f0(()=>ee?ft?Kle(ee,ft,we):ce?bI(ee,me,we,Dt.fit):ee:null,[ee,ft,ce,me,we,Dt.fit]),[xn,so]=jut(1),Xt=X&&ct?Math.max(1,Math.ceil(ct.length/Z)):1,ht=Math.min(Xt,Math.max(1,pe?pe.state.page:xn)),{reportShown:nt}=se,Yn=pe!==null;qut(()=>{if(!Yn||!ct)return nt(null);nt(FA(ct.length,{paged:X,per:Z,cap:j},ht))},[Yn,ct,nt,X,ht,Z,j]);let Qt=Ko=>pe?pe.update({page:Ko}):so(Ko),xo=f0(()=>ct&&(X?ct.slice((ht-1)*Z,ht*Z):j?ct.slice(0,Math.ceil(V)+BA):ct),[X,j,V,ct,ht,Z]);tG(()=>(At(K,Ne===null?[]:[Ne]),()=>At(K,[])),[Ne,At,K]),tG(()=>{if(ce)return Ce(K,$e?0:ct?.length??0),()=>Ce(K,0)},[ce,$e,ct,Ce,K]);let yr=f0(()=>({lugs:TR(ee??[]),sizes:zL(ee??[]),finishes:pR(ee??[]),prices:X2((ee??[]).filter(Ko=>zt(Ko)!=="tyre"),we)}),[ee,we]);tG(()=>(Pe(K,yr.lugs),ie(K,yr.sizes),Ae(K,yr.finishes),Re(K,yr.prices),()=>{Pe(K,[]),ie(K,[]),Ae(K,[]),Re(K,[])}),[yr,Pe,ie,Ae,Re,K]);let Wo=Ur("ProductGrid",F,"both",A),Cn=`${K} grid${Wo.className} bg-[var(--catalog-grid-bg)] ${J}`,eo=sA(Wo),Io=`${K} grid${eo.className} bg-[var(--catalog-grid-bg)] ${J}`,et=eo.style,Gt=f0(()=>{let Ko=(ct??[]).filter(kr=>zt(kr)!=="tyre");if(Ko.length===0)return!1;let Ei=Ko.some(kr=>!!kr.process);return Ko.some(kr=>!!kr.setWords)||hS({kind:!1,brand:!1,process:Ei},B??[])},[ct,B]),ko=xo?xo.length>0?Qn("div",{className:Io,style:et,...cp("grid"),children:Qn(dA,{items:xo,tyreOf:Ko=>zt(Ko)==="tyre"?Ko:null})}):pe&&Nu(pe.state)?h0("div",{className:"flex min-h-[320px] flex-col items-center justify-center gap-4 bg-surface-2 p-4 text-center",...cp("grid-empty"),children:[Qn("span",{className:`font-mono ${wi.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:`No ${Vr(s0(f,r)).many} match those filters`}),Qn(Lf,{onClick:pe.clear})]}):v?Qn("div",{className:"flex min-h-[320px] items-center justify-center rounded bg-surface-2 p-4 text-center",...cp("grid-empty"),children:Qn("span",{className:`font-mono ${wi.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:u("No products in \u201C{name}\u201D yet",{name:f?.name??""})})}):null:Qn(p,{className:Cn,style:Wo.style,minEmptyHeight:320}),Ms=pe?pe.countInChips:n,Ti=ct&&!Ms?ct===ee&&!H?o??ct.length:ct.length:null,Na=Vr(s0(f,r)),yn=e||a||d||c?h0("div",{className:fe(`${Rb} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${C||$?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,N),...cp("grid-head"),children:[h0("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&Qn("span",{className:`font-mono ${wi.labelLarge} leading-none uppercase tracking-[0.22em] text-fg-dim`,...cp("grid-number"),children:L(e)}),a&&Qn("h2",{className:`${Zut(i)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,...cp("heading"),children:te(a,!1)})]}),(d||c||Ti!==null)&&h0("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[d&&Qn("span",{className:`max-w-[340px] truncate font-display ${wi.body} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,...cp("description"),children:L(d)}),c&&h0(Be,{href:c.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${wi.labelLarge} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,...cp("view-all"),children:[L(c.text),Qn("span",{"aria-hidden":!0,children:"\u2192"})]}),Ti!==null&&h0("span",{className:`whitespace-nowrap font-mono ${wi.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,...cp("count"),children:[Ti," ",Ti===1?Na.one:Na.many]})]})]}):null,vr=Ec(s,d5,{noTop:l}),{paddingTop:Rn,...Hr}=vr.style,On=l?0:Rn,He={...On===void 0?{}:{"--pg-pt":typeof On=="number"?`${On}px`:On},...Hr},tt=xo?j?Math.min(xo.length,V):xo.length:void 0,Pt=Jut(P,K,J,{limit:V,cards:xo?.length}),xt=fy(K),xe=h0(Qut,{children:[j&&Qn("style",{children:upe(K,V+1)}),Pt&&Qn("style",{children:Pt}),xt&&Qn("style",{children:xt}),yn,ko,X&&Xt>1&&Qn(bS,{textSize:No.labelSmall,page:ht,pageCount:Xt,onPage:Qt}),Qn(eS,{editing:v})]});if($e)return null;let Ze=Qn(yt,{rootRef:se.ref,attrs:{...ce&&Ne!==null?{...vr.attrs,[AI]:Ne}:vr.attrs,...cp("product-grid-block")},className:hl(fe(`relative z-[2] bg-bg px-[var(--sf-site-gutter,40px)] ${ope} max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] ${npe}`,N),vr),column:null,inAnyBox:!0,style:He,defaults:{"--pg-pt":"120px"},children:C?Qn("div",{style:qm(ec),children:xe}):xe}),yo=ee?Ze:v?Qn(RRe,{currency:we,children:Ze}):Qn(CRe,{wheels:m,currency:we,children:Ze});return Qn(hy,{value:{ownerId:T,Template:_,hover:S??Xut,imageSizes:PL(J,tt),fieldUsage:B??Bn,tyreFieldUsage:Y??Bn,reserveEyebrow:Gt,editing:v===!0,ground:I,words:D},children:yo})}import{TextSizeIcon as eft,ColumnsIcon as rG,ListIcon as tft,HashIcon as ORe,PageIcon as oft,ColumnWidthsIcon as nft,BackgroundIcon as rft,CaptionIcon as aft}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as ift,group as MI,phoneTwinFields as LRe}from"efficient-easel/screen/lib/document/box-fields";var nG=2,iT=6,sT=12;function HI(e){return typeof e!="number"||!Number.isFinite(e)?iT:Math.min(sT,Math.max(nG,Math.round(e)))}function DI(e,t=[]){return{href:cde(e.to,t),label:`View more ${Vr([e.to]).many}`}}import{jsx as Id}from"react/jsx-runtime";var lT="linkText";function sft(e){let t=Ty(typeof e=="string"?e:Qi);return t&&l0(t)?DI(t).label:bn.link}var ARe=e=>({field:"relationship",in:e,default:Qi}),lft={not:ARe(_m.filter(e=>!l0(e)).map(e=>e.key))},dft=ARe(_m.filter(e=>e.to==="tyre").map(e=>e.key)),cft={any:[Ia,{all:[ep,lft]}]},pft={not:{all:[Ad,dft]}},mft=new Set([...BC("Content"),"_gProducts","source","_gHeader","num","title","titleSize","description","_gLayout","columns","columnsTablet","columnsPhone","limit","fewCards","cardGround","cardWords",lT,...Object.keys(di(wa)),"template",...WP.map(([e])=>e),...Vb,...Yb,...jb,...qb]),uft={not:Ad},NRe={field:"moreProducts",is:"pages"},IRe=ae("Columns",Id(rG,{}),Du.min,Du.max,1,Du.fallback),{columns:fft,columnsTablet:hft}=LRe("columns",IRe,ift,{phoneRow:ae("Columns",Id(rG,{}),v1.min,v1.max,1,Du.fallback,"",{clear:{phoneFollows:!1,hint:e=>qH(e.follows)}})}),{columnsPhone:gft}=LRe("columns",IRe,void 0,{phoneRow:ae("Columns",Id(rG,{}),ag.min,ag.max,1,ag.min,"",{clear:{phoneFollows:!1,hint:ag.min}})}),bft={columns:fft,columnsTablet:hft,columnsPhone:gft},FRe={fields:Le({_gHeader:MI("Header"),num:U("Number",bn.num),title:q("Heading",W.sectionHeading),titleSize:ne("Heading size",Id(eft,{}),FI,"lg"),description:q("Body",W.body),_gProducts:MI("Products"),source:Uo(WS),kinds:SL(),productList:Oc(wa),products:es.products,template:es.template,_gLink:MI("Link"),linkText:U("Button",bn.link),linkHref:Ve("Link"),_gLayout:MI("Grid"),...bft,moreProducts:ne("More products",Id(oft,{}),tU,US),perPage:ae("Products per page",Id(ORe,{}),IA.min,IA.max,IA.step,GS),showAll:oe("Show all items",!1,Id(tft,{})),limit:ae("Items to display",Id(ORe,{}),1,12,1,8),fewCards:ne("Short row",Id(nft,{}),[...BI],"fill"),cardGround:ne("Card ground",Id(rft,{}),[...gW],"flat"),cardWords:ne("Words",Id(aft,{}),[...bW],"under"),...di(wa)},[[["kinds"],{field:"source.slug",is:Pm}],[["products","productList"],{not:ai("source.slug")}],[["limit"],{any:[m0,{not:ai("showAll")}]}],[["perPage"],NRe],[["showAll","limit"],{not:NRe}],[["linkHref"],{any:[m0,{not:ai("linkText.hidden")}]}]]),showWhenFacts:tp,resolveFields:(e,t)=>{let n=t.fields,r=e.props,a=it(n,r.headPlacement,st.ProductGrid.headRows.filter(d=>d!==lT)),i=r.dynamic===!0&&lT in a?{...a,[lT]:Qo(U("Button",sft(r.relationship)))}:a,s=Le(i,[[[lT],cft],[["cardGround","cardWords"],pft]]);if(!Tr())return s;let l=Object.keys(s).filter(d=>!mft.has(d));return Le(s,[[l,uft]])}};import{useEffect as Bft,useState as Hft}from"react";var aG=[{key:"loadIndex",label:"Load index",prompt:"Select a load index",spec:"loadIndex"},{key:"speedRating",label:"Speed rating",prompt:"Select a speed rating",spec:"speedRating"},{key:"tyreType",label:"Type",prompt:"Select a type",spec:"tireType"}];function zI(e){let t=e.variants??[],o=[];for(let i of t)o.some(s=>s.value===i.size)||o.push({value:i.size,label:i.size});let n={size:o};for(let i of aG){let s=[];for(let l of t){let d=l.specs[i.spec];!d||s.some(c=>c.value===d)||s.push({value:d,label:d})}n[i.key]=s}let r=t.map(i=>({id:i.sku,options:{size:i.size,...Object.fromEntries(aG.map(s=>[s.key,i.specs[s.spec]]).filter(([,s])=>!!s))},inStock:i.inStock,image:i.image??null,components:[{partNumber:i.sku,wheels:1,prices:i.prices}]})),a=[{key:"size",label:"Size",prompt:"Select a size",role:"resolves",display:"pill"},...aG.map(i=>({key:i.key,label:i.label,prompt:i.prompt,role:"describes",display:"pill"}))];return{kind:"tyre",source:e,slug:e.slug,name:e.name,eyebrow:e.brand,badge:"",href:`/tyres/${e.slug}`,crumbs:[{label:"Home",href:"/"},{label:e.name}],cover:e.coverImage??null,inStock:e.inStock,mediaGroups:e.mediaGroups,optionFields:a,optionValues:n,parts:r,anchorPrices:wft(t),anchorMsrpPrices:{}}}function wft(e){let t={};for(let o of e)for(let[n,r]of Object.entries(o.prices??{})){if(typeof r!="number"||!Number.isFinite(r)||r<=0)continue;let a=t[n];(a==null||r<a)&&(t[n]=r)}return t}import{createContext as xft,useContext as yft}from"react";import{jsx as vft}from"react/jsx-runtime";var BRe=xft(null);function HRe({slug:e,children:t}){let o=typeof e=="string"&&e.trim()?e:null;return vft(BRe.Provider,{value:o,children:t})}function DRe(){return yft(BRe)}import{useSyncExternalStore as kft}from"react";var MRe="sf-editor-preview-pick",$y=null,iG=new Set;function sG(){if($y)return $y;$y={};let e=ha.getItem(MRe);if(!e)return $y;try{let t=JSON.parse(e);if(t&&typeof t=="object"&&!Array.isArray(t))for(let[o,n]of Object.entries(t))typeof n=="string"&&($y[o]=n)}catch{}return $y}function Sft(){ha.setItem(MRe,JSON.stringify(sG()))}function Tft(e,t){return`${e??""}::${t??""}`}function Eft(e){return sG()[e]}function zRe(e,t){let o=sG();if(o[e]!==t){o[e]=t,Sft();for(let n of iG)n()}}function Pft(e){return iG.add(e),()=>iG.delete(e)}function WRe(e,t){let o=e??t??"";return o.trim()?o:null}function lG(){return Tft(In(),Fte())}function WI(){let e=lG();return kft(Pft,()=>Eft(e),()=>{})}import{createContext as _ft,useContext as URe}from"react";import{jsx as Cft}from"react/jsx-runtime";var dG=_ft(null);function GRe({kind:e,children:t}){return Cft(dG.Provider,{value:e??null,children:t})}function $Re(){return URe(dG)??"alloy-wheel"}function KRe(){return URe(dG)}var Rft={GBP:0,USD:0,AUD:0},Oft={loadIndex:"00",speedRating:"\u2014",construction:"Radial",treadPattern:"Tread pattern",tireType:"Season"},VRe=["205/55 R16","225/45 R17","245/40 R19"],YRe={slug:"sample-tyre",name:"Tyre Model",brand:"Brand",designCode:"SAMPLE",description:"",shortDescription:"Tyre description \u2014 replace this with your own copy.",seoTitle:"",seoDescription:"",coverImage:null,inStock:!0,sizes:[...VRe],variants:VRe.map(e=>({sku:`SAMPLE-${e.replace(/[^0-9]/g,"")}`,size:e,specs:{...Oft},prices:{...Rft},image:null,inStock:!0,eprelRegistrationNumber:""})),mediaGroups:{photos:[],lifestyle:[],videos:[],accessories:[],others:[]},compatibleWheels:[],pdpTemplateSlug:null};var cG={GBP:0,USD:0,AUD:0},Nft=[{diameter:18,width:8.5,boltPattern:"5\xD7112",centreBore:66.6,et:35},{diameter:19,width:9,boltPattern:"5\xD7112",centreBore:66.6,et:38},{diameter:20,width:9.5,boltPattern:"5\xD7112",centreBore:66.6,et:40}],qRe=[{name:"Finish 1",color:"#171717",family:"black",src:"",features:[1,2,3].map(e=>({eyebrow:"Feature eyebrow",heading:"Feature title",description:"Feature description \u2014 replace this with your own copy.",mark:`0${e} \xB7 Feature`,image:""}))},{name:"Finish 2",color:"#cccccc",family:"silver",src:""},{name:"Finish 3",color:"#8a6438",family:"bronze",src:""}],Lft=[{partNumber:"SAMPLE-18",diameter:18,width:8.5,holes:5,pcd:"112",et:35,cb:66.6,cap:"\u2014",boltPattern:"5\xD7112",loadRating:"000 kg",inStock:!0},{partNumber:"SAMPLE-19",diameter:19,width:9,holes:5,pcd:"112",et:38,cb:66.6,cap:"\u2014",boltPattern:"5\xD7112",loadRating:"000 kg",inStock:!0},{partNumber:"SAMPLE-20",diameter:20,width:9.5,holes:5,pcd:"112",et:40,cb:66.6,cap:"\u2014",boltPattern:"5\xD7112",loadRating:"000 kg",inStock:!0}],Aft=qRe.flatMap(e=>Nft.map((t,o)=>({finishName:e.name,size:`${t.diameter}" \xD7 ${t.width} \xB7 ${t.boltPattern} \xB7 ${t.centreBore} bore \xB7 ET ${t.et}`,kind:"squared",directional:!1,components:[{partNumber:`SAMPLE-${e.name.replace(/\s+/g,"")}-${o}`,wheels:4,prices:{...cG},hand:null}],inStock:!0,rearWidth:null,rearEt:null,...t}))),jRe=e=>`data:image/svg+xml,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="640" height="640"><rect width="640" height="640" fill="#e6e6e6"/><text x="320" y="332" font-family="sans-serif" font-size="30" fill="#8f8f8f" text-anchor="middle">${e}</text></svg>`)}`,Ky=e=>({url:jRe(e),thumbnailUrl:jRe(e),kind:"image"}),Ift={photos:[{name:"Studio set",finish:"Finish 1",items:[Ky("Sample photo 1"),Ky("Sample photo 2"),Ky("Sample photo 3")]}],lifestyle:[{name:"On location",finish:"",items:[Ky("Lifestyle 1"),Ky("Lifestyle 2")]},{name:"In the city",finish:"",items:[Ky("Lifestyle 3")]}],videos:[],accessories:[],others:[]},Fft=[1,2].map(e=>({sku:`SAMPLE-TYRE-${e}`,size:"000/00 R00",specs:{loadIndex:"00",speedRating:"\u2014",construction:"\u2014",treadPattern:"Tyre model",tireType:"\u2014"},prices:{...cG},image:null,inStock:!0,slug:null})),pG={bundles:[],name:"Product Name",slug:"sample-product",process:"Precision Forged",categories:["Precision Forged"],sizes:[18,19,20],prices:{...cG},msrpPrices:{GBP:null,USD:null,AUD:null},spokes:5,mesh:!1,badge:null,finishes:qRe,spec:{lugs:5,sizes:[18,19,20],widths:[8.5,9,9.5],pcds:["5\xD7112"],etRange:[35,42],centreBores:[66.6],loadRating:"000 kg / 000 lbs",cap:"",bumpProfile:"",rimProfile:""},coverImage:null,defaultFinish:null,description:"Product description \u2014 replace this with your own copy.",fitments:Lft,mediaGroups:Ift,relatedProducts:[],variants:Aft,pdpTemplateSlug:null,compatibleTyres:Fft},mG=Array.from({length:sT},(e,t)=>t+1).map(e=>({...pG,name:`Product ${e}`,slug:`sample-product-${e}`}));var XRe=null,ZRe=null,uG=new Map;function Dft(e){let t=fa(),o=In();(t!==XRe||o!==ZRe)&&(XRe=t,ZRe=o,uG.clear());let n=uG.get(e);return n||(n=t?Fe.getWheelDetail(t,e,{siteId:o}).catch(()=>null):Promise.resolve(null),uG.set(e,n)),n}function Mft(e){return e==="tyre"?zI(YRe):iS(pG)}var dT=["alloy-wheel"];function zft(e,t){return e?iS(e):Mft(t)}function Wn(e){let t=WRe(WI(),DRe()),o=$Re(),[n,r]=Hft(null);return Bft(()=>{if(!e||!t||!dT.includes(o)){r(null);return}let a=!1;return Dft(t).then(i=>{a||r(i)}),()=>{a=!0}},[e,t,o]),e?zft(n,o):null}import{useEffect as Wft,useMemo as fG,useState as Uft}from"react";import{useEaselHost as Gft}from"efficient-easel/screen/lib/host";import{jsx as UI,jsxs as Yft}from"react/jsx-runtime";var hG=e=>e.kind==="tyre"?"tyre":"alloy-wheel",cT=e=>`${e.kind}:${e.slug}`;function JRe(e){return e.kind==="tyre"?{kind:"tyre",slug:e.slug,name:e.name,description:e.description??"",eyebrow:e.brand??"",image:e.coverImage??null,finishes:[],prices:e.prices,href:`/tyres/${e.slug}`}:{kind:"wheel",slug:e.slug,name:e.name,description:e.description??"",eyebrow:e.process,image:e.coverImage??null,finishes:e.finishes.filter(nw).map(t=>({name:t.name,color:t.color,src:t.src})),prices:e.prices,href:`/wheels/${e.slug}`}}function GI(e,t){let o=hG(t);return e.find(n=>n.kind===o&&n.slug===t.slug)}function $ft(e){return QRe(e)?u("Category \u2014 wheels only"):u("Category")}var QRe=e=>!!(e?.some(t=>t.kind==="tyre")&&e.some(t=>t.kind==="alloy-wheel")),Kft=e=>ar("{n} size","{n} sizes",e);function Vft({rows:e,category:t,value:o,loading:n,currency:r}){let a=e??[],i=a.filter(w=>w.kind==="alloy-wheel"),s=a.filter(w=>w.kind==="tyre"),l=i.length>0&&s.length>0,d={value:"",label:n?u("Loading\u2026"):u("Pick a product\u2026")},c=o&&!(e!==null&&GI(e,o))?[{value:cT({kind:hG(o),slug:o.slug}),label:n?o.name:u("{name} (unavailable)",{name:o.name})}]:[],p=kU(i,t),m=o&&e!==null?GI(e,o):void 0,g=[...m&&m.kind==="alloy-wheel"&&!p.includes(m)?[m]:[],...p].map(w=>{let b=Up(w.prices[r],w.msrpPrices?.[r]);return{value:cT({kind:"alloy-wheel",slug:w.slug}),label:w.name,...l?{group:u("Wheels")}:{},thumb:w.coverImage??null,...b.priced?{meta:ba(b.unit,r)}:{}}}),h=s.map(w=>({value:cT(w),label:w.name,...l?{group:u("Tyres")}:{},thumb:w.coverImage??null,meta:Kft(w.variantCount)}));return[d,...c,...g,...h]}function gG({value:e,onChange:t}){let o=Gft(),{rows:n,loading:r,refreshing:a,errored:i,refresh:s}=Tx({load:Rc,resolve:GI,snapshot:JRe,value:e,onChange:t}),[l,d]=Uft(null);Wft(()=>{let S=!1;return gi().then(E=>{S||d(E)}),()=>{S=!0}},[]);let{currency:c}=Lt(),p=fG(()=>n&&e?GI(n,e)??null:null,[n,e]),m=fG(()=>(n??[]).filter(S=>S.kind==="alloy-wheel"),[n]),{category:f,setCategory:g,categoryNames:h}=sp(m,l,p?.kind==="alloy-wheel"?p:null),w=!!e?.slug&&n!==null&&!p,b=fG(()=>Vft({rows:n,category:f,value:e,loading:r,currency:c}),[n,f,e,r,c]),k=S=>{if(!S){t(null);return}let E=(n??[]).find(T=>cT(T)===S);E&&t(JRe(E))},x=()=>{e?.slug&&o.send("storefront-editor:open-product",{slug:e.slug,name:e.name})},v=i?"error":a?"loading":"idle",y=i?u("Couldn\u2019t reach the product catalog."):a?u("Syncing from the catalog\u2026"):w?u("Linked to \u201C{name}\u201D \u2014 no longer in the catalog.",{name:e?.name??""}):u("Linked to \u201C{name}\u201D \xB7 title, description, category, price & image follow the product.",{name:e?.name??""});return Yft("div",{children:[UI(Mb,{label:"Product",options:b,fallback:"",value:e?cT({kind:hG(e),slug:e.slug}):"",onChange:k,placeholder:"Search products\u2026"}),UI(SU,{label:$ft(n),allLabel:QRe(n)?u("All wheel categories"):u("All products"),category:f,onChange:g,categoryNames:h,readOnly:r}),e?.slug?UI(ll,{status:v,statusText:y,onRefresh:s,busy:a,edit:{label:u("Edit product \u270E"),onClick:x},hint:u("The whole hero comes from the product record \u2014 title, price, pictures, options and Add to Cart. Edit the product in the Products database and this hero updates to match.")}):UI("p",{className:"es-field-hint",children:u("This hero always shows a real product. Pick one to fill the title, price, pictures, options and Add to Cart from the catalog.")})]})}import{useEffect as e5e,useMemo as t5e,useState as bG}from"react";import{SettingsField as jft}from"efficient-easel/panel";import{FieldSelect as qft}from"efficient-easel/fields";import{iconOf as Xft,noGlyph as Zft}from"efficient-easel/screen/lib/document/box-fields";import{Fragment as oht,jsx as $I}from"react/jsx-runtime";var g0="__all__",wG="";function Jft(e){return(e??[]).filter(t=>dT.includes(t.kind))}var Qft=Zft("one row per level from one list \u2014 the gutter would repeat one mark down the column and say nothing; the group heading carries it once (ruling 2026-09-23)"),KI=e=>typeof e.brand=="string"?e.brand.trim():"";function o5e(e,t){if(e.kind!=="alloy-wheel"||!t)return;let o=e,n=Up(o.prices?.[t],o.msrpPrices?.[t]);return n.priced?ba(n.unit,t):void 0}function eht({rows:e,brand:t,kind:o,slug:n,loading:r=!1,currency:a=""}){let i=e??[],s=[...new Set(i.map(KI).filter(Boolean))].sort((h,w)=>h.localeCompare(w)),l=t===g0?i:i.filter(h=>KI(h)===t),d=Ii.filter(h=>l.some(w=>w.kind===h)),c=o===g0?l:l.filter(h=>h.kind===o),p=new Set(c.map(h=>h.kind)).size>1,m=c.map(h=>({value:h.slug,label:h.name,...p?{group:u(gs[h.kind])}:{},thumb:h.coverImage??null,...o5e(h,a)?{meta:o5e(h,a)}:{}})),f=n&&!c.some(h=>h.slug===n)?[{value:n,label:r?n:u("{slug} (not in this list)",{slug:n})}]:[],g=[];return s.length>1&&g.push({key:"brand",label:u("Brand"),options:[{value:g0,label:u("All brands")},...s.map(h=>({value:h,label:h}))]}),d.length>1&&g.push({key:"kind",label:u("Product type"),options:[{value:g0,label:u(Tle)},...d.map(h=>({value:h,label:u(gs[h])}))]}),g.push({key:"product",label:u("Product"),options:[{value:wG,label:r?u("Loading\u2026"):u("Generic placeholder")},...f,...m]}),g}function xG(){let[e,t]=bG(null),[o,n]=bG(g0),[r,a]=bG(g0),i=lG(),s=WI()??wG;e5e(()=>{let m=!1;return Rc().then(f=>{m||t(f)}).catch(()=>{m||t([])}),()=>{m=!0}},[]);let{currency:l}=Lt(),d=t5e(()=>Jft(e),[e]);e5e(()=>{let m=d.find(f=>f.slug===s);m&&KI(m)&&n(KI(m))},[s,d]);let c=t5e(()=>eht({rows:d,brand:o,kind:r,slug:s,loading:e===null,currency:l}),[d,o,r,s,e,l]),p={brand:m=>{n(m),a(g0)},kind:a,product:m=>zRe(i,m)};return $I(oht,{children:c.map(m=>$I(jft,{label:m.label,icon:Xft(Qft),hint:m.key==="product"?u(tht):void 0,children:m.key==="product"?$I(Mb,{bare:!0,label:m.label,options:m.options,fallback:wG,value:s,onChange:p.product,placeholder:u("Search your catalog\u2026")}):$I(qft,{value:m.key==="brand"?o:r,ariaLabel:m.label,onChange:f=>p[m.key](f),options:m.options.map(f=>({label:f.label,value:f.value}))})},m.key))})}var tht="Only for looking at while you design. Shoppers always see the product they opened.";import{BreadcrumbIcon as nht,CarIcon as rht,LayoutIcon as i5e,ColumnWidthsIcon as aht,FullWidthIcon as iht,SpecTableIcon as sht,StickyIcon as lht,FinishIcon as dht,ProductSizeIcon as cht}from"efficient-easel/icons";import{alignmentField as pht,group as mT}from"efficient-easel/screen/lib/document/box-fields";var n5e=Sn(),Vy={template:{...n5e,allow:[...n5e.allow,...Kpe]},[ui]:{type:"slot",allow:[...P8]},[Gi]:{type:"slot",allow:[...mme]},[ys]:{type:"slot",allow:[...ame]}},r5e={ownPad:WA,label:"Product Hero",fields:Vy,defaultProps:{source:null,pricePlacement:c8,showVehicleFitment:!0,heroLayout:hd,imageRatio:Qp,textAlign:Jp,showSpecTable:!0,stageToEdge:!1,showBreadcrumb:!0,showPriceQuote:!0,galleryMode:_c,imageFit:em}};import{parseOption as yG}from"efficient-shell/format";var VI="finishLook",YI="sizeLook",pT="pickerLook",vG=[{value:"chips",label:"Chips"},{value:"tiles",label:"Tiles"}],kG=[{value:"buttons",label:"Buttons"},{value:"dropdown",label:"Dropdown"}],SG=[{value:"cells",label:"Four cells"},{value:"oneRow",label:"One row"}],jI="chips",qI="buttons",XI="cells",ZI={finish:jI,size:qI,picker:XI};function a5e(e){return{finish:yG(vG,jI,e[VI]),size:yG(kG,qI,e[YI]),picker:yG(SG,XI,e[pT])}}import{jsx as Fd}from"react/jsx-runtime";var mht=()=>({type:"custom",render:()=>Fd(xG,{})});function uht(e){let t=e?.data?.root;return dT.includes(M_(t?.props))}var fht={not:{context:"previewsNoTemplateProduct",is:!0}},hht=new Set([...Vb,...Yb,...jb,...qb,"_gPreview","previewPick","_gBehaviour","showVehicleFitment","showSpecTable","showBreadcrumb","_gArrangement","heroLayout","imageRatio","stickyColumns","stageToEdge","textAlign","_gOptions",VI,YI,pT,"template",ui,Gi]),s5e={fields:Le({_gSource:mT("Product"),source:Uo(gG),_gPreview:mT(yu),previewPick:mht(),_gBehaviour:mT("Behavior"),showVehicleFitment:oe("Vehicle fitment",!0,Fd(rht,{})),showSpecTable:oe("Spec table",!0,Fd(sht,{})),showBreadcrumb:oe("Breadcrumb",!0,Fd(nht,{})),_gArrangement:mT("Arrangement"),heroLayout:_e("Layout",Fd(i5e,{}),[{label:"Split",value:"split"},{label:"Image right",value:"imageRight"},{label:"Stacked",value:"stacked"}],hd),imageRatio:ae("Image / buy ratio",Fd(aht,{}),o8,n8,1,Qp,"%"),textAlign:pht({allow:["left","center"],fallback:Jp}),stickyColumns:oe("Pin columns while scrolling",!1,Fd(lht,{})),stageToEdge:oe("Images to the edge",!1,Fd(iht,{})),_gOptions:mT("Options"),[VI]:ne("Finish look",Fd(dht,{}),vG,jI),[YI]:ne("Size look",Fd(cht,{}),kG,qI),[pT]:ne("Picker look",Fd(i5e,{}),SG,XI),template:Vy.template,[ui]:Vy[ui],[Gi]:Vy[Gi],[ys]:Vy[ys]},[[["imageRatio","stickyColumns"],qn("heroLayout",Dw,hd,Dw.filter(e=>e!=="stacked"))],[["stageToEdge"],qn("heroLayout",Dw,hd,Dw.filter(e=>e!=="stacked"))],[["_gPreview","previewPick"],{all:[Cm,fht]}],[[pT],{field:"showVehicleFitment",is:!0,default:!0}]]),resolveData:(e,{changed:t})=>{let o=qpe(e.props,t);return o===e.props?e:{...e,props:o}},resolveFields:(e,{fields:t})=>{if(!Tr())return t;let o=Object.keys(t).filter(n=>!hht.has(n));return Le(t,[[o,m0]])},showWhenFacts:{...tp,previewsNoTemplateProduct:(e,{appState:t})=>!uht(t)}};import{Button as bht}from"efficient-shell/ui";import{useEasel as wht}from"efficient-easel/easel";import{useEaselHost as xht}from"efficient-easel/screen/lib/host";import{useEasel as ght}from"efficient-easel/easel";function JI(){let{selectedItem:e,getSelectorForId:t,getItemById:o}=ght(l=>l),n=e?.props?.id;if(!n)return null;let r=t(n)?.zone,a=r&&r.includes(":")?r.split(":")[0]:null,s=(a?o(a):void 0)?.props?.source;return s?.slug?s.name||"the selected source":null}import{jsx as l5e,jsxs as yht}from"react/jsx-runtime";function TG(){let e=xht(),t=tx(),{selectedItem:o}=wht(s=>s),n=o?.props?.code??"",r=(t??[]).find(s=>s.slug===n)??null,a=JI()!==null;return!r||a?null:yht("div",{className:"sf-blogsource",children:[l5e(bht,{variant:"secondary",size:"md",className:"sf-blogsource-action",onClick:()=>e.send("storefront-editor:open-product",{slug:r.slug,name:r.name}),children:u("Edit product \u270E")}),l5e("p",{className:"es-field-hint",children:u("Price and details come from the product record \u2014 edit them in the Products database and this block updates to match. The name follows the product\u2019s design name unless it\u2019s overridden per storefront in {place}.",{place:u("Storefront \u2192 Catalog")})})]})}import{useEasel as vht}from"efficient-easel/easel";import{SettingsField as kht,InertHint as d5e}from"efficient-easel/panel";import{FieldSelect as Sht}from"efficient-easel/fields";import{FinishIcon as Tht}from"efficient-easel/icons";import{jsx as uT,jsxs as Eht}from"react/jsx-runtime";function EG({value:e,onChange:t}){let o=tx(),{selectedItem:n}=vht(d=>d),r=n?.props?.code??"",a=o===null,i=(o??[]).find(d=>d.slug===r)?.finishes??[],s=i.filter(nw).map(d=>d.name),l=s.includes(e??"")?e:"";return Eht("div",{children:[uT(kht,{label:u("Finish"),icon:uT(Tht,{}),hint:u("Pinning one overrides the section\u2019s Cover image."),children:uT(Sht,{value:l,ariaLabel:u("Finish"),onChange:t,readOnly:a||i.length===0,options:[{label:a?u("Loading\u2026"):i.length===0?u("No finishes on this product"):u("Default (the product's default finish)"),value:""},...i.map(d=>({label:d.src?d.name:u("{name} \u2014 no image",{name:d.name}),value:d.name,disabled:!d.src}))]})}),!a&&i.length===0&&r&&uT(d5e,{children:u("This product has no finishes yet, so its card falls back to the product image \u2014 or an empty placeholder when it has none. Add finishes to the product record, then give each one an image.")}),!a&&i.length>0&&s.length===0&&uT(d5e,{children:u("None of this product\u2019s finishes has an image, so none can be shown on the card. Add an image to a finish on the product record to pick it here.")})]})}import{useEffect as Pht,useMemo as _ht,useState as c5e}from"react";import{InertHint as Cht}from"efficient-easel/panel";import{jsx as QI,jsxs as Rht}from"react/jsx-runtime";function PG({value:e,onChange:t}){let[o,n]=c5e(null),[r,a]=c5e(null);Pht(()=>{let g=!1;return Jn().then(h=>{g||n(h)}),gi().then(h=>{g||a(h)}),()=>{g=!0}},[]);let i=_ht(()=>o&&e?o.find(g=>g.slug===e)??null:null,[o,e]),{category:s,setCategory:l,categoryNames:d,filtered:c}=sp(o,r,i),p=o===null,m=JI(),f=m!==null;return Rht("div",{children:[f&&QI(Cht,{children:zi(u("Disabled because this grid\u2019s {source} is set to \u201C{name}\u201D. The grid fills itself from that source automatically. To pick wheels here, set {source} back to \u201CManual\u201D.",{name:m??""}),{source:QI("strong",{children:u("Product content")})})}),QI("div",{className:f?"sf-locked":void 0,children:QI(Rm,{category:s,onChange:l,categoryNames:d,readOnly:p||f,products:c,allProducts:o??[],product:e??"",onProductChange:t,productReadOnly:p||f,emptyLabel:p?u("Loading\u2026"):c.length===0?u("No products in this category"):u("Select a product\u2026")})})]})}import{jsx as _G}from"react/jsx-runtime";var Oht={all:[{not:{context:"parent.source.slug",set:!0}},{field:"code",set:!0}]},p5e={fields:Le({code:{type:"custom",render:({value:e,onChange:t})=>_G(PG,{value:e,onChange:t})},finish:{type:"custom",render:({value:e,onChange:t})=>_G(EG,{value:e,onChange:t})},_editProduct:{type:"custom",render:()=>_G(TG,{})}},[[["finish","_editProduct"],Oht]])};import{EyeIcon as Nht,HashIcon as Lht,ColumnsIcon as Aht}from"efficient-easel/icons";import{group as m5e}from"efficient-easel/screen/lib/document/box-fields";import{jsx as CG}from"react/jsx-runtime";var Iht={not:{field:"relationship",in:_m.filter(e=>e.to==="tyre").map(e=>e.key),default:Qi}},u5e={fields:{_gHeader:m5e("Header"),num:U("Number",bn.num),title:q("Heading",W.sectionHeading),description:q("Body",W.body),template:es.template,_gLayout:m5e("Grid"),relationship:ne("Show",CG(Nht,{}),CPe,Qi),cardCount:ae("Cards to show",CG(Lht,{}),nG,sT,1,iT),columns:ae("Columns",CG(Aht,{}),2,4,1,3)},resolveFields:(e,{fields:t,parent:o})=>it(_i(t,RPe,Iht),e.props.headPlacement,st.RelatedProducts.headRows)};import{IconBeforeTextIcon as Fht,SearchIcon as Bht,StylesIcon as Hht,TypeIcon as Dht}from"efficient-easel/icons";import{group as Mht,phoneTwinFields as zht}from"efficient-easel/screen/lib/document/box-fields";import{jsx as e3}from"react/jsx-runtime";var Wht={icon:e3(Bht,{size:16}),text:e3(Dht,{size:16}),icon_text:e3(Fht,{size:16})},Uht=[...ey,{label:"Icon and text",value:"icon_text"}].map(e=>({...e,picture:Wht[e.value]})),f5e={fields:{_gStyle:Mht("Style"),...zht("style",_e("Show as",e3(Hht,{}),Uht,"icon")),phonePlace:uc("menu")}};var h5e={"haste-ii":{lugs:5,sizes:[18,19,20],widths:[8,8.5,9.5,10],pcds:["5\xD7112-114.3","5\xD7120"],etRange:[33,42],centreBores:[72.6,73.1],loadRating:"690 kg / 1,520 lbs",cap:"CP595AL68",bumpProfile:"EH2+",rimProfile:"32\xD715\xD760\xB0"},"force-6":{lugs:6,sizes:[20,22,24],widths:[9,9.5,10],pcds:["6\xD7135","6\xD7139.7","6\xD7135-139.7"],etRange:[20,25],centreBores:[87.1],loadRating:"880 kg / 1,940 lbs",cap:"CP506AL82",bumpProfile:"H2",rimProfile:"34\xD716\xD760\xB0"},"speed-ii":{lugs:5,sizes:[18,19,20],widths:[8,8.5,9.5,10],pcds:["5\xD7112-114.3","5\xD7120"],etRange:[33,42],centreBores:[72.6,73.1],loadRating:"690 kg / 1,520 lbs",cap:"CP595AL68",bumpProfile:"EH2+",rimProfile:"32\xD715\xD760\xB0"},"vortex-ii":{lugs:5,sizes:[18,19,20],widths:[8,8.5,9.5,10],pcds:["5\xD7112-114.3","5\xD7120"],etRange:[35,42],centreBores:[72.6,73.1],loadRating:"690 kg / 1,520 lbs",cap:"CP595AL68",bumpProfile:"EH2+",rimProfile:"32\xD715\xD760\xB0"},"vector-iii":{lugs:5,sizes:[18,19,20,22],widths:[8,8.5,9.5,10,10.5],pcds:["5\xD7112-114.3","5\xD7120"],etRange:[32,42],centreBores:[71.5,72.6,73.1],loadRating:"690 kg / 1,520 lbs",cap:"CP595AL68",bumpProfile:"EH2+",rimProfile:"32\xD715\xD760\xB0"},"blitz-ii":{lugs:5,sizes:[18,19,20,22],widths:[8,8.5,9.5,10,10.5],pcds:["5\xD7112-114.3","5\xD7120"],etRange:[38,42],centreBores:[71.5,72.6,73.1],loadRating:"690 kg / 1,520 lbs",cap:"CP595AL68",bumpProfile:"EH2+",rimProfile:"32\xD715\xD760\xB0"},"thrust-ii":{lugs:5,sizes:[18,19,20,22],widths:[8,8.5,9.5,10,10.5],pcds:["5\xD7112-114.3","5\xD7120"],etRange:[33,42],centreBores:[71.5,72.6,73.1],loadRating:"690 kg / 1,520 lbs",cap:"CP595AL68",bumpProfile:"EH2+",rimProfile:"32\xD715\xD760\xB0"},"torque-ii":{lugs:5,sizes:[18,19,20],widths:[8,8.5,9.5,10],pcds:["5\xD7112-114.3","5\xD7120"],etRange:[42,42],centreBores:[72.6,73.1],loadRating:"690 kg / 1,520 lbs",cap:"CP506AL68",bumpProfile:"EH2+",rimProfile:"32\xD715\xD760\xB0"},"turbine-ii":{lugs:5,sizes:[20,22],widths:[8.5,10,10.5],pcds:["5\xD7112-114.3","5\xD7120"],etRange:[35,42],centreBores:[71.5,72.6,73.1],loadRating:"880 kg / 1,940 lbs",cap:"CP506AL68",bumpProfile:"EH2+",rimProfile:"32\xD715\xD760\xB0"},blitz:{lugs:5,sizes:[18,19,20],widths:[8,8.5,9.5,10],pcds:["5\xD7112-114.3","5\xD7120"],etRange:[38,42],centreBores:[72.6,73.1],loadRating:"690 kg / 1,520 lbs",cap:"CP595AL68",bumpProfile:"EH2+",rimProfile:"32\xD715\xD760\xB0"},"frixion-5":{lugs:5,sizes:[18,19,20],widths:[8,8.5,9.5,10],pcds:["5\xD7112-114.3","5\xD7120"],etRange:[35,42],centreBores:[72.6,73.1],loadRating:"690 kg / 1,520 lbs",cap:"CP595AL68",bumpProfile:"EH2+",rimProfile:"32\xD715\xD760\xB0"},"frixion-6":{lugs:6,sizes:[20,22,24],widths:[9,9.5,10],pcds:["6\xD7135","6\xD7139.7","6\xD7135-139.7"],etRange:[20,25],centreBores:[87.1],loadRating:"690\u2013880 kg / 1,520\u20131,940 lbs",cap:"CP506AL82",bumpProfile:"EH2+",rimProfile:"34\xD716\xD760\xB0"},rotor:{lugs:5,sizes:[20,22],widths:[8.5,9,10,10.5],pcds:["5\xD7112-114.3","5\xD7115","5\xD7120","5\xD7127"],etRange:[15,40],centreBores:[71.5,72.6,73.1],loadRating:"880 kg / 1,940 lbs",cap:"CP509PS73",bumpProfile:"EH2+",rimProfile:"32\xD715\xD760\xB0"},"vector-ii":{lugs:5,sizes:[19,20],widths:[8.5,9.5,10],pcds:["5\xD7112-114.3","5\xD7120"],etRange:[38,42],centreBores:[72.6,73.1],loadRating:"880 kg / 1,940 lbs",cap:"CP506AL68",bumpProfile:"EH2+",rimProfile:"32\xD715\xD760\xB0"},torque:{lugs:5,sizes:[18,19,20],widths:[8,8.5,9.5,10],pcds:["5\xD7112-114.3","5\xD7120"],etRange:[35,42],centreBores:[72.6,73.1],loadRating:"690 kg / 1,520 lbs",cap:"CP506AL68",bumpProfile:"EH2+",rimProfile:"32\xD715\xD760\xB0"}};function g5e(e){return Object.hasOwn(h5e,e)?h5e[e]:void 0}var OG=[{id:"selection",label:"Your Selection",prop:"showSelectionRow"},{id:"size",label:"Size",prop:"showSizeRow"},{id:"wheelSpec",label:"Wheel Spec",prop:"showWheelSpecRow"}];function t3(e){return OG.filter(t=>e[t.prop]===!1).map(t=>t.id)}var NG={id:"empty",label:"Empty rows",prop:"showEmptyRows"},LG=e=>e[NG.prop]===!1;function fT(e,t){return t.length?e.filter(o=>!o.own||!t.includes(o.own)):e}function Yf(e){return e&&e.trim()?e:"\u2014"}function b5e(e){return $z(e[0]).circleText||"\u2014"}function w5e(e,t,o,n,r){let a=iy(r?.boltPattern).holes,i=a!=null&&a>0?a:e.lugs,s=q2(i),l=e.pcds.length?e.pcds.join(" \xB7 "):"\u2014",d=e.centreBores.length?`${e.centreBores.join(" / ")} mm`:"\u2014",c=e.etRange.length>=2?SR(e.etRange[0],e.etRange[1]):"\u2014",p=n??"",m=r?aS(r):"\u2014";return{rows:[{label:"Your Selection",value:"\u2014",accent:!0,own:"selection"},{label:"Finish",value:o,fieldKey:"wheel_finish_ref"},{label:"Size",value:p,own:"size"},{label:"Wheel Spec",value:m,own:"wheelSpec"},{label:"Lug Count",value:Yf(s&&`${s}-lug`),fieldKey:"holes"},{label:"Bolt Pattern",value:l,fieldKey:"bolt_pattern"},{label:"Offset (ET)",value:c,fieldKey:"et"},{label:"Process",value:Yf(t),fieldKey:yw},{label:"Centre Bore",value:d,fieldKey:"center_bore"},{label:"Load Rating",value:Yf(e.loadRating),fieldKey:"load_rating"},{label:"Bump Profile",value:Yf(e.bumpProfile),fieldKey:"hump"},{label:"Rim Profile",value:Yf(e.rimProfile),fieldKey:"flange"},{label:"Cap Code",value:Yf(e.cap),fieldKey:"cap_code"}],size:p}}function RG(e){return e.length?e[Math.ceil(e.length/2)-1]:void 0}function Ght(e,t){let o=e?.diameter??RG(t?.sizes??[]),n=e?.width??RG(t?.widths??[]),r=t?.etRange??[],[a,i]=r,s=e?.et??(r.length>=2&&a===i?a:void 0),l=d=>Yf(d!=null?Hn(d):void 0);return{diameter:l(o),width:l(n),offset:l(s)}}function x5e(e,t){let o=e?.centreBore??RG(t.centreBores);return{...Ght(e,t),bore:Yf(o!=null?`${o} mm`:void 0)}}function y5e(e){return{slug:e.slug,name:e.name,process:e.process,spokes:e.spokes,mesh:e.mesh,spec:e.spec??null,finishes:e.finishes.map(t=>({name:t.name,image:t.src||t.angles?.[0]||null})),coverImage:e.coverImage??null,variants:e.variants}}function Yy(e,t,o){let n=e?.spec;if(!e||!n)return{rows:[],diagram:null};let r=e.finishes.find(c=>c.name===t)??e.finishes[0],a=cw(e.variants??[],r?.name,o),{rows:i,size:s}=w5e(n,e.process,r?.name??"\u2014",o,a),l=x5e(a,n),d={wheelName:e.name,imageSrc:r?.image??e.coverImage??null,...l,holes:q2(n.lugs),pcd:b5e(n.pcds),spokes:e.spokes,mesh:e.mesh};return{rows:i,diagram:d}}function o3(e,t,o){let n=QA(e),r=g5e(e);if(!n||!r)return{rows:[],diagram:null};let a=Ny(e),i=n.finishes.find(p=>p.name===t)??n.finishes[0],{rows:s,size:l}=w5e(r,n.process,i?.name??"\u2014",o,void 0),d=x5e(void 0,r),c={wheelName:n.name,imageSrc:i?.angles?.[0]??i?.src??null,...d,holes:a[0]?.holes?.toString()??q2(r.lugs),pcd:a[0]?.pcd??b5e(r.pcds),spokes:n.spokes,mesh:n.mesh};return{rows:s,diagram:c}}import{useEffect as $ht,useMemo as Kht,useState as Vht}from"react";import{useEaselHost as Yht}from"efficient-easel/screen/lib/host";import{jsx as AG,jsxs as jht}from"react/jsx-runtime";function v5e(e){return{slug:e.slug,name:e.name,process:e.process,spokes:e.spokes,mesh:e.mesh,spec:e.spec,finishes:e.finishes.map(t=>({name:t.name,image:ms(t.angles?.[0]??t.src)??null}))}}function IG({value:e,onChange:t}){let o=Yht(),{rows:n,loading:r,refreshing:a,errored:i,refresh:s}=Tx({load:Jn,resolve:(y,S)=>y.find(E=>E.slug===S.slug),snapshot:v5e,value:e,onChange:t}),[l,d]=Vht(null);$ht(()=>{let y=!1;return gi().then(S=>{y||d(S)}),()=>{y=!0}},[]);let c=Kht(()=>n&&e?.slug?n.find(y=>y.slug===e.slug)??null:null,[n,e?.slug]),{category:p,setCategory:m,categoryNames:f,filtered:g}=sp(n,l,c),h=!!e?.slug&&n!==null&&!c,w=y=>{if(!y){t(null);return}let S=(n??[]).find(E=>E.slug===y);S&&t(v5e(S))},b=()=>{e?.slug&&o.send("storefront-editor:open-product",{slug:e.slug,name:e.name})},k=!!e?.spec,x=i?"error":a?"loading":"idle",v=i?u("Couldn\u2019t reach the product catalog."):a?u("Syncing from the catalog\u2026"):h?u("Linked to \u201C{name}\u201D \u2014 no longer in the catalog.",{name:e?.name??""}):k?u("Linked to \u201C{name}\u201D \xB7 every spec row follows the product.",{name:e?.name??""}):u("Linked to \u201C{name}\u201D \u2014 this product has no spec data yet.",{name:e?.name??""});return jht("div",{children:[AG(Rm,{category:p,onChange:m,categoryNames:f,readOnly:r,products:g,allProducts:n??[],product:e?.slug??"",onProductChange:w,productReadOnly:r,emptyLabel:r?u("Loading\u2026"):u("None (write the rows yourself)"),extraOptions:h?[{label:u("{name} (unavailable)",{name:e.name}),value:e.slug}]:[]}),e?.slug?AG(ll,{status:x,statusText:v,onRefresh:s,busy:a,edit:{label:u("Edit product \u270E"),onClick:b},hint:u("Every spec row (lug count, bolt pattern, offset, center bore, load rating, bump profile\u2026) comes from the product record \u2014 edit its part numbers in the Products database and this table updates to match. You still choose which finish to picture and an optional size.")}):AG("p",{className:"es-field-hint",children:u("Pick a product to fill the spec table from the catalog, or keep \u201CNone\u201D to write the rows yourself.")})]})}import{ProductFieldIcon as qht,FinishIcon as S5e,DiagramIcon as Xht}from"efficient-easel/icons";import{group as hT}from"efficient-easel/screen/lib/document/box-fields";var Bd={num:W.sectionNumber,title:"Specifications *table.*",description:W.body},FG={template:Sn()},k5e={ownPad:ts,label:"Spec Table",fields:FG,defaultProps:{dynamic:!1,num:"",title:"",description:"",source:null,finish:"",size:"",showDiagram:!0,rows:[]}};import{jsx as b0}from"react/jsx-runtime";var Zht="Size (blank = none selected)",Jht=[{id:"euLabel",label:"EU tyre label"}],gT=[...OG,NG];function Qht(){let e=Bre(),t=Pre(),o=gT.some(n=>e[n.prop]===!1);return b0(zh,{parts:gT,changed:o,shown:n=>e[gT.find(r=>r.id===n)?.prop??""]!==!1,onPress:(n,r)=>{let a=gT.find(i=>i.id===n);a&&t({[a.prop]:r?void 0:!1})},onReset:()=>t(Object.fromEntries(gT.map(n=>[n.prop,void 0])))})}var egt=new Set([...BC("Content"),"_gDynamic","dynamic","_gHeader","num","title","description","_gDiagram","showDiagram","showEuLabel","showSelectionRow","template",...Vb,...Yb,...jb,...qb]),tgt={not:Ad},n3={any:[{all:[ai("source.slug"),ai("source.spec")]},{all:[{not:ai("source.slug")},ai("wheel")]}]},ogt={any:[{all:[ep,{not:VA}]},n3]},T5e={fields:Le({...FG,_gDynamic:hT("Product page"),dynamic:oe("Connect to product data",!1,b0(qht,{})),_gHeader:hT("Header"),num:U("Number",Bd.num),title:q("Heading",Bd.title),description:q("Body",Bd.description),_gData:hT("Product"),source:Uo(IG),finish:ne("Finish",b0(S5e,{}),[],""),size:{type:"text",label:Zht},_gDiagram:hT("Diagram"),showDiagram:oe("Dimension diagram",!0,b0(Xht,{})),showEuLabel:{type:"custom",render:({value:e,onChange:t})=>b0(zh,{parts:Jht,changed:e===!0,shown:()=>e===!0,onPress:(o,n)=>t(n),onReset:()=>t(!1)})},showSelectionRow:{type:"custom",render:()=>b0(Qht,{})},_gRows:hT("Rows"),rows:{type:"array",label:"Rows",arrayFields:{label:Q("Label"),value:Q("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||e?.value||"Row"}},[[["_gDynamic","dynamic"],Cm],[["finish","size"],n3],[["_gDiagram","showDiagram"],{any:[ep,n3]}],[["_gRows","rows"],{not:n3}],[["showEuLabel"],{all:[ep,z_e]}],[["showSelectionRow"],ogt],[["_gDiagram","showDiagram","showEuLabel"],Ia]]),resolveFields:(e,{fields:t,parent:o})=>{let n=e.props,r=Tr(),a=c=>it(c,e.props.headPlacement,st.SpecTable.headRows),i=n.source,s=!i?.slug&&typeof n.wheel=="string"?n.wheel:"",l=t;if(!(r&&n.dynamic)&&(i?.slug&&i.spec||s)){let c=i?.slug?i.finishes.map(m=>m.name):(QA(s)?.finishes??[]).map(m=>m.name),p=[{value:"",label:"Default (first finish)"},...c.map(m=>({value:m,label:m}))];l={...l,finish:ne("Finish",b0(S5e,{}),p,"")}}let d=Object.keys(l).filter(c=>!egt.has(c));return a(Le(l,[[d,tgt]]))},showWhenFacts:{...tp,...W_e,...YA}};import{group as ngt}from"efficient-easel/screen/lib/document/box-fields";var E5e={fields:{_gStyle:ngt("Style"),phonePlace:uc("menu")}};import{group as BG}from"efficient-easel/screen/lib/document/box-fields";var rgt={link:"Know your size? Pick it below"},P5e={fields:{_gHeader:BG("Header"),num:U("Number",bn.num),title:U("Heading",W.sectionHeading),description:q("Body",W.body),_gCta:BG("Call to action"),escapeText:U("Button",rgt.link),escapeHref:Ve("Button link"),_gStyle:BG("Style"),..._f},resolveFields:(e,{fields:t,parent:o})=>it(t,e.props.headPlacement,st.TyreFitment.headRows)};import{group as agt}from"efficient-easel/screen/lib/document/box-fields";var _5e={fields:{_gHeader:agt("Header"),num:U("Number",bn.num),title:U("Heading",W.sectionHeading),description:q("Body",W.body)},resolveFields:(e,{fields:t,parent:o})=>it(t,e.props.headPlacement,st.TyreSizes.headRows)};var C5e={fields:{}};var R5e={fields:{}};import{ButtonIcon as igt}from"efficient-easel/icons";import{jsx as sgt}from"react/jsx-runtime";var O5e={fields:{[my]:Qc(ne("Look",sgt(igt,{}),[{label:"Spaced capitals",value:"capitals"},{label:"Solid",value:"solid"}],Nf),u("Solid is the site's button in normal case, 48 px tall."))}};import{CaseCapitalizedIcon as hgt,DollarIcon as ggt,ListIcon as bgt,TagIcon as wgt}from"efficient-easel/icons";var lgt="calculated at checkout";function N5e(e){if(!e||!e.chargeTax)return null;let t=(e.taxName??"").trim();return t?e.taxDisplay==="inclusive"?`incl. ${t}`:e.taxDisplay==="exclusive"?e.taxRate==null?`+ ${t}, ${lgt}`:`+ ${t}`:null:null}function HG(){return N5e(Lt({optional:!0})?.activeCountry)}import{Fragment as L5e,jsx as Ir,jsxs as jy}from"react/jsx-runtime";var DG=gt("ProductCard"),bT=["from","From"];function MG(e,t){return t==="From"&&e.startsWith(iR)?pw+e.slice(iR.length):e}function dgt(e,t){if(e.kind==="tyre"){let l=Up(Eu(e.tyre.prices,e.currency),null);return{was:null,amount:Fse(l,e.currency,iR),note:l.priced?Ase:null,priced:l.priced}}let{wheel:o,currency:n,price:r,sel:a}=e,i=Up(o.prices[n],o.msrpPrices?.[n]),s=t.setTotal&&r.priced&&r.setTotal!=null&&a.selectedVariant?`${dw(a.selectedVariant)} \xB7 ${ba(r.setTotal,n)}`:null;return{was:t.wasFollowsSize?dR(r,n):Bse(i,n),amount:iTe(V2(r,n),r.priced),note:s,priced:r.priced}}var wT=[{label:"Own label",value:"label"},{label:"In the line",value:"line"}],jf=[{label:"Price",value:"price"},{label:"Set total",value:"set"}];function cgt({state:e,priceWord:t}){let o=e.setLine;return o?jy(z,{"data-set-total":"",className:"flex items-baseline justify-between gap-4 border-t border-line pt-4 text-[length:var(--size-label,13px)]",children:[Ir("span",{className:"text-fg-dim",children:o.label}),Ir("span",{className:"text-[length:var(--size-body,16px)] font-medium text-fg",children:MG(o.total,t)})]}):null}function pgt({state:e,region:t,look:o={}}){let n=o.unitWords==="line"&&e.unitLabel!=null,r=MG(e.amount,o.priceWord),a=HG(),i=jy(z,{className:"flex items-baseline gap-5 border-t border-line pt-[18px]",children:[e.msrpLabel&&Ir("div",{className:"font-mono text-[length:var(--size-label,15px)] text-fg-dim line-through",children:e.msrpLabel}),Ir("div",{className:"font-heading2 text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))] font-bold leading-none tracking-[-0.01em] text-fg",...Ol(t,"price"),children:Ir(Nl,{region:t,at:"price",children:n?`${r} ${e.unitLabel}`:r})}),e.unitLabel&&!n&&Ir("div",{className:"font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:e.unitLabel}),e.unitLabel&&a&&Ir("div",{className:"font-mono text-[length:var(--size-label,13px)] text-fg-dim","data-tax-note":"",children:a}),e.packBadge&&o.setBadge!==!1&&Ir("div",{className:"ml-auto border border-accent px-3 py-2 font-mono text-[length:var(--size-label,13px)] font-bold uppercase tracking-[0.18em] text-accent",style:{background:"color-mix(in oklab, var(--accent) 14%, transparent)"},children:e.packBadge})]});return Ir(Ll,{region:t,sectionType:"ProductPrice",children:i})}function zG({show:e=!0,region:t,heroLook:o,...n}){let r=Mn();return r&&o?.show==="set"?Ir(cgt,{state:r,priceWord:o.priceWord}):r?Ir(pgt,{state:r,region:t,look:o??{priceWord:n.priceWord}}):Ir(ugt,{show:e,...n})}function mgt({state:e,show:t}){if(!t)return null;let o=Dse(e.bundle,e.currency);return jy(L5e,{children:[o&&jy(z,{className:`mt-1 font-mono ${Co.labelLarge}`,...DG("price"),children:[Ir("span",{className:"mr-2 text-fg-dim line-through",children:o.was}),o.amount]}),!e.bundle.inStock&&Ir(z,{className:`mt-1 font-mono ${Co.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:u("Currently unavailable")})]})}function ugt({show:e=!0,...t}){let o=Lr(),n=HG();if(o.kind==="bundle")return Ir(mgt,{state:o,show:e});let r=dgt(o,t),{was:a,note:i,priced:s}=r,l=MG(r.amount,t.priceWord),c=[i,s?n:null].filter(Boolean).join(" \xB7 ")||null;return jy(L5e,{children:[Ir(cf,{children:e?jy("div",{className:`mt-2 font-mono ${Co.labelLarge}`,...DG("price"),children:[a&&Ir("span",{className:"mr-2 text-fg-dim line-through",children:a}),l]}):null}),Ir(cf,{children:e&&c?Ir("div",{className:`mt-[2px] font-mono ${Co.labelSmall} tracking-[0.08em] text-fg-dim`,...DG("price-note"),children:c}):null})]})}function fgt(e,t){if(typeof t!="string")return!1;let o=e?.data;return Sne(o,t).some(n=>n[Uw]===Gw)}var qy={not:{context:"offHeroTemplate",is:!0}},r3={offHeroTemplate:(e,{appState:t})=>!fgt(t,e.props?.id)};import{jsx as a3}from"react/jsx-runtime";var xgt=jf.map(e=>e.value),ygt=qn("show",xgt,jf[0].value,[jf[0].value]),A5e={fields:Le({show:ne("Show",a3(bgt,{}),[...jf],jf[0].value),priceWord:ne("Price word",a3(hgt,{}),bT.map(e=>({label:e,value:e})),bT[0]),unitWords:ne("Unit label",a3(ggt,{}),[...wT],wT[0].value),setBadge:oe("Set badge",!0,a3(wgt,{}))},[[["show"],qy],[["unitWords","setBadge"],{all:[ygt,qy]}]]),showWhenFacts:r3};import{MoveDownIcon as kgt,SortIcon as F5e}from"efficient-easel/icons";import{group as UG}from"efficient-easel/screen/lib/document/box-fields";import{phoneKey as vgt}from"efficient-easel/draw";var WG={template:{type:"slot",allow:[...gme]},[Ua]:{type:"slot",allow:[...Vw]},[Ga]:{type:"slot",allow:[...Yw]},[$a]:{type:"slot",allow:[...Yw]}},I5e={label:"Filters",fields:WG,defaultProps:{look:RS,[vgt("look")]:OS,filtersShown:[...BW],showSort:!0,openingSort:yA,filtersBelow:!1}};import{jsx as GG}from"react/jsx-runtime";var Sgt=Object.entries(pd).map(([e,t])=>({value:e,label:t})),Tgt="follow the product type. Set them in Product types.",B5e={fields:Le({...WG,_gFilters:UG("Filters shown"),filtersShown:$b("Filters shown",FW,"None \u2014 Product types only"),_nFieldFilters:GA(["size","finish"],Tgt),_gBehavior:UG("Behavior"),showSort:oe("Sort",!0,GG(F5e,{})),openingSort:ne("Opening sort",GG(F5e,{}),Sgt,yA),filtersBelow:oe("Also filters the grids below",!1,GG(kgt,{})),_gArrangement:UG("Arrangement"),...LA("look",{options:wA,fallback:RS},{options:xA,fallback:OS})},[[["openingSort"],ai("showSort")]])};import{EraserIcon as Egt,HashIcon as Pgt,SortIcon as _gt}from"efficient-easel/icons";import{group as Cgt}from"efficient-easel/screen/lib/document/box-fields";var $G={template:{type:"slot",allow:[...bme]}},H5e={label:"Filter chips",fields:$G,defaultProps:{showCount:!0,showClear:!0,showSort:!1}};import{jsx as KG}from"react/jsx-runtime";var D5e={fields:{...$G,_gDisplay:Cgt("Display"),showCount:oe("Result count",!0,KG(Pgt,{})),showClear:oe("Clear all",!0,KG(Egt,{})),showSort:oe("Sort",!1,KG(_gt,{}))}};var M5e={fields:{}};import{CropIcon as Zgt,TagIcon as Jgt}from"efficient-easel/icons";import{shadowFieldBuilders as Qgt}from"efficient-easel/screen/lib/document/shadow-fields";import{parseOption as X5e}from"efficient-shell/format";import{useState as Ggt}from"react";import{pictureShadowFilter as $gt}from"efficient-easel/screen/lib/document/shadow-values";function W5e(e){let t=typeof e=="number"?e:Number.parseInt(String(e??""),10);return!Number.isFinite(t)||t<1||t>5?1:Math.trunc(t)}function VG(e,t){if(!e||!t||!Number.isFinite(t)||t<=0)return null;let o=e.lugRenderings?.[String(t)];if(!Array.isArray(o))return null;let n=o.filter(r=>typeof r=="string"&&r.length>0);return n.length>0?n:null}function U5e(e,t){if(!e||!t)return null;let o=e.axisRenderings?.[t];if(!Array.isArray(o))return null;let n=o.filter(r=>typeof r=="string"&&r.length>0);return n.length>0?n:null}function Rgt({carRenderings:e,renderings:t,coverIndex:o,shownFinishName:n,defaultFinishName:r,shownSrc:a}){if(e&&e.length>0){let s=Math.min(Math.max(o,1)-1,e.length-1);return e[s]??a}if(o<=1||!t||t.length===0||!r||n!==r)return a;let i=Math.min(o-1,t.length-1);return t[i]??a}function G5e({overrideSrc:e,hookSrc:t,failed:o}){return e&&!o.has(e)?e:t&&t!==e&&!o.has(t)?t:null}function $5e(e,t,o,n,r){let a=o===void 0?void 0:e.finishes?.find(i=>i.name===o);return Rgt({carRenderings:VG(a,r),renderings:e.defaultFinishRenderings,coverIndex:t,shownFinishName:o,defaultFinishName:e.defaultFinish,shownSrc:n})}import{useState as Ogt}from"react";import{jsx as Xy,jsxs as K5e}from"react/jsx-runtime";var Ngt="(max-width: 640px) 100vw, (max-width: 1100px) 50vw, 33vw";function YG({src:e,alt:t="",spin:o}){let[n,r]=Ogt(!1),a=e||"";return Xy("div",{className:"relative aspect-square w-full overflow-hidden",children:K5e("div",{className:["absolute inset-0 flex items-center justify-center",o?.className].filter(Boolean).join(" "),style:o?.style,children:[Xy("div",{className:"absolute inset-0 z-[1] flex items-center justify-center",children:K5e("div",{className:"relative flex h-[70%] w-[70%] items-center justify-center rounded-full border-2",style:{borderColor:"var(--accent)"},children:[Xy("div",{className:"absolute inset-[10%] rounded-full border",style:{borderColor:"var(--accent)",opacity:.4}}),Xy("div",{className:"absolute left-1/2 top-1/2 h-[18%] w-[18%] -translate-x-1/2 -translate-y-1/2 rounded-full border-2",style:{borderColor:"var(--accent)"}}),Xy("div",{className:"absolute left-1/2 top-1/2 h-[6%] w-[6%] -translate-x-1/2 -translate-y-1/2 rounded-full",style:{background:"var(--accent)"}})]})}),a&&Xy("img",{...go(a,{fallbackWidth:960}),sizes:Ngt,alt:t,className:"absolute inset-0 z-[2] h-full w-full object-contain",style:{display:n?"none":"block"},onError:()=>r(!0)})]})})}import{useState as Lgt}from"react";import{jsx as jG}from"react/jsx-runtime";var Agt="(max-width: 800px) 40vw, 20vw";function qG({brand:e,logo:t}){let[o,n]=Lgt(!1),r=(e??"").trim();if(!r)return null;let a=o?void 0:ms(t??void 0);return jG("div",{className:"sf-card-plate absolute inset-x-0 bottom-0 flex h-1/4 items-center justify-center bg-[var(--card-bg)] px-4 transition-colors duration-200 group-hover:bg-[var(--card-bg-hover)]",children:a?jG("img",{...go(a,{fallbackWidth:640,maxWidth:960}),sizes:Agt,alt:r,className:"max-h-[52%] max-w-[78%] object-contain",draggable:!1,onError:()=>n(!0)}):jG("span",{className:"truncate font-display text-[length:var(--size-body,18px)] font-medium uppercase leading-none tracking-[-0.01em] text-fg",children:r})})}import{MOTION_EASING as Igt}from"efficient-shell/format";var Fgt={className:"",style:void 0};function V5e(e){return e.kind!=="rotate"||e.angle==null?Fgt:{className:"transition-transform group-hover:rotate-[var(--card-spin)]",style:{"--card-spin":`${e.angle}deg`,transitionDuration:`${e.duration}s`,transitionDelay:`${e.delay}s`,transitionTimingFunction:Igt.media}}}import{Fragment as Bgt}from"react";import{jsx as zl}from"react/jsx-runtime";var xT=gt("ProductCard"),Hgt=`border px-2 py-1 font-mono ${Co.labelSmall} uppercase tracking-[0.3em]`,Y5e="absolute right-[18px] top-[18px] z-10",Dgt="absolute left-0 top-4 z-10 pointer-events-none flex flex-col items-start gap-1",Mgt="absolute left-0 top-[52px] z-10 pointer-events-none flex flex-col items-start gap-1",zgt=`bg-accent px-3 py-2 font-mono ${Co.labelSmall} uppercase tracking-[0.24em] text-bg`;function i3({tone:e,children:t}){return zl("span",{className:[Hgt,e==="solid"?"border-accent bg-accent text-bg":"border-accent text-accent"].join(" "),...xT("badge"),children:t})}function yT({show:e=!0,sale:t=!1,numbered:o=!1,axleSets:n=!1,edge:r=!1,setFlags:a=!0}){let i=Lr();if(!ks()||i.kind==="tyre")return null;if(i.kind==="bundle"){let f=vse(i.bundle,i.currency);return f&&r?zl(j5e,{flags:[f]}):f?zl("div",{className:`${Y5e} pointer-events-none flex flex-col items-end gap-1`,...xT("badges"),children:zl(i3,{tone:"solid",children:f})}):null}let{wheel:l,price:d}=i,c=a&&n?i.setWords:null,p=e?l.badge:null,m=[t&&d.onSale?zl(i3,{tone:"solid",children:"Sale"}):null,c?zl(i3,{tone:"outline",children:c}):p?zl(i3,{tone:p==="new"?"solid":"outline",children:p==="new"?"New":"Bestseller"}):null].filter(Boolean);if(r){let f=[t&&d.onSale?"Sale":null,c??(p?p==="new"?"New":"Bestseller":null)].filter(g=>!!g);return f.length?zl(j5e,{flags:f,numbered:o}):null}return m.length>0?zl("div",{className:`${Y5e} pointer-events-none flex flex-col items-end gap-1`,...xT("badges"),children:m.map((f,g)=>zl(Bgt,{children:f},g))}):null}function j5e({flags:e,numbered:t=!1}){return zl("div",{className:t?Mgt:Dgt,...xT("badges"),children:e.map(o=>zl("span",{className:zgt,...xT("badge"),children:o},o))})}import{useEffect as Wgt,useRef as s3,useState as l3}from"react";import{jsx as Ugt}from"react/jsx-runtime";function q5e({src:e,alt:t,sizes:o,failed:n,onFailed:r,near:a,holdEmpty:i=!1}){AL(e);let[s]=l3(e),[l,d]=l3(!1);!l&&e!==s&&d(!0);let c=s3(e),p=s3(new Map);e&&p.current.set(e,t);let[m,f]=l3([]),g=s3(new Map),h=I=>{for(let D of g.current.get(I)??[])D();g.current.delete(I),f(D=>D.filter(F=>F!==I))},w=s3(null);w.current=a?e:null;let b=I=>Lz(I,o).catch(D=>{if(I!==w.current)throw D;return new Promise(F=>{g.current.set(I,[...g.current.get(I)??[],F]),f(A=>A.includes(I)?A:[...A,I])})}),k=!e&&i&&!!c.current&&!n.has(c.current),[x,v]=l3(!1);Wgt(()=>{if(!k){v(!1);return}let I=setTimeout(()=>v(!0),oS);return()=>clearTimeout(I)},[k]);let y=e??(k&&!x?c.current:null),S=Az(l&&a&&y?[y]:[],a?y??void 0:void 0,b),E=a?S.drawn:y??void 0,T=!c.current&&l&&a&&!!E&&!S.settled,_=E&&!n.has(E)&&!T?E:null;c.current=_;let P=m.length>0?Ugt(NL,{pictures:m.map(I=>({src:I,sizes:o,onLoad:()=>h(I),onError:()=>{r(I),h(I)}}))}):null;return _?{src:_,alt:p.current.get(_)??t,trial:P}:{src:null,alt:t,trial:P}}import{Fragment as d3,jsx as tn,jsxs as qf}from"react/jsx-runtime";var Hd=gt("ProductCard"),XG=[{label:"Auto",value:"auto"},{label:"Always",value:"always"}],Kgt=e=>X5e(XG.map(t=>t.value),"auto",e),Vgt=["well","full"],ZG="well",JG=e=>X5e(Vgt,ZG,e);function Ygt({children:e}){return tn("div",{className:"h-full w-full transition-transform duration-500 motion-safe:group-hover:scale-[1.03]",children:e})}function QG({fill:e,badge:t,children:o}){let n=B2(e);return qf("div",{className:`sf-card-image relative aspect-[4/3] overflow-hidden${n?"":" bg-surface"}`,style:n?{backgroundColor:e}:void 0,...Hd("image-frame"),children:[o,t]})}function e$(e,t){let o=Da();return ZP({[ma]:e},o?.row)??are(t,zb)}function t$(e){let t=Lr();return t.kind==="bundle"?tn(jgt,{state:t,...e}):t.kind==="tyre"?tn(qgt,{state:t,...e}):t.kind!=="wheel"?null:tn(Xgt,{state:t,...e})}function jgt({state:e,imageBackground:t,cardImage:o,showBadge:n,frame:r,swatch:a}){let{bundle:i}=e,{imageSizes:s}=fr(),l=JG(r)==="full",d=i.components.length,c=i.image?l?tn(Qs,{alt:i.name,src:i.image,fill:!0,sizes:s,className:"object-cover",draggable:!1,...Hd("image")}):tn(Qs,{alt:i.name,src:i.image,width:1e3,height:1e3,sizes:s,className:"block h-full w-full object-cover",draggable:!1,...Hd("image")}):tn("div",{className:"flex h-full w-full items-center justify-center font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-fg-dim",children:ar("{n} piece","{n} pieces",d,{})}),p=tn(Ygt,{children:c}),m=e$(a,t),f=n!==!1?tn(yT,{edge:l}):null;return tn(z,{style:sl(o),...Hd("image-block"),children:l?tn(QG,{fill:m,badge:f,children:p}):qf(d3,{children:[f,tn(py,{image:p,imageBackgroundFill:m})]})})}function qgt({state:e,imageBackground:t,cardImage:o,indexBadge:n,frame:r,swatch:a}){let{tyre:i}=e,{imageSizes:s}=fr(),l=e$(a,t),d=j6(n),c=d!=="off"?tn("span",{"aria-hidden":!0,"data-format":d,className:`${Bb} ${Hb}`,...Hd("card-number")}):null,p=tn(am,{image:i.image,className:"h-full w-full",sizes:s,showBackground:!1}),m=tn(qG,{brand:i.brand,logo:i.brandLogo});return tn(z,{style:sl(o),...Hd("image-block"),children:JG(r)==="full"?qf(QG,{fill:l,badge:c,children:[p,m]}):qf(d3,{children:[c,tn(py,{image:p,imageBackgroundFill:l,plate:m})]})})}function Xgt({state:e,imageBackground:t,cardImage:o,coverIndex:n,indexBadge:r,showBadge:a,setFlags:i,frame:s,swatch:l,shadow:d,shadowColor:c,shadowOn:p}){let{wheel:m,sel:f}=e,{hover:g,imageSizes:h,fit:w,rules:b}=fr(),k=V5e(g),x=$5e(m,W5e(n),f.finish?.name,f.shownSrc,w?.holes),[v,y]=Ggt(()=>new Set),S=K=>{f.pictureFailed(K),y(X=>X.has(K)?X:new Set(X).add(K))},E=G5e({overrideSrc:x,hookSrc:f.shownSrc,failed:v}),T=m.rendersHaveAlpha===!0||Kgt(p)==="always"?$gt(d,c):null,_=T?{...k.style,filter:T}:k.style,P=(K,X)=>tn(Qs,{alt:X,src:K,width:1e3,height:1e3,sizes:h,className:`block h-full w-full object-contain ${k.className}`,style:_,draggable:!1,onError:()=>S(K),...Hd("image")},K),I=f.finish?`${m.name} \u2014 ${f.finish.name}`:m.name,D=q5e({src:E,alt:I,sizes:h,failed:v,onFailed:S,near:f.nearScreen,holdEmpty:f.awaitingProbe}),F=qf(d3,{children:[D.src?P(D.src,D.alt):tn(YG,{imageLabel:m.name,spin:k}),D.trial]}),A=j6(r),N=A!=="off",B=e$(l,t),Y=yW("picture",B2(B)?B:void 0);if(JG(s)==="full"){let K=qf(d3,{children:[N?tn("span",{"aria-hidden":!0,"data-format":A,className:`${Bb} ${Hb}`,...Hd("card-number")}):null,tn(yT,{show:a!==!1,numbered:N,sale:b.sale,axleSets:b.axleSets,setFlags:i!==!1,edge:!0})]});return tn(z,{style:sl(o),...Hd("image-block"),children:qf(QG,{fill:B,badge:K,children:[tn("div",{className:"flex h-full w-full items-center justify-center",children:F}),Y]})})}return qf(z,{style:sl(o),...Hd("image-block"),children:[N?tn("span",{"aria-hidden":!0,"data-format":A,className:`${Bb} ${Hb}`,...Hd("card-number")}):null,tn(yT,{show:a!==!1,numbered:N,sale:b.sale,axleSets:b.axleSets,setFlags:i!==!1}),tn(py,{image:F,imageBackgroundFill:B,plate:Y,shadowed:!!T})]})}import{ShadowIcon as e0t}from"efficient-shell/icons/efficient";import{jsx as o$}from"react/jsx-runtime";var{indexBadge:t0t,showBadge:o0t}=Ure(),{shadowField:n0t,shadowColourField:r0t}=Qgt(e=>u(e)),a0t=[{label:"Inset",value:"well"},{label:"Fill to edges",value:"full"}],Z5e={fields:{...Wre(),[ma]:jr("Fill content","colour"),shadow:n0t({label:"Shadow",hint:u("A shadow under the wheel. Needs a picture with a clear background. None keeps the card as it is.")}),shadowColor:r0t({label:"Shadow colour"}),shadowOn:Qc(ne("Shadow on",o$(e0t,{}),[...XG],"auto"),u("Auto shows the shadow only on pictures with a clear background. Always shows it on every wheel picture.")),frame:Qc(ne("Picture fit",o$(Zgt,{}),a0t,ZG),u("Inset keeps the picture inside the card with space around it. Fill to edges runs it to the card's edges.")),indexBadge:t0t,showBadge:o0t,setFlags:Qc(oe("Set flags",!0,o$(Jgt,{})),u("The Front + rear words on a dually set's picture."))},resolveFields:(e,t)=>Ya(t.fields,e,t),showWhenFacts:Va};import{HashIcon as i0t,ListIcon as s0t}from"efficient-easel/icons";import{jsx as J5e}from"react/jsx-runtime";var Q5e={fields:{show:ne("Show",J5e(s0t,{}),[...eA],"all"),sizes:oe("Sizes",!1,J5e(i0t,{}))}};import{CartIcon as l0t,LinkIcon as d0t}from"efficient-easel/icons";import{jsx as eOe}from"react/jsx-runtime";var tOe={fields:{buy:oe("Buy button",!0,eOe(l0t,{})),page:oe("Product page link",!0,eOe(d0t,{}))}};import{BlockBadgeIcon as m0t,BreadcrumbIcon as u0t}from"efficient-easel/icons";import{TitleIcon as c0t}from"efficient-easel/icons";import{jsx as p0t}from"react/jsx-runtime";function c3(e){return Qc(ne("Look",p0t(c0t,{}),[e,{label:"Page title",value:"headline"}],Uu),u("Page title is the large title of a product page. The card look is the small one of a product card."))}import{jsx as oOe}from"react/jsx-runtime";var nOe={fields:Le({[Ui]:c3({label:"Card eyebrow",value:"card"}),[C1]:ne("Show",oOe(u0t,{}),[...p8],m8),[pg]:oe("Badge",!1,oOe(m0t,{}),u("Shows the product's badge after the words."))},[[[C1],qy],[[pg],{all:[qn(Ui,Ww,Uu,["headline"]),qy]}]]),showWhenFacts:r3};import{ListIcon as w0t}from"efficient-easel/icons";import{Fragment as f0t,jsx as n$}from"react/jsx-runtime";function er({label:e,editing:t,onHero:o=!1,children:n}){let r=Mn();return Zc()||o&&r?n$(f0t,{children:n}):t?n$(r$,{label:e}):null}function r$({label:e}){return n$(z,{as:"div","data-host-part-sample":"",className:"opacity-60",children:u(e)})}var a$={label:"SKU",defaultProps:{}};import{jsx as vT,jsxs as b0t}from"react/jsx-runtime";var h0t="data-product-sku",kT=[{label:"SKU and part numbers",value:"sku"},{label:"Product code",value:"code"}];function g0t({region:e,shows:t}){let o=Mn(),n=o?.sku??[],r=t==="code"?o?.designCode??null:null,a=n.length>0?n:r?[r]:[];return a.length===0?null:vT(Ll,{region:e,sectionType:"ProductSku",children:b0t(z,{as:"p",[h0t]:"",className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-fg-dim",children:[t==="sku"?"SKU ":null,vT("span",{...Ol(e,"sku"),children:vT(Nl,{region:e,at:"sku",children:a.join(" / ")})})]})})}var rOe={...a$,render:e=>{let t=!!e.editor?.isEditing;return vT(er,{label:a$.label??"",editing:t,onHero:!0,children:vT(g0t,{shows:kT.find(o=>o.value===e.show)?.value??kT[0].value,region:{nodeId:typeof e.id=="string"?e.id:void 0,partStyles:Oi(e),editing:t}})})}};import{jsx as x0t}from"react/jsx-runtime";var aOe={fields:{show:ne("Show",x0t(w0t,{}),[...kT],kT[0].value)}};import{AccentIcon as y0t,HeightIcon as v0t}from"efficient-easel/icons";import{jsx as iOe}from"react/jsx-runtime";var sOe={fields:Le({[Ui]:c3({label:"Card name",value:"card"}),fixedHeight:Qc(_e("Name height",iOe(v0t,{}),[{label:"Always 2 lines",value:!0},{label:"Fit the name",value:!1}],!0),u("Always 2 lines keeps every name in a row the same height. Fit the name uses only the lines the name needs.")),[cg]:oe("Accent last word",!1,iOe(y0t,{}),u("Shows the last word in italic, in the accent color."))},[[["fixedHeight"],qn(Ui,Ww,Uu,["card"])],[[cg],qn(Ui,Ww,Uu,["headline"])]])};var k0t=[{code:"US",name:"United States"},{code:"GB",name:"United Kingdom"},{code:"AU",name:"Australia"},{code:"CA",name:"Canada"},{code:"IE",name:"Ireland"},{code:"NZ",name:"New Zealand"},{code:"DE",name:"Germany"},{code:"FR",name:"France"},{code:"IT",name:"Italy"},{code:"ES",name:"Spain"},{code:"NL",name:"Netherlands"},{code:"BE",name:"Belgium"},{code:"AT",name:"Austria"},{code:"CH",name:"Switzerland"},{code:"SE",name:"Sweden"},{code:"NO",name:"Norway"},{code:"DK",name:"Denmark"},{code:"FI",name:"Finland"},{code:"PT",name:"Portugal"},{code:"PL",name:"Poland"},{code:"JP",name:"Japan"},{code:"SG",name:"Singapore"},{code:"AE",name:"United Arab Emirates"},{code:"HK",name:"Hong Kong"},{code:"ZA",name:"South Africa"}],lOe=Object.fromEntries(k0t.map(e=>[e.code,e.name]));function dOe(e){return(Object.hasOwn(lOe,e)?lOe[e]:void 0)??e}import{FlagAuIcon as S0t,FlagCaIcon as T0t,FlagEuIcon as E0t,FlagGbIcon as P0t,FlagNzIcon as _0t,FlagUsIcon as C0t,GlobeIcon as R0t}from"efficient-shell/icons/efficient";import{GlobeAltIcon as O0t}from"efficient-shell/icons/efficient-looks";import{Fragment as p3,jsx as ia,jsxs as ST}from"react/jsx-runtime";var i$={US:C0t,CA:T0t,AU:S0t,NZ:_0t,GB:P0t,EU:E0t};function cOe({code:e,width:t}){let o=Object.hasOwn(i$,e)?i$[e]:void 0;return o?ia("span",{"aria-hidden":!0,className:"inline-flex shrink-0 border border-line",children:ia(o,{size:t})}):null}function N0t(e,t){let o=ia(cOe,{code:t.code,width:18});switch(e){case"code_currency":return t.currency?ST(p3,{children:[ia("span",{children:t.code}),ia("span",{"aria-hidden":!0,className:"opacity-50",children:"\xB7"}),ia("span",{children:t.currency})]}):ia("span",{children:t.code});case"globe_code":return ST(p3,{children:[ia(R0t,{size:14,className:"shrink-0"}),ia("span",{children:t.code})]});case"currency":return ia("span",{children:t.currency??t.code});case"flag_code":return ST(p3,{children:[o,ia("span",{children:t.code})]});case"flag":return Object.hasOwn(i$,t.code)?o:ia("span",{children:t.code});default:return ia("span",{children:t.name})}}function pOe(e,t,o){let n=new Map(e.map(r=>[r.code,r]));return(t?.length?t:e.map(r=>r.code)).map(r=>{let a=n.get(r);return{code:r,name:a?.name||dOe(r),currency:a?.currency,url:a?.url||o?.[r]||""}})}var mOe=2;function m3(e){let{countries:t}=Lt();return pOe(t,e).length>=mOe}function w0({urls:e,countries:t,showAs:o=f1}={}){let{country:n,setCountry:r,countries:a}=Lt(),i=pOe(a,t,e),s=i.find(h=>h.code===n)??i[0],l=a0();function d(h){let w=e?Ice(i.find(b=>b.code===h)?.url,window.location.href):null;if(w){window.location.href=w;return}a.some(b=>b.code===h)&&r(h)}let c=epe(o),p=i.map(h=>({value:h.code,label:h.name,meta:h.currency,...c?{lead:ia(cOe,{code:h.code,width:21})}:{}})),m=bc({items:p,value:n,onPick:d});if(!s||i.length<mOe)return null;let f=m.open,g=o==="globe";return ST("div",{ref:m.wrapRef,className:"relative",children:[ia("button",{ref:h=>{m.triggerRef.current=h},type:"button","aria-haspopup":"listbox","aria-expanded":f,"aria-controls":f?m.listId:void 0,"aria-activedescendant":m.activeId,"aria-label":`Region: ${s.name}. Click to change.`,onClick:m.toggle,onKeyDown:m.onTriggerKeyDown,suppressHydrationWarning:!0,...g?{className:NW}:{className:"inline-flex items-center gap-2 whitespace-nowrap border border-fg-dim px-3 py-2 font-mono text-[13px] uppercase tracking-[0.18em] transition-colors hover:border-fg",style:{color:"color-mix(in oklab, currentColor 80%, transparent)"}},children:g?ia(O0t,{size:l.size,strokeWidth:String(l.stroke),"aria-hidden":"true"}):ST(p3,{children:[N0t(o,s),ia("span",{"aria-hidden":!0,className:`text-[11px] opacity-70 transition-transform ${f?"rotate-180":""}`,children:"\u25BE"})]})}),f&&ia(wc,{id:m.listId,tone:"region",ariaLabel:"Choose region",items:p,value:n,focusIdx:m.focusIdx,onFocus:m.setFocusIdx,onPick:m.pick,listRef:m.listRef})]})}import{useEffect as L0t,useRef as A0t,useState as uOe}from"react";import{jsx as fOe}from"react/jsx-runtime";function x0(){let[e,t]=uOe("dark"),[o,n]=uOe(!1),r=A0t(null),a=()=>r.current?.ownerDocument??document;L0t(()=>{let s=a().documentElement,l=()=>t($ae(s));l(),n(!0);let d=new MutationObserver(l);return d.observe(s,{attributes:!0,attributeFilter:[Gae]}),()=>d.disconnect()},[]);function i(){let s=a(),l=e==="dark"?"light":"dark";t(l),Kae(s.documentElement,l),Vae(s,l)}return fOe("button",{ref:r,type:"button",onClick:i,"aria-label":`Switch to ${e==="dark"?"light":"dark"} theme`,"aria-pressed":e==="light",className:"relative inline-flex h-5 w-9 items-center rounded-full border border-line bg-surface-2 p-0.5",children:fOe("span",{className:"block h-3.5 w-3.5 rounded-full bg-accent transition-transform duration-200 ease-out",style:{transform:o&&e==="light"?"translateX(16px)":"translateX(0)"}})})}import{createContext as I0t,useContext as hOe,useEffect as F0t,useMemo as B0t,useState as H0t}from"react";import{jsx as D0t}from"react/jsx-runtime";var s$=I0t(null);function gOe({children:e}){let[t,o]=H0t(!1),n=B0t(()=>({moved:t,setMoved:o}),[t]);return D0t(s$.Provider,{value:n,children:e})}function bOe(e){let t=hOe(s$)?.setMoved;F0t(()=>{if(!(!t||!e))return t(!0),()=>t(!1)},[t,e])}function wOe(){return hOe(s$)?.moved??!1}import{parseOption as xOe}from"efficient-shell/format";import{jsx as rs}from"react/jsx-runtime";var M0t=["header","menu"];function TT(e){return xOe(M0t,"",e)||void 0}var z0t=["icon","text","icon_text"];function yOe({style:e="icon",stylePhone:t,phonePlace:o,editing:n=!1}){let{open:r}=Cw(),a=nf(),i=xOe(z0t,"",t)||void 0,s=!!i||TT(o)==="header";return Wx(a&&!s?"search":null),a?s?rs(z,{as:"span",className:"contents",children:rs(_S,{onClick:n?void 0:r,asText:e==="text",withWord:e==="icon_text",phoneLook:i})}):rs(z,{as:"span","data-phone-menu-tool":"search",className:"contents",children:rs(_S,{onClick:n?void 0:r,asText:e==="text",withWord:e==="icon_text"})}):null}function vOe({style:e="icon",phonePlace:t,editing:o=!1}){let{open:n,totals:r}=Fn(),a=nf(),i=TT(t)==="menu";return Wx(a&&i?"cart":null),a?i?rs(z,{as:"span","data-phone-menu-tool":"cart",className:"contents",children:rs(ES,{onClick:o?()=>{}:n,count:r.sets,asText:e==="text"})}):rs(ES,{onClick:o?()=>{}:n,count:r.sets,asText:e==="text",takesViewHide:!0}):null}function kOe({style:e="icon",phonePlace:t}){let o=nf(),n=TT(t)==="menu";return Wx(o?"account":null),bOe(o&&n),o?n?rs(z,{as:"span","data-phone-menu-tool":"account",className:"contents",children:rs(PS,{asText:e==="text"})}):rs(PS,{asText:e==="text",takesViewHide:!0}):null}function SOe({phonePlace:e}){let t=dhe(),o=TT(e)==="header";return Wx(t&&!o?"theme":null),t?rs(z,{as:"span",...o?null:{"data-phone-menu-tool":"theme"},className:"contents",children:rs(x0,{})}):null}function TOe({showAs:e,phonePlace:t}){let o=m3(),n=TT(t)==="header";return Wx(o&&!n?"region":null),o?rs(z,{as:"span",...n?null:{"data-phone-menu-tool":"region"},className:"contents",children:rs(w0,{showAs:e})}):null}var EOe={label:"Account",defaultProps:{style:"icon"}};import{jsx as W0t}from"react/jsx-runtime";var POe={...EOe,render:({style:e,phonePlace:t})=>W0t(kOe,{style:e,phonePlace:t})};import{phoneKey as G0t}from"efficient-easel/draw";import{hidableText as _Oe}from"efficient-easel/screen/lib/document/hidable";import{jsx as U0t}from"react/jsx-runtime";var f3={frame:()=>0};function Ct(e,t){let{render:o,ownPad:n}=t;return!o||!n?t:{...t,render:a=>{let i={atTop:Xe(e,a,n),inBox:Xe(e,a,f3)};return!i.atTop&&!i.inBox?o(a):U0t(PO,{pad:i,children:o(a)})}}}var u3=(e,t)=>e||t?{atTop:e,inBox:t}:null;function h3(e,t,o,n){let r=s6(e,t,o.both,n),a=s6(e,t,f3,{firstBottom:0,lastTop:0}),i={first:u3(r.first,a.first),second:u3(r.last,a.last),firstOnly:o.firstOnly?u3(Xe(e,t,o.firstOnly),Xe(e,t,f3)):null,secondOnly:o.secondOnly?u3(Xe(e,t,o.secondOnly),Xe(e,t,f3)):null};return Object.values(i).some(Boolean)?i:void 0}import{jsx as $0t}from"react/jsx-runtime";var COe=Ct(Po,{...i_e,render:e=>{let t=jm(e),o=n=>t?void 0:n;return $0t(JW,{titleLevel:e[E_],heading:o(R(e.heading,_y.heading,e.editor)),intro:o(R(e.intro,_y.intro,e.editor)),omitHead:t,askForCar:e.askForCar!==!1,addressQuery:kI(e)||void 0,gateHeading:_Oe(e.gateHeading),gateIntro:_Oe(e.gateIntro),perPage:e.perPage,columns:e.columns,defaultSort:Jh(e.defaultSort),ownerId:typeof e.id=="string"?e.id:"",template:e.template,facetTemplate:e[Ua],railTemplate:e[Ga],railHeadTemplate:e[$a],hover:ri(e,Po),cellLook:e[qc],filterLook:kA(e[NS]),filterLookPhone:DW(e[G0t(NS)]),hiddenFacets:PR(e),showPrice:e.showPrice,showInStock:e.showInStock!==!1,kinds:e.kinds,source:e.source,products:e.products,wheels:e.wheels,fieldUsage:e.fieldUsage,editing:e.editor?.isEditing})}});import{phoneKey as g3,tabletKey as BOe}from"efficient-easel/draw";import{useEffect as J0t,useState as Q0t}from"react";import{Fragment as Y0t,jsx as pp,jsxs as Zy}from"react/jsx-runtime";var ET={headingSmall:"text-[length:var(--size-headingSmall,22px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},K0t="View tyre",V0t="flex flex-col bg-[var(--card-bg)] p-5";function ROe(e,t){let o=e?Lne(e):"";return[V0t,t?"relative":"",o].filter(Boolean).join(" ")}function PT({outline:e,showIndex:t=!1,size:o,specs:n,prices:r,image:a,inStock:i,href:s,linkLabel:l=K0t,imageSizes:d="(max-width: 720px) 100vw, (max-width: 1100px) 50vw, 33vw",fieldUsage:c=Bn,currency:p,formatPrice:m}){let f=Eu(r,p),g=f===null?Tu:m(f),h=zB(c),w=[["load_index","Load index",n.loadIndex],["speed_rating","Speed",n.speedRating],["construction","Construction",n.construction],["tire_type","Type",n.tireType]].filter(([,,x])=>!!x).filter(([x])=>h(x)),b=Zy(Y0t,{children:[pp(am,{image:a,size:o,type:n.tireType,sizes:d}),pp("h3",{className:`mt-4 font-heading3 ${ET.headingSmall} font-medium leading-tight`,children:o}),n.treadPattern?pp("div",{className:`mt-1 font-mono ${ET.labelSmall} uppercase tracking-[0.18em] text-accent`,children:n.treadPattern}):null,w.length>0&&pp("dl",{className:`mt-3 flex flex-col gap-2 font-mono ${ET.labelSmall}`,children:w.map(([x,v,y])=>Zy("div",{className:"flex items-baseline justify-between gap-3",children:[pp("dt",{className:"uppercase tracking-[0.14em] text-fg-dim",children:v}),pp("dd",{className:"text-right text-fg",children:y})]},x))}),Zy("div",{className:`mt-4 flex items-baseline justify-between gap-3 border-t border-line pt-3 font-mono ${ET.labelLarge}`,children:[pp("span",{className:"text-fg",children:g}),pp("span",{style:i?{color:"var(--green)"}:void 0,className:i?void 0:"text-fg-dim",children:Ile(i)})]})]}),k=t?pp("span",{"aria-hidden":!0,className:`${Bb} ${Hb}`}):null;return s?Zy(Be,{href:s,"aria-label":o?`View ${o} tyre`:"View this tyre",className:`group ${ROe(e,t)}`,children:[k,b,Zy("span",{className:`mt-3 inline-flex items-center gap-2 font-mono ${ET.labelSmall} uppercase tracking-[0.2em] text-accent transition-colors group-hover:text-fg`,children:[l,pp("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]})]}):Zy("div",{className:ROe(e,t),children:[k,b]})}import{jsx as j0t,jsxs as q0t}from"react/jsx-runtime";function _T({href:e,label:t}){return q0t(Be,{href:e,"data-view-more":!0,className:"inline-flex items-center gap-3 self-start border-b border-line pb-2 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg transition-colors hover:text-fg-dim",children:[t,j0t("span",{"aria-hidden":!0,children:"\u2192"})]})}import{jsx as mp,jsxs as NOe}from"react/jsx-runtime";function OOe({frameClassName:e,omitHead:t,style:o,children:n}){return e!==void 0?mp("section",{className:e,style:o,children:n}):mp(yt,{className:t?Yr.ownBox:Yr.inline,style:o,children:n})}var l$={2:"grid grid-cols-2 gap-2 max-view-tablet:grid-cols-1",3:"grid grid-cols-3 gap-2 max-view-desktop:grid-cols-2 max-view-tablet:grid-cols-1",4:"grid grid-cols-4 gap-2 max-view-desktop:grid-cols-2 max-view-tablet:grid-cols-1"};function d$({num:e,title:t,description:o,tyres:n,footnote:r,footnoteLinkText:a,footnoteLinkHref:i,viewMore:s,editing:l=!1,frameClassName:d,omitHead:c=!1,columns:p=3,cardImage:m,outline:f,indexBadge:g}){let{currency:h,formatPrice:w}=Lt(),b=n??[],k=Ka("ct"),x=g??hC,v=gC(k,x),y=b.some(T=>!T.image),S=[r,y?dO:null].filter(Boolean).join(" "),E=c?null:mp(Mt,{num:e!=null?L(e):void 0,title:t!=null?te(t,!1):void 0,description:o!=null?L(o):void 0,accent:!0});return b.length===0?l?NOe(OOe,{frameClassName:d,omitHead:c,children:[E,mp("p",{className:"border-t border-line py-6 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim",children:u("No compatible tyres found for this wheel\u2019s sizes yet \u2014 tyres appear automatically when a matching size is active and priced in the catalog.")})]}):null:NOe(OOe,{frameClassName:d,omitHead:c,style:sl(m),children:[v&&mp("style",{children:v}),E,mp("div",{className:`${v?`${k} `:""}${(Object.hasOwn(l$,p)?l$[p]:void 0)??l$[3]}`,children:b.map(T=>mp(PT,{outline:f,showIndex:x!=="off",size:T.size,specs:T.specs,prices:T.prices,image:T.image,inStock:T.inStock,href:lw(T.slug),currency:h,formatPrice:w},T.sku))}),s&&mp("div",{className:"mt-10 flex",children:mp(_T,{href:s.href,label:s.label})}),mp(Od,{text:S,linkText:a,linkHref:i})]})}import{Fragment as Z0t,jsx as c$}from"react/jsx-runtime";function Un({kinds:e,type:t,label:o,editing:n=!1,children:r}){let a=Oo(),i=KRe(),s=a?a.product.kind:n?i:null;return!s||e.includes(s)?c$(Z0t,{children:r}):n?c$(yt,{className:"border-b border-line py-14 max-view-desktop:py-10",children:c$("p",{className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim",children:u("{section} does not apply to {kind}. It is hidden on the live page.",{section:u((Object.hasOwn(OF,t)?OF[t]:void 0)??o??t),kind:X0t(s)})})}):null}function X0t(e){switch(e){case"alloy-wheel":return u("Alloy wheels");case"tyre":return u("Tyres");default:return gs[e]}}import{jsx as Gn,jsxs as FOe}from"react/jsx-runtime";var ebt=ri({},"ProductGrid"),IOe={label:"text-[length:var(--size-label,13px)]"},tbt=Ii;function CT(e){return Gn(Un,{kinds:tbt,type:"RelatedProducts",editing:e.editing,children:Gn(obt,{...e})})}function obt({num:e,title:t,description:o,columns:n=3,cardCount:r,relationship:a=Qi,footnote:i,footnoteLinkText:s,footnoteLinkHref:l,editing:d=!1,omitHead:c=!1,hover:p,ownerId:m="",template:f,cardImage:g,outline:h,indexBadge:w,columnsPhone:b,columnsTablet:k,gap:x,gapPhone:v,cardGround:y,cardWords:S,viewMoreLink:E}){let T={columns:n,columnsPhone:b,columnsTablet:k,gap:x,gapPhone:v,hover:p,ownerId:m,template:f,editing:d,omitHead:c,cardGround:y,cardWords:S},_=Oo(),P=fde(),I=HI(r),D=Ty(a),F=D?l0(D):!1,[A,N]=Q0t([]);if(J0t(()=>{if(_||!d||!F)return;let Z=!1;return Jn().then(V=>{let j=V.length>0?V:mG;Z||N(j)}).catch(()=>{Z||N(mG)}),()=>{Z=!0}},[_,d,F]),!D)return null;let B=c?null:Gn(Mt,{num:e?L(e):void 0,title:te(t||D.heading,!1),description:o?L(o):void 0,accent:!0});if(!l0(D)){if(_&&!QW(D,_.product.kind))return d?Gn(LOe,{relationship:D,cardImage:g}):null;let Z=_?D.resolve(_.product,_.relatedWheels):null,V=Z?.kind==="bundle"?Z.bundles.slice(0,I):[];return V.length===0?d?Gn(AOe,{header:B,omitHead:c,cardImage:g,words:u("Bundles containing this product appear here on a product page.")}):null:Gn(p$,{header:B,cards:{bundles:V},...T})}let Y=DI(D,P),K=E===void 0?Y:"hidden"in E?void 0:{href:Y.href,label:E.label};if(!_)return d?Gn(p$,{header:B,cards:{wheels:A.slice(0,I)},viewMore:K,...T}):null;if(!QW(D,_.product.kind))return d?Gn(LOe,{relationship:D,cardImage:g}):null;let X=D.resolve(_.product,_.relatedWheels);return X.kind==="tyre"?Gn(d$,{omitHead:c,columns:n,cardImage:g,outline:h,indexBadge:w,num:e,title:t||D.heading,description:o,tyres:[...X.tyres].slice(0,I),footnote:i,footnoteLinkText:s,footnoteLinkHref:l,viewMore:K,editing:d}):X.kind!=="alloy-wheel"?null:X.wheels.length===0?d?Gn(AOe,{header:B,omitHead:c,cardImage:g,words:u("Related products appear here on a product page.")}):null:Gn(p$,{header:B,cards:{wheels:[...X.wheels].slice(0,I)},viewMore:K,...T})}function LOe({relationship:e,cardImage:t}){return Gn(yt,{className:"border-b border-line py-14 max-view-desktop:py-10",style:sl(t),children:Gn("p",{className:`font-mono ${IOe.label} uppercase tracking-[0.18em] text-fg-dim`,children:u("\u201C{relationship}\u201D does not apply to this product. It is hidden on the live page.",{relationship:u(e.label)})})})}function AOe({header:e,omitHead:t,cardImage:o,words:n}){return FOe(yt,{className:t?Yr.ownBox:Yr.inline,style:sl(o),children:[e,Gn("p",{className:`border-t border-line py-6 font-mono ${IOe.label} uppercase tracking-[0.18em] text-fg-dim`,children:n})]})}function p$({header:e,cards:t,viewMore:o,columns:n,columnsPhone:r,columnsTablet:a,gap:i,gapPhone:s,hover:l,ownerId:d,template:c,editing:p,omitHead:m,cardGround:f,cardWords:g}){let h=Ka("rp"),w="wheels"in t?t.wheels.length:t.bundles.length;if(w===0)return null;let b=c5(n,r,a),k="bundles"in t,x=k?Ur("ProductGrid",i,"both",s):sA(Ur("ProductGrid",i,"both",s)),v=fy(h),y=Hu(h,b,{cards:w}),S=E=>Gn("div",{className:k?`${h} mt-10 grid${x.className} ${b}`:`${h} grid${x.className} bg-[var(--catalog-grid-bg)] ${b}`,style:x.style,children:E});return FOe(yt,{className:m?Yr.ownBox:Yr.inline,children:[v&&Gn("style",{children:v}),y&&Gn("style",{children:y}),e,Gn(hy,{value:{ownerId:d,Template:c,hover:l??ebt,imageSizes:PL(b,w),fieldUsage:Bn,reserveEyebrow:!1,editing:p,ground:uS(f),words:fS(g)},children:"wheels"in t?Gn(lA,{wheels:t.wheels,children:S}):Gn(DEe,{bundles:t.bundles,children:S})}),o?Gn("div",{className:"mt-10 flex",children:Gn(_T,{href:o.href,label:o.label})}):null]})}import{hidableText as nbt,readHidable as rbt}from"efficient-easel/screen/lib/document/hidable";import{jsx as HOe}from"react/jsx-runtime";function abt(e){let{text:t,hidden:o}=rbt(e);return o?{hidden:!0}:t.trim()?{label:t.trim()}:void 0}var Jy={...DPe,render:e=>{let t=typeof e.id=="string"?e.id:"",o=e.template;if(e.dynamic){let d=We(e.headPlacement)==="own-box",c=p=>d?void 0:p;return HOe(CT,{num:c(R(e.num,bn.num,e.editor)),title:c(R(e.title,W.sectionHeading,e.editor)),description:c(R(e.description,W.body,e.editor)),omitHead:d,columns:typeof e.columns=="number"?e.columns:3,columnsPhone:e[g3("columns")],columnsTablet:e[BOe("columns")],gap:e.gap,gapPhone:e[g3("gap")],cardCount:HI(e.limit),relationship:typeof e.relationship=="string"?e.relationship:Qi,hover:ri(e,wa),ownerId:t,template:o,cardImage:e.cardImage,outline:e.outline,indexBadge:e.indexBadge,cardGround:uS(e.cardGround),cardWords:fS(e.cardWords),viewMoreLink:abt(e.linkText),editing:e.editor?.isEditing})}let n=R(e.linkText,bn.link,e.editor),r=e.source,a=sb(e,"full"),i=We(e.headPlacement)==="own-box",s=d=>i?void 0:d;return HOe(oG,{fewCards:BI.find(d=>d.value===e.fewCards)?.value,cardGround:uS(e.cardGround),cardWords:fS(e.cardWords),gap:e.gap,gapPhone:e[g3("gap")],contentCapped:a.mode==="page",num:s(R(e.num,bn.num,e.editor)),title:s(R(e.title,W.sectionHeading,e.editor)),titleSize:e.titleSize,noTop:i,pads:fd(e),description:s(R(e.description,W.body,e.editor)),link:s(n?{text:n,href:nbt(e.linkHref)||"#"}:void 0),products:e.products,wheels:e.wheels,source:r?.slug?r:void 0,catalog:e.catalog,catalogTotal:e.catalogTotal,firstCountInChips:e[eT]===!0,kinds:e.kinds,fieldUsage:e.fieldUsage,columns:e.columns,columnsPhone:e[g3("columns")],columnsTablet:e[BOe("columns")],limit:nU({limit:e.limit,showAll:e.showAll}),moreProducts:oU(e.moreProducts),perPage:e.perPage,editing:e.editor?.isEditing,hover:ri(e,wa),ownerId:t,template:o})}};var DOe={ownPad:ts,label:"Bundle Products",fields:{template:es.template},defaultProps:{num:"",title:"",description:"",columns:3}};var MOe=Ct("BundleOffer",{...DOe,render:e=>Jy.render(hpe(e).props)});var zOe={label:"Cart",defaultProps:{style:"icon"}};import{jsx as ibt}from"react/jsx-runtime";var WOe={...zOe,render:({style:e,phonePlace:t,editor:o})=>ibt(vOe,{style:e,phonePlace:t,editing:o?.isEditing})};import{useEffect as XOe,useMemo as ZOe}from"react";import{useState as VOe}from"react";import{useEffect as sbt,useRef as lbt}from"react";import{Fragment as dbt,jsx as Qa,jsxs as y0}from"react/jsx-runtime";var up={body:"text-[length:var(--size-body,14px)]",labelSmall:"text-[length:var(--size-label,10px)]",label:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"};function UOe({picker:e,onClose:t}){let{cascade:o}=e,n=lbt(Ps(o.vehicle));return sbt(()=>{let r=Ps(o.vehicle);r&&!n.current&&t(),n.current=r},[o.vehicle,t]),y0("div",{className:"border-t border-line bg-surface px-[var(--sf-site-gutter,40px)] py-4 max-view-tablet:px-4",children:[Qa("div",{className:`mb-3 font-mono ${up.labelLarge} uppercase tracking-[0.32em] text-fg-dim`,children:"Your car \xB7 only wheels that bolt on"}),Qa(Ja,{cascade:o,compact:!0,cellLook:jg}),o.cascadeError&&Qa("p",{className:`mt-3 font-mono ${up.label} uppercase tracking-[0.16em] text-fg-dim`,children:"Vehicle data is unavailable right now \u2014 browse all wheels and we'll help you check fitment at checkout."}),Qa("div",{className:"mt-4 flex flex-wrap items-center gap-3",children:Qa("button",{type:"button",onClick:t,className:`cursor-pointer font-mono ${up.label} uppercase tracking-[0.16em] text-fg-dim underline-offset-4 hover:text-fg hover:underline`,children:"Close"})})]})}var GOe=`flex w-full items-center justify-between gap-4 border-b py-3 text-left ${up.body} transition-colors`;function $Oe({field:e,picker:t,open:o,onOpenRequest:n,onClose:r}){let{cascade:a}=t,i=ky(a),s=PA(a)[e],l=_A(a)[e],d=CA(a)[e],c=RA(a)[e],p=Jc[e],m=uPe(e,a.vehicle),f=c||i[e].placeholder,g=FS(s,i[e].placeholder),h=bc({items:g,value:d,onPick:l,open:o,onOpen:()=>n(m),onClose:r});return y0("div",{ref:h.wrapRef,className:"relative",children:[y0("button",{ref:w=>{h.triggerRef.current=w},type:"button","data-vehicle-field":e,"aria-haspopup":"listbox","aria-expanded":o,"aria-controls":o?h.listId:void 0,"aria-activedescendant":h.activeId,"aria-label":`${p}, ${f} \u2014 pick your ${m}`,onClick:()=>n(m),onKeyDown:h.onTriggerKeyDown,className:`${GOe} ${o?"border-fg text-fg":"border-line"}`,children:[Qa("span",{className:"text-fg-dim",children:p}),Qa("span",{"data-vehicle-value":f,className:`truncate ${c?"text-fg":"text-fg-dim"}`,children:f})]}),o&&Qa(wc,{id:h.listId,tone:"hairline",items:g,value:d,focusIdx:h.focusIdx,onFocus:h.setFocusIdx,onPick:h.pick,listRef:h.listRef})]})}function KOe({picker:e,onOpenRequest:t}){let o=TA(e.cascade.vehicle);if(!o)return null;let n=HS[o];return Qa("button",{type:"button","data-vehicle-next":!0,"aria-label":`${n} \u2014 pick your ${o}`,onClick:()=>t(o),className:`${GOe} border-line text-fg-dim`,children:Qa("span",{"data-vehicle-value":n,children:n})})}function m$({picker:e,total:t}){let{appliedName:o,fit:n,resolving:r,unresolved:a,clear:i}=e;if(!o)return null;let s=sy(n),l=n!==null&&!r&&t===0;return y0("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2 border-t border-line px-[var(--sf-site-gutter,40px)] py-3 max-view-tablet:px-4",children:[y0("span",{className:`inline-flex items-center gap-2 bg-accent px-3 py-2 font-mono ${up.label} uppercase tracking-[0.14em] text-bg`,children:[o,Qa("button",{type:"button",onClick:i,"aria-label":`Clear ${o} and show all wheels`,className:"cursor-pointer leading-none text-bg hover:opacity-70",children:"\u2715"})]}),r?Qa("span",{className:`font-mono ${up.label} uppercase tracking-[0.16em] text-fg-dim`,children:"Checking fitment\u2026"}):a?Qa("span",{className:`font-mono ${up.label} uppercase tracking-[0.16em] text-fg-dim`,children:"We have no fitment data for this car \u2014 showing every wheel"}):Qa(dbt,{children:s.map(d=>d.value!==null?Qa("span",{className:`border border-line px-2 py-1 font-mono ${up.labelSmall} uppercase tracking-[0.14em] text-fg-dim`,children:d.value},d.key):y0("span",{className:`border border-dashed border-line px-2 py-1 font-mono ${up.labelSmall} uppercase tracking-[0.14em] text-fg-dim`,children:[d.name," not published \u2014 not checked"]},d.key))}),l&&y0("span",{className:`font-mono ${up.label} uppercase tracking-[0.16em] text-fg-dim`,children:["No wheels here fit this car \u2014"," ",Qa("button",{type:"button",onClick:i,className:"cursor-pointer uppercase text-accent underline underline-offset-4",children:"show all wheels"})]})]})}var fp="px-[max(var(--sf-site-gutter,40px),calc((100%_-_var(--sf-content-cap,100%))/2_+_var(--sf-site-gutter,40px)))]";import{Fragment as ubt,jsx as kt,jsxs as tr}from"react/jsx-runtime";var Xf=No,YOe=Object.keys(hI),w3={size:vw("diameters","alloy-wheel"),finish:vw("finishes","alloy-wheel")};function jOe(e,t){return Ru(e,o=>Object.hasOwn(w3,String(o.key))?w3[String(o.key)]:void 0,t??[],"filterOrder")}function cbt({processCount:e,sizeCount:t,lugCount:o,finishCount:n,optionsReported:r,fieldUsage:a}){let i=l=>!r||l>eg,s=kR(a??[]);return{process:e>eg,size:s(w3.size)&&i(t),lugs:i(o),finish:s(w3.finish)&&i(n)}}function Qy(e,t){return e===t?null:t}function qOe({href:e,label:t}){return kt("a",{href:e,"data-results-link":!0,className:`inline-block self-start border-0 border-b border-line bg-transparent pb-2 font-mono ${Xf.labelLarge} uppercase tracking-[0.2em] text-fg transition-colors hover:text-fg-dim`,children:t})}function u$({filters:e,setProcess:t,setSize:o,setLugs:n,setFinish:r,setPriceMin:a,setPriceMax:i,setSort:s,clearAll:l,total:d,scrollProcess:c,show:p,picker:m,lugOptions:f=[],sizeOptions:g=[],finishOptions:h,priceBounds:w=null,layout:b=p0,processOptions:k=[],resultsLink:x,optionsReported:v=!1,fieldUsage:y}){let S=pr(),[E,T]=VOe(null),[_,P]=VOe(null),I=j2(),{process:D,size:F,lugs:A,finish:N,priceMin:B,priceMax:Y,sort:K}=e,X=h?_B.filter(O=>h.includes(O.f)):_B,Z=cbt({processCount:k.length,sizeCount:g.length,lugCount:f.length,finishCount:X.length,optionsReported:v,fieldUsage:y}),V={process:(p?.process??!0)&&Z.process,size:(p?.size??!0)&&Z.size,lugs:(p?.lugs??!0)&&Z.lugs,finish:(p?.finish??!0)&&Z.finish,price:p?.price??!0,vehicle:(p?.vehicle??!0)&&!!m,count:p?.count??!0,sort:p?.sort??!0},j={process:D?1:0,size:F?1:0,lugs:A?1:0,finish:N?1:0,price:B!=null||Y!=null?1:0,vehicle:m?.appliedName?1:0},J=()=>{l(),m?.clear(),T(null),P(null)};if(b==="columns"){let O=H=>P(_===H?null:H),G=[];V.vehicle&&m&&G.push(tr(ev,{name:"vehicle",label:I.vehicle,children:[i0.map(H=>kt($Oe,{field:H,picker:m,open:_===H,onOpenRequest:O,onClose:()=>P(null)},H)),kt(KOe,{picker:m,onOpenRequest:O})]},"vehicle"));let $=[];return V.process&&$.push(kt(ev,{name:"process",label:I.process,rowsAreOptions:!0,children:k.map(H=>kt(b3,{active:D===H,onClick:()=>t(Qy(D,H)),children:Eo(H)},H))},"process")),V.size&&$.push(kt(ev,{name:"size",label:I.size,rowsAreOptions:!0,children:g.map(H=>tr(b3,{active:F===H,onClick:()=>o(Qy(F,H)),children:[H,'"']},H))},"size")),V.lugs&&$.push(kt(ev,{name:"lugs",label:I.lugs,rowsAreOptions:!0,children:f.map(H=>kt(b3,{active:A===H,onClick:()=>n(Qy(A,H)),children:Xh(H)},H))},"lugs")),V.finish&&$.push(kt(ev,{name:"finish",label:I.finish,rowsAreOptions:!0,children:X.map(H=>kt(b3,{active:N===H.f,onClick:()=>r(N===H.f?null:H.f),children:H.label},H.f))},"finish")),G.push(...jOe($,y)),V.price&&G.push(kt(ev,{name:"price",label:I.price,tight:!0,children:kt(Sm,{bounds:w,boxes:"line",min:B,max:Y,onMin:a,onMax:i})},"price")),tr("div",{className:"@container",children:[tr("div",{className:`border-t border-line ${fp} pb-12 pt-10 @max-[720px]:px-4 @max-[720px]:pb-10 @max-[720px]:pt-8`,children:[(V.count||V.sort)&&tr("div",{className:"mb-10 flex flex-wrap items-center gap-x-6 gap-y-3 @max-[720px]:mb-8",children:[V.count&&tr("span",{className:`font-mono ${Xf.labelLarge} uppercase tracking-[0.2em] text-fg-dim`,children:[d," ",d===1?"result":"results"]}),V.sort&&tr("div",{className:"ml-auto flex items-center gap-5",children:[kt("button",{type:"button",onClick:J,className:`font-mono ${Xf.labelLarge} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:"Clear All"}),kt(Ld,{look:"line",value:K,keys:YOe,labels:hI,onChange:s})]})]}),kt("div",{"data-filter-columns":!0,className:`grid grid-cols-1 gap-x-[72px] gap-y-10 ${pbt[G.length]??""}`,children:G}),x&&kt("div",{className:"mt-10 flex",children:kt(qOe,{href:x.href,label:x.label})})]}),V.vehicle&&m&&kt(m$,{picker:m,total:d})]})}let C=[];return V.process&&C.push(tr(Ff,{name:"process",label:c?tr(ubt,{children:[kt("span",{className:"text-accent @min-[720px]:hidden",children:Eo(c)}),kt("span",{className:"hidden @min-[720px]:inline",children:I.process})]}):I.process,badge:j.process,open:E==="process",onToggle:()=>T(E==="process"?null:"process"),children:[kt(xy,{children:"Series \xB7 single-select"}),kt("div",{className:"flex flex-wrap gap-2",role:"radiogroup","aria-label":"Process series",children:k.map(O=>{let G=D===O;return kt(hA,{active:G,role:"radio",ariaChecked:G,onClick:()=>t(Qy(D,O)),children:Eo(O)},O)})})]},"process")),V.size&&C.push(tr(Ff,{name:"size",label:I.size,badge:j.size,open:E==="size",onToggle:()=>T(E==="size"?null:"size"),children:[kt(xy,{children:"Diameter \xB7 single-select"}),kt("div",{className:"flex flex-wrap gap-2",role:"radiogroup","aria-label":"Wheel diameter",children:g.map(O=>{let G=F===O;return tr(hA,{active:G,role:"radio",ariaChecked:G,onClick:()=>o(Qy(F,O)),children:[O,'"']},O)})})]},"size")),V.lugs&&C.push(tr(Ff,{name:"lugs",label:I.lugs,badge:j.lugs,open:E==="lugs",onToggle:()=>T(E==="lugs"?null:"lugs"),children:[kt(xy,{children:"Lug count \xB7 single-select"}),kt("div",{className:"flex flex-wrap gap-2",role:"radiogroup","aria-label":"Lug count",children:f.map(O=>{let G=A===O;return kt(hA,{active:G,role:"radio",ariaChecked:G,onClick:()=>n(Qy(A,O)),children:Xh(O)},O)})})]},"lugs")),V.finish&&C.push(tr(Ff,{name:"finish",label:I.finish,badge:j.finish,open:E==="finish",onToggle:()=>T(E==="finish"?null:"finish"),children:[kt(xy,{children:"Color family \xB7 single-select"}),kt("div",{className:"flex flex-col gap-2",role:"radiogroup","aria-label":"Finish color family",children:X.map(O=>{let G=N===O.f;return tr("button",{type:"button",role:"radio","aria-checked":G,onClick:()=>r(G?null:O.f),className:["flex items-center gap-3 border px-3 py-2 text-left transition-colors",G?"border-accent text-fg":"border-line hover:border-fg-dim"].join(" "),children:[kt("span",{className:"block h-3.5 w-3.5 shrink-0 rounded-full border border-line",style:{background:O.hex}}),kt("span",{className:`font-mono ${Xf.labelSmall} uppercase tracking-[0.18em]`,style:G?void 0:{color:"color-mix(in oklab, currentColor 80%, transparent)"},children:O.label}),G&&kt("span",{"aria-hidden":!0,className:"ml-auto text-accent",children:"\u25CF"})]},O.f)})})]},"finish")),tr("div",{className:"@container sticky top-[67px] z-40 border-b border-line backdrop-blur",style:{background:"color-mix(in oklab, var(--bg) 92%, transparent)"},children:[tr("div",{...Te(`flex items-center gap-6 ${fp} py-4 @max-[720px]:flex-wrap @max-[720px]:items-stretch @max-[720px]:gap-2 @max-[720px]:px-4 @max-[720px]:py-3`,S),children:[tr("div",{className:"relative flex flex-wrap items-center gap-1 @max-[720px]:basis-full @max-[720px]:gap-2",children:[V.count&&tr("span",{className:`mr-3 border-r border-line pr-4 font-mono ${Xf.labelLarge} uppercase tracking-[0.2em] text-fg-dim @max-[720px]:hidden`,children:[d," ",d===1?"result":"results"]}),jOe(C,y),V.price&&tr(Ff,{name:"price",label:I.price,badge:j.price,open:E==="price",onToggle:()=>T(E==="price"?null:"price"),children:[kt(xy,{children:"Price range (per wheel)"}),kt(Sm,{bounds:w,min:B,max:Y,onMin:a,onMax:i})]}),V.vehicle&&m&&kt(kS,{label:I.vehicle,badge:j.vehicle,open:E==="vehicle",onToggle:()=>T(E==="vehicle"?null:"vehicle")})]}),x&&kt("div",{className:`flex items-center ${V.sort?"":"ml-auto"}`,children:kt(qOe,{href:x.href,label:x.label})}),V.sort&&tr("div",{className:"ml-auto flex items-center gap-3",children:[kt("button",{type:"button",onClick:J,className:`font-mono ${Xf.labelLarge} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-accent`,children:"Clear All"}),kt(Ld,{look:"box",value:K,keys:YOe,labels:hI,onChange:s})]})]}),V.vehicle&&m&&E==="vehicle"&&kt(UOe,{picker:m,onClose:()=>T(null)}),V.vehicle&&m&&kt(m$,{picker:m,total:d})]})}var pbt={1:"@min-[720px]:grid-cols-1",2:"@min-[720px]:grid-cols-2",3:"@min-[720px]:grid-cols-2 @min-[1100px]:grid-cols-3",4:"@min-[720px]:grid-cols-2 @min-[1100px]:grid-cols-4",5:"@min-[720px]:grid-cols-2 @min-[1100px]:grid-cols-3 @min-[1400px]:grid-cols-5",6:"@min-[720px]:grid-cols-2 @min-[1100px]:grid-cols-3 @min-[1400px]:grid-cols-6"},mbt=`flex w-full items-center justify-between gap-4 border-b py-3 text-left ${Xf.body}`;function ev({name:e,label:t,rowsAreOptions:o,tight:n,children:r}){return tr("div",{"data-filter-column":e,className:`flex flex-col ${n?"gap-3":"gap-6"}`,children:[kt("div",{className:`font-mono ${Xf.labelXs} uppercase tracking-[0.34em] text-fg-dim`,children:t}),kt("div",{role:o?"radiogroup":void 0,"aria-label":o?t:void 0,children:r})]})}function b3({active:e,onClick:t,children:o}){return kt("button",{type:"button",role:"radio","aria-checked":e,onClick:t,className:[mbt,"transition-colors",e?"border-fg text-fg":"border-line text-fg-dim hover:text-fg"].join(" "),children:kt("span",{children:o})})}import{jsx as fbt}from"react/jsx-runtime";function f$({show:e,layout:t,processOptions:o,fieldUsage:n,editing:r=!1,resultsHref:a,resultsLabel:i}){let{filters:s,setProcess:l,setSize:d,setLugs:c,setFinish:p,setPriceMin:m,setPriceMax:f,setSort:g,clearAll:h,total:w,scrollProcess:b,publishVehicle:k,lugOptions:x,sizeOptions:v,finishOptions:y,categoryOptions:S,optionsReported:E,priceOptions:T}=Uy(),_=ZOe(()=>jB(T),[T]),P=ZOe(()=>n?cd(n,"alloy-wheel"):void 0,[n]),I=Zi({editing:r,autoApply:!0});XOe(()=>{k({fit:I.fit,name:I.appliedName,resolving:I.resolving,unresolved:I.unresolved})},[k,I.fit,I.appliedName,I.resolving,I.unresolved]);let D=I.applied?.vehicle??null;XOe(()=>{if(r||!I.restored||typeof window>"u")return;let B=new URLSearchParams(window.location.search);for(let K of Object.values(Il))B.delete(K);Xc(B,D);let Y=B.toString();window.history.replaceState(null,"",`${window.location.pathname}${Y?`?${Y}`:""}`)},[r,I.restored,D]);let F=h_e(s),A=(i??"").trim()||"See all results",N=a&&!r&&F.length===0?{href:g_e(a,s,D),label:A}:void 0;return fbt(u$,{resultsLink:N,filters:s,setProcess:l,setSize:d,setLugs:c,setFinish:p,setPriceMin:m,setPriceMax:f,setSort:g,clearAll:h,total:w,lugOptions:x,sizeOptions:v,finishOptions:y,priceBounds:_,scrollProcess:b,show:e,layout:t,processOptions:o??S,optionsReported:E,fieldUsage:P,picker:I})}import{hidableText as QOe}from"efficient-easel/screen/lib/document/hidable";var JOe={ownPad:KPe,label:"Catalog Filter Bar",defaultProps:{showProcess:!0,showLugs:!0,showPrice:!0,showVehicle:!0,showCount:!0,showSort:!0,layout:p0,resultsHref:"",resultsLabel:""}};import{jsx as hbt}from"react/jsx-runtime";var eNe=Ct("CatalogFilterBar",{...JOe,render:e=>hbt(f$,{show:{process:e.showProcess,size:!0,lugs:e.showLugs,finish:!0,price:e.showPrice,vehicle:e.showVehicle,count:e.showCount,sort:e.showSort},layout:b_e(e.layout),processOptions:e.processOptions,fieldUsage:e.fieldUsage,resultsHref:QOe(e.resultsHref)||void 0,resultsLabel:QOe(e.resultsLabel)||void 0,editing:e.editor?.isEditing})});import{jsx as tv,jsxs as tNe}from"react/jsx-runtime";function h$({eyebrow:e,title:t,body:o,ctaText:n,ctaHref:r,secondaryText:a,secondaryHref:i,contained:s}){let l=pr();return tv(It,{contained:s,...Te("py-6",l),children:tNe("div",{className:"flex flex-col items-center gap-5 px-6 py-16 text-center max-view-wide:py-10",children:[e&&tv(lt,{text:e,scaled:!1}),t&&tv("h2",{className:"max-w-[720px] font-display text-[min(44px,var(--sf-heading-max,9999px))] font-medium leading-[1.05] tracking-[-0.03em] max-view-wide:text-[min(30px,var(--sf-heading-max,9999px))]",children:te(t,!1)}),o&&Bt(o).map((d,c)=>tv("p",{className:"max-w-[560px] text-[16px] leading-[1.6] opacity-85",children:L(d)},c)),(n||a)&&tNe("div",{className:"mt-2 flex items-center gap-6",children:[n&&tv(va,{href:r||"/checkout",variant:"primary",children:L(n)}),a&&tv("a",{href:i||"#",className:"font-mono text-[13px] uppercase tracking-[0.2em] underline underline-offset-4 opacity-70 hover:opacity-100",children:L(a)})]})]})})}import{hidableText as gbt}from"efficient-easel/screen/lib/document/hidable";import{jsx as bbt}from"react/jsx-runtime";var oNe=Ct("CheckoutCTA",{...v_e,render:({eyebrow:e,title:t,body:o,ctaText:n,ctaHref:r,secondaryText:a,secondaryHref:i,contained:s,editor:l})=>{let d=si(n,r,l);return bbt(h$,{eyebrow:R(e,W.eyebrow,l),title:R(t,Ry.title,l),body:R(o,W.body,l),ctaText:d.text,ctaHref:d.href||"/checkout",secondaryText:R(a,Ry.secondary,l),secondaryHref:gbt(i)||"#",contained:s})}});import{slotChildName as wbt}from"efficient-easel/screen/lib/document/slot-child-name";import{readHidable as xbt,hidableText as rNe}from"efficient-easel/screen/lib/document/hidable";var nNe={label:"Collection Card",defaultProps:{collection:null}};import{jsx as ybt}from"react/jsx-runtime";var aNe={...nNe,render:({collection:e,altName:t,tag:o,href:n,editor:r})=>{let a=e&&typeof e=="object"?e:null,i=(l,d)=>xbt(l).hidden?"":rNe(l)||(r?.isEditing?u(d):void 0),s=wbt({type:"CollectionCard",props:{altName:t,collection:a}});return ybt(ZD,{tag:i(o,W.eyebrow),name:s||(r?.isEditing?u("Card title"):void 0),desc:a?.description||(r?.isEditing?u(W.body):void 0),href:rNe(n)||void 0,imageSrc:a?.image||void 0,imageLabel:a?.name||void 0})}};import{Fragment as iNe,jsx as Zf,jsxs as g$}from"react/jsx-runtime";function vbt({editing:e,nodeId:t,children:o}){return!e||!t?Zf(iNe,{children:o}):Zf(gu,{nodeId:t,sectionType:"Collections",children:o})}var kbt=`${fp} ${UH} max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] ${GH}`,Sbt=`${fp} ${g1} ${a5} max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] ${b1} ${s5}`,Tbt=`${fp} max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]`,Ebt={2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5"};function b$({eyebrow:e,heading:t,columns:o,showPrice:n,cardStyle:r,layout:a,limit:i,cards:s,template:l,omitHead:d=!1,nodeId:c,partStyles:p,editing:m=!1}={}){let f=he(),g=pr(),h=Ka("cg"),w=typeof i=="number"&&i>0,b=a==="list"?"grid-cols-1":o===void 0?"grid-cols-3":Ebt[Math.min(5,Math.max(2,Math.round(o)))]??"grid-cols-3",k=`${h} grid ${y1} ${b} gap-4 max-view-wide:grid-cols-1 max-view-wide:gap-3`,x=Hu(h,k,{limit:i}),v=Number(l?.blockCount??0)>0;return g$("section",{...Te(fe(d?v?Tbt:Sbt:kbt,f),g),children:[d?null:Zf(Mt,{num:e!==void 0?e:"01 / Collections",accentNum:!0,title:t!==void 0?te(t,!1):g$(iNe,{children:["Three ranges,",Zf("br",{}),"one standard."]}),link:{text:"View all",href:"/wheels"}}),s&&Zf(vbt,{editing:m,nodeId:c,children:g$(XD.Provider,{value:{showPrice:n,cardStyle:r,partStyles:p,editing:m,ownerId:c,Template:v?l:void 0},children:[w&&Zf("style",{children:`.${h} > *:nth-child(n+${i+1}){display:none}`}),x&&Zf("style",{children:x}),Zf(s,{className:k,minEmptyHeight:260})]})})]})}import{jsx as Pbt}from"react/jsx-runtime";var sNe=Ct("Collections",{...__e,render:e=>{let t=We(e.headPlacement)==="own-box",o=n=>t?void 0:n;return Pbt(b$,{eyebrow:o(un(e.eyebrow,W.sectionNumber,e.editor)),heading:o(un(e.heading,W.sectionHeading,e.editor)),omitHead:t,nodeId:typeof e.id=="string"?e.id:void 0,partStyles:Oi(e),editing:e.editor?.isEditing,columns:e.columns,limit:e.limit,cards:e.cards,template:e.template})}});import{hidableText as _bt}from"efficient-easel/screen/lib/document/hidable";import{jsx as Cbt}from"react/jsx-runtime";var lNe=Ct("CompatibleTyres",{...N_e,render:e=>{let t=We(e.headPlacement)==="own-box",o=n=>t?void 0:n;return Cbt(CT,{num:o(R(e.num,Dl.num,e.editor)),title:o(R(e.title,Dl.title,e.editor)),description:o(R(e.description,Dl.description,e.editor)),omitHead:t,footnote:R(e.footnote,Dl.footnote,e.editor),footnoteLinkText:R(e.footnoteLinkText,Dl.footnoteLinkText,e.editor),footnoteLinkHref:_bt(e.footnoteLinkHref),relationship:"tyres-that-fit",cardImage:e.cardImage,editing:e.editor?.isEditing})}});var dNe={label:"Country Switch",defaultProps:{showAs:f1}};import{jsx as Rbt}from"react/jsx-runtime";var cNe={...dNe,render:({showAs:e,phonePlace:t})=>Rbt(TOe,{showAs:Tc(e),phonePlace:t})};import{jsx as hp,jsxs as w$}from"react/jsx-runtime";var Obt="py-6",Nbt="pt-0 pb-6";function RT({eyebrow:e,title:t,body:o,options:n=[],highlightBadge:r,contained:a,omitHead:i=!1}){let s=pr();return hp(It,{contained:a,...Te(i?Nbt:Obt,s),children:w$("div",{className:"flex flex-col gap-6",children:[i?null:e||t||o?w$("div",{className:"flex max-w-[680px] flex-col gap-3",children:[e&&hp(lt,{text:e,scaled:!1}),t&&hp("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium leading-[1.05] tracking-[-0.03em] max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:te(t,!1)}),o&&Bt(o).map((l,d)=>hp("p",{className:"text-[15px] leading-[1.6] opacity-85",children:L(l)},d))]}):null,n.length>0&&hp("ul",{className:"grid grid-cols-3 gap-4 max-view-wide:grid-cols-1",children:n.map((l,d)=>w$("li",{className:`sf-card relative flex flex-col gap-2 border bg-surface px-6 py-6 ${l.highlighted?"border-accent":"border-line"}`,children:[l.highlighted&&r&&hp("span",{className:"absolute -top-2.5 left-5 bg-bg px-2 font-mono text-[10px] uppercase tracking-[0.25em] text-accent",children:L(r)}),l.name&&hp("span",{className:"text-[17px] font-medium",children:L(l.name)}),l.eta&&hp("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] opacity-60",children:L(l.eta)}),l.blurb&&hp("p",{className:"text-[13.5px] leading-[1.6] opacity-75",children:L(l.blurb)}),l.price&&hp("span",{className:"mt-auto pt-2 font-display text-[20px] font-medium text-accent",children:L(l.price)})]},d))})]})})}import{useEffect as Lbt,useState as Abt}from"react";import{jsx as Ibt}from"react/jsx-runtime";function x$({eyebrow:e,title:t,body:o,highlightBadge:n,contained:r,omitHead:a=!1}){let{currency:i,formatMoney:s}=Lt(),[l,d]=Abt(null);Lbt(()=>{let p=!1;return Bo.listShippingMethods().then(m=>{p||d(m)}).catch(()=>{p||d([])}),()=>{p=!0}},[]);let c=(l??[]).filter(p=>p.prices[i]!=null).map(p=>{let m=p.prices[i],f=m===0?$h:s(m,i),g=p.pickupLocation;return{name:g?`${p.name} \u2014 ${g.name}`:p.name,eta:g?g.openingHours||void 0:p.description||void 0,price:p.requiresQuote&&m!==0?`${pw}${f}`:f,blurb:g&&[[g.address,g.city,g.state].filter(Boolean).join(", "),g.readyIn].filter(Boolean).join(" \xB7 ")||void 0}});return Ibt(RT,{eyebrow:e,title:t,body:o,options:c,highlightBadge:n,contained:r,omitHead:a})}import{jsx as pNe}from"react/jsx-runtime";var Fbt=()=>[{name:u("Standard"),eta:u("5\u20137 business days"),price:u("Free"),blurb:u("Tracked to your door.")},{name:u("Express"),eta:u("2\u20133 business days"),price:"$00",blurb:u("Priority handling."),highlighted:!0},{name:u("Pickup"),eta:u("Same day"),price:u("Free"),blurb:u("Collect from the warehouse.")}],mNe=Ct("DeliveryOptions",{...I_e,render:e=>{let t=We(e.headPlacement)==="own-box",o=p=>t?void 0:p,{eyebrow:n,title:r,body:a,options:i,live:s,highlightBadge:l,contained:d,editor:c}=e;return s?pNe(x$,{eyebrow:o(R(n,W.eyebrow,c)),title:o(R(r,Hf.title,c)),body:o(R(a,W.body,c)),omitHead:t,highlightBadge:R(l,Hf.badge,c),contained:d}):pNe(RT,{eyebrow:o(R(n,W.eyebrow,c)),title:o(R(r,Hf.title,c)),body:o(R(a,W.body,c)),omitHead:t,options:De(i,Fbt(),c),highlightBadge:R(l,Hf.badge,c),contained:d})}});import{jsx as as,jsxs as y3}from"react/jsx-runtime";var x3={body:"text-[length:var(--size-body,15px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function Bbt(e){return{eyebrow:e.eyebrow?.trim()?e.eyebrow:"",title:e.title?.trim()?e.title:"",copy:e.copy?.trim()?e.copy:"",image:e.image?.trim()?e.image:"",tag:e.tag?.trim()?e.tag:""}}function Hbt(e){return e.every(t=>!t.media&&!(t.specs??[]).some(uNe))}var uNe=e=>!!((e?.label??"").trim()||(e?.value??"").trim()||(e?.at??"").trim()),Dbt="[&:not(:first-child)]:border-t [&:not(:first-child)]:border-line";function ov({rows:e,startLeft:t=!1,layout:o="even",pads:n,editing:r=!1,template:a,nodeId:i}){let s=o==="narrow",l=vo(n??{},l5),d=(e??[]).filter(p=>(p?.eyebrow??"").trim()||(p?.title??"").trim()||(p?.copy??"").trim()||(p?.tag??"").trim()||(p?.image??"").trim()),c=d.length>0?d:r?[{tag:u("Row {n}",{n:1})},{tag:u("Row {n}",{n:2})},{tag:u("Row {n}",{n:3})}]:[];return c.length===0?null:as(yt,{className:hl("relative z-[2] border-b border-line bg-bg",l),style:l.style,children:as(Ge,{ownerId:i??"",ownerType:"DetailRows",Template:Hbt(c)?a:void 0,rows:c.map(Bbt),fallback:c.map((p,m)=>{let f=m%2===1!==t;return y3("div",{className:["grid items-center py-[60px]",s?"grid-cols-[1fr_460px] gap-[72px]":"grid-cols-2 gap-12","max-view-desktop:grid-cols-1",f?"[direction:rtl] max-view-desktop:[direction:ltr]":"",m>0?"border-t border-line":""].join(" "),children:[y3("div",{className:["[direction:ltr] flex flex-col gap-4",s?"max-w-[560px]":"",s&&!f?"ml-auto max-view-desktop:ml-0":""].join(" "),children:[p.eyebrow?.trim()&&as("div",{className:`font-mono ${x3.labelLarge} uppercase tracking-[0.2em] text-accent`,children:Eo(p.eyebrow)}),p.title?.trim()&&as("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3vw,42px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[1.1] tracking-[-0.02em]",children:L(p.title,!0)}),p.copy?.trim()&&as("p",{className:`${x3.body} leading-[1.6] text-fg-dim`,children:L(p.copy,!1)}),(()=>{let g=(p.specs??[]).filter(uNe);return g.length===0?null:as("dl",{className:`mt-2 border-t border-line pt-3 font-mono ${x3.label} uppercase tracking-[0.1em] leading-[2.1]`,children:g.map((h,w)=>y3("div",{className:"flex items-baseline justify-between gap-6",children:[as("dt",{className:"text-fg-dim",children:Eo(h.label??"")}),as("dd",{className:"text-fg",children:h.at?as(Yi,{at:h.at}):Eo(h.value??"")})]},w))})})()]}),y3("div",{className:["[direction:ltr] flex flex-col gap-3",s?f?"items-end":"items-start":"",s?"max-view-desktop:items-start":""].join(" "),children:[p.media?as("div",{className:"w-full",children:p.media}):as("div",{className:["relative overflow-hidden max-w-full",s?p.imageShape==="wide"?"w-[460px] aspect-[16/9]":"w-[360px] aspect-square":"aspect-square"].join(" "),children:as(co,{label:p.tag?.trim()||p.title?.trim()||`row-${m+1}`,src:p.image||void 0,alt:So(p.title?.trim()||p.tag?.trim()||""),showBackground:!p.image,objectFit:"contain",sizes:s?"(max-width: 1100px) 100vw, 460px":"(max-width: 1100px) 100vw, 50vw"})}),p.tag?.trim()&&as("span",{className:`font-mono ${x3.labelSmall} uppercase tracking-[0.2em] text-fg-dim ${f?"text-left":"text-right"}`,children:Eo(p.tag)})]})]},m)}),wrapCopy:p=>as("div",{className:Dbt,children:p}),children:p=>p})})}import{useCallback as Mbt,useRef as zbt,useState as fNe}from"react";import{Fragment as v$,jsx as sa,jsxs as nv}from"react/jsx-runtime";var Wbt="(max-width: 1600px) 100vw, 1600px",Ubt="(max-width: 1100px) 100vw, 50vw",Gbt="(max-width: 800px) 30vw, 200px",$bt="100vw";function y$(e,t){return e.video?t?`Play video of ${t}`:"Play video":t?`Open photo of ${t}`:"Open photo"}function Kbt({small:e=!1}){return sa("span",{"aria-hidden":!0,"data-play-badge":"",className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:sa("span",{className:`flex items-center justify-center rounded-full bg-bg/75 text-fg ${e?"h-8 w-8 text-[length:12px]":"h-16 w-16 text-[length:22px]"}`,children:"\u25B6"})})}var Vbt="relative block w-full overflow-hidden bg-surface-2",Ybt="block h-[min(78vh,820px)] w-full object-cover max-view-wide:h-[min(70vh,560px)]",jbt="block aspect-[4/5] max-h-[80vh] w-full object-cover",qbt="grid grid-cols-4 gap-2",Xbt="relative block aspect-square w-full overflow-hidden bg-surface-2",hNe="block h-full w-full object-cover",Zbt="grid grid-cols-6 gap-2 max-view-wide:grid-cols-4",Jbt={3:"grid grid-cols-3 gap-2 max-view-wide:grid-cols-2",4:"grid grid-cols-4 gap-2 max-view-wide:grid-cols-2"},Qbt="relative block aspect-[4/5] w-full overflow-hidden bg-surface-2",ewt="relative block w-full overflow-hidden bg-surface-2",twt="(max-width: 800px) 50vw, 25vw",owt="cursor-pointer text-left focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2",gNe="absolute top-1/2 z-[2] flex h-14 w-14 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg-dim/40 bg-overlay-scrim/40 font-mono text-[length:var(--size-label,22px)] text-fg-dim transition-colors hover:border-accent hover:text-accent max-[700px]:h-11 max-[700px]:w-11";function OT({pictures:e,name:t,editing:o=!1,fit:n="section",across:r=4,ratio:a=null}){let[i,s]=fNe(!1),[l,d]=fNe(0),c=zbt(null),p=Mbt(S=>{S?c.current=S:(c.current?.pause(),c.current=null)},[]),m=e.length,f=n==="column";if(m===0)return null;let g=()=>d(S=>(S-1+m)%m),h=()=>d(S=>(S+1)%m),w=S=>{d(S),s(!0)},b=e[Math.min(l,m-1)],k=(S,E,T,_)=>S.url?sa("span",{className:`${T} relative`,children:sa(co,{label:S.alt||t||"photo",src:S.url,alt:S.alt||t,sizes:E,objectFit:"cover",showBackground:!1})}):sa("span",{"aria-hidden":!0,className:`${T} bg-surface-2`}),x=n==="tiles",v=a?{aspectRatio:`${a[0]} / ${a[1]}`}:null,y=(S,E,T)=>{let _=nv(v$,{children:[x?k(S,twt,hNe,800):T?f?k(S,Ubt,jbt,1200):k(S,Wbt,Ybt,1600):k(S,Gbt,hNe,400),S.video&&sa(Kbt,{small:!T&&!x})]}),P=x?v?ewt:Qbt:T?Vbt:Xbt,I=x&&v?v:void 0;return o?sa("div",{className:P,style:I,children:_}):sa("button",{type:"button","aria-label":y$(S,t),onClick:()=>w(E),className:`${P} ${owt}`,style:I,children:_})};return nv(v$,{children:[x?sa("ul",{[rf]:"","data-record-gallery":"tiles",className:Jbt[r===3?3:4],children:e.map((S,E)=>sa("li",{children:y(S,E,!1)},`${S.url}-${E}`))}):nv("div",{[rf]:"","data-record-gallery":"",className:"flex flex-col gap-2",children:[y(e[0],0,!0),m>1&&sa("ul",{className:f?qbt:Zbt,children:e.slice(1).map((S,E)=>sa("li",{children:y(S,E+1,!1)},`${S.url}-${E+1}`))})]}),!o&&sa(sm,{open:i,onClose:()=>s(!1),label:y$(b,t),onPrev:m>1?g:void 0,onNext:m>1?h:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:nv("div",{onClick:S=>S.stopPropagation(),className:"relative flex h-full w-full items-center justify-center",children:[sa(of,{className:"absolute right-0 top-0 z-[3] flex h-12 w-12 cursor-pointer items-center justify-center border border-line font-mono text-[length:var(--size-label,18px)] text-fg-dim transition-colors hover:border-accent hover:text-fg",style:{background:hO},children:"\u2715"}),b.video?sa("video",{ref:p,controls:!0,playsInline:!0,preload:"metadata",poster:b.url,src:b.video,"aria-label":y$(b,t),className:"block max-h-[calc(100vh-120px)] max-w-full bg-bg"},`video-${l}`):sa("img",{...go(b.url,{fallbackWidth:1600}),sizes:$bt,alt:`${b.alt||t||"Photo"} \u2014 ${l+1} of ${m}`,className:"block max-h-[calc(100vh-120px)] max-w-full object-contain"},`photo-${l}`),m>1&&nv(v$,{children:[sa("button",{type:"button","aria-label":"Previous photo",onClick:g,className:`${gNe} left-0`,children:"\u25C1"}),sa("button",{type:"button","aria-label":"Next photo",onClick:h,className:`${gNe} right-0`,children:"\u25B7"}),nv("span",{"data-gallery-counter":"",className:"absolute bottom-0 left-1/2 -translate-x-1/2 border border-fg-dim/30 bg-overlay-scrim/50 px-4 py-1.5 font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.22em] text-fg-dim backdrop-blur-[4px]",children:[l+1," / ",m]})]})]})})]})}function k$(e,t){let o=e?.detailShots;if(!Array.isArray(o)||o.length===0)return{rows:[],shownFor:null};let n=o.filter(l=>!!l&&typeof l.url=="string"&&!!l.url&&typeof l.title=="string"&&!!l.title);if(n.length===0)return{rows:[],shownFor:null};let r=n.filter(l=>v3(l).length>0).flatMap(v3),a=t,i=null;if(a==null)a=r.length?Math.min(...r):null;else if(r.length&&!r.includes(a)){let l=a;a=r.reduce((d,c)=>{let p=Math.abs(c-l),m=Math.abs(d-l);return p<m||p===m&&c>d?c:d}),i=a}let s=new Set;return{rows:n.filter(l=>{let d=v3(l);if(d.length>0&&(a==null||!d.includes(a)))return!1;let c=JSON.stringify([l.eyebrow??"",l.title,l.line??"",[...d].sort()]);return s.has(c)?!1:(s.add(c),!0)}),shownFor:i}}function bNe(e,t){let o=k$(e,t);return o.rows.map(n=>{let r=S$(n,o,t);return{url:n.url,title:r?`${n.title}. ${r}`:n.title}})}function v3(e){return Array.isArray(e.lugs)?e.lugs.filter(t=>typeof t=="number"):[]}function S$(e,t,o){if(o!=null)return t.shownFor!=null?v3(e).length>0?`Shown on the ${t.shownFor} lug wheel. Your ${o} lug wheel may look different.`:void 0:nwt(e,t.rows)?`Shown for your ${o} lug`:void 0}function nwt(e,t){let o=Array.isArray(e.lugs)?e.lugs:[];if(o.length===0)return!1;let n=new Set;for(let r of t)for(let a of r.lugs??[])n.add(a);return o.length<n.size}function k3(e){return e.manualMode?iy(e.shown.boltPattern).holes:e.vehicle.fit?.holes??null}import{jsx as Jf}from"react/jsx-runtime";var rwt=["alloy-wheel"];function xNe(e,t){return e.finishes.find(o=>o.name===t)??e.finishes[0]}function awt(e,t){return(xNe(e,t)?.features??[]).map(o=>({eyebrow:o.eyebrow,title:o.heading,copy:o.description,tag:o.mark,image:o.image||void 0}))}function iwt(e,t,o){let n=k$(xNe(e,t),o);return n.rows.map(r=>({eyebrow:r.eyebrow?.trim()||void 0,title:r.title,copy:r.line||void 0,image:r.url,tag:S$(r,n,o),imageShape:"square"}))}function T$(e){return jL(!!e.editing)?Jf(swt,{...e}):Jf(Un,{kinds:rwt,type:"DetailRows",editing:e.editing,children:Jf(lwt,{...e})})}function wNe(e){let t=jTe(e),o=sS(e)[0];return!t.length&&!o&&!e.title.trim()?[]:[{title:e.title,specs:t,image:o?.url||void 0}]}function swt({startLeft:e,pads:t,editing:o=!1,template:n,nodeId:r}){let a=Lb(),i=a?wNe(a):o?wNe(qL):[];if(i.length===0)return null;let s=a?sS(a,{firstField:!0}):[];return s.length&&(i[0]={...i[0],media:Jf(OT,{pictures:s,name:a?.title??"",editing:o,fit:"column"})}),Jf(ov,{rows:i,startLeft:e,pads:t,editing:o,template:n,nodeId:r})}function lwt({rowsFrom:e,startLeft:t,pads:o,editing:n=!1,template:r,nodeId:a}){let i=Oo(),s=Wn(n&&!i),l=i?.product??s,d=l?.kind==="alloy-wheel"?l.source:null,c=i?i.selection.shown.finish:void 0,p=i?k3(i.selection):null,m=e==="details",f=d?m?iwt(d,c,p):awt(d,c):[];return m&&f.length===0?n?Jf(yt,{className:"border-b border-line py-14 max-view-desktop:py-10",children:Jf("p",{className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim",children:u("No detail shots on this finish yet. Tick a close-up on the design's renderings and give it a title. This section is hidden on the live page until then.")})}):null:Jf(ov,{rows:f,startLeft:t,pads:o,editing:n,template:r,nodeId:a})}import{parseOption as dwt}from"efficient-shell/format";import{jsx as yNe}from"react/jsx-runtime";var vNe={...U_e,render:e=>e.dynamic?yNe(T$,{rowsFrom:dwt(jA,qA,e.rowsFrom),startLeft:e.startLeft,pads:fd(e),editing:e.editor?.isEditing,template:e.template,nodeId:typeof e.id=="string"?e.id:void 0}):yNe(ov,{rows:De(e.rows,XA,e.editor),startLeft:e.startLeft,layout:e.layout,pads:fd(e),editing:e.editor?.isEditing,template:e.template,nodeId:typeof e.id=="string"?e.id:void 0})};function kNe(e){return e.rollingNoiseDb===null?null:e.rollingNoiseClass?`${e.rollingNoiseDb} dB (${e.rollingNoiseClass})`:`${e.rollingNoiseDb} dB`}function cwt(e){return`/api/tire-catalog/models/${encodeURIComponent(e)}/`}function pwt(e,t,o){let n=(o.eprel_url??"").trim();if(!n)return null;let r=(o.energy_class??"").trim(),a=(o.wet_grip_class??"").trim(),i=typeof o.external_rolling_noise_value=="number"?o.external_rolling_noise_value:null;return!r&&!a&&i===null?null:{size:e,registrationNumber:t,fuelClass:r,wetGripClass:a,rollingNoiseDb:i,rollingNoiseClass:(o.external_rolling_noise_class??"").trim(),iceGrip:o.ice_tire===!0,severeSnow:o.severe_snow_tire===!0,loadIndicator:(o.load_indicator??"").trim(),eprelUrl:n}}async function mwt(e){let t=(e.eprelRegistrationNumber??"").trim();if(!t)return null;try{let o=await rw(cwt(t),{baseUrl:ZC});return pwt(e.size,t,o)}catch{return null}}async function SNe(e){return(await Promise.all(e.map(mwt))).filter(o=>o!==null)}import{jsx as v0,jsxs as E$}from"react/jsx-runtime";var S3={headingSmall:"text-[length:var(--size-headingSmall,22px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"};function uwt(e){let t=[];e.fuelClass&&t.push({key:"Fuel efficiency",value:e.fuelClass}),e.wetGripClass&&t.push({key:"Wet grip",value:e.wetGripClass});let o=kNe(e);return o&&t.push({key:"Rolling noise",value:o}),e.loadIndicator&&t.push({key:"Reinforced",value:e.loadIndicator}),t}function fwt(e){let t=[];return e.severeSnow&&t.push("3PMSF severe snow"),e.iceGrip&&t.push("Ice grip"),t}function P$({label:e}){let t=uwt(e),o=fwt(e);return E$("div",{className:"flex flex-col bg-[var(--card-bg)] p-5",children:[v0("h3",{className:`font-heading3 ${S3.headingSmall} font-medium leading-tight`,children:e.size}),v0("dl",{className:`mt-3 flex flex-col gap-2 font-mono ${S3.labelLarge}`,children:t.map(n=>E$("div",{className:"flex items-baseline justify-between gap-3",children:[v0("dt",{className:"uppercase tracking-[0.14em] text-fg-dim",children:n.key}),v0("dd",{className:"text-right text-fg",children:n.value})]},n.key))}),o.length>0?v0("ul",{className:"mt-3 flex flex-wrap gap-2",children:o.map(n=>v0("li",{className:`border border-line px-2 py-1 font-mono ${S3.labelSmall} uppercase tracking-[0.14em] text-fg-dim`,children:n},n))}):null,E$("a",{href:e.eprelUrl,target:"_blank",rel:"noopener noreferrer",className:`group mt-4 inline-flex items-center gap-2 border-t border-line pt-3 font-mono ${S3.labelLarge} uppercase tracking-[0.2em] text-accent transition-colors hover:text-fg`,children:[`EPREL ${e.registrationNumber}`,v0("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]})]})}import{Fragment as hwt,jsx as NT,jsxs as TNe}from"react/jsx-runtime";var _$="border-b border-line py-[120px] max-view-desktop:py-20";function C$({labels:e,num:t,capped:o=!0}){return e.length===0?null:TNe(yt,{className:_$,capped:o,children:[NT(Mt,{num:t,title:"EU tyre *label.*",description:"The registered grades for this tyre, read live from the EU product registry.",accent:!0}),NT(R$,{labels:e})]})}function R$({labels:e,viewHide:t=""}){return TNe(hwt,{children:[NT(z,{className:"grid grid-cols-3 gap-2 max-view-desktop:grid-cols-2 max-view-tablet:grid-cols-1",children:e.map(o=>NT(P$,{label:o},o.registrationNumber))}),NT(Od,{text:"Source: *EPREL*, the European Product Registry for Energy Labelling. Grades are shown as registered; the registry is the authority.",viewHide:t})]})}import{useEffect as gwt,useState as bwt}from"react";function ENe(e){let[t,o]=bwt([]),n=e.map(r=>r.eprelRegistrationNumber??"").join(",");return gwt(()=>{let r=!0;return SNe(e).then(a=>{r&&o(a)}),()=>{r=!1}},[n]),t}import{jsx as Dd}from"react/jsx-runtime";var PNe=["tyre"];function O$(e){return Dd(Un,{kinds:PNe,type:"EuTyreLabel",editing:e.editing,children:Dd(wwt,{...e})})}function wwt({num:e,editing:t=!1}){let o=_Ne(t);return o.length===0&&t?Dd(yt,{className:_$,children:Dd(CNe,{})}):Dd(C$,{labels:o,num:e??"",capped:!1})}function T3({editing:e=!1}){return Dd(Un,{kinds:PNe,type:"EuTyreLabel",editing:e,children:Dd(xwt,{editing:e})})}function xwt({editing:e}){let t=_Ne(e);return t.length===0?e?Dd(CNe,{}):null:Dd(ywt,{labels:t})}function ywt({labels:e}){return Dd(R$,{labels:e,viewHide:VP()})}function _Ne(e){let t=Oo(),o=Wn(e&&!t),n=t?.product??o,r=n?.kind==="tyre"?n.source.variants:[];return ENe(r)}function CNe(){return Dd(z,{as:"p",className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim",children:u("The EU label appears here for every size with an EPREL registration number. It is read live from the registry and never stored.")})}var RNe={ownPad:qPe,label:"EU Tyre Label",defaultProps:{num:""}};import{jsx as vwt}from"react/jsx-runtime";var ONe=Ct("EuTyreLabel",{...RNe,render:e=>vwt(O$,{num:R(e.num,bn.num,e.editor),editing:e.editor?.isEditing})});var NNe={label:"EU Tyre Label"};import{jsx as kwt}from"react/jsx-runtime";var LNe={...NNe,render:e=>kwt(T3,{editing:e.editor?.isEditing})};import{useState as Twt}from"react";import{jsx as E3,jsxs as Swt}from"react/jsx-runtime";function N$({id:e}){return Swt("defs",{children:[E3("marker",{id:`${e}-L`,viewBox:"0 0 10 10",refX:2,refY:5,markerWidth:6,markerHeight:6,orient:"auto",children:E3("path",{d:"M10,0 L0,5 L10,10 z",fill:"currentColor"})}),E3("marker",{id:`${e}-R`,viewBox:"0 0 10 10",refX:8,refY:5,markerWidth:6,markerHeight:6,orient:"auto",children:E3("path",{d:"M0,0 L10,5 L0,10 z",fill:"currentColor"})})]})}import{jsx as Ea,jsxs as Wl}from"react/jsx-runtime";var Ewt="(max-width: 1100px) 80vw, 290px",P3={labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]"};function LT({children:e}){return Ea(z,{as:"div",className:"min-w-0 grid grow view-desktop:basis-[400px]! view-desktop:grow-0! view-desktop:shrink-0! view-desktop:w-[400px]",children:e})}function xi(e,t){return e?{[mie]:t}:{}}function k0({diagram:e,editing:t,stacked:o="box"}){let[n,r]=Twt(!1),a=Ka("spec"),{wheelName:i,imageSrc:s,diameter:l,width:d,offset:c,holes:p,pcd:m,spokes:f,mesh:g,bore:h}=e,w=!!s&&!n;return Wl("div",{className:o==="legacy"?"sf-card bg-surface p-6 max-view-desktop:mt-8":"sf-card bg-surface p-6",children:[Ea("div",{...xi(t,"diagramTitle"),className:`mb-3 font-mono ${P3.label} uppercase tracking-[0.25em] text-fg-dim`,children:"Wheel Dimension Diagram"}),Wl("div",{className:"relative flex aspect-square items-center justify-center",children:[Wl("svg",{viewBox:"0 0 320 320",className:"absolute inset-0 h-full w-full text-fg-dim",fill:"none",stroke:"currentColor",children:[Ea("line",{x1:40,y1:20,x2:280,y2:20,strokeWidth:1,markerStart:`url(#${a}-L)`,markerEnd:`url(#${a}-R)`}),Ea("line",{x1:40,y1:15,x2:40,y2:25,strokeWidth:1}),Ea("line",{x1:280,y1:15,x2:280,y2:25,strokeWidth:1}),Ea(N$,{id:a})]}),w?Ea("img",{...go(s,{fallbackWidth:960}),sizes:Ewt,alt:`${i} \u2014 face`,onError:()=>r(!0),loading:"lazy",className:"relative z-[1] block h-[80%] w-[80%] object-contain"}):Ea(Kh,{spokes:f,mesh:g,className:"relative z-[1] block h-[72%] w-[72%] text-accent"}),Wl("span",{...xi(t,"diagramCallout"),className:`absolute top-1.5 left-1/2 z-20 -translate-x-1/2 bg-surface px-2 font-mono ${P3.label} tracking-[0.2em] text-accent`,children:["\u2300 ",KB(l)]}),Wl("span",{...xi(t,"diagramCallout"),className:`absolute bottom-1.5 left-1/2 z-20 -translate-x-1/2 bg-surface px-2 font-mono ${P3.label} tracking-[0.2em] text-fg`,children:["WIDTH ",KB(d)]})]}),Wl("div",{className:`mt-4 grid grid-cols-5 gap-3 font-mono ${P3.labelSmall} uppercase tracking-[0.2em] text-fg-dim max-[480px]:grid-cols-3`,children:[Wl("div",{children:[Ea("div",{...xi(t,"diagramStatLabel"),className:"text-fg-dim/60",children:"Holes"}),Ea("div",{...xi(t,"diagramStatValue"),className:"mt-1 text-fg",children:p})]}),Wl("div",{children:[Ea("div",{...xi(t,"diagramStatLabel"),className:"text-fg-dim/60",children:"PCD"}),Ea("div",{...xi(t,"diagramStatValue"),className:"mt-1 text-fg",children:m})]}),Wl("div",{children:[Ea("div",{...xi(t,"diagramStatLabel"),className:"text-fg-dim/60",children:"Spokes"}),Wl("div",{...xi(t,"diagramStatValue"),className:"mt-1 text-fg",children:[f,g?" + Mesh":""]})]}),Wl("div",{children:[Ea("div",{...xi(t,"diagramStatLabel"),className:"text-fg-dim/60",children:"Bore"}),Ea("div",{...xi(t,"diagramStatValue"),className:"mt-1 text-fg",children:h})]}),Wl("div",{children:[Ea("div",{...xi(t,"diagramStatLabel"),className:"text-fg-dim/60",children:"ET"}),Ea("div",{...xi(t,"diagramStatValue"),className:"mt-1 text-accent",children:c})]})]})]})}function _3(e,t){let o=t?.kind==="alloy-wheel"?t.source:null,n=e?e.selection.shown.finish:o?.finishes[0]?.name,r=e&&o?Of(o,e.selection.part)?.size??void 0:void 0;return o?Yy(y5e(o),n,r):{rows:[],diagram:null}}import{jsx as AT}from"react/jsx-runtime";var Pwt=["alloy-wheel"];function L$({editing:e=!1,label:t}){let o=AT(Un,{kinds:Pwt,type:"WheelDiagram",label:t,editing:e,children:AT(_wt,{editing:e})});return e?AT(LT,{children:o}):o}function _wt({editing:e}){let t=Oo(),o=Wn(e&&!t),n=_3(t,t?.product??o);if(!n.diagram)return null;let r=AT(k0,{diagram:n.diagram,editing:e});return e?r:AT(LT,{children:r})}var A$={label:"Wheel Diagram",defaultProps:{dynamic:!0,source:null,finish:"",size:""}};import{Fragment as Cwt,jsx as C3}from"react/jsx-runtime";var ANe={...A$,render:e=>{let t=e.editor?.isEditing===!0;if(e.dynamic)return C3(L$,{editing:t,label:A$.label});let o=e.source??null,n=e.wheel,r=typeof e.finish=="string"?e.finish:"",a=typeof e.size=="string"?e.size:"",i=o?.slug&&o.spec?Yy(o,r,a).diagram:!o?.slug&&typeof n=="string"&&n?o3(n,r,a).diagram:null;return i?C3(LT,{children:C3(k0,{diagram:i,editing:t})}):C3(Cwt,{})}};import{useEffect as Owt,useMemo as Nwt,useRef as Lwt}from"react";var I$="/shop";function INe({shopperPicked:e,fullyPicked:t,editing:o,pathname:n}){return o||!e||!t?!1:!Rwt(n)}function Rwt(e){return(e.split("?")[0]??"").replace(/\/+$/,"")===I$}function FNe(e){let o=Xc(new URLSearchParams,e).toString();return o?`${I$}?${o}`:I$}import{jsx as Ul,jsxs as F$}from"react/jsx-runtime";var R3={body:"text-[length:var(--size-body,17px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function IT({loading:e,error:t,data:o}){return e?Ul(z,{className:`mt-10 border border-line bg-bg p-6 font-mono ${R3.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:"Loading stock fitment\u2026"}):t?F$(z,{className:`mt-10 border border-line bg-bg p-6 font-mono ${R3.labelLarge} uppercase tracking-[0.22em] text-fg-dim`,children:["Couldn't load stock fitment \u2014 ",Ul("span",{className:"text-accent",children:t})]}):o?F$(z,{className:"mt-10 grid grid-cols-4 gap-[2px] border border-line bg-line max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1",children:[Ul(Qf,{label:"Bolt pattern",value:o.boltPattern??"\u2014"}),Ul(Qf,{label:"PCD",value:o.pcd??"\u2014"}),Ul(Qf,{label:"Hub bore",value:o.centreBore?`${o.centreBore} mm`:"\u2014"}),Ul(Qf,{label:"ET range",value:o.etRange&&o.etRange.length===2?`${o.etRange[0]} \u2013 ${o.etRange[1]}`:"\u2014"}),Ul(Qf,{label:"OEM front",value:o.frontWheels.length?o.frontWheels.join(" \xB7 "):"\u2014"}),Ul(Qf,{label:"OEM rear",value:o.rearWheels.length?o.rearWheels.join(" \xB7 "):"\u2014"}),Ul(Qf,{label:"OEM front tyres",value:o.frontTyres.length?o.frontTyres.join(" \xB7 "):"\u2014"}),Ul(Qf,{label:"OEM rear tyres",value:o.rearTyres.length?o.rearTyres.join(" \xB7 "):"\u2014"})]}):null}function Qf({label:e,value:t}){return F$("div",{className:"flex min-h-[96px] flex-col gap-2 bg-bg px-5 py-5",children:[Ul("span",{className:`font-mono ${R3.labelSmall} uppercase tracking-[0.26em] text-fg-dim`,children:e}),Ul("span",{className:`mt-auto font-display ${R3.body} font-medium tracking-[-0.01em] text-fg`,children:t})]})}import{Fragment as BNe,jsx as Md,jsxs as S0}from"react/jsx-runtime";var O3={body:"text-[length:var(--size-body,18px)]",headingSmall:"text-[length:var(--size-headingSmall,30px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,14px)]"};function Awt(e,t,o){if(!o)return e;let{path:n,query:r,hash:a}=Iu(e),i=Xc(new URLSearchParams(r),t).toString();return`${n}${i?`?${i}`:""}${a}`}function B$({num:e,title:t,description:o,ctaText:n,ctaHref:r,layout:a="full",cellLook:i,omitHead:s=!1,initialMakes:l=[],editing:d=!1}){let{cascade:c}=Zi({initialMakes:l,editing:d,autoApply:!0}),p=a==="bar",m=Lwt(!1),f=Nwt(()=>{if(!p)return c;let b=k=>(...x)=>{m.current=!0,k(...x)};return{...c,setMake:b(c.setMake),setModel:b(c.setModel),setYear:b(c.setYear),setModification:b(c.setModification)}},[p,c]);Owt(()=>{p&&(typeof window>"u"||INe({shopperPicked:m.current,fullyPicked:c.fullyPicked,editing:d,pathname:window.location.pathname})&&window.location.assign(FNe(c.vehicle)))},[p,c.fullyPicked,c.vehicle,d]);let g=!s&&!p&&!!(e||t||o),h=!p&&n&&r?{text:n,href:r}:null,w=h?Awt(h.href,c.vehicle,c.fullyPicked):null;return S0(yt,{className:p?s?"pt-0 pb-8 max-view-desktop:pb-5":"py-8 max-view-desktop:py-5":s?"pt-0 pb-20 max-view-desktop:pb-[60px]":"py-20 max-view-desktop:py-[60px]",children:[g&&Md(Mt,{num:e,title:t,description:o,accent:!0}),p?S0("div",{className:"flex flex-wrap items-center gap-5",children:[!s&&t?.trim()&&Md("p",{className:`font-heading3 ${O3.headingSmall} [font-weight:var(--sf-heading-weight-strong,600)] leading-none tracking-[-0.02em] whitespace-nowrap`,children:Eo(t)}),Md("div",{className:"min-w-[320px] flex-1 basis-0",children:Md(Ja,{cascade:f,compact:!0,editing:d,cellLook:i})})]}):Md(Ja,{cascade:c,editing:d,cellLook:i}),!p&&Md(IT,{loading:c.loading.stock,error:c.stockError,data:c.fullyPicked?c.stock:null}),!p&&S0("div",{className:"mt-10 flex flex-wrap items-center justify-between gap-6 border-t border-line pt-8",children:[Md("p",{className:`max-w-[680px] font-serif ${O3.body} italic leading-[1.55] text-fg-dim`,children:c.fullyPicked?S0(BNe,{children:["Your car \xB7"," ",S0("strong",{className:"font-display [font-weight:var(--sf-heading-weight-strong,500)] not-italic text-fg",children:[c.vehicle.year," ",c.makeName," ",c.modelName," ",c.modName]}),c.stock&&Md("span",{className:"ml-3 not-italic text-accent",children:"OEM fitment loaded."})]}):S0(BNe,{children:["Tell us four things \u2014 ",Md("em",{className:"not-italic text-accent",children:"make, model, year, trim"})," \u2014 and we'll show the OEM stock fitment for your car."]})}),h&&w&&S0(Be,{href:w,className:`group inline-flex items-center gap-4 border border-btn bg-btn px-8 py-5 font-mono ${O3.labelLarge} uppercase tracking-[0.3em] text-btn-ink transition-colors hover:border-fg hover:bg-fg`,children:[h.text,Md("span",{className:"transition-transform group-hover:translate-x-[4px]",children:"\u2192"})]})]}),d&&c.makeOptions.length===0&&!c.loading.models&&Md("p",{className:`mt-4 font-mono ${O3.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:u("Vehicle catalog unavailable in this preview \u2014 the picker fills from the live fitment API on the published site.")})]})}import{hidableText as Iwt}from"efficient-easel/screen/lib/document/hidable";import{jsx as Fwt}from"react/jsx-runtime";var HNe=Ct("FitmentFinder",{...j_e,render:e=>{let t=We(e.headPlacement)==="own-box",o=n=>t?void 0:n;return Fwt(B$,{num:o(R(e.num,op.num,e.editor)),title:o(R(e.title,op.title,e.editor)),description:o(R(e.description,op.description,e.editor)),omitHead:t,ctaText:R(e.ctaText,op.ctaText,e.editor),ctaHref:Iwt(e.ctaHref)||"#",layout:e.layout,cellLook:e[qc],editing:e.editor?.isEditing})}});import{jsx as Bwt}from"react/jsx-runtime";function H$({layout:e,pickerColumns:t,pickerColumnsPhone:o,cellLook:n,editing:r=!1}){let{cascade:a}=Zi({editing:r,autoApply:!0,shareStock:!0});return Bwt(Ja,{cascade:a,compact:e==="short",editing:r,columns:t,columnsPhone:o,cellLook:n})}import{phoneKey as Hwt}from"efficient-easel/draw";import{parseOption as Dwt}from"efficient-shell/format";import{jsx as Mwt}from"react/jsx-runtime";var DNe={...X_e,render:e=>Mwt(H$,{layout:Dwt(ZA,JA,e.layout),pickerColumns:e.pickerColumns,pickerColumnsPhone:e[Hwt("pickerColumns")],cellLook:e[qc],editing:!!e.editor?.isEditing})};import{useEffect as $wt,useState as KNe}from"react";import{Fragment as MNe,jsx as zwt,jsxs as zNe}from"react/jsx-runtime";function D$({answer:e}){let t=e.tone==="no-fit"?"text-[color:var(--alert)]":e.tone==="ask"||e.tone==="checking"||e.tone==="unknown"?"text-fg":"text-accent";return zNe(MNe,{children:[zwt("span",{className:`uppercase tracking-[0.18em] ${t}`,children:e.lead}),e.detail?zNe(MNe,{children:[" ",e.detail]}):null]})}function UNe({wheel:e,applied:t,fit:o,resolving:n}){if(!t)return{state:"unasked"};if(n)return{state:"checking"};if(!o)return{state:"unknown",missing:"vehicle"};if(!e)return{state:"unknown",missing:"wheel"};let r=e.variants??[],a=r.length===0?Vz(e,o):Wwt(r,o);if(a===null)return{state:"fits",checks:sy(o)};let i=r.length===0?null:Vz(e,o),s=i!==null&&i.key===a.key?i:a;return s.key==="unverifiable"?{state:"unknown",missing:"wheel"}:s.key==="et"?{state:"fits-with-warning",checks:sy(o),warning:s}:{state:"no-fit",failure:s}}var WNe=["unverifiable","pcd","bore","et"];function Wwt(e,t){let o=null,n=null,r=!1;for(let a of e){let i=GL(UL(a),t);if(i===null){let s=kTe(a,t);if(s===null)return null;r=!0,n=n??s;continue}(o===null||WNe.indexOf(i.key)>WNe.indexOf(o.key))&&(o=i)}return r?n:o}function T0(e){switch(e.key){case"pcd":return`This car is ${e.vehicle} and this wheel is drilled ${e.wheel}. A different bolt pattern cannot be made to fit.`;case"et":return`This wheel is made in ${e.wheel} and this car takes ${e.vehicle}.`;case"bore":return`This wheel is bored ${e.wheel} and this car needs at least ${e.vehicle} to seat on its hub.`;default:return""}}var Uwt="Pick your car",Gwt="and we will check this size against it.";function GNe(e){let t=(e.pcd??"").trim();return{pcds:t?[e.holes>0?`${e.holes}\xD7${t}`:t]:[],lugs:e.holes>0?e.holes:null,etRange:Number.isFinite(e.et)?[e.et,e.et]:null,centreBores:Number.isFinite(e.cb)&&e.cb>0?[e.cb]:[]}}function $Ne(e,t){let o=t.appliedName;if(o==="")return{tone:"ask",lead:Uwt,detail:Gwt};if(t.resolving)return{tone:"checking",lead:"Checking",detail:`your ${o}\u2026`};if(!t.fit)return{tone:"unknown",lead:"Cannot check",detail:`We have no factory wheel data for the ${o}, and we will not guess at a fit.`};let n=Qg(GNe(e),t.fit);if(n===null)return{tone:"fits",lead:`Fits your ${o}`,detail:""};if(n.key==="unverifiable")return{tone:"unknown",lead:"Cannot check",detail:"We do not hold a bolt pattern for this size, and we will not guess at a fit."};if(n.key==="et"){let r=Qg(GNe(e),{...t.fit,etRange:null});return r===null?{tone:"warn",lead:`Fits your ${o}`,detail:`Check the offset. ${T0(n)}`}:{tone:"no-fit",lead:`Does not fit your ${o}`,detail:T0(r)}}return{tone:"no-fit",lead:`Does not fit your ${o}`,detail:T0(n)}}import{Fragment as Vwt,jsx as Pn,jsxs as zd}from"react/jsx-runtime";var E0={body:"text-[length:var(--size-body,12px)]",labelXs:"text-[length:var(--size-label,11px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]",labelXl:"text-[length:var(--size-label,14px)]"},VNe={root:"whitespace-nowrap",inBox:"whitespace-nowrap max-view-tablet:whitespace-normal"},Kwt="border-b border-line px-4 py-4",YNe=`relative cursor-pointer border-2 px-4 py-2 font-mono ${E0.labelSmall} font-semibold uppercase tracking-[0.18em] text-fg transition-colors`,jNe=Yr.inline,qNe=Yr.ownBox,ZNe="-mx-1 overflow-x-auto",N3={scroll:ZNe,table:`min-w-[600px] ${ib}`,head:"border-b border-line bg-surface",row:"group relative border-b border-line transition-colors hover:bg-surface"},XNe={background:"color-mix(in oklab, var(--accent) 14%, transparent)"},M$=(e,t,o)=>t.map(n=>n.cell(e,o)).join("|");function FT({num:e,title:t,description:o,rows:n,showFilter:r=!0,tooltipDefaultOn:a=!0,footnote:i,footnoteLinkText:s,footnoteLinkHref:l,editing:d=!1,omitHead:c=!1,fieldUsage:p=Bn,template:m,headTemplate:f,nodeId:g,hideEmptyColumns:h=!1}){let w=he(),b=Nb()?VNe.inBox:VNe.root,k=`${b} ${Kwt}`,x=n??[],v=Ume(p),y=h?Wme(v,x):v,S=bs(),E=zme(Use()),[T,_]=KNe(null),[P,I]=KNe(a);$wt(()=>I(a),[a]);let D=Zi({editing:d}),F=y.length===0;if(x.length===0||F)return d?zd(yt,{className:c?qNe:jNe,children:[c?null:Pn(Mt,{num:e!=null?L(e):void 0,title:t!=null?te(t,!1):void 0,description:o!=null?L(o):void 0,accent:!0}),Pn("p",{className:`border-t border-line py-6 font-mono ${E0.labelLarge} uppercase tracking-[0.18em] text-fg-dim`,children:F?u("Every fitment column is hidden in Product Types \u2014 show one to draw this table."):u("No fitment data for this wheel \u2014 pick a wheel with fitment specs.")})]}):null;let A=new Set,N=x.filter(C=>{let O=M$(C,y,E);return A.has(O)?!1:(A.add(O),!0)}),B=Array.from(new Set(N.map(C=>C.diameter))).sort((C,O)=>C-O),Y=T!==null&&B.includes(T)?T:null,K=Y===null?N:N.filter(C=>C.diameter===Y),X=r&&B.length>1,Z=C=>{if(C===0)return!1;let O=K[C-1],G=K[C];return O.diameter!==G.diameter||O.width!==G.width},V=C=>P?Pn("span",{role:"tooltip",className:`pointer-events-none absolute top-1/2 right-0 z-20 hidden w-[520px] -translate-y-1/2 whitespace-normal bg-[var(--tooltip-bg)] px-3 py-2 text-right font-mono ${E0.labelXs} normal-case tracking-[0.12em] text-fg shadow-lg group-hover:block max-view-tablet:!hidden`,children:Pn(D$,{answer:$Ne(C,D)})}):null,j=(C,O)=>zd("div",{className:N3.row,children:[C,K[O.index]?V(K[O.index]):null]}),J=Pn("div",{className:ZNe,children:zd("table",{className:`w-full border-collapse font-mono ${E0.labelXl} tracking-[0.06em] text-fg`,children:[Pn("thead",{children:Pn("tr",{children:y.map(({header:C},O)=>Pn("th",{className:`${b} border-b border-line bg-surface px-4 py-4 text-left ${E0.body} font-normal uppercase tracking-[0.22em] text-fg-dim`,children:S(C)},O))})}),Pn("tbody",{children:K.map((C,O)=>Pn("tr",{className:`group transition-colors hover:[&>td]:bg-surface ${Z(O)?"[&>td]:border-t [&>td]:border-line":""}`,children:y.map((G,$)=>{let H=$===y.length-1,ee=G.fieldKey==="diameter";return zd("td",{className:`${H?"relative ":""}${k}${ee?" text-accent":""}`,children:[G.cell(C,E),H?V(C):null]},G.fieldKey)})},M$(C,y,E)))})]})});return zd(yt,{className:c?qNe:jNe,children:[c?null:Pn(Mt,{num:e!=null?L(e):void 0,title:t!=null?te(t,!1):void 0,description:o!=null?L(o):void 0,accent:!0}),zd("div",{className:"mb-6 flex flex-wrap items-center gap-x-2 gap-y-3",children:[X&&zd(Vwt,{children:[Pn("span",{className:`mr-2 font-mono ${E0.labelSmall} uppercase tracking-[0.24em] text-fg-dim max-view-tablet:mr-0 max-view-tablet:mb-1 max-view-tablet:w-full`,children:"Filter by size:"}),zd("button",{type:"button",onClick:()=>_(null),className:`${YNe} ${Y===null?"border-accent outline outline-1 outline-accent -outline-offset-1":"border-fg-dim/50 hover:border-accent"}`,style:Y===null?XNe:void 0,children:[Y===null&&Pn("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),"All"]}),B.map(C=>{let O=C===Y;return zd("button",{type:"button",onClick:()=>_(O?null:C),className:`${YNe} ${O?"border-accent outline outline-1 outline-accent -outline-offset-1":"border-fg-dim/50 hover:border-accent"}`,style:O?XNe:void 0,children:[O&&Pn("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),C,'"']},C)})]}),zd("button",{type:"button",onClick:()=>I(C=>!C),"aria-pressed":P,"aria-label":P?"Hide vehicle tooltip":"Show vehicle tooltip",className:`ml-auto inline-flex items-center gap-3 font-mono ${E0.labelSmall} uppercase tracking-[0.24em] text-fg-dim transition-colors hover:text-fg max-view-tablet:hidden`,children:[Pn("span",{children:"Vehicle tooltip"}),Pn("span",{className:`relative inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 transition-colors ${P?"border-accent":"border-fg-dim/50"}`,style:P?{background:"color-mix(in oklab, var(--accent) 30%, transparent)"}:void 0,"aria-hidden":!0,children:Pn("span",{className:`block h-3 w-3 rounded-full transition-transform ${P?"translate-x-[18px] bg-accent":"translate-x-[2px] bg-fg-dim"}`})}),Pn("span",{className:P?"text-accent":"text-fg-dim",children:P?"On":"Off"})]})]}),Pn(Ge,{ownerId:g??"",ownerType:"FitmentTable",Template:m,rows:K.map(C=>Jme(C,y,E,M$(C,y,E))),wrapCopy:j,fallback:J,children:C=>Pn("div",{className:N3.scroll,children:zd("div",{className:`${N3.table}${w?` ${Xm}`:""}`,children:[Pn(Ge,{ownerId:g??"",ownerType:"FitmentTable",slot:Vu,Template:f,rows:[Qme(y,S)],fallback:null,children:O=>Pn("div",{className:N3.head,children:O})}),C]})})}),Pn(Od,{text:i,linkText:s,linkHref:l})]})}import{jsx as rv,jsxs as eLe}from"react/jsx-runtime";var JNe="border-b border-line py-[120px] max-view-desktop:py-20",QNe="border-b border-line pt-0 pb-[120px] max-view-desktop:pt-0 max-view-desktop:pb-20",BT={title:"Available *sizes.*",description:"Every size this tyre is made in, with its own price and stock."};function L3({variants:e,fieldUsage:t,num:o,title:n,description:r,editing:a=!1,omitHead:i=!1,keepHiddenHead:s=!1}){let l=(f,g)=>s?f===""?void 0:f??g:f||g,d=l(n,BT.title),c=l(r,BT.description),p=i?null:rv(Mt,{num:o?L(o):void 0,title:d!=null?te(d,!1):void 0,description:c!=null?L(c):void 0,accent:!0});if(e.length===0)return a?eLe(yt,{className:i?QNe:JNe,children:[p,rv("p",{className:"border-t border-line py-6 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim",children:u("This product\u2019s sizes appear here on a product page.")})]}):null;let m=e.some(f=>!f.image);return eLe(yt,{className:i?QNe:JNe,children:[p,rv(Ywt,{variants:e,fieldUsage:t}),rv(Od,{text:m?dO:""})]})}function Ywt({variants:e,fieldUsage:t}){let{currency:o,formatPrice:n}=Lt();return rv("div",{className:"grid grid-cols-3 gap-2 max-view-desktop:grid-cols-2 max-view-tablet:grid-cols-1",children:e.map(r=>rv(PT,{fieldUsage:t,size:r.size,specs:r.specs,prices:r.prices,image:r.image,inStock:r.inStock,currency:o,formatPrice:n},r.sku))})}import{jsx as A3}from"react/jsx-runtime";var jwt=["alloy-wheel","tyre"];function z$(e){return A3(Un,{kinds:jwt,type:"FitmentTable",editing:e.editing,children:A3(qwt,{...e})})}function qwt({num:e,title:t,description:o,showFilter:n,tooltipDefaultOn:r,footnote:a,footnoteLinkText:i,footnoteLinkHref:s,editing:l=!1,omitHead:d=!1,tyreHead:c,template:p,headTemplate:m,nodeId:f,hideEmptyColumns:g}){let h=Oo(),w=Wn(l&&!h),b=h?.product??w;if(b?.kind==="tyre")return A3(L3,{variants:b.source.variants,fieldUsage:h?.fieldUsage??Bn,num:e,title:c?c.title:t,description:c?c.description:o,editing:l,omitHead:d,keepHiddenHead:c!=null});let k=b?.kind==="alloy-wheel"?b.source.fitments??[]:[];return A3(FT,{num:e,title:t,description:o,rows:k,showFilter:n,tooltipDefaultOn:r,footnote:a,footnoteLinkText:i,footnoteLinkHref:s,editing:l,omitHead:d,fieldUsage:h?.fieldUsage,template:p,headTemplate:m,nodeId:f,hideEmptyColumns:g})}function tLe(e,t){return t||e.dynamic===!0}import{jsx as oLe}from"react/jsx-runtime";function W$({dynamic:e,wheel:t,omitHead:o=!1,tyreHead:n,...r}){let a=Oo()!==null||!!r.editing&&Tr();return tLe({dynamic:e,wheel:t},a)?oLe(z$,{...r,omitHead:o,tyreHead:n}):oLe(FT,{...r,omitHead:o,rows:Ny(typeof t=="string"?t:"")})}import{hidableText as Xwt}from"efficient-easel/screen/lib/document/hidable";import{jsx as Zwt}from"react/jsx-runtime";var nLe=Ct("FitmentTable",{...tCe,render:e=>{let t=We(e.headPlacement)==="own-box",o=n=>t?void 0:n;return Zwt(W$,{dynamic:e.dynamic,wheel:e.wheel,num:o(R(e.num,Ml.num,e.editor)),title:o(R(e.title,Ml.title,e.editor)),description:o(R(e.description,Ml.description,e.editor)),tyreHead:t?void 0:{title:un(e.title,BT.title,e.editor),description:un(e.description,BT.description,e.editor)},omitHead:t,showFilter:e.showFilter,tooltipDefaultOn:e.tooltipDefaultOn,footnote:R(e.footnote,Ml.footnote,e.editor),footnoteLinkText:R(e.footnoteLinkText,Ml.footnoteLinkText,e.editor),footnoteLinkHref:Xwt(e.footnoteLinkHref),editing:e.editor?.isEditing,template:e.template,headTemplate:e.headTemplate,nodeId:typeof e.id=="string"?e.id:void 0,hideEmptyColumns:e.showEmptyColumns===!1})}});import{useMemo as rLe,useState as I3}from"react";import{slugify as U$,parseOption as Jwt}from"efficient-shell/format";import{Fragment as F3,jsx as bt,jsxs as cn}from"react/jsx-runtime";var Fr={bodyUpTo720:"max-view-tablet:text-[length:var(--size-body,15px)]",labelUpTo720:"max-view-tablet:text-[length:var(--size-label,11px)]",body:"text-[length:var(--size-body,17px)]",labelXs:"text-[length:var(--size-label,11px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]",labelXl:"text-[length:var(--size-label,14px)]"};function aLe(e){let t=[e.image,...(e.photos??[]).map(o=>o?.src)].filter(o=>!!o);return t.length?t:[""]}var G$=6,Qwt=()=>Array.from({length:G$},(e,t)=>({image:"",process:u("Tag"),eyebrow:u("Category"),name:u("Item name"),meta:u("{n} photos",{n:`0${t+1}`})}));function $$({mode:e="both",kicker:t,breadcrumbLabel:o,vehicleTabLabel:n="Gallery A",vehicleTitle:r,vehicleBody1:a,vehicleBody2:i,vehicleStats:s,vehicleCards:l,wheelTabLabel:d="Gallery B",wheelTitle:c,wheelBody1:p,wheelBody2:m,wheelStats:f,wheelCards:g,othersTitle:h,othersBody1:w,othersBody2:b,othersStats:k,othersCards:x,showBreadcrumb:v=!0,showStats:y=!0,showIntro:S=!0,showTabs:E=!0,showFilters:T=!0,showCount:_=!0,showSort:P=!0,previewTab:I,previewHover:D=!1,editing:F=!1}){let A=he(),N=pr(),B=!!N&&!v,Y=e==="both",K=Y?["vehicles","wheels"]:e==="wheels"?["wheels"]:e==="others"?["others"]:["vehicles"],[X,Z]=I3(K[0]),j=(F&&Y&&I&&K.includes(I)?I:null)??Jwt(K,K[0],X),J=F&&D,[C,O]=I3("all"),[G,$]=I3("newest"),[H,ee]=I3(null),se=j==="vehicles"?{title:r,body1:a,body2:i,stats:s??[],cards:l??[],unit:"items",word:n}:j==="others"?{title:h,body1:w,body2:b,stats:k??[],cards:x??[],unit:"items",word:"Others"}:{title:c,body1:p,body2:m,stats:f??[],cards:g??[],unit:"items",word:d},pe=rLe(()=>{let we=[];for(let $e of se.cards)$e.process&&!we.includes($e.process)&&we.push($e.process);return we},[se.cards]),Ne=C!=="all"&&pe.includes(C)?C:"all",ce=Ne==="all"?se.cards:se.cards.filter(we=>we.process===Ne),me=rLe(()=>{let we=[...ce];return G==="name"&&we.sort(($e,ft)=>($e.name??"").localeCompare(ft.name??"")),we},[ce,G]),Ce=se.cards.length===0,Pe=F&&Ce,ie=Pe?Qwt():me,Ae=Pe?G$:se.cards.length,At=Pe?G$:me.length,Re=t?`${t} \xB7 ${So(se.word)}`:void 0;function Dt(we){we!==j&&(Z(we),O("all"))}return cn(z,{as:"section",...Te("relative z-[2] bg-bg",N),children:[v&&cn("nav",{className:fe(`mx-auto flex max-w-[var(--sf-site-width,1600px)] items-center gap-4 border-b border-line px-[var(--sf-site-gutter,40px)] ${N?"pb-6":"py-6"} font-mono ${Fr.labelLarge} uppercase tracking-[0.2em] text-fg-dim max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))] ${N?"max-view-tablet:pb-4":"max-view-tablet:py-4"}`,A),children:[bt("span",{className:"hover:text-fg",children:"Home"}),bt("span",{className:"opacity-40",children:"/"}),bt("span",{className:"text-fg",children:o?jo(o):"Gallery"})]}),cn("div",{className:fe(`mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[auto_1fr_auto] items-end gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)]${B?"":" pt-[100px]"} pb-[60px] max-view-desktop:grid-cols-1 max-view-desktop:gap-5 max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]${B?"":" max-view-desktop:pt-[60px]"}`,A),children:[bt("span",{className:`pb-4 font-mono ${Fr.labelXl} uppercase tracking-[0.3em] text-accent`,children:Re?L(Re):null}),bt("h2",{className:"font-display text-[length:min(var(--size-headingLarge,clamp(64px,9vw,140px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.9] tracking-[-0.04em]",children:se.title?te(se.title,!0):null}),bt("div",{className:`pb-4 text-right font-mono ${Fr.labelLarge} uppercase leading-[1.8] tracking-[0.18em] text-fg-dim max-view-desktop:text-left`,children:y&&se.stats.map((we,$e)=>cn("div",{children:[we.value?bt("strong",{className:"font-normal text-fg",children:L(we.value)}):null," ",we.label?L(we.label):null]},$e))})]}),S&&(se.body1||se.body2)&&cn("div",{className:fe("mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-2 gap-[60px] px-[var(--sf-site-gutter,40px)] pt-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-4 max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",A),children:[se.body1&&bt("p",{className:`max-w-[540px] font-display ${Fr.body} leading-[1.6] text-fg-dim`,children:L(se.body1)}),se.body2&&bt("p",{className:`max-w-[540px] font-display ${Fr.body} leading-[1.6] text-fg-dim`,children:L(se.body2)})]}),Y&&E&&bt("div",{className:fe("mx-auto mt-10 flex max-w-[var(--sf-site-width,1600px)] items-stretch border-y border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-tablet:px-3",A),children:["vehicles","wheels"].map((we,$e)=>{let ft=j===we,ct=we==="vehicles"?n:d,xn=we==="vehicles"?(l??[]).length:(g??[]).length,so=(ct||"").trim().split(/\s+/),Xt=so.slice(0,-1).join(" "),ht=so.slice(-1)[0]??"";return cn("button",{type:"button",onClick:()=>Dt(we),className:["group relative grid flex-1 cursor-pointer grid-cols-[auto_1fr_auto] items-end gap-5 px-6 py-8 text-left transition-colors",$e===0?"border-r border-line":"","max-view-tablet:grid-cols-[auto_1fr] max-view-tablet:items-center max-view-tablet:gap-2 max-view-tablet:px-3 max-view-tablet:py-3",ft?"bg-surface":"hover:bg-fg/[0.04]"].join(" "),children:[bt("span",{className:[`pb-2 font-mono ${Fr.labelLarge} tracking-[0.3em] max-view-tablet:pb-0 ${Fr.labelUpTo720} max-view-tablet:tracking-[0.24em]`,ft?"text-accent":"text-fg-dim group-hover:text-accent"].join(" "),children:$e===0?"A":"B"}),cn("span",{className:`font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.6vw,48px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.02em] ${Fr.bodyUpTo720}`,children:[Xt?cn(F3,{children:[jo(Xt)," "]}):null,bt("em",{className:"font-normal italic text-accent",children:jo(ht)})]}),cn("span",{className:`pb-2 text-right font-mono ${Fr.labelSmall} uppercase leading-[1.7] tracking-[0.24em] text-fg-dim max-view-tablet:hidden`,children:[bt("strong",{className:"font-normal text-fg",children:xn})," ","items",bt("br",{}),we==="vehicles"?"Community photos":"Featured photos"]}),ft&&bt("span",{className:"pointer-events-none absolute inset-x-0 -bottom-px h-0.5 bg-accent"})]},we)})}),(T||_||P)&&cn("div",{className:fe("mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[auto_1fr_auto] items-center gap-8 border-b border-line px-[var(--sf-site-gutter,40px)] py-5 max-view-tablet:grid-cols-1 max-view-tablet:gap-4 max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))] max-view-tablet:py-3",A),style:{background:"color-mix(in oklab, var(--bg) 92%, transparent)"},children:[bt("div",{className:"flex flex-wrap gap-1",children:T&&["all",...pe].map(we=>{let $e=Ne===we,ft=we==="all"?"All":we;return bt("button",{type:"button",onClick:()=>O(we),className:[`cursor-pointer border px-4 py-3 font-mono ${Fr.labelLarge} uppercase tracking-[0.2em] transition-colors`,$e?"border-fg bg-fg text-bg":"border-transparent text-fg-dim hover:text-fg"].join(" "),children:jo(ft)},we)})}),_?cn("div",{className:`text-center font-mono ${Fr.labelLarge} uppercase tracking-[0.2em] text-fg-dim`,children:[bt("strong",{className:"font-normal text-accent",children:At})," / ",Ae," ",se.unit]}):bt("div",{}),P?cn("div",{className:`flex items-center gap-3 font-mono ${Fr.labelLarge} uppercase tracking-[0.18em] text-fg-dim`,children:[bt("span",{children:"Sort"}),cn(uR,{value:G,onChange:we=>$(we.target.value),className:`cursor-pointer border border-line bg-bg px-3 py-2 font-mono ${Fr.labelLarge} uppercase tracking-[0.18em] text-fg`,children:[bt("option",{value:"newest",children:"Newest"}),bt("option",{value:"featured",children:"Featured"}),bt("option",{value:"name",children:"Name A\u2013Z"})]})]}):bt("div",{})]}),bt("div",{className:fe(`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-5${N?"":" pb-20"} max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))]`,A),children:ie.length>0?bt("div",{className:"grid grid-cols-6 gap-2 max-view-desktop:grid-cols-2 max-view-tablet:grid-cols-1",children:ie.map((we,$e)=>{let ft=aLe(we)[0],xn=`group relative block aspect-[4/3] w-full overflow-hidden bg-surface-2 text-left ${$e<2?"col-span-3 max-view-desktop:col-span-1":"col-span-2 max-view-desktop:col-span-1"}`,so=`${we.name??"card"}-${$e}`,Xt=cn(F3,{children:[bt(co,{label:U$(we.name)||`gallery-card-${$e+1}`,src:ft||void 0,alt:So(we.name??""),sizes:"(max-width: 720px) 100vw, (max-width: 1100px) 50vw, 33vw",className:`transition-transform duration-700 ${J?"scale-[1.04]":"group-hover:scale-[1.04]"}`}),cn("div",{className:"pointer-events-none absolute inset-0 z-10 flex flex-col justify-between p-6 max-view-tablet:p-3",style:{background:"linear-gradient(180deg, rgba(10,10,10,.55) 0%, transparent 35%, transparent 55%, rgba(10,10,10,.92) 100%)"},children:[cn("div",{className:`flex items-start justify-between font-mono ${Fr.labelSmall} uppercase tracking-[0.24em]`,children:[we.process?bt("span",{className:"text-accent",children:L(we.process)}):bt("span",{}),cn("span",{className:"text-overlay-fg/70",children:[String($e+1).padStart(2,"0")," / ",String(ie.length).padStart(2,"0")]})]}),cn("div",{className:"flex flex-col gap-2",children:[we.eyebrow&&bt("div",{className:`font-mono ${Fr.labelSmall} uppercase tracking-[0.24em] text-accent`,children:L(we.eyebrow)}),we.name&&bt("div",{className:"font-heading3 text-[length:var(--size-headingSmall,clamp(22px,2.4vw,32px))] font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg",children:L(we.name)}),we.meta&&bt("div",{className:`flex flex-wrap gap-3 pt-1 font-mono ${Fr.labelXs} uppercase tracking-[0.2em] text-overlay-fg/70`,children:bt("span",{children:L(we.meta)})})]})]})]});return F?bt("div",{className:xn,children:Xt},so):bt("button",{type:"button",onClick:()=>ee({card:we,index:0}),"aria-label":`Open ${we.name??"gallery item"}`,className:`${xn} cursor-pointer focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2`,children:Xt},so)})}):bt("div",{className:`py-20 text-center font-mono ${Fr.labelXl} uppercase tracking-[0.2em] text-fg-dim`,children:Ce?"No items in this gallery yet.":"No items match this filter."})}),H&&(()=>{let we=aLe(H.card),{card:$e,index:ft}=H,ct=we.length,xn=we[ft]??we[0]??"",so=ht=>ee(nt=>nt&&{...nt,index:(nt.index+ht+ct)%ct}),Xt=[$e.process,$e.meta].filter(Boolean).join(" \xB7 ");return cn(sm,{open:!0,onClose:()=>ee(null),label:$e.name??"Gallery item",onPrev:ct>1?()=>so(-1):void 0,onNext:ct>1?()=>so(1):void 0,className:"flex cursor-zoom-out flex-col items-center justify-center p-6 max-view-tablet:p-3",children:[cn("div",{className:"relative flex w-full flex-1 items-center justify-center",children:[bt("div",{className:"relative h-full max-h-[72vh] w-full max-w-[92vw]",children:bt(co,{label:U$($e.name)||"gallery-photo",src:xn||void 0,alt:So($e.name??""),objectFit:"contain",sizes:"92vw"})}),ct>1&&cn(F3,{children:[bt("button",{type:"button","aria-label":"Previous photo",onClick:ht=>{ht.stopPropagation(),so(-1)},className:"absolute left-2 top-1/2 flex h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg-dim/40 bg-overlay-scrim/40 text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u25C1"}),bt("button",{type:"button","aria-label":"Next photo",onClick:ht=>{ht.stopPropagation(),so(1)},className:"absolute right-2 top-1/2 flex h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg-dim/40 bg-overlay-scrim/40 text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u25B7"})]})]}),cn("div",{className:`mt-5 flex flex-col items-center gap-3 text-center font-mono ${Fr.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,onClick:ht=>ht.stopPropagation(),children:[cn("div",{className:"flex flex-col items-center gap-1",children:[$e.name&&bt("span",{className:"text-accent",children:L($e.name)}),$e.eyebrow&&bt("span",{children:L($e.eyebrow)}),cn("span",{className:"text-fg-dim/70",children:[Xt?cn(F3,{children:[L(Xt)," \xB7 "]}):null,ft+1," / ",ct]})]}),$e.href&&bt(Be,{href:$e.href,onClick:()=>ee(null),className:`cursor-pointer border border-btn bg-btn/[0.08] px-5 py-3 font-mono ${Fr.labelLarge} uppercase tracking-[0.28em] text-btn transition-colors hover:bg-btn hover:text-btn-ink`,children:"View Product \u2192"})]}),ct>1&&bt("div",{onClick:ht=>ht.stopPropagation(),className:"mt-5 flex max-w-[92vw] gap-2 overflow-x-auto pb-1",children:we.map((ht,nt)=>bt("button",{type:"button","aria-label":`Photo ${nt+1}`,onClick:()=>ee(Yn=>Yn&&{...Yn,index:nt}),className:["relative h-16 w-24 shrink-0 cursor-pointer overflow-hidden border transition-colors max-view-tablet:h-12 max-view-tablet:w-16",nt===ft?"border-accent":"border-line opacity-60 hover:border-fg-dim hover:opacity-100"].join(" "),children:bt(co,{label:U$($e.name)||"gallery-photo",src:ht||void 0,alt:"",sizes:"120px"})},`${ht}-${nt}`))}),bt(of,{})]})})()]})}import{hidableText as K$}from"efficient-easel/screen/lib/document/hidable";import{jsx as ext}from"react/jsx-runtime";var V$=()=>[{value:"00",label:u(W.label)},{value:"00",label:u(W.label)},{value:"00",label:u(W.label)}],B3=()=>({image:"",href:"#",process:u(W.category),eyebrow:u("Subtitle"),name:u("Item name"),meta:u("Detail")}),Y$=()=>[B3(),B3(),B3(),B3()],iLe=Ct("Gallery",{...dCe,render:e=>{let t=e.source;return ext($$,{mode:e.mode,kicker:R(e.kicker,zn.kicker,e.editor),breadcrumbLabel:K$(e.breadcrumbLabel)||"Gallery",vehicleTabLabel:K$(e.vehicleTabLabel)||"Gallery A",vehicleTitle:R(e.vehicleTitle,zn.vehicleTitle,e.editor),vehicleBody1:R(e.vehicleBody1,zn.vehicleBody1,e.editor),vehicleBody2:R(e.vehicleBody2,zn.vehicleBody2,e.editor),vehicleStats:De(e.vehicleStats,V$(),e.editor),vehicleCards:De(t?.vehicleCards??e.vehicleCards,Y$(),e.editor),wheelTabLabel:K$(e.wheelTabLabel)||"Gallery B",wheelTitle:R(e.wheelTitle,zn.wheelTitle,e.editor),wheelBody1:R(e.wheelBody1,zn.wheelBody1,e.editor),wheelBody2:R(e.wheelBody2,zn.wheelBody2,e.editor),wheelStats:De(e.wheelStats,V$(),e.editor),wheelCards:De(t?.wheelCards??e.wheelCards,Y$(),e.editor),othersTitle:R(e.othersTitle,zn.othersTitle,e.editor),othersBody1:R(e.othersBody1,zn.othersBody1,e.editor),othersBody2:R(e.othersBody2,zn.othersBody2,e.editor),othersStats:De(e.othersStats,V$(),e.editor),othersCards:De(t?.othersCards??e.othersCards,Y$(),e.editor),showBreadcrumb:e.showBreadcrumb,showStats:e.showStats,showIntro:e.showIntro,showTabs:e.showTabs,showFilters:e.showFilters,showCount:e.showCount,showSort:e.showSort,previewTab:e.previewTab,previewHover:e.previewHover,editing:e.editor?.isEditing})}});import{phoneKey as sxt}from"efficient-easel/draw";var txt=`relative z-[2] ${g1} ${b1}`;function H3(e,t){return e?t?txt:x1:w1}function D3(e,t){return t&&(e?.blockCount??0)>0?e:void 0}import{jsx as Pa,jsxs as sLe}from"react/jsx-runtime";var oxt=Ii;function nxt(e,t){if(!e)return[];if(t==="all")return u0.flatMap(n=>e[n]??[]);let o=u0.includes(t)?t:null;return o?e[o]??[]:[]}function j$(e){return jL(!!e.editing)?Pa(rxt,{...e}):Pa(Un,{kinds:oxt,type:"GalleryB",editing:e.editing,children:Pa(axt,{...e})})}function rxt(e){let{editing:t=!1}=e,o=Lb(),n=o?sS(o,{firstField:!0}).map(r=>({images:[r.url],eyebrow:r.alt&&r.alt!==o.title?r.alt:void 0,...r.video?{video:r.video}:{}})):t?Array.from({length:Jz},()=>({images:[""]})):[];return Pa(q$,{...e,tiles:n,owner:{name:(o??qL).title},photosOnly:!0,emptyHint:u("This record\u2019s pictures appear here on its page. A record with no pictures draws nothing.")})}function lLe(e){let{rows:t,limit:o,layout:n,editing:r=!1,title:a}=e,i=cb({layout:n}),s=typeof o=="number"&&o>0?Math.floor(o):void 0,l=t.filter(c=>typeof c.cover=="string"&&c.cover).map(c=>({images:[c.cover],...c.video?{video:c.video}:{}})),d=r&&l.length===0?Array.from({length:s??Jz},()=>({images:[""]})):l;return Pa(q$,{...e,tiles:s?d.slice(0,s):d,owner:{name:(a??"").replace(/==/g,"").trim()},photosOnly:!0,tilesAcross:i?.across===3?3:4,tileRatio:i?$Z(i):null,emptyHint:u("The website\u2019s pictures appear here, in the order they are put in. A website with no pictures draws nothing.")})}function axt({omitHead:e=!1,num:t,title:o,linkText:n,linkHref:r,galleryHref:a="/gallery",submitHref:i="/contact",zone:s="all",photoDisplay:l="covers",previewHover:d,display:c,displayPhone:p,styleOwner:m,editing:f=!1,pads:g,template:h,nodeId:w}){let b=Oo(),k=Wn(f&&!b),x=b?.product??k,v=nxt(x?.mediaGroups,s).map(E=>({images:(E.items??[]).filter(T=>T.kind==="image").map(T=>T.url),vehicle:Ly(E),finish:E.finish})).filter(E=>E.images.length>0),S=(l==="auto"?v.length>=4?"covers":"all":l)==="all"?v.flatMap(E=>E.images.map(T=>({images:[T],vehicle:E.vehicle,finish:E.finish}))):v;return Pa(q$,{omitHead:e,num:t,title:o,linkText:n,linkHref:r,galleryHref:a,submitHref:i,previewHover:d,display:c,displayPhone:p,styleOwner:m,editing:f,pads:g,template:h,nodeId:w,tiles:x?S.map(E=>({images:E.images,eyebrow:E.vehicle||void 0,meta:E.finish})):[],owner:{name:x?.name??"",href:x?.href,process:x?.eyebrow},emptyHint:u("This product\u2019s photos appear here on a product page. Add media groups in the product\u2019s Media tab.")})}function q$({omitHead:e=!1,num:t,title:o,linkText:n,linkHref:r,galleryHref:a="/gallery",submitHref:i="/contact",previewHover:s,display:l,displayPhone:d,styleOwner:c,editing:p=!1,tiles:m,owner:f,emptyHint:g,photosOnly:h=!1,tilesAcross:w,tileRatio:b=null,pads:k,template:x,nodeId:v}){let y=he(),S=n?{text:n,href:r||"#"}:void 0,E=o?te(o,!1):void 0,T=e?null:Pa(Mt,{num:t,title:E,link:S}),_=!p&&Bw(t,o,S?.text)?null:T,P=Ec(k,pi,{noTop:e,nonNegative:!0}),I=D3(x,!h),D=hl(H3(e,!!I),P);return m.length===0?p?Pa(z,{as:"section",...P.attrs,className:D,style:P.style,children:sLe("div",{className:fe(od,y),children:[_,Pa("p",{className:"mt-8 border-t border-line py-6 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim",children:g})]})}):null:Pa(z,{as:"section",...P.attrs,className:D,style:P.style,children:sLe("div",{className:fe(od,y),children:[_,h?Pa(OT,{pictures:m.map(F=>({url:F.images[0]??"",alt:F.eyebrow,video:F.video})),name:f.name,editing:p,...w?{fit:"tiles",across:w,ratio:b}:{}}):Pa(nk.Provider,{value:{galleryHref:a,submitHref:i,previewHover:s,display:l,displayPhone:d,styleOwner:c,photosOnly:h,ownerId:v,Template:I},children:Pa(w_,{children:Pa("div",{[rf]:"",className:"grid grid-cols-4 gap-2 max-[1500px]:grid-cols-3 max-view-wide:grid-cols-1 max-view-wide:gap-1",children:m.map((F,A)=>Pa(kg,{image:F.images[0],photos:F.images.slice(1).map(N=>({src:N})),href:f.href,process:f.process,eyebrow:F.eyebrow,name:f.name,meta:F.meta,editing:p},`${F.eyebrow}-${A}`))})})}),!h&&Pa("div",{className:"mt-12 flex flex-col items-center gap-3",children:Pa(va,{href:a,variant:"ghost",children:"See Gallery"})})]})})}import{useCallback as dLe,useMemo as HT,useState as cLe}from"react";import{jsx as Os,jsxs as ixt}from"react/jsx-runtime";function M3({items:e,template:t,nodeId:o,sourced:n,num:r,title:a,linkText:i,linkHref:s,galleryHref:l="/gallery",submitHref:d="/contact",previewHover:c,display:p,displayPhone:m,styleOwner:f,layout:g,layoutPhone:h,columns:w,columnsMobile:b,gap:k,gapPhone:x,omitHead:v=!1,pads:y,editing:S=!1}){let E=he(),T=ga(),_=nf(),P=l!==T&&(_||l!=="/gallery"),I={layout:g,layoutPhone:h},D=cb(I),F=!D&&w!=null&&w!=="",A=Ur("GalleryB",k,"both",x),N=D?{className:`sf-card-grid sf-gallery-zone ${KZ(I)} grid${A.className}`,style:A.style}:F?{className:`sf-card-grid sf-grid-zone grid${A.className}`,style:{...A.style,"--sf-grid-cols":String(HP(w)),"--sf-grid-cols-phone":String(DP(b,w))}}:{className:`sf-card-grid grid grid-cols-4${A.className} max-[1500px]:grid-cols-3 max-view-wide:grid-cols-1`,style:A.style},B=i?{text:i,href:s||"#"}:void 0,Y=a?te(a,!1):void 0,[K,X]=cLe({}),Z=dLe((Pe,ie)=>{X(Ae=>{let At=Ae[Pe.id];if(ie){if(!At)return Ae;let{[Pe.id]:Re,...Dt}=Ae;return Dt}return At&&At.tag===Pe.tag&&At.name===Pe.name?Ae:{...Ae,[Pe.id]:Pe}})},[]),V=n?.map(Pe=>Pe.tile.id).join(`
|
|
28
28
|
`),j=HT(()=>V!==void 0?V?V.split(`
|
|
29
29
|
`):[]:e?.blockIds,[V,e?.blockIds]),J=HT(()=>(j??[]).map(Pe=>K[Pe]).filter(Pe=>!!Pe),[j,K]),{ref:C,toolbar:O}=wRe(J),G=O!==null&&!rRe(O,J),$=HT(()=>G&&O?CI(J,O):null,[G,O,J]),H=HT(()=>$??J.map(Pe=>Pe.id),[$,J]),[ee,se]=cLe(null),pe=dLe((Pe,ie)=>{let Ae=H.indexOf(Pe);Ae<0||H.length<2||se({id:H[(Ae+ie+H.length)%H.length],at:ie>0?"first":"last"})},[H]),Ne=HT(()=>{let Pe=new Map(($??[]).map((ie,Ae)=>[ie,Ae]));return{report:Z,positionOf:ie=>{let Ae=$?Pe.get(ie):void 0;return Ae===void 0?null:{index:Ae+1,total:$.length}},walkCount:H.length,walk:pe,opening:ee}},[Z,$,H.length,pe,ee]),ce=$?Pe=>{let ie=$.indexOf(Pe);if(ie<0)return{style:{display:"none"}};if(!D)return{style:{order:ie}};let Ae=aRe(D,ie,$.length);return{className:EI,style:{order:ie,"--sf-wall-c":Ae.col,"--sf-wall-r":Ae.row,"--sf-wall-cp":Ae.colPhone,"--sf-wall-rp":Ae.rowPhone}}}:void 0,me=Ec(y,pi,{noTop:v,nonNegative:!0}),Ce=D3(t,!n);return Os(z,{as:"section",ref:C,...me.attrs,className:hl(H3(v,!!Ce),me),style:me.style,children:ixt("div",{className:fe(od,E),children:[v||!S&&Bw(r,a,B?.text)?null:Os(Mt,{num:r,title:Y,link:B}),D&&Os("style",{dangerouslySetInnerHTML:{__html:VZ(I)+($?iRe:"")}}),(e||n)&&Os(nk.Provider,{value:{galleryHref:l,submitHref:d,previewHover:c,display:p,displayPhone:m,styleOwner:f,wordsAtRest:!!n,ownerId:o,Template:Ce},children:Os(rM.Provider,{value:Ne,children:Os(w_,{children:Os("div",{[rf]:"",style:{display:"contents"},children:n?Os("div",{...N,children:n.map(({tile:Pe,...ie})=>{let Ae=Os(kg,{...ie,tile:Pe,editing:S},Pe.id),At=ce?.(Pe.id);return At?Os("div",{className:At.className,style:At.style,children:Ae},Pe.id):Ae})}):e?Os(e,{...N,minEmptyHeight:320,...ce?{cell:ce}:{}}):null})})})}),P&&Os("div",{className:"mt-12 flex flex-col items-center gap-3",children:Os(va,{href:l,variant:"ghost",children:"See Gallery"})})]})})}import{hidableText as DT}from"efficient-easel/screen/lib/document/hidable";import{Fragment as lxt,jsx as MT}from"react/jsx-runtime";var pLe={...xCe,render:e=>{let t=We(e.headPlacement)==="own-box",o=a=>t?void 0:a,n={num:o(R(e.num,os.num,e.editor)),title:o(R(e.title,os.title,e.editor)),omitHead:t,linkText:o(R(e.linkText,os.link,e.editor)),linkHref:o(DT(e.linkHref)||"/contact"),galleryHref:DT(e.galleryHref)||"/gallery",previewHover:e.previewHover,display:e.display,displayPhone:e.displayPhone,styleOwner:e.id,layout:e.layout,layoutPhone:e.layoutPhone,columns:e.columns,columnsMobile:e.columnsMobile,gap:e.gap,gapPhone:e[sxt("gap")],pads:fd(e),editing:e.editor?.isEditing,template:e.template,nodeId:typeof e.id=="string"?e.id:void 0},r=dt(e);if(r===Fy){let a=!!e.editor?.isEditing,i=bCe(e,a,e.limit);return!a&&i.length===0?MT(lxt,{}):MT(M3,{...n,layout:gCe(e),sourced:i})}if(r!==""){let a=!!e.editor?.isEditing,{rows:i,sample:s}=Kt(e,a);return MT(lLe,{num:o(R(e.num,os.num,e.editor)),title:o(R(e.title,os.title,e.editor)),linkText:o(R(e.linkText,os.link,e.editor)),linkHref:o(DT(e.linkHref)||"/contact"),omitHead:t,rows:s?[]:i,limit:e.limit,layout:e.layout,editing:a,pads:fd(e)})}return e.dynamic?MT(j$,{num:o(R(e.num,os.num,e.editor)),title:o(R(e.title,os.title,e.editor)),linkText:o(R(e.linkText,os.link,e.editor)),linkHref:o(DT(e.linkHref)||"/contact"),omitHead:t,galleryHref:DT(e.galleryHref)||"/gallery",zone:e.mediaZone||"all",photoDisplay:e.photoDisplay||"covers",previewHover:e.previewHover,display:e.display,displayPhone:e.displayPhone,styleOwner:e.id,editing:e.editor?.isEditing,pads:fd(e),template:n.template,nodeId:n.nodeId}):MT(M3,{...n,items:e.items})}};var mLe={label:"Gallery Item",defaultProps:{image:"",href:"",process:"",eyebrow:"",name:"",meta:"",fromProduct:!1,product:{},previewHover:!1}};import{jsx as dxt}from"react/jsx-runtime";function zT(e,t){if(typeof e=="string")return e.trim()===t?"":e;if(e&&typeof e=="object"){let o=e;if(typeof o.text=="string"&&o.text.trim()===t)return{...o,text:""}}return e}function uLe(e,t){let o=zT(e,t);if(typeof o=="string")return o.trim();if(o&&typeof o=="object"&&!o.hidden){let n=o.text;return typeof n=="string"?n.trim():""}return""}var fLe={...mLe,render:e=>{let t=e.product??{},o=e.fromProduct===!0&&!!t.code;return dxt(kg,{image:o?t.cover:e.image,photos:o?(t.photos??[]).map(n=>({src:n})):e.photos,href:o?t.href:e.href,process:o?t.hideProcess?void 0:t.category:R(zT(e.process,xd.process),xd.process,e.editor),eyebrow:o?t.hideEyebrow?void 0:t.vehicle||void 0:R(zT(e.eyebrow,xd.eyebrow),xd.eyebrow,e.editor),name:o?t.hideName?void 0:t.name:R(zT(e.name,xd.name),xd.name,e.editor),meta:o?t.hideFinish?void 0:t.finish:R(zT(e.meta,xd.meta),xd.meta,e.editor),previewHover:e.previewHover,ratio:e.ratio,captionPlace:e.captionPlace,editing:e.editor?.isEditing,tile:{id:String(e.id??""),tag:o?t.hideProcess?"":t.category??"":uLe(e.process,xd.process),name:o?t.hideName?"":t.name??"":uLe(e.name,xd.name)}})}};var hLe={label:"Header"};import{Fragment as cxt,jsx as pxt}from"react/jsx-runtime";var gLe={...hLe,render:()=>pxt(cxt,{})};import{useRef as $Le}from"react";import{useRef as hxt,useState as gxt}from"react";import{createContext as mxt,useContext as uxt}from"react";import{Fragment as fxt,jsx as P0,jsxs as z3}from"react/jsx-runtime";var bLe=mxt(ZI);function wLe({looks:e,children:t}){return P0(bLe.Provider,{value:e,children:t})}var W3=()=>uxt(bLe),xLe=e=>[e.label,e.note].filter(Boolean).join(" \xB7 ");function X$({label:e,chosen:t}){return z3("div",{className:"mb-3 text-[length:var(--size-label,12px)] text-fg-dim",children:[e,t?z3(fxt,{children:[": ",P0("span",{className:"text-fg",children:t})]}):null]})}function Z$(){return P0("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:"h-4 w-4 shrink-0",fill:"none",stroke:"currentColor",strokeWidth:1.4,children:P0("path",{d:"M6 9l6 6 6-6"})})}var J$="flex h-12 w-full cursor-pointer items-center justify-between gap-4 border border-line bg-transparent px-4 text-left text-[length:var(--size-body,13px)] text-fg";function yLe({label:e,shown:t,items:o,value:n,onPick:r,editing:a,rowKey:i}){let s=bc({items:o,value:n,onPick:r});return z3("div",{ref:s.wrapRef,className:"relative","data-option-dropdown":i,children:[z3("button",{ref:l=>{s.triggerRef.current=l},type:"button","aria-haspopup":"listbox","aria-expanded":s.open,"aria-controls":s.open?s.listId:void 0,"aria-activedescendant":s.activeId,"aria-label":`${e}, ${t}`,onClick:a?void 0:s.toggle,onKeyDown:a?void 0:s.onTriggerKeyDown,className:J$,children:[P0("span",{className:"truncate",children:t}),P0(Z$,{})]}),s.open&&P0(wc,{id:s.listId,tone:"hairline",items:o,value:n,focusIdx:s.focusIdx,onFocus:s.setFocusIdx,onPick:s.pick,listRef:s.listRef,ariaLabel:e})]})}import{jsx as Q$,jsxs as vLe}from"react/jsx-runtime";var bxt="Select your car";function wxt(e){let t=TA(e.vehicle)??"trim",o=RA(e),n=i0.map(r=>o[r]).filter(Boolean).join(" ");return{field:t,shown:n||bxt,items:FS(PA(e)[t],ky(e)[t].placeholder),value:CA(e)[t],pick:_A(e)[t]}}function eK({cascade:e}){let t=wxt(e),[o,n]=gxt(!1),r=hxt(!1),a=bc({items:t.items,value:t.value,onPick:s=>{s&&(t.pick(s),r.current=t.field!=="trim")},open:o,onOpen:()=>n(!0),onClose:()=>{if(r.current){r.current=!1,a.setFocusIdx(0);return}n(!1)}}),i=`${Jc[t.field]}, ${t.shown}`;return vLe("div",{ref:a.wrapRef,className:"relative","data-car-picker-row":"",children:[vLe("button",{ref:s=>{a.triggerRef.current=s},type:"button","aria-haspopup":"listbox","aria-expanded":o,"aria-controls":o?a.listId:void 0,"aria-activedescendant":a.activeId,"aria-label":i,onClick:a.toggle,onKeyDown:a.onTriggerKeyDown,className:J$,children:[Q$("span",{className:"truncate",children:t.shown}),Q$(Z$,{})]}),o&&Q$(wc,{id:a.listId,tone:"hairline",items:t.items,value:t.value,focusIdx:a.focusIdx,onFocus:a.setFocusIdx,onPick:a.pick,listRef:a.listRef,ariaLabel:Jc[t.field]})]})}import{Fragment as kLe,jsx as Ns,jsxs as Lm}from"react/jsx-runtime";function WT({vehicle:e,escape:t,override:o,verdict:n,showChangeCar:r,cascadeErrorNote:a}){let i=e.appliedName!=="",{picker:s}=W3();if(s==="oneRow"){let l=Ns("button",{type:"button",onClick:e.clear,"aria-label":`Change car - forget ${e.appliedName} and ask again`,className:"cursor-pointer text-[length:var(--size-label,12px)] text-fg-dim underline underline-offset-4 hover:text-fg",children:"Change car"});return Lm("div",{className:"flex flex-col gap-3","data-vehicle-question":"one-row",children:[o||(i?Lm(kLe,{children:[n,r&&Ns("div",{children:l})]}):Lm(kLe,{children:[Ns(eK,{cascade:e.cascade}),e.cascade.cascadeError&&Ns("p",{className:"text-[length:var(--size-label,12px)] leading-relaxed text-fg-dim",children:a})]})),t&&Ns("div",{className:"flex justify-end text-[length:var(--size-label,12px)]",children:t})]})}return Lm("div",{className:"pb-2",children:[Lm("div",{className:"mb-3 flex items-center justify-between gap-4 font-mono text-[13px] font-semibold uppercase tracking-[0.2em] text-fg",children:[Ns("span",{children:"Vehicle Fitment"}),t]}),o?Ns("div",{className:"flex flex-col gap-3",children:o}):i?Lm("div",{className:"flex flex-col gap-3",children:[n,r&&Ns("div",{children:Ns("button",{type:"button",onClick:e.clear,"aria-label":`Change car - forget ${e.appliedName} and ask again`,className:"cursor-pointer font-mono text-[12px] uppercase tracking-[0.16em] text-accent underline underline-offset-4 hover:text-fg",children:"Change car"})})]}):Lm("div",{className:"flex flex-col gap-3",children:[Ns(Ja,{cascade:e.cascade,compact:!0,cellLook:jg}),e.cascade.cascadeError&&Ns("p",{className:"font-mono text-[12px] leading-relaxed tracking-[0.1em] text-fg-dim",children:a})]})]})}function tK({vehicle:e}){return e.appliedName?Lm("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 border border-accent px-3 py-2 font-mono text-[12px] tracking-[0.1em] text-fg-dim",style:{background:"color-mix(in oklab, var(--accent) 8%, transparent)"},children:[Lm("span",{children:["Showing fitment for your"," ",Ns("strong",{className:"font-semibold text-fg",children:e.appliedName})]}),Ns("button",{type:"button",onClick:e.clear,"aria-label":`Change car - forget ${e.appliedName} and ask again`,className:"ml-auto cursor-pointer uppercase tracking-[0.16em] text-accent underline underline-offset-4 hover:text-fg",children:"Change car"})]}):null}import{useCallback as xxt,useEffect as yxt,useState as oK}from"react";function av(e,t){let[o,n]=oK(null),[r,a]=oK(!1),[i,s]=oK(0),l=xxt(()=>s(g=>g+1),[]),d=t?.make??"",c=t?.model??"",p=t?.year??null,m=t?.modification??"",f=t!==null;return yxt(()=>{if(!f||p===null){n(null),a(!1);return}let g=!0;return n(null),a(!0),Ese(e,{make:d,model:c,year:p,modification:m}).then(h=>{if(!g)return;let w=h.vehicle;w.make!==d||w.model!==c||w.year!==p||w.modification!==m||(n(h),a(!1))}),()=>{g=!1}},[e,d,c,p,m,f,i]),{answer:o,loading:r,retry:l}}function U3(e){let t=e.oemSizes.length>0?` Your car takes ${e.oemSizes.join(", ")}.`:"";return e.status==="fits"?`This tyre is made in a size your car takes.${t}`:e.status==="doesNotFit"?`This tyre is not made in a size your car takes.${t}`:e.failed?"We couldn\u2019t check whether this tyre fits your car just now. Please try again, or ask us before ordering.":"We don\u2019t hold factory tyre sizes for this car, so we can\u2019t tell you whether this tyre fits it. Please check your car\u2019s door placard or ask us before ordering."}var G3={fits:"Fits",doesNotFit:"Not your size",unknown:"Unknown"};function vxt(e,t,o){if(!e)return"unknown";let n=t.filter(a=>a.size===o);if(n.length===0)return"unknown";let r=n.map(a=>eR(e,a.sku));return r.includes("fits")?"fits":r.every(a=>a==="doesNotFit")?"doesNotFit":"unknown"}var nK={fits:{color:"var(--accent)",dashed:!1},doesNotFit:{color:void 0,dashed:!1},unknown:{color:void 0,dashed:!0}};function SLe(e,t){if(!e)return[];let o=[];for(let d of t)o.includes(d.size)||o.push(d.size);let n=o.filter(d=>vxt(e,t,d)==="fits"),r=d=>{let c=hc(d);return c?K2(c):null},a=new Map;for(let d of n){let c=r(d);c!==null&&!a.has(c)&&a.set(c,d)}let i=[],s=new Set,l=new Set;for(let d of e.oemSizes){let c=r(d),p=c===null?void 0:a.get(c),m=p??d;s.has(m)||(s.add(m),c!==null&&l.add(c),i.push({size:m,made:p!==void 0}))}for(let d of n){let c=r(d);c!==null&&l.has(c)||s.has(d)||(s.add(d),i.push({size:d,made:!0}))}return i}import{Fragment as TLe,jsx as As,jsxs as Ls}from"react/jsx-runtime";function rK({slug:e,variants:t,vehicle:o,manualMode:n,setManualMode:r}){let{answer:a,loading:i,retry:s}=av(e,n?null:sw(o.applied?.vehicle)),l=o.appliedName;return As(WT,{vehicle:o,escape:As("button",{type:"button",className:"cursor-pointer text-right text-accent hover:underline",onClick:()=>r(d=>!d),children:n?"\u2190 Find by vehicle":"Select by specs instead \u2192"}),override:n?Ls(hs,{tone:"quiet",children:[As("strong",{className:"font-semibold text-fg",children:"You are choosing by size."}),Ls("span",{className:"mt-2 block",children:["Pick the size above. We have not checked it against any car \u2014 make sure it matches the placard on your door."," ",As(Be,{href:"/contact",className:"text-accent hover:underline",children:"Ask us if you are unsure \u2192"})]})]}):null,verdict:As(kxt,{answer:a,loading:i,car:l,variants:t,onChange:o.clear,onRetry:s}),showChangeCar:!1,cascadeErrorNote:Ls(TLe,{children:["Vehicle data is unavailable right now. Pick your size above, or"," ",As(Be,{href:"/contact",className:"text-accent hover:underline",children:"ask us to check it \u2192"})]})})}function kxt({answer:e,loading:t,car:o,variants:n,onChange:r,onRetry:a}){if(t||!e)return Ls(hs,{tone:"quiet",children:[As("strong",{className:"font-semibold text-fg",children:"Checking your car\u2026"})," ",Ls("span",{children:["Reading the factory tyre sizes for your ",o,"."]})]});let i=SLe(e,n),s=e.status==="doesNotFit"?"You can still order any size here \u2014 check it suits your car first.":"",l=i.length===0?U3(e):"",d=l&&s?`${l} ${s}`:l||s;return Ls(hs,{tone:e.status==="fits"?"good":"quiet",children:[Ls("span",{className:"block",children:[e.status==="fits"?Ls("strong",{className:"font-semibold text-accent",children:["\u2713 Made in a size your ",o," takes"]}):e.status==="doesNotFit"?Ls("strong",{className:"font-semibold text-fg",children:["Not made in a size your ",o," takes"]}):e.failed?Ls("strong",{className:"font-semibold text-fg",children:["We couldn\u2019t check this tyre against your ",o]}):Ls("strong",{className:"font-semibold text-fg",children:["We cannot check this tyre against your ",o]}),Ls("span",{className:"whitespace-nowrap",children:[" \xB7 ",As("button",{type:"button",onClick:r,"aria-label":`Change car - forget ${o} and ask again`,className:"cursor-pointer font-mono uppercase tracking-[0.16em] text-accent underline underline-offset-4 hover:text-fg",children:"Change car"})]})]}),d?As("span",{className:"mt-2 block",children:d}):null,e.failed&&a?As("button",{type:"button",onClick:a,className:"mt-2 cursor-pointer font-mono uppercase tracking-[0.16em] text-accent underline underline-offset-4 hover:text-fg",children:"Try again"}):null,i.length>0?Ls(TLe,{children:[As("span",{className:"mt-2 block",children:"Your car takes:"}),As("ul",{className:"mt-2 flex flex-wrap gap-2",children:i.map(c=>{let p=c.made?nK.fits:nK.doesNotFit;return As("li",{className:"border border-line px-2 py-1 font-mono text-[11px] uppercase tracking-[0.14em] text-fg-dim",style:p.color?{color:p.color,borderColor:p.color}:void 0,children:c.made?`${c.size} \xB7 ${G3.fits}`:c.size},c.size)})})]}):null]})}import{Fragment as Txt,jsx as ei,jsxs as is}from"react/jsx-runtime";function aK({selection:e,spec:t,vehicle:o,wheel:n}){let{manualMode:r,setManualMode:a}=e,i=VL(e.rows,e.preOrder),s=o.appliedName!=="",l=(n?.variants??[]).some(Hz),d=UNe({wheel:n,applied:s,fit:o.fit,resolving:o.resolving});return ei(WT,{vehicle:o,escape:ei("button",{type:"button",className:"cursor-pointer text-right text-accent hover:underline",onClick:()=>a(c=>!c),children:r?"\u2190 Find by vehicle":"Select by specs instead \u2192"}),override:r?is(hs,{tone:"quiet",children:[ei("strong",{className:"font-semibold text-fg",children:"You are choosing by the numbers."}),is("span",{className:"mt-2 block",children:[t?`${l?"The set is":"All four wheels are"} ${t}. We have not checked that against any car \u2014 make sure it matches yours.`:i?"Answer the bolt pattern and the offset below. We will not check them against a car.":"Pick a finish and a size below. The bolt pattern and the offset come next, and we will not check them against a car."," ",ei(Be,{href:"/fitment",className:"text-accent hover:underline",children:"Talk to an engineer \u2192"})]})]}):null,verdict:ei(Sxt,{verdict:d,car:o.appliedName}),showChangeCar:d.state!=="fits"&&d.state!=="checking",cascadeErrorNote:is(Txt,{children:["Vehicle data is unavailable right now. Pick your wheel by its specs instead, or"," ",ei(Be,{href:"/contact",className:"text-accent hover:underline",children:"ask us to check it \u2192"})]})})}function Sxt({verdict:e,car:t}){switch(e.state){case"checking":return is(hs,{tone:"quiet",children:[ei("strong",{className:"font-semibold text-fg",children:"Checking fitment\u2026"})," ",is("span",{children:["Reading the factory wheel specs for your ",t,"."]})]});case"fits":return is(hs,{tone:"good",children:[is("strong",{className:"font-semibold text-accent",children:["\u2713 Fits your ",t]}),ei("ul",{className:"mt-2 flex flex-wrap gap-2",children:e.checks.map(o=>ei("li",{className:["px-2 py-1 font-mono text-[11px] uppercase tracking-[0.14em] text-fg-dim",o.value!==null?"border border-line":"border border-dashed border-line"].join(" "),children:o.value??`${o.name} not published, not checked`},o.key))})]});case"fits-with-warning":return is(hs,{tone:"good",children:[is("strong",{className:"font-semibold text-accent",children:["\u2713 Fits your ",t]}),ei("ul",{className:"mt-2 flex flex-wrap gap-2",children:e.checks.map(o=>ei("li",{className:["px-2 py-1 font-mono text-[11px] uppercase tracking-[0.14em] text-fg-dim",o.value!==null?"border border-line":"border border-dashed border-line"].join(" "),children:o.value??`${o.name} not published, not checked`},o.key))}),is("span",{className:"mt-2 block border-l-2 border-alert pl-3",children:[ei("strong",{className:"font-semibold text-fg",children:"Check the offset. "}),T0(e.warning)," An offset this far out is what an aftermarket wheel is for, but it changes how far the wheel sits from the guard."," ",ei(Be,{href:"/contact",className:"text-accent hover:underline",children:"Ask us if you are unsure \u2192"})]})]});case"no-fit":return is(hs,{tone:"bad",children:[is("strong",{className:"font-semibold",style:{color:"var(--alert)"},children:["\u2717 Does not fit your ",t]}),ei("span",{className:"mt-2 block",children:T0(e.failure)})]});case"unknown":return is(hs,{tone:"quiet",children:[ei("strong",{className:"font-semibold text-fg",children:e.missing==="vehicle"?`We cannot check this wheel against your ${t}`:"We cannot check this wheel"}),is("span",{className:"mt-2 block",children:[e.missing==="vehicle"?`We have no factory wheel data for the ${t}, and we will not guess at a fit.`:"We do not hold a bolt pattern for this wheel, and we will not guess at a fit."," ",ei(Be,{href:"/contact",className:"text-accent hover:underline",children:"Ask us before you order \u2192"})]})]});default:return null}}import{useState as RLe}from"react";import{jsx as iK,jsxs as ELe}from"react/jsx-runtime";var Ext="Please enter a valid email address.";function UT({email:e,onEmailChange:t,status:o,onResetVerdict:n,onSubmit:r,submitLabel:a,errorMessage:i,inputAriaLabel:s,buttonClassName:l,className:d,placeholder:c="you@example.com"}){return ELe("form",{className:[d,"flex flex-col gap-2"].filter(Boolean).join(" "),noValidate:!0,onSubmit:p=>{p.preventDefault(),r()},children:[ELe("div",{className:"flex items-stretch gap-2",children:[iK("input",{type:"email",value:e,onChange:p=>{t(p.target.value),(o==="invalid"||o==="error")&&n()},placeholder:c,"aria-label":s,disabled:o==="sending",className:`${gc} border-2 border-line bg-bg px-4 py-3 font-display text-[15px] text-fg outline-none transition-colors placeholder:text-fg-dim hover:border-fg-dim focus:border-accent disabled:opacity-60`}),iK("button",{type:"submit",disabled:o==="sending",className:l,children:o==="sending"?"Sending\u2026":a})]}),(o==="error"||o==="invalid")&&iK("p",{role:"alert",className:"font-mono text-[11px] uppercase tracking-[0.18em]",style:{color:"var(--alert)"},children:o==="invalid"?Ext:i})]})}import{useCallback as _Le,useRef as Pxt,useState as _xt}from"react";function PLe(e,t,o){return{productSlug:e,email:o.trim(),size:t?Tw(t):""}}function CLe(){let[e,t]=_xt("idle"),o=Pxt(!1),n=_Le(()=>{o.current=!1,t("idle")},[]),r=_Le(async({productSlug:a,size:i,email:s,dryRun:l=!1})=>{if(!o.current){if(!uw(s)){t("invalid");return}o.current=!0,t("sending");try{l||await Bo.createPreOrderIntent(PLe(a,i,s))}catch{o.current=!1,t("error");return}o.current=!1,t("sent")}},[]);return{status:e,submit:r,reset:n}}import{jsx as iv,jsxs as sv}from"react/jsx-runtime";function sK({wheel:e,editing:t=!1}){let o=e.sizePairs??[],[n,r]=RLe(o.length>0?0:-1),[a,i]=RLe(""),{status:s,submit:l,reset:d}=CLe(),c=n>=0?o[n]??null:null;function p(){l({productSlug:e.slug,size:c,email:a,dryRun:t})}return sv("div",{className:"flex flex-col gap-5 border-t border-line pt-5",children:[sv("div",{className:"border-2 border-accent/40 px-4 py-4 font-mono text-[12px] leading-relaxed tracking-[0.08em] text-fg",style:{background:"color-mix(in oklab, var(--accent) 6%, transparent)"},children:[iv("span",{className:"font-bold uppercase tracking-[0.2em] text-accent",children:"Pre-order"})," ","\u2014 this design isn't available to add to cart right now. Leave your email to pre-order it. No payment is taken now."]}),o.length>0&&sv("div",{children:[sv("div",{className:"mb-4 font-mono text-[13px] font-semibold uppercase tracking-[0.22em] text-fg",children:["Size \xB7"," ",iv("span",{className:"text-accent",children:c?Tw(c):"Select a size"})]}),iv("div",{className:"flex flex-wrap gap-2",children:o.map((m,f)=>{let g=f===n;return sv("button",{type:"button","aria-pressed":g,onClick:()=>{r(f),s==="sent"&&d()},className:["relative cursor-pointer border-2 px-4 py-3 text-left font-mono uppercase transition-colors",g?"border-accent text-fg outline outline-1 outline-accent -outline-offset-1":"border-fg-dim/50 text-fg hover:border-accent"].join(" "),style:g?{background:"color-mix(in oklab, var(--accent) 14%, transparent)"}:void 0,children:[g&&iv("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),iv("span",{className:"block text-[14px] tracking-[0.18em]",children:Tw(m)})]},Tw(m))})})]}),s==="sent"?sv("p",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-accent",children:["Thanks \u2014 we've registered your pre-order for the ",e.name,"."]}):iv(UT,{email:a,onEmailChange:i,status:s,onResetVerdict:d,onSubmit:p,inputAriaLabel:"Email to pre-order this design",submitLabel:"Pre-order",buttonClassName:"cursor-pointer whitespace-nowrap border-2 border-btn bg-btn px-6 font-mono text-[12px] font-bold uppercase tracking-[0.22em] text-btn-ink transition-colors hover:bg-fg hover:border-fg disabled:cursor-not-allowed disabled:opacity-50",errorMessage:"Couldn't register that \u2014 please try again."})]})}import{useState as Cxt}from"react";import{Fragment as Rxt,jsx as $3}from"react/jsx-runtime";function K3({src:e,alt:t,fallback:o,fill:n=!1,width:r,height:a,sizes:i,className:s,style:l,priority:d,draggable:c,imageKey:p,imageWrapperClassName:m,onImageClick:f,imageButtonClassName:g,imageButtonLabel:h}){let[w,b]=Cxt(null),k=e||"";if(!(k!==""&&w!==k))return $3(Rxt,{children:o});let v=$3(Qs,{src:k,alt:t,...n?{fill:!0}:{width:r??1e3,height:a??1e3},sizes:i,className:s,style:l,priority:d,draggable:c,onError:()=>b(k)},p??k),y=m?$3("div",{className:m,children:v}):v;return f?$3("button",{type:"button",onClick:f,"aria-label":h,className:g,children:y}):y}function OLe(e){let t=e.angles??(e.src?[e.src]:[]),o=[],n=[];for(let r of t)(r.split("/").pop()??"").includes("20-20")?o.push(r):n.push(r);return[...n,...o]}var LLe="Image for reference only. Actual product may vary.",NLe=e=>String(Number(e));function ALe(e,t,o,n){let r=e.renderFits;if(!r||!t||t.diameter==null||t.width==null)return!1;let a=n&&o!=null?r.lug?.[String(o)]:r.angles;if(!a)return!1;let i=NLe(t.diameter);if(!(a.sizes.length===0||a.sizes.includes(`${i}x${NLe(t.width)}`)||a.sizes.includes(i)))return!0;let l=a.lugs??[];return!n&&o!=null&&l.length>0&&!l.includes(o)}import{Fragment as ILe,jsx as Gl,jsxs as Nxt}from"react/jsx-runtime";function GT(e,t){return e.captions[t]?.trim()||`Photo ${t+1}`}function _0({text:e}){return e==="FusionForge\xAE"?Nxt(ILe,{children:["FusionForge",Gl(x_,{})]}):Gl(ILe,{children:e})}function V3(e,t,o){if(e.kind==="tyre"){let m=e.source,f=t.shown.size??m.sizes[0]??"",g=m.variants.find(b=>b.size===f),h=g?.specs.tireType??m.variants[0]?.specs.tireType??null,w=[g?.image,m.coverImage].filter(b=>!!b);return{heading:OL(m.brand,m.name),photos:w.slice(0,1),tint:void 0,stageImage:()=>Gl(am,{image:g?.image??m.coverImage,size:f,type:h,sizes:LL,priority:!0,className:"h-full w-full"}),thumbImage:()=>null,captions:[],closeUps:[],thumbFallbackCells:0,galleryHint:"",referenceNote:"",metaValue:f,specCaption:g?[g.specs.loadIndex,g.specs.speedRating].filter(Boolean).join(""):"",originCaption:m.brand,unitLabel:"per tyre",vehicle:Gl(rK,{slug:m.slug,variants:m.variants,vehicle:t.vehicle,manualMode:t.manualMode,setManualMode:t.setManualMode}),vehicleMemory:t.manualMode?null:Gl(tK,{vehicle:t.vehicle}),vehicleAnswersSpecs:!1,preOrder:null}}let n=e.source,r=MTe(n,t.shown.finish),a=Of(n,t.part),i=k3(t),s=a?.components.find(m=>m.hand!=="right")??a?.components[0],l=U5e(r,s?.renderKey),d=l?null:VG(r,i),c=l?[...l]:d?[...d]:OLe(r),p=c.length>0?c:n.coverImage?[n.coverImage]:[];return{heading:e.name,photos:p,tint:r.color,stageImage:({photo:m,alt:f,label:g,onZoom:h,fit:w,eager:b=!0})=>Gl(K3,{src:m,alt:f,fill:!0,sizes:LL,className:w==="cover"?"object-cover":"object-contain",priority:b,onImageClick:h,imageButtonClassName:"relative block h-[88%] w-[88%] cursor-zoom-in",imageButtonLabel:g,fallback:Gl(Kh,{spokes:n.spokes,mesh:n.mesh,className:"block h-[70%] w-[70%]"})}),thumbImage:({photo:m,alt:f})=>Gl(K3,{src:m,alt:f,fill:!0,sizes:"(max-width: 720px) 20vw, (max-width: 1100px) 10vw, 120px",className:"object-contain",imageWrapperClassName:"relative h-[80%] w-[80%]",fallback:Gl(Kh,{spokes:n.spokes,mesh:n.mesh,className:"block h-[55%] w-[55%]"})}),captions:p.map(m=>r.captions?.[m]),closeUps:bNe(r,i),thumbFallbackCells:4,galleryHint:Oxt(p,r,i,t.manualMode),referenceNote:!l&&ALe(r,a,i,d!=null)?LLe:"",metaValue:r.name,specCaption:a?aS(a):"",originCaption:n.process==="FusionForge\xAE"?"FusionForge\xAE \xB7 Hybrid":`${n.process} \xB7 1-piece`,unitLabel:Dz,vehicle:Gl(aK,{selection:t,spec:a?aS(a):"",vehicle:t.vehicle,wheel:n}),vehicleMemory:t.manualMode?null:Gl(tK,{vehicle:t.vehicle}),vehicleAnswersSpecs:!0,preOrder:Gl(sK,{wheel:n,editing:o})}}function Oxt(e,t,o,n){return e.length>=2||o!=null||!Object.values(t.lugRenderings??{}).some(a=>Array.isArray(a)&&a.filter(Boolean).length>=2)?"":n?"Pick a bolt pattern to see every angle":"Pick your vehicle to see every angle"}import{createContext as Lxt,useCallback as FLe,useContext as Axt,useEffect as eh,useRef as C0,useState as Am}from"react";import{VIEW_TABLET_MIN as Ixt}from"efficient-easel/screen/lib/content/view-tiers";import{jsx as j3,jsxs as ULe}from"react/jsx-runtime";var Fxt=.3,Bxt=.85,BLe=24,HLe=4,DLe=1e3,GLe=77/72,MLe=`${(1-GLe)/2*100}%`,zLe=`${GLe*100}%`,WLe={left:MLe,top:MLe,width:zLe,height:zLe},Hxt=`(max-width: ${Ixt-.02}px)`,lK=new Map;function dK(e,t){let o=lK.get(e);return o||(o=new Promise(n=>{let r=new Image;r.onload=()=>n({w:r.naturalWidth,h:r.naturalHeight}),r.onerror=()=>{lK.delete(e),n(null)},t&&(r.sizes=uu,r.srcset=t),r.src=e}),lK.set(e,o)),o}var pK=Lxt({autoTurn:Dy,turnHint:My}),Y3=!1,Dxt="M3 4.5c3.2 3.6 18.8 3.6 22 0M5.6 2.6 3 4.5l3 1.2M22.4 2.6 25 4.5l-3 1.2",cK=e=>go(e,{fallbackWidth:DLe,maxWidth:DLe});function q3({set:e,name:t}){let[o,n]=Am(()=>fI(e)),r=C0(null),a=C0(0),i=C0(o),s=C0(null),l=C0(null),{autoTurn:d,turnHint:c}=Axt(pK),[p,m]=Am(!1),[f,g]=Am(!1),[h,w]=Am(0),b=C0(0),[k,x]=Am(!1),[v,y]=Am(!0),[S,E]=Am(null),T=e.count,[_,P]=Am(null),I=C0(null),[D,F]=Am(null),A=Hy(e),N=ZS(o,T,A),B=FLe($=>{let H=GCe($,T,A);return i.current=H,n(H),H},[T,A]),Y=FLe(()=>cancelAnimationFrame(a.current),[]);eh(()=>{let $=window.matchMedia?.(Hxt);if(!$)return F(!1);let H=()=>F($.matches);return H(),$.addEventListener?.("change",H),()=>$.removeEventListener?.("change",H)},[]),eh(()=>{if(!e.sheets||!e.startFrame||D===null)return;let $=D?e.sheets.phone:e.sheets.desktop,H=`${e.startFrame} ${$.urls[0]}`;if(l.current===H)return;l.current=H,P({key:H,sheet:$,ready:new Set});let ee=Math.floor(fI(e)/($.cols*$.rows)),se=$.urls.map((Ne,ce)=>$.urls[(ee+ce)%$.urls.length]),pe=cK(e.startFrame);dK(pe.src,pe.srcSet).then(()=>{for(let Ne of se)dK(Ne).then(ce=>{!ce||ce.w!==$.cols*$.frame||ce.h!==$.rows*$.frame||l.current===H&&P(me=>me?.key===H?{...me,ready:new Set(me.ready).add(Ne)}:me)})})},[e,D]),eh(()=>{if(!e.frames)return;let $=e.frames,H=$[0];if(l.current===H)return;l.current=H;let ee=ZS(fI(e),T,Hy(e)),se=[];for(let Ne=0;Ne<HLe;Ne+=1)for(let ce=Ne;ce<T;ce+=HLe)se.push((ee+ce)%T);let pe=Ne=>{let ce=cK($[Ne]);return dK(ce.src,ce.srcSet)};pe(se[0]).then(()=>Promise.all(se.slice(1).map(pe))).then(Ne=>{l.current===H&&Ne.every(Boolean)&&E(H)})},[T,e]),eh(()=>Y,[Y]),eh(()=>{if(!c||Y3)return;let $=window.setTimeout(()=>m(!Y3),HU),H=window.setTimeout(()=>{Y3=!0,m(!1)},HU+HCe);return()=>{window.clearTimeout($),window.clearTimeout(H)}},[c]),eh(()=>{let $=r.current;if(!d||!$)return;if(typeof IntersectionObserver>"u")return x(!0);let H=new IntersectionObserver(ee=>x(ee.some(se=>se.isIntersecting)));return H.observe($),()=>H.disconnect()},[d]),eh(()=>{if(!d)return;let $=()=>y(document.visibilityState!=="hidden");return $(),document.addEventListener("visibilitychange",$),()=>document.removeEventListener("visibilitychange",$)},[d]);let K=$=>{Y(),d&&g(!0),c&&(Y3=!0,m(!1)),$.currentTarget.setPointerCapture?.($.pointerId),s.current={x0:$.clientX,f0:i.current,last:$.clientX,speed:0}},X=$=>{let H=s.current,ee=r.current;!H||!ee||(H.speed=$.clientX-H.last,H.last=$.clientX,B(DU(H.f0,$.clientX-H.x0,ee.clientWidth,T)))},Z=()=>{let $=s.current;s.current=null,d&&$&&(g(!1),w(pe=>pe+1));let H=r.current;if(!$||!H||Y1())return;let ee=Math.max(-BLe,Math.min(BLe,$.speed)),se=()=>{if(Math.abs(ee)<Fxt)return;let pe=DU(i.current,ee,H.clientWidth,T);B(pe)===pe&&(ee*=Bxt,a.current=requestAnimationFrame(se))};a.current=requestAnimationFrame(se)},V=$=>{let H=$.key==="ArrowRight"||$.key==="ArrowUp"?1:$.key==="ArrowLeft"||$.key==="ArrowDown"?-1:0;if($.key==="Home")B(0);else if($.key==="End")B(T-1);else if(H)B(Math.round(i.current)+H);else return;Y(),d&&w(ee=>ee+1),$.preventDefault()},j=e.sheets&&_&&_.key.startsWith(`${e.startFrame} `)?_:null;j&&j.ready.has(MU(j.sheet,N).url)&&(I.current={key:j.key,frame:N});let J=j&&I.current?.key===j.key?I.current.frame:null,C=j&&J!==null?{...MU(j.sheet,J),cols:j.sheet.cols,rows:j.sheet.rows}:null,O=e.frames?S===e.frames[0]:!!j&&j.ready.size===j.sheet.urls.length,G=d&&O&&k&&v&&!f;return eh(()=>{if(!G)return;let $=b.current!==h,H=-1,ee=-1,se=1,pe=0,Ne=ce=>{if(pe=requestAnimationFrame(Ne),H<0&&(H=ce),$&&ce-H<DCe)return;if(b.current=h,ee<0){ee=ce;return}let me=MCe(e,i.current,se,ce-ee);ee=ce,se=me.way;let Ce=ZS(i.current,T,A);i.current=me.position,ZS(me.position,T,A)!==Ce&&n(me.position)};return pe=requestAnimationFrame(Ne),()=>cancelAnimationFrame(pe)},[G,h,e,T,A]),ULe("div",{ref:r,"data-spin-well":!0,role:"slider",tabIndex:0,"aria-label":`${t}, 360\xB0 view: drag or use the arrow keys to turn`,"aria-valuemin":1,"aria-valuemax":T,"aria-valuenow":N+1,"aria-valuetext":`Angle ${N+1} of ${T}`,"data-spin-auto-turn":d?"":void 0,onKeyDown:V,className:"absolute inset-0 select-none overflow-hidden cursor-grab active:cursor-grabbing focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-fg",style:{touchAction:"pan-y"},onPointerDown:K,onPointerMove:X,onPointerUp:Z,onPointerCancel:Z,onTouchStart:$=>$.stopPropagation(),onTouchMove:$=>$.stopPropagation(),onTouchEnd:$=>$.stopPropagation(),onClick:$=>$.stopPropagation(),children:[C?j3("div",{"data-spin-frame":!0,className:"pointer-events-none absolute",style:{...WLe,backgroundImage:`url("${DJ(C.url)}")`,backgroundSize:`${C.cols*100}% ${C.rows*100}%`,backgroundPosition:`${C.cols>1?C.col*100/(C.cols-1):0}% ${C.rows>1?C.row*100/(C.rows-1):0}%`}}):j3("img",{...cK(e.frames?e.frames[N]:e.startFrame??""),sizes:uu,alt:"",draggable:!1,fetchPriority:"high","data-spin-frame":!0,className:"pointer-events-none absolute max-w-none object-contain",style:WLe}),p?ULe("span",{"data-spin-hint":!0,className:`pointer-events-none absolute inset-x-0 flex flex-col items-center gap-1 text-xs text-fg ${D?"bottom-3":"bottom-5"}`,children:[D?null:j3("svg",{viewBox:"0 0 28 12",width:"28",height:"12","aria-hidden":"true",children:j3("path",{d:Dxt,fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})}),D?"Swipe to turn":"Drag to turn"]}):null]})}import{Fragment as mK,jsx as wn,jsxs as Wd}from"react/jsx-runtime";function uK({product:e,view:t,angleIdx:o,onSelect:n,isLight:r,onLightbox:a,galleryMode:i=_c,imageFit:s=em,style:l,takesViewHide:d=!1,spin:c=Mxt,ground:p=sg,show:m=lg,marks:f=dg,gap:g=Wu}){let h=UCe(c,e.slug,t.metaValue),w=zxt(v5(p),r),b=k5(m)==="closeUps"?YLe(t):h?Wxt(t):t,k=S5(f),x=Mw(i),v=Mpe(zw(s),rTe(e)),y=wn(Kxt,{name:e.name,view:b,wellGround:w,angleIdx:o,onSelect:n,onLightbox:a,fit:v,spinSet:h,marks:k});return x==="stacked"?wn(z,{as:"div",takes:d,"data-hero-gallery":x,"data-hero-fit":v,style:l,children:b.photos.length<2&&!h?y:Wd(mK,{children:[wn(Uxt,{name:e.name,view:b,wellGround:w,onLightbox:a,fit:v,spinSet:h,gap:T5(g)}),wn(Gxt,{angleIdx:o,total:fK(b),onSelect:n,children:y})]})}):Wd(z,{as:"div",takes:d,"data-hero-gallery":x,"data-hero-fit":v,className:x==="tiled"?"flex items-start gap-3 max-view-tablet:gap-2":void 0,style:l,children:[wn("div",{className:x==="tiled"?"min-w-0 flex-1":void 0,children:y}),x!=="main"&&wn(Vxt,{name:e.name,view:b,angleIdx:o,onSelect:n,isLight:r,tiled:x==="tiled"})]})}function fK(e){return e.photos.length>0?e.photos.length:e.thumbFallbackCells}var KLe="relative flex aspect-square items-center justify-center overflow-hidden",Mxt={},VLe="sf-photo-ground-studio";function zxt(e,t){return e==="studio"?VLe:t?"bg-bg":""}function Wxt(e){return e.closeUps.length===0?e:YLe(e)}function YLe(e){return e.photos.length===0?e:{...e,photos:[e.photos[0],...e.closeUps.map(t=>t.url)],captions:[e.captions[0],...e.closeUps.map(t=>t.title)]}}var jLe=(e,t,o)=>[e,t.metaValue,o].filter(Boolean).join(" \u2014 "),qLe=(e,t)=>[e,t.metaValue].filter(Boolean).join(" "),XLe=(e,t)=>`Open ${[e,t.metaValue].filter(Boolean).join(" ")} at full resolution`;function Uxt({name:e,view:t,wellGround:o,onLightbox:n,fit:r,spinSet:a,gap:i}){let s=a?wn(q3,{set:a,name:qLe(e,t)}):null,l=i===Wu;return wn("div",{"data-hero-stack":!0,className:l?"flex flex-col gap-2 max-view-tablet:hidden":"flex flex-col max-view-tablet:hidden",style:l?void 0:{gap:`${i}px`},children:t.photos.map((d,c)=>{let p=jLe(e,t,GT(t,c));return wn("div",{"data-hero-stack-photo":!0,className:[KLe,o].join(" "),style:{color:t.tint},children:c===0&&s?s:t.stageImage({photo:d,alt:p,label:XLe(e,t),onZoom:()=>n(d,p),fit:r,eager:c===0})},d)})})}function Gxt({angleIdx:e,total:t,onSelect:o,children:n}){let r=$Le(null),a=$Le(null),i=aL({count:t}),s=l=>({x:l.touches[0].clientX,y:l.touches[0].clientY});return wn("div",{"data-hero-phone-stage":!0,className:"view-tablet:hidden",onTouchStart:l=>{r.current=i&&l.touches.length===1?s(l):null,a.current=r.current},onTouchMove:l=>{r.current&&(l.touches.length!==1?r.current=null:a.current=s(l))},onTouchEnd:()=>{let l=r.current,d=a.current;if(r.current=null,a.current=null,!l||!d)return;let c=rL(d.x-l.x,d.y-l.y,e,t);c!==e&&o(c)},children:n})}var $xt=6;function Kxt({name:e,view:t,angleIdx:o,onSelect:n,onLightbox:r,fit:a,spinSet:i,wellGround:s,marks:l}){let d=t.photos[Math.min(o,t.photos.length-1)],c=zSe(t.photos,d),p=fK(t),m=p>=2,f=String(p).padStart(2,"0"),g=Math.min(o,Math.max(t.photos.length-1,0)),h=m||t.captions[g]?GT(t,g):"",w=jLe(e,t,h),b="max-view-tablet:static",k=[`${KLe} max-view-tablet:col-span-2`,s].join(" ");return Wd("div",{className:"relative max-view-tablet:grid max-view-tablet:grid-cols-[minmax(0,1fr)_auto] max-view-tablet:items-start max-view-tablet:gap-x-3 max-view-tablet:gap-y-2",style:{color:t.tint},children:[l&&Wd("div",{className:`absolute left-0 top-0 z-10 flex items-center gap-3 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.2em] text-fg ${b} max-view-tablet:min-w-0 max-view-tablet:flex-wrap max-view-tablet:gap-x-2 max-view-tablet:gap-y-1`,children:[m&&Wd(mK,{children:[Wd("span",{className:"text-accent",children:[String(o+1).padStart(2,"0")," / ",f]}),wn("span",{className:"text-fg-dim",children:"\xB7"})]}),wn("span",{children:e}),t.metaValue&&Wd(mK,{children:[wn("span",{className:"text-fg-dim",children:"\xB7"}),wn("span",{className:"text-accent",children:t.metaValue})]})]}),l&&m&&wn("div",{className:`absolute right-5 top-5 z-10 flex gap-1 ${b}`,children:DSe(o,p,n).map(v=>wn("button",{type:"button","aria-label":v.label,title:v.label,onClick:v.onClick,className:"flex h-7 w-7 items-center justify-center border border-fg-dim/60 text-fg transition-colors hover:border-accent hover:text-accent",children:v.glyph},v.label))}),Wd("div",{className:k,children:[s!==VLe&&["top-3 left-3","top-3 right-3","bottom-3 left-3","bottom-3 right-3"].map((v,y)=>wn("span",{className:`absolute ${v} h-3 w-3 border border-fg-dim/40`,style:{borderTop:v.includes("top")?"1px solid var(--site-line)":"none",borderBottom:v.includes("bottom")?"1px solid var(--site-line)":"none",borderLeft:v.includes("left")?"1px solid var(--site-line)":"none",borderRight:v.includes("right")?"1px solid var(--site-line)":"none"}},y)),i&&g===0?wn(q3,{set:i,name:qLe(e,t)}):t.stageImage({photo:c,alt:w,label:XLe(e,t),onZoom:()=>r(c,w),fit:a})]}),l&&Wd("div",{className:`absolute bottom-0 left-0 right-0 z-10 flex items-end justify-between gap-3 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-fg-dim ${b} max-view-tablet:col-span-2 max-view-tablet:flex-wrap`,children:[Wd("span",{className:"flex min-w-0 flex-col gap-1",children:[t.specCaption&&wn("span",{children:t.specCaption}),t.referenceNote&&wn("span",{"data-hero-reference-note":!0,children:t.referenceNote}),t.galleryHint&&wn("span",{"data-hero-gallery-hint":!0,children:t.galleryHint})]}),wn("span",{children:t.originCaption})]})]})}function Vxt({name:e,view:t,angleIdx:o,onSelect:n,isLight:r,tiled:a=!1}){let i=fK(t);return i<2?null:wn("div",{className:a?"order-[-1] flex w-16 flex-col gap-2 max-view-tablet:w-12 max-view-tablet:gap-1":"mt-2 grid grid-cols-4 gap-2 max-view-tablet:gap-1",style:!a&&i>4?{gridTemplateColumns:`repeat(${Math.min(i,$xt)}, minmax(0, 1fr))`}:void 0,children:Array.from({length:i}).map((s,l)=>{let d=t.photos[l];return Wd("button",{type:"button",onClick:()=>n(l),"aria-label":`View ${GT(t,l)}`,"aria-pressed":l===o,className:["relative flex aspect-square items-center justify-center overflow-hidden transition-colors",r?"bg-bg":"",l===o?"border border-accent":"border border-transparent hover:border-fg-dim"].join(" "),style:{color:t.tint},children:[wn("span",{className:"absolute top-1.5 left-2 z-10 font-mono text-[length:var(--size-label,8px)] uppercase tracking-[0.18em] text-fg-dim",children:String(l+1).padStart(2,"0")}),t.thumbImage({photo:d,alt:`${e} \u2014 ${GT(t,l)}`})]},l)})})}import{jsx as $T}from"react/jsx-runtime";var X3="font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim";function $l({size:e,children:t}){let o=he(),n=pr();return e==="tall"?$T(z,{as:"section",className:"grid min-h-[70vh] place-items-center border-b border-line px-[var(--sf-site-gutter,40px)] pt-[104px] pb-14 text-center",style:{background:"var(--section-bg)"},children:$T("p",{className:X3,children:t})}):$T(z,{as:"section",className:"relative z-[2] border-t border-line bg-surface",children:$T("div",{...Te(fe("mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[84px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",o),n),children:$T("p",{className:X3,children:t})})})}import{useRootIsDark as Yxt}from"efficient-shell/theme";import{Fragment as Xxt,jsx as th,jsxs as Zxt}from"react/jsx-runtime";function hK({editing:e=!1,...t}){let o=JTe();return o?th(ZLe,{product:o.product,selection:o.selection,onLightbox:o.openLightbox,editing:e,...t}):e?th(jxt,{...t}):null}function ZLe({product:e,selection:t,onLightbox:o,editing:n,autoTurn:r=!1,turnHint:a=!1,...i}){let s=!Yxt({whenUnset:!0});return th(pK.Provider,{value:{autoTurn:r,turnHint:a},children:th(uK,{product:e,view:V3(e,t,n),angleIdx:t.angleIdx,onSelect:t.setAngleIdx,isLight:s,onLightbox:o,...i,takesViewHide:!0})})}function jxt(e){let t=Wn(!0);return t?th(qxt,{product:t,...e}):th(z,{as:"p",className:X3,children:u("Loading sample product\u2026")})}function qxt({product:e,...t}){let o=e0(e,{editing:!0}),n=Jg();return Zxt(Xxt,{children:[th(ZLe,{product:e,selection:o,onLightbox:n.open,editing:!0,...t}),th(Cf,{item:n.item,onClose:n.close})]})}var JLe={label:"Product Gallery",defaultProps:{galleryMode:_c,imageFit:em,ground:sg,spin:{},show:lg,marks:dg,gap:Wu,autoTurn:Dy,turnHint:My}};import{jsx as Jxt}from"react/jsx-runtime";var QLe={...JLe,render:e=>Jxt(hK,{editing:e.editor?.isEditing,galleryMode:Mw(e.galleryMode),imageFit:zw(e.imageFit),spin:WCe(e.spin),ground:v5(e.ground),show:k5(e.show),marks:S5(e.marks),gap:T5(e.gap),autoTurn:BU(e.autoTurn),turnHint:BU(e.turnHint)})};import{useEffect as byt,useState as uAe}from"react";function eAe(e){return e?[...new Set(e.components.map(t=>t.partNumber).filter(Boolean))]:[]}import{useEffect as dAe,useRef as cAe,useState as ayt}from"react";import{useRootIsDark as iyt}from"efficient-shell/theme";var Z3="data-option-row";var tAe="data-hero-sticky",gK="data-hero-stick-cell",bK="--sf-stick-height",oAe="view-desktop:[&_[data-hero-stick-cell]]:sticky view-desktop:[&_[data-hero-stick-cell]]:self-start view-desktop:[&_[data-hero-stick-cell]]:top-[min(var(--sf-pin-header,var(--sf-header-h,88px)),calc(100vh_-_var(--sf-stick-height)))]";var nAe="data-hero-edge",rAe="gap-0 pt-0 pb-12 max-view-tablet:pb-8 [--hero-edge:var(--sf-site-gutter,40px)] max-view-tablet:[--hero-edge:min(20px,var(--sf-site-gutter,40px))] max-view-desktop:[&>[data-sf-repeat]>div>:has([data-hero-gallery])]:mx-[calc(-1*var(--hero-edge))] max-view-desktop:[&>[data-sf-repeat]>div>:has([data-hero-gallery])]:w-[calc(100%+2*var(--hero-edge))] [&>[data-sf-repeat]>div>:not(:has([data-hero-gallery]))]:mt-12 max-view-desktop:[&>[data-sf-repeat]>div>:not(:has([data-hero-gallery]))]:mt-6",Qxt=`${rAe} view-desktop:pl-0 view-desktop:gap-x-12 view-desktop:[&>[data-sf-repeat]>div>:not(:has([data-hero-gallery]))]:ml-8`,eyt=`${rAe} view-desktop:pr-0 view-desktop:gap-x-12 view-desktop:[&>[data-sf-repeat]>div>:not(:has([data-hero-gallery]))]:mr-8`;function aAe(e){return e?eyt:Qxt}function iAe(e,t){let o=`calc((100% + var(--sf-site-gutter,40px)) * ${e/100})`;return t?`minmax(0, 1fr) ${o}`:`${o} minmax(0, 1fr)`}import{useEffect as tyt}from"react";function oyt(e){let t=e.ownerDocument.defaultView,o=[],n=r=>{for(let a of Array.from(r.children))a instanceof HTMLElement&&(t?.getComputedStyle(a).display==="contents"?n(a):o.push(a))};return n(e),o}function sAe(e,t){tyt(()=>{let o=e.current;if(!t||!o)return;let n=[],r=()=>{for(let l of n)l.style.setProperty(bK,`${l.offsetHeight}px`)},a=new ResizeObserver(r),i=()=>{let l=oyt(o);if(!(l.length===n.length&&l.every((d,c)=>d===n[c]))){for(let d of n)a.unobserve(d);n=l;for(let d of n)d.setAttribute(gK,""),a.observe(d);r()}};i();let s=new MutationObserver(i);return s.observe(o,{childList:!0,subtree:!0}),()=>{s.disconnect(),a.disconnect();for(let l of n)l.removeAttribute(gK),l.style.removeProperty(bK)}},[e,t])}import{jsx as nyt}from"react/jsx-runtime";function wK(){let e=Mn();return e?.takesQty?nyt(J1,{value:e.qty,onChange:e.setQty,size:"large"}):null}import{jsx as xK}from"react/jsx-runtime";function yK(){let e=Mn()?.save;return e?xK(ryt,{slug:e.slug,name:e.name}):null}function ryt({slug:e,name:t}){let{has:o,toggle:n}=Nde(),r=o(e);return xK("div",{className:"flex",children:xK("button",{type:"button",title:r?"Saved":"Save","aria-label":r?`Remove ${t} from wishlist`:`Save ${t} to wishlist`,"aria-pressed":r,onClick:()=>n(e),className:["h-12 w-12 cursor-pointer border-2 bg-transparent transition-colors",r?"border-accent text-accent":"border-fg-dim/50 text-fg hover:border-accent hover:text-accent"].join(" "),children:r?"\u2665":"\u2661"})})}import{jsx as vK,jsxs as lAe}from"react/jsx-runtime";function kK(){let e=Mn()?.facts,t=bs();return!e||e.length===0?null:vK("div",{className:"border-b border-line pb-[26px]",children:vK("dl",{className:"flex flex-col gap-2",children:e.map(o=>lAe("div",{className:"flex flex-wrap items-baseline gap-x-2 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.22em]",children:[lAe("dt",{className:"text-fg-dim",children:[t(o.label)," \xB7"]}),vK("dd",{className:"font-semibold text-fg",children:o.value.label})]},o.key))})})}import{Fragment as KT,jsx as Et,jsxs as yi}from"react/jsx-runtime";var syt=4e3;function lyt(e){return e?[e.year,e.make,e.model,e.modification].join("-"):""}var pAe=[{}],dyt=(e,t)=>t===k8?Et(wK,{}):t===S8?Et(yK,{}):null,cyt="[&>[data-sf-repeat]]:contents [&>[data-sf-repeat]>div]:contents";function dv({product:e,selection:t,onLightbox:o,editing:n=!1,showVehicleFitment:r=!0,heroLayout:a=hd,imageRatio:i=Qp,textAlign:s=Jp,showSpecTable:l=!0,stickyColumns:d=!1,stageToEdge:c=!1,showBreadcrumb:p=!0,nodeId:m,template:f,optionTemplate:g,optionPressTitles:h,tileTemplate:w,buyTemplate:b,optionLooks:k=ZI}){let x=he(),v=bs(),y=zu(a),S=ig(s),E=x5(i),T=d===!0&&y!=="stacked",_=c===!0&&y!=="stacked",P=cAe(null);sAe(P,T);let I=_?iAe(E,y==="imageRight"):y==="imageRight"?`${100-E}fr ${E}fr`:`${E}fr ${100-E}fr`,D=_?{gap:"",y:"",yTablet:""}:{gap:"gap-10 ",y:"py-14 ",yTablet:"max-view-tablet:py-8 "},{picked:F,pick:A,qty:N,setQty:B,choice:Y,setChoice:K,angleIdx:X,setAngleIdx:Z,showValidation:V,setShowValidation:j,manualMode:J,vehicle:C,rows:O,facts:G,part:$,outOfStock:H,offer:ee,preOrder:se,canAddToCart:pe,currency:Ne,price:ce,set:me,msrpLabel:Ce}=t,Pe=V3(e,t,n),ie=ZSe(e),Ae=eTe(e),At=r?Pe.vehicle:null,Re=r?Pe.vehicleMemory:null,Dt=!iyt({whenUnset:!0}),{warmCatalog:we}=Fn(),$e=dx();dAe(()=>{!n&&$e&&we(e.kind,e.slug)},[n,$e,e.kind,e.slug,we]);let ft=O.filter(et=>!se||et.values.length>0),ct=ft.filter(et=>et.role==="resolves"),xn=ft.filter(et=>et.role==="describes"&&!aTe(Ae,et.key)),so=xn.findIndex(et=>et.chosen===null),Xt=(!At||!Pe.vehicleAnswersSpecs||t.fitmentSet)&&VL(O,se)?so===-1?xn:xn.slice(0,so+1):[],ht=[...ct,...Xt];function nt(){return pe?(j(!1),n?null:GTe(e,$,F,{choice:Y,qty:N},{fitmentLabel:J?Pe.specCaption:C.appliedName?`For ${C.appliedName}`:"",fitmentKey:J?`manual|${Pe.specCaption}`:`vehicle|${lyt(C.applied?.vehicle)}`})):(j(!0),window.setTimeout(()=>j(!1),syt),null)}let Yn={kind:"hero",msrpLabel:Ce||null,amount:V2(ce,Ne),unitLabel:ce.priced?Pe.unitLabel:null,packBadge:ce.setTotal!=null?`${ee.quantityLabel}: ${ba(me,Ne)}`:null,buy:{isSet:ie,priced:ce.priced,outOfStock:H,canAdd:pe,totalLabel:ce.setTotal!=null?ba(me,Ne):null,lineToAdd:nt},qty:N,setQty:B,takesQty:$e&&!(ie&&!ce.priced),save:{slug:e.slug,name:e.name},facts:l?G:null,title:{eyebrow:e.eyebrow,name:Pe.heading,badge:e.badge||null},product:e,selection:t,openLightbox:o,sku:eAe($),designCode:e.kind==="alloy-wheel"&&e.source.designCode||null,setLine:uyt(ce,myt(ee.quantityLabel,e.kind),Ne)},Qt={nodeId:m??"",template:g,tileTemplate:w,pressTitles:h,editing:n},xo=!!(se&&Pe.preOrder),yr={[mi.fitmentLine]:Re,[mi.options]:yi(wLe,{looks:k,children:[ct.map(et=>Et(mAe,{row:et,onPick:A,options:Qt},et.key)),!xo&&At,!xo&&Xt.map(et=>Et(mAe,{row:et,onPick:A,options:Qt},et.key))]}),[mi.facts]:xo?null:Et(kK,{}),[mi.howMany]:xo?null:Et(fyt,{offer:ee,takesOrders:$e,choice:Y,setChoice:K,options:Qt}),[mi.buy]:xo?Pe.preOrder:Et(Fo,{children:Et(Ge,{ownerId:m??"",ownerType:dr,slot:ys,Template:b,rows:pAe,fallback:null,hostParts:dyt,children:et=>et})}),[mi.notify]:!xo&&H&&$?Et(hyt,{partNumbers:$.components.map(et=>et.partNumber),productSlug:e.slug},$.id):null,[mi.reminder]:!xo&&V?Cn():null},Wo=(et,Gt)=>yr[Gt]??null;function Cn(){let et=ht.filter(ko=>ko.chosen===null).map(ko=>v(ko.prompt).replace(/^Select\s+/i,""));if(At&&Pe.vehicleAnswersSpecs&&!t.fitmentSet&&et.push("vehicle fitment"),et.length===0)return null;let Gt=et.length===1?et[0]:et.length===2?`${et[0]} and ${et[1]}`:`${et.slice(0,-1).join(", ")}, and ${et.at(-1)}`;return yi("p",{role:"alert",className:"-mt-1 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em]",style:{color:"var(--alert)"},children:["Please select ",Gt," first."]})}let eo=cAe(null);dAe(()=>{n||eo.current===e.slug||(eo.current=e.slug,Mse({itemId:$?`${e.slug}|${$.id}`:e.slug,itemName:e.name,variant:Pe.metaValue,pricePerSet:ce.setTotal??ce.fromSetTotal??0,currency:Ne}))},[n,e.slug,e.name,Pe.metaValue,$,ce,Ne]);let Io=jhe();return yi(KT,{children:[p&&Et("nav",{...Te(fe(`border-b border-line ${fp} pt-4 pb-4 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))]`,x),Io?.first?.atTop,Dt?void 0:{background:"var(--section-bg)"}),children:e.crumbs.map((et,Gt)=>yi("span",{children:[Gt>0&&yi(KT,{children:[Et("span",{className:"mx-3 text-accent",children:"/"}),Et("wbr",{})]}),et.href?Et(Be,{href:et.href,className:"hover:text-fg",children:Et(_0,{text:et.label})}):Et("span",{className:"text-fg",children:Et(_0,{text:et.label})})]},`${et.label}-${Gt}`))}),Et("section",{ref:P,"data-hero-layout":y,"data-hero-align":S,...T?{[tAe]:""}:{},..._?{[nAe]:""}:{},...Te([fe(`grid ${D.gap}${fp} ${D.y}max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))] ${D.yTablet}${cyt}`,x),S==="center"?Zl.center:"",y==="stacked"?"grid-cols-1":"[grid-template-columns:var(--hero-cols)] max-view-desktop:[grid-template-columns:minmax(0,1fr)]",T?oAe:"",_?aAe(y==="imageRight"):""].filter(Boolean).join(" "),p?Io?.second?.atTop:Io?.secondOnly?.atTop,{...Dt?{}:{background:"var(--section-bg)"},...y==="stacked"?{}:{"--hero-cols":I}}),children:Et(QTe,{value:Yn,children:Et(Fo,{children:Et(Ge,{ownerId:m??"",ownerType:dr,Template:f,rows:pAe,fallback:null,hostParts:Wo,children:et=>et})})})})]})}var pyt="wheels";function myt(e,t){return t==="alloy-wheel"&&/\d$/.test(e)?`${e} ${pyt}`:e}function uyt(e,t,o){if(!e.priced)return null;let n=e.setTotal??e.fromSetTotal;return n==null?null:{label:t,total:V2({...e,unit:n,isFrom:e.setTotal==null},o)}}function fyt({offer:e,takesOrders:t,choice:o,setChoice:n,options:r}){return e.packs.length>0||t&&(e.extra||e.spareCounts.length>0)?yi("div",{className:"border-b border-line pb-[26px]",children:[e.packs.length>0&&yi(KT,{children:[Et("div",{className:"mb-3.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:"How many"}),Et("div",{className:"flex flex-wrap gap-1.5",children:Et(lv,{hero:r,values:e.packs,item:a=>({label:a.label}),picked:a=>o.unit===a.value,press:a=>()=>n(i=>({...i,unit:a.value}))})})]}),t&&e.extra&&yi("label",{className:`${e.packs.length>0?"mt-3.5 ":""}flex cursor-pointer items-center gap-3 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.16em] text-fg`,children:[Et("input",{type:"checkbox",checked:o.spares>0,onChange:a=>n(i=>({...i,spares:a.target.checked?JC:0})),className:"h-4 w-4 cursor-pointer accent-[var(--accent)]"}),e.extra.label]}),t&&e.spareCounts.length>0&&yi(KT,{children:[Et("div",{className:"mb-3.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:Fl.howMany}),Et("div",{className:"flex flex-col gap-1.5 sm:flex-row sm:flex-wrap",children:Et(lv,{hero:r,values:e.spareCounts,item:a=>({label:`${a.value} \xB7 ${a.label}`}),picked:a=>o.spares===a.value-Wp,press:a=>()=>n(i=>({...i,spares:a.value-Wp}))})})]}),t&&e.spareSide&&yi(KT,{children:[Et("div",{className:"mb-3.5 mt-[26px] font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:e.spareSide.label}),Et("div",{className:"flex flex-wrap gap-1.5",children:Et(lv,{hero:r,values:e.spareSide.options,item:a=>({label:a.label}),picked:a=>o.spareSide===a.value&&(a.axle===void 0||use(o)===a.axle),press:a=>()=>n(i=>({...i,spareSide:a.value,...a.axle?{spareAxle:a.axle}:{}}))})})]})]}):null}function mAe({row:e,onPick:t,options:o}){let n=bs(),r=W3();if(e.values.length===0&&!e.empty)return null;let a=e.values.find(s=>s.value===e.chosen),i=a&&[a.label,a.note].filter(Boolean).join(" \xB7 ");return e.values.length>0&&e.display==="swatch"&&r.finish==="tiles"?yi("div",{[Z3]:e.key,children:[Et(X$,{label:n(e.label),chosen:a?.label}),Et("div",{className:"flex flex-wrap gap-2","data-option-tiles":"",children:Et(lv,{hero:o,tiles:!0,values:e.values,item:s=>({swatch:s.swatch??"",name:s.label}),label:s=>s.label,picked:s=>s.value===e.chosen,press:s=>()=>t(e.key,s.value)})})]}):e.values.length>0&&e.display==="pill"&&e.role==="resolves"&&r.size==="dropdown"?yi("div",{[Z3]:e.key,children:[Et(X$,{label:n(e.label)}),Et(yLe,{rowKey:e.key,label:n(e.label),shown:i||n(e.prompt),items:e.values.map(s=>({value:s.value,label:xLe(s)})),value:e.chosen??"",onPick:s=>t(e.key,s),editing:o.editing})]}):yi("div",{className:"border-b border-line pb-[26px]",[Z3]:e.key,children:[yi("div",{className:"mb-3.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:[n(e.label)," \xB7 ",Et("span",{className:"text-accent",children:i??n(e.prompt)})]}),e.values.length===0?yi("p",{className:"font-mono text-[length:var(--size-body,12px)] leading-relaxed tracking-[0.1em] text-fg-dim",children:[e.empty.text," ",Et(Be,{href:e.empty.href,className:"text-accent hover:underline",children:e.empty.linkText})]}):e.display==="swatch"?Et("div",{className:"flex flex-wrap gap-2 [&>*]:max-w-full",children:Et(lv,{hero:o,values:e.values,item:s=>({swatch:s.swatch??"",name:s.label}),picked:s=>s.value===e.chosen,press:s=>()=>t(e.key,s.value)})}):Et("div",{className:"flex flex-wrap gap-1.5",children:Et(lv,{hero:o,values:e.values,item:s=>({label:s.label,note:s.note??""}),picked:s=>s.value===e.chosen,press:s=>()=>t(e.key,s.value)})})]})}function lv({hero:e,values:t,item:o,label:n,picked:r,press:a,tiles:i=!1}){let s=If(t,{item:o,selected:r,press:a,label:n});return Et(Fo,{children:Et(Ge,{ownerId:e.nodeId,ownerType:dr,slot:i?Gi:ui,Template:i?e.tileTemplate:e.template,rows:s.items.map(nn),items:s.items,states:s.states,actions:e.editing?void 0:s.actions,pressTitles:i?void 0:e.pressTitles,fallback:null,children:l=>l})})}function hyt({partNumbers:e,productSlug:t}){let[o,n]=ayt(""),{status:r,submit:a,reset:i}=aA();function s(){a({partNumbers:e,email:o,productSlug:t})}return r==="sent"?Et("p",{className:"-mt-1 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-accent",children:"We'll email you when it's back."}):Et(UT,{className:"-mt-1",email:o,onEmailChange:n,status:r,onResetVerdict:i,onSubmit:s,inputAriaLabel:"Email for the back-in-stock alert",submitLabel:"Notify me when back",buttonClassName:"cursor-pointer whitespace-nowrap border-2 border-btn px-4 font-mono text-[length:var(--size-label,11px)] font-bold uppercase tracking-[0.22em] text-btn transition-colors hover:bg-btn hover:text-btn-ink disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-btn",errorMessage:"Couldn't save that \u2014 please try again."})}import{parseOption as Asn}from"efficient-shell/format";var J3="linkedRecord";function Q3(e,t,o){let n=e;if(!n||n.kind!==t)return;let r=t==="tyre"?n.tyre:n.wheel;return r&&typeof r=="object"&&r.slug===o?n:void 0}function gyt(e){if(!e?.props||!(J3 in e.props))return e;let{[J3]:t,...o}=e.props;return{...e,props:o}}function e4(e){return $p(e,t=>gyt(t))}import{Fragment as xyt,jsx as VT,jsxs as yyt}from"react/jsx-runtime";function SK({slug:e,kind:t="wheel",editing:o=!1,showVehicleFitment:n=!0,initialRecord:r,...a}){let i=Q3(r,t,e),[s,l]=uAe(i??null),[d,c]=uAe(!1);return byt(()=>{if(c(!1),i){l(i);return}let p=!1;return l(null),(t==="tyre"?Bo.getTyre(e).then(f=>({kind:"tyre",tyre:f})):Bo.getWheel(e).then(f=>({kind:"wheel",wheel:f}))).then(f=>{p||l(f)}).catch(()=>{p||c(!0)}),()=>{p=!0}},[e,t,i]),d?VT($l,{size:"tall",children:"Couldn\u2019t load this product."}):s?VT(wyt,{record:s,editing:o,showVehicleFitment:n,...a}):VT($l,{size:"tall",children:"Loading product\u2026"})}function wyt({record:e,editing:t=!1,showVehicleFitment:o=!0,...n}){let r=e.kind==="tyre"?zI(e.tyre):iS(e.wheel),a=e0(r,{editing:t}),i=Jg();return yyt(xyt,{children:[VT(dv,{product:r,selection:a,onLightbox:i.open,editing:t,showVehicleFitment:o,...n}),VT(Cf,{item:i.item,onClose:i.close})]})}import{Fragment as Tyt,jsx as oh,jsxs as Eyt}from"react/jsx-runtime";var vyt=Ii;function t4({editing:e=!1,showVehicleFitment:t=!0,...o}){let n=Oo();return oh(Un,{kinds:vyt,type:dr,editing:e,children:n?oh(dv,{product:n.product,selection:n.selection,onLightbox:n.openLightbox,editing:e,showVehicleFitment:t,...o}):e?oh(kyt,{showVehicleFitment:t,...o}):oh($l,{size:"tall",children:"Bound to the current product \u2014 preview on a product page."})})}function kyt({showVehicleFitment:e,...t}){let o=Wn(!0);return o?oh(Syt,{product:o,showVehicleFitment:e,...t}):oh($l,{size:"tall",children:u("Loading sample product\u2026")})}function Syt({product:e,showVehicleFitment:t,...o}){let n=e0(e,{editing:!0}),r=Jg();return Eyt(Tyt,{children:[oh(dv,{product:e,selection:n,onLightbox:r.open,editing:!0,showVehicleFitment:t,...o}),oh(Cf,{item:r.item,onClose:r.close})]})}import{jsx as R0}from"react/jsx-runtime";function Pyt({source:e,editing:t=!1,showVehicleFitment:o=!0,heroLayout:n=hd,imageRatio:r=Qp,textAlign:a=Jp,showSpecTable:i=!0,stickyColumns:s=!1,stageToEdge:l=!1,showBreadcrumb:d=!0,nodeId:c,template:p,optionTemplate:m,optionPressTitles:f,tileTemplate:g,buyTemplate:h,optionLooks:w,linkedRecord:b}){let k={heroLayout:n,imageRatio:r,textAlign:a,showSpecTable:i,stickyColumns:s,stageToEdge:l,showBreadcrumb:d,nodeId:c,template:p,optionTemplate:m,optionPressTitles:f,tileTemplate:g,buyTemplate:h,optionLooks:w};if(Oo()||t&&Tr())return R0(t4,{editing:t,showVehicleFitment:o,...k});if(e?.slug){let v=e.kind??"wheel";return R0(SK,{slug:e.slug,kind:v,initialRecord:Q3(b,v,e.slug),editing:t,showVehicleFitment:o,...k})}return t?R0($l,{size:"tall",children:u("Pick a product in the panel to fill this hero.")}):R0(t4,{showVehicleFitment:o,...k})}function _yt(e,t){return sb(e,"full").mode!=="page"?t:R0(z,{as:"div",style:{"--sf-content-cap":ec},children:t})}var fAe={...r5e,render:e=>_yt(e,R0(Yhe,{pads:h3(dr,e,{both:WA},a_e),children:R0(Pyt,{source:e.source,editing:e.editor?.isEditing,showVehicleFitment:e.showVehicleFitment??!0,heroLayout:zu(e.heroLayout),imageRatio:x5(e.imageRatio),textAlign:ig(e.textAlign),showSpecTable:e.showSpecTable??!0,stickyColumns:e.stickyColumns===!0,stageToEdge:e.stageToEdge===!0,showBreadcrumb:e.showBreadcrumb!==!1,nodeId:typeof e.id=="string"?e.id:void 0,template:typeof e.template=="function"?e.template:void 0,optionTemplate:typeof e[ui]=="function"?e[ui]:void 0,optionPressTitles:pl(e,ui),tileTemplate:typeof e[Gi]=="function"?e[Gi]:void 0,buyTemplate:typeof e[ys]=="function"?e[ys]:void 0,optionLooks:a5e(e),linkedRecord:e[J3]})}))};var hAe={label:"Product",defaultProps:{code:"",finish:""}};import{jsx as Cyt}from"react/jsx-runtime";var gAe={...hAe,render:e=>Cyt(QU,{code:e.code||void 0,finish:e.finish||void 0,wheel:e.wheel})};var Ryt=["id","num","title","description","columns","relationship","headPlacement","hover","template","sectionAccent","editor"],Oyt=["imageBackground","cardImage","coverIndex","indexBadge","showBadge","outline","showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],Nyt=["footnote","footnoteLinkText","footnoteLinkHref"];function bAe(e){let t={dynamic:!0},o=[],n=[];for(let[r,a]of Object.entries(e))a!==void 0&&(Ryt.includes(r)||Oyt.includes(r)||r.startsWith("_")||r.endsWith("Phone")||r.endsWith("Tablet")?(t[r]=a,o.push(r)):r==="cardCount"?(t.limit=a,o.push(r)):Nyt.includes(r)?a!==""&&n.push(r):(t[r]=a,o.push(r)));return{props:t,carried:o,dropped:n}}var wAe={ownPad:ts,label:"Related Products",fields:{template:es.template},defaultProps:{num:"",title:"",description:"",cardCount:iT,columns:3,relationship:Qi}};var xAe=Ct("RelatedProducts",{...wAe,render:e=>Jy.render(bAe(e).props)});var yAe={label:"Search",defaultProps:{style:"icon"}};import{jsx as Lyt}from"react/jsx-runtime";var vAe={...yAe,render:({style:e,stylePhone:t,phonePlace:o,editor:n})=>Lyt(yOe,{style:e,stylePhone:t,phonePlace:o,editing:n?.isEditing})};import{jsx as Ayt}from"react/jsx-runtime";function TK({nodeId:e,children:t}){return Ayt(gu,{nodeId:e,sectionType:"SpecTable",children:t})}import{Fragment as Byt,jsx as vi,jsxs as _K}from"react/jsx-runtime";var EK={between:"[&>*+*]:border-t [&>*+*]:border-line",every:"[&>*]:border-t [&>*]:border-line"},Iyt={labelLarge:"text-[length:var(--size-label,14px)]"},kAe=xi;function Fyt({editing:e,nodeId:t,children:o}){return!e||!t?vi(Byt,{children:o}):vi(TK,{nodeId:t,children:o})}function PK({row:e,topBorder:t,editing:o}){return _K("div",{className:`flex items-baseline justify-between gap-6 py-4 font-mono ${Iyt.labelLarge} tracking-[0.05em] ${t?"border-t border-line":""}`,children:[vi("span",{...kAe(o,"rowLabel"),className:"uppercase text-fg-dim",children:e.label}),vi("span",{...kAe(o,"rowValue"),className:`text-right ${e.accent?"text-accent":"text-fg"}`,children:e.value})]})}function cv({num:e,title:t,description:o,rows:n,builtInLabels:r=!1,diagram:a,editing:i=!1,omitHead:s=!1,nodeId:l,capped:d=!0,template:c,footer:p,diagramElsewhere:m=!1,hideEmptyRows:f=!1}){let g=bs(),h=(n??[]).filter(x=>(x?.label??"").trim()||(x?.value??"").trim()).filter(x=>!f||!kw(x.value)).map(x=>r&&x.label?{...x,label:g(x.label)}:x),w=h.length>0?h:i?[{label:u("Label"),value:u("Value")}]:[],b=w.map(x=>({label:x.label??"",value:x.accent&&x.value?Aq(x.value,0,x.value.length,"highlight").text:x.value??""})),k=x=>m?vi("div",{className:x?`${EK.between} ${gy}`:void 0,children:x??w.map((v,y)=>vi(PK,{row:v,topBorder:y>0,editing:i},y))}):a?_K("div",{className:"grid grid-cols-[1fr_400px] gap-12 max-view-desktop:grid-cols-1",children:[vi("div",{className:x?`${EK.between} ${gy}`:void 0,children:x??w.map((v,y)=>vi(PK,{row:v,topBorder:y>0,editing:i},y))}),vi(k0,{diagram:a,editing:i,stacked:"legacy"})]}):vi("div",{className:`grid grid-cols-2 gap-x-16 max-[900px]:grid-cols-1${x?` ${EK.every} ${gy}`:""}`,children:x??w.map((v,y)=>vi(PK,{row:v,topBorder:!0,editing:i},y))});return vi(yt,{className:s?Yr.ownBox:Yr.inline,capped:d,children:_K(Fyt,{editing:i,nodeId:l,children:[s?null:vi(Mt,{num:e?L(e):void 0,title:t?te(t,!1):void 0,description:o?L(o):void 0,accent:!0}),vi(Ge,{ownerId:l??"",ownerType:"SpecTable",Template:c,rows:b,fallback:k(),children:x=>k(x)}),p===void 0?null:vi("div",{className:"mt-12 empty:hidden",children:p})]})})}var ti={size:"size",sectionWidth:"section_width",aspectRatio:"aspect_ratio",rimDiameter:"rim_diameter",construction:"construction",loadIndex:"load_index",speedRating:"speed_rating",maxLoad:"max_load_lbs",maxPressure:"max_psi",treadDepth:"tread_depth",overallDiameter:"overall_diameter",treadPattern:"tread_pattern",tireType:"tire_type",brand:"brand"},fdn=Object.values(ti).filter(e=>e!==ti.size);function Hyt(e){let{brand:t,variant:o}=e;if(!o)return[];let n=hc(o.size),r=o.specs,a=r;return[[ti.size,"Size",o.size],[ti.sectionWidth,"Section Width",n?`${n.width} mm`:""],[ti.aspectRatio,"Aspect Ratio",n?`${n.profile}`:""],[ti.rimDiameter,"Rim Diameter",n?`${n.rim}"`:""],[ti.construction,"Construction",r.construction],[ti.loadIndex,"Load Index",r.loadIndex],[ti.speedRating,"Speed Rating",r.speedRating],[ti.maxLoad,"Max Load",a.maxLoad??""],[ti.maxPressure,"Max Pressure",a.maxPressure??""],[ti.treadDepth,"Tread Depth",a.treadDepth??""],[ti.overallDiameter,"Overall Diameter",a.overallDiameter??""],[ti.treadPattern,"Tread Pattern",r.treadPattern],[ti.tireType,"Type",r.tireType],[ti.brand,"Manufacturer",t]]}function SAe(e){let t=[];for(let[o,n,r]of Hyt(e)){let a=(r??"").trim();a&&t.push({label:n,value:a,fieldKey:o})}return{rows:t}}import{jsx as YT}from"react/jsx-runtime";var Dyt=["alloy-wheel","tyre"];function Myt(e,t,o){let n=e.variants??[];return(t?n.find(r=>r.sku===t):void 0)??(o?n.find(r=>r.size===o):void 0)??n[0]??null}var zyt=[];function CK(e){return YT(Un,{kinds:Dyt,type:"SpecTable",editing:e.editing,children:YT(Wyt,{...e})})}function Wyt({num:e,title:t,description:o,showDiagram:n=!0,editing:r=!1,nodeId:a,omitHead:i=!1,template:s,showEuLabel:l=!1,hideRows:d=zyt,hideEmptyRows:c=!1}){let p=Oo(),m=Wn(r&&!p),f=p?.product??m,g=f?.kind==="tyre"?f.source:null,h=p?.fieldUsage??Bn;if(g){let b=Myt(g,p?.selection.part?.id,p?.selection.shown.size),k=SAe({brand:g.brand,variant:b});return YT(cv,{capped:!1,builtInLabels:!0,num:e,title:t,description:o,rows:WB(k.rows,h),diagram:null,editing:r,nodeId:a,omitHead:i,template:s,hideEmptyRows:c,footer:l&&!i?YT(T3,{editing:r}):void 0})}let w=_3(p,f);return YT(cv,{capped:!1,builtInLabels:!0,num:e,title:t,description:o,rows:fT(WB(w.rows,h),d),diagram:n&&!i?w.diagram:null,diagramElsewhere:i,editing:r,nodeId:a,omitHead:i,template:s,hideEmptyRows:c})}import{jsx as TAe}from"react/jsx-runtime";var EAe=Ct("SpecTable",{...k5e,render:e=>{let t=We(e.headPlacement)==="own-box",o=p=>t?void 0:p;if(e.dynamic)return TAe(CK,{nodeId:typeof e.id=="string"?e.id:void 0,num:o(R(e.num,Bd.num,e.editor)),title:o(R(e.title,Bd.title,e.editor)),description:o(R(e.description,Bd.description,e.editor)),showDiagram:e.showDiagram!==!1,omitHead:t,editing:e.editor?.isEditing,template:e.template,showEuLabel:e.showEuLabel===!0,hideRows:t3(e),hideEmptyRows:LG(e)});let n=e.source??null,r=e.wheel,a=!n?.slug&&typeof r=="string"?r:"",i=typeof e.finish=="string"?e.finish:"",s=typeof e.size=="string"?e.size:"",l,d=!0,c=null;if(n?.slug&&n.spec){let p=Yy(n,i,s);l=fT(p.rows,t3(e)),c=e.showDiagram===!1?null:p.diagram}else if(a){let p=o3(a,i,s);l=fT(p.rows,t3(e)),c=e.showDiagram===!1?null:p.diagram}else l=e.rows??[],d=!1;return TAe(cv,{capped:!1,nodeId:typeof e.id=="string"?e.id:void 0,num:o(R(e.num,Bd.num,e.editor)),title:o(R(e.title,Bd.title,e.editor)),description:o(R(e.description,Bd.description,e.editor)),rows:l,builtInLabels:d,diagram:c,omitHead:t,editing:e.editor?.isEditing,template:e.template,hideEmptyRows:LG(e)})}});var PAe={label:"Theme Switch"};import{jsx as Uyt}from"react/jsx-runtime";var _Ae={...PAe,render:({phonePlace:e})=>Uyt(SOe,{phonePlace:e})};import{useEffect as $yt,useRef as Kyt}from"react";import{jsx as pv,jsxs as CAe}from"react/jsx-runtime";var jT={body:"text-[length:var(--size-body,18px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},Gyt={fits:{className:"font-medium",style:{color:"var(--green)"}},doesNotFit:{className:"text-fg-dim"},unknown:{className:"text-fg-dim"}};function mv({variants:e,answer:t,loading:o=!1,onRetry:n,headline:r}){return t?CAe(z,{className:"mt-10",children:[pv("p",{className:`max-w-[68ch] font-serif ${jT.body} italic leading-[1.55] text-fg-dim`,children:r??U3(t)}),t.failed&&n?pv("button",{type:"button",onClick:n,className:`mt-4 cursor-pointer font-mono ${jT.labelLarge} uppercase tracking-[0.18em] text-accent underline-offset-4 hover:underline`,children:"Try again"}):null,pv("ul",{className:"mt-6 grid gap-[2px] border border-line bg-line",children:e.map(a=>{let i=eR(t,a.sku),s=Gyt[i];return CAe("li",{className:"flex items-baseline justify-between gap-6 bg-bg px-5 py-4",children:[pv("span",{className:`font-mono ${jT.labelLarge} uppercase tracking-[0.14em] text-fg`,children:a.size}),pv("span",{className:`font-mono ${jT.labelSmall} uppercase tracking-[0.24em] ${s.className}`,style:s.style,children:G3[i]})]},a.sku)})})]}):o?pv(z,{as:"p",className:`mt-10 border border-line bg-bg p-6 font-mono ${jT.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:"Checking your car\u2026"}):null}import{jsx as RK,jsxs as RAe}from"react/jsx-runtime";var OK="Will it fit *your car?*",NK="Pick your vehicle and we\u2019ll tell you which of these sizes matches what it came on.",LK="border-b border-line py-[120px] max-view-desktop:py-20",AK="border-b border-line pt-0 pb-[120px] max-view-desktop:pt-0 max-view-desktop:pb-20";function IK({num:e,title:t=OK,description:o=NK,escapeText:n,escapeHref:r,omitHead:a=!1,capped:i=!0,slug:s,variants:l,onAnswer:d,cellLook:c}){let p=Zi({autoApply:!0}),{answer:m,loading:f,retry:g}=av(s,sw(p.applied?.vehicle)),h=Kyt(d);return h.current=d,$yt(()=>{h.current?.(m)},[m]),RAe(yt,{className:a?AK:LK,capped:i,children:[a?null:RK(Mt,{num:e,title:t,description:o,accent:!0}),RK(Ja,{cascade:p.cascade,cellLook:c}),n&&r?RAe("a",{href:r,className:"mt-6 inline-block font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-accent underline-offset-4 hover:underline",children:[n," \u2192"]}):null,RK(mv,{variants:l,answer:m,loading:f,onRetry:g})]})}import{jsx as qT,jsxs as jyt}from"react/jsx-runtime";var Vyt=["tyre"];function FK(e){return qT(Un,{kinds:Vyt,type:"TyreFitment",editing:e.editing,children:qT(Yyt,{...e})})}function Yyt({num:e,title:t,description:o,escapeText:n,escapeHref:r,omitHead:a=!1,cellLook:i,editing:s=!1}){let l=Oo(),d=Wn(s&&!l),c=l?.product??d,p=c?.kind==="tyre"?c.source:null;return!p||p.variants.length===0?s?jyt(yt,{className:a?AK:LK,children:[a?null:qT(Mt,{num:e,title:t||OK,description:o||NK,accent:!0}),qT("p",{className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim",children:u("The vehicle question appears here on a tyre product page, with one verdict per size.")})]}):null:qT(IK,{num:e,title:t||void 0,description:o||void 0,escapeText:n,escapeHref:r,omitHead:a,cellLook:i,capped:!1,slug:p.slug,variants:p.variants})}import{hidableText as NAe}from"efficient-easel/screen/lib/document/hidable";var OAe={ownPad:ts,label:"Tyre Fitment Form",defaultProps:{num:"",title:"",description:"",escapeText:"",escapeHref:""}};import{jsx as qyt}from"react/jsx-runtime";var LAe=Ct("TyreFitment",{...OAe,render:e=>{let t=We(e.headPlacement)==="own-box",o=a=>t?void 0:a,n=NAe(e.escapeText),r=NAe(e.escapeHref);return qyt(FK,{num:o(R(e.num,bn.num,e.editor)),title:o(R(e.title,W.sectionHeading,e.editor)),description:o(R(e.description,W.body,e.editor)),escapeText:n,escapeHref:r,omitHead:t,cellLook:e[qc],editing:e.editor?.isEditing})}});import{jsx as BK}from"react/jsx-runtime";var Xyt=["tyre"];function HK(e){return BK(Un,{kinds:Xyt,type:"TyreSizes",editing:e.editing,children:BK(Zyt,{...e})})}function Zyt({num:e,title:t,description:o,editing:n=!1,omitHead:r=!1}){let a=Oo(),i=Wn(n&&!a),s=a?.product??i,l=s?.kind==="tyre"?s.source.variants:[];return BK(L3,{variants:l,fieldUsage:a?.fieldUsage??Bn,num:e,title:t,description:o,editing:n,omitHead:r})}var AAe={ownPad:ts,label:"Tyre Sizes",defaultProps:{num:"",title:"",description:""}};import{jsx as Jyt}from"react/jsx-runtime";var IAe=Ct("TyreSizes",{...AAe,render:e=>{let t=We(e.headPlacement)==="own-box",o=n=>t?void 0:n;return Jyt(HK,{num:o(R(e.num,bn.num,e.editor)),title:o(R(e.title,W.sectionHeading,e.editor)),description:o(R(e.description,W.body,e.editor)),omitHead:t,editing:e.editor?.isEditing})}});var DK={label:"Size",defaultProps:{}};import{jsx as FAe}from"react/jsx-runtime";var BAe={...DK,render:e=>FAe(er,{label:DK.label??"",editing:!!e.editor?.isEditing,children:FAe(mW,{})})};import{jsx as MK,jsxs as Qyt}from"react/jsx-runtime";var HAe=gt("ProductCard");function zK({finishes:e,availability:t,selectedIdx:o,hoverIdx:n,activeFinish:r,onSelect:a,onHover:i,showLabel:s=!0,className:l}){return Qyt("div",{className:["mt-4",l].filter(Boolean).join(" "),children:[MK("div",{className:"flex flex-wrap items-center gap-2",onMouseLeave:()=>i(null),onClick:d=>d.preventDefault(),...HAe("swatches"),children:e.map((d,c)=>{if(!t[c])return null;let p=c===o,m=n===c&&n!==o;return MK("button",{type:"button",title:d.name,"aria-label":d.name,"aria-pressed":p,onMouseEnter:()=>i(c),onFocus:()=>i(c),onBlur:()=>i(null),onClick:f=>{f.preventDefault(),f.stopPropagation(),a(c)},className:["h-4 w-4 shrink-0 rounded-full transition-all",p?"ring-2 ring-accent ring-offset-2 ring-offset-surface":m?"ring-1 ring-fg ring-offset-2 ring-offset-surface":"ring-1 ring-fg/30 ring-offset-1 ring-offset-surface"].join(" "),style:{background:d.color,border:"1px solid var(--swatch-border)"},...HAe("swatch")},`${d.name}
|
|
30
|
-
${d.src}`)})}),s&&r&&MK("div",{className:"mt-2 truncate font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-fg-dim",children:r.name})]})}import{jsx as o4}from"react/jsx-runtime";function WK({show:e=!0,showSingle:t=!1}){let o=Lr(),n=ks(),r=o.kind==="wheel"?o.sel:null,a=r!=null&&(t?r.finishes.length>0&&r.availability.some(Boolean):r.showSwatches);return e&&r&&a?o4(yx,{children:o4(zK,{finishes:r.finishes,availability:r.availability,selectedIdx:r.selectedIdx,hoverIdx:r.hoverIdx,activeFinish:r.finish,onSelect:r.setSelectedIdx,onHover:r.setHoverIdx,showLabel:!1})}):o4(yx,{children:n&&e?o4("div",{"aria-hidden":!0,className:"mt-4 h-4"}):null})}var UK={label:"Colour",defaultProps:{}};import{jsx as GK}from"react/jsx-runtime";function evt(){return GK(WK,{showSingle:fr().rules.showSingle})}var DAe={...UK,render:e=>GK(er,{label:UK.label??"",editing:!!e.editor?.isEditing,children:GK(evt,{})})};var $K={label:"Buy button",defaultProps:{[my]:Nf},sitsInBox:!0};import{jsx as MAe}from"react/jsx-runtime";var zAe={...$K,render:e=>MAe(er,{label:$K.label??"",editing:!!e.editor?.isEditing,onHero:!0,children:MAe(mS,{look:xEe(e[my])})})};var KK={label:"Price",defaultProps:{}};import{Fragment as nvt,jsx as uv}from"react/jsx-runtime";function tvt({children:e}){return fr().ownerId?uv(z,{children:e}):uv(nvt,{children:e})}function ovt({region:e,heroLook:t}){let{rules:o}=fr();return uv(zG,{setTotal:o.setTotal,wasFollowsSize:o.wasFollowsSize,priceWord:t.priceWord,heroLook:t,region:e})}var WAe={...KK,render:e=>{let t=!!e.editor?.isEditing;return uv(er,{label:KK.label??"",editing:t,onHero:!0,children:uv(tvt,{children:uv(ovt,{heroLook:{priceWord:bT.find(o=>o===e.priceWord),unitWords:wT.find(o=>o.value===e.unitWords)?.value,setBadge:e.setBadge!==!1,show:jf.find(o=>o.value===e.show)?.value},region:{nodeId:typeof e.id=="string"?e.id:void 0,partStyles:Oi(e),editing:t}})})})}};import{phoneKey as svt}from"efficient-easel/draw";import{useCallback as UAe,useMemo as VK,useState as rvt}from"react";import{Fragment as VAe,jsx as $n,jsxs as fv}from"react/jsx-runtime";var KAe="lugs";function YK({owner:e,look:t,lookPhone:o,shown:n,showSort:r,openingSort:a,filtersBelow:i,fieldUsage:s,firstRows:l,editing:d}){let{currency:c}=Lt(),p=bs(),{ref:m,scope:f}=bRe({filtersBelow:i,openingSort:a}),{state:g}=f,h=f.live?f.rows:l??f.rows,w=VK(()=>[...new Set(h.map(zt))],[h]),b=VK(()=>{let X=Pw(h,g,c,w,s??[],"pass").filter(Z=>Z.key!=="collections"||n.includes("category"));if(n.includes("lugs")){let Z=avt(h,g,c);Z&&X.push(Z)}return X.map(Z=>({...Z,label:p(Z.label)}))},[h,g,c,w,s,n,p]),k=n.includes("price")?_R(h,c):null,x=n.includes("inStock")&&h.length>0?ER(h,g,c):null,v=Qh(w.length?w:["alloy-wheel"]),y=f.update,S=UAe(X=>y({...X,page:1}),[y]),E=UAe((X,Z)=>y(V=>{if(X===KAe){let C=Number(Z),O=(V.lugs??[]).includes(C);return{...V,page:1,lugs:O?(V.lugs??[]).filter(G=>G!==C):[...V.lugs??[],C]}}let j=V[X].map(String),J=j.includes(Z)?j.filter(C=>C!==Z):[...j,Z];return{...V,page:1,[X]:X==="diameters"?J.map(Number):J}}),[y]),T=r&&!f.sortInChips,_=VK(()=>{let X=$Ee(b,g,x).map(Z=>({...Z,options:Z.options.map(V=>({...V,press:Z.key===r0?()=>S({inStockOnly:!g.inStockOnly}):()=>E(Z.key,V.value)}))}));return k?[...X,{key:xS,label:ld.price,options:[]}]:X},[b,g,x,k,S,E]),P={owner:e,items:_,state:g,sorts:v,showSort:T,set:S,bounds:k},I=X=>S({priceMin:X}),D=X=>S({priceMax:X}),F=X=>$n(vS,{facets:b,filters:g,noun:Vr(w.length?w:["alloy-wheel"]),inStockCount:x,onToggle:E,onInStockOnly:Z=>S({inStockOnly:Z}),onClearAll:f.clear,price:k?{label:ld.price,control:$n(Sm,{bounds:k,min:g.priceMin,max:g.priceMax,onMin:I,onMax:D})}:void 0,foot:X,owner:{id:e.id,facetTemplate:e.facetTemplate,railTemplate:e.railTemplate,railHeadTemplate:e.railHeadTemplate,type:Fi},editing:d}),A=F(T?$n(n4,{...P}):void 0),N=fv("div",{className:"flex items-center justify-between gap-4",children:[$n(CS,{filters:g,editing:d,children:F(void 0)}),T&&$n(n4,{...P})]}),B=t==="rail"?A:t==="button"?N:$n($Ae,{...P,columns:t==="bar-columns"}),K=o===t||o==="bar"&&(t==="bar-pills"||t==="bar-columns")?null:o==="button"?N:o==="rail"?A:$n($Ae,{...P,columns:!1});return fv(z,{as:"div",ref:m,"data-shopper-filters":"",className:"w-full",children:[K?fv(VAe,{children:[$n("div",{className:"max-view-wide:hidden",children:B}),$n("div",{className:"view-wide:hidden",children:K})]}):B,d&&f.grids===0&&$n("p",{className:`mt-2 font-mono ${No.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:"Filters a Product Grid in this Box"})]})}function avt(e,t,o){let n=new Map,r=new Set;for(let i of e){let s=zt(i)==="alloy-wheel"?Zh(i):null;s!==null&&(r.add(s),vc(i,t,o,"lugs","pass")&&n.set(s,(n.get(s)??0)+1))}if(r.size<=eg)return null;let a=t.lugs??[];return{key:KAe,label:ld.lugs,options:[...r].sort((i,s)=>i-s).map(i=>({value:String(i),label:Xh(i),count:n.get(i)??0,checked:a.includes(i),swatch:null}))}}function n4({state:e,sorts:t,set:o}){return $n(Ld,{value:e.sort,keys:t,labels:pd,onChange:n=>o({sort:n})})}function ivt(e,t){return e.key===xS?(t.priceMin!=null?1:0)+(t.priceMax!=null?1:0):e.options.filter(o=>o.state.selected).length}function GAe({owner:e,items:t,state:o,set:n,bounds:r,wrap:a}){let i=d=>n({priceMin:d}),s=d=>n({priceMax:d}),l=(d,c)=>{let p=t[c.index],m=p.key===xS?fv(VAe,{children:[d,$n(Sm,{bounds:r,min:o.priceMin,max:o.priceMax,onMin:i,onMax:s})]}):d;return a(m,p)};return $n(Ge,{ownerId:e.id,ownerType:Fi,Template:e.template,rows:t.map(nn),items:t,fallback:null,wrapCopy:l,children:d=>d})}function $Ae({columns:e,...t}){let[o,n]=rvt(null),r=a=>()=>n(i=>i===a?null:a);return e?fv("div",{className:"flex flex-col gap-4",children:[$n("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(200px,1fr))] gap-6 border-y border-line py-4",children:$n(GAe,{...t,wrap:(a,i)=>$n("div",{children:a},i.key)})}),t.showSort&&$n("div",{className:"flex flex-wrap items-center justify-end gap-4",children:$n(n4,{...t})})]}):fv("div",{className:"relative flex flex-wrap items-center gap-2 @container",children:[$n(GAe,{...t,wrap:(a,i)=>$n(Ff,{labelSize:No.labelSmall,name:i.key,label:i.label,badge:ivt(i,t.state),open:o===i.key,onToggle:r(i.key),children:a},i.key)}),t.showSort&&$n("div",{className:"ml-auto",children:$n(n4,{...t})})]})}import{jsx as lvt}from"react/jsx-runtime";var YAe={...I5e,render:e=>lvt(YK,{owner:{id:String(e.id??""),template:e.template,facetTemplate:e[Ua],railTemplate:e[Ga],railHeadTemplate:e[$a]},look:nPe(e.look),lookPhone:rPe(e[svt("look")]),shown:dPe(e.filtersShown),showSort:e.showSort!==!1,openingSort:SA(e.openingSort),filtersBelow:e.filtersBelow===!0,fieldUsage:e.fieldUsage,firstRows:e[JS],editing:e.editor?.isEditing})};import{Fragment as qAe,jsx as gr,jsxs as XAe}from"react/jsx-runtime";var dvt="\u2715";function jK({owner:e,showCount:t,showClear:o,showSort:n,firstShown:r,editing:a}){let{ref:i,scope:s,gallery:l}=LI("chips",null,{count:t,sort:n}),{currency:d}=Lt(),p=(!s?.live&&r?{state:s?.state??{...lr,sort:r.sort},update:()=>{},clear:()=>{},total:r.total,range:r.range,kinds:r.kinds}:null)??(s?{...s,kinds:[...new Set(s.rows.map(zt))]}:null);if(!p&&l)return gr(z,{as:"div",ref:i,"data-shopper-chips":"",children:gr(cvt,{owner:e,gallery:l,showCount:t,showClear:o,showSort:n,editing:a})});if(!p)return gr(z,{as:"div",ref:i,"data-shopper-chips":"",children:a&&gr("p",{className:`font-mono ${No.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:"Filter chips show the picks of a Filters block, or the Tags of a Gallery, in this Box"})});let{state:m,update:f,clear:g,total:h,range:w,kinds:b}=p,k=Vr(b.length?b:["alloy-wheel"]),x=Nu(m),v=KEe(m,d,ba).map(E=>({...E,mark:dvt,press:()=>f(T=>VEe(T,E))})),y=XAe(qAe,{children:[t&&gr("div",{"data-shopper-count":"",className:"contents",children:gr(IS,{total:h,range:w??{from:h?1:0,to:h},noun:k})}),v.length>0&&gr(jAe,{owner:e,chips:v,editing:a}),o&&x&&gr(Lf,{onClick:g})]}),S=Qh(b.length?b:["alloy-wheel"]);return gr(z,{as:"div",ref:i,"data-shopper-chips":"",children:gr(AS,{start:y,end:n?gr(Ld,{value:m.sort,keys:S,labels:pd,onChange:E=>f({sort:E,page:1})}):void 0})})}function jAe({owner:e,chips:t,selected:o,editing:n}){let r=If(t,{item:a=>a,selected:(a,i)=>i===o,press:a=>a.press});return gr("ul",{className:"flex list-none flex-wrap items-center gap-2",children:gr(Ge,{ownerId:e.id,ownerType:Au,Template:e.template,rows:r.items.map(nn),items:r.items,states:o===void 0?void 0:r.states,actions:n?void 0:r.actions,pressTitles:e.pressTitles,fallback:null,wrapCopy:a=>gr("li",{children:a}),children:a=>a})})}function cvt({owner:e,gallery:t,showCount:o,showClear:n,showSort:r,editing:a}){let{tags:i,tag:s,sort:l,shown:d,pick:c,setSort:p,clear:m}=t,f=[{label:u("All"),mark:"",press:()=>c(null)},...i.map(h=>({label:h,mark:"",press:()=>c(h)}))],g=XAe(qAe,{children:[o&&gr("div",{"data-shopper-count":"",className:"contents",children:gr(IS,{total:d,range:{from:d?1:0,to:d},noun:pvt})}),i.length>0&&gr(jAe,{owner:e,chips:f,selected:s===null?0:i.indexOf(s)+1,editing:a}),n&&s!==null&&gr(Lf,{onClick:m})]});return gr(AS,{start:g,end:r?gr(Ld,{value:l,keys:oRe,labels:nRe,onChange:p}):void 0})}var pvt={many:"items"};import{jsx as mvt}from"react/jsx-runtime";var ZAe={...H5e,render:e=>mvt(jK,{owner:{id:String(e.id??""),template:e.template,pressTitles:pl(e,Nt)},showCount:e.showCount!==!1,showClear:e.showClear!==!1,showSort:e.showSort===!0,firstShown:e[QS],editing:e.editor?.isEditing})};import{useSyncExternalStore as eIe}from"react";var uvt={"alloy-wheel":"stockCard",tyre:"tyreVerdicts"},JAe={source:"stockCard"};function QAe(e){if(!e)return JAe;let t=uvt[e.kind];return t==="tyreVerdicts"&&e.kind==="tyre"&&e.source.variants.length>0?{source:t,slug:e.source.slug,variants:e.source.variants}:JAe}import{jsx as XT}from"react/jsx-runtime";var fvt=()=>null,hvt=()=>null,gvt=Tse({make:"",model:"",year:0,modification:""});function bvt({product:e,editing:t=!1,label:o=""}){let n=QAe(e),r=eIe(Xa.subscribeStock,Xa.readStock,fvt),a=eIe(Xa.subscribe,Xa.read,hvt),i=n.source==="tyreVerdicts"?n:null,{answer:s,loading:l,retry:d}=av(i?.slug??"",i&&!t?sw(a?.vehicle):null),c=t?XT(z,{"data-host-part-sample":"",className:"opacity-60",children:u(o)}):null;return i?t?XT(z,{"data-host-part-sample":"",className:"opacity-60",children:XT(mv,{variants:i.variants,answer:gvt,headline:u("A sample. On the live page each size shows its own verdict for the shopper's car.")})}):XT(mv,{variants:i.variants,answer:s,loading:l,onRetry:d}):r?XT(IT,{loading:r.loading,error:r.error,data:r.stock}):c}function qK({editing:e=!1,label:t=""}){let o=Oo(),n=Wn(e&&!o);return bvt({product:o?.product??n,editing:e,label:t})}var XK={label:"Fitment answer",defaultProps:{}};import{jsx as wvt}from"react/jsx-runtime";var tIe={...XK,render:e=>wvt(qK,{label:XK.label??"",editing:!!e.editor?.isEditing})};var ZK={label:"Picture",defaultProps:{indexBadge:hC,showBadge:!0}};import{jsx as oIe}from"react/jsx-runtime";var nIe={...ZK,render:e=>oIe(er,{label:ZK.label??"",editing:!!e.editor?.isEditing,children:oIe(t$,{imageBackground:e.imageBackground,cardImage:e.cardImage,coverIndex:e.coverIndex,indexBadge:e.indexBadge,showBadge:e.showBadge,setFlags:e.setFlags,frame:e.frame,swatch:e.swatch,shadow:e.shadow,shadowColor:e.shadowColor,shadowOn:e.shadowOn})})};var r4={label:"Specs",defaultProps:{sizes:!1}};import{jsx as nh}from"react/jsx-runtime";function xvt({show:e,editing:t}){let o=Mn()?.product,n=e==="sizes"&&o?.kind==="alloy-wheel"?ML(o.source.sizes):null;return n?nh(QL,{oneLine:!0,children:n}):t?nh(r$,{label:r4.label??""}):null}function yvt({sizes:e,show:t,editing:o}){return Mn()?nh(xvt,{show:t,editing:o}):nh(vvt,{sizes:e,show:t})}function vvt({sizes:e,show:t}){let{fieldUsage:o,tyreFieldUsage:n,fit:r}=fr(),a=Lr().kind==="tyre";return nh(QL,{oneLine:t==="sizes"&&!a,children:nh(lEe,{sizes:e,show:a?"all":t,fieldUsage:a?n:o,car:r})})}var rIe={...r4,render:e=>nh(er,{label:r4.label??"",editing:!!e.editor?.isEditing,onHero:!0,children:nh(yvt,{sizes:e.sizes===!0,show:eA.find(t=>t.value===e.show)?.value??"all",editing:!!e.editor?.isEditing})})};var JK={label:"Buy",defaultProps:{buy:!0,page:!0}};import{jsx as aIe}from"react/jsx-runtime";var iIe={...JK,render:e=>aIe(er,{label:JK.label??"",editing:!!e.editor?.isEditing,children:aIe(mS,{buy:e.buy!==!1,page:e.page!==!1})})};import{Fragment as Svt,jsx as ZT,jsxs as sIe}from"react/jsx-runtime";var kvt="mb-2.5 flex items-center gap-2.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.2em] text-accent";function QK({eyebrow:e,badge:t,region:o}){return ZT(Ll,{region:o,sectionType:"ProductEyebrow",children:ZT(z,{as:"div",...Ol(o,"eyebrow"),className:kvt,children:sIe(Nl,{region:o,at:"eyebrow",children:[ZT("span",{children:e}),t&&sIe(Svt,{children:[ZT("span",{children:"\xB7"}),ZT("span",{children:t})]})]})})})}var eV={label:"Eyebrow",defaultProps:{}};import{Fragment as Rvt,jsx as Kl,jsxs as Ovt}from"react/jsx-runtime";function Tvt(e){let{fieldUsage:t,tyreFieldUsage:o,eyebrow:n}=fr();if(e.kind==="tyre"){let s=(n.tyreBrand??n.brand)&&Ou(o)("brand")&&e.tyre.brand||null,l=n.kindLabel?Vr(["tyre"]).one:null;return kW(l,s)}let r=e.kind==="wheel"?e.wheel:null,a=r&&n.brand?ww(r):null,i={kindLabel:r?n.kindLabel:null,brand:a?Eo(a):null,process:r&&n.process&&r.process?Eo(r.process):null};return WEe(i,t)}function Evt({state:e,children:t}){return Kl(Rvt,{children:t(Tvt(e),null)})}var Pvt="data-product-crumbs";function _vt({product:e}){let t=e.crumbs.slice(1,-1);return t.length===0?null:Kl("nav",{"aria-label":"Breadcrumb",[Pvt]:"",className:"text-xs text-fg-dim",children:t.map((o,n)=>Ovt("span",{children:[n>0&&" / ",o.href?Kl(Tt,{href:o.href,className:"hover:text-fg",children:Kl(_0,{text:o.label})}):Kl(_0,{text:o.label})]},`${o.label}-${n}`))})}function Cvt({props:e,region:t}){let o=Mn(),n=Zc(),{reserveEyebrow:r}=fr(),a=P5(e[Ui])==="headline",i=(s,l)=>a?Kl(QK,{eyebrow:s,badge:e[pg]===!0?l:null,region:t}):Kl(RL,{reserve:r,region:t,children:s});return o&&Upe(e[C1])==="crumbs"?Kl(_vt,{product:o.product}):o?i(o.title.eyebrow?Kl(_0,{text:o.title.eyebrow}):null,o.title.badge):n?Kl(Evt,{state:n,children:i}):null}var lIe={...eV,render:e=>{let t=!!e.editor?.isEditing;return Kl(er,{label:eV.label??"",editing:t,onHero:!0,children:Kl(Cvt,{props:e,region:{nodeId:typeof e.id=="string"?e.id:void 0,partStyles:Oi(e),editing:t}})})}};import{VIEW_TIERS as Nvt}from"efficient-easel/screen/lib/content/view-tiers";import{Fragment as Mvt,jsx as a4,jsxs as dIe}from"react/jsx-runtime";var Lvt=.72;function Avt(e,t=!0){let o=e.trim().split(/\s+/).filter(Boolean);if(o.length===0)return;let n=o.map((r,a)=>r.length+(t&&o.length>1&&a===o.length-1?1:0));return`calc(100cqi / ${(Math.max(...n)*Lvt).toFixed(2)})`}var cIe="text-[length:min(min(var(--size-headingMedium,clamp(48px,5.5vw,84px)),var(--hero-name-fit,9999px)),var(--sf-heading-max,9999px))]",Ivt=`font-heading2 ${cIe} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] leading-[0.92] tracking-[-0.035em]`,Fvt=cIe,Bvt=e=>o_(e?.partStyles?.[ed("name")])?.textStyle!==void 0,Hvt=e=>{let t=e?.partStyles?.[ed("name")];return!!t&&Nvt.some(o=>!!bQ(t,o).fontSize)},Dvt=(e,t)=>({"--hero-name-fit":e,...e&&t?{[gQ]:e}:{}});function tV({name:e,accentLastWord:t,region:o}){let n=t?e.lastIndexOf(" "):-1,r=a4(Nl,{region:o,at:"name",children:n===-1?e:dIe(Mvt,{children:[e.slice(0,n)," ",dIe("em",{className:"font-normal italic text-accent",children:[e.slice(n+1),"."]})]})});return a4(Ll,{region:o,sectionType:"ProductName",children:a4(z,{as:"div",className:"w-full [container-type:inline-size]",children:a4("h1",{...Ol(o,"name"),className:Bvt(o)?Fvt:Ivt,style:Dvt(Avt(e,t),Hvt(o)),children:r})})})}var oV={label:"Name",defaultProps:{},partSizeCaps:{[ed("name")]:!0}};import{jsx as i4}from"react/jsx-runtime";function zvt({props:e,region:t}){let o=Mn(),n=Zc();return P5(e[Ui])==="headline"?i4(tV,{name:o?o.title.name:oW(n)??"",accentLastWord:e[cg]===!0,region:t}):i4(ZL,{region:t,fixedHeight:e.fixedHeight!==!1,children:o?o.title.name:void 0})}var pIe={...oV,render:e=>{let t=!!e.editor?.isEditing;return i4(er,{label:oV.label??"",editing:t,onHero:!0,children:i4(zvt,{props:e,region:{nodeId:typeof e.id=="string"?e.id:void 0,partStyles:Oi(e),editing:t}})})}};var mIe={AccountBlock:POe,AlloyWheelsListing:COe,BundleOffer:MOe,CartBlock:WOe,CatalogFilterBar:eNe,CheckoutCTA:oNe,CollectionCard:aNe,Collections:sNe,CompatibleTyres:lNe,CountrySwitchBlock:cNe,DeliveryOptions:mNe,DetailRows:vNe,EuTyreLabel:ONe,EuTyreLabelBlock:LNe,WheelDiagram:ANe,FitmentFinder:HNe,FitmentTable:nLe,Gallery:iLe,GalleryB:pLe,GalleryItem:fLe,Header:gLe,ProductGallery:QLe,ProductGrid:Jy,ProductHero:fAe,ProductRef:gAe,RelatedProducts:xAe,SearchBlock:vAe,SpecTable:EAe,ThemeSwitchBlock:_Ae,TyreFitment:LAe,TyreSizes:IAe,ProductSize:BAe,ProductColour:DAe,ProductPrice:WAe,ProductBuyButton:zAe,FilterBlock:YAe,FilterChipsBlock:ZAe,FitmentPicker:DNe,StockFitment:tIe,ProductPicture:nIe,ProductSpecs:rIe,ProductBuy:iIe,ProductEyebrow:lIe,ProductName:pIe,ProductSku:rOe};var Wvt={AccountBlock:xSe,AlloyWheelsListing:d_e,BundleOffer:p_e,CartBlock:m_e,CatalogFilterBar:y_e,CheckoutCTA:k_e,CollectionCard:P_e,Collections:O_e,CompatibleTyres:L_e,CountrySwitchBlock:A_e,DeliveryOptions:B_e,DetailRows:$_e,EuTyreLabel:K_e,EuTyreLabelBlock:V_e,WheelDiagram:Y_e,FitmentFinder:q_e,FitmentTable:oCe,Gallery:mCe,GalleryB:kCe,GalleryItem:ACe,Header:ICe,ProductGallery:$Ce,ProductGrid:FRe,ProductHero:s5e,ProductRef:p5e,RelatedProducts:u5e,SearchBlock:f5e,SpecTable:T5e,ThemeSwitchBlock:E5e,TyreFitment:P5e,TyreSizes:_5e,ProductSize:C5e,ProductColour:R5e,ProductPrice:A5e,ProductBuyButton:O5e,FilterBlock:B5e,FilterChipsBlock:D5e,FitmentPicker:J_e,StockFitment:M5e,ProductPicture:Z5e,ProductSpecs:Q5e,ProductBuy:tOe,ProductEyebrow:nOe,ProductName:sOe,ProductSku:aOe},St=vx(mIe,Wvt);import{group as Uvt}from"efficient-easel/screen/lib/document/box-fields";var JT={boxes:{type:"slot",allow:["BookingBox"]},...F5},uIe={ownPad:$Pe,label:"Booking Form",fields:JT,defaultProps:{eyebrow:"",heading:"",intro:"",buttonLabel:"",successMessage:""}};var nV={not:{field:"layout",is:"boxes"}},Gvt={any:[nV,{field:"headPlacement",is:"own-box"}]},fIe={fields:Le({_gContent:Uvt("Content"),eyebrow:Q("Eyebrow"),heading:je("Heading"),intro:je("Introduction"),buttonLabel:Q("Submit button"),successMessage:je("Confirmation message"),boxes:JT.boxes,serviceTemplate:JT.serviceTemplate,timeTemplate:JT.timeTemplate},[[["eyebrow","heading","intro"],{all:[nV,Ia]}],[["buttonLabel","successMessage"],nV],[["serviceTemplate","timeTemplate"],Gvt]])};import{group as $vt}from"efficient-easel/screen/lib/document/box-fields";var QT={label:"Booking box",fields:F5,defaultProps:{}};var Kvt={eyebrow:"head",heading:"head",intro:"head",buttonLabel:"details",successMessage:"confirm",serviceTemplate:"booking",timeTemplate:"booking"},Vvt={any:[]};function hIe(e){let t=I5.map(n=>qw[n]),o=[];for(let n of Object.keys(e)){if(n.startsWith("_")||t.includes(n))continue;let r=Kvt[n];o.push([[n],r?{field:"region",is:r}:Vvt])}return o}var gIe={fields:{...Le(QT.fields??{},hIe(QT.fields??{})),...Zu(I5,qw,Cme,{unsetLabel:"Section's own"}),_gContent:$vt("Content"),eyebrow:Q("Eyebrow"),heading:je("Heading"),intro:je("Introduction"),buttonLabel:Q("Submit button"),successMessage:je("Confirmation message")},resolveFields:(e,{fields:t})=>Le(t,hIe(t))};import{slugify as kIe}from"efficient-shell/format";import{EyeIcon as SIe,LinkIcon as TIe,EyeOffIcon as e2t}from"efficient-easel/icons";import{group as hv}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as EIe}from"efficient-easel/screen/lib/document/device-fields";import{useEffect as rV,useState as bIe}from"react";import{useRootIsDark as qvt}from"efficient-shell/theme";import{jsx as jvt}from"react/jsx-runtime";var Yvt=[{}];function s4({ownerId:e,ownerType:t,Template:o,message:n,children:r}){return jvt(Ge,{ownerId:e,ownerType:t,slot:xs,Template:o,rows:Yvt,fallback:n,children:a=>r(a)})}import{Fragment as Qvt,jsx as fo,jsxs as Vl}from"react/jsx-runtime";var Ud={bodySmall:"text-[length:var(--size-body,14px)]",body:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]",labelXl:"text-[length:var(--size-label,14px)]"},O0={label:"Label",value:"Value",sub:"Sub line"};function Xvt(e,t){return e.map((o,n)=>t?{...o,at:n,label:o.label||u(O0.label),value:o.value||u(O0.value),sub:o.sub||u(O0.sub)}:{...o,at:n}).filter(o=>!o.hidden)}function wIe(e,t){return t?{[e_]:t_("channels",e.at)}:{}}function xIe(e){if(e.href)return e.href;let t=(e.value??"").trim();if(t.includes("@"))return`mailto:${t}`;if(/^\+?[\d\s().-]{6,}$/.test(t))return lu(t)}function Zvt(e){let t=[],o=new Map;for(let n of e){if(!n.groupId){t.push(n);continue}let r=n.value.trim().toLowerCase(),a=o.get(r);if(a)a.label=`${a.label} \xB7 ${n.label}`;else{let i={...n};o.set(r,i),t.push(i)}}return t}function Jvt(e,t,o){let n=r=>String(r??"").trim().toLowerCase();for(let r of e?.fields??[]){if(r.type!=="select"||!Array.isArray(r.options))continue;let a=r.options.map(String);if(!t.some(s=>a.some(l=>n(l)===n(s.title))))continue;let i=s=>n(s===su?o:t.find(l=>l.id===s)?.title);return{key:r.key,optionFor:s=>a.find(l=>n(l)===i(s)&&i(s)!==""),idFor:s=>{let l=t.find(d=>n(d.title)===n(s));return l?l.id:o&&n(s)===n(o)?su:void 0}}}return null}var yIe=`border-b border-line bg-transparent py-4 font-display ${Ud.bodyLarge} tracking-[0.01em] text-fg outline-none transition-colors focus:border-accent`;function aV({routingNumber:e,routingTagline:t,groups:o,formNumber:n,formHeading:r,metaLines:a,showOther:i=!0,otherLabel:s="Other",otherNoteTitle:l,otherNoteBody:d,buttonText:c,consent:p,channels:m,formSlug:f,form:g,editing:h,showSent:w,initialActiveId:b,onActiveChange:k,reasonExtras:x,omitHead:v=!1,templates:y,pads:S}){let E=he(),T=[...o.map(ie=>ie.id),...i?[su]:[]],_=b&&T.includes(b)?b:T[0]??su,[P,I]=bIe(_);rV(()=>{T.includes(P)||I(T[0]??su)},[T.join("|")]),rV(()=>{b&&T.includes(b)&&I(b)},[b]);let D=Hc(f,g),F=lf({form:D,formSlug:f,editing:h}),A=D?fo("div",{className:`border border-accent bg-accent/[0.08] p-8 font-display ${Ud.body} leading-[1.6] text-fg-dim`,children:ux(D,"Thanks \u2014 we've received your message.")}):null,N=Jvt(D,o,i?s:void 0),B=ie=>{I(ie),K(null);let Ae=N?.optionFor(ie);N&&Ae!==void 0&&F.set(N.key,Ae),k?.(ie)};rV(()=>{if(!N||F.valueOf(N.key))return;let ie=N.optionFor(P);ie!==void 0&&F.set(N.key,ie)},[N?.key]);let[Y,K]=bIe(null),X=Xvt(m??[],!!h),Z=ie=>Y!==null?!ie.groupId&&ie.value===Y:ie.groupId===P,V=D===void 0,j=!!D||!!h,J=!qvt({whenUnset:!0}),C=X_(),O=v&&C?Woe(C):null,G=O?`${O.className} `:"",$=o.length>0||!!h,H=ie=>{B(ie),typeof window<"u"&&window.matchMedia("(max-width: 1100px)").matches&&document.getElementById("contact-form")?.scrollIntoView({behavior:wd(),block:"start"})},ee=fo("div",{className:"sf-card grid grid-cols-4 gap-[2px] border border-line bg-line max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1",children:fo(Fo,{children:fo(Ge,{ownerId:y?.ownerId??"",ownerType:"ContactRouting",slot:gd,Template:y?.topic,rows:o.map(nn),items:o,states:o.map(ie=>({selected:P===ie.id})),actions:h?void 0:o.map(ie=>({press:()=>H(ie.id)})),pressTitles:y?.pressTitles?.topic,fallback:null,wrapCopy:ak,children:ie=>ie})})}),se=[...o.map(ie=>({id:ie.id,title:ie.title})),...i?[{id:su,title:s}]:[]],pe=VP(),Ne=Ln(),ce=j||X.length>0,me=S?ce?S.first:S.firstOnly:null,Ce=S?$?S.second:S.secondOnly:null,Pe=Vl(yt,{className:"border-b border-line py-[60px]",style:J?void 0:{background:"var(--section-bg)"},children:[(e||t)&&Vl("div",{className:"mb-6 flex items-center gap-6 border-b border-line pb-6",children:[e&&fo(lt,{text:e}),t&&fo("span",{className:`font-display ${Ud.bodySmall} uppercase tracking-[0.04em] text-fg-dim`,children:L(t)})]}),ee]});return Vl(Qvt,{children:[$&&(v?fo(z,{as:"section",...Te(`${G}border-b border-line bg-surface pt-6 pb-[60px]`,me?.atTop,O?.style),children:ee}):me?fo(PO,{pad:me,children:Pe}):Pe),ce&&Ne.scope(fo("section",{id:"contact-form",...Te(to(`${G}${v?"bg-bg ":""}scroll-mt-[80px] border-b border-line py-20 max-view-desktop:py-[60px]`,pe)??"",Ce?.atTop,O?.style),...$?{}:Ne.attrs,children:Vl("div",{className:[v?"grid gap-20 max-view-desktop:grid-cols-1 max-view-desktop:gap-[60px]":fe("mx-auto grid max-w-[var(--sf-site-width,1600px)] gap-20 px-[var(--sf-site-gutter,40px)] max-view-desktop:grid-cols-1 max-view-desktop:gap-[60px] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",E),j&&X.length>0?"grid-cols-[1.3fr_1fr]":"grid-cols-1"].join(" "),children:[j&&Vl("div",{children:[Vl("div",{className:"mb-8 flex items-end justify-between gap-6 border-b border-line pb-6",children:[Vl("div",{children:[n&&fo("div",{className:`pb-2 font-mono ${Ud.labelLarge} uppercase tracking-[0.3em] text-accent`,children:L(n)}),r&&fo("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,4vw,56px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:te(r,!0)})]}),!!(a&&a.length)&&fo("div",{className:`text-right font-mono ${Ud.labelSmall} uppercase leading-[1.8] tracking-[0.22em] text-fg-dim max-[700px]:text-left`,children:a.map((ie,Ae)=>fo("div",{children:ie},Ae))})]}),D?F.done||O5(w,h)?fo(s4,{ownerId:y?.ownerId??"",ownerType:"ContactRouting",Template:y?.thanks,message:A,children:ie=>Vl("div",{className:"flex flex-col gap-6",children:[A,ie]})}):Vl("form",{className:"grid grid-cols-2 gap-5 max-[700px]:grid-cols-1",onSubmit:F.handleSubmit,children:[D.fields.map(ie=>fo($r,{label:ie.label,required:ie.required,className:ie.type==="textarea"||ie.type==="checkbox"?"col-span-2 max-[700px]:col-span-1":void 0,children:fo(df,{field:ie,value:F.valueOf(ie.key),onChange:Ae=>{F.set(ie.key,Ae);let At=N&&ie.key===N.key?N.idFor(Ae):void 0;At!==void 0&&(I(At),K(null),k?.(At))},className:ie.type==="textarea"?`${yIe} min-h-[140px] resize-y leading-[1.5]`:ie.type==="checkbox"?"size-4 self-start accent-accent":yIe})},ie.key)),Vl("div",{className:"col-span-2 flex flex-col gap-2 max-[700px]:col-span-1",children:[fo(Vh,{required:!0,children:"Reason"}),fo("div",{className:"mt-1 flex flex-wrap gap-2",children:fo(Fo,{children:fo(Ge,{ownerId:y?.ownerId??"",ownerType:"ContactRouting",slot:bd,Template:y?.reason,rows:se.map(ie=>nn({title:ie.title})),states:se.map(ie=>({selected:P===ie.id})),actions:h?void 0:se.map(ie=>({press:()=>B(ie.id)})),pressTitles:y?.pressTitles?.reason,fallback:null,children:ie=>ie})})})]}),x?.(P),P===su&&(l||d)&&Vl("div",{className:"sf-card col-span-2 flex flex-col gap-2 border border-line bg-bg/40 p-5 max-[700px]:col-span-1",children:[l&&fo("span",{className:`font-mono ${Ud.labelSmall} uppercase tracking-[0.24em] text-accent`,children:L(l)}),d&&Bt(d).map((ie,Ae)=>fo("p",{className:`font-display ${Ud.body} leading-[1.55] text-fg-dim`,children:L(ie)},Ae))]}),fo(fx,{value:F.honeypot,onChange:F.setHoneypot}),F.error&&fo("p",{role:"alert",className:`col-span-2 font-mono ${Ud.labelSmall} uppercase tracking-[0.18em] text-alert max-[700px]:col-span-1`,children:F.error}),Vl("div",{className:"col-span-2 mt-5 flex flex-wrap items-center justify-between gap-6 border-t border-line pt-6 max-[700px]:col-span-1 max-[700px]:flex-col max-[700px]:items-stretch",children:[p&&fo("span",{className:`max-w-[380px] font-mono ${Ud.labelSmall} uppercase leading-[1.6] tracking-[0.18em] text-fg-dim`,children:L(p)}),fo("button",{type:h?"button":"submit",disabled:F.submitting,className:`cursor-pointer bg-btn px-8 py-5 font-mono ${Ud.labelXl} uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg disabled:cursor-wait disabled:opacity-60 max-[700px]:w-full`,children:F.submitting?"Sending\u2026":c?jo(c):"Send Message \u2192"})]})]}):fo("p",{className:`font-mono ${Ud.labelSmall} uppercase tracking-[0.22em] text-fg-dim`,children:V?u("Loading form\u2026"):u("Choose a form in the inspector, under Message form \u2014 until then this column is hidden on the live page and no message can be sent.")})]}),X.length>0&&fo("aside",{className:"flex flex-col gap-0 max-view-desktop:hidden",children:fo(Fo,{children:fo(Ge,{ownerId:y?.ownerId??"",ownerType:"ContactRouting",slot:gl,Template:y?.channel,rows:X.map(ie=>nn({label:ie.label,value:ie.value,sub:ie.sub??"",href:xIe(ie)??""})),items:X,states:X.map(ie=>({selected:Z(ie)})),copyAttrs:({index:ie})=>wIe(X[ie],h),actions:h?void 0:X.map(ie=>ie.groupId?{press:()=>{},disabled:!0}:{press:()=>K(ie.value)}),pressTitles:y?.pressTitles?.channel,fallback:null,children:ie=>ie})})}),X.length>0&&(()=>{let ie=Zvt(X);return fo("div",{"data-contact-phone-list":!0,className:"hidden flex-col gap-0 max-view-desktop:flex",children:fo(Fo,{children:fo(Ge,{ownerId:y?.ownerId??"",ownerType:"ContactRouting",slot:gl,Template:y?.channel,rows:ie.map(Ae=>nn({label:Ae.label,value:Ae.value,sub:Ae.sub??"",href:xIe(Ae)??""})),items:ie,copyAttrs:({index:Ae})=>wIe(ie[Ae],h),fallback:null,children:Ae=>Ae})})})})()]})}))]})}var iV={[gd]:{type:"slot",allow:[...A5]},[bd]:{type:"slot",allow:[...A5]},[gl]:{type:"slot",allow:[...A5]},[xs]:{type:"slot",allow:[...C5]}},vIe={ownPad:zA,label:"Contact Form",fields:iV,defaultProps:{routingNumber:Yt.routingNumber,routingTagline:Yt.routingTagline,groups:Yt.groups,formSlug:"",formNumber:Yt.formNumber,formHeading:Yt.formHeading,metaItems:Yt.metaLines.map(e=>({text:e})),showOther:Yt.showOther,otherLabel:Yt.otherLabel,otherNoteTitle:Yt.otherNoteTitle,otherNoteBody:Yt.otherNoteBody,buttonText:Yt.buttonText,consent:Yt.consent,channels:Yt.channels}};import{jsx as gv}from"react/jsx-runtime";var t2t=["routingNumber","routingTagline"],PIe={fields:Le({...iV,_gTop:hv("Routing groups"),routingNumber:U("Section number",Yt.routingNumber),routingTagline:U("Eyebrow",Yt.routingTagline),groups:{type:"array",label:"Groups",arrayFields:{eyebrow:Q("Eyebrow"),title:je("Title"),copy:je("Body"),response:Q("Response time")},getItemSummary:e=>e?.title||e?.eyebrow||u("Group")},_gForm:hv("Message form"),formSlug:Fc(),formNumber:U("Section number",Yt.formNumber),formHeading:q("Heading",Yt.formHeading),metaItems:Gr("Meta lines",gv(ua,{noun:"meta"}),"Encrypted in transit","verbatim"),_gOther:hv("\u201COther\u201D reason"),showOther:oe("Show \u201COther\u201D reason",Yt.showOther,gv(SIe,{})),otherLabel:Q("\u201COther\u201D chip label",Yt.otherLabel),otherNoteTitle:U("\u201COther\u201D note title",Yt.otherNoteTitle),otherNoteBody:q("\u201COther\u201D note body",Yt.otherNoteBody),_gSubmit:hv("Submit button"),buttonText:Q("Submit button",Yt.buttonText),consent:q("Consent line",Yt.consent),_gChannels:hv("Contact info"),channels:{type:"array",label:"Channels",arrayFields:{label:Q("Label",O0.label),value:Q("Value",O0.value),href:Pr(Q("Link")),sub:Q("Sub line",O0.sub),groupId:ne("Link to group",gv(TIe,{}),[{label:"\u2014 Not linked \u2014",value:""},...Yt.groups.map(e=>({label:e.title,value:e.id}))],""),hidden:oe("Hidden",!1,gv(e2t,{}))},getItemSummary:e=>{let t=e?.label||e?.value||u("Channel");return e?.hidden?u("{name} \xB7 hidden",{name:t}):t}},_gPreview:EIe("desktop",hv(yu)),[Gu]:EIe("desktop",ne("Show",gv(SIe,{}),[...R5],"form"))},[[t2t,Ia]]),resolveData:e=>{let t=e.props.groups??[];if(!t.some(r=>!r?.id))return e;let o=new Set,n=t.map((r,a)=>{if(r?.id)return o.add(r.id),r;let i=kIe(r?.title)||`group-${a+1}`;for(;o.has(i);)i=`${i}-${a+1}`;return o.add(i),{...r,id:i}});return{...e,props:{...e.props,groups:n}}},resolveFields:(e,{fields:t})=>{let o=e.props.groups??[],n=[{label:"\u2014 Not linked \u2014",value:""},...o.map((i,s)=>({label:i?.title||i?.eyebrow||u("Group {n}",{n:s+1}),value:i?.id||kIe(i?.title)||`group-${s+1}`}))],r=t,a=r.channels;return a?.type==="array"&&a.arrayFields&&(r.channels={...a,arrayFields:{...a.arrayFields,groupId:ne("Link to group",gv(TIe,{}),n,"")}}),t}};var _Ie={fields:{title:q("Heading","Find a dealer")}};import{GlobeIcon as o2t,SearchIcon as n2t}from"efficient-easel/icons";var CIe={terms:"https://efficient-erp.com/terms",privacy:"https://efficient-erp.com/privacy"},l4=[{label:"Sign-up",value:"create"},{label:"Find my workspace",value:"find"}],eE="create",RIe={label:"Sign-up Form",defaultProps:{mode:eE,product:"",productName:"",freeLine:rt.freeLine,zone:"",askCountry:!1,termsHref:CIe.terms,privacyHref:CIe.privacy,findHref:"/find"}};import{jsx as OIe}from"react/jsx-runtime";var NIe={fields:{mode:ne("Shows",OIe(n2t,{}),l4,eE),product:U("Product key","crm"),productName:U("Product name","The product's name"),freeLine:U("Free plan line",rt.freeLine),zone:U("Workspace domain","This website's own"),askCountry:oe("Ask for country and currency",!1,OIe(o2t,{})),termsHref:Ve("Terms"),privacyHref:Ve("Privacy policy"),findHref:Ve("Find my workspace")}};import{useEffect as r2t,useRef as a2t,useState as i2t}from"react";import{jsx as c2t}from"react/jsx-runtime";var s2t=12,d4=null,LIe=null;function l2t(e=!1){let t=In();if((e||LIe!==t)&&(d4=null),!d4){let o=fa();LIe=t,d4=Fe.listBlogPosts(o,{visibleOnly:!0,siteId:t}).catch(()=>null)}return d4}var d2t=e=>yce($R(e));function N0({value:e,onChange:t,snapshotCount:o=s2t}){let[n,r]=i2t("idle"),a=Array.isArray(e),i=a?e.length:0,s=a2t(!0),l=p=>{r("loading"),l2t(p).then(m=>{if(!s.current)return;if(m===null){r("error");return}r("idle");let f=m.slice(0,o).map(d2t);Tg(f,e??null)&&t(f)})};r2t(()=>(s.current=!0,l(!1),()=>{s.current=!1}),[]);let d=u("Storefront \u2192 Blog"),c=n==="loading"?u("Syncing from {place}\u2026",{place:d}):n==="error"?u("Couldn\u2019t reach {place}.",{place:d}):a?ar("Auto-synced from {place} \xB7 {n} post","Auto-synced from {place} \xB7 {n} posts",i,{place:d}):u("Linking to {place}\u2026",{place:d});return c2t(ll,{status:n,statusText:c,onRefresh:()=>l(!0),busy:n==="loading",spaced:!1,hint:u("Auto-refreshes from the most-recent visible posts each time you open the editor. Set how many appear with \u201CPosts to display\u201D.")})}import{Children as k2t,useContext as S2t,useState as WIe}from"react";import{createContext as p2t}from"react";import{jsx as m2t}from"react/jsx-runtime";var sV=p2t({starts:{}});function lV({starts:e,posts:t,children:o}){return m2t(sV.Provider,{value:{starts:e,posts:t},children:o})}import{htmlToMarkupRows as AIe}from"efficient-easel/markup-from-html";var c4="blog-post",IIe="body",u2t=e=>({nodeType:3,nodeName:"#text",textContent:e,childNodes:[]}),f2t=/\n[ \t]*\n\s*/;function FIe(e){for(let t of Array.from(e.childNodes)){if(t.nodeType!==3){FIe(t);continue}let o=(t.textContent??"").split(f2t);if(o.length<2)continue;let n=t.ownerDocument;n&&(o.forEach((r,a)=>{a>0&&e.insertBefore(n.createElement("br"),t),e.insertBefore(n.createTextNode(r),t)}),e.removeChild(t))}}function h2t(e){let t=HJ(e);return FIe(t),t}function g2t(e){return e.length<60&&/^[A-Z][^.]*\.$/.test(e.trim())}function b2t(e){return AIe(u2t(e.plain),NF)[0]?.markup??""}function BIe(e){return typeof e!="string"||!e.trim()?[]:AIe(h2t(e),NF).map(t=>g2t(t.plain)?{heading:b2t(t),paragraph:""}:{heading:"",paragraph:t.markup})}function HIe(){return[{heading:u("A subhead."),paragraph:""},{heading:"",paragraph:u("Each paragraph of the post's body is drawn by the card template.")},{heading:"",paragraph:u("Another paragraph.")}]}import{VIEW_TIERS as w2t}from"efficient-easel/screen/lib/content/view-tiers";var x2t="Events",L0=3,rh="count";function dV(e){return e.showAll?Number.POSITIVE_INFINITY:typeof e.limit=="number"&&e.limit>0?e.limit:L0}function y2t(e,t,o){return e.layout===rh||o[t]?0:dV(e)}function DIe(e){let t=Q2(e),o=new Map;for(let{node:n,order:r}of t){let a=n.props?.[bee];wee(n.type)&&Array.isArray(a)&&o.set(a,`group ${r}`)}return t.filter(({node:n})=>n.type===x2t&&dt(n.props??{})==="").map(({node:n,lists:r})=>({id:String(n.props?.id??""),props:n.props??{},chain:r.map(a=>o.get(a)).find(a=>a!==void 0)??"page"}))}function v2t(e){let t={},o=new Map;for(let{id:n,props:r,chain:a}of DIe(e)){let i=o.get(a),s=r.continueList===!0&&i!==void 0,l=n_(r),d=s?i.from:n,c=s?i.skip:r.skipCurrentPost===!0,p={},m={};for(let f of w2t)m[f]=s?i.ends[f]:0,p[f]=m[f]+y2t(r,f,l);s&&(t[n]={...m,from:d,...c?{skipCurrentPost:!0}:{}}),o.set(a,{ends:p,from:d,skip:c})}return t}function MIe(e,t){let o=new Set;for(let n of DIe(e)){if(n.id===t)return o.has(n.chain);o.add(n.chain)}return!1}function zIe(e){let t=v2t(e),o=new Map(kc(e).map(r=>[String(r.props?.id??""),r.props?.posts])),n={};for(let[r,{from:a}]of Object.entries(t)){let i=o.get(a);Array.isArray(i)&&(n[r]=i)}return{starts:t,posts:n}}import{VIEW_TIERS as mV}from"efficient-easel/screen/lib/content/view-tiers";import{hiddenKeyOf as T2t}from"efficient-easel/screen/lib/content/view-hide";import{Fragment as a1t,jsx as Ye,jsxs as ki}from"react/jsx-runtime";var E2t=4;function VIe(e){return aI(e,E2t)}function YIe(e){if(!e||typeof e!="object"||Array.isArray(e))return;let t={};for(let[o,n]of Object.entries(e))if(o.trim()){if(typeof n=="string")n.trim()&&(t[o]=n.trim());else if(Array.isArray(n)){let r=n.filter(a=>typeof a=="string"&&!!a.trim()).map(a=>a.trim());r.length&&(t[o]=r)}}return Object.keys(t).length?t:void 0}function jIe(e,t){let o=e.facets?.[t];return o===void 0?[]:typeof o=="string"?[o]:o}var P2t=new Intl.Collator("en",{numeric:!0,sensitivity:"base"});function _2t(e){let t=[],o=new Map;for(let n of e)for(let r of Object.keys(n.facets??{})){o.has(r)||(t.push(r),o.set(r,new Set));for(let a of jIe(n,r))o.get(r).add(a)}return t.map(n=>({label:n,values:[...o.get(n)].sort(P2t.compare)}))}function C2t(e,t){return Object.entries(t).every(([o,n])=>n===""||jIe(e,o).includes(n))}var qIe="featured",bv="tabs",XIe="portrait",ah="spread",ZIe=[{label:"Even grid",value:"even"},{label:"Featured first",value:qIe},{label:"Tabs",value:bv},{label:"Photo cards",value:XIe},{label:"Staggered spread",value:ah},{label:"Count",value:rh}],R2t=[XIe,ah],JIe="even",Im={min:2,max:11,step:1,fallback:7,unit:"of 12"},O2t=n5,N2t=55,L2t=h1;function A2t(e){let t=typeof e=="number"?e:Number.parseFloat(String(e??"")),o=Number.isFinite(t)?Math.min(Im.max,Math.max(Im.min,Math.round(t))):Im.fallback;return`${o}fr ${12-o}fr`}var UIe={1:"grid-cols-1",2:"grid-cols-2 max-view-wide:grid-cols-1",3:"grid-cols-3 max-view-wide:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-view-wide:grid-cols-1"},I2t={2:"grid-cols-2",3:"grid-cols-3 max-view-wide:grid-cols-2",4:"grid-cols-4 max-view-desktop:grid-cols-3 max-view-wide:grid-cols-2"},F2t={2:"grid-cols-2 max-view-wide:grid-cols-1",3:"grid-cols-3 max-view-wide:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-3 max-view-wide:grid-cols-1"};function QIe(e,t){return{key:e.slug,title:e.title??"",excerpt:e.excerpt??"",cover:e.cover??"",meta:e.meta??"",dateLabel:e.dateLabel??"",href:e.href||(t?"#":Fb(e.slug))}}function B2t(e,t){return{...QIe(e,t),tags:(e.tags??[]).map(o=>({label:o}))}}var GIe=new WeakMap,H2t={className:"hidden"},D2t={className:ii};function $Ie(e,t){let o=e.blockIds[0],n=e;function r(a){let i=Da(),s=t&&i?.index===0;return Ye(n,{...a,cell:l=>l===o===s?D2t:H2t})}return Object.assign(r,{blockCount:1,blockIds:e.blockIds})}function M2t(e,t){let o=e;if(typeof o!="function"||(o.blockCount??0)<2||!Array.isArray(o.blockIds))return e;let n=GIe.get(o);return n||(n={lead:$Ie(o,!0),rest:$Ie(o,!1)},GIe.set(o,n)),t?n.lead:n.rest}var z2t="Find by name",W2t="Nobody by that name.",U2t="Nobody matches.",G2t="Any",$2t="No posts in this category yet.",K2t="All posts",V2t=Fb("").replace(/\/$/,"");function Y2t(e){return typeof e=="string"?e.trim():""}function j2t(){return ki("div",{className:"flex min-h-[40vh] flex-col items-center justify-center gap-6 text-center font-mono text-[length:var(--size-label,14px)] uppercase text-fg-dim",children:[Ye("p",{role:"status",className:"tracking-[0.2em]",children:$2t}),ki(Tt,{href:V2t,className:"inline-flex min-h-11 items-center tracking-[0.22em] hover:text-fg",children:[K2t," ",Ye("span",{className:"text-accent",children:"\u2192"})]})]})}function q2t(e,t){let o=r=>r.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLocaleLowerCase().trim(),n=o(t);return n===""||o(e).includes(n)}function KIe({typed:e,onType:t,wide:o=!1}){return ki("label",{className:`flex max-w-[360px] flex-col gap-1.5${o?" w-full":""}`,children:[Ye("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-fg-dim",children:z2t}),Ye("input",{type:"search",value:e,onChange:n=>t(n.target.value),autoComplete:"off",className:"rounded-[var(--sf-button-radius,6px)] border border-line bg-bg px-4 py-2.5 text-[length:var(--size-body,15px)] text-fg outline-none focus:border-accent"})]})}function e3e({tags:e}){return Ye("ul",{"aria-label":"Details",className:"flex gap-1.5 overflow-hidden",children:e.map((t,o)=>Ye("li",{className:"shrink-0 rounded-[var(--sf-button-radius,4px)] border border-line px-2 py-0.5 text-[length:var(--size-label,12px)] text-fg-dim",children:t},`${t}-${o}`))})}function X2t({card:e,scaffold:t,lower:o=!1}){return ki(Tt,{href:e.href||"#",className:`sf-card group relative isolate flex aspect-[3/4] overflow-hidden bg-surface${o?" min-[801px]:mt-16":""}`,"aria-disabled":t||void 0,tabIndex:t?-1:void 0,children:[Ye("div",{className:"absolute inset-0 transition-transform duration-700 group-hover:scale-[1.03] motion-reduce:transition-none motion-reduce:group-hover:scale-100",children:Ye(co,{label:`card-${e.slug}`,src:e.cover||void 0,sizes:"(max-width: 800px) 50vw, 25vw"})}),Ye("div",{"aria-hidden":!0,className:"absolute inset-0 z-0",style:{background:"linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--bg) 88%, transparent) 100%)"}}),e.meta&&Ye("span",{className:"absolute left-3 top-3 z-[1] rounded-[var(--sf-button-radius,999px)] bg-bg/85 px-2.5 py-1 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.16em] text-accent",children:L(e.meta)}),ki("div",{className:"relative z-[1] mt-auto flex w-full flex-col gap-1 p-4 max-view-wide:p-3",children:[Ye("h3",{className:"font-heading3 text-[length:var(--size-headingSmall,24px)] leading-[1.1] tracking-[-0.01em] text-fg",children:te(e.title,!1)}),(e.publishedAt||e.dateLabel)&&Ye("p",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.16em] text-accent",children:e.publishedAt?Ye(Yi,{at:e.publishedAt}):L(e.dateLabel??"")}),e.tags&&e.tags.length>0&&Ye(e3e,{tags:e.tags}),e.excerpt&&Ye("p",{className:"line-clamp-2 text-[length:var(--size-body,14px)] leading-[1.45] text-fg-dim",children:L(e.excerpt)})]})]})}function Z2t({cards:e,scaffold:t}){return Ye("nav",{"aria-label":"Days",className:xI.nav,children:Ye("ul",{className:xI.list,children:e.map((o,n)=>{let r=!!o.meta;return Ye("li",{children:ki(Tt,{href:o.href||"#","aria-current":r?"page":void 0,"aria-disabled":t||void 0,tabIndex:t?-1:void 0,className:xI.tab(r),children:[Ye("span",{className:"font-heading3 text-[length:var(--size-body,15px)] leading-[1.2]",children:te(o.title,!1)}),o.excerpt&&Ye("span",{className:`font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] ${r?"opacity-80":"text-fg-dim"}`,children:L(o.excerpt)})]})},`${o.slug}-${n}`)})})})}function J2t({count:e,words:t,href:o}){let n=ki("span",{className:"inline-flex items-baseline gap-3",children:[Ye("span",{className:"font-heading text-[length:var(--size-headingLarge,64px)] leading-none text-accent",children:e}),t!==void 0&&Ye("span",{className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg",children:t})]});return o?Ye(Tt,{href:o,className:"inline-flex hover:opacity-85",children:n}):n}var cV="[&>[data-sf-repeat]>*]:h-full [&>[data-sf-repeat]>*>*]:h-full",Q2t="[&>[data-sf-repeat]]:h-full [&>[data-sf-repeat]>*]:h-full [&>[data-sf-repeat]>*>*]:h-full",e1t=`relative z-[2] bg-bg ${rpe}`,t1t={top:32,bottom:32};function uV(e){let{starts:t,posts:o}=S2t(sV),n=t[e.ownerId??""];if(!n)return Ye(pV,{...e,start:0});let r=o?.[e.ownerId??""]??e.posts,a=n.skipCurrentPost===!0,i=o1t(n);return i.length===1?Ye(pV,{...e,posts:r,start:i[0].start,skipCurrentPost:a}):Ye(a1t,{children:i.map(({start:s,views:l})=>{let d=n1t(l,e.viewHidden);return vQ(t3e(d))?null:Ye(LJ.Provider,{value:r1t(d),children:Ye(pV,{...e,posts:r,start:s,skipCurrentPost:a})},s)})})}function o1t(e){let t=[];for(let o of mV){let n=t.find(r=>r.start===e[o]);n?n.views.push(o):t.push({start:e[o],views:[o]})}return t}var n1t=(e,t)=>Object.fromEntries(mV.map(o=>[o,!e.includes(o)||!!t?.[o]])),t3e=e=>Object.fromEntries(mV.map(t=>[T2t(t),e[t]])),r1t=e=>AJ(u2(e),kQ(t3e(e)),{sectionClassName:u2(e,{atSectionLine:!0}),line:"section"});function pV({start:e,num:t,title:o,link:n,posts:r,servedCategory:a,columns:i,limit:s,showAll:l=!1,editing:d=!1,cardImage:c,gap:p,gapPhone:m,layout:f,featuredWidth:g,listCover:h=!0,featuredDarken:w,omitHead:b=!1,sample:k,nameFilter:x=!1,pads:v,template:y,ownerId:S="",skipCurrentPost:E=!1}){let T=he(),[_,P]=WIe(""),[I,D]=WIe({}),F=Ka("ev"),A=Ih(c4),N=E&&A?(r??[]).filter(Re=>Re.slug!==A.key):r??[],B=e>0?N.slice(e):N,Y=l?B.length:dV({limit:s}),K=B.slice(0,Y),X=d&&K.length===0;if(K.length===0&&!d){if(!Y2t(a))return null;let Re=Ec(v,pi,{noTop:b,nonNegative:!0});return Ye(z,{as:"section",...Re.attrs,className:hl(b?x1:w1,Re),style:Re.style,children:Ye("div",{className:fe(od,T),children:Ye(j2t,{})})})}let Z=l?L0:Y,V=X?k?.length?k.slice(0,l?k.length:Z):Array.from({length:Z},(Re,Dt)=>({slug:`placeholder-${Dt}`,title:u("Blog post title"),excerpt:u("A short summary of the post appears here."),cover:"",meta:u("Journal"),dateLabel:u("Date")})):K,j=Ur("Events",p,"both",m),J=f===qIe&&V.length>1,C=A2t(g),O=f===bv,G=f===rh,$=R2t.includes(f??""),H=x&&!O&&!G&&!J,ee=H?_2t(V):[],se=H?V.filter(Re=>q2t(Re.title,_)&&C2t(Re,I)):V,pe=G?Ec(v,t1t,{nonNegative:!0}):Ec(v,pi,{noTop:b,nonNegative:!0}),Ne=pe.style,ce=!d&&Bw(t,o,n?.text),Ce=(y?.blockCount??0)>0?F2t:I2t,Pe=f===ah?Ce[3]:Ce[Math.min(4,Math.max(2,i??3))]??Ce[3],ie=UIe[Math.min(4,Math.max(1,i??3))]??UIe[3],Ae=O||J||f===ah?"":Hu(F,$?Pe:ie,{cards:se.length}),At=(Re,Dt,we)=>Ye(Ge,{ownerId:S,ownerType:"Events",Template:M2t(y,J),rows:Re.map($e=>QIe($e,X)),items:Re.map($e=>B2t($e,X)),fallback:Dt,children:$e=>we(k2t.toArray($e))});return G?Ye(z,{as:"section",...pe.attrs,className:hl(e1t,pe),style:Object.keys(Ne).length?Ne:void 0,children:Ye("div",{className:fe(od,T),children:Ye(J2t,{count:V.length,words:b||o===void 0?void 0:te(o,!1),href:b?void 0:n?.href})})}):Ye(z,{as:"section",...pe.attrs,className:hl(b?x1:w1,pe),style:{...sl(c),...Ne},children:ki("div",{className:fe(od,T),children:[b||ce?null:Ye(Mt,{num:t!==void 0?L(t):void 0,title:o!==void 0?te(o,!1):void 0,link:n?{text:L(n.text),href:n.href}:void 0}),H&&ki("div",{className:"mb-6 flex flex-col gap-2",children:[ee.length===0?Ye(KIe,{typed:_,onType:P}):ki("div",{className:"flex flex-wrap items-end gap-3",children:[Ye(KIe,{typed:_,onType:P,wide:!0}),ee.map(({label:Re,values:Dt})=>ki("label",{className:"flex min-w-[140px] flex-col gap-1.5 max-view-wide:flex-1",children:[Ye("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-fg-dim",children:Re}),ki("select",{value:I[Re]??"",onChange:we=>D($e=>({...$e,[Re]:we.target.value})),className:"rounded-[var(--sf-button-radius,6px)] border border-line bg-bg px-4 py-2.5 text-[length:var(--size-body,15px)] text-fg outline-none focus:border-accent",children:[Ye("option",{value:"",children:G2t}),Dt.map(we=>Ye("option",{value:we,children:we},we))]})]},Re))]}),se.length===0&&Ye("p",{role:"status",className:"text-[length:var(--size-body,14px)] text-fg-dim",children:ee.length===0?W2t:U2t})]}),Ae&&Ye("style",{children:Ae}),O?Ye(Z2t,{cards:V,scaffold:X}):$?At(se,Ye("div",{className:`${F} sf-card-grid grid${j.className} ${Pe}`,style:j.style,children:se.map((Re,Dt)=>Ye(X2t,{card:Re,scaffold:X,lower:f===ah&&Dt%3===1},`${Re.slug}-${Dt}`))}),Re=>Ye("div",{className:`${F} sf-card-grid grid${j.className} ${Pe} ${cV}`,style:j.style,children:f===ah?Re.map((Dt,we)=>Ye("div",{className:`${Q2t}${we%3===1?" view-wide:mt-16":""}`,children:Dt},we)):Re})):J?At(V,ki("div",{className:`sf-card-grid grid grid-cols-[var(--sf-events-split)] max-view-wide:grid-cols-1${j.className}`,style:{...j.style,"--sf-events-split":C},children:[Ye(Gg,{post:V[0],href:V[0].href,scaffold:X,layout:"cover",darken:w??N2t,darkenStyle:L2t,placement:O2t},`${V[0].slug}-0`),Ye("div",{className:`grid auto-rows-min${j.className}`,style:j.style,children:V.slice(1).map((Re,Dt)=>Ye(Gg,{post:Re,href:Re.href,scaffold:X,showCover:h},`${Re.slug}-${Dt+1}`))})]}),Re=>ki("div",{className:`sf-card-grid grid grid-cols-[var(--sf-events-split)] max-view-wide:grid-cols-1${j.className} ${cV}`,style:{...j.style,"--sf-events-split":C},children:[Re[0],Ye("div",{className:`grid auto-rows-min${j.className}`,style:j.style,children:Re.slice(1)})]})):At(se,Ye("div",{className:`${F} sf-card-grid grid${j.className} ${ie}`,style:j.style,children:se.map((Re,Dt)=>Re.tags&&Re.tags.length>0?ki("div",{className:"flex flex-col gap-2",children:[Ye(Gg,{post:Re,href:Re.href,scaffold:X}),Ye(e3e,{tags:Re.tags})]},`${Re.slug}-${Dt}`):Ye(Gg,{post:Re,href:Re.href,scaffold:X},`${Re.slug}-${Dt}`))}),Re=>Ye("div",{className:`${F} sf-card-grid grid${j.className} ${ie} ${cV}`,style:j.style,children:Re}))]})})}import{LayoutIcon as i1t,ColumnsIcon as s1t,WidthIcon as l1t,ImageIcon as d1t,OpacityIcon as c1t,ListIcon as p1t,HashIcon as m1t,SearchIcon as u1t,ContinueListIcon as f1t,EyeOffIcon as h1t}from"efficient-easel/icons";import{group as hV}from"efficient-easel/screen/lib/document/box-fields";var ih={num:W.sectionNumber,title:"Section title",link:W.viewAll},fV={template:Sn()},o3e={label:"Latest Posts",innerPadding:pi,fields:fV,defaultProps:{num:"",title:"",linkText:"",linkHref:"/journal",columns:3,limit:L0,showAll:!1}};import{jsx as gp}from"react/jsx-runtime";var g1t=50,n3e={not:{field:"template",set:!0}},r3e={fields:Le({_gContent:hV("Content"),num:U("Number",ih.num),title:q("Heading",ih.title),linkText:U("Button",ih.link),linkHref:Ve("Link"),dataSource:oo("Cards from","Blog posts"),_gPosts:hV("Blog posts"),posts:Uo(N0,{snapshotCount:g1t}),continueList:oe("Continue the list above",!1,gp(f1t,{}),"Starts after the posts the list above shows."),skipCurrentPost:oe("Leave out this page's post",!1,gp(h1t,{}),"On an article page, the post it shows is not listed."),_gLayout:hV("Layout"),layout:ne("Arrangement",gp(i1t,{}),ZIe,JIe),columns:ae("Columns",gp(s1t,{}),2,4,1,3),featuredWidth:ae("Featured width",gp(l1t,{}),Im.min,Im.max,Im.step,Im.fallback,Im.unit),listCover:oe("Show cover image on the smaller cards",!0,gp(d1t,{})),featuredDarken:ae("Darken",gp(c1t,{}),nd.min,nd.max,nd.step,55,nd.unit),nameFilter:oe("Filter by name",!1,gp(u1t,{})),...di("Events"),showAll:oe("Show all blog posts",!1,gp(p1t,{})),limit:ae("Posts to display",gp(m1t,{}),1,20,1,L0),...fV,cardImage:Kb()},[[["limit"],{field:"showAll",in:[!1,0,"",null],default:!1}],[["columns"],{not:{field:"layout",in:["featured",bv,rh,ah]}}],[["featuredWidth"],{field:"layout",is:"featured"}],[["continueList"],{all:[{not:{context:"noPostListAbove",is:!0}},cl]}],[["skipCurrentPost"],{all:[cl,{not:{field:"continueList",is:!0}}]}],[["listCover","featuredDarken"],{all:[{field:"layout",is:"featured"},n3e]}],[["nameFilter"],{not:{field:"layout",in:["featured",bv,rh]}}],[["cardImage"],{all:[{not:{field:"layout",in:[bv,rh]}},n3e]}]]),resolveFields:(e,{fields:t,parent:o})=>it(no("Events",t,e.props,{hides:["_gPosts","posts"]}),e.props.headPlacement,st.Events.headRows),showWhenFacts:{noPostListAbove:(e,t)=>{let o=t?.appState?.data,n=String(e?.props?.id??"");return o?!MIe(o,n):!1}}};import{SettingsField as b1t,SettingsSwitch as w1t}from"efficient-easel/panel";import{BlockColumnIcon as x1t}from"efficient-easel/icons";import{usePreviewDevice as y1t}from"efficient-easel/screen/components/PreviewDeviceContext";import{VIEW_TIER_LABEL as a3e}from"efficient-easel/screen/lib/content/view-tiers";import{Fragment as v1t,jsx as tE}from"react/jsx-runtime";function gV({value:e,onChange:t}){let o=y1t(),n={...kb,...e},r=n[o];return tE(b1t,{label:u("Logo fills its column"),icon:tE(x1t,{}),action:tE(w1t,{checked:r,onChange:a=>t({...n,[o]:a}),ariaLabel:u("Logo fills its column on {view}",{view:u(a3e[o])})}),hint:tE(v1t,{children:zi(u("Sets the {view} view \u2014 switch views in the top bar to set each one."),{view:tE("strong",{children:u(a3e[o])})})})})}import{SettingsField as k1t,SettingsSwitch as S1t}from"efficient-easel/panel";import{FullWidthIcon as T1t}from"efficient-easel/icons";import{usePreviewDevice as E1t}from"efficient-easel/screen/components/PreviewDeviceContext";import{VIEW_TIER_LABEL as i3e}from"efficient-easel/screen/lib/content/view-tiers";import{Fragment as P1t,jsx as oE}from"react/jsx-runtime";function bV({value:e,onChange:t}){let o=E1t(),n={...Sb,...e},r=n[o];return oE(k1t,{label:u("Logo fills its row"),icon:oE(T1t,{}),action:oE(S1t,{checked:r,onChange:a=>t({...n,[o]:a}),ariaLabel:u("Logo fills its row on {view}",{view:u(i3e[o])})}),hint:oE(P1t,{children:zi(u("Sets the {view} view \u2014 switch views in the top bar to set each one."),{view:oE("strong",{children:u(i3e[o])})})})})}import{jsx as _1t}from"react/jsx-runtime";function wV({value:e,onChange:t}){return _1t(Jk,{label:"Columns per line",unit:u("columns"),steps:dee,value:h_(e),onChange:t})}import{group as l3e}from"efficient-easel/screen/lib/document/box-fields";var xV={blocks:{type:"slot",allow:["FooterLogo","FooterMenu","FooterDivider","FooterGroup","FooterText","FooterEmailSignup","FooterSocial","FooterPayment"]}},s3e={label:"Footer",fields:xV,defaultProps:{columns:cee,logoFill:kb,logoRowFill:Sb}};import{jsx as p4}from"react/jsx-runtime";var d3e={fields:{_gLayout:l3e("Layout"),width:{type:"custom",render:({value:e,onChange:t})=>p4(Nae,{value:e==="full"?"full":e==="page"||e==="content"?"content":void 0,resolved:"content",followsLabel:u("Follows the page"),hint:u("Whether the footer's blocks sit on the page's column, or run edge to edge. The background always spans the screen."),onChange:o=>t(o)})},columns:{type:"custom",render:({value:e,onChange:t})=>p4(wV,{value:e,onChange:t})},logoFill:{type:"custom",render:({value:e,onChange:t})=>p4(gV,{value:e,onChange:t})},logoRowFill:{type:"custom",render:({value:e,onChange:t})=>p4(bV,{value:e,onChange:t})},_gBlocks:l3e("Blocks"),blockList:Oc("Footer"),blocks:xV.blocks}};import{WeightIcon as C1t,WidthIcon as R1t}from"efficient-easel/icons";import{group as O1t}from"efficient-easel/screen/lib/document/box-fields";import{jsx as c3e}from"react/jsx-runtime";var p3e={fields:{_gStyle:O1t("Style"),thickness:ae("Thickness",c3e(C1t,{}),1,8,1,1,"px"),lengthPct:ae("Length",c3e(R1t,{}),10,100,1,100,"%")}};var m3e={fields:{heading:je("Heading","Join our email list"),placeholder:Q("Field placeholder","Email address"),buttonLabel:Q("Button","Subscribe")}};import{boxAlignField as N1t,group as f3e,noGlyph as L1t}from"efficient-easel/screen/lib/document/box-fields";var yV={blocks:{type:"slot",allow:["FooterText","FooterEmailSignup","FooterMenu","FooterDivider","FooterSocial","FooterPayment"]}},u3e={label:"Footer Box",fields:yV,defaultProps:{direction:"vertical",align:"start"}};function A1t(){let e=N1t({runs:t=>t==="horizontal"?"row":"column"});return{...e,fallback:"start",render:t=>e.render({...t,value:t.value??"start"})}}var h3e={fields:{_gLayout:f3e("Layout"),direction:_e("Direction",L1t("`Direction` names how a container's children run \u2014 a MODIFIER, not a thing. doc/naming.md N10.1 gives the idea a dash in its Glyph column; editor-shell's own `direction` meaning says the bare row is CORRECT and not an omission (SS seat, 2026-09-11)."),[{label:"Vertical",value:"vertical"},{label:"Horizontal",value:"horizontal"}],"vertical"),...di("FooterGroup"),align:A1t(),_gBlocks:f3e("Blocks"),blockList:Oc("FooterGroup"),blocks:yV.blocks}};import{WidthIcon as I1t}from"efficient-easel/icons";import{blockAlignmentField as F1t,group as g3e}from"efficient-easel/screen/lib/document/box-fields";import{jsx as B1t}from"react/jsx-runtime";var b3e={fields:{_gContent:g3e("Content"),tagline:je("Body","Short brand tagline"),_gStyle:g3e("Style"),widthPct:ae("Width",B1t(I1t,{}),40,400,1,100,"%"),align:F1t(),...bN,...Hp({keys:{top:"padTop",right:"padRight",bottom:"padBottom",left:"padLeft"},phone:!1})}};import{PhoneIcon as H1t,LineBetweenIcon as D1t}from"efficient-easel/icons";import{deviceField as M1t}from"efficient-easel/screen/lib/document/device-fields";import{group as y3e}from"efficient-easel/screen/lib/document/box-fields";var w3e=Sn(),vV={template:{...w3e,allow:[...w3e.allow,rg]}},x3e={label:"Menu",fields:vV,defaultProps:{accordionMobile:!1,showDividers:!1}};import{jsx as kV}from"react/jsx-runtime";var v3e={fields:{...vV,_gContent:y3e("Content"),menu:{type:"custom",render:({value:e,onChange:t})=>kV(LH,{value:e,onChange:t})},heading:Q("Heading","Column heading"),_gStyle:y3e("Style"),accordionMobile:M1t("mobile",oe("Show as accordion",!1,kV(H1t,{}))),showDividers:oe("Dividers between links",!1,kV(D1t,{}))}};var SV={template:Sn()},k3e={label:"Article Body",fields:SV,defaultProps:{}};var S3e={fields:{...SV}};import{Button as z1t}from"efficient-shell/ui";import{Fragment as U1t,jsx as TV,jsxs as W1t}from"react/jsx-runtime";function EV(){let{openPanel:e}=zC();return TV(U1t,{children:W1t(NC,{title:u("Social links"),children:[TV("p",{className:"es-field-hint",children:u("The links are typed once for the whole website, in Site settings.")}),TV(z1t,{variant:"link",size:"sm",onClick:e,children:u("Edit social links \u2192")})]})})}import{StylesIcon as $1t,TextSizeIcon as K1t,GapIcon as V1t}from"efficient-easel/icons";import{group as T3e}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Y1t}from"efficient-easel/screen/lib/document/device-fields";import{jsx as m4}from"react/jsx-runtime";var E3e={fields:{_gStyle:T3e("Style"),iconStyle:_e("Icon style",m4($1t,{}),[{label:"Outline",value:"outline"},{label:"Solid",value:"solid"}],ow),iconSize:_e("Icon size",m4(K1t,{}),[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}],"medium"),_socialLinks:{type:"custom",render:()=>m4(EV,{})},_gLayout:T3e("Layout"),align:sx(),gap:Y1t("desktop",ae("Gap",m4(V1t,{}),0,32,2,0,"px"))}};import{TextSizeIcon as j1t}from"efficient-easel/icons";import{group as q1t}from"efficient-easel/screen/lib/document/box-fields";var CV=see.lead,P3e={label:"Payment Logos",defaultProps:{lead:CV,methods:[],size:"sm",align:"left"}};import{jsx as X1t}from"react/jsx-runtime";var _3e={fields:{lead:U("Lead",CV),dataSource:oo("Methods from","Typed here"),methods:{type:"array",label:"Payment methods",arrayFields:{label:ye("Name")},getItemSummary:e=>e.label||"Method"},_gStyle:q1t("Style"),size:_e("Size",X1t(j1t,{}),[{label:"S",value:"sm"},{label:"M",value:"md"}],"sm"),align:sx()},resolveFields:(e,{fields:t})=>no("FooterPayment",t,e.props,{hides:["methods"]})};import{TextSizeIcon as Z1t}from"efficient-easel/icons";import{group as C3e}from"efficient-easel/screen/lib/document/box-fields";import{jsx as J1t}from"react/jsx-runtime";var R3e={fields:{_gContent:C3e("Content"),dataSource:oo("Text from","Typed here"),text:je("Body","Footer text"),_gStyle:C3e("Style"),size:_e("Size",J1t(Z1t,{}),[{label:"S",value:"sm"},{label:"M",value:"md"},{label:"L",value:"lg"}],"md"),tone:eO()},resolveFields:(e,{fields:t})=>no("FooterText",t,e.props,{hides:["text"]})};import{group as OV,section as Q1t}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as ekt,styleFieldBuilders as tkt}from"efficient-easel/screen/lib/document/style-fields";import{BUTTON_STYLE_KEYS as wv}from"efficient-easel/screen/lib/content/style-keys";import{BUTTON_CORNERS_UNIT_KEY as okt}from"efficient-easel/screen/lib/content/length-units";import{deviceField as N3e}from"efficient-easel/screen/lib/document/device-fields";import{EyeIcon as nkt}from"efficient-easel/icons";var RV={[xs]:{type:"slot",allow:[...C5]}},O3e={ownPad:ZPe,label:"Form",fields:RV,defaultProps:{formSlug:"",heading:"",intro:"",submitText:"",finePrint:""}};import{jsx as skt}from"react/jsx-runtime";var rkt=e=>Ab(e==="Corners"?"Field corners":e),{cornersField:akt}=tkt(rkt,{lengthUnits:aC}),L3e={kind:"radius",unitKey:okt},ikt=()=>0,A3e={fields:{...RV,_gForm:OV("Form"),formSlug:Fc(),_gContent:OV("Content"),heading:Q("Heading override"),intro:je("Intro"),submitText:Q("Submit button"),finePrint:Q("Fine print"),_gPreview:N3e("desktop",OV(yu)),[Gu]:N3e("desktop",ne("Show",skt(nkt,{}),[...R5],"form")),_dDesign:Q1t("Design"),[wv.corners]:akt({key:wv.corners,sidesKey:wv.cornerSides,useFollows:ikt,step:4,length:L3e}),[wv.cornerSides]:ekt(wv.corners),...id(L3e,wv.corners)}};var I3e={fields:{copyright:U("Copyright","\xA9 Your company","Leave it empty to show the company name and the year it started.")}};var F3e={fields:{}};import{ClockIcon as dkt}from"efficient-easel/icons";var lkt="location-opening",u4=[{label:"Open now badge",value:"badge"},{label:"The week",value:"week"}],rE="week",B3e={label:"Opening hours",defaultProps:{show:rE,title:"Opening hours",dataSource:lkt}};import{jsx as ckt}from"react/jsx-runtime";var H3e={fields:{show:ne("Show",ckt(dkt,{}),u4,rE),title:q("Heading","Opening hours"),dataSource:oo("Hours from","None")},resolveFields:(e,{fields:t})=>no("OpeningHours",t,e.props)};var D3e={fields:{title:q("Heading","Rates"),description:q("Body","What a visit costs."),dataSource:oo("Rates from","None")},resolveFields:(e,{fields:t})=>no("RateTable",t,e.props)};var M3e={fields:{title:q("Heading","Message us"),description:q("Body",""),dataSource:oo("Apps from","None")},resolveFields:(e,{fields:t})=>no("MessagingCards",t,e.props)};var z3e={fields:{heading:U("Heading","Message us"),dataSource:oo("Apps from","None")},resolveFields:(e,{fields:t})=>no("FooterMessaging",t,e.props)};import{PhoneIcon as Rkt}from"efficient-easel/icons";var f4="site-messaging",pkt=["wechat","telegram","whatsapp","line"],oi={open:e=>`Open ${e}`,opensApp:"(opens the app)",copyId:"Copy ID",copied:"Copied",scanWith:e=>`Scan with ${e}`,searchFor:e=>`Search for this ID in ${e}`,qrLabel:(e,t)=>t?`${e} QR code, ${t}`:`${e} QR code`},sh="inline-flex items-center gap-1.5 text-[14px] font-medium text-accent underline-offset-4 hover:underline",mkt=e=>typeof e=="string"&&pkt.includes(e),W3e=e=>typeof e=="string"&&/^https?:\/\/\S+$/i.test(e.trim())?e.trim():"",U3e=e=>typeof e=="string"?e.trim():"";function h4(e){let t=new Set,o=[];for(let n of e){if(!mkt(n.app)||t.has(n.app))continue;let r={app:n.app,name:U3e(n.name)||ukt[n.app],handle:U3e(n.handle),href:n.app==="wechat"?"":W3e(n.href),qr:W3e(n.qr)};!r.handle&&!r.qr||(t.add(n.app),o.push(r))}return o}var ukt={wechat:"WeChat",telegram:"Telegram",whatsapp:"WhatsApp",line:"LINE"},NV=8,LV=["phone","email","whatsapp","line","telegram","wechat","kakaotalk"],xv={phone:"Phone",email:"Email",whatsapp:"WhatsApp",line:"LINE",telegram:"Telegram",wechat:"WeChat",kakaotalk:"KakaoTalk"},fkt=200,hkt=40,gkt=/^[A-Za-z][A-Za-z0-9_]{3,31}$/,bkt=/^\+[1-9][0-9]{7,14}$/,wkt=/^@?[a-z0-9._-]{3,20}$/,xkt=/^[A-Za-z0-9_-]{2,40}$/,ykt=/^[A-Za-z0-9._-]{2,40}$/,vkt=/^[^\s@<>()",;:]+@[^\s@<>()",;:]+\.[^\s@<>()",;:]{2,}$/;function kkt(e){let t=e.trim().replace(/^(?:https?:\/\/)?(?:www\.)?(?:t\.me|telegram\.me|telegram\.dog)\//i,"").replace(/^@/,"").replace(/\/+$/,"");return gkt.test(t)?t:null}function Skt(e){let t=e.trim(),o=t.match(/^(?:https?:\/\/)?(?:www\.)?wa\.me\/(\d+)\/?$/i),n=o?`+${o[1]}`:t.replace(/[\s().\-/]/g,"");return n.startsWith("00")&&(n=`+${n.slice(2)}`),n=n.replace(/^\+610/,"+61"),/^0[2-478]\d{8}$/.test(n)?n=`+61${n.slice(1)}`:/^61[2-478]\d{8}$/.test(n)&&(n=`+${n}`),bkt.test(n)?n:null}function Tkt(e){let t=e.trim(),o=t.match(/^(?:https?:\/\/)?line\.me\/(?:R\/)?ti\/p\/(.+?)\/?$/i),n=t;if(o){let r=o[1];if(r.startsWith("~"))n=r.slice(1);else if(/^(?:@|%40)/i.test(r))n=`@${r.replace(/^(?:@|%40)/i,"")}`;else return null}return n=n.toLowerCase(),wkt.test(n)?n:null}function Ekt(e){let t=e.trim().replace(/\s+/g," ");if(t.length>40||!/^\+?[\d\s().-]+$/.test(t))return null;let o=t.replace(/\D/g,"").length;return o>=8&&o<=15?t:null}function G3e(e){let t=e.replace(/\D/g,"");if(e.trim().startsWith("+")){if(!t.startsWith("61"))return e.trim();t=`0${t.slice(2)}`}return/^04\d{8}$/.test(t)?`${t.slice(0,4)} ${t.slice(4,7)} ${t.slice(7)}`:/^0[2378]\d{8}$/.test(t)?`(${t.slice(0,2)}) ${t.slice(2,6)} ${t.slice(6)}`:e.trim()}var Pkt=e=>e.startsWith("@")?`https://line.me/R/ti/p/%40${e.slice(1)}`:`https://line.me/ti/p/~${e}`,_kt=e=>typeof e=="string"&&LV.includes(e);function Ckt(e){if(!_kt(e.kind)||typeof e.value!="string")return null;let t=e.value;if(!t.trim()||t.length>fkt)return null;let o=e.kind,n={name:typeof e.name=="string"?e.name.trim().slice(0,hkt):"",kind:o,way:xv[o]};switch(o){case"phone":{let r=Ekt(t);return r?{...n,handle:G3e(r),href:lu(r)??"",qr:""}:null}case"email":{let r=t.trim();return r.length<=120&&vkt.test(r)?{...n,handle:r,href:`mailto:${r}`,qr:""}:null}case"whatsapp":{let r=Skt(t);if(!r)return null;let a=`https://wa.me/${r.slice(1)}`;return{...n,handle:G3e(r),href:a,qr:a}}case"telegram":{let r=kkt(t);if(!r)return null;let a=`https://t.me/${r}`;return{...n,handle:`@${r}`,href:a,qr:a}}case"line":{let r=Tkt(t);if(!r)return null;let a=Pkt(r);return{...n,handle:r,href:a,qr:a}}case"wechat":{let r=t.trim();return xkt.test(r)?{...n,handle:r,href:"",qr:""}:null}case"kakaotalk":{let r=t.trim().replace(/^@/,"");return ykt.test(r)?{...n,handle:r,href:"",qr:""}:null}}}function AV(e){return Array.isArray(e)?e.flatMap(t=>{if(!t||typeof t!="object")return[];let o=Ckt(t);return o?[o]:[]}).slice(0,NV):[]}var $3e=LV.map(e=>({label:xv[e],value:e})),IV="phone",K3e={label:"Contact cards",defaultProps:{title:"Who to ask",description:"",contacts:[]}};import{jsx as Okt}from"react/jsx-runtime";var V3e={fields:{title:q("Heading","Who to ask"),description:q("Body",""),contacts:{type:"array",label:"Contacts",max:NV,arrayFields:{name:ye("Name","Who to ask for"),kind:ne("Reach by",Okt(Rkt,{}),$3e,IV),value:ye("Number or ID","A number, @name or an ID")},defaultItemProps:{name:"",kind:IV,value:""},getItemSummary:e=>e.name||(e.kind&&Object.hasOwn(xv,e.kind)?xv[e.kind]:"Contact")}}};import{StarIcon as Nkt}from"efficient-easel/icons";var Y3e={label:"Rating",defaultProps:{rating:0}};import{jsx as Lkt}from"react/jsx-runtime";var j3e={fields:{rating:ae("Rating",Lkt(Nkt,{}),0,lm,1,0)}};import{group as X3e}from"efficient-easel/screen/lib/document/box-fields";var yv={eyebrow:"Your turn",title:"Leave a *review.*"},q3e={ownPad:DA,label:"Review Form",defaultProps:{eyebrow:"",title:"",designCode:""}};var Akt="e.g. D00123 \xB7 blank = the whole store",Z3e={fields:{_gContent:X3e("Content"),eyebrow:U("Eyebrow",yv.eyebrow),title:q("Heading",yv.title),_gSource:X3e("Reviews"),designCode:Pr(Q("Design code",Akt))},resolveFields:(e,{fields:t,parent:o})=>it(t,e.props.headPlacement,st.ReviewForm.headRows)};import{StylesIcon as Wkt,HashIcon as Ukt,ColumnsIcon as Gkt,StarIcon as $kt}from"efficient-easel/icons";import{group as DV}from"efficient-easel/screen/lib/document/box-fields";import{useEasel as Ikt}from"efficient-easel/easel";import{jsx as J3e}from"react/jsx-runtime";var Fkt={thisProduct:!0,codeWithoutProduct:!0,untouched:"all",keepsCategory:!1};function Bkt(e){return Tr()&&!YL({appState:e})}function Hkt({value:e,onChange:t,wheels:o,categories:n,onProductPage:r,loading:a}){return J3e(tI,{value:e,onChange:t,wheels:o,categories:n,onProductPage:r,loading:a,rules:Fkt,noProductHint:u("No product chosen yet, so reviews of every product show.")})}function FV({value:e,onChange:t}){let o=Ikt(a=>Bkt(a.appState)),{wheels:n,categories:r}=oI();return J3e(Hkt,{value:e,onChange:t,wheels:n,categories:r,onProductPage:o,loading:n===null})}import{Button as Dkt}from"efficient-shell/ui";import{useEaselHost as Mkt}from"efficient-easel/screen/lib/host";import{jsx as zkt}from"react/jsx-runtime";var Q3e=["storefront-editor:open-site-section",{section:"reviews"}];function BV(){let e=Mkt();return zkt(Dkt,{variant:"link",size:"sm",onClick:()=>e.send(Q3e[0],Q3e[1]),children:u("Edit in Reviews \u2192")})}var vv={eyebrow:"Reviews",title:"From our *customers.*"},HV={template:Sn()},e4e={ownPad:DA,label:"Reviews",fields:HV,defaultProps:{eyebrow:"",title:"",columns:3,limit:6,dataSource:GR,items:[]}};import{jsx as aE}from"react/jsx-runtime";var g4={field:Xv,set:!0},Kkt=[{label:"None",value:""},...Array.from({length:lm},(e,t)=>({label:String(t+1),value:String(t+1)}))],t4e={fields:{_gContent:DV("Content"),eyebrow:U("Eyebrow",vv.eyebrow),eyebrowLook:ne("Eyebrow style",aE(Wkt,{}),[...Js],Np("Reviews")),title:q("Heading",vv.title),_gSource:DV("Reviews"),dataSource:oo("Review content","Manual"),_editReviews:at({type:"custom",render:()=>aE(BV,{})},g4),items:at({type:"array",label:"Typed reviews",arrayFields:{quote:je("Quote"),title:Q("Title"),name:Q("Name"),role:Q("Role \xB7 location"),rating:ne("Rating",aE($kt,{}),Kkt,"")},defaultItemProps:{quote:"",title:"",name:"",role:"",rating:""},getItemSummary:e=>e?.name||e?.quote||"Review"},{not:g4}),...HV,limit:at(ae("Items to display",aE(Ukt,{}),3,12,1,6),g4),dataSourceOptions:at(Uo(FV),g4),_gStyle:DV("Style"),columns:ae("Columns",aE(Gkt,{}),1,3,1,3)},resolveFields:(e,{fields:t,parent:o})=>no("Reviews",it(t,e.props.headPlacement,st.Reviews.headRows),e.props,{hides:["items"]})};import{StickyIcon as Vkt}from"efficient-easel/icons";var MV={sections:{type:"slot"}},o4e={label:"Site Footer",fields:MV};import{jsx as Ykt}from"react/jsx-runtime";var n4e={fields:{...HC(),revealOnScroll:oe("Reveal on scroll",!1,Ykt(Vkt,{})),sections:MV.sections}};import{CartIcon as jkt,CaseIcon as qkt,ContrastIcon as Xkt,HeightIcon as Zkt,LayoutIcon as Jkt,OpacityIcon as Qkt,StickyIcon as eSt,TextColorIcon as tSt,TextSizeIcon as oSt}from"efficient-easel/icons";var zV={sections:{type:"slot"}},r4e={label:"Site Header",fields:zV,defaultProps:{sticky:"always",topTextColor:"auto",sections:[]}};import{jsx as Fm}from"react/jsx-runtime";var{sectionAccent:nSt}=LC(e=>u1(e)??m1,"Follow the site theme"),a4e={fields:{heightPx:ae("Height",Fm(Zkt,{}),li.min,li.max,2,li.default,"px"),...HC(),sectionAccent:nSt,topTextColor:_e("Text color at the top",Fm(Xkt,{}),[{label:"Auto",value:"auto"},{label:"Light",value:"light"},{label:"Dark",value:"dark"},{label:"Custom",value:JR}],"auto"),topTextCustom:at(fs("Top text color",bP,Fm(tSt,{})),{field:"topTextColor",is:JR}),linkOpacity:ae("Link opacity",Fm(Qkt,{}),FH,BH,1,qce,"%"),iconSize:ne("Icon size",Fm(oSt,{}),[...HH],DH),cartIcon:ne("Cart icon",Fm(jkt,{}),[...MH],zH),navTextCase:_e("Letters",Fm(qkt,{}),[...c1],IH),menuRow:_e("Menu row",Fm(Jkt,{}),[...XR],ZR),sticky:_e("Sticky header",Fm(eSt,{}),[{label:"None",value:"none"},{label:"Always",value:"always"},{label:"On scroll up",value:"on_scroll_up"}],"always"),...Zu(["tools"],{tools:"toolTextStyle"},{tools:"Tool words"},{unsetLabel:"Header's own"}),sections:zV.sections}};import{group as rSt}from"efficient-easel/screen/lib/document/box-fields";var i4e={field:"region",is:"head"},aSt={not:i4e},iSt={any:[]};function sSt(e){let t=SO.map(a=>TO[a]),o=["eyebrow","title"],n=["body","formSlug","buttonText","consent"],r=[];for(let a of Object.keys(e))a.startsWith("_")||(o.includes(a)?r.push([[a],i4e]):n.includes(a)||t.includes(a)?r.push([[a],aSt]):r.push([[a],iSt]));return r}var s4e={fields:{...Zu(SO,TO,Dhe,{unsetLabel:"Section's own"}),_gContent:rSt("Content"),eyebrow:U("Eyebrow",Wt.eyebrow),title:q("Heading",Wt.title),body:q("Body",Wt.body),formSlug:Fc(),buttonText:U("Button",Wt.buttonText),consent:q("Consent line",Wt.consent)},resolveFields:(e,{fields:t})=>Le(t,sSt(t))};import{group as b4}from"efficient-easel/screen/lib/document/box-fields";var WV={boxes:{type:"slot",allow:["SubmitBox"]}},l4e={ownPad:QPe,label:"Photo Submission Form",fields:WV,defaultProps:{eyebrow:Wt.eyebrow,title:Wt.title,body:Wt.body,formSlug:"",buttonText:Wt.buttonText,consent:Wt.consent}};var d4e={fields:Le({_gContent:b4("Content"),eyebrow:U("Eyebrow",Wt.eyebrow),title:q("Heading",Wt.title),body:q("Body",Wt.body),_gForm:b4("Form"),formSlug:Fc(),_gButton:b4("Button"),buttonText:U("Button",Wt.buttonText),_gFootnote:b4("Footnote"),consent:q("Consent line",Wt.consent),boxes:WV.boxes},[[["_gContent","eyebrow","title","body","_gForm","formSlug","_gButton","buttonText","_gFootnote","consent"],{not:{field:"layout",is:"boxes"}}]])};import{parseOption as lSt}from"efficient-shell/format";var c4e=["issues","posts"],p4e=[{label:"Issues",value:"issues"},{label:"Blog posts",value:"posts"}],w4="issues";function m4e(e){return lSt(c4e,w4,e)}var dSt={issues:["issues"],_gPosts:["posts"],posts:["posts"],limit:["posts"]};function u4e(e){return Le(e,Object.entries(dSt).map(([t,o])=>[[t],qn("contentType",c4e,w4,o)]))}import{BorderAllIcon as pSt,CategoryIcon as mSt,HashIcon as uSt}from"efficient-easel/icons";import{section as UV,group as A0,VIEW_KEY_ACCESS as h4e}from"efficient-easel/screen/lib/document/box-fields";var Mo={headNum:W.sectionNumber,headTitle:W.headingAccent,headDesc:"A short description of your newsletter or publication.",kicker:"\u2192 Newsletter",leadTitle:"Get it in the *inbox.*",intro:"Tell readers what they get and how often. One email, straight to the inbox. We will never sell your address.",emailPlaceholder:"your@email.com",submitText:"Subscribe \u2192",subscribedText:"Subscribed \u2713",finePrint:"Approx. 1 email per week \xB7 Unsubscribe in one click",issuesHeading:"Recent issues",archiveText:"View the full archive \u2192",archiveHref:ac.href},f4e=()=>["N\xB0 04","N\xB0 03","N\xB0 02","N\xB0 01"].map(e=>({n:e,title:u("Issue title"),small:u("Short description"),date:u("Month YYYY")}));function cSt(e){return e.map((t,o)=>({n:`N\xB0 ${String(e.length-o).padStart(2,"0")}`,title:t.title,small:t.meta}))}function x4(e,t){if(e==="issues")return De(t.issues,f4e(),t.editor);let o=t.posts,n=typeof t.limit=="number"&&t.limit>0?t.limit:4,r=Array.isArray(o)?cSt(o.slice(0,n)):[];return De(r,f4e(),t.editor)}import{jsx as GV}from"react/jsx-runtime";var g4e={fields:u4e({_sHead:UV("Section header"),_gHeadCopy:A0("Content"),headNum:U("Number",Mo.headNum),headTitle:q("Heading",Mo.headTitle),headDesc:q("Body",Mo.headDesc),_sLeft:UV("Newsletter panel"),_gLeftCopy:A0("Content"),kicker:U("Eyebrow",Mo.kicker),leadTitle:q("Heading",Mo.leadTitle),intro:q("Intro",Mo.intro),_gForm:A0("Signup form"),emailPlaceholder:Q("Email placeholder",Mo.emailPlaceholder),submitText:Q("Submit button",Mo.submitText),subscribedText:Q("Subscribed button",Mo.subscribedText),finePrint:q("Fine print",Mo.finePrint),_gLayout:A0("Layout"),...il("align",{access:h4e}),...iC("textAlign",{access:h4e,allow:["left","center","right"]}),panel:oe("Panel",!0,GV(pSt,{})),_sRight:UV("Recent issues"),_gRightCopy:A0("Content"),contentType:_e("Type",GV(mSt,{}),[...p4e],w4),issuesHeading:U("Panel heading",Mo.issuesHeading),issues:{type:"array",label:"Issues",arrayFields:{n:ye("Number"),title:ye("Title"),small:ye("Sub-line"),date:ye("Date")},getItemSummary:e=>[e?.n,e?.title].filter(Boolean).join(" \xB7 ")||u("Issue")},_gPosts:A0("Blog posts"),posts:Uo(N0),limit:ae("Posts to display",GV(uSt,{}),1,6,1,4),_gArchive:A0("Archive link"),archiveText:U("Archive button",Mo.archiveText),archiveHref:Ve("Archive link")}),resolveFields:(e,{fields:t})=>it(t,e.props.headPlacement,st.Subscribe.headRows)};import{HashIcon as fSt}from"efficient-easel/icons";import{section as $V,group as kv}from"efficient-easel/screen/lib/document/box-fields";var Zo={...Mo,issuesHeading:"Recent posts",archiveText:"Read all posts \u2192"},b4e={ownPad:MA,label:"Subscribe with Posts",defaultProps:{headNum:"",headTitle:"",headDesc:"",kicker:"",leadTitle:"",intro:"",emailPlaceholder:"",submitText:"",subscribedText:"",finePrint:"",issuesHeading:"",limit:4,archiveText:"",archiveHref:""}};import{jsx as hSt}from"react/jsx-runtime";var w4e={fields:{_sHead:$V("Section header"),_gHeadCopy:kv("Content"),headNum:U("Number",Zo.headNum),headTitle:q("Heading",Zo.headTitle),headDesc:q("Body",Zo.headDesc),_sLeft:$V("Newsletter panel"),_gLeftCopy:kv("Content"),kicker:U("Eyebrow",Zo.kicker),leadTitle:q("Heading",Zo.leadTitle),intro:q("Intro",Zo.intro),_gForm:kv("Signup form"),emailPlaceholder:Q("Email placeholder",Zo.emailPlaceholder),submitText:Q("Submit button",Zo.submitText),subscribedText:Q("Subscribed button",Zo.subscribedText),finePrint:q("Fine print",Zo.finePrint),_sRight:$V("Recent posts"),_gRightCopy:kv("Content"),issuesHeading:U("Panel heading",Zo.issuesHeading),_gPosts:kv("Blog posts"),posts:Uo(N0),limit:ae("Posts to display",hSt(fSt,{}),1,6,1,4),_gArchive:kv("Archive link"),archiveText:U("Archive button",Zo.archiveText),archiveHref:Ve("Archive link")}};import{jsx as Is,jsxs as iE}from"react/jsx-runtime";function VV(e={}){let t=Cie();return Is(_he,{editing:e.editing,previewConfirmation:!!e.nodeId&&t===e.nodeId,children:Is(gSt,{...e})})}var x4e="mx-auto max-w-[var(--sf-site-width,1600px)] px-[min(24px,var(--sf-site-gutter,40px))] py-16 view-wide:px-[var(--sf-site-gutter,40px)] view-wide:py-[88px]",KV="grid gap-8 min-[960px]:grid-cols-[minmax(0,1fr)_minmax(360px,0.8fr)] min-[960px]:gap-12";function gSt({eyebrow:e,heading:t,intro:o,buttonLabel:n,successMessage:r,boxes:a,inBoxes:i=!1,omitHead:s=!1,nodeId:l="AppointmentBooking",serviceTemplate:d,timeTemplate:c}){let p=he()?`${x4e} ${kZ("box").onceFrame}`:x4e,m=Te(p,pr()),{fieldPrefix:f,editing:g,services:h,currency:w,serviceId:b,setServiceId:k,requiresPayment:x,date:v,earliestDate:y,setDate:S,setDateTouched:E,availability:T,loadingSlots:_,noSlotsMessage:P,selectedStart:I,setSelectedStart:D,customerTimezone:F,name:A,setName:N,email:B,setEmail:Y,phone:K,setPhone:X,notes:Z,setNotes:V,confirmation:j,submitting:J,error:C,canSubmit:O,handleSubmit:G,sample:$}=af(),H=$?Is("p",{className:"mb-6 font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",role:"status",children:u("Example form \u2014 add an active service in {place}.",{place:u("Storefront \u2192 Booking Services")})}):null,ee=h===void 0?Is("p",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",children:"Loading appointments\u2026"}):h?.length===0?Is("p",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",role:"status",children:g?u("Add an active service in {place}.",{place:u("Storefront \u2192 Booking Services")}):"Appointments are not available right now."}):null;if(i&&a&&!s)return Is(z,{as:"section",className:"relative z-[2] border-t border-line bg-surface",children:iE("div",{...m,children:[H,j?Is(a,{className:`${KV} items-start`}):iE("form",{onSubmit:G,children:[Is(a,{className:`${KV} items-start`}),ee]})]})});let se=j?Is(vO,{successMessage:r}):ee||iE("form",{onSubmit:G,className:KV,children:[Is(xO,{owner:{id:l,type:"AppointmentBooking",serviceTemplate:d,timeTemplate:c}}),Is(yO,{buttonLabel:n})]});return s?iE(yt,{className:"relative z-[2] border-t border-line bg-surface",column:p,padOnColumn:!0,children:[H,se]}):Is(z,{as:"section",className:"relative z-[2] border-t border-line bg-surface",children:iE("div",{...m,children:[H,Is(wO,{eyebrow:e,heading:t,intro:o}),se]})})}import{jsx as bSt}from"react/jsx-runtime";var y4e=Ct("AppointmentBooking",{...uIe,render:e=>{let t=We(e.headPlacement)==="own-box",o=n=>t?void 0:n;return bSt(VV,{eyebrow:o(R(e.eyebrow,W.eyebrow,e.editor)),heading:o(R(e.heading,W.heading,e.editor)),intro:o(R(e.intro,W.body,e.editor)),omitHead:t,buttonLabel:R(e.buttonLabel,W.button,e.editor),successMessage:R(e.successMessage,W.bookingConfirmation,e.editor),boxes:e.boxes,serviceTemplate:e.serviceTemplate,timeTemplate:e.timeTemplate,inBoxes:e.layout==="boxes",nodeId:typeof e.id=="string"?e.id:void 0,editing:e.editor?.isEditing})}});import{jsx as v4e}from"react/jsx-runtime";function YV({id:e,template:t,editing:o}){let n=Ih(c4),r=n?BIe(n.fields[IIe]):o?HIe():[];return r.length?v4e(Ge,{ownerId:e,ownerType:"ArticleBody",Template:t,rows:r,fallback:null,children:a=>v4e(z,{as:"div",className:"flex flex-col",children:a})}):null}import{jsx as wSt}from"react/jsx-runtime";var k4e={...k3e,render:({id:e,template:t,editor:o})=>wSt(YV,{id:String(e??""),template:t,editing:o?.isEditing})};import{jsx as xSt}from"react/jsx-runtime";var S4e={...QT,render:e=>xSt(mM,{region:typeof e.region=="string"?e.region:void 0,nodeId:typeof e.id=="string"?e.id:void 0,serviceTemplate:e.serviceTemplate,timeTemplate:e.timeTemplate,eyebrow:R(e.eyebrow,W.eyebrow,e.editor),heading:R(e.heading,W.heading,e.editor),intro:R(e.intro,W.body,e.editor),buttonLabel:R(e.buttonLabel,W.button,e.editor),successMessage:R(e.successMessage,W.bookingConfirmation,e.editor),styleStep:e.styleStep,styleName:e.styleName,styleValue:e.styleValue,styleNote:e.styleNote})};import{hidableText as jV}from"efficient-easel/screen/lib/document/hidable";import{jsx as ySt}from"react/jsx-runtime";var T4e={...vIe,render:e=>{let t=We(e.headPlacement)==="own-box",o=n=>t?void 0:n;return ySt(aV,{routingNumber:o(R(e.routingNumber,Yt.routingNumber,e.editor)),routingTagline:o(R(e.routingTagline,Yt.routingTagline,e.editor)),omitHead:t,templates:{ownerId:String(e.id??""),topic:e[gd],reason:e[bd],channel:e[gl],thanks:e[xs],pressTitles:{topic:pl(e,gd),reason:pl(e,bd),channel:pl(e,gl)}},groups:e.groups??[],formNumber:R(e.formNumber,Yt.formNumber,e.editor),formHeading:R(e.formHeading,Yt.formHeading,e.editor),metaLines:(e.metaItems??[]).map(n=>n?.text??"").filter(Boolean),showOther:e.showOther,otherLabel:jV(e.otherLabel)||Yt.otherLabel,otherNoteTitle:R(e.otherNoteTitle,Yt.otherNoteTitle,e.editor),otherNoteBody:R(e.otherNoteBody,Yt.otherNoteBody,e.editor),buttonText:jV(e.buttonText)||Yt.buttonText,consent:R(e.consent,Yt.consent,e.editor),channels:e.channels??[],formSlug:jV(e.formSlug)||void 0,form:e.form,editing:e.editor?.isEditing,showSent:e[Gu],pads:h3("ContactRouting",e,{both:zA,firstOnly:t_e,secondOnly:o_e},e_e)})}};import{useState as qV}from"react";import{jsx as _a,jsxs as Sv}from"react/jsx-runtime";function XV({title:e,contained:t,sample:o}){let[n,r]=qV(""),[a,i]=qV(o??null),[s,l]=qV(!1);return _a(It,{contained:t,className:"py-6",children:_a(vSt,{title:e,query:n,list:a,busy:s,onQuery:r,onSearch:async c=>{if(c.preventDefault(),!(o||!n.trim())){l(!0);try{i(await ise(n))}catch{i({near:"try_again",dealers:[]})}finally{l(!1)}}}})})}function vSt({title:e,query:t,list:o,busy:n=!1,onQuery:r,onSearch:a}){let i=o?Oie(o.near):null,s=o&&o.near!=="not_found"?o.dealers:[],l=Aie(s);return Sv("div",{className:"flex flex-col gap-5",children:[e&&_a("h2",{className:"font-heading3 text-[length:min(var(--size-headingSmall,28px),var(--sf-heading-max,9999px))] font-medium leading-[1.1] tracking-[-0.02em]",children:te(e,!1)}),Sv("form",{role:"search",className:"flex max-w-[560px] gap-2",onSubmit:a,children:[_a("input",{type:"search",name:"near",value:t,onChange:d=>r?.(d.target.value),placeholder:fc.placeholder,"aria-label":fc.placeholder,maxLength:120,className:`${gc} rounded-sm border border-line bg-transparent px-3 py-2 text-[15px]`}),_a("button",{type:"submit",disabled:n,className:"rounded-sm bg-btn px-4 py-2 text-[15px] font-medium text-btn-ink disabled:opacity-60",children:n?fc.searching:fc.search})]}),i&&_a("p",{role:"status",className:"text-[15px] opacity-80",children:i}),o&&o.near!=="not_found"&&!s.length&&_a("p",{role:"status",className:"text-[15px] opacity-80",children:fc.none}),s.length>0&&Sv("div",{className:"grid gap-5 md:grid-cols-2",children:[_a("ol",{className:"flex flex-col text-[15px]",children:s.map((d,c)=>{let p=Nie(d.distanceKm),m=Lie(d);return Sv("li",{className:"flex gap-3 border-b border-line py-3 last:border-b-0",children:[_a("span",{"aria-hidden":!0,className:"w-6 shrink-0 font-medium tabular-nums",children:c+1}),Sv("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[Sv("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4",children:[_a("span",{className:"font-medium",children:d.name}),p&&_a("span",{className:"tabular-nums opacity-70",children:p})]}),d.address&&_a("span",{children:d.address}),m&&_a("span",{children:m}),d.phone&&_a("a",{href:lu(d.phone),className:"underline-offset-2 hover:underline",children:d.phone}),d.website&&_a("a",{href:d.website,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:fc.website})]})]},d.id)})}),l.length>0&&_a("div",{role:"img","aria-label":fc.map,className:"relative min-h-[280px] overflow-hidden rounded-sm border border-line",style:{background:"color-mix(in oklab, var(--accent) 6%, transparent)"},children:l.map(d=>_a("span",{"data-dealer-pin":d.index+1,className:"absolute flex h-6 w-6 -translate-x-1/2 -translate-y-full items-center justify-center rounded-full bg-accent text-[12px] font-medium text-accent-ink",style:{left:`${d.left}%`,top:`${d.top}%`},children:d.index+1},d.id))})]})]})}import{readHidable as kSt}from"efficient-easel/screen/lib/document/hidable";var E4e={label:"Dealer Locations",defaultProps:{title:fc.title}};import{jsx as ESt}from"react/jsx-runtime";var SSt=()=>({near:"found",dealers:[{id:"sample-1",name:"Harbour Wheels",address:"12 Quay St",city:"Sydney",state:"NSW",postcode:"2000",country:"AU",phone:"02 9000 0000",website:"https://example.com",lat:-33.86,lng:151.21,distanceKm:1.2},{id:"sample-2",name:"Western Tyres",address:"4 Great Western Hwy",city:"Parramatta",state:"NSW",postcode:"2150",country:"AU",phone:"02 9600 0000",website:"",lat:-33.81,lng:151,distanceKm:21.4}]}),TSt=e=>{let{text:t,hidden:o}=kSt(e);return o||!t?void 0:t},P4e={...E4e,render:e=>ESt(XV,{title:TSt(e.title),contained:e.contained!==!1,sample:e.editor?.isEditing?SSt():void 0})};import{useEffect as Tv,useId as L4e,useMemo as O4e,useRef as tY,useState as Ra}from"react";import{userZone as NSt}from"efficient-shell/format";import{useEffect as C4e,useId as PSt,useRef as _4e,useState as Bm}from"react";var Ca="mx-auto w-full max-w-[420px] rounded-[16px] border border-line bg-bg px-5 py-[22px] text-[14px] leading-[1.5] text-fg",Si="text-[20px] font-medium leading-[1.3]",br="text-[13px] text-fg-dim",lh="mt-4 flex h-11 w-full cursor-pointer items-center justify-center rounded-[10px] bg-btn font-medium text-btn-ink disabled:cursor-wait disabled:opacity-60",Yl="mt-[14px] rounded-[10px] bg-alert/10 px-3 py-[10px] text-[13px] text-alert";import{Fragment as CSt,jsx as Br,jsxs as sE}from"react/jsx-runtime";function ZV({product:e,productName:t,startHref:o,inert:n=!1}){let r=n?"":Zie(ga()),[a,i]=Bm(r?"opening":"form"),[s,l]=Bm(),[d,c]=Bm(""),[p,m]=Bm(null),[f,g]=Bm(null),[h,w]=Bm(!1),[b,k]=Bm(null),[x,v]=Bm(0),[y,S]=Bm(!1);return C4e(()=>{if(!r)return;let T=!1;return pse(r).then(_=>{T||(_?window.location.assign(_):(w(!0),i("form")))}).catch(_=>{T||(k(_ instanceof sr?Jie(_.status):"failed"),i("form"))}),()=>{T=!0}},[r,x]),Br(_St,{stage:a,focus:s,productName:t,startHref:o,email:d,wrong:p,trouble:f,linkGone:h,openTrouble:b,busy:y,onEmail:T=>{c(T),m(null),g(null)},onSubmit:async T=>{if(T.preventDefault(),n||y)return;let _=XC(d);if(m(_),g(null),!_){S(!0);try{await cse(e,d),w(!1),k(null),l("sent"),i("sent")}catch(P){let I=P instanceof sr?Qie(P.status,P.data):{email:null,trouble:"failed"};m(I.email),g(I.trouble)}finally{S(!1)}}},onAnother:()=>{l("form"),i("form")},onRetry:()=>{k(null),l(void 0),i("opening"),v(T=>T+1)}})}function _St({stage:e,focus:t,productName:o,startHref:n,email:r,wrong:a,trouble:i,linkGone:s=!1,openTrouble:l=null,busy:d=!1,onEmail:c,onSubmit:p,onAnother:m,onRetry:f}){let g=PSt(),h=_4e(null),w=_4e(null);if(C4e(()=>{t===e&&(e==="sent"?h:w).current?.focus()},[e]),e==="opening")return Br("div",{className:Ca,role:"status",children:Br("p",{className:br,children:Ai.opening})});if(e==="sent"){let[b,k]=Ai.sentBody.split("{email}");return sE("div",{className:Ca,children:[Br("h2",{ref:h,tabIndex:-1,className:`${Si} outline-none`,children:Ai.sentTitle}),sE("p",{className:"mt-[10px]",children:[b,Br("span",{className:"font-medium",children:r.trim()}),k]}),Br("p",{className:`${br} mt-[10px]`,children:Ai.sentNote}),Br("button",{type:"button",onClick:m,className:"mt-[18px] flex h-11 w-full cursor-pointer items-center justify-center rounded-[10px] border border-line font-medium text-fg",children:Ai.another})]})}return sE("form",{noValidate:!0,onSubmit:p,className:Ca,children:[Br("h2",{className:Si,children:Ai.title}),l?sE(CSt,{children:[Br("p",{role:"alert",className:`${Yl} mt-[10px]`,children:l==="unreachable"||l==="tooMany"?rt.trouble[l]:Ai.openFailed}),Br("button",{type:"button",onClick:f,className:"mt-3 flex h-11 w-full cursor-pointer items-center justify-center rounded-[10px] border border-line font-medium text-fg",children:Ai.retry})]}):s?Br("p",{role:"alert",className:`${Yl} mt-[10px]`,children:Ai.linkGone}):Br("p",{className:`${br} mt-1`,children:Ai.intro}),Br("label",{htmlFor:`${g}-email`,className:"mb-1 mt-3 block text-[13px] font-medium",children:rt.email}),Br("div",{className:`flex h-11 items-center rounded-[10px] border bg-bg px-3 ${a?"border-alert":"border-line focus-within:border-accent"}`,children:Br("input",{ref:w,id:`${g}-email`,name:"email",type:"email",autoComplete:"email",maxLength:254,value:r,"aria-invalid":a?!0:void 0,"aria-describedby":a?`${g}-email-said`:void 0,onChange:b=>c?.(b.target.value),className:"h-full w-full bg-transparent text-[14px] text-fg outline-none focus-visible:outline-none!"})}),a&&Br("p",{id:`${g}-email-said`,role:"alert",className:"mt-1 text-[13px] text-alert",children:a}),i&&Br("p",{role:"alert",className:Yl,children:rt.trouble[i]}),Br("button",{type:"submit",disabled:d,className:lh,children:d?rt.sending:Ai.submit}),n&&sE("p",{className:`${br} mt-3 text-center`,children:[Li(Ai.newHere,{name:o})," ",Br(Be,{href:n,className:"text-accent",children:Ai.create})]})]})}import{useEffect as RSt,useState as y4}from"react";import{jsx as wo,jsxs as bp}from"react/jsx-runtime";function QV({token:e,productName:t,suffix:o,startHref:n,findHref:r}){let[a,i]=y4(null),[s,l]=y4(null),[d,c]=y4(0),[p,m]=y4(0);RSt(()=>{let h=!1,w=a!==null;if(w&&(!jie(a)||d>=vB))return;let b=x=>{h||(x.kind==="trouble"&&a?.kind==="building"?l(x.trouble):(i(x),l(null)),c(v=>v+1))},k=window.setTimeout(()=>{lse(e).then(b).catch(()=>b({kind:"trouble",trouble:"failed"}))},w?qie(d):0);return()=>{h=!0,window.clearTimeout(k)}},[e,d,p]);let f=()=>{i(null),l(null),c(0),m(h=>h+1)},g=a?.kind==="building"&&d>=vB;return wo(OSt,{state:a,note:s,onRetry:a?.kind==="trouble"||g?f:void 0,productName:t,suffix:o,startHref:n,findHref:r})}var R4e=e=>e==="failed"?fn.troubleFailed:rt.trouble[e],JV={done:{sign:"\u2713",tone:"text-green",spin:!1},running:{sign:"\u25CC",tone:"text-accent",spin:!0},waiting:{sign:"\u25CB",tone:"text-fg-dim",spin:!1},stopped:{sign:"!",tone:"text-alert",spin:!1}};function OSt({state:e,note:t=null,onRetry:o,productName:n,suffix:r,startHref:a,findHref:i}){let s=d=>wo(Be,{href:a,className:lh,children:d}),l=o&&wo("button",{type:"button",onClick:o,className:lh,children:fn.tryAgain});if(e===null)return wo("div",{className:Ca,role:"status",children:wo("p",{className:br,children:fn.checking})});switch(e.kind){case"building":case"failed":{let d=Xie(e,n,r);return bp("div",{className:Ca,children:[wo("h2",{className:Si,children:Li(fn.settingUp,{company:e.company})}),e.kind==="building"&&wo("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":kB(e.status),"aria-label":Li(fn.settingUp,{company:e.company}),className:"mb-[10px] mt-[14px] h-[6px] rounded-[3px] bg-line",children:wo("div",{className:"h-[6px] rounded-[3px] bg-accent transition-[width] duration-500",style:{width:`${kB(e.status)}%`}})}),wo("ul",{className:e.kind==="failed"?"mt-2":void 0,children:d.map(c=>bp("li",{className:"flex items-center gap-[10px] py-[7px]",children:[wo("span",{"aria-hidden":!0,className:`inline-block w-5 text-center text-[18px] leading-none ${JV[c.at].tone} ${JV[c.at].spin?"animate-spin":""}`,children:JV[c.at].sign}),wo("span",{children:c.words})]},c.words))}),e.kind==="failed"?wo("p",{role:"alert",className:Yl,children:fn.failedBody}):wo("p",{role:"status",className:`${br} mt-3`,children:fn.aboutTen}),e.kind==="building"&&t&&wo("p",{className:`${br} mt-2`,children:R4e(t)}),e.kind==="building"&&l]})}case"ready":return bp("div",{className:Ca,children:[wo("span",{"aria-hidden":!0,className:"block text-[28px] leading-none text-green",children:"\u2713"}),wo("h2",{className:`${Si} mt-[6px]`,children:fn.readyTitle}),wo("dl",{className:"mt-[10px]",children:[[fn.workspace,e.company],[fn.address,`${e.slug}${r}`],[fn.plan,Li(fn.planName,{name:n})]].map(([d,c])=>bp("div",{className:"flex border-b border-line py-2",children:[wo("dt",{className:`${br} w-24 shrink-0`,children:d}),wo("dd",{className:"min-w-0 break-words font-medium",children:c})]},d))}),wo("p",{className:"mt-[14px]",children:fn.readyNext})]});case"taken":return bp("div",{className:Ca,children:[wo("h2",{className:Si,children:fn.takenTitle}),wo("p",{className:"mt-[6px]",children:e.slug?Li(fn.takenBody,{address:`${e.slug}${r}`}):fn.takenBodyBare}),s(fn.chooseAnother)]});case"dailyLimit":return bp("div",{className:Ca,children:[wo("h2",{className:Si,children:fn.limitTitle}),wo("p",{role:"alert",className:`${Yl} mt-1`,children:rt.trouble.dailyLimit}),wo("p",{className:`${br} mt-2`,children:fn.limitNext})]});case"closed":return bp("div",{className:Ca,children:[wo("h2",{className:Si,children:rt.closedTitle}),wo("p",{className:"mt-1",children:Li(rt.closedBody,{name:n})}),i&&bp("p",{className:`${br} mt-[10px] text-center`,children:[rt.haveOne," ",wo(Be,{href:i,className:"text-accent",children:rt.find})]})]});case"trouble":return bp("div",{className:Ca,children:[wo("h2",{className:Si,children:fn.troubleTitle}),wo("p",{role:"alert",className:`${Yl} mt-1`,children:R4e(e.trouble)}),l]});default:return bp("div",{className:Ca,children:[wo("h2",{className:Si,children:fn.goneTitle}),wo("p",{className:"mt-[6px]",children:fn.goneBody}),s(fn.again)]})}}import{Fragment as nY,jsx as ut,jsxs as Fs}from"react/jsx-runtime";function oY(e){return e.mode==="find"?ut(It,{contained:e.contained,className:"py-6",children:ut(ZV,{product:e.product,productName:e.productName,startHref:"/start",inert:!!e.sample})}):ut(LSt,{...e})}function LSt({product:e,productName:t,freeLine:o,zone:n,askCountry:r,termsHref:a,privacyHref:i,findHref:s,contained:l,sample:d}){let[c,p]=Ra(d??Fie),[m,f]=Ra(!1),[g,h]=Ra({}),[w,b]=Ra(null),[k,x]=Ra("form"),[v,y]=Ra(),[S,E]=Ra(null),[T,_]=Ra(!1),[P,I]=Ra(!1),[D,F]=Ra(()=>yB(n,"")),A=Yie(ga()),N=!!A&&!d,B=ASt(e,c.slug,!!d||N);Tv(()=>{F(yB(n,window.location.hostname))},[n]),Tv(()=>{if(d||N)return;let Z=!1;return SB(e).then(V=>{Z||(V.open||x("closed"),p(j=>({...j,country:j.country||V.country,currency:j.currency||V.currency})))}).catch(()=>{}),()=>{Z=!0}},[e,d,N]);let Y=Z=>{p(V=>({...V,...Z})),h(V=>{let j={...V};for(let J of Object.keys(Z))delete j[J];return j}),b(null)},K=async Z=>{_(!0),b(null);try{E(await sse(Wie(c,e,r))),I(Z),Z||y("sent"),x("sent")}catch(V){let j=V instanceof sr?Gie(V.status,V.data):{fields:{},trouble:"failed"};j.trouble==="closed"?x("closed"):Object.keys(j.fields).length?(h(j.fields),x("form")):b(j.trouble)}finally{_(!1)}},X=Z=>{if(Z.preventDefault(),d||T)return;let V=Uie(c,B);h(V),!Object.keys(V).length&&K(!1)};return N?ut(It,{contained:l,className:"py-6",children:ut(QV,{token:A,productName:t,suffix:D,startHref:"/start",findHref:s})}):ut(It,{contained:l,className:"py-6",children:ut(ISt,{stage:k,focus:v,product:e,onOpen:()=>x("form"),productName:t,freeLine:o,suffix:D,askCountry:r,termsHref:a,privacyHref:i,findHref:s,draft:c,wrong:g,slug:B,trouble:w,busy:T,sent:S,resent:P,onChange:Y,onCompany:Z=>Y(m?{company:Z}:{company:Z,slug:Die(Z)}),onSlug:Z=>{f(!0),Y({slug:Hie(Z)})},onCountry:Z=>Y({country:Z,currency:Iie[Z]??c.currency}),onSubmit:X,onAgain:()=>{K(!0)},onEdit:()=>{f(!0),b(null),y("form"),x("form")}})})}function ASt(e,t,o){let[n,r]=Ra({slug:"",found:{state:"empty"}}),a=tY("");return Tv(()=>{if(o||!t)return;a.current=t;let i=window.setTimeout(()=>{SB(e,t).then(s=>{a.current===t&&r({slug:t,found:zie(s)})}).catch(()=>{a.current===t&&r({slug:t,found:{state:"unknown"}})})},Bie);return()=>window.clearTimeout(i)},[e,t,o]),o?{state:"available"}:t?n.slug===t?n.found:{state:"checking"}:{state:"empty"}}var v4="flex h-11 items-center rounded-[10px] border bg-bg px-3",eY="h-full w-full bg-transparent text-[14px] text-fg outline-none focus-visible:outline-none! placeholder:text-fg-dim",N4e="flex h-11 w-full cursor-pointer items-center justify-center rounded-[10px] border font-medium text-fg disabled:cursor-wait disabled:opacity-60";function ISt(e){let{stage:t,productName:o,findHref:n,trouble:r}=e,a=n?Fs("p",{className:`${br} mt-[10px] text-center`,children:[rt.haveOne," ",ut(Be,{href:n,className:"text-accent",children:rt.find})]}):null;return t==="closed"?ut(BSt,{...e,children:a}):t==="sent"?ut(DSt,{...e}):ut(FSt,{...e,trouble:r,children:a})}function k4({id:e,label:t,error:o,hint:n,children:r}){return Fs("div",{className:"min-w-0",children:[ut("label",{htmlFor:e,className:"mb-1 mt-3 block text-[13px] font-medium",children:t}),r,o?ut("p",{id:`${e}-said`,role:"alert",className:"mt-1 text-[13px] text-alert",children:o}):n&&ut("p",{id:`${e}-said`,className:"mt-1 text-[13px]",children:n})]})}var S4=e=>e?"border-alert":"border-line focus-within:border-accent";function FSt({productName:e,freeLine:t,suffix:o,askCountry:n,termsHref:r,privacyHref:a,draft:i,wrong:s,slug:l,trouble:d,busy:c=!1,focus:p,locale:m,onChange:f,onCompany:g,onSlug:h,onCountry:w,onSubmit:b,children:k}){let x=L4e(),v=tY(null);Tv(()=>{p==="form"&&v.current?.focus()},[]);let[y,S]=Ra(m!==void 0);Tv(()=>S(!0),[]);let E=A=>A?[{value:A,label:A}]:[],T=O4e(()=>n?y?$ie(i.country,m):E(i.country):[],[n,y,i.country,m]),_=O4e(()=>n?y?Kie(i.currency,m):E(i.currency):[],[n,y,i.currency,m]),P=(A,N,B,Y,K)=>ut(k4,{id:`${x}-${A}`,label:N,error:s[A],children:ut("div",{className:`${v4} ${S4(s[A])}`,children:ut("input",{ref:A==="firstName"?v:void 0,id:`${x}-${A}`,name:A,type:B,autoComplete:Y,maxLength:K,value:i[A],"aria-invalid":s[A]?!0:void 0,"aria-describedby":s[A]?`${x}-${A}-said`:void 0,onChange:X=>A==="company"?g?.(X.target.value):f?.({[A]:X.target.value}),className:eY})})}),I=(A,N,B,Y)=>ut(k4,{id:`${x}-${A}`,label:N,error:s[A],children:ut("div",{className:`${v4} ${S4(s[A])}`,children:ut("select",{id:`${x}-${A}`,name:A,value:i[A],"aria-invalid":s[A]?!0:void 0,onChange:K=>Y(K.target.value),className:`${eY} cursor-pointer`,children:B.map(K=>ut("option",{value:K.value,children:K.label},K.value))})})}),D=s.slug??(l.state==="problem"?rt.slugProblem[l.problem]:void 0),F=l.state==="checking"?ut("span",{className:"text-fg-dim",children:rt.checking}):l.state==="available"?Fs("span",{className:"text-green",children:[ut("span",{"aria-hidden":!0,children:"\u2713 "}),rt.available]}):void 0;return Fs("form",{noValidate:!0,onSubmit:b,className:Ca,children:[ut("h2",{className:Si,children:Li(rt.title,{name:e})}),t&&ut("p",{className:`${br} mt-1`,children:t}),Fs("div",{className:"grid grid-cols-2 gap-[10px]",children:[P("firstName",rt.firstName,"text","given-name",150),P("lastName",rt.lastName,"text","family-name",150)]}),P("email",rt.email,"email","email",254),P("company",rt.company,"text","organization",200),ut(k4,{id:`${x}-slug`,label:rt.address,error:D,hint:F,children:Fs("div",{className:`${v4} gap-2 ${S4(D)}`,children:[ut("input",{id:`${x}-slug`,name:"slug",type:"text",autoComplete:"off",autoCapitalize:"none",spellCheck:!1,maxLength:30,value:i.slug,"aria-invalid":D?!0:void 0,"aria-describedby":D||F?`${x}-slug-said`:void 0,onChange:A=>h?.(A.target.value),className:`${gc} h-full bg-transparent text-[14px] text-fg outline-none focus-visible:outline-none!`}),o&&ut("span",{className:`${br} shrink-0`,children:o})]})}),n&&Fs(nY,{children:[I("country",rt.country,T,A=>w?.(A)),I("currency",rt.currency,_,A=>f?.({currency:A})),ut("p",{className:`${br} mt-[6px]`,children:rt.countryHint})]}),d&&ut("p",{role:"alert",className:Yl,children:rt.trouble[d]}),ut("button",{type:"submit",disabled:c,className:lh,children:c?rt.sending:rt.submit}),ut("p",{className:`${br} mt-3 text-center`,children:ut(HSt,{termsHref:r,privacyHref:a})}),k]})}function BSt({product:e="",productName:t,children:o,onOpen:n}){let r=L4e(),[a,i]=Ra(""),[s,l]=Ra(null),[d,c]=Ra(null),[p,m]=Ra(!1),[f,g]=Ra(!1);return Fs("form",{noValidate:!0,onSubmit:async w=>{if(w.preventDefault(),p)return;let b=XC(a);if(l(b),c(null),!b){m(!0);try{await dse(e,a),g(!0)}catch(k){let x=k instanceof sr?Mie(k.status,k.data):{open:!1,email:null,trouble:"failed"};x.open&&n?.(),l(x.email),c(x.trouble)}finally{m(!1)}}},className:Ca,children:[ut("h2",{className:Si,children:rt.closedTitle}),Fs("p",{className:"mt-[10px]",children:[Li(rt.closedBody,{name:t})," ",f?"":rt.closedLeave]}),f?ut("p",{role:"status",className:"mt-[10px] font-medium",children:Li(rt.waitingDone,{email:a.trim()})}):Fs(nY,{children:[ut(k4,{id:`${r}-email`,label:rt.email,error:s??void 0,children:ut("div",{className:`${v4} ${S4(s??void 0)}`,children:ut("input",{id:`${r}-email`,name:"email",type:"email",autoComplete:"email",maxLength:254,value:a,"aria-invalid":s?!0:void 0,"aria-describedby":s?`${r}-email-said`:void 0,onChange:w=>{i(w.target.value),l(null),c(null)},className:eY})})}),d&&ut("p",{role:"alert",className:Yl,children:rt.trouble[d]}),ut("button",{type:"submit",disabled:p,className:lh,children:p?rt.sending:rt.tellMe})]}),o]})}function HSt({termsHref:e,privacyHref:t}){let o=(i,s)=>i?ut("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2",children:s}):s,[n,r,a]=rt.agree.split(/\{terms\}|\{privacy\}/);return Fs(nY,{children:[n,o(e,rt.terms),r,o(t,rt.privacy),a]})}function DSt({draft:e,sent:t,trouble:o,busy:n=!1,resent:r=!1,focus:a,locale:i,timeZone:s,onAgain:l,onEdit:d}){let[c,p]=Li(rt.sentBody,{company:e.company.trim()}).split("{email}"),m=Vie(t?.expiresAt??"",i,s??NSt()??""),f=tY(null);return Tv(()=>{a==="sent"&&f.current?.focus()},[]),Fs("div",{className:Ca,children:[ut("h2",{ref:f,tabIndex:-1,className:`${Si} outline-none`,children:rt.sentTitle}),Fs("p",{className:"mt-[10px]",children:[c,ut("span",{className:"font-medium",children:e.email.trim()}),p]}),m&&ut("p",{className:`${br} mt-[10px]`,children:Li(rt.sentUntil,{when:m})}),o?ut("p",{role:"alert",className:Yl,children:rt.trouble[o]}):r&&!n&&ut("p",{role:"status",className:`${br} mt-[10px]`,children:rt.sentAgain}),ut("button",{type:"button",disabled:n,onClick:l,className:`${N4e} mt-[18px] border-line`,children:n?rt.sendingAgain:rt.sendAgain}),ut("button",{type:"button",disabled:n,onClick:d,className:`${N4e} mt-2 border-transparent`,children:rt.change})]})}import{parseOption as MSt}from"efficient-shell/format";import{jsx as WSt}from"react/jsx-runtime";var zSt=()=>({firstName:"Amelia",lastName:"Chen",email:"amelia@harbourlane.co",company:"Harbour Lane Studio",slug:"harbourlane",country:"AU",currency:"AUD"}),I0=(e,t="")=>typeof e=="string"?e.trim():t,A4e={...RIe,render:e=>WSt(oY,{mode:MSt(l4,eE,e.mode),product:I0(e.product),productName:I0(e.productName),freeLine:I0(e.freeLine),zone:I0(e.zone),askCountry:e.askCountry===!0,termsHref:I0(e.termsHref),privacyHref:I0(e.privacyHref),findHref:I0(e.findHref),contained:e.contained!==!1,sample:e.editor?.isEditing?zSt():void 0})};import{phoneKey as USt}from"efficient-easel/draw";import{hidableText as GSt}from"efficient-easel/screen/lib/document/hidable";import{jsx as VSt}from"react/jsx-runtime";var $St=()=>[{key:"sample-1",title:u("First card"),excerpt:u("A line about it appears here.")},{key:"sample-2",title:u("Second card"),excerpt:u("A line about it appears here.")},{key:"sample-3",title:u("Third card"),excerpt:u("A line about it appears here.")},{key:"sample-4",title:u("Fourth card"),excerpt:u("A line about it appears here.")}],I4e=(e,t,o)=>({slug:e.key||`card-${t}`,title:e.title??"",excerpt:e.excerpt??"",cover:e.cover??"",meta:e.meta||void 0,dateLabel:e.dateLabel||void 0,href:e.href||"#",...o?.facets?{facets:o.facets}:{},...o?.tags?{tags:o.tags}:{}}),KSt=e=>nI(e,t=>({facets:YIe(t.facets),tags:VIe(t.tags)})),F4e={...o3e,render:e=>{let t=We(e.headPlacement)==="own-box",o=l=>t?void 0:l,n=R(e.linkText,ih.link,e.editor),a=dt(e)!==""?Kt(e,!!e.editor?.isEditing,$St()):null,i=a&&!a.sample?KSt(e):null,s=a?a.sample?[]:a.rows.map((l,d)=>I4e(l,d,rI(i,l,d))):e.posts;return VSt(uV,{num:o(R(e.num,ih.num,e.editor)),title:o(R(e.title,ih.title,e.editor)),link:o(n?{text:n,href:GSt(e.linkHref)||"/journal"}:void 0),omitHead:t,posts:s,servedCategory:e.servedCategory,sample:a?.sample?a.rows.map((l,d)=>I4e(l,d)):void 0,columns:e.columns,limit:e.limit,showAll:e.showAll,skipCurrentPost:e.skipCurrentPost===!0,layout:e.layout,featuredWidth:e.featuredWidth,listCover:e.listCover,featuredDarken:e.featuredDarken,cardImage:e.cardImage,gap:e.gap,gapPhone:e[USt("gap")],nameFilter:e.nameFilter===!0,pads:fd(e),editing:e.editor?.isEditing,template:e.template,ownerId:String(e.id??""),viewHidden:n_(e)})}};import{useContext as rTt,useEffect as aTt,useRef as iTt,useState as U4e}from"react";import{usePreviewDevice as sTt}from"efficient-easel/screen/components/PreviewDeviceContext";import{readHidable as eTt}from"efficient-easel/screen/lib/document/hidable";import{createContext as B4e,useContext as YSt}from"react";var Kkn={...CB,asked:!0,analytics:!1,ads:!1,chosen:!1},Vkn=B4e(CB),jSt=B4e(null);function H4e(){let e=YSt(jSt);return!e||!e.ready?null:e.state.asked?{label:e.rule.footerLink,required:!0,open:e.openPanel}:{label:Gp.cookieSettings,required:!1,open:e.openPanel}}import{createContext as qSt,useContext as XSt}from"react";import{jsx as Xkn}from"react/jsx-runtime";var ZSt=qSt(null);function D4e(){return XSt(ZSt)}var dh={privacy:"Privacy",terms:"Terms of Use",cookieSettings:"Cookie settings",sitemap:"Sitemap"};import{Fragment as aY,jsx as Oa,jsxs as Hm}from"react/jsx-runtime";var T4="flex items-center justify-center gap-5 border border-fg bg-transparent px-6 py-4 font-mono text-[14px] uppercase tracking-[0.3em] text-fg transition-colors hover:bg-fg hover:text-bg",iY="font-mono text-[13px] uppercase tracking-[0.15em] text-fg underline decoration-line underline-offset-4 hover:decoration-fg",JSt="text-fg underline decoration-line underline-offset-4";function M4e({text:e}){return Hm("div",{className:"flex items-center gap-3 font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:[Oa("span",{className:"block h-1.5 w-1.5 rounded-full bg-accent"}),Oa("span",{children:e})]})}function QSt({model:e,words:t,layout:o,privacyHref:n,onAccept:r,onReject:a,onChoose:i,inline:s=!1}){let l=Hm("p",{className:"mt-3 font-body text-[15px] leading-[1.55] text-fg-dim max-[880px]:text-[14px]",children:[t.before,Oa("span",{className:"text-fg",children:t.link}),t.after,n&&Hm(aY,{children:[" ",Oa("a",{className:JSt,href:n,children:Gp.privacyPolicy})]})]}),d=e==="opt-in",c=d?Hm(aY,{children:[Oa("button",{type:"button",className:`${T4} max-[880px]:order-2`,onClick:a,children:Gp.reject}),Oa("button",{type:"button",className:`${T4} max-[880px]:order-1`,onClick:r,children:Gp.accept})]}):Hm(aY,{children:[Oa("button",{type:"button",className:`${T4} max-[880px]:order-2`,onClick:i,children:Gp.privacyChoices}),Oa("button",{type:"button",className:`${T4} max-[880px]:order-1`,onClick:r,children:Gp.ok})]}),p=d?Oa("button",{type:"button",className:iY,onClick:i,children:Gp.choose}):null,m=s?"absolute":"fixed";return o==="card"?Hm("div",{role:"region","aria-label":t.heading,"data-consent-banner":"card",className:`${m} bottom-6 left-6 z-[90] w-[420px] border border-line bg-bg p-6 [border-radius:var(--sf-section-radius,0px)] max-[880px]:inset-x-0 max-[880px]:bottom-0 max-[880px]:left-0 max-[880px]:w-auto max-[880px]:border-x-0 max-[880px]:border-b-0 max-[880px]:px-5 max-[880px]:pb-8 max-[880px]:pt-6 max-[880px]:[border-radius:0]`,children:[Oa(M4e,{text:t.heading}),l,Oa("div",{className:"mt-5 grid grid-cols-2 gap-3 max-[880px]:grid-cols-1",children:c}),p&&Oa("div",{className:"mt-4 max-[880px]:text-center",children:p})]}):Oa("div",{role:"region","aria-label":t.heading,"data-consent-banner":"bar",className:`${m} inset-x-0 bottom-0 z-[90] border-t border-line bg-bg`,children:Hm("div",{className:"flex items-center justify-between gap-10 px-10 py-6 max-view-desktop:flex-col max-view-desktop:items-start max-view-desktop:gap-5 max-[880px]:px-5 max-[880px]:pb-8",children:[Hm("div",{className:"min-w-0 max-w-[700px]",children:[Oa(M4e,{text:t.heading}),l]}),Hm("div",{className:"flex flex-none items-center gap-3 max-[880px]:grid max-[880px]:w-full",children:[p&&Oa("span",{className:"mr-3 max-[880px]:order-3 max-[880px]:mr-0 max-[880px]:mt-1 max-[880px]:text-center",children:p}),c]})]})})}function z4e({layout:e}){let t=Zn().websiteName?.trim()||vu;return Oa("div",{className:"relative min-h-[640px] w-full","data-consent-banner-preview":!0,children:Oa(QSt,{model:"opt-in",words:qse(jse.other,t,{analytics:!0,googleAds:!0,meta:!0}),layout:e,privacyHref:null,onAccept:rY,onReject:rY,onChoose:rY,inline:!0})})}function rY(){}import{Fragment as nTt,jsx as Dm,jsxs as sY}from"react/jsx-runtime";var tTt="transition-colors hover:text-fg hover:underline hover:underline-offset-4";function oTt(e,t){if(!e)return[{key:"privacy",label:dh.privacy},{key:"terms",label:dh.terms},{key:"cookies",label:dh.cookieSettings},{key:"sitemap",label:dh.sitemap}];let o=[];return e.privacyHref&&o.push({key:"privacy",label:dh.privacy,href:e.privacyHref}),e.termsHref&&o.push({key:"terms",label:dh.terms,href:e.termsHref}),t&&(t.required||e.cookieSettings)&&o.push({key:"cookies",label:t.label,onClick:t.open}),e.sitemapHref&&o.push({key:"sitemap",label:dh.sitemap,href:e.sitemapHref}),o}function E4({item:e,first:t=!1}){if(!e)return null;let o=e.href?Dm("a",{className:tTt,href:e.href,children:e.label}):e.onClick?Dm("button",{type:"button",className:`${iY} text-left`,onClick:e.onClick,children:e.label}):Dm("span",{children:e.label});return sY(nTt,{children:[!t&&Dm("span",{"aria-hidden":!0,children:"\xB7"}),o]})}var W4e=gt("FooterSection");function lE({copyright:e}={}){let t=che(),o=eTt(e),n=o.hidden?null:o.text.trim()||t,r=D4e(),a=H4e(),i=oTt(r,a);return sY(z,{as:"div",className:"flex flex-wrap justify-between gap-x-6 gap-y-3 border-t border-line pt-6 font-mono text-[13px] uppercase tracking-[0.15em] text-fg-dim max-view-tablet:flex-col max-view-tablet:gap-3",...W4e("legal-line"),children:[n!==null&&Dm("span",{...W4e("copyright"),children:n}),i.length>0&&sY("span",{className:"flex flex-wrap items-center gap-3 view-tablet:ml-auto",children:[Dm(E4,{item:i[0],first:!0}),Dm(E4,{item:i[1]}),Dm(E4,{item:i[2]}),Dm(E4,{item:i[3]})]})]})}import{viewTierForWidth as lTt}from"efficient-easel/screen/lib/content/view-tiers";import{jsx as lY,jsxs as cTt}from"react/jsx-runtime";var dTt=gt("FooterSection"),P4={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6"},G4e={1:"view-tablet:grid-cols-1",2:"view-tablet:grid-cols-2",3:"view-tablet:grid-cols-3",4:"view-tablet:grid-cols-4",5:"view-tablet:grid-cols-5",6:"view-tablet:grid-cols-6"},$4e={1:"view-desktop:grid-cols-1",2:"view-desktop:grid-cols-2",3:"view-desktop:grid-cols-3",4:"view-desktop:grid-cols-4",5:"view-desktop:grid-cols-5",6:"view-desktop:grid-cols-6"};function dY({blocks:e,editing:t=!1,width:o,columns:n,logoFill:r,logoRowFill:a}){let i=he(),s=rTt(L2),{desktop:l,tablet:d,mobile:c}=h_(n),{desktop:p,tablet:m,mobile:f}={...kb,...r},{desktop:g,tablet:h,mobile:w}={...Sb,...a},b=sTt(),k=b==="desktop"?l:b==="tablet"?d:c,x=t?Object.hasOwn(P4,k)?P4[k]:void 0:`${Object.hasOwn(P4,c)?P4[c]:void 0} ${Object.hasOwn(G4e,d)?G4e[d]:void 0} ${Object.hasOwn($4e,l)?$4e[l]:void 0}`,v=iTt(null),[y,S]=U4e(1),[E,T]=U4e(!1);if(aTt(()=>{if(!t&&!s)return;let P=v.current;if(!P)return;let I=()=>{let Y=P.querySelector(".footer-block-grid");if(!Y)return;let K=t?b:lTt(window.innerWidth),X=K==="desktop"?g:K==="tablet"?h:w;T(X);let Z=K==="desktop"?p:K==="tablet"?m:f,V=getComputedStyle(Y).gridTemplateColumns.split(" ").filter(Boolean).length-1,j=Math.max(Y.childElementCount-1,0);S(!X&&Z&&V>=1?Math.max(Math.ceil(j/V),1):1)},D,F=()=>{clearTimeout(D),D=setTimeout(I,0)},A=[0,80,250,600].map(Y=>setTimeout(I,Y)),N=new MutationObserver(F);N.observe(P,{childList:!0,subtree:!0});let B=new ResizeObserver(F);return B.observe(P),()=>{clearTimeout(D),A.forEach(clearTimeout),N.disconnect(),B.disconnect()}},[l,d,c,t,s,b,p,m,f,g,h,w]),!t&&!s)return null;let _=NP(LP(o))??void 0;return lY(z,{as:"footer",ref:v,className:fe(`${t?"sf-theme-surfaces text-fg ":""}border-t border-line bg-bg px-[var(--sf-site-gutter,40px)] pb-10 pt-20 max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:pt-14`,i),style:{"--footer-logo-rows":y,"--footer-logo-col":E?"1 / -1":"1"},...dTt("footer-block"),children:cTt("div",{style:_,children:[lY(e,{className:`footer-block-grid mb-[60px] grid items-start gap-x-10 gap-y-12 ${x}`,minEmptyHeight:160}),lY(lE,{})]})})}import{jsx as pTt}from"react/jsx-runtime";var K4e={...s3e,render:({blocks:e,width:t,columns:o,logoFill:n,logoRowFill:r,editor:a})=>pTt(dY,{blocks:e,width:t,columns:o,logoFill:n,logoRowFill:r,editing:a?.isEditing})};import{jsx as V4e}from"react/jsx-runtime";function cY({thickness:e=1,lengthPct:t=100}){return V4e(z,{as:"div",className:"col-span-full w-full basis-full","aria-hidden":"true",children:V4e("div",{className:"bg-line",style:{height:`${e}px`,width:`${t}%`}})})}var Y4e={label:"Divider",defaultProps:{thickness:1,lengthPct:100}};import{jsx as mTt}from"react/jsx-runtime";var j4e={...Y4e,render:({thickness:e,lengthPct:t})=>mTt(cY,{thickness:e,lengthPct:t})};import{useState as uTt}from"react";import{jsx as pY,jsxs as q4e}from"react/jsx-runtime";function mY({heading:e,placeholder:t="Email address",buttonLabel:o="Subscribe"}){let{open:n}=OR(),[r,a]=uTt("");return q4e(z,{as:"div",className:"w-full min-w-0",children:[e?pY("h4",{className:"mb-3 font-mono text-[13px] uppercase tracking-[0.2em] text-fg-dim",children:te(e,!1)}):null,q4e("form",{className:"flex max-w-[320px] flex-wrap items-stretch gap-2",onSubmit:i=>{i.preventDefault(),n({email:r.trim(),source:Bi.footerSignup})},children:[pY("input",{type:"email",placeholder:t,value:r,onChange:i=>a(i.target.value),className:`${Gse} border border-line bg-transparent px-3 py-2 text-[13px] text-fg placeholder:text-fg-dim/70 focus:border-accent focus:outline-none`,"aria-label":So(e??"")||"Email address"}),pY("button",{type:"submit",className:"shrink-0 border border-btn bg-btn px-4 py-2 text-[13px] font-medium text-btn-ink transition-opacity hover:opacity-90",children:jo(o)})]})]})}var X4e={label:"Email Form",defaultProps:{heading:"",placeholder:"Email address",buttonLabel:"Subscribe"}};import{jsx as fTt}from"react/jsx-runtime";var Z4e={...X4e,render:({heading:e,placeholder:t,buttonLabel:o,editor:n})=>fTt(mY,{heading:ic(e,"Join our email list",n),placeholder:t||void 0,buttonLabel:o||void 0})};import{phoneKey as hTt}from"efficient-easel/draw";import{jsx as J4e}from"react/jsx-runtime";function uY({direction:e="vertical",gap:t,gapPhone:o,align:n="start",content:r}){let a=Ur("FooterGroup",t,e==="horizontal"?"inline":"block",o);return J4e(z,{as:"div",className:"min-w-0",children:J4e(r,{className:`${["flex",e==="horizontal"?"flex-row flex-wrap":"flex-col",q0(void 0,n)].filter(Boolean).join(" ")}${a.className}`,style:a.style,minEmptyHeight:80})})}import{jsx as gTt}from"react/jsx-runtime";var Q4e={...u3e,render:({direction:e,gap:t,align:o,blocks:n,...r})=>gTt(uY,{direction:e,gap:t,gapPhone:r[hTt("gap")],align:o,content:n})};import{jsx as _4,jsxs as bTt}from"react/jsx-runtime";var fY=gt("FooterLogo"),eFe={left:`${Jl[xh.left]} text-left`,center:`${Jl[xh.center]} ${Zl.center}`,right:`${Jl[xh.right]} ${Zl.right}`};function hY({tagline:e,widthPct:t=100,align:o="left",reverse:n=!0,color:r=null,padTop:a=0,padRight:i=0,padBottom:s=0,padLeft:l=0,editing:d=!1}){let{src:c,reversedSrc:p,inkIsDark:m,wordmark:f,siteName:g}=uC(),h=Math.round(iu*(t/100)),w={...a?{paddingTop:a}:{},...i?{paddingRight:i}:{},...s?{paddingBottom:s}:{},...l?{paddingLeft:l}:{}};return bTt(z,{as:"div",className:["flex min-w-0 flex-col",Object.hasOwn(eFe,o)?eFe[o]:"","[container-type:inline-size]"].filter(Boolean).join(" "),style:w,...fY("logo-block"),children:[_4(Be,{href:"/","aria-label":g?`${g} home`:"Home",className:"inline-flex max-w-full overflow-x-clip",...fY("logo-link"),children:_4(hw,{variant:"footer",sizePx:h,src:c,reverse:n,color:r,reversedSrc:p,inkIsDark:m,wordmark:f,siteName:g,fitWordmarkToContainer:!0,fitFloorPx:mR})}),e?_4("p",{className:"mt-4 max-w-[280px] text-[13px] leading-[1.5] text-fg-dim",...fY("tagline"),children:L(e)}):d?_4("p",{className:"mt-4 max-w-[280px] text-[13px] italic leading-[1.5] text-fg-dim/60",children:u("Add a short brand tagline \u2192")}):null]})}var tFe={label:"Logo",defaultProps:{widthPct:100,align:"left",reverse:"auto",padTop:0,padRight:0,padBottom:0,padLeft:0}};import{jsx as wTt}from"react/jsx-runtime";var oFe={...tFe,render:({tagline:e,widthPct:t,align:o,reverse:n,customColor:r,padTop:a,padRight:i,padBottom:s,padLeft:l,editor:d})=>{let c=gN(n,r);return wTt(hY,{tagline:e||void 0,widthPct:t,align:o,reverse:c.reverse,color:c.color,padTop:a,padRight:i,padBottom:s,padLeft:l,editing:d?.isEditing})}};import{createContext as BTt,useCallback as HTt,useContext as DTt,useEffect as xFe,useRef as R4,useState as pE}from"react";import{createPortal as MTt}from"react-dom";import{CloseIcon as zTt,MenuIcon as WTt}from"efficient-shell/icons/efficient-glyphs";import{REPEAT_ATTRIBUTE as UTt,REPEAT_INDEX_ATTRIBUTE as GTt}from"efficient-easel/draw";import{createContext as RTt,useContext as OTt,useEffect as NTt,useRef as LTt}from"react";import{useEffect as cFe,useId as PTt,useRef as wY,useState as pFe}from"react";import{useLayoutEffect as xTt,useState as aFe}from"react";import{Fragment as ETt,jsx as Kn,jsxs as Ev}from"react/jsx-runtime";var nFe=16,yTt=12,gY="font-body font-normal normal-case tracking-normal",vTt="shrink-0 rounded-sm border border-line px-1.5 py-1 font-mono text-[11px] uppercase leading-none tracking-[0.18em] text-fg-dim",bY="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",kTt={outlineOffset:-2},STt="160px";function rFe({item:e}){let[t,o]=aFe(!1),n=(e.image??"").trim(),r=n&&!t?lc(n):null,a=(e.badge??"").trim(),i=(e.description??"").trim();return Ev(ETt,{children:[Ev("span",{className:"flex min-w-0 items-center gap-2.5",children:[r?Kn("img",{...go(r,{fallbackWidth:320,maxWidth:640}),sizes:STt,alt:e.plainLabel,className:"h-10 w-auto min-w-0 max-w-full object-contain object-left",draggable:!1,onError:()=>o(!0)}):Kn("span",{className:"min-w-0 text-lg font-semibold leading-snug",children:e.label}),a?Kn("span",{className:vTt,children:a}):null]}),i?Kn("span",{className:"text-sm leading-snug text-fg-dim",children:i}):null]})}function iFe({item:e,className:t,linkClassName:o,inset:n=!1,onNavigate:r}){return Sc(e.href)?Kn("span",{"data-menu-panel-item":"",className:t,children:Kn(rFe,{item:e})}):Kn(Be,{"data-menu-panel-item":"",href:e.href,onClick:r,className:`${t} ${o}`,style:n?kTt:void 0,children:Kn(rFe,{item:e})})}function sFe({aside:e,className:t,navType:o,onNavigate:n}){let r=e.links??[];return Ev("div",{"data-menu-panel-aside":"",className:t,children:[e.eyebrow?Kn("p",{className:`${o} text-accent`.trim(),children:e.eyebrow}):null,e.title?Kn("p",{className:"font-display text-xl font-semibold leading-tight normal-case tracking-normal",children:L(e.title)}):null,e.text?Kn("p",{className:`${gY} text-sm leading-normal text-fg-dim`,children:L(e.text)}):null,r.length?Kn("div",{className:"mt-1 flex flex-col items-start gap-2",children:r.map((a,i)=>Sc(a.url)?Kn("span",{className:`${o} text-fg-dim`.trim(),children:a.label},`${a.url}-${i}`):Ev(Be,{href:a.url,onClick:n,className:`${o} inline-flex items-center gap-2 text-accent transition-opacity hover:opacity-80 focus-visible:rounded-sm ${bY}`.trim(),children:[a.label,Kn("span",{"aria-hidden":"true",children:"\u2192"})]},`${a.url}-${i}`))}):null]})}function TTt(e){let t=e.ownerDocument.defaultView;if(!t)return null;let o=e.getBoundingClientRect(),n=e.ownerDocument.documentElement.clientWidth,r=0,a=n,i=e.closest("[data-header-band], [data-box-header]");if(i){let d=i.getBoundingClientRect(),c=t.getComputedStyle(i);r=d.left+(parseFloat(c.paddingLeft)||0),a=d.right-(parseFloat(c.paddingRight)||0)}if(r=Math.max(r,nFe),a=Math.min(a,n-nFe),!(a>r))return null;let s=e.closest("header, [data-box-header]"),l=s?Math.max(0,Math.round(s.getBoundingClientRect().bottom-o.bottom)-1):yTt;return{left:Math.round(r-o.left),width:Math.round(a-r),gap:l}}function lFe({id:e,items:t,aside:o,onNavigate:n,anchor:r}){let a=Mi(o),[i,s]=aFe(null);xTt(()=>{let d=r.current,c=d?.ownerDocument.defaultView;if(!d||!c)return;let p=()=>s(TTt(d));return p(),c.addEventListener("resize",p),()=>c.removeEventListener("resize",p)},[r]);let l=i?{left:i.left,width:i.width,paddingTop:i.gap}:void 0;return Kn("div",{id:e,"data-menu-panel":"",className:`absolute top-full z-[60] whitespace-normal text-fg ${i?"":"left-0 w-[min(64rem,calc(100vw-2rem))] pt-3"}`.trim(),style:l,children:Kn("div",{className:"overflow-hidden rounded-[var(--sf-card-radius,0px)] border border-line bg-bg shadow-xl",children:Ev("div",{className:"flex bg-surface",children:[Kn("div",{className:`min-w-0 overflow-hidden ${a?"flex-[2]":"flex-1"}`,children:Kn("div",{className:`-mb-px -mr-px grid ${a?"grid-cols-2":"grid-cols-3"}`,children:t.map((d,c)=>Kn(iFe,{item:d,onNavigate:n,className:`flex min-w-0 flex-col justify-center gap-1.5 border-b border-r border-line px-5 py-4 text-base ${gY}`,linkClassName:`transition-[background] hover:bg-surface-2 focus-visible:ring-inset ${bY}`,inset:!0},`${d.href}-${c}`))})}),a?Kn(sFe,{aside:a,navType:"",onNavigate:n,className:"flex min-w-0 flex-1 flex-col gap-2.5 border-l border-line p-[22px]"}):null]})})})}function dFe({id:e,items:t,aside:o,onNavigate:n}){let r=Mi(o);return Ev("div",{id:e,"data-menu-panel":"",className:"mt-3 flex flex-col border-l border-line pl-5",children:[t.map((a,i)=>Kn(iFe,{item:a,onNavigate:n,className:`flex min-h-11 flex-col justify-center gap-1 py-2.5 text-base ${gY}`,linkClassName:bY},`${a.href}-${i}`)),r?Kn(sFe,{aside:r,navType:"mono-eyebrow",onNavigate:n,className:"mt-3 flex flex-col gap-2.5 border-t border-line pt-5"}):null]})}import{jsx as la,jsxs as xY}from"react/jsx-runtime";var C4=gt(_r)("menu-link"),_Tt=120;function Pv({item:e,mobile:t=!1,onNavigate:o,dropdownAlign:n="start"}){let[r,a]=pFe(!1),[i,s]=pFe(!1),l=()=>{a(!1),s(!1)},d=PTt(),c=wY(null),p=wY(null),m=e.dropdownItems.length>0,f=m&&Fce(e.dropdownItems,e.dropdownAside),g=wY(null),h=()=>{g.current!==null&&(clearTimeout(g.current),g.current=null)};cFe(()=>h,[]);let w=!Sc(e.href),b=Ln();cFe(()=>{if(!r)return;let v=c.current?.ownerDocument??document,y=S=>{c.current?.contains(S.target)||l()};return v.addEventListener("pointerdown",y),()=>v.removeEventListener("pointerdown",y)},[r]);let k=()=>{l(),o?.()};if(!m)return w?b.scope(la(Be,{href:e.href,onClick:k,className:to(t?"flex min-h-11 items-center font-display text-3xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent":"whitespace-nowrap opacity-80 transition-opacity hover:opacity-100 focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",b.className),...b.attrs,children:e.label})):b.scope(la("span",{className:to(t?"flex min-h-11 items-center font-display text-3xl":"whitespace-nowrap opacity-80",b.className),...b.attrs,children:e.label}));let x=la("button",{ref:p,type:"button","aria-label":`${r&&(t||i)?"Close":"Open"} ${e.plainLabel} menu`,"aria-expanded":r,"aria-controls":d,onClick:()=>{t?a(v=>!v):r&&i?l():(h(),a(!0),s(!0))},className:t?"flex h-11 w-11 shrink-0 items-center justify-center rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent":"flex h-8 w-8 shrink-0 items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:la("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",className:`transition-transform ${r?"rotate-180":""}`,children:la("path",{d:"m3 5 4 4 4-4"})})});return t?b.scope(xY("div",{ref:c,className:b.className||void 0,...b.attrs,children:[xY("div",{className:"flex min-h-11 items-center justify-between gap-3",children:[w?la(Be,{href:e.href,onClick:k,className:"min-w-0 flex-1 font-display text-3xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",...C4,children:e.label}):la("span",{className:"min-w-0 flex-1 font-display text-3xl",...C4,children:e.label}),x]}),r&&f?la(dFe,{id:d,items:e.dropdownItems,aside:e.dropdownAside,onNavigate:k}):r?la("div",{id:d,className:"mt-3 flex flex-col border-l border-line pl-5",children:e.dropdownItems.map((v,y)=>Sc(v.href)?la("span",{className:"flex min-h-11 items-center text-base opacity-80",children:v.label},`${v.href}-${y}`):la(Be,{href:v.href,onClick:k,className:"flex min-h-11 items-center text-base opacity-80 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:v.label},`${v.href}-${y}`))}):null]})):b.scope(xY("div",{ref:c,className:to("relative flex items-center whitespace-nowrap",b.className),...b.attrs,onMouseEnter:()=>{h(),a(!0)},onMouseLeave:()=>{h(),f?g.current=setTimeout(l,_Tt):l()},onBlurCapture:v=>{v.currentTarget.contains(v.relatedTarget)||l()},onKeyDown:v=>{v.key==="Escape"&&(l(),p.current?.focus())},children:[w?la(Be,{href:e.href,onClick:k,onFocus:()=>a(!0),className:"opacity-80 transition-opacity hover:opacity-100 focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",...C4,children:e.label}):la("span",{className:"opacity-80",...C4,children:e.label}),x,r&&f?la(lFe,{id:d,items:e.dropdownItems,aside:e.dropdownAside,onNavigate:k,anchor:c}):r?la("div",{id:d,className:`absolute top-full z-[60] w-72 pt-3 text-fg ${n==="end"?"right-0":n==="center"?"left-1/2 -translate-x-1/2":"left-0"}`,children:la("div",{className:"overflow-hidden rounded-lg border border-line bg-bg p-2 shadow-xl",children:e.dropdownItems.map((v,y)=>Sc(v.href)?la("span",{className:"flex min-h-11 items-center rounded-md px-4 py-2 text-sm opacity-80",children:v.label},`${v.href}-${y}`):la(Be,{href:v.href,onClick:k,className:"flex min-h-11 items-center rounded-md px-4 py-2 text-sm opacity-80 transition-[background,opacity] hover:bg-[var(--card-bg)] hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:v.label},`${v.href}-${y}`))})}):null]}))}import{jsx as CTt}from"react/jsx-runtime";function dE(){return CTt(z,{as:"span",className:"opacity-50",children:u(Bce)})}import{jsx as $d,jsxs as uFe}from"react/jsx-runtime";var yY=gt(_r)("menu-link"),vY=RTt(null),mFe="opacity-80 transition-opacity hover:opacity-100";function cE({item:e,label:t,link:o,onNavigate:n,current:r=!1,children:a}){let i=Ln();return Sc(e.url)?i.scope($d("span",{className:to(t,i.className),...i.attrs,...yY,children:L(e.label)})):i.scope(KR(e.url)==="off-site"?uFe("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:to(o,i.className),onClick:n,...i.attrs,...yY,children:[L(e.label),a]}):uFe(Be,{href:e.url,className:to(o,i.className),onClick:n,"aria-current":r?"page":void 0,...i.attrs,...yY,children:[L(e.label),a]}))}function ATt(){let e=LTt(null);return NTt(()=>{YCe(e.current?.closest("[data-menu-tabs] > ul")??null,wd())},[]),$d("span",{ref:e,className:zy.underline})}function kY(){let e=Da(),t=OTt(vY);if(!e||!t)return null;if(t.placeholder)return $d(dE,{});let o={label:e.row.label??"",url:e.row.href??""},n=!!t.current&&t.current.index===e.index&&t.current.href===o.url;if(t.place==="tab"){let i=zy.tab(n);return $d(cE,{item:o,label:i,link:i,current:n,children:n?$d(ATt,{}):null})}if(t.place==="column")return $d(cE,{item:o,label:"text-fg",link:"text-fg transition-colors hover:text-accent",current:n});if(t.place==="panel")return $d(cE,{item:o,label:"",link:` ${mFe}`,onNavigate:t.onNavigate,current:n});let r=e.item,a=r?.dropdown_items??[];return a.length?$d(Pv,{item:{href:o.url,label:L(o.label),plainLabel:o.label,dropdownItems:a.map(i=>({href:i.url,label:L(i.label),plainLabel:i.label,description:i.description,image:i.image,badge:i.badge})),dropdownAside:Mi(r?.dropdown_aside)}}):n?$d(cE,{item:o,label:"",link:wI.rowLink,current:!0,children:$d("span",{"aria-hidden":"true",className:wI.row})}):$d(cE,{item:o,label:"",link:` ${mFe}`})}import ITt from"efficient-easel/screen/components/UiIcon";import{jsx as wp,jsxs as F0}from"react/jsx-runtime";var fFe="flex h-12 items-center gap-3 border border-line bg-bg px-4 text-left text-[15px]";function hFe({role:e,panelRef:t,name:o,entries:n,tools:r,withAccount:a,editing:i,onClose:s,onSearch:l,phoneOnly:d=!1,marker:c,listStyle:p}){let m=a0(),f=r&&(r.search||r.cart||r.region||a&&r.account||r.theme)?r:null;return F0("div",{ref:t,role:e,"aria-modal":"true","aria-label":o,tabIndex:-1,...c?{"data-menu-panel":c}:null,className:`${YR} z-[60] flex flex-col overflow-y-auto bg-bg text-fg${d?" view-tablet:hidden":""}`,children:[wp("ul",{className:"m-0 flex list-none flex-col px-5 py-3 font-mono text-[16px] uppercase tracking-[0.18em]",style:p,children:n}),f?F0("div",{className:"mt-auto flex flex-col gap-4 border-t border-line bg-surface p-5",children:[f.search?F0("button",{type:"button",className:fFe,onClick:i?void 0:()=>{s(),l()},children:[wp(ITt,{name:"search",size:m.size,strokeWidth:m.stroke,rounded:!0}),_s.search]}):null,f.cart?wp(FTt,{editing:i,onClose:s}):null,a&&f.account?F0("div",{className:"flex items-center justify-between",children:[wp("span",{className:"mono-eyebrow text-fg-dim",children:"Account"}),wp(Be,{href:"/account",onClick:s,className:"mono-eyebrow underline",children:"Your account"})]}):null,f.region?F0("div",{className:"flex items-center justify-between",children:[wp("span",{className:"mono-eyebrow text-fg-dim",children:"Region"}),wp(w0,{})]}):null,f.theme?F0("div",{className:"flex items-center justify-between",children:[wp("span",{className:"mono-eyebrow text-fg-dim",children:"Theme"}),wp(x0,{})]}):null]}):null]})}function FTt({editing:e,onClose:t}){let{open:o,totals:n}=Fn(),r=n.sets;return F0("button",{type:"button",className:fFe,"aria-label":LW(r),onClick:e?void 0:()=>{t(),o()},children:[wp(AW,{}),_s.cart,r>0?` ${r}`:""]})}import{Fragment as N4,jsx as Rt,jsxs as Bs}from"react/jsx-runtime";var or=gt(_r),$Tt=`flex list-none flex-col gap-3 ${wH}`,SY="mb-4 font-mono text-[13px] uppercase tracking-[0.2em] text-fg-dim",O4="text-[12px] italic text-fg-dim/70",gFe=(e,t)=>e&&t>0?"border-t border-line pt-3":"",KTt=e=>({label:e.label??"",url:e.href??"",served:e}),yFe=e=>e.served?{...e.served,label:e.label??"",href:e.url??""}:{label:e.label??"",href:e.url??""},VTt=Array.from({length:Dce},()=>({label:"",href:""}));function mE({owner:e,items:t,place:o,wrap:n,markCurrent:r=!1}){let a=t?t.map(yFe):VTt,i=Aee(),s=DTt(vFe),l=t&&r?VCe(t.map(c=>c.url??""),i,s):-1,d=l<0?null:{index:l,href:t[l].url??""};return Rt(vY.Provider,{value:t?d?{...o,current:d}:o:{...o,placeholder:!0},children:Rt(Ge,{ownerId:e.id,ownerType:e.type,Template:e.template,rows:a,items:t??void 0,fallback:null,wrapCopy:n,children:c=>c})})}var L4=e=>(e.template?.blockCount??0)>0,YTt="Nothing to show yet: this menu's entries come from its Menu content.",bFe="This menu draws no links: its card template is empty. Undo the delete, or delete this Menu and add it again.";function wFe({owner:e,items:t,label:o,editing:n,linkAlign:r,linkRange:a,markCurrent:i,menuStyle:s,menuStylePhone:l,panelLook:d}){let c=Gm(r),p=K1(a),m=!!p&&t!==null&&p.to!==void 0&&p.to<t.length,[f,g]=pE(!1),h=R4(null),w=Yve(),b=wOe(),{open:k}=Cw(),x=o||"Menu",v=HTt(()=>g(!1),[]),y=s===nm||l===nm,S=bD(s,l),[E,T]=pE("sheet"),_=R4(null),P=R4(null),[I,D]=pE(void 0),[F,A]=pE(null),N=()=>{if(!f&&y){let C=h.current?.ownerDocument.defaultView;T(C?.matchMedia("(min-width: 720px)").matches?"side":"sheet");let O=_.current?.querySelector("span");if(O&&C){let G=C.getComputedStyle(O);D({fontFamily:G.fontFamily,fontSize:G.fontSize,letterSpacing:G.letterSpacing,textTransform:G.textTransform});let $=(_.current?.querySelector("svg")??_.current)?.getBoundingClientRect();A($?{left:$.left,top:$.top,height:$.height}:null)}}g(C=>!C)};xFe(()=>{if(!f||!y)return;let O=h.current?.ownerDocument.defaultView?.matchMedia("(min-width: 720px)");if(!O)return;let G=()=>g(!1);return O.addEventListener("change",G),()=>O.removeEventListener("change",G)},[f,y]);let B=R4(null);Nc({active:f&&!(f&&y&&E==="side"),onDismiss:v,scopeRef:h,focusRef:B,trapRef:B});let K=Rt(mE,{owner:e,items:t,place:{place:"row"},markCurrent:i,wrap:(C,O)=>{let G=t!==null&&p&&!afe(p,O.index+1)?{"data-menu-out":""}:null;return Rt("li",{className:"",...G,...or("menu-item"),children:C})}}),X=(C,O,G)=>n?{[UTt]:`${C}:${G<0?"panel":"dropdown"}`,[GTt]:`${G+1}.${O.index}`}:null,Z=Rt(mE,{owner:e,items:t,place:{place:"panel",onNavigate:v},markCurrent:i,wrap:(C,O)=>Bs(N4,{children:[Rt("li",{className:"flex min-h-14 items-center border-b border-line",...X(e.id,O,-1),...or("menu-item"),children:C}),t===null?null:(O.item?.dropdown_items??[]).map((G,$)=>Rt(J_.Provider,{value:{...O,row:yFe(G),item:G},children:Rt("li",{className:"flex min-h-12 items-center border-b border-line pl-5 text-[14px]",...X(e.id,O,$),...or("menu-item"),children:C})},$))]})}),V=w&&(w.search||w.cart||w.region||w.account||w.theme)?w:null;if(!n&&t!==null&&!L4(e)&&!V)return null;let j=Rt(hFe,{role:"dialog",panelRef:B,name:x,entries:Z,tools:w,withAccount:!y||b,editing:n,onClose:v,onSearch:k,phoneOnly:!y,marker:y?"sheet":void 0,listStyle:y&&F?{paddingLeft:F.left,paddingRight:F.left}:void 0}),J=null;if(y){let C=h.current?.ownerDocument,O={...bu,placement:"left",height:"full",closeButton:"none",width:typeof d?.width=="number"?d.width:oO,tintColor:typeof d?.tintColor=="string"?d.tintColor:bu.tintColor,tintOpacity:typeof d?.tintOpacity=="number"?d.tintOpacity:nO},G=Rt($i,{look:O,drawer:{closeRef:P},open:!0,onClose:v,label:x,children:Bs("div",{"data-menu-panel":"side",className:"flex h-full flex-col overflow-y-auto text-fg",children:[Rt("div",{className:"flex min-h-[var(--sf-header-h,88px)] shrink-0 items-center px-8",style:F?{paddingLeft:F.left}:void 0,children:Bs("button",{ref:P,type:"button",onClick:v,className:"inline-flex h-11 items-center gap-2",style:I,children:[Rt(zTt,{size:20,"aria-hidden":"true"}),Rt("span",{className:"whitespace-nowrap",children:_s.close})]})}),Rt("ul",{className:"m-0 flex list-none flex-col px-8 pb-8",style:F?{paddingLeft:F.left}:void 0,...or("menu"),children:Rt(mE,{owner:e,items:t,place:{place:"panel",onNavigate:v},markCurrent:i,wrap:($,H)=>Rt("li",{className:"flex min-h-12 items-center",...X(e.id,H,-1),...or("menu-item"),children:$})})})]})});J=Bs(N4,{children:[Bs("button",{ref:_,type:"button",className:`mono-eyebrow-ctl ${S.button} h-11 min-w-11 items-center gap-2 opacity-80 transition-opacity hover:opacity-100 max-view-tablet:-mx-3 max-view-tablet:min-w-0 max-view-tablet:px-3`,"aria-expanded":f,"aria-label":f?"Close the menu":"Open the menu",onClick:N,...or("menu-button"),children:[Rt(WTt,{size:20,"aria-hidden":"true"}),Rt("span",{className:"whitespace-nowrap max-view-tablet:hidden",children:_s.menu})]}),f&&C?MTt(E==="side"?G:j,C.body):null]})}else S.drawsButton&&(J=Bs(N4,{children:[Rt("button",{type:"button",className:`${S.buttonHead} h-11 w-11 items-center justify-center${S.buttonTail}`,"aria-expanded":f,"aria-label":f?"Close the menu":"Open the menu",onClick:N,...or("menu-button"),children:Rt("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round","aria-hidden":"true",children:f?Rt("path",{d:"M6 6l12 12M18 6L6 18"}):Rt("path",{d:"M4 7h16M4 12h16M4 17h16"})})}),f?j:null]}));return Bs(z,{as:"nav",ref:h,"aria-label":x,"data-menu-row":"",...y?{"data-menu-show":"button"}:null,...!y&&c?{"data-menu-align":c}:null,...!y&&m?{"data-menu-part":"lead"}:null,className:"min-w-0",...or("menu-block"),children:[Rt("ul",{className:`m-0 ${S.listHead} list-none flex-wrap items-center gap-x-8 gap-y-2 p-0 font-mono ${wH} uppercase tracking-[0.18em]${S.listTail}`,...or("menu"),children:K}),J]})}function jTt({owner:e,items:t,label:o,editing:n,markCurrent:r,strip:a=""}){return!n&&(t===null||t.length===0||!L4(e))?null:Rt(z,{as:"nav","aria-label":o||"Menu","data-menu-tabs":"",className:a?`min-w-0 ${a}`:"min-w-0",...or("menu-block"),children:Rt("ul",{className:zy.list,...or("menu"),children:Rt(mE,{owner:e,items:t,place:{place:"tab"},markCurrent:r,wrap:(i,s)=>Rt("li",{className:zy.item(s.index===0,n),...or("menu-item"),children:i})})})})}var vFe=BTt("");function uE(e){let t=!e.editing&&yI(e.layout,e.currentPage),o=kPe(e.pageQuery??"",t);return Rt(vFe.Provider,{value:o,children:Rt(qTt,{...e})})}function qTt({owner:e,menu:t,served:o,heading:n,accordionMobile:r=!1,showDividers:a=!1,editing:i=!1,layout:s="column",linkAlign:l,linkRange:d,menuStyle:c,currentPage:p,menuStylePhone:m,menuPanelWidth:f,menuPanelTintColor:g,menuPanelTintOpacity:h}){let w=yI(s,p),{live:b,ready:k}=BR(),x=!o&&Qde({id:t?.id,handle:t?.handle,editing:i,ready:k,live:b}),v=o?o.map(KTt):x?[]:t?.items??[],y=n||(o?"":t?.name)||"",[S,E]=pE(!1);if(xFe(()=>{if(!r)return;let _=window.matchMedia("(max-width: 800px)"),P=()=>E(_.matches);return P(),_.addEventListener("change",P),()=>_.removeEventListener("change",P)},[r]),o&&v.length===0)return i?Rt(z,{as:"p",className:O4,children:u(YTt)}):null;if(s==="row"&&i&&!x&&v.length>0&&!L4(e))return Rt(z,{as:"p",className:O4,children:u(bFe)});if(s==="row"&&c===Ju){let{strip:_}=bD(c,m),P=Rt(jTt,{owner:e,items:x?null:v,label:y,editing:i,markCurrent:w,strip:_});return _?Bs(N4,{children:[P,Rt(wFe,{owner:e,items:x?null:v,label:y,editing:i,markCurrent:w,menuStyle:c,menuStylePhone:m})]}):P}if(s==="row")return Rt(wFe,{owner:e,items:x?null:v,label:y,editing:i,linkAlign:l,linkRange:d,markCurrent:w,menuStyle:c,menuStylePhone:m,panelLook:{width:f,tintColor:g,tintOpacity:h}});let T=_=>Rt("ul",{className:$Tt,...or("menu"),children:Rt(mE,{owner:e,items:_,place:{place:"column"},wrap:(P,I)=>Rt("li",{className:_?gFe(a,I.index):`text-fg ${gFe(a,I.index)}`,...or("menu-item"),children:P})})});return x?Bs(z,{as:"div",className:"min-w-0",...or("menu-block"),children:[Rt("h4",{className:SY,...or("heading"),children:n?jo(n):u(Mce)}),T(null),Rt("p",{className:`mt-3 ${O4}`,children:u(zce)})]}):v.length===0||!L4(e)?Bs(z,{as:"div",className:"min-w-0",...or("menu-block"),children:[y?Rt("h4",{className:SY,...or("heading"),children:jo(y)}):null,i?Rt("p",{className:O4,children:v.length===0?u("This menu has no links yet \u2014 add them in {place}.",{place:u("Storefront \u2192 Menus")}):u(bFe)}):null]}):r&&S?Bs(z,{as:"details",className:"min-w-0 border-b border-line",...or("menu-block"),children:[Bs("summary",{className:"flex cursor-pointer list-none items-center justify-between py-3 font-mono text-[13px] uppercase tracking-[0.2em] text-fg-dim",children:[jo(y),Rt("span",{"aria-hidden":!0,children:"\uFF0B"})]}),Rt("div",{className:"pb-3",children:T(v)})]}):Bs(z,{as:"div",className:"min-w-0",...or("menu-block"),children:[y?Rt("h4",{className:SY,...or("heading"),children:jo(y)}):null,T(v)]})}import{jsx as XTt}from"react/jsx-runtime";var kFe={...x3e,render:({id:e,menu:t,heading:o,accordionMobile:n,showDividers:r,template:a,editor:i})=>XTt(uE,{owner:{id:String(e??""),type:"FooterMenu",template:a},menu:t,heading:o||void 0,accordionMobile:n,showDividers:r,editing:i?.isEditing})};import{jsx as fE}from"react/jsx-runtime";var TY=gt("FooterSocial"),EY={small:16,medium:20,large:24};function PY({iconStyle:e=ow,iconSize:t="medium",align:o,gap:n=0,editing:r=!1}){let a=lhe(),i=gae(DC(a));if(i.length===0)return r?fE(z,{as:"div","data-social-placeholder":"",className:"rounded border border-dashed border-line px-3 py-2 text-[13px] text-fg-dim",children:u("Add your social links")}):null;let s=(Object.hasOwn(EY,t)?EY[t]:void 0)??EY.medium,d={gap:Math.min(32,Math.max(0,Number.isFinite(n)?n:0)),"--social-mark":`${s}px`};return fE(z,{as:"ul","data-social-block":"","aria-label":"Social media",className:`flex list-none flex-wrap p-0 [margin:calc((44px-var(--social-mark))/-2)] max-view-wide:[margin:calc((40px-var(--social-mark))/-2)] ${Zd[Gm(o)??"left"]}`,style:d,...TY("social-block"),children:i.map(({platform:c,href:p,label:m})=>fE("li",{...TY("social-item"),children:fE("a",{href:p,target:"_blank",rel:"noopener noreferrer","aria-label":`${m} (opens in a new tab)`,className:"grid h-11 w-11 place-items-center rounded text-fg transition-colors hover:text-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-4px] focus-visible:outline-current motion-reduce:transition-none max-view-wide:h-10 max-view-wide:w-10",...TY("social-link"),children:fE(xie,{platform:c,iconStyle:e,size:s})})},c))})}var SFe={label:"Social Logos",defaultProps:{iconStyle:ow,iconSize:"medium",align:"left",gap:0}};import{jsx as ZTt}from"react/jsx-runtime";var TFe={...SFe,render:({iconStyle:e,iconSize:t,align:o,gap:n,editor:r})=>ZTt(PY,{iconStyle:e,iconSize:t,align:o,gap:n,editing:r?.isEditing})};import{PaymentMark as JTt,paymentMarks as QTt}from"efficient-shell/icons/payment";import{jsx as hE,jsxs as eEt}from"react/jsx-runtime";var _Y={sm:{mark:16,text:"text-[12px]"},md:{mark:20,text:"text-[13px]"}};function A4({lead:e,methods:t,size:o="sm",align:n,editing:r=!1}){let a=QTt(t);if(!a.length)return r?hE(z,{as:"div","data-payment-placeholder":"",className:"rounded border border-dashed border-line px-3 py-2 text-[13px] text-fg-dim",children:u("Add the ways you take payment")}):null;let{mark:i,text:s}=(Object.hasOwn(_Y,o)?_Y[o]:void 0)??_Y.sm;return eEt(z,{as:"div","data-footer-payment":"",className:`flex flex-wrap items-center gap-x-3 gap-y-1.5 leading-[1.5] text-fg-dim ${s} ${Zd[Gm(n)??"left"]}`,children:[e&&hE("span",{"aria-hidden":!0,children:e}),hE("ul",{"aria-label":e||u("Ways to pay"),className:"flex list-none flex-wrap items-center gap-x-3 gap-y-1.5 p-0 text-fg",children:a.map((l,d)=>hE("li",{className:"flex",children:hE(JTt,{item:l,size:i})},d))})]})}import{Fragment as oEt,jsx as CY}from"react/jsx-runtime";var tEt=()=>[{label:u("Cash"),kind:"cash"},{label:u("Card"),kind:"card"}],EFe={...P3e,render:e=>{let{lead:t,methods:o,size:n,align:r,editor:a}=e;if(dt(e)!==""){let s=Kt(e,!!a?.isEditing,tEt()).rows;return s.length?CY(A4,{lead:t,methods:s.map(l=>({name:l.label,kind:l.kind})),size:n,align:r}):CY(oEt,{})}let i=Array.isArray(o)?o:[];return CY(A4,{lead:t,methods:i.map(s=>({name:s.label})),size:n,align:r,editing:a?.isEditing})}};import{Fragment as nEt}from"react";import{jsx as RY,jsxs as rEt}from"react/jsx-runtime";var PFe={sm:"text-[12px]",md:"text-[13px]",lg:"text-[15px]"};function I4({text:e,size:t="md",tone:o="default",editing:n=!1,lines:r}){let a=`${Object.hasOwn(PFe,t)?PFe[t]:void 0} leading-[1.5] ${o==="dim"?"text-fg-dim":"text-fg"}`;if(r)return r.length?RY(z,{as:"p",className:a,children:r.map((s,l)=>rEt(nEt,{children:[l>0&&RY("br",{}),L(s)]},l))}):null;let i=e||(n?u("Add a line of footer text."):"");return i?RY(z,{as:"p",className:a,children:L(i)}):null}var _Fe={label:"Text",defaultProps:{size:"md",tone:"default"}};import{jsx as CFe}from"react/jsx-runtime";var aEt=()=>[{text:u("Add a line of footer text.")}],RFe={..._Fe,render:e=>{let{text:t,size:o,tone:n,editor:r}=e;if(dt(e)!==""){let a=Kt(e,!!r?.isEditing,aEt()).rows.map(i=>i.text??"").filter(Boolean);return CFe(I4,{lines:a,size:o,tone:n})}return CFe(I4,{text:t||void 0,size:o,tone:n,editing:r?.isEditing})}};import{useEffect as dEt}from"react";import{createContext as iEt,useCallback as WPn,useContext as sEt,useEffect as UPn,useMemo as GPn,useRef as $Pn,useState as KPn}from"react";import{jsx as ZPn}from"react/jsx-runtime";var lEt=iEt(null);function OFe(){return sEt(lEt)}import{jsx as Vn,jsxs as _v}from"react/jsx-runtime";function cEt({field:e,value:t,onChange:o,cornersClass:n=""}){let r={field:e,value:t,onChange:o};return e.type==="checkbox"?_v("label",{className:"flex items-start gap-3",children:[Vn(df,{...r,className:"mt-1 size-4 accent-accent"}),_v("span",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.16em] text-fg",children:[e.label,e.required?Vn("span",{className:"text-accent",children:" *"}):null]})]}):Vn($r,{label:e.label,required:e.required,children:Vn(df,{...r,className:(e.type==="textarea"?_u+" resize-y":_u)+n})})}function pEt(e,t,o){if(typeof e!="number"||!Number.isFinite(e))return null;let n=Ks(Math.max(0,e),o),r=lJ(t);return{style:{"--form-control-radius":r===null?n:cJ(n,r)},className:" [border-radius:var(--form-control-radius)]"}}function OY({formSlug:e,heading:t,intro:o,submitText:n,finePrint:r,form:a,editing:i=!1,nodeId:s="",thanks:l,showSent:d,buttonCorners:c,buttonCornerSides:p,buttonCornersUnit:m}={}){let f=he(),g=pr(),h=Hc(e,a),w=OFe();if(h===void 0)return Vn($l,{size:"short",children:u("Loading form\u2026")});if(h===null)return Vn($l,{size:"short",children:i?u("Choose a form in the inspector, under Form."):"This form is unavailable."});let b=(t??"").trim()||h.title;return Vn("section",{className:"relative z-[2] border-t border-line bg-surface",children:_v("div",{...Te(fe("mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[84px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",f),g),children:[b&&Vn("h2",{className:"mb-4 font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:b}),(o??"").trim()&&Vn("p",{className:"mb-12 max-w-[640px] font-display text-[16px] leading-[1.6] text-fg-dim",children:o}),Vn(NY,{form:h,formSlug:e,submitText:n,finePrint:r,editing:i,onSent:w?.markSent,nodeId:s,thanks:l,showSent:d,corners:pEt(c,p,m)})]})})}function mEt({account:e}){let t="font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim";switch(e?.status){case"approved":return _v("p",{className:t,children:["Your account is ready."," ",Vn(Be,{href:"/account",className:"underline",children:"Sign in"})]});case"pending":return Vn("p",{className:t,children:"We're reviewing your application and will email you once it's approved."});case"rejected":return Vn("p",{className:t,children:"We couldn't open an account from this application. Please contact the shop."});default:return null}}function NY({form:e,formSlug:t,submitText:o,finePrint:n,editing:r=!1,onSent:a,corners:i=null,nodeId:s="",thanks:l,showSent:d}){let{valueOf:c,set:p,honeypot:m,setHoneypot:f,submitting:g,done:h,account:w,error:b,handleSubmit:k}=lf({form:e,formSlug:t,editing:r});dEt(()=>{h&&a?.()},[h]);let x=(o??"").trim()||e.submitButtonText?.trim()||"Submit",v=y=>_v("div",{role:"status",className:"flex max-w-[560px] flex-col gap-3",children:[Vn("p",{className:"font-serif text-[19px] italic leading-[1.6] text-fg-dim",children:ux(e)}),y,Vn(mEt,{account:w})]});return h||O5(d,r)?Vn(s4,{ownerId:s,ownerType:"Form",Template:l,message:v(null),children:v}):_v("form",{className:"flex max-w-[720px] flex-col gap-5",style:i?.style,onSubmit:k,children:[e.fields.map(y=>Vn(cEt,{field:y,value:c(y.key),onChange:S=>p(y.key,S),cornersClass:i?.className},y.key)),Vn(fx,{value:m,onChange:f}),b&&Vn("p",{role:"alert",className:"font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:b}),Vn("button",{type:r?"button":"submit",disabled:g,className:`cursor-pointer self-start bg-btn px-8 py-4 font-mono text-[14px] uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg hover:text-bg disabled:cursor-wait disabled:opacity-60${i?.className??""}`,children:g?"Sending\u2026":x}),e.consentText?.trim()&&Vn("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:e.consentText}),(n??"").trim()&&Vn("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:n})]})}import{hidableText as gE}from"efficient-easel/screen/lib/document/hidable";import{BUTTON_STYLE_KEYS as NFe}from"efficient-easel/screen/lib/content/style-keys";import{BUTTON_CORNERS_UNIT_KEY as uEt}from"efficient-easel/screen/lib/content/length-units";import{jsx as fEt}from"react/jsx-runtime";var LFe=Ct("Form",{...O3e,render:e=>fEt(OY,{formSlug:gE(e.formSlug)||void 0,heading:gE(e.heading)||void 0,intro:gE(e.intro)||void 0,submitText:gE(e.submitText)||void 0,finePrint:gE(e.finePrint)||void 0,form:e.form,editing:e.editor?.isEditing,nodeId:typeof e.id=="string"?e.id:"",thanks:e[xs],showSent:e[Gu],buttonCorners:e[NFe.corners],buttonCornerSides:e[NFe.cornerSides],buttonCornersUnit:e[uEt]})});var AFe={label:"Legal Line"};import{jsx as hEt}from"react/jsx-runtime";var IFe={...AFe,render:({copyright:e})=>hEt(lE,{copyright:e})};var FFe={label:"Menu link",defaultProps:{}};import{jsx as gEt}from"react/jsx-runtime";var BFe={...FFe,render:()=>gEt(kY,{})};import{useEffect as bEt,useState as wEt}from"react";import{jsx as Kd,jsxs as bE}from"react/jsx-runtime";var xEt=3e4;function LY({show:e,title:t,row:o,contained:n,now:r}){let[a,i]=wEt(r??null),s=o?.zone??"",l=!!o?.week,d=!!r||ml(s)!=="";if(bEt(()=>{if(r){i(r);return}if(!l||!d){i(null);return}let c=()=>i(rce(s,Date.now()));c();let p=setInterval(c,xEt);return()=>clearInterval(p)},[r,s,l,d]),!o)return null;if(e==="badge"){if(!o.week||!d)return null;let c=a?ace(o.week,a):null;return Kd(It,{contained:n,className:"py-6",children:Kd(yEt,{label:c?ice(c):null,open:c?.open??!1})})}return!o.week&&!o.hours.length?null:Kd(It,{contained:n,className:"py-6",children:bE("div",{className:"flex max-w-[560px] flex-col gap-4",children:[t&&Kd("h2",{className:"font-heading3 text-[length:min(var(--size-headingSmall,28px),var(--sf-heading-max,9999px))] font-medium leading-[1.1] tracking-[-0.02em]",children:te(t,!1)}),o.week?Kd("ul",{className:"flex flex-col text-[15px]",children:sce(o.week).map(c=>{let p=a!==null&&a.day===c.day;return bE("li",{"aria-current":p?"date":void 0,className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1 rounded-sm border-b border-line px-3 py-2.5 last:border-b-0",style:p?{background:"color-mix(in oklab, var(--accent) 12%, transparent)"}:void 0,children:[bE("span",{className:p?"font-medium":void 0,children:[c.name,p&&Kd("span",{className:"opacity-70",children:` \xB7 ${Bu.today}`})]}),Kd("span",{className:c.closed?"tabular-nums opacity-60":"tabular-nums",children:c.closed?Bu.closed:c.periods})]},c.day)})}):Kd("div",{className:"flex flex-col gap-1 text-[15px] leading-[1.6]",children:o.hours.map((c,p)=>Kd("p",{children:c},p))})]})})}function yEt({label:e,open:t}){return e===null?bE("span",{"aria-hidden":!0,className:"invisible inline-flex items-center gap-2 rounded-md px-3 py-1.5 text-[14px]",children:[Kd("span",{className:"h-2 w-2 rounded-full"}),Bu.openNow]}):bE("span",{className:"inline-flex items-center gap-2 rounded-md px-3 py-1.5 text-[14px] tabular-nums",style:{background:t?"color-mix(in oklab, var(--green) 16%, transparent)":"color-mix(in oklab, var(--fg) 8%, transparent)"},children:[Kd("span",{"aria-hidden":!0,className:t?"h-2 w-2 shrink-0 rounded-full bg-green":"h-2 w-2 shrink-0 rounded-full bg-current opacity-50"}),e]})}import{readHidable as vEt}from"efficient-easel/screen/lib/document/hidable";import{parseOption as kEt}from"efficient-shell/format";import{jsx as EEt}from"react/jsx-runtime";var SEt=()=>[{week:UR,zone:"Australia/Sydney",hours:""}],TEt=e=>{let{text:t,hidden:o}=vEt(e);return o||!t?void 0:t},HFe={...B3e,render:e=>{let{rows:t,sample:o}=Kt(e,!!e.editor?.isEditing,SEt());return EEt(LY,{show:kEt(u4,rE,e.show),title:TEt(e.title),row:nce(t),contained:e.contained!==!1,now:o?lce:void 0})}};var DFe=e=>typeof e=="string"?e:"";function PEt(e){if(typeof e!="string"||!e.trim())return null;let t;try{t=JSON.parse(e)}catch{return null}return!Array.isArray(t)||!t.every(o=>o!==null&&typeof o=="object"&&!Array.isArray(o))?null:t.map(o=>({column:DFe(o.column),cell:{amount:DFe(o.amount),standard:o.standard===!0}}))}function MFe(e){let t=[],o=new Map;for(let n of e){let r=PEt(n.cells);if(r===null)continue;let a=n.group??"",i=o.get(a);i||(i={name:a,columns:r.map(l=>l.column),rows:[]},o.set(a,i),t.push(i));let s=i.columns.length;i.rows.push({label:n.label??"",cells:Array.from({length:s},(l,d)=>r[d]?.cell??{amount:"",standard:!1})})}return t}import{jsx as Hs,jsxs as Cv}from"react/jsx-runtime";var CEt="\u2013";function AY({title:e,description:t,groups:o,contained:n}){return o.length?Hs(It,{contained:n,className:"py-6",children:Cv("div",{className:"flex flex-col gap-10",children:[(e||t)&&Cv("div",{className:"flex max-w-[680px] flex-col gap-3",children:[e&&Hs("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium leading-[1.05] tracking-[-0.03em] max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:te(e,!1)}),t&&Bt(t).map((r,a)=>Hs("p",{className:"text-[15px] leading-[1.6] opacity-85",children:L(r)},a))]}),o.map((r,a)=>Hs(REt,{group:r},`${r.name}-${a}`))]})}):null}function REt({group:e}){let t=e.columns.length>4;return Cv("div",{className:"flex flex-col gap-3",children:[e.name&&Hs("h3",{className:"font-mono text-[12px] uppercase tracking-[0.18em]",children:L(e.name)}),Hs("div",{className:t?"overflow-x-auto":void 0,children:Cv("table",{className:t?"w-full min-w-[560px] border-collapse text-[15px] tabular-nums":"w-full border-collapse text-[15px] tabular-nums",children:[Hs("caption",{className:"sr-only",children:e.name}),Hs("thead",{children:Cv("tr",{className:"border-b border-line",children:[Hs("td",{className:"py-2"}),e.columns.map((o,n)=>Hs("th",{scope:"col",className:"py-2 pl-4 text-right align-bottom text-[12px] font-normal opacity-60",children:o},n))]})}),Hs("tbody",{children:e.rows.map((o,n)=>Cv("tr",{className:"border-b border-line last:border-b-0",children:[Hs("th",{scope:"row",className:"py-3 pr-2 text-left align-baseline font-normal",children:L(o.label)}),o.cells.map((r,a)=>Hs("td",{className:`whitespace-nowrap py-3 pl-4 text-right align-baseline${r.standard||!r.amount?" opacity-60":""}`,children:r.amount||CEt},a))]},n))})]})})]})}import{readHidable as NEt}from"efficient-easel/screen/lib/document/hidable";var OEt="location-rate-table",zFe={label:"Rate table",defaultProps:{title:"Rates",description:"What a visit costs.",dataSource:OEt}};import{jsx as AEt}from"react/jsx-runtime";var WFe=(e,t,o=!1)=>({column:e,amount:t,standard:o}),LEt=()=>{let e=[u("Standard"),u("VIP")],t=(o,n,r=!1)=>({group:o,label:n,cells:JSON.stringify([WFe(e[0],"$000"),WFe(e[1],"$000",r)])});return[t(u("First place"),u("First rate")),t(u("First place"),u("Second rate"),!0),t(u("Second place"),u("First rate"))]},UFe=e=>{let{text:t,hidden:o}=NEt(e);return o||!t?void 0:t},GFe={...zFe,render:e=>{let{rows:t}=Kt(e,!!e.editor?.isEditing,LEt());return AEt(AY,{title:UFe(e.title),description:UFe(e.description),groups:MFe(t),contained:e.contained!==!1})}};import{useEffect as IEt,useState as FEt}from"react";import{jsx as BEt,jsxs as HEt}from"react/jsx-runtime";function wE({text:e,className:t}){let[o,n]=FEt(!1);return IEt(()=>{if(!o)return;let r=setTimeout(()=>n(!1),2e3);return()=>clearTimeout(r)},[o]),HEt("button",{type:"button",className:t,onClick:()=>{navigator.clipboard?.writeText(e).then(()=>n(!0),()=>{})},children:[o?oi.copied:oi.copyId,BEt("span",{className:"sr-only","aria-live":"polite",children:o?` ${e}`:""})]})}var F6e=RHe(I6e()),Iv=4;function B6e(e){if(!e)return null;let t;try{({modules:t}=(0,F6e.create)(e,{errorCorrectionLevel:"M"}))}catch{return null}let o=t.size,n="";for(let r=0;r<o;r++){let a=0;for(;a<o;){if(!t.get(r,a)){a++;continue}let i=a;for(;a<o&&t.get(r,a);)a++;n+=`M${i} ${r}h${a-i}v1H${i}z`}}return{path:n,size:o}}import{jsx as H6e,jsxs as EPt}from"react/jsx-runtime";function M0({text:e,label:t,className:o}){let n=B6e(e);if(!n)return null;let r=n.size+Iv*2;return EPt("svg",{role:"img","aria-label":t,viewBox:`${-Iv} ${-Iv} ${r} ${r}`,shapeRendering:"crispEdges",className:o,"data-qr":"",children:[H6e("rect",{x:-Iv,y:-Iv,width:r,height:r,fill:"#fff"}),H6e("path",{d:n.path,fill:"#000"})]})}import{jsx as xp,jsxs as Fv}from"react/jsx-runtime";function JY({title:e,description:t,channels:o,contained:n}){return o.length?xp(It,{contained:n,className:"py-6",children:Fv("div",{className:"flex flex-col gap-6",children:[(e||t)&&Fv("div",{className:"flex max-w-[680px] flex-col gap-3",children:[e&&xp("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium leading-[1.05] tracking-[-0.03em] max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:te(e,!1)}),t&&Bt(t).map((r,a)=>xp("p",{className:"text-[15px] leading-[1.6] opacity-85",children:L(r)},a))]}),xp("ul",{className:"grid grid-cols-2 gap-3 md:gap-4 lg:grid-cols-4","data-messaging-cards":"",children:o.map(r=>Fv("li",{className:"flex min-w-0 flex-col items-center gap-3 rounded-[var(--radius-card,12px)] border border-line p-3 text-center md:p-5",children:[xp("p",{className:"font-heading2 text-[18px] font-medium leading-tight",children:r.name}),r.qr?xp(M0,{text:r.qr,label:oi.qrLabel(r.name,r.handle),className:"aspect-square w-full max-w-40 rounded-sm"}):xp("p",{className:"grid aspect-square w-full max-w-40 place-items-center rounded-sm border border-dashed border-line p-3 text-[13px] text-fg-dim",children:oi.searchFor(r.name)}),Fv("div",{className:"mt-auto flex flex-col items-center gap-1.5",children:[r.handle&&xp("p",{className:"break-all text-[14px] text-fg-dim",children:r.handle}),r.href?Fv("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",className:sh,children:[oi.open(r.name),Fv("span",{className:"sr-only",children:[" ",oi.opensApp]})]}):r.handle?xp(wE,{text:r.handle,className:sh}):xp("p",{className:"text-[14px] text-fg-dim",children:oi.scanWith(r.name)})]})]},r.app))})]})}):null}import{readHidable as PPt}from"efficient-easel/screen/lib/document/hidable";var D6e={label:"Messaging cards",defaultProps:{title:"Message us",description:"",dataSource:f4}};import{jsx as _Pt}from"react/jsx-runtime";var QY=()=>[{app:"wechat",name:"WeChat",handle:"yourvenue",href:"",qr:"https://u.wechat.com/yourvenue"},{app:"telegram",name:"Telegram",handle:"@yourvenue",href:"https://t.me/yourvenue",qr:"https://t.me/yourvenue"},{app:"whatsapp",name:"WhatsApp",handle:"0400 000 000",href:"https://wa.me/61400000000",qr:"https://wa.me/61400000000"},{app:"line",name:"LINE",handle:"yourvenue",href:"https://line.me/ti/p/~yourvenue",qr:"https://line.me/ti/p/~yourvenue"}],M6e=e=>{let{text:t,hidden:o}=PPt(e);return o||!t?void 0:t},z6e={...D6e,render:e=>{let{rows:t}=Kt(e,!!e.editor?.isEditing,QY());return _Pt(JY,{title:M6e(e.title),description:M6e(e.description),channels:h4(t),contained:e.contained!==!1})}};import{jsx as PE,jsxs as _E}from"react/jsx-runtime";function ej({heading:e,channels:t}){let o=t.filter(r=>r.qr),n=t.filter(r=>!r.qr&&r.handle);return!o.length&&!n.length?null:_E(z,{as:"div",className:"flex flex-col gap-2.5 text-[13px]","data-footer-messaging":"",children:[e&&PE("p",{children:e}),o.length>0&&PE("ul",{className:"flex flex-wrap gap-x-4 gap-y-3","aria-label":e||void 0,children:o.map(r=>_E("li",{className:"flex w-[72px] flex-col items-center gap-1.5 md:w-[88px]",children:[PE(M0,{text:r.qr,label:oi.qrLabel(r.name,r.handle),className:"aspect-square w-full rounded-sm"}),r.href?_E("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",className:"text-[12px] underline underline-offset-4",children:[r.name,_E("span",{className:"sr-only",children:[" ",oi.opensApp]})]}):PE("span",{className:"text-[12px]",children:r.name})]},r.app))}),n.map(r=>_E("p",{children:[r.name," ID ",PE("span",{className:"break-all",children:r.handle})]},r.app))]})}import{readHidable as CPt}from"efficient-easel/screen/lib/document/hidable";var W6e={label:"Messaging Strip",defaultProps:{heading:"Message us",dataSource:f4}};import{jsx as RPt}from"react/jsx-runtime";var U6e={...W6e,render:e=>{let{rows:t}=Kt(e,!!e.editor?.isEditing,QY()),{text:o,hidden:n}=CPt(e.heading);return RPt(ej,{heading:n?void 0:o||void 0,channels:h4(t)})}};import{jsx as ql,jsxs as Bv}from"react/jsx-runtime";var G6e={call:e=>e?`Call ${e}`:"Call",email:e=>e?`Email ${e}`:"Email"};function tj({title:e,description:t,contacts:o,contained:n}){return o.length?ql(It,{contained:n,className:"py-6",children:Bv("div",{className:"flex flex-col gap-6",children:[(e||t)&&Bv("div",{className:"flex max-w-[680px] flex-col gap-3",children:[e&&ql("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium leading-[1.05] tracking-[-0.03em] max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:te(e,!1)}),t&&Bt(t).map((r,a)=>ql("p",{className:"text-[15px] leading-[1.6] opacity-85",children:L(r)},a))]}),ql("ul",{className:"grid gap-3 sm:grid-cols-2 md:gap-4 lg:grid-cols-3","data-contact-cards":"",children:o.map((r,a)=>Bv("li",{className:"flex min-w-0 items-start justify-between gap-4 rounded-[var(--radius-card,12px)] border border-line p-4 md:p-5",children:[Bv("div",{className:"flex min-w-0 flex-col gap-1.5",children:[ql("p",{className:"font-mono text-[12px] uppercase tracking-[0.14em] text-fg-dim",children:r.way}),r.name&&ql("p",{className:"font-heading2 text-[18px] font-medium leading-tight",children:r.name}),ql("p",{className:"break-all text-[15px] text-fg-dim",children:r.handle}),ql("div",{className:"pt-1",children:r.kind==="phone"?ql("a",{href:r.href,className:sh,children:G6e.call(r.name)}):r.kind==="email"?ql("a",{href:r.href,className:sh,children:G6e.email(r.name)}):r.href?Bv("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",className:sh,children:[oi.open(r.way),Bv("span",{className:"sr-only",children:[" ",oi.opensApp]})]}):ql(wE,{text:r.handle,className:sh})})]}),r.qr&&ql(M0,{text:r.qr,label:oi.qrLabel(r.way,r.handle),className:"aspect-square w-24 shrink-0 rounded-sm"})]},a))})]})}):null}import{readHidable as OPt}from"efficient-easel/screen/lib/document/hidable";import{jsx as LPt}from"react/jsx-runtime";var NPt=()=>[{name:"Jessie",kind:"phone",value:"0400 000 000"},{name:"Saki",kind:"line",value:"yourvenue"}],$6e=e=>{let{text:t,hidden:o}=OPt(e);return o||!t?void 0:t},K6e={...K3e,render:e=>{let t=AV(e.contacts);return!t.length&&e.editor?.isEditing&&(t=AV(NPt())),LPt(tj,{title:$6e(e.title),description:$6e(e.description),contacts:t,contained:e.contained!==!1})}};import{jsx as oj}from"react/jsx-runtime";function nj({rating:e,field:t,editing:o}){let n=Da(),r=Number.parseFloat(t&&n?n.row[t]??"":""),a=t&&n?Number.isFinite(r)&&r>0?r:0:e;return a>0?oj(hx,{rating:a}):!o||t&&n?null:oj(z,{className:"opacity-60",children:oj(hx,{rating:lm})})}import{jsx as IPt}from"react/jsx-runtime";function APt(e){return typeof e=="number"&&Number.isFinite(e)&&e>0?e:0}var V6e={...Y3e,render:e=>IPt(nj,{rating:APt(e.rating),field:Xn(e),editing:!!e.editor?.isEditing})};import{useState as fh}from"react";import{jsx as da,jsxs as K4}from"react/jsx-runtime";var FPt="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[84px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",BPt="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-0 pb-[84px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]";function rj({eyebrow:e,title:t,designCode:o,omitHead:n=!1,editing:r=!1}={}){let a=he(),i=pr(),[s,l]=fh(""),[d,c]=fh(""),[p,m]=fh(0),[f,g]=fh(""),[h,w]=fh(""),[b,k]=fh(!1),[x,v]=fh(!1),[y,S]=fh(null);async function E(_){if(_.preventDefault(),!(r||b)){if(p<1){S("Choose a star rating.");return}k(!0),S(null);try{await Bo.submitReview({authorName:s.trim(),...d.trim()?{email:d.trim()}:{},rating:p,...f.trim()?{title:f.trim()}:{},body:h.trim(),...o?.trim()?{designCode:o.trim()}:{}}),v(!0)}catch{S("Something went wrong \u2014 your review wasn't sent. Please try again.")}finally{k(!1)}}}let T=x?da("p",{role:"status",className:"max-w-[560px] font-serif text-[19px] italic leading-[1.6] text-fg-dim",children:"Thanks \u2014 your review will appear once approved."}):K4("form",{className:"flex max-w-[720px] flex-col gap-5",onSubmit:E,children:[K4("div",{className:"grid grid-cols-2 gap-3 max-[640px]:grid-cols-1",children:[da($r,{label:"Name",required:!0,children:da("input",{type:"text",required:!0,value:s,onChange:_=>l(_.target.value),className:_u})}),da($r,{label:"Email \u2014 never shown publicly",children:da("input",{type:"email",value:d,onChange:_=>c(_.target.value),className:_u})})]}),K4("div",{className:"flex flex-col gap-2",children:[da(Vh,{required:!0,children:"Rating"}),da("div",{role:"group","aria-label":"Rating",className:"flex gap-1",children:[1,2,3,4,5].map(_=>da("button",{type:"button","aria-pressed":p>=_,"aria-label":`${_} star${_===1?"":"s"}`,onClick:()=>{m(_),S(null)},className:["cursor-pointer text-[30px] leading-none transition-colors",p>=_?"text-accent":"text-fg-dim/30 hover:text-fg-dim"].join(" "),children:"\u2605"},_))})]}),da($r,{label:"Review title (optional)",children:da("input",{type:"text",value:f,onChange:_=>g(_.target.value),className:_u})}),da($r,{label:"Your review",required:!0,children:da("textarea",{required:!0,rows:5,value:h,onChange:_=>w(_.target.value),className:_u+" resize-y"})}),y&&da("p",{role:"alert",className:"font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:y}),da("button",{type:r?"button":"submit",disabled:b,className:"cursor-pointer self-start bg-btn px-8 py-4 font-mono text-[14px] uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg hover:text-bg disabled:cursor-wait disabled:opacity-60",children:b?"Sending\u2026":"Submit review \u2192"})]});return n?da(yt,{className:"relative z-[2] border-t border-line bg-surface",column:BPt,padOnColumn:!0,children:T}):da(z,{as:"section",className:"relative z-[2] border-t border-line bg-surface",children:K4("div",{...Te(fe(FPt,a),i),children:[(e??"").trim()&&da(lt,{text:e??"",scaled:!1,className:"mb-4 block"}),(t??"").trim()&&da("h2",{className:"mb-12 font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:te(t??"",!1)}),T]})})}import{hidableText as HPt}from"efficient-easel/screen/lib/document/hidable";import{jsx as DPt}from"react/jsx-runtime";var Y6e=Ct("ReviewForm",{...q3e,render:e=>{let t=We(e.headPlacement)==="own-box",o=n=>t?void 0:n;return DPt(rj,{eyebrow:o(R(e.eyebrow,yv.eyebrow,e.editor)),title:o(R(e.title,yv.title,e.editor)),omitHead:t,designCode:HPt(e.designCode)||void 0,editing:e.editor?.isEditing})}});import{jsx as q6e}from"react/jsx-runtime";var j6e=()=>[{key:"sample-review-1",name:u("Sample reviewer"),rating:"5",title:u("Sample review title"),quote:u("Approved customer reviews appear here automatically \u2014 this card is only a preview of the section's shape.")},{key:"sample-review-2",name:u("Sample reviewer"),rating:"4",title:"",quote:u("Reviews are collected by the Review Form section and wait for your approval before they show.")},{key:"sample-review-3",name:u("Sample reviewer"),rating:"5",title:u("Another sample"),quote:u("Set a product design code on this section to show one product's reviews; leave it blank for the whole store.")}],MPt=(e,t)=>{let o=Number.parseFloat(e.rating??"");return{key:e.key||`review-${t}`,quote:e.quote??"",title:e.title??"",name:e.name??"",meta:e.dateLabel||e.role||"",...Number.isFinite(o)?{rating:o}:{}}},zPt=e=>(Array.isArray(e)?e:[]).map(nn).filter(t=>(t.quote??"").trim()),X6e=Ct("Reviews",{...e4e,render:e=>{let t=We(e.headPlacement)==="own-box",o=l=>t?void 0:l,n=!!e.editor?.isEditing,r,a=!1;if(dt(e)!==""){let l=Kt(e,n,j6e()),d=typeof e.limit=="number"&&e.limit>0?e.limit:6;r=l.sample?l.rows:l.rows.slice(0,d),a=l.sample}else r=zPt(e.items),!r.length&&n&&(r=j6e(),a=!0);let i=r.map(MPt),s=l=>q6e(vM,{look:cs(e.eyebrowLook,"Reviews"),eyebrow:o(R(e.eyebrow,vv.eyebrow,e.editor)),title:o(R(e.title,vv.title,e.editor)),omitHead:t,columns:e.columns,rows:i,sample:a,editing:n,cards:l});return q6e(Ge,{ownerId:String(e.id??""),ownerType:"Reviews",Template:e.template,rows:r,fallback:s(),children:l=>s(l)})}});import{useEffect as WPt,useState as UPt}from"react";var Z6e="data-footer-reveal";function aj(e){return e===!0}function J6e(e,t,o,n){return!aj(e)||n||!(t>0)||!(o>0)?!1:t<=o}import{jsx as Hv}from"react/jsx-runtime";var GPt=gt("SiteHeader")("header-content"),$Pt=gt("SiteFooter")("footer"),KPt={font:"--sf-header-tool-font",size:"--sf-header-tool-size"};function VPt(e){let t=Ku(e,KPt);return Object.keys(t).length?t:null}function YPt(e,t){let o=aj(e)&&!t,[n,r]=UPt(!1);return WPt(()=>{if(!o){r(!1);return}let a=document.querySelector('[data-section-group="footer"]');if(!a)return;let i=()=>r(J6e(e,a.getBoundingClientRect().height,window.innerHeight,t));i(),window.addEventListener("resize",i);let s=typeof ResizeObserver>"u"?null:new ResizeObserver(i);return s?.observe(a),()=>{window.removeEventListener("resize",i),s?.disconnect()}},[o,e,t]),n}function CE({place:e,sections:t,editing:o=!1,widths:n,navTextCase:r,menuRow:a,toolTextStyle:i,iconSize:s,cartIcon:l,revealOnScroll:d}){let c=e==="footer"?"footer":"div",p=AP(n),m=p.content==="full"?"100vw":p.contentMax===null?null:`${p.contentMax}px`,f=e==="footer"&&p.background==="content"?qm(ec):null,g=e==="header"?VPt(i):null,h=YPt(e==="footer"?d:void 0,o),w=m===null&&f===null&&g===null?void 0:{...f,...m===null?null:{"--sf-site-width":m},...g},b=Hv(z,{as:c,"data-section-group":e,...e==="header"?{"data-header-nav-case":Aw(r),"data-header-menu-row":jp(a)??"top",...g?{"data-header-tool-style":String(i)}:null}:null,...h?{[Z6e]:"on"}:null,className:o&&e==="footer"?"sf-theme-surfaces bg-bg text-fg":void 0,style:w,...e==="header"?GPt:$Pt,children:Hv(Goe,{value:{background:p.background,content:p.content==="content"?"content":null},children:Hv(t,{minEmptyHeight:120})})});return e==="header"?Hv(Vve,{children:Hv(gOe,{children:Hv(gA.Provider,{value:QR({cartIcon:l,iconSize:s}),children:b})})}):b}import{jsx as jPt}from"react/jsx-runtime";var Q6e={...o4e,render:({sections:e,editor:t,revealOnScroll:o,...n})=>jPt(CE,{place:"footer",sections:e,widths:n,editing:t?.isEditing,revealOnScroll:o})};import{parseOption as t_t}from"efficient-shell/format";import{useEffect as o_t,useState as n_t}from"react";import{useRootIsDark as r_t}from"efficient-shell/theme";import{useEffect as Dv,useLayoutEffect as qPt,useRef as XPt,useState as tBe}from"react";var eBe="data-header-fit";function ij(e){e.removeAttribute(eBe);let t=e.ownerDocument.defaultView;if(!t)return!1;let o=!1;for(let n of e.querySelectorAll("[data-header-band]")){if(t.getComputedStyle(n).display==="none")continue;let r=n.parentElement?.clientWidth??0,a=n.style.width;n.style.width="max-content";let i=n.offsetWidth;if(n.style.width=a,i>r+.5){o=!0;break}}return o&&e.setAttribute(eBe,"phone"),o}function V4({stickyMode:e,heightPx:t}){let o=XPt(null),[n,r]=tBe(!1),[a,i]=tBe(!1);return Dv(()=>{let s=o.current?.ownerDocument?.defaultView??window,l=t,d=s.scrollY;function c(){let p=s.scrollY;r(p>10),e==="on_scroll_up"&&(p<=l?i(!1):p>d+4?i(!0):p<d-4&&i(!1)),d=p}return c(),s.addEventListener("scroll",c,{passive:!0}),()=>s.removeEventListener("scroll",c)},[e,t]),Dv(()=>{e!=="on_scroll_up"&&i(!1)},[e]),Dv(()=>{let s=o.current?.ownerDocument?.documentElement;s&&s.style.setProperty(I_,`${t}px`)},[t]),Dv(()=>{let s=o.current,l=s?.ownerDocument,d=l?.defaultView;if(!s||!l||!d)return;let c="",p=f=>{let g=`${Math.round(f)}px`;g!==c&&(c=g,l.documentElement.style.setProperty(v6,g),l.body?.style.setProperty(v6,g))};if(typeof d.ResizeObserver!="function"){p(s.getBoundingClientRect().height);return}let m=new d.ResizeObserver(f=>{let g=f[0]?.borderBoxSize?.[0];p(g?g.blockSize:s.getBoundingClientRect().height)});return m.observe(s),()=>m.disconnect()},[]),Dv(()=>{let s=o.current?.ownerDocument?.documentElement;s&&s.setAttribute("data-header-sticky",e)},[e]),qPt(()=>{o.current&&ij(o.current)}),Dv(()=>{let s=o.current,l=s?.ownerDocument,d=l?.defaultView;if(!s||!l||!d)return;let c=!0,p=()=>{c&&ij(s)};s.addEventListener("load",p,!0),l.fonts?.ready.then(p,()=>{});let m=typeof d.ResizeObserver=="function"?new d.ResizeObserver(p):null;return m?.observe(s),()=>{c=!1,s.removeEventListener("load",p,!0),m?.disconnect()}},[]),{headerRef:o,scrolled:n,navHidden:a}}import{useEffect as ZPt,useState as JPt}from"react";function Y4(e,t){let o=ga(),[n,r]=JPt(!1);return ZPt(()=>{let a=e.current?.ownerDocument??document,i=()=>r(a.querySelector(`[${lie}="light"]`)!=null);i();let s=requestAnimationFrame(i);return()=>cancelAnimationFrame(s)},[e,o]),t==="light"?!0:t==="dark"?!1:n}import{useEffect as QPt,useState as e_t}from"react";function j4(e){let t=ga(),[o,n]=e_t(!1);return QPt(()=>{let r=()=>n(Yce(e.current?.ownerDocument??document));r();let a=requestAnimationFrame(r);return()=>cancelAnimationFrame(a)},[e,t]),o}import{jsx as sj}from"react/jsx-runtime";var a_t=gt("SiteHeader"),i_t=["none","always","on_scroll_up"],s_t=e=>t_t(i_t,"always",e);function lj({sticky:e,topTextColor:t,topTextCustom:o,linkOpacity:n,heightPx:r,theme:a,bandCapped:i=!1,children:s}){let l=s_t(e),d=Vce(r),{headerRef:c,scrolled:p,navHidden:m}=V4({stickyMode:l,heightPx:d}),f=tw(t),g=f==="auto"?null:{[YC]:f},h=jce(t,o),w=Jce(n),b=w===void 0?null:{[Xce]:""},k=e5(a),x=jR(ga()),[v,y]=n_t(null);o_t(()=>y(c.current?.ownerDocument??null),[c]);let S=!r_t({doc:v,whenUnset:!0}),E=j4(c),T=p||x||E,_=Y4(c,f),P=sj(dL.Provider,{value:T?null:h,children:s}),I=qR(S,x);return sj(z,{as:"header",ref:c,"data-scrolled":p||void 0,"data-box-header":"",...g,...b,className:["sf-site-header",...k?[k.className]:[],"flex flex-col justify-center",l==="none"?"absolute":"fixed","inset-x-0 top-0 z-50",T?"border-b border-line backdrop-blur-md":"border-b border-transparent","transition-[background,border-color,transform] duration-300 ease-out"].join(" "),style:{...k?k.style:null,minHeight:`var(${I_}, ${d}px)`,...i?qm(ec):null,...m?{transform:"translateY(-100%)"}:null,...T?{background:I,color:"var(--fg)","--sf-header-ground":I}:{color:"var(--sf-header-overlay-fg)","--sf-header-ground":"var(--sf-header-overlay-ground)"},...h?{"--sf-header-overlay-fg":h}:null,...w===void 0?null:{[Zce]:String(w/100)}},...a_t("header"),children:!T&&_?sj(HN,{children:P}):P})}function oBe(e){return{sticky:e.sticky,topTextColor:e.topTextColor,topTextCustom:e.topTextCustom,linkOpacity:e.linkOpacity,heightPx:e.heightPx,theme:e.sectionAccent,bandCapped:AP(e).background==="content"}}import{jsx as nBe}from"react/jsx-runtime";var rBe={...r4e,render:({sections:e,navTextCase:t,toolTextStyle:o,iconSize:n,cartIcon:r,menuRow:a,sticky:i,topTextColor:s,topTextCustom:l,linkOpacity:d,heightPx:c,sectionAccent:p,editor:m,...f})=>{let g=nBe(CE,{place:"header",sections:e,widths:f,navTextCase:t,menuRow:a,toolTextStyle:o,iconSize:n,cartIcon:r,editing:m?.isEditing});if(!m?.isEditing)return g;let h=oBe({sticky:i,topTextColor:s,topTextCustom:l,linkOpacity:d,heightPx:c,sectionAccent:p,...f});return nBe(lj,{sticky:h.sticky,topTextColor:h.topTextColor,topTextCustom:h.topTextCustom,linkOpacity:h.linkOpacity,heightPx:h.heightPx,theme:h.theme,bandCapped:h.bandCapped,children:g})}};import{hidableText as l_t}from"efficient-easel/screen/lib/document/hidable";var aBe={label:"Submit box",defaultProps:{}};import{jsx as d_t}from"react/jsx-runtime";var iBe={...aBe,render:e=>d_t(uM,{region:typeof e.region=="string"?e.region:void 0,eyebrow:un(e.eyebrow,Wt.eyebrow,e.editor),title:un(e.title,Wt.title,e.editor),body:un(e.body,Wt.body,e.editor),buttonText:un(e.buttonText,Wt.buttonText,e.editor),consent:un(e.consent,Wt.consent,e.editor),formSlug:l_t(e.formSlug)||void 0,form:e.form,editing:e.editor?.isEditing,styleField:e.styleField,styleTick:e.styleTick,styleThanks:e.styleThanks})};import{jsx as q4,jsxs as c_t}from"react/jsx-runtime";function RE(e,t){return e===void 0?t:e}function dj({eyebrow:e,title:t,body:o,buttonText:n,consent:r,formSlug:a,form:i,editing:s=!1,boxes:l,inBoxes:d=!1}){let c=RE(e,Wt.eyebrow),p=RE(t,Wt.title),m=RE(o,Wt.body),f=RE(n,Wt.buttonText),g=RE(r,Wt.consent),h=Hc(a,i),w=lf({form:h,formSlug:a,editing:s}),b=h===void 0,k=!!h||s;return!k&&!c&&!p&&!m?null:d&&l?q4(yt,{className:"border-y border-line py-[120px] max-view-desktop:py-[60px]",children:q4(l,{className:"grid grid-cols-2 items-start gap-[60px] max-view-desktop:grid-cols-1 max-view-desktop:gap-10"})}):c_t(yt,{className:"border-y border-line py-[120px] max-view-desktop:py-[60px]",column:"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-2 items-end gap-[60px] px-[var(--sf-site-gutter,40px)] max-view-desktop:grid-cols-1 max-view-desktop:gap-10 max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",children:[q4(Hhe,{eyebrow:c,title:p}),q4(kO,{body:m,buttonLabel:f,consent:g,form:h,submission:w,showForm:k,resolving:b,editing:s})]})}import{hidableText as p_t}from"efficient-easel/screen/lib/document/hidable";import{jsx as m_t}from"react/jsx-runtime";var sBe=Ct("SubmitBuild",{...l4e,render:e=>m_t(dj,{boxes:e.boxes,inBoxes:e.layout==="boxes",eyebrow:un(e.eyebrow,Wt.eyebrow,e.editor),title:un(e.title,Wt.title,e.editor),body:un(e.body,Wt.body,e.editor),buttonText:un(e.buttonText,Wt.buttonText,e.editor),consent:un(e.consent,Wt.consent,e.editor),formSlug:p_t(e.formSlug)||void 0,form:e.form,editing:e.editor?.isEditing})});import{useState as f_t}from"react";import{useCallback as lBe,useRef as u_t,useState as dBe}from"react";function X4({source:e,dryRun:t=!1}){let[o,n]=dBe("idle"),[r,a]=dBe(null),i=u_t(!1),s=lBe(()=>{i.current=!1,a(null),n("idle")},[]),l=lBe(async d=>{if(!i.current){if(!uw(d.email)){n("invalid");return}i.current=!0,a(null),n("sending");try{t||await Bo.createNewsletterSubscription(kde(d,e))}catch(c){i.current=!1,a(c),n("error");return}i.current=!1,n("sent")}},[e,t]);return{status:o,error:r,submit:l,reset:s}}import{jsx as ss,jsxs as z0}from"react/jsx-runtime";var yp={issueSubline:"text-[length:var(--size-body,13px)]",issueTitle:"text-[length:var(--size-body,16px)]",intro:"text-[length:var(--size-body,19px)]",note:"text-[length:var(--size-label,12px)]",label:"text-[length:var(--size-label,13px)]",field:"text-[length:var(--size-label,14px)]"};function h_t(e,t,o){let n=j0[yh(e)??"left"],r=zr("place",e,t,o,{atSectionLine:!0}),a=[n,r].filter(Boolean).join(" ");return a?` w-full ${a}`:""}function g_t(e,t,o){let n=Zl[yh(e)??"left"],r=zr("text",e,t,o,{atSectionLine:!0}),a=[n,r].filter(Boolean).join(" ");return a?` ${a}`:""}var b_t="border-b border-line py-[140px] max-view-desktop:py-20",w_t="border-b border-line pt-0 pb-[140px] max-view-desktop:pb-20",x_t="That didn't go through \u2014 please try again.",y_t="Please check your email address.";function OE({headNum:e,headTitle:t,headDesc:o,kicker:n,leadTitle:r,intro:a,emailPlaceholder:i,submitText:s,subscribedText:l,finePrint:d,issuesHeading:c,issues:p,archiveText:m,archiveHref:f,source:g=Bi.subscribeSection,editing:h=!1,align:w,alignTablet:b,alignPhone:k,textAlign:x,textAlignTablet:v,textAlignPhone:y,panel:S=!0,omitHead:E=!1}){let[T,_]=f_t(""),{status:P,submit:I}=X4({source:g,dryRun:h}),D=P==="sent",F=P==="sending",A=P==="error"||P==="invalid",N=(p??[]).filter(V=>(V?.n??"").trim()||(V?.title??"").trim()||(V?.date??"").trim()),B=N.length>0,Y=h_t(w,b,k),K=g_t(x,v,y),X=D?l||"Subscribed \u2713":F?"Sending\u2026":s||"Subscribe \u2192";function Z(V){V.preventDefault(),!D&&I({email:T})}return z0(yt,{className:E?w_t:b_t,children:[E?null:ss(Ma,{num:e,title:t?te(t,!0):void 0,desc:o,accentTracking:"-0.025em"}),z0("div",{className:S?B?"grid min-h-[460px] grid-cols-[1.1fr_1fr] border border-line max-view-desktop:grid-cols-1":"grid min-h-[460px] grid-cols-1 border border-line":B?"grid grid-cols-[1.1fr_1fr] gap-14 max-view-desktop:grid-cols-1 max-view-desktop:gap-10":"grid grid-cols-1",children:[z0("div",{className:(S?B?"flex flex-col justify-center gap-6 border-r border-line px-14 py-16 max-view-desktop:border-r-0 max-view-desktop:border-b max-view-desktop:px-8 max-view-desktop:py-12":"flex flex-col justify-center gap-6 px-14 py-16 max-view-desktop:px-8 max-view-desktop:py-12":"flex flex-col justify-center gap-6")+K,children:[n&&ss(lt,{text:n}),r&&ss("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.035em]",children:te(r,!0)}),a&&ss("p",{className:`max-w-[480px] font-serif ${yp.intro} italic leading-[1.5] text-fg-dim${Y}`,children:L(a,!0)}),z0("form",{className:`mt-2 flex max-w-[520px] max-view-tablet:flex-col${Y}`,onSubmit:Z,children:[ss("input",{type:"email",placeholder:i||"your@email.com","aria-label":"Email address",required:!0,value:T,onChange:V=>_(V.target.value),disabled:D,className:`${gc} border border-r-0 border-line max-view-tablet:w-full max-view-tablet:flex-none max-view-tablet:border-r max-view-tablet:border-b-0 bg-bg px-5 py-5 font-mono ${yp.field} uppercase tracking-[0.18em] text-fg placeholder:text-fg-dim outline-none focus:border-accent`}),ss("button",{type:"submit",disabled:D||F,className:`border border-btn bg-btn px-8 py-5 font-mono ${yp.label} uppercase tracking-[0.3em] text-btn-ink transition-colors hover:bg-fg hover:border-fg disabled:cursor-default disabled:opacity-90`,children:jo(X)})]}),A&&ss("p",{role:"alert",className:`max-w-[480px] font-mono ${yp.note} uppercase leading-[1.7] tracking-[0.18em] text-alert${Y}`,children:P==="invalid"?y_t:x_t}),d&&ss("p",{className:`max-w-[480px] font-mono ${yp.note} uppercase leading-[1.7] tracking-[0.18em] text-fg-dim${Y}`,children:L(d)})]}),B&&z0("div",{id:"sub-recent-issues",className:"grid grid-rows-[auto_1fr_auto] gap-6 bg-[var(--journal-panel-bg)] px-12 py-12 scroll-mt-[160px] max-view-desktop:px-8 max-view-desktop:py-10",children:[c&&ss(lt,{text:c,size:12}),ss("div",{className:"flex flex-col",children:N.map((V,j)=>z0("div",{className:["grid grid-cols-[60px_1fr_auto] items-start gap-5 border-b border-line py-5",j===0?"border-t border-line":""].join(" "),children:[ss("span",{className:`font-mono ${yp.label} tracking-[0.22em] text-accent`,children:V.n?L(V.n):""}),z0("span",{className:`font-display ${yp.issueTitle} font-medium leading-[1.3] tracking-[-0.01em]`,children:[V.title?L(V.title):"",V.small?.trim()&&ss("small",{className:`mt-1 block font-serif ${yp.issueSubline} font-normal italic text-fg-dim`,children:L(V.small,!0)})]}),ss("span",{className:`whitespace-nowrap pt-1 text-right font-mono ${yp.note} uppercase tracking-[0.22em] text-fg-dim`,children:V.date?L(V.date):""})]},j))}),m&&ss(Tt,{href:f||"/journal",className:`flex items-center justify-end gap-3 font-mono ${yp.note} uppercase tracking-[0.22em] text-accent hover:text-fg`,children:L(m)})]})]})]})}import{hidableText as Z4}from"efficient-easel/screen/lib/document/hidable";var cBe={ownPad:MA,label:"Subscribe Form",defaultProps:{headNum:"",headTitle:"",headDesc:"",kicker:"",leadTitle:"",intro:"",emailPlaceholder:"",submitText:"",subscribedText:"",finePrint:"",issuesHeading:"",issues:[],archiveText:"",archiveHref:""}};import{jsx as v_t}from"react/jsx-runtime";var pBe=Ct("Subscribe",{...cBe,render:e=>{let{headNum:t,headTitle:o,headDesc:n,kicker:r,leadTitle:a,intro:i,emailPlaceholder:s,submitText:l,subscribedText:d,finePrint:c,issuesHeading:p,issues:m,contentType:f,posts:g,limit:h,archiveText:w,archiveHref:b,align:k,alignTablet:x,alignPhone:v,textAlign:y,textAlignTablet:S,textAlignPhone:E,panel:T,editor:_}=e,P=We(e.headPlacement)==="own-box",I=D=>P?void 0:D;return v_t(OE,{headNum:I(R(t,Mo.headNum,_)),headTitle:I(R(o,Mo.headTitle,_)),headDesc:I(R(n,Mo.headDesc,_)),omitHead:P,kicker:R(r,Mo.kicker,_),leadTitle:R(a,Mo.leadTitle,_),intro:R(i,Mo.intro,_),emailPlaceholder:Z4(s)||Mo.emailPlaceholder,submitText:Z4(l)||Mo.submitText,subscribedText:Z4(d)||Mo.subscribedText,finePrint:R(c,Mo.finePrint,_),issuesHeading:R(p,Mo.issuesHeading,_),issues:x4(m4e(f),{issues:m,posts:g,limit:h,editor:_}),source:Bi.subscribeSection,editing:_?.isEditing,archiveText:R(w,Mo.archiveText,_),archiveHref:Z4(b)||Mo.archiveHref,align:k,alignTablet:x,alignPhone:v,textAlign:y,textAlignTablet:S,textAlignPhone:E,panel:T!==!1})}});import{hidableText as J4}from"efficient-easel/screen/lib/document/hidable";import{jsx as k_t}from"react/jsx-runtime";var mBe=Ct("SubscribeBlogs",{...b4e,render:e=>{let t=x4("posts",e);return k_t(OE,{headNum:R(e.headNum,Zo.headNum,e.editor),headTitle:R(e.headTitle,Zo.headTitle,e.editor),headDesc:R(e.headDesc,Zo.headDesc,e.editor),kicker:R(e.kicker,Zo.kicker,e.editor),leadTitle:R(e.leadTitle,Zo.leadTitle,e.editor),intro:R(e.intro,Zo.intro,e.editor),emailPlaceholder:J4(e.emailPlaceholder)||Zo.emailPlaceholder,submitText:J4(e.submitText)||Zo.submitText,subscribedText:J4(e.subscribedText)||Zo.subscribedText,finePrint:R(e.finePrint,Zo.finePrint,e.editor),issuesHeading:R(e.issuesHeading,Zo.issuesHeading,e.editor),issues:t,source:Bi.subscribeBlogsSection,editing:e.editor?.isEditing,archiveText:R(e.archiveText,Zo.archiveText,e.editor),archiveHref:J4(e.archiveHref)||Zo.archiveHref})}});var uBe={AppointmentBooking:y4e,BookingBox:S4e,ContactRouting:T4e,DealerFinder:P4e,SignUp:A4e,Events:F4e,Footer:K4e,FooterDivider:j4e,FooterEmailSignup:Z4e,FooterGroup:Q4e,FooterLogo:oFe,FooterMenu:kFe,ArticleBody:k4e,FooterSocial:TFe,FooterPayment:EFe,FooterText:RFe,Form:LFe,LegalLineBlock:IFe,MenuLinkBlock:BFe,OpeningHours:HFe,RateTable:GFe,MessagingCards:z6e,FooterMessaging:U6e,ContactCards:K6e,RatingBlock:V6e,ReviewForm:Y6e,Reviews:X6e,[Eb]:Q6e,[ps]:rBe,SubmitBox:iBe,SubmitBuild:sBe,Subscribe:pBe,SubscribeBlogs:mBe};var S_t={AppointmentBooking:fIe,BookingBox:gIe,ContactRouting:PIe,DealerFinder:_Ie,SignUp:NIe,Events:r3e,Footer:d3e,FooterDivider:p3e,FooterEmailSignup:m3e,FooterGroup:h3e,FooterLogo:b3e,FooterMenu:v3e,ArticleBody:S3e,FooterSocial:E3e,FooterPayment:_3e,FooterText:R3e,Form:A3e,LegalLineBlock:I3e,MenuLinkBlock:F3e,OpeningHours:H3e,RateTable:D3e,MessagingCards:M3e,FooterMessaging:z3e,ContactCards:V3e,RatingBlock:j3e,ReviewForm:Z3e,Reviews:t4e,[Eb]:n4e,[ps]:a4e,SubmitBox:s4e,SubmitBuild:d4e,Subscribe:g4e,SubscribeBlogs:w4e},io=vx(uBe,S_t);import{useEasel as R_t}from"efficient-easel/easel";import{useCallback as T_t,useEffect as wBe,useRef as E_t,useState as NE}from"react";import{rootIsDark as P_t,watchRootTheme as __t}from"efficient-shell/format";import{jsx as hBe}from"react/jsx-runtime";var fBe="sf-button inline-flex shrink-0 items-center whitespace-nowrap border border-btn bg-btn px-3 py-2 font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.12em] text-btn-ink transition-colors hover:border-btn-2 hover:bg-btn-2";function cj({href:e,label:t}){return e?hBe("a",{href:e,className:fBe,"data-header-call":"",children:t}):hBe("span",{className:fBe,"data-header-call":"",children:t})}function gBe({editorPreview:e,hasPreviewSettings:t,hasInitialSettings:o}){return!e&&!t&&!o}function bBe(e){let t=(e??"").trim();return JX(t,"#000000")===null?null:!wP(t)}import{Fragment as Q4,jsx as zo,jsxs as _n}from"react/jsx-runtime";var xBe={stacked:{grid:"hidden min-[1501px]:grid",flex:"hidden min-[1501px]:flex"},inline:{grid:"hidden view-tablet:grid",flex:"hidden view-tablet:flex"}},C_t=Array.from({length:Hce},()=>({href:"#",label:zo(dE,{})}));function pj({previewSettings:e,initialSettings:t,editorPreview:o,showThemeToggle:n,wordmark:r,hideLogo:a,hideMenu:i,siteName:s,commerceEnabled:l=!0}={}){let d=ga(),c=jR(d),[p,m]=NE(!1),{open:f,totals:g}=Fn(),{open:h}=Cw(),[w,b]=NE(!1),[k,x]=NE(null),[v,y]=NE(null),[S,E]=NE(t??null),T=e??(S?{logoUrl:S.logoUrl,reverseLogo:S.reverseLogo,logoReversed:S.logoReversed,logoInkIsDark:S.logoInkIsDark,logoPosition:S.logoPosition,logoSize:S.logoSize,logoSizePx:S.logoSizePx,logoSizeUnit:S.logoSizeUnit??null,menuItems:(S.menuItems??[]).map(xe=>({label:xe.label,url:xe.url,dropdown_menu:null,dropdown_items:xe.dropdownItems??[],dropdown_aside:xe.dropdownAside??null})),menuSplit:S.menuSplit??3,menuPosition:S.menuPosition,menuRow:S.menuRow,menuGapPx:S.menuGapPx??null,menuGapUnit:S.menuGapUnit??null,searchEnabled:S.searchEnabled,searchPosition:S.searchPosition,searchRow:S.searchRow,countrySelectorEnabled:S.countrySelectorEnabled,countrySelectorShowAs:S.countrySelectorShowAs,countryUrls:S.countryUrls,accountEnabled:S.accountEnabled,cartEnabled:S.cartEnabled,utilStyle:S.utilStyle,navTextCase:S.navTextCase,lightReverseText:S.lightReverseText,topTextColor:S.topTextColor,transparentTop:S.transparentTop,surface:S.surface,theme:S.theme,width:S.width,heightPx:S.heightPx,borderThickness:S.borderThickness??null,sticky:S.sticky,callButton:S.callButton,callPhone:S.callPhone,callHref:S.callHref}:null),_=a?null:T?.logoUrl??null,P=T?.reverseLogo??!1,I=T?.logoReversed??null,D=T?.logoInkIsDark??null,F=T?.logoPosition??"center",A=T?.logoSize??"medium",N=T?.logoSizePx??null,B=T?.logoSizeUnit??null,Y=Math.min(Math.max(T?.menuSplit??3,1),4),K=(T?.menuPosition??"left")==="center",X=(T?.menuPosition??"left")==="beside",Z=jp(T?.menuRow)==="inline",V=T?.menuGapPx??null,j=V!=null?{gap:XX(V,T?.menuGapUnit,"gap",dc)??`${V}px`}:void 0,J=Z?xBe.inline:xBe.stacked,C=T?.searchEnabled??!1,O=T?.searchPosition??"right",G=T?.countrySelectorEnabled??!0,$=Tc(T?.countrySelectorShowAs),H=T?.accountEnabled??!0,ee=T?.cartEnabled??!0,se=Iw(T?.utilStyle)==="text",pe=`mono-eyebrow${Aw(T?.navTextCase)==="capitalised"?" mono-eyebrow-plain":""}`,Ne=T?.countryUrls??{},ce=LP(T?.width),me=NP(ce)??void 0,Ce=T?.heightPx??li.default,Pe=Math.round(T?.borderThickness??1),ie=Number.isFinite(Pe)?Math.min(Math.max(Pe,0),20):1,Ae=T?.sticky??"always",At=tw(T?.topTextColor),Re=e5(T?.theme),Dt=Object.keys(Ne),we=m3(Dt.length?Dt:void 0),$e=G?zo(w0,{countries:Dt.length?Dt:void 0,urls:e?void 0:Ne,showAs:$}):null,{headerRef:ft,scrolled:ct,navHidden:xn}=V4({stickyMode:Ae,heightPx:Ce}),so=Re?JSON.stringify(Re.style):null;wBe(()=>{let xe=ft.current?.ownerDocument??document,Ze=xe.defaultView??window,yo=kr=>kr?bBe(Ze.getComputedStyle(kr).getPropertyValue("--bg")):null,Ko=()=>{b(!P_t({doc:xe,whenUnset:!0})),x(yo(xe.body)),y(yo(ft.current))};Ko();let Ei=__t(Ko,{doc:xe}),zs=new MutationObserver(Ko);return xe.body&&zs.observe(xe.body,{attributes:!0,attributeFilter:["style"]}),()=>{Ei(),zs.disconnect()}},[ft,so]);let Xt=n??Pp?zo(x0,{}):null;wBe(()=>{if(!gBe({editorPreview:!!o,hasPreviewSettings:!!e,hasInitialSettings:!!t}))return;let xe=!1;return Bo.getHeaderSettings().then(Ze=>!xe&&E(Ze)).catch(Ze=>{console.warn("[header] settings fetch failed; using built-in defaults",Ze)}),()=>{xe=!0}},[o,e,t]);let ht=j4(ft),nt=ct||c||ht,Yn=qR(w,c),Qt=Y4(ft,At),xo=nt||!Qt,yr=nt?v??w:(k??w)&&!Qt,Wo=At==="auto"?null:{[YC]:At},Cn=T_t(()=>m(!1),[]),eo=E_t(null);Nc({active:p,onDismiss:Cn,focusRef:eo,trapRef:eo});let Io=(xe,Ze,yo="start")=>zo(Pv,{item:xe,dropdownAlign:yo},Ze),et=!i&&(T?.menuItems?.length??0)>0,Gt=!!o||!!e,ko=et?T.menuItems.map(xe=>({href:xe.url||"",label:Eo(xe.label),plainLabel:xe.label,dropdownItems:(xe.dropdown_items??[]).map(Ze=>({href:Ze.url||"",label:Eo(Ze.label),plainLabel:Ze.label,description:Ze.description,image:Ze.image,badge:Ze.badge})),dropdownAside:Mi(xe.dropdown_aside)})):Gt?C_t.map(xe=>({...xe,plainLabel:"Menu item",dropdownItems:[]})):[],Ms=ko.length>0||l&&H||!!$e&&we||!!Xt,Ti=F==="center"?ko.slice(0,Y):F==="right"?ko:[],Na=F==="center"?ko.slice(Y):F==="left"?ko:[],wt=C&&l?zo(_S,{onClick:Gt?void 0:h,asText:se}):null,yn=l&&H?zo(PS,{asText:se}):null,vr=xe=>l&&ee?zo(ES,{onClick:f,count:g.sets,asText:se,className:xe}):null,Rn=T?.callPhone??"",Hr=T?.callHref??"",On=xe=>T?.callButton&&(Hr||Gt)?zo(cj,{href:Gt?"":Hr,label:xe?"Call":Rn||"Call"}):null,He=_n(Q4,{children:[O==="left"?wt:null,$e,Xt,yn,vr(),O==="right"?wt:null,On(!1)]}),tt=(xe,Ze=!1)=>zo(Be,{href:"/","aria-label":s?`${s} home`:"Home",className:xe,children:zo(hw,{variant:"header",scrolled:xo,src:_,reverse:P,onLightSurface:yr,reversedSrc:I,inkIsDark:D,size:A,sizePx:N,sizeUnit:B,wordmark:r,siteName:s,fitToContainer:Ze})}),Pt=tt("inline-flex shrink-0 items-center justify-center"),xt="flex min-w-0 flex-1 items-center overflow-x-clip [container-type:inline-size]";return _n(Q4,{children:[zo("header",{ref:ft,"data-scrolled":ct||void 0,...Wo,className:["sf-site-header",...Re?[Re.className]:[],Ae==="none"?"absolute":"fixed","inset-x-0 top-0 z-50","flex items-center","px-[var(--sf-site-gutter,40px)] max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))]",nt?"border-solid border-line backdrop-blur-md":"border-solid border-transparent","transition-[background,border-color,transform] duration-300 ease-out"].join(" "),style:{...Re?Re.style:null,minHeight:yte,borderBottomWidth:`${ie}px`,...xn?{transform:"translateY(-100%)"}:null,...nt?{background:Yn,color:"var(--fg)","--sf-header-ground":Yn}:{color:"var(--sf-header-overlay-fg)","--sf-header-ground":"var(--sf-header-overlay-ground)"}},children:_n("div",{className:"w-full",style:me,children:[K?_n("div",{"data-header-band":"",className:`${J.grid} grid-cols-[1fr_auto_1fr] items-center gap-8`,children:[F==="right"?zo("nav",{className:`${pe} flex items-center gap-8`,children:He}):zo("div",{className:"flex items-center",children:Pt}),zo("nav",{className:`${pe} flex items-center justify-center gap-8`,children:ko.map((xe,Ze)=>Io(xe,`${xe.href}-${Ze}`,"center"))}),F==="right"?zo("div",{className:"flex items-center justify-end",children:Pt}):zo("nav",{className:`${pe} flex items-center justify-end gap-8`,children:He})]}):F==="center"?_n("div",{"data-header-band":"",className:`${J.grid} grid-cols-[1fr_auto_1fr] items-center gap-8`,children:[zo("nav",{className:`${pe} flex items-center gap-8`,children:Ti.map((xe,Ze)=>Io(xe,`${xe.href}-${Ze}`))}),Pt,_n("nav",{className:`${pe} flex items-center justify-end gap-8`,children:[Na.map((xe,Ze)=>Io(xe,`${xe.href}-${Ze}`,"end")),He]})]}):X?_n("div",{"data-header-band":"",className:`${J.flex} items-center justify-between gap-8`,children:[_n("div",{className:"flex items-center gap-8",style:j,children:[Pt,zo("nav",{className:`${pe} flex items-center gap-8`,children:ko.map((xe,Ze)=>Io(xe,`${xe.href}-${Ze}`))})]}),zo("nav",{className:`${pe} flex items-center justify-end gap-8`,children:He})]}):zo("div",{"data-header-band":"",className:`${J.flex} items-center justify-between gap-8`,children:F==="right"?_n(Q4,{children:[_n("nav",{className:`${pe} flex items-center gap-8`,children:[ko.map((xe,Ze)=>Io(xe,`${xe.href}-${Ze}`)),He]}),Pt]}):_n(Q4,{children:[Pt,_n("nav",{className:`${pe} flex items-center gap-8`,children:[ko.map((xe,Ze)=>Io(xe,`${xe.href}-${Ze}`)),He]})]})}),!Z&&_n("div",{"data-header-band":"",className:"hidden view-tablet:max-[1501px]:flex flex-col gap-3",children:[_n("div",{className:"flex items-center justify-between",children:[tt(xt,!0),_n("div",{className:`${pe} flex shrink-0 items-center gap-5`,children:[wt,$e,Xt,yn,vr(),On(!1)]})]}),zo("nav",{className:`${pe} flex items-center gap-6 border-t border-line/60 pt-3`,children:ko.map((xe,Ze)=>Io(xe,`${xe.href}-${Ze}`))})]}),_n("div",{"data-header-phone":"",className:"hidden max-view-tablet:flex items-center justify-between",children:[tt(xt,!0),_n("div",{className:"flex shrink-0 items-center gap-4",children:[wt,yn,vr(pe),On(!0),Ms&&_n("button",{type:"button","aria-label":p?"Close menu":"Open menu","aria-expanded":p,onClick:()=>m(xe=>!xe),className:"flex h-11 w-11 flex-col items-center justify-center gap-2",children:[zo("span",{className:`block h-px w-5 bg-current transition-transform ${p?"translate-y-[3px] rotate-45":""}`}),zo("span",{className:`block h-px w-5 bg-current transition-transform ${p?"opacity-0":""}`}),zo("span",{className:`block h-px w-5 bg-current transition-transform ${p?"-translate-y-[3px] -rotate-45":""}`})]})]})]})]})}),p&&_n("div",{ref:eo,role:"dialog","aria-modal":"true","aria-label":"Menu",tabIndex:-1,"data-header-phone-menu":"",className:"fixed inset-x-0 top-0 bottom-0 z-40 hidden flex-col gap-8 overflow-y-auto bg-bg px-6 pt-24 pb-10 max-view-tablet:flex",children:[ko.map((xe,Ze)=>zo(Pv,{item:xe,mobile:!0,onNavigate:()=>m(!1)},`${xe.href}-${Ze}`)),_n("div",{className:"mt-auto flex flex-col gap-4 border-t border-line pt-6",children:[l&&H&&_n("div",{className:"flex items-center justify-between",children:[zo("span",{className:"mono-eyebrow text-fg-dim",children:"Account"}),zo(Be,{href:"/account",onClick:()=>m(!1),className:"mono-eyebrow underline",children:"Your account"})]}),$e&&we&&_n("div",{className:"flex items-center justify-between",children:[zo("span",{className:"mono-eyebrow text-fg-dim",children:"Region"}),$e]}),Xt&&_n("div",{className:"flex items-center justify-between",children:[zo("span",{className:"mono-eyebrow text-fg-dim",children:"Theme"}),Xt]})]})]})]})}import{jsx as yBe}from"react/jsx-runtime";function vBe(){let{settings:e,websiteName:t,templateChrome:o,templateName:n,chromePlaceholder:r,themeSwitchShown:a}=Zn(),i=o?n?.trim()||u("Template"):t?.trim()||vu,s=o||r;return yBe("div",{className:"sf-theme-surfaces",children:yBe(pj,{previewSettings:e??void 0,editorPreview:!0,showThemeToggle:a,wordmark:i,hideLogo:s,hideMenu:s})})}import{jsx as kBe}from"react/jsx-runtime";function mj({editing:e=!1}){return e?kBe(O_t,{}):null}function O_t(){return R_t(t=>(t.appState.data.content??[]).some(o=>o?.type===ps))?null:kBe(vBe,{})}import{jsx as A_t}from"react/jsx-runtime";var N_t={[_r]:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment"},LE="column";function L_t({id:e,template:t,menu:o,dataSource:n,dataRows:r,heading:a,accordionMobile:i,showDividers:s,direction:l,linkAlign:d,linkRange:c,menuStyle:p,currentPage:m,menuStylePhone:f,menuPanelWidth:g,menuPanelTintColor:h,menuPanelTintOpacity:w,editor:b,...k}){return A_t(uE,{owner:{id:String(e??""),type:_r,template:t},menu:o,served:dt({dataSource:n})?Kt({dataSource:n,dataRows:r},!!b?.isEditing).rows:void 0,heading:a||void 0,accordionMobile:i,showDividers:s,layout:zU(l),linkAlign:d,linkRange:c,menuStyle:p,currentPage:m,pageQuery:kI(k)||void 0,menuStylePhone:f,menuPanelWidth:g,menuPanelTintColor:h,menuPanelTintOpacity:w,editing:b?.isEditing})}function SBe(e){for(let[o,n]of Object.entries(N_t))e[o]={...e[n]};let t=e.MenuBlock;t.defaultProps={...t.defaultProps,direction:LE},t.render=L_t}import{useEffect as eF,useRef as I_t,useState as AE}from"react";function TBe(e){let t={};for(let o of yC){let n=e[o];n&&Object.assign(t,Ku(n,jne[o]))}return t}import{Fragment as H_t,jsx as Ft,jsxs as xr}from"react/jsx-runtime";var EBe={eyebrow:"[&>span]:text-[length:var(--pp-eyebrow-size,var(--size-label,12px))]",formEyebrow:"[&>span]:text-[length:var(--pp-formeyebrow-size,var(--size-label,13px))]"},F_t=50,tF="font-[family-name:var(--pp-fieldlabel-font,var(--font-mono))] text-[length:var(--pp-fieldlabel-size,12px)]";function B_t(e){let t=CP({sectionAccent:ab(e.sectionAccent)}),o=dJ(e.sectionCorners,e.sectionCornerSides);return{className:t?.className??"",style:{...t?.style??{},...o??{},...TBe(e.textStyles)}}}function PBe({content:e,open:t=!0,onClose:o,onSent:n,inline:r=!1,prefillEmail:a="",source:i=Bi.popup,mode:s="chosen",form:l}){let d=s==="chosen"?e.formSlug:"",c=Hc(d||void 0,r?void 0:l??null),p=!!d&&!!c,[m,f]=AE(""),[g,h]=AE(""),[w,b]=AE(()=>new Set(e.interests.slice(0,1))),[k,x]=AE(e.frequencies[0]??""),{status:v,error:y,submit:S,reset:E}=X4({source:i,dryRun:r}),T=v==="sending",_=v==="invalid"?e.emailInvalidText:v==="error"?y instanceof sr?y.message:e.submitErrorText:null,[P,I]=AE(""),D=I_t(null);if(eF(()=>{t&&E()},[t,E]),eF(()=>{v==="sent"&&!r&&n?.()},[v]),eF(()=>{if(r||!t)return;let J=window.setTimeout(()=>D.current?.focus(),F_t);return()=>window.clearTimeout(J)},[r,t]),eF(()=>{!t||!a||h(a)},[t,a]),!r&&!t)return null;function F(J){b(C=>{let O=new Set(C);return O.has(J)?O.delete(J):O.add(J),O})}function A(J){J.preventDefault();let C=g.trim().toLowerCase();I(C),S({email:C,firstName:m,interests:[...w],frequency:k})}let N=e.successBody.replace(/\{email\}/g,P).replace(/\{issue\}/g,e.issueNumber),B=B_t(e),Y=e.formSide==="left",K=xr("div",{className:"flex flex-wrap items-center justify-between gap-5 uppercase tracking-[0.18em] text-fg-dim",children:[xr("span",{className:"flex items-center gap-2 font-[family-name:var(--pp-fineprint-font,var(--font-mono))] text-[length:var(--pp-fineprint-size,12px)]",children:[Ft("span",{className:"block h-1.5 w-1.5 rounded-full bg-accent"}),L(e.finePrint)]}),!r&&Ft("button",{type:"button",onClick:o,className:"font-[family-name:var(--pp-dismiss-font,var(--font-mono))] text-[length:var(--pp-dismiss-size,12px)] uppercase tracking-[0.18em] text-fg-dim underline underline-offset-[3px] transition-colors hover:text-fg",children:L(e.dismissText)})]}),X=xr(H_t,{children:[Ft("span",{className:`contents [&>span]:font-[family-name:var(--pp-formeyebrow-font,var(--font-mono))] ${EBe.formEyebrow}`,children:Ft(lt,{text:e.formLabel,scaled:!1,className:"mb-5"})}),Ft("h2",{id:"subscribe-modal-title",className:"font-[family-name:var(--pp-formheading-font,var(--font-display))] text-[length:var(--pp-formheading-size,34px)] font-medium uppercase leading-none tracking-[-0.025em] [&_em]:font-serif [&_em]:normal-case [&_em]:tracking-[-0.02em]",children:te(e.formHeading)}),Ft("p",{className:"mt-4 font-[family-name:var(--pp-formintro-font,var(--font-serif))] text-[length:var(--pp-formintro-size,17px)] italic leading-[1.55] text-fg-dim",children:L(e.formIntro,!0)})]}),Z="px-12 py-12 max-[880px]:px-8 max-[880px]:py-8",V;p&&c?V=xr("div",{className:`relative flex min-h-[560px] flex-col max-[880px]:min-h-0 ${Z}`,children:[X,Ft("div",{className:"mt-8",children:Ft(NY,{form:c,formSlug:d,editing:r,onSent:n})}),Ft("div",{className:"mt-auto pt-8",children:K})]}):v!=="sent"?V=xr("form",{onSubmit:A,noValidate:!0,className:`relative flex min-h-[560px] flex-col max-[880px]:min-h-0 ${Z}`,children:[X,xr("div",{className:"mt-8 flex flex-col gap-5",children:[Ft($r,{label:L(e.firstNameLabel),required:!0,labelFace:tF,children:Ft("input",{type:"text",value:m,onChange:J=>f(J.target.value),placeholder:e.firstNamePlaceholder,required:!0,className:"border border-line bg-surface px-4 py-4 font-display text-[15px] tracking-[-0.005em] text-fg outline-none transition-colors placeholder:tracking-[0.04em] placeholder:text-fg-dim focus:border-accent"})}),Ft($r,{label:L(e.emailLabel),required:!0,labelFace:tF,children:Ft("input",{type:"email",value:g,onChange:J=>h(J.target.value),placeholder:e.emailPlaceholder,required:!0,className:"border border-line bg-surface px-4 py-4 font-display text-[15px] tracking-[-0.005em] text-fg outline-none transition-colors placeholder:tracking-[0.04em] placeholder:text-fg-dim focus:border-accent"})}),xr("div",{className:"mt-2 flex flex-col gap-3",children:[Ft(Vh,{labelFace:tF,children:L(e.interestsLabel)}),Ft("div",{className:"flex flex-wrap gap-2",children:e.interests.map((J,C)=>{let O=w.has(J);return Ft("button",{type:"button",onClick:()=>F(J),"aria-pressed":O,className:["select-none border px-4 py-3 font-[family-name:var(--pp-option-font,var(--font-mono))] text-[length:var(--pp-option-size,12px)] uppercase tracking-[0.22em] transition-all",O?"border-accent bg-accent text-bg":"border-line text-fg-dim hover:text-fg"].join(" "),children:J},`${J}-${C}`)})})]}),e.frequencies.length>0&&xr("div",{className:"mt-2 flex flex-col gap-3",children:[Ft(Vh,{labelFace:tF,children:L(e.frequencyLabel)}),Ft("div",{className:"flex border border-line",children:e.frequencies.map((J,C)=>{let O=k===J;return Ft("button",{type:"button",onClick:()=>x(J),"aria-pressed":O,className:["flex-1 px-3 py-4 font-[family-name:var(--pp-option-font,var(--font-mono))] text-[length:var(--pp-option-size,12px)] uppercase tracking-[0.24em] transition-all",C<e.frequencies.length-1?"border-r border-line":"",O?"bg-accent text-bg":"text-fg-dim hover:text-fg"].join(" "),children:J},`${J}-${C}`)})})]})]}),xr("div",{className:"mt-auto flex flex-col gap-4 pt-8",children:[_&&Ft(hs,{role:"alert",children:_}),xr("button",{type:"submit",disabled:T,className:"group flex items-center justify-between gap-5 border border-btn bg-btn px-6 py-5 font-mono text-[14px] uppercase tracking-[0.3em] text-btn-ink transition-colors hover:border-fg hover:bg-fg disabled:cursor-wait disabled:opacity-60 disabled:hover:border-btn disabled:hover:bg-btn",children:[Ft("span",{children:e.submitText}),Ft("span",{className:"transition-transform group-hover:translate-x-[4px]",children:T?"\u2026":"\u2192"})]}),K]})]}):V=xr("div",{className:"flex min-h-[560px] flex-col justify-center gap-6 px-12 py-12 max-[880px]:min-h-0 max-[880px]:px-8 max-[880px]:py-8",style:{animation:"subscribe-fade 0.25s ease"},children:[Ft("div",{className:"flex h-16 w-16 items-center justify-center border border-accent font-display text-[32px] text-accent",children:"\u2713"}),Ft("h3",{className:"font-[family-name:var(--pp-doneheading-font,var(--font-display))] text-[length:var(--pp-doneheading-size,38px)] font-medium uppercase leading-none tracking-[-0.025em] [&_em]:font-serif [&_em]:normal-case [&_em]:tracking-[-0.02em]",children:te(e.successHeading)}),Ft("p",{className:"max-w-[440px] font-[family-name:var(--pp-donebody-font,var(--font-serif))] text-[length:var(--pp-donebody-size,18px)] italic leading-[1.55] text-fg-dim",children:L(N,!0)}),!r&&Ft("button",{type:"button",onClick:o,className:"self-start border border-line px-6 py-5 font-mono text-[14px] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:L(e.keepBrowsingText)})]});let j=xr("div",{className:`relative w-[min(1100px,100%)] overflow-hidden border border-line bg-bg [border-radius:var(--sf-section-radius,0px)] max-[880px]:border-x-0 max-[880px]:border-b-0 ${B.className}`.trim(),style:{...B.style,background:"var(--bg)",color:"var(--fg)",boxShadow:r?"0 30px 80px -30px rgba(0,0,0,0.5)":"0 60px 120px -20px rgba(0,0,0,0.7)",animation:r?void 0:"subscribe-rise 0.35s cubic-bezier(.2,.7,.2,1)"},children:[!r&&Ft("button",{ref:D,type:"button",onClick:o,"aria-label":"Close popup",className:"absolute right-[18px] top-[18px] z-[5] flex h-[38px] w-[38px] items-center justify-center border border-line font-mono text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-fg max-[880px]:right-3 max-[880px]:top-3 max-[880px]:h-11 max-[880px]:w-11",style:{background:"color-mix(in oklab, var(--bg) 85%, transparent)"},children:"\u2715"}),xr("div",{className:["grid max-h-[calc(100vh-48px)] overflow-hidden max-[880px]:max-h-[88dvh] max-[880px]:grid-cols-1 max-[880px]:overflow-auto",Y?"grid-cols-[1fr_1.05fr]":"grid-cols-[1.05fr_1fr]"].join(" "),children:[xr("aside",{className:["relative flex min-h-[560px] flex-col justify-between overflow-hidden border-line px-[var(--sf-site-gutter,40px)] py-12 max-[880px]:min-h-[380px] max-[880px]:border-r-0 max-[880px]:border-l-0 max-[880px]:border-b max-[880px]:px-8 max-[880px]:py-8",Y?"order-2 border-l max-[880px]:order-none":"border-r",e.valuePanelOnPhone?"":"max-[880px]:hidden"].join(" "),style:{background:"var(--subscribe-panel-bg)"},children:[Ft("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:"repeating-linear-gradient(0deg, transparent 0 28px, color-mix(in oklab, var(--accent) 4%, transparent) 28px 29px), repeating-linear-gradient(90deg, transparent 0 28px, color-mix(in oklab, var(--accent) 3%, transparent) 28px 29px)"}}),xr("div",{"aria-hidden":!0,className:"pointer-events-none absolute -right-[120px] -bottom-[120px] z-[1] h-[520px] w-[520px] rounded-full border opacity-50 max-[880px]:-right-[100px] max-[880px]:-bottom-[100px] max-[880px]:h-[340px] max-[880px]:w-[340px]",style:{borderColor:"color-mix(in oklab, var(--accent) 22%, transparent)"},children:[Ft("div",{className:"absolute inset-[60px] rounded-full border",style:{borderColor:"color-mix(in oklab, var(--accent) 18%, transparent)"}}),Ft("div",{className:"absolute inset-[140px] rounded-full border",style:{borderColor:"color-mix(in oklab, var(--accent) 14%, transparent)"}})]}),xr("div",{className:["relative z-[2] flex items-start justify-between font-[family-name:var(--pp-meta-font,var(--font-mono))] text-[length:var(--pp-meta-size,12px)] uppercase tracking-[0.3em] text-fg-dim",Y&&!r?"pr-[52px]":""].join(" "),children:[Ft("span",{children:L(e.metaLabel)}),(e.issueLabel||e.issueNumber)&&xr("span",{children:[L(e.issueLabel)," ",Ft("strong",{className:"font-normal text-accent",children:e.issueNumber})]})]}),xr("div",{className:"relative z-[2] flex flex-col gap-5 py-8",children:[Ft("span",{className:`contents [&>span]:font-[family-name:var(--pp-eyebrow-font,var(--font-mono))] ${EBe.eyebrow}`,children:Ft(lt,{text:e.kicker,size:12,scaled:!1})}),Ft("h2",{className:"font-[family-name:var(--pp-heading-font,var(--font-display))] text-[length:var(--pp-heading-size,clamp(40px,4.8vw,68px))] font-medium uppercase leading-[0.92] tracking-[-0.04em] text-fg [&_em]:font-serif [&_em]:normal-case [&_em]:tracking-[-0.03em]",children:te(e.heading)}),Ft("p",{className:"max-w-[420px] font-[family-name:var(--pp-body-font,var(--font-serif))] text-[length:var(--pp-body-size,18px)] italic leading-[1.5]",style:{color:"color-mix(in oklab, var(--fg) 85%, transparent)"},children:L(e.deck,!0)})]}),e.stats.length>0&&Ft("div",{className:"relative z-[2] grid grid-cols-2 gap-5 border-t pt-6",style:{borderColor:"color-mix(in oklab, var(--accent) 18%, var(--site-line))"},children:e.stats.map((J,C)=>xr("div",{children:[Ft("div",{className:"mb-2 font-[family-name:var(--pp-statname-font,var(--font-mono))] text-[length:var(--pp-statname-size,11px)] uppercase tracking-[0.24em] text-fg-dim",children:L(J.label)}),Ft("div",{className:"font-[family-name:var(--pp-statvalue-font,var(--font-display))] text-[length:var(--pp-statvalue-size,22px)] font-medium tracking-[-0.015em] text-fg",children:L(J.value)})]},`${J.label}-${C}`))})]}),V]})]});return r?Ft("div",{className:"flex w-full justify-center p-6","data-subscribe-preview":!0,children:j}):xr($i,{site:{blur:8,sheetOnPhone:!0,animation:"subscribe-fade 0.25s ease"},labelledBy:"subscribe-modal-title",open:t,onClose:o,children:[j,Ft("style",{children:`
|
|
30
|
+
${d.src}`)})}),s&&r&&MK("div",{className:"mt-2 truncate font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-fg-dim",children:r.name})]})}import{jsx as o4}from"react/jsx-runtime";function WK({show:e=!0,showSingle:t=!1}){let o=Lr(),n=ks(),r=o.kind==="wheel"?o.sel:null,a=r!=null&&(t?r.finishes.length>0&&r.availability.some(Boolean):r.showSwatches);return e&&r&&a?o4(yx,{children:o4(zK,{finishes:r.finishes,availability:r.availability,selectedIdx:r.selectedIdx,hoverIdx:r.hoverIdx,activeFinish:r.finish,onSelect:r.setSelectedIdx,onHover:r.setHoverIdx,showLabel:!1})}):o4(yx,{children:n&&e?o4("div",{"aria-hidden":!0,className:"mt-4 h-4"}):null})}var UK={label:"Colour",defaultProps:{}};import{jsx as GK}from"react/jsx-runtime";function evt(){return GK(WK,{showSingle:fr().rules.showSingle})}var DAe={...UK,render:e=>GK(er,{label:UK.label??"",editing:!!e.editor?.isEditing,children:GK(evt,{})})};var $K={label:"Buy button",defaultProps:{[my]:Nf},sitsInBox:!0};import{jsx as MAe}from"react/jsx-runtime";var zAe={...$K,render:e=>MAe(er,{label:$K.label??"",editing:!!e.editor?.isEditing,onHero:!0,children:MAe(mS,{look:xEe(e[my])})})};var KK={label:"Price",defaultProps:{}};import{Fragment as nvt,jsx as uv}from"react/jsx-runtime";function tvt({children:e}){return fr().ownerId?uv(z,{children:e}):uv(nvt,{children:e})}function ovt({region:e,heroLook:t}){let{rules:o}=fr();return uv(zG,{setTotal:o.setTotal,wasFollowsSize:o.wasFollowsSize,priceWord:t.priceWord,heroLook:t,region:e})}var WAe={...KK,render:e=>{let t=!!e.editor?.isEditing;return uv(er,{label:KK.label??"",editing:t,onHero:!0,children:uv(tvt,{children:uv(ovt,{heroLook:{priceWord:bT.find(o=>o===e.priceWord),unitWords:wT.find(o=>o.value===e.unitWords)?.value,setBadge:e.setBadge!==!1,show:jf.find(o=>o.value===e.show)?.value},region:{nodeId:typeof e.id=="string"?e.id:void 0,partStyles:Oi(e),editing:t}})})})}};import{phoneKey as svt}from"efficient-easel/draw";import{useCallback as UAe,useMemo as VK,useState as rvt}from"react";import{Fragment as VAe,jsx as $n,jsxs as fv}from"react/jsx-runtime";var KAe="lugs";function YK({owner:e,look:t,lookPhone:o,shown:n,showSort:r,openingSort:a,filtersBelow:i,fieldUsage:s,firstRows:l,editing:d}){let{currency:c}=Lt(),p=bs(),{ref:m,scope:f}=bRe({filtersBelow:i,openingSort:a}),{state:g}=f,h=f.live?f.rows:l??f.rows,w=VK(()=>[...new Set(h.map(zt))],[h]),b=VK(()=>{let X=Pw(h,g,c,w,s??[],"pass").filter(Z=>Z.key!=="collections"||n.includes("category"));if(n.includes("lugs")){let Z=avt(h,g,c);Z&&X.push(Z)}return X.map(Z=>({...Z,label:p(Z.label)}))},[h,g,c,w,s,n,p]),k=n.includes("price")?_R(h,c):null,x=n.includes("inStock")&&h.length>0?ER(h,g,c):null,v=Qh(w.length?w:["alloy-wheel"]),y=f.update,S=UAe(X=>y({...X,page:1}),[y]),E=UAe((X,Z)=>y(V=>{if(X===KAe){let C=Number(Z),O=(V.lugs??[]).includes(C);return{...V,page:1,lugs:O?(V.lugs??[]).filter(G=>G!==C):[...V.lugs??[],C]}}let j=V[X].map(String),J=j.includes(Z)?j.filter(C=>C!==Z):[...j,Z];return{...V,page:1,[X]:X==="diameters"?J.map(Number):J}}),[y]),T=r&&!f.sortInChips,_=VK(()=>{let X=$Ee(b,g,x).map(Z=>({...Z,options:Z.options.map(V=>({...V,press:Z.key===r0?()=>S({inStockOnly:!g.inStockOnly}):()=>E(Z.key,V.value)}))}));return k?[...X,{key:xS,label:ld.price,options:[]}]:X},[b,g,x,k,S,E]),P={owner:e,items:_,state:g,sorts:v,showSort:T,set:S,bounds:k},I=X=>S({priceMin:X}),D=X=>S({priceMax:X}),F=X=>$n(vS,{facets:b,filters:g,noun:Vr(w.length?w:["alloy-wheel"]),inStockCount:x,onToggle:E,onInStockOnly:Z=>S({inStockOnly:Z}),onClearAll:f.clear,price:k?{label:ld.price,control:$n(Sm,{bounds:k,min:g.priceMin,max:g.priceMax,onMin:I,onMax:D})}:void 0,foot:X,owner:{id:e.id,facetTemplate:e.facetTemplate,railTemplate:e.railTemplate,railHeadTemplate:e.railHeadTemplate,type:Fi},editing:d}),A=F(T?$n(n4,{...P}):void 0),N=fv("div",{className:"flex items-center justify-between gap-4",children:[$n(CS,{filters:g,editing:d,children:F(void 0)}),T&&$n(n4,{...P})]}),B=t==="rail"?A:t==="button"?N:$n($Ae,{...P,columns:t==="bar-columns"}),K=o===t||o==="bar"&&(t==="bar-pills"||t==="bar-columns")?null:o==="button"?N:o==="rail"?A:$n($Ae,{...P,columns:!1});return fv(z,{as:"div",ref:m,"data-shopper-filters":"",className:"w-full",children:[K?fv(VAe,{children:[$n("div",{className:"max-view-wide:hidden",children:B}),$n("div",{className:"view-wide:hidden",children:K})]}):B,d&&f.grids===0&&$n("p",{className:`mt-2 font-mono ${No.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:"Filters a Product Grid in this Box"})]})}function avt(e,t,o){let n=new Map,r=new Set;for(let i of e){let s=zt(i)==="alloy-wheel"?Zh(i):null;s!==null&&(r.add(s),vc(i,t,o,"lugs","pass")&&n.set(s,(n.get(s)??0)+1))}if(r.size<=eg)return null;let a=t.lugs??[];return{key:KAe,label:ld.lugs,options:[...r].sort((i,s)=>i-s).map(i=>({value:String(i),label:Xh(i),count:n.get(i)??0,checked:a.includes(i),swatch:null}))}}function n4({state:e,sorts:t,set:o}){return $n(Ld,{value:e.sort,keys:t,labels:pd,onChange:n=>o({sort:n})})}function ivt(e,t){return e.key===xS?(t.priceMin!=null?1:0)+(t.priceMax!=null?1:0):e.options.filter(o=>o.state.selected).length}function GAe({owner:e,items:t,state:o,set:n,bounds:r,wrap:a}){let i=d=>n({priceMin:d}),s=d=>n({priceMax:d}),l=(d,c)=>{let p=t[c.index],m=p.key===xS?fv(VAe,{children:[d,$n(Sm,{bounds:r,min:o.priceMin,max:o.priceMax,onMin:i,onMax:s})]}):d;return a(m,p)};return $n(Ge,{ownerId:e.id,ownerType:Fi,Template:e.template,rows:t.map(nn),items:t,fallback:null,wrapCopy:l,children:d=>d})}function $Ae({columns:e,...t}){let[o,n]=rvt(null),r=a=>()=>n(i=>i===a?null:a);return e?fv("div",{className:"flex flex-col gap-4",children:[$n("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(200px,1fr))] gap-6 border-y border-line py-4",children:$n(GAe,{...t,wrap:(a,i)=>$n("div",{children:a},i.key)})}),t.showSort&&$n("div",{className:"flex flex-wrap items-center justify-end gap-4",children:$n(n4,{...t})})]}):fv("div",{className:"relative flex flex-wrap items-center gap-2 @container",children:[$n(GAe,{...t,wrap:(a,i)=>$n(Ff,{labelSize:No.labelSmall,name:i.key,label:i.label,badge:ivt(i,t.state),open:o===i.key,onToggle:r(i.key),children:a},i.key)}),t.showSort&&$n("div",{className:"ml-auto",children:$n(n4,{...t})})]})}import{jsx as lvt}from"react/jsx-runtime";var YAe={...I5e,render:e=>lvt(YK,{owner:{id:String(e.id??""),template:e.template,facetTemplate:e[Ua],railTemplate:e[Ga],railHeadTemplate:e[$a]},look:nPe(e.look),lookPhone:rPe(e[svt("look")]),shown:dPe(e.filtersShown),showSort:e.showSort!==!1,openingSort:SA(e.openingSort),filtersBelow:e.filtersBelow===!0,fieldUsage:e.fieldUsage,firstRows:e[JS],editing:e.editor?.isEditing})};import{Fragment as qAe,jsx as gr,jsxs as XAe}from"react/jsx-runtime";var dvt="\u2715";function jK({owner:e,showCount:t,showClear:o,showSort:n,firstShown:r,editing:a}){let{ref:i,scope:s,gallery:l}=LI("chips",null,{count:t,sort:n}),{currency:d}=Lt(),p=(!s?.live&&r?{state:s?.state??{...lr,sort:r.sort},update:()=>{},clear:()=>{},total:r.total,range:r.range,kinds:r.kinds}:null)??(s?{...s,kinds:[...new Set(s.rows.map(zt))]}:null);if(!p&&l)return gr(z,{as:"div",ref:i,"data-shopper-chips":"",children:gr(cvt,{owner:e,gallery:l,showCount:t,showClear:o,showSort:n,editing:a})});if(!p)return gr(z,{as:"div",ref:i,"data-shopper-chips":"",children:a&&gr("p",{className:`font-mono ${No.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:"Filter chips show the picks of a Filters block, or the Tags of a Gallery, in this Box"})});let{state:m,update:f,clear:g,total:h,range:w,kinds:b}=p,k=Vr(b.length?b:["alloy-wheel"]),x=Nu(m),v=KEe(m,d,ba).map(E=>({...E,mark:dvt,press:()=>f(T=>VEe(T,E))})),y=XAe(qAe,{children:[t&&gr("div",{"data-shopper-count":"",className:"contents",children:gr(IS,{total:h,range:w??{from:h?1:0,to:h},noun:k})}),v.length>0&&gr(jAe,{owner:e,chips:v,editing:a}),o&&x&&gr(Lf,{onClick:g})]}),S=Qh(b.length?b:["alloy-wheel"]);return gr(z,{as:"div",ref:i,"data-shopper-chips":"",children:gr(AS,{start:y,end:n?gr(Ld,{value:m.sort,keys:S,labels:pd,onChange:E=>f({sort:E,page:1})}):void 0})})}function jAe({owner:e,chips:t,selected:o,editing:n}){let r=If(t,{item:a=>a,selected:(a,i)=>i===o,press:a=>a.press});return gr("ul",{className:"flex list-none flex-wrap items-center gap-2",children:gr(Ge,{ownerId:e.id,ownerType:Au,Template:e.template,rows:r.items.map(nn),items:r.items,states:o===void 0?void 0:r.states,actions:n?void 0:r.actions,pressTitles:e.pressTitles,fallback:null,wrapCopy:a=>gr("li",{children:a}),children:a=>a})})}function cvt({owner:e,gallery:t,showCount:o,showClear:n,showSort:r,editing:a}){let{tags:i,tag:s,sort:l,shown:d,pick:c,setSort:p,clear:m}=t,f=[{label:u("All"),mark:"",press:()=>c(null)},...i.map(h=>({label:h,mark:"",press:()=>c(h)}))],g=XAe(qAe,{children:[o&&gr("div",{"data-shopper-count":"",className:"contents",children:gr(IS,{total:d,range:{from:d?1:0,to:d},noun:pvt})}),i.length>0&&gr(jAe,{owner:e,chips:f,selected:s===null?0:i.indexOf(s)+1,editing:a}),n&&s!==null&&gr(Lf,{onClick:m})]});return gr(AS,{start:g,end:r?gr(Ld,{value:l,keys:oRe,labels:nRe,onChange:p}):void 0})}var pvt={many:"items"};import{jsx as mvt}from"react/jsx-runtime";var ZAe={...H5e,render:e=>mvt(jK,{owner:{id:String(e.id??""),template:e.template,pressTitles:pl(e,Nt)},showCount:e.showCount!==!1,showClear:e.showClear!==!1,showSort:e.showSort===!0,firstShown:e[QS],editing:e.editor?.isEditing})};import{useSyncExternalStore as eIe}from"react";var uvt={"alloy-wheel":"stockCard",tyre:"tyreVerdicts"},JAe={source:"stockCard"};function QAe(e){if(!e)return JAe;let t=uvt[e.kind];return t==="tyreVerdicts"&&e.kind==="tyre"&&e.source.variants.length>0?{source:t,slug:e.source.slug,variants:e.source.variants}:JAe}import{jsx as XT}from"react/jsx-runtime";var fvt=()=>null,hvt=()=>null,gvt=Tse({make:"",model:"",year:0,modification:""});function bvt({product:e,editing:t=!1,label:o=""}){let n=QAe(e),r=eIe(Xa.subscribeStock,Xa.readStock,fvt),a=eIe(Xa.subscribe,Xa.read,hvt),i=n.source==="tyreVerdicts"?n:null,{answer:s,loading:l,retry:d}=av(i?.slug??"",i&&!t?sw(a?.vehicle):null),c=t?XT(z,{"data-host-part-sample":"",className:"opacity-60",children:u(o)}):null;return i?t?XT(z,{"data-host-part-sample":"",className:"opacity-60",children:XT(mv,{variants:i.variants,answer:gvt,headline:u("A sample. On the live page each size shows its own verdict for the shopper's car.")})}):XT(mv,{variants:i.variants,answer:s,loading:l,onRetry:d}):r?XT(IT,{loading:r.loading,error:r.error,data:r.stock}):c}function qK({editing:e=!1,label:t=""}){let o=Oo(),n=Wn(e&&!o);return bvt({product:o?.product??n,editing:e,label:t})}var XK={label:"Fitment answer",defaultProps:{}};import{jsx as wvt}from"react/jsx-runtime";var tIe={...XK,render:e=>wvt(qK,{label:XK.label??"",editing:!!e.editor?.isEditing})};var ZK={label:"Picture",defaultProps:{indexBadge:hC,showBadge:!0}};import{jsx as oIe}from"react/jsx-runtime";var nIe={...ZK,render:e=>oIe(er,{label:ZK.label??"",editing:!!e.editor?.isEditing,children:oIe(t$,{imageBackground:e.imageBackground,cardImage:e.cardImage,coverIndex:e.coverIndex,indexBadge:e.indexBadge,showBadge:e.showBadge,setFlags:e.setFlags,frame:e.frame,swatch:e.swatch,shadow:e.shadow,shadowColor:e.shadowColor,shadowOn:e.shadowOn})})};var r4={label:"Specs",defaultProps:{sizes:!1}};import{jsx as nh}from"react/jsx-runtime";function xvt({show:e,editing:t}){let o=Mn()?.product,n=e==="sizes"&&o?.kind==="alloy-wheel"?ML(o.source.sizes):null;return n?nh(QL,{oneLine:!0,children:n}):t?nh(r$,{label:r4.label??""}):null}function yvt({sizes:e,show:t,editing:o}){return Mn()?nh(xvt,{show:t,editing:o}):nh(vvt,{sizes:e,show:t})}function vvt({sizes:e,show:t}){let{fieldUsage:o,tyreFieldUsage:n,fit:r}=fr(),a=Lr().kind==="tyre";return nh(QL,{oneLine:t==="sizes"&&!a,children:nh(lEe,{sizes:e,show:a?"all":t,fieldUsage:a?n:o,car:r})})}var rIe={...r4,render:e=>nh(er,{label:r4.label??"",editing:!!e.editor?.isEditing,onHero:!0,children:nh(yvt,{sizes:e.sizes===!0,show:eA.find(t=>t.value===e.show)?.value??"all",editing:!!e.editor?.isEditing})})};var JK={label:"Buy",defaultProps:{buy:!0,page:!0}};import{jsx as aIe}from"react/jsx-runtime";var iIe={...JK,render:e=>aIe(er,{label:JK.label??"",editing:!!e.editor?.isEditing,children:aIe(mS,{buy:e.buy!==!1,page:e.page!==!1})})};import{Fragment as Svt,jsx as ZT,jsxs as sIe}from"react/jsx-runtime";var kvt="mb-2.5 flex items-center gap-2.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.2em] text-accent";function QK({eyebrow:e,badge:t,region:o}){return ZT(Ll,{region:o,sectionType:"ProductEyebrow",children:ZT(z,{as:"div",...Ol(o,"eyebrow"),className:kvt,children:sIe(Nl,{region:o,at:"eyebrow",children:[ZT("span",{children:e}),t&&sIe(Svt,{children:[ZT("span",{children:"\xB7"}),ZT("span",{children:t})]})]})})})}var eV={label:"Eyebrow",defaultProps:{}};import{Fragment as Rvt,jsx as Kl,jsxs as Ovt}from"react/jsx-runtime";function Tvt(e){let{fieldUsage:t,tyreFieldUsage:o,eyebrow:n}=fr();if(e.kind==="tyre"){let s=(n.tyreBrand??n.brand)&&Ou(o)("brand")&&e.tyre.brand||null,l=n.kindLabel?Vr(["tyre"]).one:null;return kW(l,s)}let r=e.kind==="wheel"?e.wheel:null,a=r&&n.brand?ww(r):null,i={kindLabel:r?n.kindLabel:null,brand:a?Eo(a):null,process:r&&n.process&&r.process?Eo(r.process):null};return WEe(i,t)}function Evt({state:e,children:t}){return Kl(Rvt,{children:t(Tvt(e),null)})}var Pvt="data-product-crumbs";function _vt({product:e}){let t=e.crumbs.slice(1,-1);return t.length===0?null:Kl("nav",{"aria-label":"Breadcrumb",[Pvt]:"",className:"text-xs text-fg-dim",children:t.map((o,n)=>Ovt("span",{children:[n>0&&" / ",o.href?Kl(Tt,{href:o.href,className:"hover:text-fg",children:Kl(_0,{text:o.label})}):Kl(_0,{text:o.label})]},`${o.label}-${n}`))})}function Cvt({props:e,region:t}){let o=Mn(),n=Zc(),{reserveEyebrow:r}=fr(),a=P5(e[Ui])==="headline",i=(s,l)=>a?Kl(QK,{eyebrow:s,badge:e[pg]===!0?l:null,region:t}):Kl(RL,{reserve:r,region:t,children:s});return o&&Upe(e[C1])==="crumbs"?Kl(_vt,{product:o.product}):o?i(o.title.eyebrow?Kl(_0,{text:o.title.eyebrow}):null,o.title.badge):n?Kl(Evt,{state:n,children:i}):null}var lIe={...eV,render:e=>{let t=!!e.editor?.isEditing;return Kl(er,{label:eV.label??"",editing:t,onHero:!0,children:Kl(Cvt,{props:e,region:{nodeId:typeof e.id=="string"?e.id:void 0,partStyles:Oi(e),editing:t}})})}};import{VIEW_TIERS as Nvt}from"efficient-easel/screen/lib/content/view-tiers";import{Fragment as Mvt,jsx as a4,jsxs as dIe}from"react/jsx-runtime";var Lvt=.72;function Avt(e,t=!0){let o=e.trim().split(/\s+/).filter(Boolean);if(o.length===0)return;let n=o.map((r,a)=>r.length+(t&&o.length>1&&a===o.length-1?1:0));return`calc(100cqi / ${(Math.max(...n)*Lvt).toFixed(2)})`}var cIe="text-[length:min(min(var(--size-headingMedium,clamp(48px,5.5vw,84px)),var(--hero-name-fit,9999px)),var(--sf-heading-max,9999px))]",Ivt=`font-heading2 ${cIe} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] leading-[0.92] tracking-[-0.035em]`,Fvt=cIe,Bvt=e=>o_(e?.partStyles?.[ed("name")])?.textStyle!==void 0,Hvt=e=>{let t=e?.partStyles?.[ed("name")];return!!t&&Nvt.some(o=>!!bQ(t,o).fontSize)},Dvt=(e,t)=>({"--hero-name-fit":e,...e&&t?{[gQ]:e}:{}});function tV({name:e,accentLastWord:t,region:o}){let n=t?e.lastIndexOf(" "):-1,r=a4(Nl,{region:o,at:"name",children:n===-1?e:dIe(Mvt,{children:[e.slice(0,n)," ",dIe("em",{className:"font-normal italic text-accent",children:[e.slice(n+1),"."]})]})});return a4(Ll,{region:o,sectionType:"ProductName",children:a4(z,{as:"div",className:"w-full [container-type:inline-size]",children:a4("h1",{...Ol(o,"name"),className:Bvt(o)?Fvt:Ivt,style:Dvt(Avt(e,t),Hvt(o)),children:r})})})}var oV={label:"Name",defaultProps:{},partSizeCaps:{[ed("name")]:!0}};import{jsx as i4}from"react/jsx-runtime";function zvt({props:e,region:t}){let o=Mn(),n=Zc();return P5(e[Ui])==="headline"?i4(tV,{name:o?o.title.name:oW(n)??"",accentLastWord:e[cg]===!0,region:t}):i4(ZL,{region:t,fixedHeight:e.fixedHeight!==!1,children:o?o.title.name:void 0})}var pIe={...oV,render:e=>{let t=!!e.editor?.isEditing;return i4(er,{label:oV.label??"",editing:t,onHero:!0,children:i4(zvt,{props:e,region:{nodeId:typeof e.id=="string"?e.id:void 0,partStyles:Oi(e),editing:t}})})}};var mIe={AccountBlock:POe,AlloyWheelsListing:COe,BundleOffer:MOe,CartBlock:WOe,CatalogFilterBar:eNe,CheckoutCTA:oNe,CollectionCard:aNe,Collections:sNe,CompatibleTyres:lNe,CountrySwitchBlock:cNe,DeliveryOptions:mNe,DetailRows:vNe,EuTyreLabel:ONe,EuTyreLabelBlock:LNe,WheelDiagram:ANe,FitmentFinder:HNe,FitmentTable:nLe,Gallery:iLe,GalleryB:pLe,GalleryItem:fLe,Header:gLe,ProductGallery:QLe,ProductGrid:Jy,ProductHero:fAe,ProductRef:gAe,RelatedProducts:xAe,SearchBlock:vAe,SpecTable:EAe,ThemeSwitchBlock:_Ae,TyreFitment:LAe,TyreSizes:IAe,ProductSize:BAe,ProductColour:DAe,ProductPrice:WAe,ProductBuyButton:zAe,FilterBlock:YAe,FilterChipsBlock:ZAe,FitmentPicker:DNe,StockFitment:tIe,ProductPicture:nIe,ProductSpecs:rIe,ProductBuy:iIe,ProductEyebrow:lIe,ProductName:pIe,ProductSku:rOe};var Wvt={AccountBlock:xSe,AlloyWheelsListing:d_e,BundleOffer:p_e,CartBlock:m_e,CatalogFilterBar:y_e,CheckoutCTA:k_e,CollectionCard:P_e,Collections:O_e,CompatibleTyres:L_e,CountrySwitchBlock:A_e,DeliveryOptions:B_e,DetailRows:$_e,EuTyreLabel:K_e,EuTyreLabelBlock:V_e,WheelDiagram:Y_e,FitmentFinder:q_e,FitmentTable:oCe,Gallery:mCe,GalleryB:kCe,GalleryItem:ACe,Header:ICe,ProductGallery:$Ce,ProductGrid:FRe,ProductHero:s5e,ProductRef:p5e,RelatedProducts:u5e,SearchBlock:f5e,SpecTable:T5e,ThemeSwitchBlock:E5e,TyreFitment:P5e,TyreSizes:_5e,ProductSize:C5e,ProductColour:R5e,ProductPrice:A5e,ProductBuyButton:O5e,FilterBlock:B5e,FilterChipsBlock:D5e,FitmentPicker:J_e,StockFitment:M5e,ProductPicture:Z5e,ProductSpecs:Q5e,ProductBuy:tOe,ProductEyebrow:nOe,ProductName:sOe,ProductSku:aOe},St=vx(mIe,Wvt);import{group as Uvt}from"efficient-easel/screen/lib/document/box-fields";var JT={boxes:{type:"slot",allow:["BookingBox"]},...F5},uIe={ownPad:$Pe,label:"Booking Form",fields:JT,defaultProps:{eyebrow:"",heading:"",intro:"",buttonLabel:"",successMessage:""}};var nV={not:{field:"layout",is:"boxes"}},Gvt={any:[nV,{field:"headPlacement",is:"own-box"}]},fIe={fields:Le({_gContent:Uvt("Content"),eyebrow:Q("Eyebrow"),heading:je("Heading"),intro:je("Introduction"),buttonLabel:Q("Submit button"),successMessage:je("Confirmation message"),boxes:JT.boxes,serviceTemplate:JT.serviceTemplate,timeTemplate:JT.timeTemplate},[[["eyebrow","heading","intro"],{all:[nV,Ia]}],[["buttonLabel","successMessage"],nV],[["serviceTemplate","timeTemplate"],Gvt]])};import{group as $vt}from"efficient-easel/screen/lib/document/box-fields";var QT={label:"Booking box",fields:F5,defaultProps:{}};var Kvt={eyebrow:"head",heading:"head",intro:"head",buttonLabel:"details",successMessage:"confirm",serviceTemplate:"booking",timeTemplate:"booking"},Vvt={any:[]};function hIe(e){let t=I5.map(n=>qw[n]),o=[];for(let n of Object.keys(e)){if(n.startsWith("_")||t.includes(n))continue;let r=Kvt[n];o.push([[n],r?{field:"region",is:r}:Vvt])}return o}var gIe={fields:{...Le(QT.fields??{},hIe(QT.fields??{})),...Zu(I5,qw,Cme,{unsetLabel:"Section's own"}),_gContent:$vt("Content"),eyebrow:Q("Eyebrow"),heading:je("Heading"),intro:je("Introduction"),buttonLabel:Q("Submit button"),successMessage:je("Confirmation message")},resolveFields:(e,{fields:t})=>Le(t,hIe(t))};import{slugify as kIe}from"efficient-shell/format";import{EyeIcon as SIe,LinkIcon as TIe,EyeOffIcon as e2t}from"efficient-easel/icons";import{group as hv}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as EIe}from"efficient-easel/screen/lib/document/device-fields";import{useEffect as rV,useState as bIe}from"react";import{useRootIsDark as qvt}from"efficient-shell/theme";import{jsx as jvt}from"react/jsx-runtime";var Yvt=[{}];function s4({ownerId:e,ownerType:t,Template:o,message:n,children:r}){return jvt(Ge,{ownerId:e,ownerType:t,slot:xs,Template:o,rows:Yvt,fallback:n,children:a=>r(a)})}import{Fragment as Qvt,jsx as fo,jsxs as Vl}from"react/jsx-runtime";var Ud={bodySmall:"text-[length:var(--size-body,14px)]",body:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]",labelXl:"text-[length:var(--size-label,14px)]"},O0={label:"Label",value:"Value",sub:"Sub line"};function Xvt(e,t){return e.map((o,n)=>t?{...o,at:n,label:o.label||u(O0.label),value:o.value||u(O0.value),sub:o.sub||u(O0.sub)}:{...o,at:n}).filter(o=>!o.hidden)}function wIe(e,t){return t?{[e_]:t_("channels",e.at)}:{}}function xIe(e){if(e.href)return e.href;let t=(e.value??"").trim();if(t.includes("@"))return`mailto:${t}`;if(/^\+?[\d\s().-]{6,}$/.test(t))return lu(t)}function Zvt(e){let t=[],o=new Map;for(let n of e){if(!n.groupId){t.push(n);continue}let r=n.value.trim().toLowerCase(),a=o.get(r);if(a)a.label=`${a.label} \xB7 ${n.label}`;else{let i={...n};o.set(r,i),t.push(i)}}return t}function Jvt(e,t,o){let n=r=>String(r??"").trim().toLowerCase();for(let r of e?.fields??[]){if(r.type!=="select"||!Array.isArray(r.options))continue;let a=r.options.map(String);if(!t.some(s=>a.some(l=>n(l)===n(s.title))))continue;let i=s=>n(s===su?o:t.find(l=>l.id===s)?.title);return{key:r.key,optionFor:s=>a.find(l=>n(l)===i(s)&&i(s)!==""),idFor:s=>{let l=t.find(d=>n(d.title)===n(s));return l?l.id:o&&n(s)===n(o)?su:void 0}}}return null}var yIe=`border-b border-line bg-transparent py-4 font-display ${Ud.bodyLarge} tracking-[0.01em] text-fg outline-none transition-colors focus:border-accent`;function aV({routingNumber:e,routingTagline:t,groups:o,formNumber:n,formHeading:r,metaLines:a,showOther:i=!0,otherLabel:s="Other",otherNoteTitle:l,otherNoteBody:d,buttonText:c,consent:p,channels:m,formSlug:f,form:g,editing:h,showSent:w,initialActiveId:b,onActiveChange:k,reasonExtras:x,omitHead:v=!1,templates:y,pads:S}){let E=he(),T=[...o.map(ie=>ie.id),...i?[su]:[]],_=b&&T.includes(b)?b:T[0]??su,[P,I]=bIe(_);rV(()=>{T.includes(P)||I(T[0]??su)},[T.join("|")]),rV(()=>{b&&T.includes(b)&&I(b)},[b]);let D=Hc(f,g),F=lf({form:D,formSlug:f,editing:h}),A=D?fo("div",{className:`border border-accent bg-accent/[0.08] p-8 font-display ${Ud.body} leading-[1.6] text-fg-dim`,children:ux(D,"Thanks \u2014 we've received your message.")}):null,N=Jvt(D,o,i?s:void 0),B=ie=>{I(ie),K(null);let Ae=N?.optionFor(ie);N&&Ae!==void 0&&F.set(N.key,Ae),k?.(ie)};rV(()=>{if(!N||F.valueOf(N.key))return;let ie=N.optionFor(P);ie!==void 0&&F.set(N.key,ie)},[N?.key]);let[Y,K]=bIe(null),X=Xvt(m??[],!!h),Z=ie=>Y!==null?!ie.groupId&&ie.value===Y:ie.groupId===P,V=D===void 0,j=!!D||!!h,J=!qvt({whenUnset:!0}),C=X_(),O=v&&C?Woe(C):null,G=O?`${O.className} `:"",$=o.length>0||!!h,H=ie=>{B(ie),typeof window<"u"&&window.matchMedia("(max-width: 1100px)").matches&&document.getElementById("contact-form")?.scrollIntoView({behavior:wd(),block:"start"})},ee=fo("div",{className:"sf-card grid grid-cols-4 gap-[2px] border border-line bg-line max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1",children:fo(Fo,{children:fo(Ge,{ownerId:y?.ownerId??"",ownerType:"ContactRouting",slot:gd,Template:y?.topic,rows:o.map(nn),items:o,states:o.map(ie=>({selected:P===ie.id})),actions:h?void 0:o.map(ie=>({press:()=>H(ie.id)})),pressTitles:y?.pressTitles?.topic,fallback:null,wrapCopy:ak,children:ie=>ie})})}),se=[...o.map(ie=>({id:ie.id,title:ie.title})),...i?[{id:su,title:s}]:[]],pe=VP(),Ne=Ln(),ce=j||X.length>0,me=S?ce?S.first:S.firstOnly:null,Ce=S?$?S.second:S.secondOnly:null,Pe=Vl(yt,{className:"border-b border-line py-[60px]",style:J?void 0:{background:"var(--section-bg)"},children:[(e||t)&&Vl("div",{className:"mb-6 flex items-center gap-6 border-b border-line pb-6",children:[e&&fo(lt,{text:e}),t&&fo("span",{className:`font-display ${Ud.bodySmall} uppercase tracking-[0.04em] text-fg-dim`,children:L(t)})]}),ee]});return Vl(Qvt,{children:[$&&(v?fo(z,{as:"section",...Te(`${G}border-b border-line bg-surface pt-6 pb-[60px]`,me?.atTop,O?.style),children:ee}):me?fo(PO,{pad:me,children:Pe}):Pe),ce&&Ne.scope(fo("section",{id:"contact-form",...Te(to(`${G}${v?"bg-bg ":""}scroll-mt-[80px] border-b border-line py-20 max-view-desktop:py-[60px]`,pe)??"",Ce?.atTop,O?.style),...$?{}:Ne.attrs,children:Vl("div",{className:[v?"grid gap-20 max-view-desktop:grid-cols-1 max-view-desktop:gap-[60px]":fe("mx-auto grid max-w-[var(--sf-site-width,1600px)] gap-20 px-[var(--sf-site-gutter,40px)] max-view-desktop:grid-cols-1 max-view-desktop:gap-[60px] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",E),j&&X.length>0?"grid-cols-[1.3fr_1fr]":"grid-cols-1"].join(" "),children:[j&&Vl("div",{children:[Vl("div",{className:"mb-8 flex items-end justify-between gap-6 border-b border-line pb-6",children:[Vl("div",{children:[n&&fo("div",{className:`pb-2 font-mono ${Ud.labelLarge} uppercase tracking-[0.3em] text-accent`,children:L(n)}),r&&fo("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,4vw,56px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:te(r,!0)})]}),!!(a&&a.length)&&fo("div",{className:`text-right font-mono ${Ud.labelSmall} uppercase leading-[1.8] tracking-[0.22em] text-fg-dim max-[700px]:text-left`,children:a.map((ie,Ae)=>fo("div",{children:ie},Ae))})]}),D?F.done||O5(w,h)?fo(s4,{ownerId:y?.ownerId??"",ownerType:"ContactRouting",Template:y?.thanks,message:A,children:ie=>Vl("div",{className:"flex flex-col gap-6",children:[A,ie]})}):Vl("form",{className:"grid grid-cols-2 gap-5 max-[700px]:grid-cols-1",onSubmit:F.handleSubmit,children:[D.fields.map(ie=>fo($r,{label:ie.label,required:ie.required,className:ie.type==="textarea"||ie.type==="checkbox"?"col-span-2 max-[700px]:col-span-1":void 0,children:fo(df,{field:ie,value:F.valueOf(ie.key),onChange:Ae=>{F.set(ie.key,Ae);let At=N&&ie.key===N.key?N.idFor(Ae):void 0;At!==void 0&&(I(At),K(null),k?.(At))},className:ie.type==="textarea"?`${yIe} min-h-[140px] resize-y leading-[1.5]`:ie.type==="checkbox"?"size-4 self-start accent-accent":yIe})},ie.key)),Vl("div",{className:"col-span-2 flex flex-col gap-2 max-[700px]:col-span-1",children:[fo(Vh,{required:!0,children:"Reason"}),fo("div",{className:"mt-1 flex flex-wrap gap-2",children:fo(Fo,{children:fo(Ge,{ownerId:y?.ownerId??"",ownerType:"ContactRouting",slot:bd,Template:y?.reason,rows:se.map(ie=>nn({title:ie.title})),states:se.map(ie=>({selected:P===ie.id})),actions:h?void 0:se.map(ie=>({press:()=>B(ie.id)})),pressTitles:y?.pressTitles?.reason,fallback:null,children:ie=>ie})})})]}),x?.(P),P===su&&(l||d)&&Vl("div",{className:"sf-card col-span-2 flex flex-col gap-2 border border-line bg-bg/40 p-5 max-[700px]:col-span-1",children:[l&&fo("span",{className:`font-mono ${Ud.labelSmall} uppercase tracking-[0.24em] text-accent`,children:L(l)}),d&&Bt(d).map((ie,Ae)=>fo("p",{className:`font-display ${Ud.body} leading-[1.55] text-fg-dim`,children:L(ie)},Ae))]}),fo(fx,{value:F.honeypot,onChange:F.setHoneypot}),F.error&&fo("p",{role:"alert",className:`col-span-2 font-mono ${Ud.labelSmall} uppercase tracking-[0.18em] text-alert max-[700px]:col-span-1`,children:F.error}),Vl("div",{className:"col-span-2 mt-5 flex flex-wrap items-center justify-between gap-6 border-t border-line pt-6 max-[700px]:col-span-1 max-[700px]:flex-col max-[700px]:items-stretch",children:[p&&fo("span",{className:`max-w-[380px] font-mono ${Ud.labelSmall} uppercase leading-[1.6] tracking-[0.18em] text-fg-dim`,children:L(p)}),fo("button",{type:h?"button":"submit",disabled:F.submitting,className:`cursor-pointer bg-btn px-8 py-5 font-mono ${Ud.labelXl} uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg disabled:cursor-wait disabled:opacity-60 max-[700px]:w-full`,children:F.submitting?"Sending\u2026":c?jo(c):"Send Message \u2192"})]})]}):fo("p",{className:`font-mono ${Ud.labelSmall} uppercase tracking-[0.22em] text-fg-dim`,children:V?u("Loading form\u2026"):u("Choose a form in the inspector, under Message form \u2014 until then this column is hidden on the live page and no message can be sent.")})]}),X.length>0&&fo("aside",{className:"flex flex-col gap-0 max-view-desktop:hidden",children:fo(Fo,{children:fo(Ge,{ownerId:y?.ownerId??"",ownerType:"ContactRouting",slot:gl,Template:y?.channel,rows:X.map(ie=>nn({label:ie.label,value:ie.value,sub:ie.sub??"",href:xIe(ie)??""})),items:X,states:X.map(ie=>({selected:Z(ie)})),copyAttrs:({index:ie})=>wIe(X[ie],h),actions:h?void 0:X.map(ie=>ie.groupId?{press:()=>{},disabled:!0}:{press:()=>K(ie.value)}),pressTitles:y?.pressTitles?.channel,fallback:null,children:ie=>ie})})}),X.length>0&&(()=>{let ie=Zvt(X);return fo("div",{"data-contact-phone-list":!0,className:"hidden flex-col gap-0 max-view-desktop:flex",children:fo(Fo,{children:fo(Ge,{ownerId:y?.ownerId??"",ownerType:"ContactRouting",slot:gl,Template:y?.channel,rows:ie.map(Ae=>nn({label:Ae.label,value:Ae.value,sub:Ae.sub??"",href:xIe(Ae)??""})),items:ie,copyAttrs:({index:Ae})=>wIe(ie[Ae],h),fallback:null,children:Ae=>Ae})})})})()]})}))]})}var iV={[gd]:{type:"slot",allow:[...A5]},[bd]:{type:"slot",allow:[...A5]},[gl]:{type:"slot",allow:[...A5]},[xs]:{type:"slot",allow:[...C5]}},vIe={ownPad:zA,label:"Contact Form",fields:iV,defaultProps:{routingNumber:Yt.routingNumber,routingTagline:Yt.routingTagline,groups:Yt.groups,formSlug:"",formNumber:Yt.formNumber,formHeading:Yt.formHeading,metaItems:Yt.metaLines.map(e=>({text:e})),showOther:Yt.showOther,otherLabel:Yt.otherLabel,otherNoteTitle:Yt.otherNoteTitle,otherNoteBody:Yt.otherNoteBody,buttonText:Yt.buttonText,consent:Yt.consent,channels:Yt.channels}};import{jsx as gv}from"react/jsx-runtime";var t2t=["routingNumber","routingTagline"],PIe={fields:Le({...iV,_gTop:hv("Routing groups"),routingNumber:U("Section number",Yt.routingNumber),routingTagline:U("Eyebrow",Yt.routingTagline),groups:{type:"array",label:"Groups",arrayFields:{eyebrow:Q("Eyebrow"),title:je("Title"),copy:je("Body"),response:Q("Response time")},getItemSummary:e=>e?.title||e?.eyebrow||u("Group")},_gForm:hv("Message form"),formSlug:Fc(),formNumber:U("Section number",Yt.formNumber),formHeading:q("Heading",Yt.formHeading),metaItems:Gr("Meta lines",gv(ua,{noun:"meta"}),"Encrypted in transit","verbatim"),_gOther:hv("\u201COther\u201D reason"),showOther:oe("Show \u201COther\u201D reason",Yt.showOther,gv(SIe,{})),otherLabel:Q("\u201COther\u201D chip label",Yt.otherLabel),otherNoteTitle:U("\u201COther\u201D note title",Yt.otherNoteTitle),otherNoteBody:q("\u201COther\u201D note body",Yt.otherNoteBody),_gSubmit:hv("Submit button"),buttonText:Q("Submit button",Yt.buttonText),consent:q("Consent line",Yt.consent),_gChannels:hv("Contact info"),channels:{type:"array",label:"Channels",arrayFields:{label:Q("Label",O0.label),value:Q("Value",O0.value),href:Pr(Q("Link")),sub:Q("Sub line",O0.sub),groupId:ne("Link to group",gv(TIe,{}),[{label:"\u2014 Not linked \u2014",value:""},...Yt.groups.map(e=>({label:e.title,value:e.id}))],""),hidden:oe("Hidden",!1,gv(e2t,{}))},getItemSummary:e=>{let t=e?.label||e?.value||u("Channel");return e?.hidden?u("{name} \xB7 hidden",{name:t}):t}},_gPreview:EIe("desktop",hv(yu)),[Gu]:EIe("desktop",ne("Show",gv(SIe,{}),[...R5],"form"))},[[t2t,Ia]]),resolveData:e=>{let t=e.props.groups??[];if(!t.some(r=>!r?.id))return e;let o=new Set,n=t.map((r,a)=>{if(r?.id)return o.add(r.id),r;let i=kIe(r?.title)||`group-${a+1}`;for(;o.has(i);)i=`${i}-${a+1}`;return o.add(i),{...r,id:i}});return{...e,props:{...e.props,groups:n}}},resolveFields:(e,{fields:t})=>{let o=e.props.groups??[],n=[{label:"\u2014 Not linked \u2014",value:""},...o.map((i,s)=>({label:i?.title||i?.eyebrow||u("Group {n}",{n:s+1}),value:i?.id||kIe(i?.title)||`group-${s+1}`}))],r=t,a=r.channels;return a?.type==="array"&&a.arrayFields&&(r.channels={...a,arrayFields:{...a.arrayFields,groupId:ne("Link to group",gv(TIe,{}),n,"")}}),t}};var _Ie={fields:{title:q("Heading","Find a dealer")}};import{GlobeIcon as o2t,SearchIcon as n2t}from"efficient-easel/icons";var CIe={terms:"https://efficient-erp.com/terms",privacy:"https://efficient-erp.com/privacy"},l4=[{label:"Sign-up",value:"create"},{label:"Find my workspace",value:"find"}],eE="create",RIe={label:"Sign-up Form",defaultProps:{mode:eE,product:"",productName:"",freeLine:rt.freeLine,zone:"",askCountry:!1,termsHref:CIe.terms,privacyHref:CIe.privacy,findHref:"/find"}};import{jsx as OIe}from"react/jsx-runtime";var NIe={fields:{mode:ne("Shows",OIe(n2t,{}),l4,eE),product:U("Product key","crm"),productName:U("Product name","The product's name"),freeLine:U("Free plan line",rt.freeLine),zone:U("Workspace domain","This website's own"),askCountry:oe("Ask for country and currency",!1,OIe(o2t,{})),termsHref:Ve("Terms"),privacyHref:Ve("Privacy policy"),findHref:Ve("Find my workspace")}};import{useEffect as r2t,useRef as a2t,useState as i2t}from"react";import{jsx as c2t}from"react/jsx-runtime";var s2t=12,d4=null,LIe=null;function l2t(e=!1){let t=In();if((e||LIe!==t)&&(d4=null),!d4){let o=fa();LIe=t,d4=Fe.listBlogPosts(o,{visibleOnly:!0,siteId:t}).catch(()=>null)}return d4}var d2t=e=>yce($R(e));function N0({value:e,onChange:t,snapshotCount:o=s2t}){let[n,r]=i2t("idle"),a=Array.isArray(e),i=a?e.length:0,s=a2t(!0),l=p=>{r("loading"),l2t(p).then(m=>{if(!s.current)return;if(m===null){r("error");return}r("idle");let f=m.slice(0,o).map(d2t);Tg(f,e??null)&&t(f)})};r2t(()=>(s.current=!0,l(!1),()=>{s.current=!1}),[]);let d=u("Storefront \u2192 Blog"),c=n==="loading"?u("Syncing from {place}\u2026",{place:d}):n==="error"?u("Couldn\u2019t reach {place}.",{place:d}):a?ar("Auto-synced from {place} \xB7 {n} post","Auto-synced from {place} \xB7 {n} posts",i,{place:d}):u("Linking to {place}\u2026",{place:d});return c2t(ll,{status:n,statusText:c,onRefresh:()=>l(!0),busy:n==="loading",spaced:!1,hint:u("Auto-refreshes from the most-recent visible posts each time you open the editor. Set how many appear with \u201CPosts to display\u201D.")})}import{Children as k2t,useContext as S2t,useState as WIe}from"react";import{createContext as p2t}from"react";import{jsx as m2t}from"react/jsx-runtime";var sV=p2t({starts:{}});function lV({starts:e,posts:t,children:o}){return m2t(sV.Provider,{value:{starts:e,posts:t},children:o})}import{htmlToMarkupRows as AIe}from"efficient-easel/markup-from-html";var c4="blog-post",IIe="body",u2t=e=>({nodeType:3,nodeName:"#text",textContent:e,childNodes:[]}),f2t=/\n[ \t]*\n\s*/;function FIe(e){for(let t of Array.from(e.childNodes)){if(t.nodeType!==3){FIe(t);continue}let o=(t.textContent??"").split(f2t);if(o.length<2)continue;let n=t.ownerDocument;n&&(o.forEach((r,a)=>{a>0&&e.insertBefore(n.createElement("br"),t),e.insertBefore(n.createTextNode(r),t)}),e.removeChild(t))}}function h2t(e){let t=HJ(e);return FIe(t),t}function g2t(e){return e.length<60&&/^[A-Z][^.]*\.$/.test(e.trim())}function b2t(e){return AIe(u2t(e.plain),NF)[0]?.markup??""}function BIe(e){return typeof e!="string"||!e.trim()?[]:AIe(h2t(e),NF).map(t=>g2t(t.plain)?{heading:b2t(t),paragraph:""}:{heading:"",paragraph:t.markup})}function HIe(){return[{heading:u("A subhead."),paragraph:""},{heading:"",paragraph:u("Each paragraph of the post's body is drawn by the card template.")},{heading:"",paragraph:u("Another paragraph.")}]}import{VIEW_TIERS as w2t}from"efficient-easel/screen/lib/content/view-tiers";var x2t="Events",L0=3,rh="count";function dV(e){return e.showAll?Number.POSITIVE_INFINITY:typeof e.limit=="number"&&e.limit>0?e.limit:L0}function y2t(e,t,o){return e.layout===rh||o[t]?0:dV(e)}function DIe(e){let t=Q2(e),o=new Map;for(let{node:n,order:r}of t){let a=n.props?.[bee];wee(n.type)&&Array.isArray(a)&&o.set(a,`group ${r}`)}return t.filter(({node:n})=>n.type===x2t&&dt(n.props??{})==="").map(({node:n,lists:r})=>({id:String(n.props?.id??""),props:n.props??{},chain:r.map(a=>o.get(a)).find(a=>a!==void 0)??"page"}))}function v2t(e){let t={},o=new Map;for(let{id:n,props:r,chain:a}of DIe(e)){let i=o.get(a),s=r.continueList===!0&&i!==void 0,l=n_(r),d=s?i.from:n,c=s?i.skip:r.skipCurrentPost===!0,p={},m={};for(let f of w2t)m[f]=s?i.ends[f]:0,p[f]=m[f]+y2t(r,f,l);s&&(t[n]={...m,from:d,...c?{skipCurrentPost:!0}:{}}),o.set(a,{ends:p,from:d,skip:c})}return t}function MIe(e,t){let o=new Set;for(let n of DIe(e)){if(n.id===t)return o.has(n.chain);o.add(n.chain)}return!1}function zIe(e){let t=v2t(e),o=new Map(kc(e).map(r=>[String(r.props?.id??""),r.props?.posts])),n={};for(let[r,{from:a}]of Object.entries(t)){let i=o.get(a);Array.isArray(i)&&(n[r]=i)}return{starts:t,posts:n}}import{VIEW_TIERS as mV}from"efficient-easel/screen/lib/content/view-tiers";import{hiddenKeyOf as T2t}from"efficient-easel/screen/lib/content/view-hide";import{Fragment as a1t,jsx as Ye,jsxs as ki}from"react/jsx-runtime";var E2t=4;function VIe(e){return aI(e,E2t)}function YIe(e){if(!e||typeof e!="object"||Array.isArray(e))return;let t={};for(let[o,n]of Object.entries(e))if(o.trim()){if(typeof n=="string")n.trim()&&(t[o]=n.trim());else if(Array.isArray(n)){let r=n.filter(a=>typeof a=="string"&&!!a.trim()).map(a=>a.trim());r.length&&(t[o]=r)}}return Object.keys(t).length?t:void 0}function jIe(e,t){let o=e.facets?.[t];return o===void 0?[]:typeof o=="string"?[o]:o}var P2t=new Intl.Collator("en",{numeric:!0,sensitivity:"base"});function _2t(e){let t=[],o=new Map;for(let n of e)for(let r of Object.keys(n.facets??{})){o.has(r)||(t.push(r),o.set(r,new Set));for(let a of jIe(n,r))o.get(r).add(a)}return t.map(n=>({label:n,values:[...o.get(n)].sort(P2t.compare)}))}function C2t(e,t){return Object.entries(t).every(([o,n])=>n===""||jIe(e,o).includes(n))}var qIe="featured",bv="tabs",XIe="portrait",ah="spread",ZIe=[{label:"Even grid",value:"even"},{label:"Featured first",value:qIe},{label:"Tabs",value:bv},{label:"Photo cards",value:XIe},{label:"Staggered spread",value:ah},{label:"Count",value:rh}],R2t=[XIe,ah],JIe="even",Im={min:2,max:11,step:1,fallback:7,unit:"of 12"},O2t=n5,N2t=55,L2t=h1;function A2t(e){let t=typeof e=="number"?e:Number.parseFloat(String(e??"")),o=Number.isFinite(t)?Math.min(Im.max,Math.max(Im.min,Math.round(t))):Im.fallback;return`${o}fr ${12-o}fr`}var UIe={1:"grid-cols-1",2:"grid-cols-2 max-view-wide:grid-cols-1",3:"grid-cols-3 max-view-wide:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-view-wide:grid-cols-1"},I2t={2:"grid-cols-2",3:"grid-cols-3 max-view-wide:grid-cols-2",4:"grid-cols-4 max-view-desktop:grid-cols-3 max-view-wide:grid-cols-2"},F2t={2:"grid-cols-2 max-view-wide:grid-cols-1",3:"grid-cols-3 max-view-wide:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-3 max-view-wide:grid-cols-1"};function QIe(e,t){return{key:e.slug,title:e.title??"",excerpt:e.excerpt??"",cover:e.cover??"",meta:e.meta??"",dateLabel:e.dateLabel??"",href:e.href||(t?"#":Fb(e.slug))}}function B2t(e,t){return{...QIe(e,t),tags:(e.tags??[]).map(o=>({label:o}))}}var GIe=new WeakMap,H2t={className:"hidden"},D2t={className:ii};function $Ie(e,t){let o=e.blockIds[0],n=e;function r(a){let i=Da(),s=t&&i?.index===0;return Ye(n,{...a,cell:l=>l===o===s?D2t:H2t})}return Object.assign(r,{blockCount:1,blockIds:e.blockIds})}function M2t(e,t){let o=e;if(typeof o!="function"||(o.blockCount??0)<2||!Array.isArray(o.blockIds))return e;let n=GIe.get(o);return n||(n={lead:$Ie(o,!0),rest:$Ie(o,!1)},GIe.set(o,n)),t?n.lead:n.rest}var z2t="Find by name",W2t="Nobody by that name.",U2t="Nobody matches.",G2t="Any",$2t="No posts in this category yet.",K2t="All posts",V2t=Fb("").replace(/\/$/,"");function Y2t(e){return typeof e=="string"?e.trim():""}function j2t(){return ki("div",{className:"flex min-h-[40vh] flex-col items-center justify-center gap-6 text-center font-mono text-[length:var(--size-label,14px)] uppercase text-fg-dim",children:[Ye("p",{role:"status",className:"tracking-[0.2em]",children:$2t}),ki(Tt,{href:V2t,className:"inline-flex min-h-11 items-center tracking-[0.22em] hover:text-fg",children:[K2t," ",Ye("span",{className:"text-accent",children:"\u2192"})]})]})}function q2t(e,t){let o=r=>r.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLocaleLowerCase().trim(),n=o(t);return n===""||o(e).includes(n)}function KIe({typed:e,onType:t,wide:o=!1}){return ki("label",{className:`flex max-w-[360px] flex-col gap-1.5${o?" w-full":""}`,children:[Ye("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-fg-dim",children:z2t}),Ye("input",{type:"search",value:e,onChange:n=>t(n.target.value),autoComplete:"off",className:"rounded-[var(--sf-button-radius,6px)] border border-line bg-bg px-4 py-2.5 text-[length:var(--size-body,15px)] text-fg outline-none focus:border-accent"})]})}function e3e({tags:e}){return Ye("ul",{"aria-label":"Details",className:"flex gap-1.5 overflow-hidden",children:e.map((t,o)=>Ye("li",{className:"shrink-0 rounded-[var(--sf-button-radius,4px)] border border-line px-2 py-0.5 text-[length:var(--size-label,12px)] text-fg-dim",children:t},`${t}-${o}`))})}function X2t({card:e,scaffold:t,lower:o=!1}){return ki(Tt,{href:e.href||"#",className:`sf-card group relative isolate flex aspect-[3/4] overflow-hidden bg-surface${o?" min-[801px]:mt-16":""}`,"aria-disabled":t||void 0,tabIndex:t?-1:void 0,children:[Ye("div",{className:"absolute inset-0 transition-transform duration-700 group-hover:scale-[1.03] motion-reduce:transition-none motion-reduce:group-hover:scale-100",children:Ye(co,{label:`card-${e.slug}`,src:e.cover||void 0,sizes:"(max-width: 800px) 50vw, 25vw"})}),Ye("div",{"aria-hidden":!0,className:"absolute inset-0 z-0",style:{background:"linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--bg) 88%, transparent) 100%)"}}),e.meta&&Ye("span",{className:"absolute left-3 top-3 z-[1] rounded-[var(--sf-button-radius,999px)] bg-bg/85 px-2.5 py-1 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.16em] text-accent",children:L(e.meta)}),ki("div",{className:"relative z-[1] mt-auto flex w-full flex-col gap-1 p-4 max-view-wide:p-3",children:[Ye("h3",{className:"font-heading3 text-[length:var(--size-headingSmall,24px)] leading-[1.1] tracking-[-0.01em] text-fg",children:te(e.title,!1)}),(e.publishedAt||e.dateLabel)&&Ye("p",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.16em] text-accent",children:e.publishedAt?Ye(Yi,{at:e.publishedAt}):L(e.dateLabel??"")}),e.tags&&e.tags.length>0&&Ye(e3e,{tags:e.tags}),e.excerpt&&Ye("p",{className:"line-clamp-2 text-[length:var(--size-body,14px)] leading-[1.45] text-fg-dim",children:L(e.excerpt)})]})]})}function Z2t({cards:e,scaffold:t}){return Ye("nav",{"aria-label":"Days",className:xI.nav,children:Ye("ul",{className:xI.list,children:e.map((o,n)=>{let r=!!o.meta;return Ye("li",{children:ki(Tt,{href:o.href||"#","aria-current":r?"page":void 0,"aria-disabled":t||void 0,tabIndex:t?-1:void 0,className:xI.tab(r),children:[Ye("span",{className:"font-heading3 text-[length:var(--size-body,15px)] leading-[1.2]",children:te(o.title,!1)}),o.excerpt&&Ye("span",{className:`font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] ${r?"opacity-80":"text-fg-dim"}`,children:L(o.excerpt)})]})},`${o.slug}-${n}`)})})})}function J2t({count:e,words:t,href:o}){let n=ki("span",{className:"inline-flex items-baseline gap-3",children:[Ye("span",{className:"font-heading text-[length:var(--size-headingLarge,64px)] leading-none text-accent",children:e}),t!==void 0&&Ye("span",{className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg",children:t})]});return o?Ye(Tt,{href:o,className:"inline-flex hover:opacity-85",children:n}):n}var cV="[&>[data-sf-repeat]>*]:h-full [&>[data-sf-repeat]>*>*]:h-full",Q2t="[&>[data-sf-repeat]]:h-full [&>[data-sf-repeat]>*]:h-full [&>[data-sf-repeat]>*>*]:h-full",e1t=`relative z-[2] bg-bg ${rpe}`,t1t={top:32,bottom:32};function uV(e){let{starts:t,posts:o}=S2t(sV),n=t[e.ownerId??""];if(!n)return Ye(pV,{...e,start:0});let r=o?.[e.ownerId??""]??e.posts,a=n.skipCurrentPost===!0,i=o1t(n);return i.length===1?Ye(pV,{...e,posts:r,start:i[0].start,skipCurrentPost:a}):Ye(a1t,{children:i.map(({start:s,views:l})=>{let d=n1t(l,e.viewHidden);return vQ(t3e(d))?null:Ye(LJ.Provider,{value:r1t(d),children:Ye(pV,{...e,posts:r,start:s,skipCurrentPost:a})},s)})})}function o1t(e){let t=[];for(let o of mV){let n=t.find(r=>r.start===e[o]);n?n.views.push(o):t.push({start:e[o],views:[o]})}return t}var n1t=(e,t)=>Object.fromEntries(mV.map(o=>[o,!e.includes(o)||!!t?.[o]])),t3e=e=>Object.fromEntries(mV.map(t=>[T2t(t),e[t]])),r1t=e=>AJ(u2(e),kQ(t3e(e)),{sectionClassName:u2(e,{atSectionLine:!0}),line:"section"});function pV({start:e,num:t,title:o,link:n,posts:r,servedCategory:a,columns:i,limit:s,showAll:l=!1,editing:d=!1,cardImage:c,gap:p,gapPhone:m,layout:f,featuredWidth:g,listCover:h=!0,featuredDarken:w,omitHead:b=!1,sample:k,nameFilter:x=!1,pads:v,template:y,ownerId:S="",skipCurrentPost:E=!1}){let T=he(),[_,P]=WIe(""),[I,D]=WIe({}),F=Ka("ev"),A=Ih(c4),N=E&&A?(r??[]).filter(Re=>Re.slug!==A.key):r??[],B=e>0?N.slice(e):N,Y=l?B.length:dV({limit:s}),K=B.slice(0,Y),X=d&&K.length===0;if(K.length===0&&!d){if(!Y2t(a))return null;let Re=Ec(v,pi,{noTop:b,nonNegative:!0});return Ye(z,{as:"section",...Re.attrs,className:hl(b?x1:w1,Re),style:Re.style,children:Ye("div",{className:fe(od,T),children:Ye(j2t,{})})})}let Z=l?L0:Y,V=X?k?.length?k.slice(0,l?k.length:Z):Array.from({length:Z},(Re,Dt)=>({slug:`placeholder-${Dt}`,title:u("Blog post title"),excerpt:u("A short summary of the post appears here."),cover:"",meta:u("Journal"),dateLabel:u("Date")})):K,j=Ur("Events",p,"both",m),J=f===qIe&&V.length>1,C=A2t(g),O=f===bv,G=f===rh,$=R2t.includes(f??""),H=x&&!O&&!G&&!J,ee=H?_2t(V):[],se=H?V.filter(Re=>q2t(Re.title,_)&&C2t(Re,I)):V,pe=G?Ec(v,t1t,{nonNegative:!0}):Ec(v,pi,{noTop:b,nonNegative:!0}),Ne=pe.style,ce=!d&&Bw(t,o,n?.text),Ce=(y?.blockCount??0)>0?F2t:I2t,Pe=f===ah?Ce[3]:Ce[Math.min(4,Math.max(2,i??3))]??Ce[3],ie=UIe[Math.min(4,Math.max(1,i??3))]??UIe[3],Ae=O||J||f===ah?"":Hu(F,$?Pe:ie,{cards:se.length}),At=(Re,Dt,we)=>Ye(Ge,{ownerId:S,ownerType:"Events",Template:M2t(y,J),rows:Re.map($e=>QIe($e,X)),items:Re.map($e=>B2t($e,X)),fallback:Dt,children:$e=>we(k2t.toArray($e))});return G?Ye(z,{as:"section",...pe.attrs,className:hl(e1t,pe),style:Object.keys(Ne).length?Ne:void 0,children:Ye("div",{className:fe(od,T),children:Ye(J2t,{count:V.length,words:b||o===void 0?void 0:te(o,!1),href:b?void 0:n?.href})})}):Ye(z,{as:"section",...pe.attrs,className:hl(b?x1:w1,pe),style:{...sl(c),...Ne},children:ki("div",{className:fe(od,T),children:[b||ce?null:Ye(Mt,{num:t!==void 0?L(t):void 0,title:o!==void 0?te(o,!1):void 0,link:n?{text:L(n.text),href:n.href}:void 0}),H&&ki("div",{className:"mb-6 flex flex-col gap-2",children:[ee.length===0?Ye(KIe,{typed:_,onType:P}):ki("div",{className:"flex flex-wrap items-end gap-3",children:[Ye(KIe,{typed:_,onType:P,wide:!0}),ee.map(({label:Re,values:Dt})=>ki("label",{className:"flex min-w-[140px] flex-col gap-1.5 max-view-wide:flex-1",children:[Ye("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-fg-dim",children:Re}),ki("select",{value:I[Re]??"",onChange:we=>D($e=>({...$e,[Re]:we.target.value})),className:"rounded-[var(--sf-button-radius,6px)] border border-line bg-bg px-4 py-2.5 text-[length:var(--size-body,15px)] text-fg outline-none focus:border-accent",children:[Ye("option",{value:"",children:G2t}),Dt.map(we=>Ye("option",{value:we,children:we},we))]})]},Re))]}),se.length===0&&Ye("p",{role:"status",className:"text-[length:var(--size-body,14px)] text-fg-dim",children:ee.length===0?W2t:U2t})]}),Ae&&Ye("style",{children:Ae}),O?Ye(Z2t,{cards:V,scaffold:X}):$?At(se,Ye("div",{className:`${F} sf-card-grid grid${j.className} ${Pe}`,style:j.style,children:se.map((Re,Dt)=>Ye(X2t,{card:Re,scaffold:X,lower:f===ah&&Dt%3===1},`${Re.slug}-${Dt}`))}),Re=>Ye("div",{className:`${F} sf-card-grid grid${j.className} ${Pe} ${cV}`,style:j.style,children:f===ah?Re.map((Dt,we)=>Ye("div",{className:`${Q2t}${we%3===1?" view-wide:mt-16":""}`,children:Dt},we)):Re})):J?At(V,ki("div",{className:`sf-card-grid grid grid-cols-[var(--sf-events-split)] max-view-wide:grid-cols-1${j.className}`,style:{...j.style,"--sf-events-split":C},children:[Ye(Gg,{post:V[0],href:V[0].href,scaffold:X,layout:"cover",darken:w??N2t,darkenStyle:L2t,placement:O2t},`${V[0].slug}-0`),Ye("div",{className:`grid auto-rows-min${j.className}`,style:j.style,children:V.slice(1).map((Re,Dt)=>Ye(Gg,{post:Re,href:Re.href,scaffold:X,showCover:h},`${Re.slug}-${Dt+1}`))})]}),Re=>ki("div",{className:`sf-card-grid grid grid-cols-[var(--sf-events-split)] max-view-wide:grid-cols-1${j.className} ${cV}`,style:{...j.style,"--sf-events-split":C},children:[Re[0],Ye("div",{className:`grid auto-rows-min${j.className}`,style:j.style,children:Re.slice(1)})]})):At(se,Ye("div",{className:`${F} sf-card-grid grid${j.className} ${ie}`,style:j.style,children:se.map((Re,Dt)=>Re.tags&&Re.tags.length>0?ki("div",{className:"flex flex-col gap-2",children:[Ye(Gg,{post:Re,href:Re.href,scaffold:X}),Ye(e3e,{tags:Re.tags})]},`${Re.slug}-${Dt}`):Ye(Gg,{post:Re,href:Re.href,scaffold:X},`${Re.slug}-${Dt}`))}),Re=>Ye("div",{className:`${F} sf-card-grid grid${j.className} ${ie} ${cV}`,style:j.style,children:Re}))]})})}import{LayoutIcon as i1t,ColumnsIcon as s1t,WidthIcon as l1t,ImageIcon as d1t,OpacityIcon as c1t,ListIcon as p1t,HashIcon as m1t,SearchIcon as u1t,ContinueListIcon as f1t,EyeOffIcon as h1t}from"efficient-easel/icons";import{group as hV}from"efficient-easel/screen/lib/document/box-fields";var ih={num:W.sectionNumber,title:"Section title",link:W.viewAll},fV={template:Sn()},o3e={label:"Latest Posts",innerPadding:pi,fields:fV,defaultProps:{num:"",title:"",linkText:"",linkHref:"/journal",columns:3,limit:L0,showAll:!1}};import{jsx as gp}from"react/jsx-runtime";var g1t=50,n3e={not:{field:"template",set:!0}},r3e={fields:Le({_gContent:hV("Content"),num:U("Number",ih.num),title:q("Heading",ih.title),linkText:U("Button",ih.link),linkHref:Ve("Link"),dataSource:oo("Cards from","Blog posts"),_gPosts:hV("Blog posts"),posts:Uo(N0,{snapshotCount:g1t}),continueList:oe("Continue the list above",!1,gp(f1t,{}),"Starts after the posts the list above shows."),skipCurrentPost:oe("Leave out this page's post",!1,gp(h1t,{}),"On an article page, the post it shows is not listed."),_gLayout:hV("Layout"),layout:ne("Arrangement",gp(i1t,{}),ZIe,JIe),columns:ae("Columns",gp(s1t,{}),2,4,1,3),featuredWidth:ae("Featured width",gp(l1t,{}),Im.min,Im.max,Im.step,Im.fallback,Im.unit),listCover:oe("Show cover image on the smaller cards",!0,gp(d1t,{})),featuredDarken:ae("Darken",gp(c1t,{}),nd.min,nd.max,nd.step,55,nd.unit),nameFilter:oe("Filter by name",!1,gp(u1t,{})),...di("Events"),showAll:oe("Show all blog posts",!1,gp(p1t,{})),limit:ae("Posts to display",gp(m1t,{}),1,20,1,L0),...fV,cardImage:Kb()},[[["limit"],{field:"showAll",in:[!1,0,"",null],default:!1}],[["columns"],{not:{field:"layout",in:["featured",bv,rh,ah]}}],[["featuredWidth"],{field:"layout",is:"featured"}],[["continueList"],{all:[{not:{context:"noPostListAbove",is:!0}},cl]}],[["skipCurrentPost"],{all:[cl,{not:{field:"continueList",is:!0}}]}],[["listCover","featuredDarken"],{all:[{field:"layout",is:"featured"},n3e]}],[["nameFilter"],{not:{field:"layout",in:["featured",bv,rh]}}],[["cardImage"],{all:[{not:{field:"layout",in:[bv,rh]}},n3e]}]]),resolveFields:(e,{fields:t,parent:o})=>it(no("Events",t,e.props,{hides:["_gPosts","posts"]}),e.props.headPlacement,st.Events.headRows),showWhenFacts:{noPostListAbove:(e,t)=>{let o=t?.appState?.data,n=String(e?.props?.id??"");return o?!MIe(o,n):!1}}};import{SettingsField as b1t,SettingsSwitch as w1t}from"efficient-easel/panel";import{BlockColumnIcon as x1t}from"efficient-easel/icons";import{usePreviewDevice as y1t}from"efficient-easel/screen/components/PreviewDeviceContext";import{VIEW_TIER_LABEL as a3e}from"efficient-easel/screen/lib/content/view-tiers";import{Fragment as v1t,jsx as tE}from"react/jsx-runtime";function gV({value:e,onChange:t}){let o=y1t(),n={...kb,...e},r=n[o];return tE(b1t,{label:u("Logo fills its column"),icon:tE(x1t,{}),action:tE(w1t,{checked:r,onChange:a=>t({...n,[o]:a}),ariaLabel:u("Logo fills its column on {view}",{view:u(a3e[o])})}),hint:tE(v1t,{children:zi(u("Sets the {view} view \u2014 switch views in the top bar to set each one."),{view:tE("strong",{children:u(a3e[o])})})})})}import{SettingsField as k1t,SettingsSwitch as S1t}from"efficient-easel/panel";import{FullWidthIcon as T1t}from"efficient-easel/icons";import{usePreviewDevice as E1t}from"efficient-easel/screen/components/PreviewDeviceContext";import{VIEW_TIER_LABEL as i3e}from"efficient-easel/screen/lib/content/view-tiers";import{Fragment as P1t,jsx as oE}from"react/jsx-runtime";function bV({value:e,onChange:t}){let o=E1t(),n={...Sb,...e},r=n[o];return oE(k1t,{label:u("Logo fills its row"),icon:oE(T1t,{}),action:oE(S1t,{checked:r,onChange:a=>t({...n,[o]:a}),ariaLabel:u("Logo fills its row on {view}",{view:u(i3e[o])})}),hint:oE(P1t,{children:zi(u("Sets the {view} view \u2014 switch views in the top bar to set each one."),{view:oE("strong",{children:u(i3e[o])})})})})}import{jsx as _1t}from"react/jsx-runtime";function wV({value:e,onChange:t}){return _1t(Jk,{label:"Columns per line",unit:u("columns"),steps:dee,value:h_(e),onChange:t})}import{group as l3e}from"efficient-easel/screen/lib/document/box-fields";var xV={blocks:{type:"slot",allow:["FooterLogo","FooterMenu","FooterDivider","FooterGroup","FooterText","FooterEmailSignup","FooterSocial","FooterPayment"]}},s3e={label:"Footer",fields:xV,defaultProps:{columns:cee,logoFill:kb,logoRowFill:Sb}};import{jsx as p4}from"react/jsx-runtime";var d3e={fields:{_gLayout:l3e("Layout"),width:{type:"custom",render:({value:e,onChange:t})=>p4(Nae,{value:e==="full"?"full":e==="page"||e==="content"?"content":void 0,resolved:"content",followsLabel:u("Follows the page"),hint:u("Whether the footer's blocks sit on the page's column, or run edge to edge. The background always spans the screen."),onChange:o=>t(o)})},columns:{type:"custom",render:({value:e,onChange:t})=>p4(wV,{value:e,onChange:t})},logoFill:{type:"custom",render:({value:e,onChange:t})=>p4(gV,{value:e,onChange:t})},logoRowFill:{type:"custom",render:({value:e,onChange:t})=>p4(bV,{value:e,onChange:t})},_gBlocks:l3e("Blocks"),blockList:Oc("Footer"),blocks:xV.blocks}};import{WeightIcon as C1t,WidthIcon as R1t}from"efficient-easel/icons";import{group as O1t}from"efficient-easel/screen/lib/document/box-fields";import{jsx as c3e}from"react/jsx-runtime";var p3e={fields:{_gStyle:O1t("Style"),thickness:ae("Thickness",c3e(C1t,{}),1,8,1,1,"px"),lengthPct:ae("Length",c3e(R1t,{}),10,100,1,100,"%")}};var m3e={fields:{heading:je("Heading","Join our email list"),placeholder:Q("Field placeholder","Email address"),buttonLabel:Q("Button","Subscribe")}};import{boxAlignField as N1t,group as f3e,noGlyph as L1t}from"efficient-easel/screen/lib/document/box-fields";var yV={blocks:{type:"slot",allow:["FooterText","FooterEmailSignup","FooterMenu","FooterDivider","FooterSocial","FooterPayment"]}},u3e={label:"Footer Box",fields:yV,defaultProps:{direction:"vertical",align:"start"}};function A1t(){let e=N1t({runs:t=>t==="horizontal"?"row":"column"});return{...e,fallback:"start",render:t=>e.render({...t,value:t.value??"start"})}}var h3e={fields:{_gLayout:f3e("Layout"),direction:_e("Direction",L1t("`Direction` names how a container's children run \u2014 a MODIFIER, not a thing. doc/naming.md N10.1 gives the idea a dash in its Glyph column; editor-shell's own `direction` meaning says the bare row is CORRECT and not an omission (SS seat, 2026-09-11)."),[{label:"Vertical",value:"vertical"},{label:"Horizontal",value:"horizontal"}],"vertical"),...di("FooterGroup"),align:A1t(),_gBlocks:f3e("Blocks"),blockList:Oc("FooterGroup"),blocks:yV.blocks}};import{WidthIcon as I1t}from"efficient-easel/icons";import{blockAlignmentField as F1t,group as g3e}from"efficient-easel/screen/lib/document/box-fields";import{jsx as B1t}from"react/jsx-runtime";var b3e={fields:{_gContent:g3e("Content"),tagline:je("Body","Short brand tagline"),_gStyle:g3e("Style"),widthPct:ae("Width",B1t(I1t,{}),40,400,1,100,"%"),align:F1t(),...bN,...Hp({keys:{top:"padTop",right:"padRight",bottom:"padBottom",left:"padLeft"},phone:!1})}};import{PhoneIcon as H1t,LineBetweenIcon as D1t}from"efficient-easel/icons";import{deviceField as M1t}from"efficient-easel/screen/lib/document/device-fields";import{group as y3e}from"efficient-easel/screen/lib/document/box-fields";var w3e=Sn(),vV={template:{...w3e,allow:[...w3e.allow,rg]}},x3e={label:"Menu",fields:vV,defaultProps:{accordionMobile:!1,showDividers:!1}};import{jsx as kV}from"react/jsx-runtime";var v3e={fields:{...vV,_gContent:y3e("Content"),menu:{type:"custom",render:({value:e,onChange:t})=>kV(LH,{value:e,onChange:t})},heading:Q("Heading","Column heading"),_gStyle:y3e("Style"),accordionMobile:M1t("mobile",oe("Show as accordion",!1,kV(H1t,{}))),showDividers:oe("Dividers between links",!1,kV(D1t,{}))}};var SV={template:Sn()},k3e={label:"Article Body",fields:SV,defaultProps:{}};var S3e={fields:{...SV}};import{Button as z1t}from"efficient-shell/ui";import{Fragment as U1t,jsx as TV,jsxs as W1t}from"react/jsx-runtime";function EV(){let{openPanel:e}=zC();return TV(U1t,{children:W1t(NC,{title:u("Social links"),children:[TV("p",{className:"es-field-hint",children:u("The links are typed once for the whole website, in Site settings.")}),TV(z1t,{variant:"link",size:"sm",onClick:e,children:u("Edit social links \u2192")})]})})}import{StylesIcon as $1t,TextSizeIcon as K1t,GapIcon as V1t}from"efficient-easel/icons";import{group as T3e}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Y1t}from"efficient-easel/screen/lib/document/device-fields";import{jsx as m4}from"react/jsx-runtime";var E3e={fields:{_gStyle:T3e("Style"),iconStyle:_e("Icon style",m4($1t,{}),[{label:"Outline",value:"outline"},{label:"Solid",value:"solid"}],ow),iconSize:_e("Icon size",m4(K1t,{}),[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}],"medium"),_socialLinks:{type:"custom",render:()=>m4(EV,{})},_gLayout:T3e("Layout"),align:sx(),gap:Y1t("desktop",ae("Gap",m4(V1t,{}),0,32,2,0,"px"))}};import{TextSizeIcon as j1t}from"efficient-easel/icons";import{group as q1t}from"efficient-easel/screen/lib/document/box-fields";var CV=see.lead,P3e={label:"Payment Logos",defaultProps:{lead:CV,methods:[],size:"sm",align:"left"}};import{jsx as X1t}from"react/jsx-runtime";var _3e={fields:{lead:U("Lead",CV),dataSource:oo("Methods from","Typed here"),methods:{type:"array",label:"Payment methods",arrayFields:{label:ye("Name")},getItemSummary:e=>e.label||"Method"},_gStyle:q1t("Style"),size:_e("Size",X1t(j1t,{}),[{label:"S",value:"sm"},{label:"M",value:"md"}],"sm"),align:sx()},resolveFields:(e,{fields:t})=>no("FooterPayment",t,e.props,{hides:["methods"]})};import{TextSizeIcon as Z1t}from"efficient-easel/icons";import{group as C3e}from"efficient-easel/screen/lib/document/box-fields";import{jsx as J1t}from"react/jsx-runtime";var R3e={fields:{_gContent:C3e("Content"),dataSource:oo("Text from","Typed here"),text:je("Body","Footer text"),_gStyle:C3e("Style"),size:_e("Size",J1t(Z1t,{}),[{label:"S",value:"sm"},{label:"M",value:"md"},{label:"L",value:"lg"}],"md"),tone:eO()},resolveFields:(e,{fields:t})=>no("FooterText",t,e.props,{hides:["text"]})};import{group as OV,section as Q1t}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as ekt,styleFieldBuilders as tkt}from"efficient-easel/screen/lib/document/style-fields";import{BUTTON_STYLE_KEYS as wv}from"efficient-easel/screen/lib/content/style-keys";import{BUTTON_CORNERS_UNIT_KEY as okt}from"efficient-easel/screen/lib/content/length-units";import{deviceField as N3e}from"efficient-easel/screen/lib/document/device-fields";import{EyeIcon as nkt}from"efficient-easel/icons";var RV={[xs]:{type:"slot",allow:[...C5]}},O3e={ownPad:ZPe,label:"Form",fields:RV,defaultProps:{formSlug:"",heading:"",intro:"",submitText:"",finePrint:""}};import{jsx as skt}from"react/jsx-runtime";var rkt=e=>Ab(e==="Corners"?"Field corners":e),{cornersField:akt}=tkt(rkt,{lengthUnits:aC}),L3e={kind:"radius",unitKey:okt},ikt=()=>0,A3e={fields:{...RV,_gForm:OV("Form"),formSlug:Fc(),_gContent:OV("Content"),heading:Q("Heading override"),intro:je("Intro"),submitText:Q("Submit button"),finePrint:Q("Fine print"),_gPreview:N3e("desktop",OV(yu)),[Gu]:N3e("desktop",ne("Show",skt(nkt,{}),[...R5],"form")),_dDesign:Q1t("Design"),[wv.corners]:akt({key:wv.corners,sidesKey:wv.cornerSides,useFollows:ikt,step:4,length:L3e}),[wv.cornerSides]:ekt(wv.corners),...id(L3e,wv.corners)}};var I3e={fields:{copyright:U("Copyright","\xA9 Your company","Leave it empty to show the company name and the year it started.")}};var F3e={fields:{}};import{ClockIcon as dkt}from"efficient-easel/icons";var lkt="location-opening",u4=[{label:"Open now badge",value:"badge"},{label:"The week",value:"week"}],rE="week",B3e={label:"Opening hours",defaultProps:{show:rE,title:"Opening hours",dataSource:lkt}};import{jsx as ckt}from"react/jsx-runtime";var H3e={fields:{show:ne("Show",ckt(dkt,{}),u4,rE),title:q("Heading","Opening hours"),dataSource:oo("Hours from","None")},resolveFields:(e,{fields:t})=>no("OpeningHours",t,e.props)};var D3e={fields:{title:q("Heading","Rates"),description:q("Body","What a visit costs."),dataSource:oo("Rates from","None")},resolveFields:(e,{fields:t})=>no("RateTable",t,e.props)};var M3e={fields:{title:q("Heading","Message us"),description:q("Body",""),dataSource:oo("Apps from","None")},resolveFields:(e,{fields:t})=>no("MessagingCards",t,e.props)};var z3e={fields:{heading:U("Heading","Message us"),dataSource:oo("Apps from","None")},resolveFields:(e,{fields:t})=>no("FooterMessaging",t,e.props)};import{PhoneIcon as Rkt}from"efficient-easel/icons";var f4="site-messaging",pkt=["wechat","telegram","whatsapp","line"],oi={open:e=>`Open ${e}`,opensApp:"(opens the app)",copyId:"Copy ID",copied:"Copied",scanWith:e=>`Scan with ${e}`,searchFor:e=>`Search for this ID in ${e}`,qrLabel:(e,t)=>t?`${e} QR code, ${t}`:`${e} QR code`},sh="inline-flex items-center gap-1.5 text-[14px] font-medium text-accent underline-offset-4 hover:underline",mkt=e=>typeof e=="string"&&pkt.includes(e),W3e=e=>typeof e=="string"&&/^https?:\/\/\S+$/i.test(e.trim())?e.trim():"",U3e=e=>typeof e=="string"?e.trim():"";function h4(e){let t=new Set,o=[];for(let n of e){if(!mkt(n.app)||t.has(n.app))continue;let r={app:n.app,name:U3e(n.name)||ukt[n.app],handle:U3e(n.handle),href:n.app==="wechat"?"":W3e(n.href),qr:W3e(n.qr)};!r.handle&&!r.qr||(t.add(n.app),o.push(r))}return o}var ukt={wechat:"WeChat",telegram:"Telegram",whatsapp:"WhatsApp",line:"LINE"},NV=8,LV=["phone","email","whatsapp","line","telegram","wechat","kakaotalk"],xv={phone:"Phone",email:"Email",whatsapp:"WhatsApp",line:"LINE",telegram:"Telegram",wechat:"WeChat",kakaotalk:"KakaoTalk"},fkt=200,hkt=40,gkt=/^[A-Za-z][A-Za-z0-9_]{3,31}$/,bkt=/^\+[1-9][0-9]{7,14}$/,wkt=/^@?[a-z0-9._-]{3,20}$/,xkt=/^[A-Za-z0-9_-]{2,40}$/,ykt=/^[A-Za-z0-9._-]{2,40}$/,vkt=/^[^\s@<>()",;:]+@[^\s@<>()",;:]+\.[^\s@<>()",;:]{2,}$/;function kkt(e){let t=e.trim().replace(/^(?:https?:\/\/)?(?:www\.)?(?:t\.me|telegram\.me|telegram\.dog)\//i,"").replace(/^@/,"").replace(/\/+$/,"");return gkt.test(t)?t:null}function Skt(e){let t=e.trim(),o=t.match(/^(?:https?:\/\/)?(?:www\.)?wa\.me\/(\d+)\/?$/i),n=o?`+${o[1]}`:t.replace(/[\s().\-/]/g,"");return n.startsWith("00")&&(n=`+${n.slice(2)}`),n=n.replace(/^\+610/,"+61"),/^0[2-478]\d{8}$/.test(n)?n=`+61${n.slice(1)}`:/^61[2-478]\d{8}$/.test(n)&&(n=`+${n}`),bkt.test(n)?n:null}function Tkt(e){let t=e.trim(),o=t.match(/^(?:https?:\/\/)?line\.me\/(?:R\/)?ti\/p\/(.+?)\/?$/i),n=t;if(o){let r=o[1];if(r.startsWith("~"))n=r.slice(1);else if(/^(?:@|%40)/i.test(r))n=`@${r.replace(/^(?:@|%40)/i,"")}`;else return null}return n=n.toLowerCase(),wkt.test(n)?n:null}function Ekt(e){let t=e.trim().replace(/\s+/g," ");if(t.length>40||!/^\+?[\d\s().-]+$/.test(t))return null;let o=t.replace(/\D/g,"").length;return o>=8&&o<=15?t:null}function G3e(e){let t=e.replace(/\D/g,"");if(e.trim().startsWith("+")){if(!t.startsWith("61"))return e.trim();t=`0${t.slice(2)}`}return/^04\d{8}$/.test(t)?`${t.slice(0,4)} ${t.slice(4,7)} ${t.slice(7)}`:/^0[2378]\d{8}$/.test(t)?`(${t.slice(0,2)}) ${t.slice(2,6)} ${t.slice(6)}`:e.trim()}var Pkt=e=>e.startsWith("@")?`https://line.me/R/ti/p/%40${e.slice(1)}`:`https://line.me/ti/p/~${e}`,_kt=e=>typeof e=="string"&&LV.includes(e);function Ckt(e){if(!_kt(e.kind)||typeof e.value!="string")return null;let t=e.value;if(!t.trim()||t.length>fkt)return null;let o=e.kind,n={name:typeof e.name=="string"?e.name.trim().slice(0,hkt):"",kind:o,way:xv[o]};switch(o){case"phone":{let r=Ekt(t);return r?{...n,handle:G3e(r),href:lu(r)??"",qr:""}:null}case"email":{let r=t.trim();return r.length<=120&&vkt.test(r)?{...n,handle:r,href:`mailto:${r}`,qr:""}:null}case"whatsapp":{let r=Skt(t);if(!r)return null;let a=`https://wa.me/${r.slice(1)}`;return{...n,handle:G3e(r),href:a,qr:a}}case"telegram":{let r=kkt(t);if(!r)return null;let a=`https://t.me/${r}`;return{...n,handle:`@${r}`,href:a,qr:a}}case"line":{let r=Tkt(t);if(!r)return null;let a=Pkt(r);return{...n,handle:r,href:a,qr:a}}case"wechat":{let r=t.trim();return xkt.test(r)?{...n,handle:r,href:"",qr:""}:null}case"kakaotalk":{let r=t.trim().replace(/^@/,"");return ykt.test(r)?{...n,handle:r,href:"",qr:""}:null}}}function AV(e){return Array.isArray(e)?e.flatMap(t=>{if(!t||typeof t!="object")return[];let o=Ckt(t);return o?[o]:[]}).slice(0,NV):[]}var $3e=LV.map(e=>({label:xv[e],value:e})),IV="phone",K3e={label:"Contact cards",defaultProps:{title:"Who to ask",description:"",contacts:[]}};import{jsx as Okt}from"react/jsx-runtime";var V3e={fields:{title:q("Heading","Who to ask"),description:q("Body",""),contacts:{type:"array",label:"Contacts",max:NV,arrayFields:{name:ye("Name","Who to ask for"),kind:ne("Reach by",Okt(Rkt,{}),$3e,IV),value:ye("Number or ID","A number, @name or an ID")},defaultItemProps:{name:"",kind:IV,value:""},getItemSummary:e=>e.name||(e.kind&&Object.hasOwn(xv,e.kind)?xv[e.kind]:"Contact")}}};import{StarIcon as Nkt}from"efficient-easel/icons";var Y3e={label:"Rating",defaultProps:{rating:0}};import{jsx as Lkt}from"react/jsx-runtime";var j3e={fields:{rating:ae("Rating",Lkt(Nkt,{}),0,lm,1,0)}};import{group as X3e}from"efficient-easel/screen/lib/document/box-fields";var yv={eyebrow:"Your turn",title:"Leave a *review.*"},q3e={ownPad:DA,label:"Review Form",defaultProps:{eyebrow:"",title:"",designCode:""}};var Akt="e.g. D00123 \xB7 blank = the whole store",Z3e={fields:{_gContent:X3e("Content"),eyebrow:U("Eyebrow",yv.eyebrow),title:q("Heading",yv.title),_gSource:X3e("Reviews"),designCode:Pr(Q("Design code",Akt))},resolveFields:(e,{fields:t,parent:o})=>it(t,e.props.headPlacement,st.ReviewForm.headRows)};import{StylesIcon as Wkt,HashIcon as Ukt,ColumnsIcon as Gkt,StarIcon as $kt}from"efficient-easel/icons";import{group as DV}from"efficient-easel/screen/lib/document/box-fields";import{useEasel as Ikt}from"efficient-easel/easel";import{jsx as J3e}from"react/jsx-runtime";var Fkt={thisProduct:!0,codeWithoutProduct:!0,untouched:"all",keepsCategory:!1};function Bkt(e){return Tr()&&!YL({appState:e})}function Hkt({value:e,onChange:t,wheels:o,categories:n,onProductPage:r,loading:a}){return J3e(tI,{value:e,onChange:t,wheels:o,categories:n,onProductPage:r,loading:a,rules:Fkt,noProductHint:u("No product chosen yet, so reviews of every product show.")})}function FV({value:e,onChange:t}){let o=Ikt(a=>Bkt(a.appState)),{wheels:n,categories:r}=oI();return J3e(Hkt,{value:e,onChange:t,wheels:n,categories:r,onProductPage:o,loading:n===null})}import{Button as Dkt}from"efficient-shell/ui";import{useEaselHost as Mkt}from"efficient-easel/screen/lib/host";import{jsx as zkt}from"react/jsx-runtime";var Q3e=["storefront-editor:open-site-section",{section:"reviews"}];function BV(){let e=Mkt();return zkt(Dkt,{variant:"link",size:"sm",onClick:()=>e.send(Q3e[0],Q3e[1]),children:u("Edit in Reviews \u2192")})}var vv={eyebrow:"Reviews",title:"From our *customers.*"},HV={template:Sn()},e4e={ownPad:DA,label:"Reviews",fields:HV,defaultProps:{eyebrow:"",title:"",columns:3,limit:6,dataSource:GR,items:[]}};import{jsx as aE}from"react/jsx-runtime";var g4={field:Xv,set:!0},Kkt=[{label:"None",value:""},...Array.from({length:lm},(e,t)=>({label:String(t+1),value:String(t+1)}))],t4e={fields:{_gContent:DV("Content"),eyebrow:U("Eyebrow",vv.eyebrow),eyebrowLook:ne("Eyebrow style",aE(Wkt,{}),[...Js],Np("Reviews")),title:q("Heading",vv.title),_gSource:DV("Reviews"),dataSource:oo("Review content","Manual"),_editReviews:at({type:"custom",render:()=>aE(BV,{})},g4),items:at({type:"array",label:"Typed reviews",arrayFields:{quote:je("Quote"),title:Q("Title"),name:Q("Name"),role:Q("Role \xB7 location"),rating:ne("Rating",aE($kt,{}),Kkt,"")},defaultItemProps:{quote:"",title:"",name:"",role:"",rating:""},getItemSummary:e=>e?.name||e?.quote||"Review"},{not:g4}),...HV,limit:at(ae("Items to display",aE(Ukt,{}),3,12,1,6),g4),dataSourceOptions:at(Uo(FV),g4),_gStyle:DV("Style"),columns:ae("Columns",aE(Gkt,{}),1,3,1,3)},resolveFields:(e,{fields:t,parent:o})=>no("Reviews",it(t,e.props.headPlacement,st.Reviews.headRows),e.props,{hides:["items"]})};import{StickyIcon as Vkt}from"efficient-easel/icons";var MV={sections:{type:"slot"}},o4e={label:"Site Footer",fields:MV};import{jsx as Ykt}from"react/jsx-runtime";var n4e={fields:{...HC(),revealOnScroll:oe("Reveal on scroll",!1,Ykt(Vkt,{})),sections:MV.sections}};import{CartIcon as jkt,CaseIcon as qkt,ContrastIcon as Xkt,HeightIcon as Zkt,LayoutIcon as Jkt,OpacityIcon as Qkt,StickyIcon as eSt,TextColorIcon as tSt,TextSizeIcon as oSt}from"efficient-easel/icons";var zV={sections:{type:"slot"}},r4e={label:"Site Header",fields:zV,defaultProps:{sticky:"always",topTextColor:"auto",sections:[]}};import{jsx as Fm}from"react/jsx-runtime";var{sectionAccent:nSt}=LC(e=>u1(e)??m1,"Follow the site theme"),a4e={fields:{heightPx:ae("Height",Fm(Zkt,{}),li.min,li.max,2,li.default,"px"),...HC(),sectionAccent:nSt,topTextColor:_e("Text color at the top",Fm(Xkt,{}),[{label:"Auto",value:"auto"},{label:"Light",value:"light"},{label:"Dark",value:"dark"},{label:"Custom",value:JR}],"auto"),topTextCustom:at(fs("Top text color",bP,Fm(tSt,{})),{field:"topTextColor",is:JR}),linkOpacity:ae("Link opacity",Fm(Qkt,{}),FH,BH,1,qce,"%"),iconSize:ne("Icon size",Fm(oSt,{}),[...HH],DH),cartIcon:ne("Cart icon",Fm(jkt,{}),[...MH],zH),navTextCase:_e("Letters",Fm(qkt,{}),[...c1],IH),menuRow:_e("Menu row",Fm(Jkt,{}),[...XR],ZR),sticky:_e("Sticky header",Fm(eSt,{}),[{label:"None",value:"none"},{label:"Always",value:"always"},{label:"On scroll up",value:"on_scroll_up"}],"always"),...Zu(["tools"],{tools:"toolTextStyle"},{tools:"Tool words"},{unsetLabel:"Header's own"}),sections:zV.sections}};import{group as rSt}from"efficient-easel/screen/lib/document/box-fields";var i4e={field:"region",is:"head"},aSt={not:i4e},iSt={any:[]};function sSt(e){let t=SO.map(a=>TO[a]),o=["eyebrow","title"],n=["body","formSlug","buttonText","consent"],r=[];for(let a of Object.keys(e))a.startsWith("_")||(o.includes(a)?r.push([[a],i4e]):n.includes(a)||t.includes(a)?r.push([[a],aSt]):r.push([[a],iSt]));return r}var s4e={fields:{...Zu(SO,TO,Dhe,{unsetLabel:"Section's own"}),_gContent:rSt("Content"),eyebrow:U("Eyebrow",Wt.eyebrow),title:q("Heading",Wt.title),body:q("Body",Wt.body),formSlug:Fc(),buttonText:U("Button",Wt.buttonText),consent:q("Consent line",Wt.consent)},resolveFields:(e,{fields:t})=>Le(t,sSt(t))};import{group as b4}from"efficient-easel/screen/lib/document/box-fields";var WV={boxes:{type:"slot",allow:["SubmitBox"]}},l4e={ownPad:QPe,label:"Photo Submission Form",fields:WV,defaultProps:{eyebrow:Wt.eyebrow,title:Wt.title,body:Wt.body,formSlug:"",buttonText:Wt.buttonText,consent:Wt.consent}};var d4e={fields:Le({_gContent:b4("Content"),eyebrow:U("Eyebrow",Wt.eyebrow),title:q("Heading",Wt.title),body:q("Body",Wt.body),_gForm:b4("Form"),formSlug:Fc(),_gButton:b4("Button"),buttonText:U("Button",Wt.buttonText),_gFootnote:b4("Footnote"),consent:q("Consent line",Wt.consent),boxes:WV.boxes},[[["_gContent","eyebrow","title","body","_gForm","formSlug","_gButton","buttonText","_gFootnote","consent"],{not:{field:"layout",is:"boxes"}}]])};import{parseOption as lSt}from"efficient-shell/format";var c4e=["issues","posts"],p4e=[{label:"Issues",value:"issues"},{label:"Blog posts",value:"posts"}],w4="issues";function m4e(e){return lSt(c4e,w4,e)}var dSt={issues:["issues"],_gPosts:["posts"],posts:["posts"],limit:["posts"]};function u4e(e){return Le(e,Object.entries(dSt).map(([t,o])=>[[t],qn("contentType",c4e,w4,o)]))}import{BorderAllIcon as pSt,CategoryIcon as mSt,HashIcon as uSt}from"efficient-easel/icons";import{section as UV,group as A0,VIEW_KEY_ACCESS as h4e}from"efficient-easel/screen/lib/document/box-fields";var Mo={headNum:W.sectionNumber,headTitle:W.headingAccent,headDesc:"A short description of your newsletter or publication.",kicker:"\u2192 Newsletter",leadTitle:"Get it in the *inbox.*",intro:"Tell readers what they get and how often. One email, straight to the inbox. We will never sell your address.",emailPlaceholder:"your@email.com",submitText:"Subscribe \u2192",subscribedText:"Subscribed \u2713",finePrint:"Approx. 1 email per week \xB7 Unsubscribe in one click",issuesHeading:"Recent issues",archiveText:"View the full archive \u2192",archiveHref:ac.href},f4e=()=>["N\xB0 04","N\xB0 03","N\xB0 02","N\xB0 01"].map(e=>({n:e,title:u("Issue title"),small:u("Short description"),date:u("Month YYYY")}));function cSt(e){return e.map((t,o)=>({n:`N\xB0 ${String(e.length-o).padStart(2,"0")}`,title:t.title,small:t.meta}))}function x4(e,t){if(e==="issues")return De(t.issues,f4e(),t.editor);let o=t.posts,n=typeof t.limit=="number"&&t.limit>0?t.limit:4,r=Array.isArray(o)?cSt(o.slice(0,n)):[];return De(r,f4e(),t.editor)}import{jsx as GV}from"react/jsx-runtime";var g4e={fields:u4e({_sHead:UV("Section header"),_gHeadCopy:A0("Content"),headNum:U("Number",Mo.headNum),headTitle:q("Heading",Mo.headTitle),headDesc:q("Body",Mo.headDesc),_sLeft:UV("Newsletter panel"),_gLeftCopy:A0("Content"),kicker:U("Eyebrow",Mo.kicker),leadTitle:q("Heading",Mo.leadTitle),intro:q("Intro",Mo.intro),_gForm:A0("Signup form"),emailPlaceholder:Q("Email placeholder",Mo.emailPlaceholder),submitText:Q("Submit button",Mo.submitText),subscribedText:Q("Subscribed button",Mo.subscribedText),finePrint:q("Fine print",Mo.finePrint),_gLayout:A0("Layout"),...il("align",{access:h4e}),...iC("textAlign",{access:h4e,allow:["left","center","right"]}),panel:oe("Panel",!0,GV(pSt,{})),_sRight:UV("Recent issues"),_gRightCopy:A0("Content"),contentType:_e("Type",GV(mSt,{}),[...p4e],w4),issuesHeading:U("Panel heading",Mo.issuesHeading),issues:{type:"array",label:"Issues",arrayFields:{n:ye("Number"),title:ye("Title"),small:ye("Sub-line"),date:ye("Date")},getItemSummary:e=>[e?.n,e?.title].filter(Boolean).join(" \xB7 ")||u("Issue")},_gPosts:A0("Blog posts"),posts:Uo(N0),limit:ae("Posts to display",GV(uSt,{}),1,6,1,4),_gArchive:A0("Archive link"),archiveText:U("Archive button",Mo.archiveText),archiveHref:Ve("Archive link")}),resolveFields:(e,{fields:t})=>it(t,e.props.headPlacement,st.Subscribe.headRows)};import{HashIcon as fSt}from"efficient-easel/icons";import{section as $V,group as kv}from"efficient-easel/screen/lib/document/box-fields";var Zo={...Mo,issuesHeading:"Recent posts",archiveText:"Read all posts \u2192"},b4e={ownPad:MA,label:"Subscribe with Posts",defaultProps:{headNum:"",headTitle:"",headDesc:"",kicker:"",leadTitle:"",intro:"",emailPlaceholder:"",submitText:"",subscribedText:"",finePrint:"",issuesHeading:"",limit:4,archiveText:"",archiveHref:""}};import{jsx as hSt}from"react/jsx-runtime";var w4e={fields:{_sHead:$V("Section header"),_gHeadCopy:kv("Content"),headNum:U("Number",Zo.headNum),headTitle:q("Heading",Zo.headTitle),headDesc:q("Body",Zo.headDesc),_sLeft:$V("Newsletter panel"),_gLeftCopy:kv("Content"),kicker:U("Eyebrow",Zo.kicker),leadTitle:q("Heading",Zo.leadTitle),intro:q("Intro",Zo.intro),_gForm:kv("Signup form"),emailPlaceholder:Q("Email placeholder",Zo.emailPlaceholder),submitText:Q("Submit button",Zo.submitText),subscribedText:Q("Subscribed button",Zo.subscribedText),finePrint:q("Fine print",Zo.finePrint),_sRight:$V("Recent posts"),_gRightCopy:kv("Content"),issuesHeading:U("Panel heading",Zo.issuesHeading),_gPosts:kv("Blog posts"),posts:Uo(N0),limit:ae("Posts to display",hSt(fSt,{}),1,6,1,4),_gArchive:kv("Archive link"),archiveText:U("Archive button",Zo.archiveText),archiveHref:Ve("Archive link")}};import{jsx as Is,jsxs as iE}from"react/jsx-runtime";function VV(e={}){let t=Cie();return Is(_he,{editing:e.editing,previewConfirmation:!!e.nodeId&&t===e.nodeId,children:Is(gSt,{...e})})}var x4e="mx-auto max-w-[var(--sf-site-width,1600px)] px-[min(24px,var(--sf-site-gutter,40px))] py-16 view-wide:px-[var(--sf-site-gutter,40px)] view-wide:py-[88px]",KV="grid gap-8 min-[960px]:grid-cols-[minmax(0,1fr)_minmax(360px,0.8fr)] min-[960px]:gap-12";function gSt({eyebrow:e,heading:t,intro:o,buttonLabel:n,successMessage:r,boxes:a,inBoxes:i=!1,omitHead:s=!1,nodeId:l="AppointmentBooking",serviceTemplate:d,timeTemplate:c}){let p=he()?`${x4e} ${kZ("box").onceFrame}`:x4e,m=Te(p,pr()),{fieldPrefix:f,editing:g,services:h,currency:w,serviceId:b,setServiceId:k,requiresPayment:x,date:v,earliestDate:y,setDate:S,setDateTouched:E,availability:T,loadingSlots:_,noSlotsMessage:P,selectedStart:I,setSelectedStart:D,customerTimezone:F,name:A,setName:N,email:B,setEmail:Y,phone:K,setPhone:X,notes:Z,setNotes:V,confirmation:j,submitting:J,error:C,canSubmit:O,handleSubmit:G,sample:$}=af(),H=$?Is("p",{className:"mb-6 font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",role:"status",children:u("Example form \u2014 add an active service in {place}.",{place:u("Storefront \u2192 Booking Services")})}):null,ee=h===void 0?Is("p",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",children:"Loading appointments\u2026"}):h?.length===0?Is("p",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",role:"status",children:g?u("Add an active service in {place}.",{place:u("Storefront \u2192 Booking Services")}):"Appointments are not available right now."}):null;if(i&&a&&!s)return Is(z,{as:"section",className:"relative z-[2] border-t border-line bg-surface",children:iE("div",{...m,children:[H,j?Is(a,{className:`${KV} items-start`}):iE("form",{onSubmit:G,children:[Is(a,{className:`${KV} items-start`}),ee]})]})});let se=j?Is(vO,{successMessage:r}):ee||iE("form",{onSubmit:G,className:KV,children:[Is(xO,{owner:{id:l,type:"AppointmentBooking",serviceTemplate:d,timeTemplate:c}}),Is(yO,{buttonLabel:n})]});return s?iE(yt,{className:"relative z-[2] border-t border-line bg-surface",column:p,padOnColumn:!0,children:[H,se]}):Is(z,{as:"section",className:"relative z-[2] border-t border-line bg-surface",children:iE("div",{...m,children:[H,Is(wO,{eyebrow:e,heading:t,intro:o}),se]})})}import{jsx as bSt}from"react/jsx-runtime";var y4e=Ct("AppointmentBooking",{...uIe,render:e=>{let t=We(e.headPlacement)==="own-box",o=n=>t?void 0:n;return bSt(VV,{eyebrow:o(R(e.eyebrow,W.eyebrow,e.editor)),heading:o(R(e.heading,W.heading,e.editor)),intro:o(R(e.intro,W.body,e.editor)),omitHead:t,buttonLabel:R(e.buttonLabel,W.button,e.editor),successMessage:R(e.successMessage,W.bookingConfirmation,e.editor),boxes:e.boxes,serviceTemplate:e.serviceTemplate,timeTemplate:e.timeTemplate,inBoxes:e.layout==="boxes",nodeId:typeof e.id=="string"?e.id:void 0,editing:e.editor?.isEditing})}});import{jsx as v4e}from"react/jsx-runtime";function YV({id:e,template:t,editing:o}){let n=Ih(c4),r=n?BIe(n.fields[IIe]):o?HIe():[];return r.length?v4e(Ge,{ownerId:e,ownerType:"ArticleBody",Template:t,rows:r,fallback:null,children:a=>v4e(z,{as:"div",className:"flex flex-col",children:a})}):null}import{jsx as wSt}from"react/jsx-runtime";var k4e={...k3e,render:({id:e,template:t,editor:o})=>wSt(YV,{id:String(e??""),template:t,editing:o?.isEditing})};import{jsx as xSt}from"react/jsx-runtime";var S4e={...QT,render:e=>xSt(mM,{region:typeof e.region=="string"?e.region:void 0,nodeId:typeof e.id=="string"?e.id:void 0,serviceTemplate:e.serviceTemplate,timeTemplate:e.timeTemplate,eyebrow:R(e.eyebrow,W.eyebrow,e.editor),heading:R(e.heading,W.heading,e.editor),intro:R(e.intro,W.body,e.editor),buttonLabel:R(e.buttonLabel,W.button,e.editor),successMessage:R(e.successMessage,W.bookingConfirmation,e.editor),styleStep:e.styleStep,styleName:e.styleName,styleValue:e.styleValue,styleNote:e.styleNote})};import{hidableText as jV}from"efficient-easel/screen/lib/document/hidable";import{jsx as ySt}from"react/jsx-runtime";var T4e={...vIe,render:e=>{let t=We(e.headPlacement)==="own-box",o=n=>t?void 0:n;return ySt(aV,{routingNumber:o(R(e.routingNumber,Yt.routingNumber,e.editor)),routingTagline:o(R(e.routingTagline,Yt.routingTagline,e.editor)),omitHead:t,templates:{ownerId:String(e.id??""),topic:e[gd],reason:e[bd],channel:e[gl],thanks:e[xs],pressTitles:{topic:pl(e,gd),reason:pl(e,bd),channel:pl(e,gl)}},groups:e.groups??[],formNumber:R(e.formNumber,Yt.formNumber,e.editor),formHeading:R(e.formHeading,Yt.formHeading,e.editor),metaLines:(e.metaItems??[]).map(n=>n?.text??"").filter(Boolean),showOther:e.showOther,otherLabel:jV(e.otherLabel)||Yt.otherLabel,otherNoteTitle:R(e.otherNoteTitle,Yt.otherNoteTitle,e.editor),otherNoteBody:R(e.otherNoteBody,Yt.otherNoteBody,e.editor),buttonText:jV(e.buttonText)||Yt.buttonText,consent:R(e.consent,Yt.consent,e.editor),channels:e.channels??[],formSlug:jV(e.formSlug)||void 0,form:e.form,editing:e.editor?.isEditing,showSent:e[Gu],pads:h3("ContactRouting",e,{both:zA,firstOnly:t_e,secondOnly:o_e},e_e)})}};import{useState as qV}from"react";import{jsx as _a,jsxs as Sv}from"react/jsx-runtime";function XV({title:e,contained:t,sample:o}){let[n,r]=qV(""),[a,i]=qV(o??null),[s,l]=qV(!1);return _a(It,{contained:t,className:"py-6",children:_a(vSt,{title:e,query:n,list:a,busy:s,onQuery:r,onSearch:async c=>{if(c.preventDefault(),!(o||!n.trim())){l(!0);try{i(await ise(n))}catch{i({near:"try_again",dealers:[]})}finally{l(!1)}}}})})}function vSt({title:e,query:t,list:o,busy:n=!1,onQuery:r,onSearch:a}){let i=o?Oie(o.near):null,s=o&&o.near!=="not_found"?o.dealers:[],l=Aie(s);return Sv("div",{className:"flex flex-col gap-5",children:[e&&_a("h2",{className:"font-heading3 text-[length:min(var(--size-headingSmall,28px),var(--sf-heading-max,9999px))] font-medium leading-[1.1] tracking-[-0.02em]",children:te(e,!1)}),Sv("form",{role:"search",className:"flex max-w-[560px] gap-2",onSubmit:a,children:[_a("input",{type:"search",name:"near",value:t,onChange:d=>r?.(d.target.value),placeholder:fc.placeholder,"aria-label":fc.placeholder,maxLength:120,className:`${gc} rounded-sm border border-line bg-transparent px-3 py-2 text-[15px]`}),_a("button",{type:"submit",disabled:n,className:"rounded-sm bg-btn px-4 py-2 text-[15px] font-medium text-btn-ink disabled:opacity-60",children:n?fc.searching:fc.search})]}),i&&_a("p",{role:"status",className:"text-[15px] opacity-80",children:i}),o&&o.near!=="not_found"&&!s.length&&_a("p",{role:"status",className:"text-[15px] opacity-80",children:fc.none}),s.length>0&&Sv("div",{className:"grid gap-5 md:grid-cols-2",children:[_a("ol",{className:"flex flex-col text-[15px]",children:s.map((d,c)=>{let p=Nie(d.distanceKm),m=Lie(d);return Sv("li",{className:"flex gap-3 border-b border-line py-3 last:border-b-0",children:[_a("span",{"aria-hidden":!0,className:"w-6 shrink-0 font-medium tabular-nums",children:c+1}),Sv("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[Sv("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4",children:[_a("span",{className:"font-medium",children:d.name}),p&&_a("span",{className:"tabular-nums opacity-70",children:p})]}),d.address&&_a("span",{children:d.address}),m&&_a("span",{children:m}),d.phone&&_a("a",{href:lu(d.phone),className:"underline-offset-2 hover:underline",children:d.phone}),d.website&&_a("a",{href:d.website,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:fc.website})]})]},d.id)})}),l.length>0&&_a("div",{role:"img","aria-label":fc.map,className:"relative min-h-[280px] overflow-hidden rounded-sm border border-line",style:{background:"color-mix(in oklab, var(--accent) 6%, transparent)"},children:l.map(d=>_a("span",{"data-dealer-pin":d.index+1,className:"absolute flex h-6 w-6 -translate-x-1/2 -translate-y-full items-center justify-center rounded-full bg-accent text-[12px] font-medium text-accent-ink",style:{left:`${d.left}%`,top:`${d.top}%`},children:d.index+1},d.id))})]})]})}import{readHidable as kSt}from"efficient-easel/screen/lib/document/hidable";var E4e={label:"Dealer Locations",defaultProps:{title:fc.title}};import{jsx as ESt}from"react/jsx-runtime";var SSt=()=>({near:"found",dealers:[{id:"sample-1",name:"Harbour Wheels",address:"12 Quay St",city:"Sydney",state:"NSW",postcode:"2000",country:"AU",phone:"02 9000 0000",website:"https://example.com",lat:-33.86,lng:151.21,distanceKm:1.2},{id:"sample-2",name:"Western Tyres",address:"4 Great Western Hwy",city:"Parramatta",state:"NSW",postcode:"2150",country:"AU",phone:"02 9600 0000",website:"",lat:-33.81,lng:151,distanceKm:21.4}]}),TSt=e=>{let{text:t,hidden:o}=kSt(e);return o||!t?void 0:t},P4e={...E4e,render:e=>ESt(XV,{title:TSt(e.title),contained:e.contained!==!1,sample:e.editor?.isEditing?SSt():void 0})};import{useEffect as Tv,useId as L4e,useMemo as O4e,useRef as tY,useState as Ra}from"react";import{userZone as NSt}from"efficient-shell/format";import{useEffect as C4e,useId as PSt,useRef as _4e,useState as Bm}from"react";var Ca="mx-auto w-full max-w-[420px] rounded-[16px] border border-line bg-bg px-5 py-[22px] text-[14px] leading-[1.5] text-fg",Si="text-[20px] font-medium leading-[1.3]",br="text-[13px] text-fg-dim",lh="mt-4 flex h-11 w-full cursor-pointer items-center justify-center rounded-[10px] bg-btn font-medium text-btn-ink disabled:cursor-wait disabled:opacity-60",Yl="mt-[14px] rounded-[10px] bg-alert/10 px-3 py-[10px] text-[13px] text-alert";import{Fragment as CSt,jsx as Br,jsxs as sE}from"react/jsx-runtime";function ZV({product:e,productName:t,startHref:o,inert:n=!1}){let r=n?"":Zie(ga()),[a,i]=Bm(r?"opening":"form"),[s,l]=Bm(),[d,c]=Bm(""),[p,m]=Bm(null),[f,g]=Bm(null),[h,w]=Bm(!1),[b,k]=Bm(null),[x,v]=Bm(0),[y,S]=Bm(!1);return C4e(()=>{if(!r)return;let T=!1;return pse(r).then(_=>{T||(_?window.location.assign(_):(w(!0),i("form")))}).catch(_=>{T||(k(_ instanceof sr?Jie(_.status):"failed"),i("form"))}),()=>{T=!0}},[r,x]),Br(_St,{stage:a,focus:s,productName:t,startHref:o,email:d,wrong:p,trouble:f,linkGone:h,openTrouble:b,busy:y,onEmail:T=>{c(T),m(null),g(null)},onSubmit:async T=>{if(T.preventDefault(),n||y)return;let _=XC(d);if(m(_),g(null),!_){S(!0);try{await cse(e,d),w(!1),k(null),l("sent"),i("sent")}catch(P){let I=P instanceof sr?Qie(P.status,P.data):{email:null,trouble:"failed"};m(I.email),g(I.trouble)}finally{S(!1)}}},onAnother:()=>{l("form"),i("form")},onRetry:()=>{k(null),l(void 0),i("opening"),v(T=>T+1)}})}function _St({stage:e,focus:t,productName:o,startHref:n,email:r,wrong:a,trouble:i,linkGone:s=!1,openTrouble:l=null,busy:d=!1,onEmail:c,onSubmit:p,onAnother:m,onRetry:f}){let g=PSt(),h=_4e(null),w=_4e(null);if(C4e(()=>{t===e&&(e==="sent"?h:w).current?.focus()},[e]),e==="opening")return Br("div",{className:Ca,role:"status",children:Br("p",{className:br,children:Ai.opening})});if(e==="sent"){let[b,k]=Ai.sentBody.split("{email}");return sE("div",{className:Ca,children:[Br("h2",{ref:h,tabIndex:-1,className:`${Si} outline-none`,children:Ai.sentTitle}),sE("p",{className:"mt-[10px]",children:[b,Br("span",{className:"font-medium",children:r.trim()}),k]}),Br("p",{className:`${br} mt-[10px]`,children:Ai.sentNote}),Br("button",{type:"button",onClick:m,className:"mt-[18px] flex h-11 w-full cursor-pointer items-center justify-center rounded-[10px] border border-line font-medium text-fg",children:Ai.another})]})}return sE("form",{noValidate:!0,onSubmit:p,className:Ca,children:[Br("h2",{className:Si,children:Ai.title}),l?sE(CSt,{children:[Br("p",{role:"alert",className:`${Yl} mt-[10px]`,children:l==="unreachable"||l==="tooMany"?rt.trouble[l]:Ai.openFailed}),Br("button",{type:"button",onClick:f,className:"mt-3 flex h-11 w-full cursor-pointer items-center justify-center rounded-[10px] border border-line font-medium text-fg",children:Ai.retry})]}):s?Br("p",{role:"alert",className:`${Yl} mt-[10px]`,children:Ai.linkGone}):Br("p",{className:`${br} mt-1`,children:Ai.intro}),Br("label",{htmlFor:`${g}-email`,className:"mb-1 mt-3 block text-[13px] font-medium",children:rt.email}),Br("div",{className:`flex h-11 items-center rounded-[10px] border bg-bg px-3 ${a?"border-alert":"border-line focus-within:border-accent"}`,children:Br("input",{ref:w,id:`${g}-email`,name:"email",type:"email",autoComplete:"email",maxLength:254,value:r,"aria-invalid":a?!0:void 0,"aria-describedby":a?`${g}-email-said`:void 0,onChange:b=>c?.(b.target.value),className:"h-full w-full bg-transparent text-[14px] text-fg outline-none focus-visible:outline-none!"})}),a&&Br("p",{id:`${g}-email-said`,role:"alert",className:"mt-1 text-[13px] text-alert",children:a}),i&&Br("p",{role:"alert",className:Yl,children:rt.trouble[i]}),Br("button",{type:"submit",disabled:d,className:lh,children:d?rt.sending:Ai.submit}),n&&sE("p",{className:`${br} mt-3 text-center`,children:[Li(Ai.newHere,{name:o})," ",Br(Be,{href:n,className:"text-accent",children:Ai.create})]})]})}import{useEffect as RSt,useState as y4}from"react";import{jsx as wo,jsxs as bp}from"react/jsx-runtime";function QV({token:e,productName:t,suffix:o,startHref:n,findHref:r}){let[a,i]=y4(null),[s,l]=y4(null),[d,c]=y4(0),[p,m]=y4(0);RSt(()=>{let h=!1,w=a!==null;if(w&&(!jie(a)||d>=vB))return;let b=x=>{h||(x.kind==="trouble"&&a?.kind==="building"?l(x.trouble):(i(x),l(null)),c(v=>v+1))},k=window.setTimeout(()=>{lse(e).then(b).catch(()=>b({kind:"trouble",trouble:"failed"}))},w?qie(d):0);return()=>{h=!0,window.clearTimeout(k)}},[e,d,p]);let f=()=>{i(null),l(null),c(0),m(h=>h+1)},g=a?.kind==="building"&&d>=vB;return wo(OSt,{state:a,note:s,onRetry:a?.kind==="trouble"||g?f:void 0,productName:t,suffix:o,startHref:n,findHref:r})}var R4e=e=>e==="failed"?fn.troubleFailed:rt.trouble[e],JV={done:{sign:"\u2713",tone:"text-green",spin:!1},running:{sign:"\u25CC",tone:"text-accent",spin:!0},waiting:{sign:"\u25CB",tone:"text-fg-dim",spin:!1},stopped:{sign:"!",tone:"text-alert",spin:!1}};function OSt({state:e,note:t=null,onRetry:o,productName:n,suffix:r,startHref:a,findHref:i}){let s=d=>wo(Be,{href:a,className:lh,children:d}),l=o&&wo("button",{type:"button",onClick:o,className:lh,children:fn.tryAgain});if(e===null)return wo("div",{className:Ca,role:"status",children:wo("p",{className:br,children:fn.checking})});switch(e.kind){case"building":case"failed":{let d=Xie(e,n,r);return bp("div",{className:Ca,children:[wo("h2",{className:Si,children:Li(fn.settingUp,{company:e.company})}),e.kind==="building"&&wo("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":kB(e.status),"aria-label":Li(fn.settingUp,{company:e.company}),className:"mb-[10px] mt-[14px] h-[6px] rounded-[3px] bg-line",children:wo("div",{className:"h-[6px] rounded-[3px] bg-accent transition-[width] duration-500",style:{width:`${kB(e.status)}%`}})}),wo("ul",{className:e.kind==="failed"?"mt-2":void 0,children:d.map(c=>bp("li",{className:"flex items-center gap-[10px] py-[7px]",children:[wo("span",{"aria-hidden":!0,className:`inline-block w-5 text-center text-[18px] leading-none ${JV[c.at].tone} ${JV[c.at].spin?"animate-spin":""}`,children:JV[c.at].sign}),wo("span",{children:c.words})]},c.words))}),e.kind==="failed"?wo("p",{role:"alert",className:Yl,children:fn.failedBody}):wo("p",{role:"status",className:`${br} mt-3`,children:fn.aboutTen}),e.kind==="building"&&t&&wo("p",{className:`${br} mt-2`,children:R4e(t)}),e.kind==="building"&&l]})}case"ready":return bp("div",{className:Ca,children:[wo("span",{"aria-hidden":!0,className:"block text-[28px] leading-none text-green",children:"\u2713"}),wo("h2",{className:`${Si} mt-[6px]`,children:fn.readyTitle}),wo("dl",{className:"mt-[10px]",children:[[fn.workspace,e.company],[fn.address,`${e.slug}${r}`],[fn.plan,Li(fn.planName,{name:n})]].map(([d,c])=>bp("div",{className:"flex border-b border-line py-2",children:[wo("dt",{className:`${br} w-24 shrink-0`,children:d}),wo("dd",{className:"min-w-0 break-words font-medium",children:c})]},d))}),wo("p",{className:"mt-[14px]",children:fn.readyNext})]});case"taken":return bp("div",{className:Ca,children:[wo("h2",{className:Si,children:fn.takenTitle}),wo("p",{className:"mt-[6px]",children:e.slug?Li(fn.takenBody,{address:`${e.slug}${r}`}):fn.takenBodyBare}),s(fn.chooseAnother)]});case"dailyLimit":return bp("div",{className:Ca,children:[wo("h2",{className:Si,children:fn.limitTitle}),wo("p",{role:"alert",className:`${Yl} mt-1`,children:rt.trouble.dailyLimit}),wo("p",{className:`${br} mt-2`,children:fn.limitNext})]});case"closed":return bp("div",{className:Ca,children:[wo("h2",{className:Si,children:rt.closedTitle}),wo("p",{className:"mt-1",children:Li(rt.closedBody,{name:n})}),i&&bp("p",{className:`${br} mt-[10px] text-center`,children:[rt.haveOne," ",wo(Be,{href:i,className:"text-accent",children:rt.find})]})]});case"trouble":return bp("div",{className:Ca,children:[wo("h2",{className:Si,children:fn.troubleTitle}),wo("p",{role:"alert",className:`${Yl} mt-1`,children:R4e(e.trouble)}),l]});default:return bp("div",{className:Ca,children:[wo("h2",{className:Si,children:fn.goneTitle}),wo("p",{className:"mt-[6px]",children:fn.goneBody}),s(fn.again)]})}}import{Fragment as nY,jsx as ut,jsxs as Fs}from"react/jsx-runtime";function oY(e){return e.mode==="find"?ut(It,{contained:e.contained,className:"py-6",children:ut(ZV,{product:e.product,productName:e.productName,startHref:"/start",inert:!!e.sample})}):ut(LSt,{...e})}function LSt({product:e,productName:t,freeLine:o,zone:n,askCountry:r,termsHref:a,privacyHref:i,findHref:s,contained:l,sample:d}){let[c,p]=Ra(d??Fie),[m,f]=Ra(!1),[g,h]=Ra({}),[w,b]=Ra(null),[k,x]=Ra("form"),[v,y]=Ra(),[S,E]=Ra(null),[T,_]=Ra(!1),[P,I]=Ra(!1),[D,F]=Ra(()=>yB(n,"")),A=Yie(ga()),N=!!A&&!d,B=ASt(e,c.slug,!!d||N);Tv(()=>{F(yB(n,window.location.hostname))},[n]),Tv(()=>{if(d||N)return;let Z=!1;return SB(e).then(V=>{Z||(V.open||x("closed"),p(j=>({...j,country:j.country||V.country,currency:j.currency||V.currency})))}).catch(()=>{}),()=>{Z=!0}},[e,d,N]);let Y=Z=>{p(V=>({...V,...Z})),h(V=>{let j={...V};for(let J of Object.keys(Z))delete j[J];return j}),b(null)},K=async Z=>{_(!0),b(null);try{E(await sse(Wie(c,e,r))),I(Z),Z||y("sent"),x("sent")}catch(V){let j=V instanceof sr?Gie(V.status,V.data):{fields:{},trouble:"failed"};j.trouble==="closed"?x("closed"):Object.keys(j.fields).length?(h(j.fields),x("form")):b(j.trouble)}finally{_(!1)}},X=Z=>{if(Z.preventDefault(),d||T)return;let V=Uie(c,B);h(V),!Object.keys(V).length&&K(!1)};return N?ut(It,{contained:l,className:"py-6",children:ut(QV,{token:A,productName:t,suffix:D,startHref:"/start",findHref:s})}):ut(It,{contained:l,className:"py-6",children:ut(ISt,{stage:k,focus:v,product:e,onOpen:()=>x("form"),productName:t,freeLine:o,suffix:D,askCountry:r,termsHref:a,privacyHref:i,findHref:s,draft:c,wrong:g,slug:B,trouble:w,busy:T,sent:S,resent:P,onChange:Y,onCompany:Z=>Y(m?{company:Z}:{company:Z,slug:Die(Z)}),onSlug:Z=>{f(!0),Y({slug:Hie(Z)})},onCountry:Z=>Y({country:Z,currency:Iie[Z]??c.currency}),onSubmit:X,onAgain:()=>{K(!0)},onEdit:()=>{f(!0),b(null),y("form"),x("form")}})})}function ASt(e,t,o){let[n,r]=Ra({slug:"",found:{state:"empty"}}),a=tY("");return Tv(()=>{if(o||!t)return;a.current=t;let i=window.setTimeout(()=>{SB(e,t).then(s=>{a.current===t&&r({slug:t,found:zie(s)})}).catch(()=>{a.current===t&&r({slug:t,found:{state:"unknown"}})})},Bie);return()=>window.clearTimeout(i)},[e,t,o]),o?{state:"available"}:t?n.slug===t?n.found:{state:"checking"}:{state:"empty"}}var v4="flex h-11 items-center rounded-[10px] border bg-bg px-3",eY="h-full w-full bg-transparent text-[14px] text-fg outline-none focus-visible:outline-none! placeholder:text-fg-dim",N4e="flex h-11 w-full cursor-pointer items-center justify-center rounded-[10px] border font-medium text-fg disabled:cursor-wait disabled:opacity-60";function ISt(e){let{stage:t,productName:o,findHref:n,trouble:r}=e,a=n?Fs("p",{className:`${br} mt-[10px] text-center`,children:[rt.haveOne," ",ut(Be,{href:n,className:"text-accent",children:rt.find})]}):null;return t==="closed"?ut(BSt,{...e,children:a}):t==="sent"?ut(DSt,{...e}):ut(FSt,{...e,trouble:r,children:a})}function k4({id:e,label:t,error:o,hint:n,children:r}){return Fs("div",{className:"min-w-0",children:[ut("label",{htmlFor:e,className:"mb-1 mt-3 block text-[13px] font-medium",children:t}),r,o?ut("p",{id:`${e}-said`,role:"alert",className:"mt-1 text-[13px] text-alert",children:o}):n&&ut("p",{id:`${e}-said`,className:"mt-1 text-[13px]",children:n})]})}var S4=e=>e?"border-alert":"border-line focus-within:border-accent";function FSt({productName:e,freeLine:t,suffix:o,askCountry:n,termsHref:r,privacyHref:a,draft:i,wrong:s,slug:l,trouble:d,busy:c=!1,focus:p,locale:m,onChange:f,onCompany:g,onSlug:h,onCountry:w,onSubmit:b,children:k}){let x=L4e(),v=tY(null);Tv(()=>{p==="form"&&v.current?.focus()},[]);let[y,S]=Ra(m!==void 0);Tv(()=>S(!0),[]);let E=A=>A?[{value:A,label:A}]:[],T=O4e(()=>n?y?$ie(i.country,m):E(i.country):[],[n,y,i.country,m]),_=O4e(()=>n?y?Kie(i.currency,m):E(i.currency):[],[n,y,i.currency,m]),P=(A,N,B,Y,K)=>ut(k4,{id:`${x}-${A}`,label:N,error:s[A],children:ut("div",{className:`${v4} ${S4(s[A])}`,children:ut("input",{ref:A==="firstName"?v:void 0,id:`${x}-${A}`,name:A,type:B,autoComplete:Y,maxLength:K,value:i[A],"aria-invalid":s[A]?!0:void 0,"aria-describedby":s[A]?`${x}-${A}-said`:void 0,onChange:X=>A==="company"?g?.(X.target.value):f?.({[A]:X.target.value}),className:eY})})}),I=(A,N,B,Y)=>ut(k4,{id:`${x}-${A}`,label:N,error:s[A],children:ut("div",{className:`${v4} ${S4(s[A])}`,children:ut("select",{id:`${x}-${A}`,name:A,value:i[A],"aria-invalid":s[A]?!0:void 0,onChange:K=>Y(K.target.value),className:`${eY} cursor-pointer`,children:B.map(K=>ut("option",{value:K.value,children:K.label},K.value))})})}),D=s.slug??(l.state==="problem"?rt.slugProblem[l.problem]:void 0),F=l.state==="checking"?ut("span",{className:"text-fg-dim",children:rt.checking}):l.state==="available"?Fs("span",{className:"text-green",children:[ut("span",{"aria-hidden":!0,children:"\u2713 "}),rt.available]}):void 0;return Fs("form",{noValidate:!0,onSubmit:b,className:Ca,children:[ut("h2",{className:Si,children:Li(rt.title,{name:e})}),t&&ut("p",{className:`${br} mt-1`,children:t}),Fs("div",{className:"grid grid-cols-2 gap-[10px]",children:[P("firstName",rt.firstName,"text","given-name",150),P("lastName",rt.lastName,"text","family-name",150)]}),P("email",rt.email,"email","email",254),P("company",rt.company,"text","organization",200),ut(k4,{id:`${x}-slug`,label:rt.address,error:D,hint:F,children:Fs("div",{className:`${v4} gap-2 ${S4(D)}`,children:[ut("input",{id:`${x}-slug`,name:"slug",type:"text",autoComplete:"off",autoCapitalize:"none",spellCheck:!1,maxLength:30,value:i.slug,"aria-invalid":D?!0:void 0,"aria-describedby":D||F?`${x}-slug-said`:void 0,onChange:A=>h?.(A.target.value),className:`${gc} h-full bg-transparent text-[14px] text-fg outline-none focus-visible:outline-none!`}),o&&ut("span",{className:`${br} shrink-0`,children:o})]})}),n&&Fs(nY,{children:[I("country",rt.country,T,A=>w?.(A)),I("currency",rt.currency,_,A=>f?.({currency:A})),ut("p",{className:`${br} mt-[6px]`,children:rt.countryHint})]}),d&&ut("p",{role:"alert",className:Yl,children:rt.trouble[d]}),ut("button",{type:"submit",disabled:c,className:lh,children:c?rt.sending:rt.submit}),ut("p",{className:`${br} mt-3 text-center`,children:ut(HSt,{termsHref:r,privacyHref:a})}),k]})}function BSt({product:e="",productName:t,children:o,onOpen:n}){let r=L4e(),[a,i]=Ra(""),[s,l]=Ra(null),[d,c]=Ra(null),[p,m]=Ra(!1),[f,g]=Ra(!1);return Fs("form",{noValidate:!0,onSubmit:async w=>{if(w.preventDefault(),p)return;let b=XC(a);if(l(b),c(null),!b){m(!0);try{await dse(e,a),g(!0)}catch(k){let x=k instanceof sr?Mie(k.status,k.data):{open:!1,email:null,trouble:"failed"};x.open&&n?.(),l(x.email),c(x.trouble)}finally{m(!1)}}},className:Ca,children:[ut("h2",{className:Si,children:rt.closedTitle}),Fs("p",{className:"mt-[10px]",children:[Li(rt.closedBody,{name:t})," ",f?"":rt.closedLeave]}),f?ut("p",{role:"status",className:"mt-[10px] font-medium",children:Li(rt.waitingDone,{email:a.trim()})}):Fs(nY,{children:[ut(k4,{id:`${r}-email`,label:rt.email,error:s??void 0,children:ut("div",{className:`${v4} ${S4(s??void 0)}`,children:ut("input",{id:`${r}-email`,name:"email",type:"email",autoComplete:"email",maxLength:254,value:a,"aria-invalid":s?!0:void 0,"aria-describedby":s?`${r}-email-said`:void 0,onChange:w=>{i(w.target.value),l(null),c(null)},className:eY})})}),d&&ut("p",{role:"alert",className:Yl,children:rt.trouble[d]}),ut("button",{type:"submit",disabled:p,className:lh,children:p?rt.sending:rt.tellMe})]}),o]})}function HSt({termsHref:e,privacyHref:t}){let o=(i,s)=>i?ut("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2",children:s}):s,[n,r,a]=rt.agree.split(/\{terms\}|\{privacy\}/);return Fs(nY,{children:[n,o(e,rt.terms),r,o(t,rt.privacy),a]})}function DSt({draft:e,sent:t,trouble:o,busy:n=!1,resent:r=!1,focus:a,locale:i,timeZone:s,onAgain:l,onEdit:d}){let[c,p]=Li(rt.sentBody,{company:e.company.trim()}).split("{email}"),m=Vie(t?.expiresAt??"",i,s??NSt()??""),f=tY(null);return Tv(()=>{a==="sent"&&f.current?.focus()},[]),Fs("div",{className:Ca,children:[ut("h2",{ref:f,tabIndex:-1,className:`${Si} outline-none`,children:rt.sentTitle}),Fs("p",{className:"mt-[10px]",children:[c,ut("span",{className:"font-medium",children:e.email.trim()}),p]}),m&&ut("p",{className:`${br} mt-[10px]`,children:Li(rt.sentUntil,{when:m})}),o?ut("p",{role:"alert",className:Yl,children:rt.trouble[o]}):r&&!n&&ut("p",{role:"status",className:`${br} mt-[10px]`,children:rt.sentAgain}),ut("button",{type:"button",disabled:n,onClick:l,className:`${N4e} mt-[18px] border-line`,children:n?rt.sendingAgain:rt.sendAgain}),ut("button",{type:"button",disabled:n,onClick:d,className:`${N4e} mt-2 border-transparent`,children:rt.change})]})}import{parseOption as MSt}from"efficient-shell/format";import{jsx as WSt}from"react/jsx-runtime";var zSt=()=>({firstName:"Amelia",lastName:"Chen",email:"amelia@harbourlane.co",company:"Harbour Lane Studio",slug:"harbourlane",country:"AU",currency:"AUD"}),I0=(e,t="")=>typeof e=="string"?e.trim():t,A4e={...RIe,render:e=>WSt(oY,{mode:MSt(l4,eE,e.mode),product:I0(e.product),productName:I0(e.productName),freeLine:I0(e.freeLine),zone:I0(e.zone),askCountry:e.askCountry===!0,termsHref:I0(e.termsHref),privacyHref:I0(e.privacyHref),findHref:I0(e.findHref),contained:e.contained!==!1,sample:e.editor?.isEditing?zSt():void 0})};import{phoneKey as USt}from"efficient-easel/draw";import{hidableText as GSt}from"efficient-easel/screen/lib/document/hidable";import{jsx as VSt}from"react/jsx-runtime";var $St=()=>[{key:"sample-1",title:u("First card"),excerpt:u("A line about it appears here.")},{key:"sample-2",title:u("Second card"),excerpt:u("A line about it appears here.")},{key:"sample-3",title:u("Third card"),excerpt:u("A line about it appears here.")},{key:"sample-4",title:u("Fourth card"),excerpt:u("A line about it appears here.")}],I4e=(e,t,o)=>({slug:e.key||`card-${t}`,title:e.title??"",excerpt:e.excerpt??"",cover:e.cover??"",meta:e.meta||void 0,dateLabel:e.dateLabel||void 0,href:e.href||"#",...o?.facets?{facets:o.facets}:{},...o?.tags?{tags:o.tags}:{}}),KSt=e=>nI(e,t=>({facets:YIe(t.facets),tags:VIe(t.tags)})),F4e={...o3e,render:e=>{let t=We(e.headPlacement)==="own-box",o=l=>t?void 0:l,n=R(e.linkText,ih.link,e.editor),a=dt(e)!==""?Kt(e,!!e.editor?.isEditing,$St()):null,i=a&&!a.sample?KSt(e):null,s=a?a.sample?[]:a.rows.map((l,d)=>I4e(l,d,rI(i,l,d))):e.posts;return VSt(uV,{num:o(R(e.num,ih.num,e.editor)),title:o(R(e.title,ih.title,e.editor)),link:o(n?{text:n,href:GSt(e.linkHref)||"/journal"}:void 0),omitHead:t,posts:s,servedCategory:e.servedCategory,sample:a?.sample?a.rows.map((l,d)=>I4e(l,d)):void 0,columns:e.columns,limit:e.limit,showAll:e.showAll,skipCurrentPost:e.skipCurrentPost===!0,layout:e.layout,featuredWidth:e.featuredWidth,listCover:e.listCover,featuredDarken:e.featuredDarken,cardImage:e.cardImage,gap:e.gap,gapPhone:e[USt("gap")],nameFilter:e.nameFilter===!0,pads:fd(e),editing:e.editor?.isEditing,template:e.template,ownerId:String(e.id??""),viewHidden:n_(e)})}};import{useContext as rTt,useEffect as aTt,useRef as iTt,useState as U4e}from"react";import{usePreviewDevice as sTt}from"efficient-easel/screen/components/PreviewDeviceContext";import{readHidable as eTt}from"efficient-easel/screen/lib/document/hidable";import{createContext as B4e,useContext as YSt}from"react";var Kkn={...CB,asked:!0,analytics:!1,ads:!1,chosen:!1},Vkn=B4e(CB),jSt=B4e(null);function H4e(){let e=YSt(jSt);return!e||!e.ready?null:e.state.asked?{label:e.rule.footerLink,required:!0,open:e.openPanel}:{label:Gp.cookieSettings,required:!1,open:e.openPanel}}import{createContext as qSt,useContext as XSt}from"react";import{jsx as Xkn}from"react/jsx-runtime";var ZSt=qSt(null);function D4e(){return XSt(ZSt)}var dh={privacy:"Privacy",terms:"Terms of Use",cookieSettings:"Cookie settings",sitemap:"Sitemap"};import{Fragment as aY,jsx as Oa,jsxs as Hm}from"react/jsx-runtime";var T4="flex items-center justify-center gap-5 border border-fg bg-transparent px-6 py-4 font-mono text-[14px] uppercase tracking-[0.3em] text-fg transition-colors hover:bg-fg hover:text-bg",iY="font-mono text-[13px] uppercase tracking-[0.15em] text-fg underline decoration-line underline-offset-4 hover:decoration-fg",JSt="text-fg underline decoration-line underline-offset-4";function M4e({text:e}){return Hm("div",{className:"flex items-center gap-3 font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:[Oa("span",{className:"block h-1.5 w-1.5 rounded-full bg-accent"}),Oa("span",{children:e})]})}function QSt({model:e,words:t,layout:o,privacyHref:n,onAccept:r,onReject:a,onChoose:i,inline:s=!1}){let l=Hm("p",{className:"mt-3 font-body text-[15px] leading-[1.55] text-fg-dim max-[880px]:text-[14px]",children:[t.before,Oa("span",{className:"text-fg",children:t.link}),t.after,n&&Hm(aY,{children:[" ",Oa("a",{className:JSt,href:n,children:Gp.privacyPolicy})]})]}),d=e==="opt-in",c=d?Hm(aY,{children:[Oa("button",{type:"button",className:`${T4} max-[880px]:order-2`,onClick:a,children:Gp.reject}),Oa("button",{type:"button",className:`${T4} max-[880px]:order-1`,onClick:r,children:Gp.accept})]}):Hm(aY,{children:[Oa("button",{type:"button",className:`${T4} max-[880px]:order-2`,onClick:i,children:Gp.privacyChoices}),Oa("button",{type:"button",className:`${T4} max-[880px]:order-1`,onClick:r,children:Gp.ok})]}),p=d?Oa("button",{type:"button",className:iY,onClick:i,children:Gp.choose}):null,m=s?"absolute":"fixed";return o==="card"?Hm("div",{role:"region","aria-label":t.heading,"data-consent-banner":"card",className:`${m} bottom-6 left-6 z-[90] w-[420px] border border-line bg-bg p-6 [border-radius:var(--sf-section-radius,0px)] max-[880px]:inset-x-0 max-[880px]:bottom-0 max-[880px]:left-0 max-[880px]:w-auto max-[880px]:border-x-0 max-[880px]:border-b-0 max-[880px]:px-5 max-[880px]:pb-8 max-[880px]:pt-6 max-[880px]:[border-radius:0]`,children:[Oa(M4e,{text:t.heading}),l,Oa("div",{className:"mt-5 grid grid-cols-2 gap-3 max-[880px]:grid-cols-1",children:c}),p&&Oa("div",{className:"mt-4 max-[880px]:text-center",children:p})]}):Oa("div",{role:"region","aria-label":t.heading,"data-consent-banner":"bar",className:`${m} inset-x-0 bottom-0 z-[90] border-t border-line bg-bg`,children:Hm("div",{className:"flex items-center justify-between gap-10 px-10 py-6 max-view-desktop:flex-col max-view-desktop:items-start max-view-desktop:gap-5 max-[880px]:px-5 max-[880px]:pb-8",children:[Hm("div",{className:"min-w-0 max-w-[700px]",children:[Oa(M4e,{text:t.heading}),l]}),Hm("div",{className:"flex flex-none items-center gap-3 max-[880px]:grid max-[880px]:w-full",children:[p&&Oa("span",{className:"mr-3 max-[880px]:order-3 max-[880px]:mr-0 max-[880px]:mt-1 max-[880px]:text-center",children:p}),c]})]})})}function z4e({layout:e}){let t=Zn().websiteName?.trim()||vu;return Oa("div",{className:"relative min-h-[640px] w-full","data-consent-banner-preview":!0,children:Oa(QSt,{model:"opt-in",words:qse(jse.other,t,{analytics:!0,googleAds:!0,meta:!0}),layout:e,privacyHref:null,onAccept:rY,onReject:rY,onChoose:rY,inline:!0})})}function rY(){}import{Fragment as nTt,jsx as Dm,jsxs as sY}from"react/jsx-runtime";var tTt="transition-colors hover:text-fg hover:underline hover:underline-offset-4";function oTt(e,t){if(!e)return[{key:"privacy",label:dh.privacy},{key:"terms",label:dh.terms},{key:"cookies",label:dh.cookieSettings},{key:"sitemap",label:dh.sitemap}];let o=[];return e.privacyHref&&o.push({key:"privacy",label:dh.privacy,href:e.privacyHref}),e.termsHref&&o.push({key:"terms",label:dh.terms,href:e.termsHref}),t&&(t.required||e.cookieSettings)&&o.push({key:"cookies",label:t.label,onClick:t.open}),e.sitemapHref&&o.push({key:"sitemap",label:dh.sitemap,href:e.sitemapHref}),o}function E4({item:e,first:t=!1}){if(!e)return null;let o=e.href?Dm("a",{className:tTt,href:e.href,children:e.label}):e.onClick?Dm("button",{type:"button",className:`${iY} text-left`,onClick:e.onClick,children:e.label}):Dm("span",{children:e.label});return sY(nTt,{children:[!t&&Dm("span",{"aria-hidden":!0,children:"\xB7"}),o]})}var W4e=gt("FooterSection");function lE({copyright:e}={}){let t=che(),o=eTt(e),n=o.hidden?null:o.text.trim()||t,r=D4e(),a=H4e(),i=oTt(r,a);return sY(z,{as:"div",className:"flex flex-wrap justify-between gap-x-6 gap-y-3 border-t border-line pt-6 font-mono text-[13px] uppercase tracking-[0.15em] text-fg-dim max-view-tablet:flex-col max-view-tablet:gap-3",...W4e("legal-line"),children:[n!==null&&Dm("span",{...W4e("copyright"),children:n}),i.length>0&&sY("span",{className:"flex flex-wrap items-center gap-3 view-tablet:ml-auto",children:[Dm(E4,{item:i[0],first:!0}),Dm(E4,{item:i[1]}),Dm(E4,{item:i[2]}),Dm(E4,{item:i[3]})]})]})}import{viewTierForWidth as lTt}from"efficient-easel/screen/lib/content/view-tiers";import{jsx as lY,jsxs as cTt}from"react/jsx-runtime";var dTt=gt("FooterSection"),P4={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6"},G4e={1:"view-tablet:grid-cols-1",2:"view-tablet:grid-cols-2",3:"view-tablet:grid-cols-3",4:"view-tablet:grid-cols-4",5:"view-tablet:grid-cols-5",6:"view-tablet:grid-cols-6"},$4e={1:"view-desktop:grid-cols-1",2:"view-desktop:grid-cols-2",3:"view-desktop:grid-cols-3",4:"view-desktop:grid-cols-4",5:"view-desktop:grid-cols-5",6:"view-desktop:grid-cols-6"};function dY({blocks:e,editing:t=!1,width:o,columns:n,logoFill:r,logoRowFill:a}){let i=he(),s=rTt(L2),{desktop:l,tablet:d,mobile:c}=h_(n),{desktop:p,tablet:m,mobile:f}={...kb,...r},{desktop:g,tablet:h,mobile:w}={...Sb,...a},b=sTt(),k=b==="desktop"?l:b==="tablet"?d:c,x=t?Object.hasOwn(P4,k)?P4[k]:void 0:`${Object.hasOwn(P4,c)?P4[c]:void 0} ${Object.hasOwn(G4e,d)?G4e[d]:void 0} ${Object.hasOwn($4e,l)?$4e[l]:void 0}`,v=iTt(null),[y,S]=U4e(1),[E,T]=U4e(!1);if(aTt(()=>{if(!t&&!s)return;let P=v.current;if(!P)return;let I=()=>{let Y=P.querySelector(".footer-block-grid");if(!Y)return;let K=t?b:lTt(window.innerWidth),X=K==="desktop"?g:K==="tablet"?h:w;T(X);let Z=K==="desktop"?p:K==="tablet"?m:f,V=getComputedStyle(Y).gridTemplateColumns.split(" ").filter(Boolean).length-1,j=Math.max(Y.childElementCount-1,0);S(!X&&Z&&V>=1?Math.max(Math.ceil(j/V),1):1)},D,F=()=>{clearTimeout(D),D=setTimeout(I,0)},A=[0,80,250,600].map(Y=>setTimeout(I,Y)),N=new MutationObserver(F);N.observe(P,{childList:!0,subtree:!0});let B=new ResizeObserver(F);return B.observe(P),()=>{clearTimeout(D),A.forEach(clearTimeout),N.disconnect(),B.disconnect()}},[l,d,c,t,s,b,p,m,f,g,h,w]),!t&&!s)return null;let _=NP(LP(o))??void 0;return lY(z,{as:"footer",ref:v,className:fe(`${t?"sf-theme-surfaces text-fg ":""}border-t border-line bg-bg px-[var(--sf-site-gutter,40px)] pb-10 pt-20 max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:pt-14`,i),style:{"--footer-logo-rows":y,"--footer-logo-col":E?"1 / -1":"1"},...dTt("footer-block"),children:cTt("div",{style:_,children:[lY(e,{className:`footer-block-grid mb-[60px] grid items-start gap-x-10 gap-y-12 ${x}`,minEmptyHeight:160}),lY(lE,{})]})})}import{jsx as pTt}from"react/jsx-runtime";var K4e={...s3e,render:({blocks:e,width:t,columns:o,logoFill:n,logoRowFill:r,editor:a})=>pTt(dY,{blocks:e,width:t,columns:o,logoFill:n,logoRowFill:r,editing:a?.isEditing})};import{jsx as V4e}from"react/jsx-runtime";function cY({thickness:e=1,lengthPct:t=100}){return V4e(z,{as:"div",className:"col-span-full w-full basis-full","aria-hidden":"true",children:V4e("div",{className:"bg-line",style:{height:`${e}px`,width:`${t}%`}})})}var Y4e={label:"Divider",defaultProps:{thickness:1,lengthPct:100}};import{jsx as mTt}from"react/jsx-runtime";var j4e={...Y4e,render:({thickness:e,lengthPct:t})=>mTt(cY,{thickness:e,lengthPct:t})};import{useState as uTt}from"react";import{jsx as pY,jsxs as q4e}from"react/jsx-runtime";function mY({heading:e,placeholder:t="Email address",buttonLabel:o="Subscribe"}){let{open:n}=OR(),[r,a]=uTt("");return q4e(z,{as:"div",className:"w-full min-w-0",children:[e?pY("h4",{className:"mb-3 font-mono text-[13px] uppercase tracking-[0.2em] text-fg-dim",children:te(e,!1)}):null,q4e("form",{className:"flex max-w-[320px] flex-wrap items-stretch gap-2",onSubmit:i=>{i.preventDefault(),n({email:r.trim(),source:Bi.footerSignup})},children:[pY("input",{type:"email",placeholder:t,value:r,onChange:i=>a(i.target.value),className:`${Gse} border border-line bg-transparent px-3 py-2 text-[13px] text-fg placeholder:text-fg-dim/70 focus:border-accent focus:outline-none`,"aria-label":So(e??"")||"Email address"}),pY("button",{type:"submit",className:"shrink-0 border border-btn bg-btn px-4 py-2 text-[13px] font-medium text-btn-ink transition-opacity hover:opacity-90",children:jo(o)})]})]})}var X4e={label:"Email Form",defaultProps:{heading:"",placeholder:"Email address",buttonLabel:"Subscribe"}};import{jsx as fTt}from"react/jsx-runtime";var Z4e={...X4e,render:({heading:e,placeholder:t,buttonLabel:o,editor:n})=>fTt(mY,{heading:ic(e,"Join our email list",n),placeholder:t||void 0,buttonLabel:o||void 0})};import{phoneKey as hTt}from"efficient-easel/draw";import{jsx as J4e}from"react/jsx-runtime";function uY({direction:e="vertical",gap:t,gapPhone:o,align:n="start",content:r}){let a=Ur("FooterGroup",t,e==="horizontal"?"inline":"block",o);return J4e(z,{as:"div",className:"min-w-0",children:J4e(r,{className:`${["flex",e==="horizontal"?"flex-row flex-wrap":"flex-col",q0(void 0,n)].filter(Boolean).join(" ")}${a.className}`,style:a.style,minEmptyHeight:80})})}import{jsx as gTt}from"react/jsx-runtime";var Q4e={...u3e,render:({direction:e,gap:t,align:o,blocks:n,...r})=>gTt(uY,{direction:e,gap:t,gapPhone:r[hTt("gap")],align:o,content:n})};import{jsx as _4,jsxs as bTt}from"react/jsx-runtime";var fY=gt("FooterLogo"),eFe={left:`${Jl[xh.left]} text-left`,center:`${Jl[xh.center]} ${Zl.center}`,right:`${Jl[xh.right]} ${Zl.right}`};function hY({tagline:e,widthPct:t=100,align:o="left",reverse:n=!0,color:r=null,padTop:a=0,padRight:i=0,padBottom:s=0,padLeft:l=0,editing:d=!1}){let{src:c,reversedSrc:p,inkIsDark:m,wordmark:f,siteName:g}=uC(),h=Math.round(iu*(t/100)),w={...a?{paddingTop:a}:{},...i?{paddingRight:i}:{},...s?{paddingBottom:s}:{},...l?{paddingLeft:l}:{}};return bTt(z,{as:"div",className:["flex min-w-0 flex-col",Object.hasOwn(eFe,o)?eFe[o]:"","[container-type:inline-size]"].filter(Boolean).join(" "),style:w,...fY("logo-block"),children:[_4(Be,{href:"/","aria-label":g?`${g} home`:"Home",className:"inline-flex max-w-full overflow-x-clip",...fY("logo-link"),children:_4(hw,{variant:"footer",sizePx:h,src:c,reverse:n,color:r,reversedSrc:p,inkIsDark:m,wordmark:f,siteName:g,fitWordmarkToContainer:!0,fitFloorPx:mR})}),e?_4("p",{className:"mt-4 max-w-[280px] text-[13px] leading-[1.5] text-fg-dim",...fY("tagline"),children:L(e)}):d?_4("p",{className:"mt-4 max-w-[280px] text-[13px] italic leading-[1.5] text-fg-dim/60",children:u("Add a short brand tagline \u2192")}):null]})}var tFe={label:"Logo",defaultProps:{widthPct:100,align:"left",reverse:"auto",padTop:0,padRight:0,padBottom:0,padLeft:0}};import{jsx as wTt}from"react/jsx-runtime";var oFe={...tFe,render:({tagline:e,widthPct:t,align:o,reverse:n,customColor:r,padTop:a,padRight:i,padBottom:s,padLeft:l,editor:d})=>{let c=gN(n,r);return wTt(hY,{tagline:e||void 0,widthPct:t,align:o,reverse:c.reverse,color:c.color,padTop:a,padRight:i,padBottom:s,padLeft:l,editing:d?.isEditing})}};import{createContext as BTt,useCallback as HTt,useContext as DTt,useEffect as xFe,useRef as R4,useState as pE}from"react";import{createPortal as MTt}from"react-dom";import{CloseIcon as zTt,MenuIcon as WTt}from"efficient-shell/icons/efficient-glyphs";import{REPEAT_ATTRIBUTE as UTt,REPEAT_INDEX_ATTRIBUTE as GTt}from"efficient-easel/draw";import{createContext as RTt,useContext as OTt,useEffect as NTt,useRef as LTt}from"react";import{useEffect as cFe,useId as PTt,useRef as wY,useState as pFe}from"react";import{useLayoutEffect as xTt,useState as aFe}from"react";import{Fragment as ETt,jsx as Kn,jsxs as Ev}from"react/jsx-runtime";var nFe=16,yTt=12,gY="font-body font-normal normal-case tracking-normal",vTt="shrink-0 rounded-sm border border-line px-1.5 py-1 font-mono text-[11px] uppercase leading-none tracking-[0.18em] text-fg-dim",bY="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",kTt={outlineOffset:-2},STt="160px";function rFe({item:e}){let[t,o]=aFe(!1),n=(e.image??"").trim(),r=n&&!t?lc(n):null,a=(e.badge??"").trim(),i=(e.description??"").trim();return Ev(ETt,{children:[Ev("span",{className:"flex min-w-0 items-center gap-2.5",children:[r?Kn("img",{...go(r,{fallbackWidth:320,maxWidth:640}),sizes:STt,alt:e.plainLabel,className:"h-10 w-auto min-w-0 max-w-full object-contain object-left",draggable:!1,onError:()=>o(!0)}):Kn("span",{className:"min-w-0 text-lg font-semibold leading-snug",children:e.label}),a?Kn("span",{className:vTt,children:a}):null]}),i?Kn("span",{className:"text-sm leading-snug text-fg-dim",children:i}):null]})}function iFe({item:e,className:t,linkClassName:o,inset:n=!1,onNavigate:r}){return Sc(e.href)?Kn("span",{"data-menu-panel-item":"",className:t,children:Kn(rFe,{item:e})}):Kn(Be,{"data-menu-panel-item":"",href:e.href,onClick:r,className:`${t} ${o}`,style:n?kTt:void 0,children:Kn(rFe,{item:e})})}function sFe({aside:e,className:t,navType:o,onNavigate:n}){let r=e.links??[];return Ev("div",{"data-menu-panel-aside":"",className:t,children:[e.eyebrow?Kn("p",{className:`${o} text-accent`.trim(),children:e.eyebrow}):null,e.title?Kn("p",{className:"font-display text-xl font-semibold leading-tight normal-case tracking-normal",children:L(e.title)}):null,e.text?Kn("p",{className:`${gY} text-sm leading-normal text-fg-dim`,children:L(e.text)}):null,r.length?Kn("div",{className:"mt-1 flex flex-col items-start gap-2",children:r.map((a,i)=>Sc(a.url)?Kn("span",{className:`${o} text-fg-dim`.trim(),children:a.label},`${a.url}-${i}`):Ev(Be,{href:a.url,onClick:n,className:`${o} inline-flex items-center gap-2 text-accent transition-opacity hover:opacity-80 focus-visible:rounded-sm ${bY}`.trim(),children:[a.label,Kn("span",{"aria-hidden":"true",children:"\u2192"})]},`${a.url}-${i}`))}):null]})}function TTt(e){let t=e.ownerDocument.defaultView;if(!t)return null;let o=e.getBoundingClientRect(),n=e.ownerDocument.documentElement.clientWidth,r=0,a=n,i=e.closest("[data-header-band], [data-box-header]");if(i){let d=i.getBoundingClientRect(),c=t.getComputedStyle(i);r=d.left+(parseFloat(c.paddingLeft)||0),a=d.right-(parseFloat(c.paddingRight)||0)}if(r=Math.max(r,nFe),a=Math.min(a,n-nFe),!(a>r))return null;let s=e.closest("header, [data-box-header]"),l=s?Math.max(0,Math.round(s.getBoundingClientRect().bottom-o.bottom)-1):yTt;return{left:Math.round(r-o.left),width:Math.round(a-r),gap:l}}function lFe({id:e,items:t,aside:o,onNavigate:n,anchor:r}){let a=Mi(o),[i,s]=aFe(null);xTt(()=>{let d=r.current,c=d?.ownerDocument.defaultView;if(!d||!c)return;let p=()=>s(TTt(d));return p(),c.addEventListener("resize",p),()=>c.removeEventListener("resize",p)},[r]);let l=i?{left:i.left,width:i.width,paddingTop:i.gap}:void 0;return Kn("div",{id:e,"data-menu-panel":"",className:`absolute top-full z-[60] whitespace-normal text-fg ${i?"":"left-0 w-[min(64rem,calc(100vw-2rem))] pt-3"}`.trim(),style:l,children:Kn("div",{className:"overflow-hidden rounded-[var(--sf-card-radius,0px)] border border-line bg-bg shadow-xl",children:Ev("div",{className:"flex bg-surface",children:[Kn("div",{className:`min-w-0 overflow-hidden ${a?"flex-[2]":"flex-1"}`,children:Kn("div",{className:`-mb-px -mr-px grid ${a?"grid-cols-2":"grid-cols-3"}`,children:t.map((d,c)=>Kn(iFe,{item:d,onNavigate:n,className:`flex min-w-0 flex-col justify-center gap-1.5 border-b border-r border-line px-5 py-4 text-base ${gY}`,linkClassName:`transition-[background] hover:bg-surface-2 focus-visible:ring-inset ${bY}`,inset:!0},`${d.href}-${c}`))})}),a?Kn(sFe,{aside:a,navType:"",onNavigate:n,className:"flex min-w-0 flex-1 flex-col gap-2.5 border-l border-line p-[22px]"}):null]})})})}function dFe({id:e,items:t,aside:o,onNavigate:n}){let r=Mi(o);return Ev("div",{id:e,"data-menu-panel":"",className:"mt-3 flex flex-col border-l border-line pl-5",children:[t.map((a,i)=>Kn(iFe,{item:a,onNavigate:n,className:`flex min-h-11 flex-col justify-center gap-1 py-2.5 text-base ${gY}`,linkClassName:bY},`${a.href}-${i}`)),r?Kn(sFe,{aside:r,navType:"mono-eyebrow",onNavigate:n,className:"mt-3 flex flex-col gap-2.5 border-t border-line pt-5"}):null]})}import{jsx as la,jsxs as xY}from"react/jsx-runtime";var C4=gt(_r)("menu-link"),_Tt=120;function Pv({item:e,mobile:t=!1,onNavigate:o,dropdownAlign:n="start"}){let[r,a]=pFe(!1),[i,s]=pFe(!1),l=()=>{a(!1),s(!1)},d=PTt(),c=wY(null),p=wY(null),m=e.dropdownItems.length>0,f=m&&Fce(e.dropdownItems,e.dropdownAside),g=wY(null),h=()=>{g.current!==null&&(clearTimeout(g.current),g.current=null)};cFe(()=>h,[]);let w=!Sc(e.href),b=Ln();cFe(()=>{if(!r)return;let v=c.current?.ownerDocument??document,y=S=>{c.current?.contains(S.target)||l()};return v.addEventListener("pointerdown",y),()=>v.removeEventListener("pointerdown",y)},[r]);let k=()=>{l(),o?.()};if(!m)return w?b.scope(la(Be,{href:e.href,onClick:k,className:to(t?"flex min-h-11 items-center font-display text-3xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent":"whitespace-nowrap opacity-80 transition-opacity hover:opacity-100 focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",b.className),...b.attrs,children:e.label})):b.scope(la("span",{className:to(t?"flex min-h-11 items-center font-display text-3xl":"whitespace-nowrap opacity-80",b.className),...b.attrs,children:e.label}));let x=la("button",{ref:p,type:"button","aria-label":`${r&&(t||i)?"Close":"Open"} ${e.plainLabel} menu`,"aria-expanded":r,"aria-controls":d,onClick:()=>{t?a(v=>!v):r&&i?l():(h(),a(!0),s(!0))},className:t?"flex h-11 w-11 shrink-0 items-center justify-center rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent":"flex h-8 w-8 shrink-0 items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:la("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",className:`transition-transform ${r?"rotate-180":""}`,children:la("path",{d:"m3 5 4 4 4-4"})})});return t?b.scope(xY("div",{ref:c,className:b.className||void 0,...b.attrs,children:[xY("div",{className:"flex min-h-11 items-center justify-between gap-3",children:[w?la(Be,{href:e.href,onClick:k,className:"min-w-0 flex-1 font-display text-3xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",...C4,children:e.label}):la("span",{className:"min-w-0 flex-1 font-display text-3xl",...C4,children:e.label}),x]}),r&&f?la(dFe,{id:d,items:e.dropdownItems,aside:e.dropdownAside,onNavigate:k}):r?la("div",{id:d,className:"mt-3 flex flex-col border-l border-line pl-5",children:e.dropdownItems.map((v,y)=>Sc(v.href)?la("span",{className:"flex min-h-11 items-center text-base opacity-80",children:v.label},`${v.href}-${y}`):la(Be,{href:v.href,onClick:k,className:"flex min-h-11 items-center text-base opacity-80 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:v.label},`${v.href}-${y}`))}):null]})):b.scope(xY("div",{ref:c,className:to("relative flex items-center whitespace-nowrap",b.className),...b.attrs,onMouseEnter:()=>{h(),a(!0)},onMouseLeave:()=>{h(),f?g.current=setTimeout(l,_Tt):l()},onBlurCapture:v=>{v.currentTarget.contains(v.relatedTarget)||l()},onKeyDown:v=>{v.key==="Escape"&&(l(),p.current?.focus())},children:[w?la(Be,{href:e.href,onClick:k,onFocus:()=>a(!0),className:"opacity-80 transition-opacity hover:opacity-100 focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",...C4,children:e.label}):la("span",{className:"opacity-80",...C4,children:e.label}),x,r&&f?la(lFe,{id:d,items:e.dropdownItems,aside:e.dropdownAside,onNavigate:k,anchor:c}):r?la("div",{id:d,className:`absolute top-full z-[60] w-72 pt-3 text-fg ${n==="end"?"right-0":n==="center"?"left-1/2 -translate-x-1/2":"left-0"}`,children:la("div",{className:"overflow-hidden rounded-lg border border-line bg-bg p-2 shadow-xl",children:e.dropdownItems.map((v,y)=>Sc(v.href)?la("span",{className:"flex min-h-11 items-center rounded-md px-4 py-2 text-sm opacity-80",children:v.label},`${v.href}-${y}`):la(Be,{href:v.href,onClick:k,className:"flex min-h-11 items-center rounded-md px-4 py-2 text-sm opacity-80 transition-[background,opacity] hover:bg-[var(--card-bg)] hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:v.label},`${v.href}-${y}`))})}):null]}))}import{jsx as CTt}from"react/jsx-runtime";function dE(){return CTt(z,{as:"span",className:"opacity-50",children:u(Bce)})}import{jsx as $d,jsxs as uFe}from"react/jsx-runtime";var yY=gt(_r)("menu-link"),vY=RTt(null),mFe="opacity-80 transition-opacity hover:opacity-100";function cE({item:e,label:t,link:o,onNavigate:n,current:r=!1,children:a}){let i=Ln();return Sc(e.url)?i.scope($d("span",{className:to(t,i.className),...i.attrs,...yY,children:L(e.label)})):i.scope(KR(e.url)==="off-site"?uFe("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:to(o,i.className),onClick:n,...i.attrs,...yY,children:[L(e.label),a]}):uFe(Be,{href:e.url,className:to(o,i.className),onClick:n,"aria-current":r?"page":void 0,...i.attrs,...yY,children:[L(e.label),a]}))}function ATt(){let e=LTt(null);return NTt(()=>{YCe(e.current?.closest("[data-menu-tabs] > ul")??null,wd())},[]),$d("span",{ref:e,className:zy.underline})}function kY(){let e=Da(),t=OTt(vY);if(!e||!t)return null;if(t.placeholder)return $d(dE,{});let o={label:e.row.label??"",url:e.row.href??""},n=!!t.current&&t.current.index===e.index&&t.current.href===o.url;if(t.place==="tab"){let i=zy.tab(n);return $d(cE,{item:o,label:i,link:i,current:n,children:n?$d(ATt,{}):null})}if(t.place==="column")return $d(cE,{item:o,label:"text-fg",link:"text-fg transition-colors hover:text-accent",current:n});if(t.place==="panel")return $d(cE,{item:o,label:"",link:` ${mFe}`,onNavigate:t.onNavigate,current:n});let r=e.item,a=r?.dropdown_items??[];return a.length?$d(Pv,{item:{href:o.url,label:L(o.label),plainLabel:o.label,dropdownItems:a.map(i=>({href:i.url,label:L(i.label),plainLabel:i.label,description:i.description,image:i.image,badge:i.badge})),dropdownAside:Mi(r?.dropdown_aside)}}):n?$d(cE,{item:o,label:"",link:wI.rowLink,current:!0,children:$d("span",{"aria-hidden":"true",className:wI.row})}):$d(cE,{item:o,label:"",link:` ${mFe}`})}import ITt from"efficient-easel/screen/components/UiIcon";import{jsx as wp,jsxs as F0}from"react/jsx-runtime";var fFe="flex h-12 items-center gap-3 border border-line bg-bg px-4 text-left text-[15px]";function hFe({role:e,panelRef:t,name:o,entries:n,tools:r,withAccount:a,editing:i,onClose:s,onSearch:l,phoneOnly:d=!1,marker:c,listStyle:p}){let m=a0(),f=r&&(r.search||r.cart||r.region||a&&r.account||r.theme)?r:null;return F0("div",{ref:t,role:e,"aria-modal":"true","aria-label":o,tabIndex:-1,...c?{"data-menu-panel":c}:null,className:`${YR} z-[60] flex flex-col overflow-y-auto bg-bg text-fg${d?" view-tablet:hidden":""}`,children:[wp("ul",{className:"m-0 flex list-none flex-col px-5 py-3 font-mono text-[16px] uppercase tracking-[0.18em]",style:p,children:n}),f?F0("div",{className:"mt-auto flex flex-col gap-4 border-t border-line bg-surface p-5",children:[f.search?F0("button",{type:"button",className:fFe,onClick:i?void 0:()=>{s(),l()},children:[wp(ITt,{name:"search",size:m.size,strokeWidth:m.stroke,rounded:!0}),_s.search]}):null,f.cart?wp(FTt,{editing:i,onClose:s}):null,a&&f.account?F0("div",{className:"flex items-center justify-between",children:[wp("span",{className:"mono-eyebrow text-fg-dim",children:"Account"}),wp(Be,{href:"/account",onClick:s,className:"mono-eyebrow underline",children:"Your account"})]}):null,f.region?F0("div",{className:"flex items-center justify-between",children:[wp("span",{className:"mono-eyebrow text-fg-dim",children:"Region"}),wp(w0,{})]}):null,f.theme?F0("div",{className:"flex items-center justify-between",children:[wp("span",{className:"mono-eyebrow text-fg-dim",children:"Theme"}),wp(x0,{})]}):null]}):null]})}function FTt({editing:e,onClose:t}){let{open:o,totals:n}=Fn(),r=n.sets;return F0("button",{type:"button",className:fFe,"aria-label":LW(r),onClick:e?void 0:()=>{t(),o()},children:[wp(AW,{}),_s.cart,r>0?` ${r}`:""]})}import{Fragment as N4,jsx as Rt,jsxs as Bs}from"react/jsx-runtime";var or=gt(_r),$Tt=`flex list-none flex-col gap-3 ${wH}`,SY="mb-4 font-mono text-[13px] uppercase tracking-[0.2em] text-fg-dim",O4="text-[12px] italic text-fg-dim/70",gFe=(e,t)=>e&&t>0?"border-t border-line pt-3":"",KTt=e=>({label:e.label??"",url:e.href??"",served:e}),yFe=e=>e.served?{...e.served,label:e.label??"",href:e.url??""}:{label:e.label??"",href:e.url??""},VTt=Array.from({length:Dce},()=>({label:"",href:""}));function mE({owner:e,items:t,place:o,wrap:n,markCurrent:r=!1}){let a=t?t.map(yFe):VTt,i=Aee(),s=DTt(vFe),l=t&&r?VCe(t.map(c=>c.url??""),i,s):-1,d=l<0?null:{index:l,href:t[l].url??""};return Rt(vY.Provider,{value:t?d?{...o,current:d}:o:{...o,placeholder:!0},children:Rt(Ge,{ownerId:e.id,ownerType:e.type,Template:e.template,rows:a,items:t??void 0,fallback:null,wrapCopy:n,children:c=>c})})}var L4=e=>(e.template?.blockCount??0)>0,YTt="Nothing to show yet: this menu's entries come from its Menu content.",bFe="This menu draws no links: its card template is empty. Undo the delete, or delete this Menu and add it again.";function wFe({owner:e,items:t,label:o,editing:n,linkAlign:r,linkRange:a,markCurrent:i,menuStyle:s,menuStylePhone:l,panelLook:d}){let c=Gm(r),p=K1(a),m=!!p&&t!==null&&p.to!==void 0&&p.to<t.length,[f,g]=pE(!1),h=R4(null),w=Yve(),b=wOe(),{open:k}=Cw(),x=o||"Menu",v=HTt(()=>g(!1),[]),y=s===nm||l===nm,S=bD(s,l),[E,T]=pE("sheet"),_=R4(null),P=R4(null),[I,D]=pE(void 0),[F,A]=pE(null),N=()=>{if(!f&&y){let C=h.current?.ownerDocument.defaultView;T(C?.matchMedia("(min-width: 720px)").matches?"side":"sheet");let O=_.current?.querySelector("span");if(O&&C){let G=C.getComputedStyle(O);D({fontFamily:G.fontFamily,fontSize:G.fontSize,letterSpacing:G.letterSpacing,textTransform:G.textTransform});let $=(_.current?.querySelector("svg")??_.current)?.getBoundingClientRect();A($?{left:$.left,top:$.top,height:$.height}:null)}}g(C=>!C)};xFe(()=>{if(!f||!y)return;let O=h.current?.ownerDocument.defaultView?.matchMedia("(min-width: 720px)");if(!O)return;let G=()=>g(!1);return O.addEventListener("change",G),()=>O.removeEventListener("change",G)},[f,y]);let B=R4(null);Nc({active:f&&!(f&&y&&E==="side"),onDismiss:v,scopeRef:h,focusRef:B,trapRef:B});let K=Rt(mE,{owner:e,items:t,place:{place:"row"},markCurrent:i,wrap:(C,O)=>{let G=t!==null&&p&&!afe(p,O.index+1)?{"data-menu-out":""}:null;return Rt("li",{className:"",...G,...or("menu-item"),children:C})}}),X=(C,O,G)=>n?{[UTt]:`${C}:${G<0?"panel":"dropdown"}`,[GTt]:`${G+1}.${O.index}`}:null,Z=Rt(mE,{owner:e,items:t,place:{place:"panel",onNavigate:v},markCurrent:i,wrap:(C,O)=>Bs(N4,{children:[Rt("li",{className:"flex min-h-14 items-center border-b border-line",...X(e.id,O,-1),...or("menu-item"),children:C}),t===null?null:(O.item?.dropdown_items??[]).map((G,$)=>Rt(J_.Provider,{value:{...O,row:yFe(G),item:G},children:Rt("li",{className:"flex min-h-12 items-center border-b border-line pl-5 text-[14px]",...X(e.id,O,$),...or("menu-item"),children:C})},$))]})}),V=w&&(w.search||w.cart||w.region||w.account||w.theme)?w:null;if(!n&&t!==null&&!L4(e)&&!V)return null;let j=Rt(hFe,{role:"dialog",panelRef:B,name:x,entries:Z,tools:w,withAccount:!y||b,editing:n,onClose:v,onSearch:k,phoneOnly:!y,marker:y?"sheet":void 0,listStyle:y&&F?{paddingLeft:F.left,paddingRight:F.left}:void 0}),J=null;if(y){let C=h.current?.ownerDocument,O={...bu,placement:"left",height:"full",closeButton:"none",width:typeof d?.width=="number"?d.width:oO,tintColor:typeof d?.tintColor=="string"?d.tintColor:bu.tintColor,tintOpacity:typeof d?.tintOpacity=="number"?d.tintOpacity:nO},G=Rt($i,{look:O,drawer:{closeRef:P},open:!0,onClose:v,label:x,children:Bs("div",{"data-menu-panel":"side",className:"flex h-full flex-col overflow-y-auto text-fg",children:[Rt("div",{className:"flex min-h-[var(--sf-header-h,88px)] shrink-0 items-center px-8",style:F?{paddingLeft:F.left}:void 0,children:Bs("button",{ref:P,type:"button",onClick:v,className:"inline-flex h-11 items-center gap-2",style:I,children:[Rt(zTt,{size:20,"aria-hidden":"true"}),Rt("span",{className:"whitespace-nowrap",children:_s.close})]})}),Rt("ul",{className:"m-0 flex list-none flex-col px-8 pb-8",style:F?{paddingLeft:F.left}:void 0,...or("menu"),children:Rt(mE,{owner:e,items:t,place:{place:"panel",onNavigate:v},markCurrent:i,wrap:($,H)=>Rt("li",{className:"flex min-h-12 items-center",...X(e.id,H,-1),...or("menu-item"),children:$})})})]})});J=Bs(N4,{children:[Bs("button",{ref:_,type:"button",className:`mono-eyebrow-ctl ${S.button} h-11 min-w-11 items-center gap-2 opacity-80 transition-opacity hover:opacity-100 max-view-tablet:-mx-3 max-view-tablet:min-w-0 max-view-tablet:px-3`,"aria-expanded":f,"aria-label":f?"Close the menu":"Open the menu",onClick:N,...or("menu-button"),children:[Rt(WTt,{size:20,"aria-hidden":"true"}),Rt("span",{className:"whitespace-nowrap max-view-tablet:hidden",children:_s.menu})]}),f&&C?MTt(E==="side"?G:j,C.body):null]})}else S.drawsButton&&(J=Bs(N4,{children:[Rt("button",{type:"button",className:`${S.buttonHead} h-11 w-11 items-center justify-center${S.buttonTail}`,"aria-expanded":f,"aria-label":f?"Close the menu":"Open the menu",onClick:N,...or("menu-button"),children:Rt("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round","aria-hidden":"true",children:f?Rt("path",{d:"M6 6l12 12M18 6L6 18"}):Rt("path",{d:"M4 7h16M4 12h16M4 17h16"})})}),f?j:null]}));return Bs(z,{as:"nav",ref:h,"aria-label":x,"data-menu-row":"",...y?{"data-menu-show":"button"}:null,...!y&&c?{"data-menu-align":c}:null,...!y&&m?{"data-menu-part":"lead"}:null,className:"min-w-0",...or("menu-block"),children:[Rt("ul",{className:`m-0 ${S.listHead} list-none flex-wrap items-center gap-x-8 gap-y-2 p-0 font-mono ${wH} uppercase tracking-[0.18em]${S.listTail}`,...or("menu"),children:K}),J]})}function jTt({owner:e,items:t,label:o,editing:n,markCurrent:r,strip:a=""}){return!n&&(t===null||t.length===0||!L4(e))?null:Rt(z,{as:"nav","aria-label":o||"Menu","data-menu-tabs":"",className:a?`min-w-0 ${a}`:"min-w-0",...or("menu-block"),children:Rt("ul",{className:zy.list,...or("menu"),children:Rt(mE,{owner:e,items:t,place:{place:"tab"},markCurrent:r,wrap:(i,s)=>Rt("li",{className:zy.item(s.index===0,n),...or("menu-item"),children:i})})})})}var vFe=BTt("");function uE(e){let t=!e.editing&&yI(e.layout,e.currentPage),o=kPe(e.pageQuery??"",t);return Rt(vFe.Provider,{value:o,children:Rt(qTt,{...e})})}function qTt({owner:e,menu:t,served:o,heading:n,accordionMobile:r=!1,showDividers:a=!1,editing:i=!1,layout:s="column",linkAlign:l,linkRange:d,menuStyle:c,currentPage:p,menuStylePhone:m,menuPanelWidth:f,menuPanelTintColor:g,menuPanelTintOpacity:h}){let w=yI(s,p),{live:b,ready:k}=BR(),x=!o&&Qde({id:t?.id,handle:t?.handle,editing:i,ready:k,live:b}),v=o?o.map(KTt):x?[]:t?.items??[],y=n||(o?"":t?.name)||"",[S,E]=pE(!1);if(xFe(()=>{if(!r)return;let _=window.matchMedia("(max-width: 800px)"),P=()=>E(_.matches);return P(),_.addEventListener("change",P),()=>_.removeEventListener("change",P)},[r]),o&&v.length===0)return i?Rt(z,{as:"p",className:O4,children:u(YTt)}):null;if(s==="row"&&i&&!x&&v.length>0&&!L4(e))return Rt(z,{as:"p",className:O4,children:u(bFe)});if(s==="row"&&c===Ju){let{strip:_}=bD(c,m),P=Rt(jTt,{owner:e,items:x?null:v,label:y,editing:i,markCurrent:w,strip:_});return _?Bs(N4,{children:[P,Rt(wFe,{owner:e,items:x?null:v,label:y,editing:i,markCurrent:w,menuStyle:c,menuStylePhone:m})]}):P}if(s==="row")return Rt(wFe,{owner:e,items:x?null:v,label:y,editing:i,linkAlign:l,linkRange:d,markCurrent:w,menuStyle:c,menuStylePhone:m,panelLook:{width:f,tintColor:g,tintOpacity:h}});let T=_=>Rt("ul",{className:$Tt,...or("menu"),children:Rt(mE,{owner:e,items:_,place:{place:"column"},wrap:(P,I)=>Rt("li",{className:_?gFe(a,I.index):`text-fg ${gFe(a,I.index)}`,...or("menu-item"),children:P})})});return x?Bs(z,{as:"div",className:"min-w-0",...or("menu-block"),children:[Rt("h4",{className:SY,...or("heading"),children:n?jo(n):u(Mce)}),T(null),Rt("p",{className:`mt-3 ${O4}`,children:u(zce)})]}):v.length===0||!L4(e)?Bs(z,{as:"div",className:"min-w-0",...or("menu-block"),children:[y?Rt("h4",{className:SY,...or("heading"),children:jo(y)}):null,i?Rt("p",{className:O4,children:v.length===0?u("This menu has no links yet \u2014 add them in {place}.",{place:u("Storefront \u2192 Menus")}):u(bFe)}):null]}):r&&S?Bs(z,{as:"details",className:"min-w-0 border-b border-line",...or("menu-block"),children:[Bs("summary",{className:"flex cursor-pointer list-none items-center justify-between py-3 font-mono text-[13px] uppercase tracking-[0.2em] text-fg-dim",children:[jo(y),Rt("span",{"aria-hidden":!0,children:"\uFF0B"})]}),Rt("div",{className:"pb-3",children:T(v)})]}):Bs(z,{as:"div",className:"min-w-0",...or("menu-block"),children:[y?Rt("h4",{className:SY,...or("heading"),children:jo(y)}):null,T(v)]})}import{jsx as XTt}from"react/jsx-runtime";var kFe={...x3e,render:({id:e,menu:t,heading:o,accordionMobile:n,showDividers:r,template:a,editor:i})=>XTt(uE,{owner:{id:String(e??""),type:"FooterMenu",template:a},menu:t,heading:o||void 0,accordionMobile:n,showDividers:r,editing:i?.isEditing})};import{jsx as fE}from"react/jsx-runtime";var TY=gt("FooterSocial"),EY={small:16,medium:20,large:24};function PY({iconStyle:e=ow,iconSize:t="medium",align:o,gap:n=0,editing:r=!1}){let a=lhe(),i=gae(DC(a));if(i.length===0)return r?fE(z,{as:"div","data-social-placeholder":"",className:"rounded border border-dashed border-line px-3 py-2 text-[13px] text-fg-dim",children:u("Add your social links")}):null;let s=(Object.hasOwn(EY,t)?EY[t]:void 0)??EY.medium,d={gap:Math.min(32,Math.max(0,Number.isFinite(n)?n:0)),"--social-mark":`${s}px`};return fE(z,{as:"ul","data-social-block":"","aria-label":"Social media",className:`flex list-none flex-wrap p-0 [margin:calc((44px-var(--social-mark))/-2)] max-view-wide:[margin:calc((40px-var(--social-mark))/-2)] ${Zd[Gm(o)??"left"]}`,style:d,...TY("social-block"),children:i.map(({platform:c,href:p,label:m})=>fE("li",{...TY("social-item"),children:fE("a",{href:p,target:"_blank",rel:"noopener noreferrer","aria-label":`${m} (opens in a new tab)`,className:"grid h-11 w-11 place-items-center rounded text-fg transition-colors hover:text-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-4px] focus-visible:outline-current motion-reduce:transition-none max-view-wide:h-10 max-view-wide:w-10",...TY("social-link"),children:fE(xie,{platform:c,iconStyle:e,size:s})})},c))})}var SFe={label:"Social Logos",defaultProps:{iconStyle:ow,iconSize:"medium",align:"left",gap:0}};import{jsx as ZTt}from"react/jsx-runtime";var TFe={...SFe,render:({iconStyle:e,iconSize:t,align:o,gap:n,editor:r})=>ZTt(PY,{iconStyle:e,iconSize:t,align:o,gap:n,editing:r?.isEditing})};import{PaymentMark as JTt,paymentMarks as QTt}from"efficient-shell/icons/payment";import{jsx as hE,jsxs as eEt}from"react/jsx-runtime";var _Y={sm:{mark:16,text:"text-[12px]"},md:{mark:20,text:"text-[13px]"}};function A4({lead:e,methods:t,size:o="sm",align:n,editing:r=!1}){let a=QTt(t);if(!a.length)return r?hE(z,{as:"div","data-payment-placeholder":"",className:"rounded border border-dashed border-line px-3 py-2 text-[13px] text-fg-dim",children:u("Add the ways you take payment")}):null;let{mark:i,text:s}=(Object.hasOwn(_Y,o)?_Y[o]:void 0)??_Y.sm;return eEt(z,{as:"div","data-footer-payment":"",className:`flex flex-wrap items-center gap-x-3 gap-y-1.5 leading-[1.5] text-fg-dim ${s} ${Zd[Gm(n)??"left"]}`,children:[e&&hE("span",{"aria-hidden":!0,children:e}),hE("ul",{"aria-label":e||u("Ways to pay"),className:"flex list-none flex-wrap items-center gap-x-3 gap-y-1.5 p-0 text-fg",children:a.map((l,d)=>hE("li",{className:"flex",children:hE(JTt,{item:l,size:i})},d))})]})}import{Fragment as oEt,jsx as CY}from"react/jsx-runtime";var tEt=()=>[{label:u("Cash"),kind:"cash"},{label:u("Card"),kind:"card"}],EFe={...P3e,render:e=>{let{lead:t,methods:o,size:n,align:r,editor:a}=e;if(dt(e)!==""){let s=Kt(e,!!a?.isEditing,tEt()).rows;return s.length?CY(A4,{lead:t,methods:s.map(l=>({name:l.label,kind:l.kind})),size:n,align:r}):CY(oEt,{})}let i=Array.isArray(o)?o:[];return CY(A4,{lead:t,methods:i.map(s=>({name:s.label})),size:n,align:r,editing:a?.isEditing})}};import{Fragment as nEt}from"react";import{jsx as RY,jsxs as rEt}from"react/jsx-runtime";var PFe={sm:"text-[12px]",md:"text-[13px]",lg:"text-[15px]"};function I4({text:e,size:t="md",tone:o="default",editing:n=!1,lines:r}){let a=`${Object.hasOwn(PFe,t)?PFe[t]:void 0} leading-[1.5] ${o==="dim"?"text-fg-dim":"text-fg"}`;if(r)return r.length?RY(z,{as:"p",className:a,children:r.map((s,l)=>rEt(nEt,{children:[l>0&&RY("br",{}),L(s)]},l))}):null;let i=e||(n?u("Add a line of footer text."):"");return i?RY(z,{as:"p",className:a,children:L(i)}):null}var _Fe={label:"Text",defaultProps:{size:"md",tone:"default"}};import{jsx as CFe}from"react/jsx-runtime";var aEt=()=>[{text:u("Add a line of footer text.")}],RFe={..._Fe,render:e=>{let{text:t,size:o,tone:n,editor:r}=e;if(dt(e)!==""){let a=Kt(e,!!r?.isEditing,aEt()).rows.map(i=>i.text??"").filter(Boolean);return CFe(I4,{lines:a,size:o,tone:n})}return CFe(I4,{text:t||void 0,size:o,tone:n,editing:r?.isEditing})}};import{useEffect as dEt}from"react";import{createContext as iEt,useCallback as WPn,useContext as sEt,useEffect as UPn,useMemo as GPn,useRef as $Pn,useState as KPn}from"react";import{jsx as ZPn}from"react/jsx-runtime";var lEt=iEt(null);function OFe(){return sEt(lEt)}import{jsx as Vn,jsxs as _v}from"react/jsx-runtime";function cEt({field:e,value:t,onChange:o,cornersClass:n=""}){let r={field:e,value:t,onChange:o};return e.type==="checkbox"?_v("label",{className:"flex items-start gap-3",children:[Vn(df,{...r,className:"mt-1 size-4 accent-accent"}),_v("span",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.16em] text-fg",children:[e.label,e.required?Vn("span",{className:"text-accent",children:" *"}):null]})]}):Vn($r,{label:e.label,required:e.required,children:Vn(df,{...r,className:(e.type==="textarea"?_u+" resize-y":_u)+n})})}function pEt(e,t,o){if(typeof e!="number"||!Number.isFinite(e))return null;let n=Ks(Math.max(0,e),o),r=lJ(t);return{style:{"--form-control-radius":r===null?n:cJ(n,r)},className:" [border-radius:var(--form-control-radius)]"}}function OY({formSlug:e,heading:t,intro:o,submitText:n,finePrint:r,form:a,editing:i=!1,nodeId:s="",thanks:l,showSent:d,buttonCorners:c,buttonCornerSides:p,buttonCornersUnit:m}={}){let f=he(),g=pr(),h=Hc(e,a),w=OFe();if(h===void 0)return Vn($l,{size:"short",children:u("Loading form\u2026")});if(h===null)return Vn($l,{size:"short",children:i?u("Choose a form in the inspector, under Form."):"This form is unavailable."});let b=(t??"").trim()||h.title;return Vn("section",{className:"relative z-[2] border-t border-line bg-surface",children:_v("div",{...Te(fe("mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[84px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",f),g),children:[b&&Vn("h2",{className:"mb-4 font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:b}),(o??"").trim()&&Vn("p",{className:"mb-12 max-w-[640px] font-display text-[16px] leading-[1.6] text-fg-dim",children:o}),Vn(NY,{form:h,formSlug:e,submitText:n,finePrint:r,editing:i,onSent:w?.markSent,nodeId:s,thanks:l,showSent:d,corners:pEt(c,p,m)})]})})}function mEt({account:e}){let t="font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim";switch(e?.status){case"approved":return _v("p",{className:t,children:["Check your email to set your password, then"," ",Vn(Be,{href:"/login",className:"underline",children:"Sign in"})]});case"pending":return Vn("p",{className:t,children:"We're reviewing your application and will email you once it's approved."});case"rejected":return Vn("p",{className:t,children:"We couldn't open an account from this application. Please contact the shop."});default:return null}}function NY({form:e,formSlug:t,submitText:o,finePrint:n,editing:r=!1,onSent:a,corners:i=null,nodeId:s="",thanks:l,showSent:d}){let{valueOf:c,set:p,honeypot:m,setHoneypot:f,submitting:g,done:h,account:w,error:b,handleSubmit:k}=lf({form:e,formSlug:t,editing:r});dEt(()=>{h&&a?.()},[h]);let x=(o??"").trim()||e.submitButtonText?.trim()||"Submit",v=y=>_v("div",{role:"status",className:"flex max-w-[560px] flex-col gap-3",children:[Vn("p",{className:"font-serif text-[19px] italic leading-[1.6] text-fg-dim",children:ux(e)}),y,Vn(mEt,{account:w})]});return h||O5(d,r)?Vn(s4,{ownerId:s,ownerType:"Form",Template:l,message:v(null),children:v}):_v("form",{className:"flex max-w-[720px] flex-col gap-5",style:i?.style,onSubmit:k,children:[e.fields.map(y=>Vn(cEt,{field:y,value:c(y.key),onChange:S=>p(y.key,S),cornersClass:i?.className},y.key)),Vn(fx,{value:m,onChange:f}),b&&Vn("p",{role:"alert",className:"font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:b}),Vn("button",{type:r?"button":"submit",disabled:g,className:`cursor-pointer self-start bg-btn px-8 py-4 font-mono text-[14px] uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg hover:text-bg disabled:cursor-wait disabled:opacity-60${i?.className??""}`,children:g?"Sending\u2026":x}),e.consentText?.trim()&&Vn("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:e.consentText}),(n??"").trim()&&Vn("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:n})]})}import{hidableText as gE}from"efficient-easel/screen/lib/document/hidable";import{BUTTON_STYLE_KEYS as NFe}from"efficient-easel/screen/lib/content/style-keys";import{BUTTON_CORNERS_UNIT_KEY as uEt}from"efficient-easel/screen/lib/content/length-units";import{jsx as fEt}from"react/jsx-runtime";var LFe=Ct("Form",{...O3e,render:e=>fEt(OY,{formSlug:gE(e.formSlug)||void 0,heading:gE(e.heading)||void 0,intro:gE(e.intro)||void 0,submitText:gE(e.submitText)||void 0,finePrint:gE(e.finePrint)||void 0,form:e.form,editing:e.editor?.isEditing,nodeId:typeof e.id=="string"?e.id:"",thanks:e[xs],showSent:e[Gu],buttonCorners:e[NFe.corners],buttonCornerSides:e[NFe.cornerSides],buttonCornersUnit:e[uEt]})});var AFe={label:"Legal Line"};import{jsx as hEt}from"react/jsx-runtime";var IFe={...AFe,render:({copyright:e})=>hEt(lE,{copyright:e})};var FFe={label:"Menu link",defaultProps:{}};import{jsx as gEt}from"react/jsx-runtime";var BFe={...FFe,render:()=>gEt(kY,{})};import{useEffect as bEt,useState as wEt}from"react";import{jsx as Kd,jsxs as bE}from"react/jsx-runtime";var xEt=3e4;function LY({show:e,title:t,row:o,contained:n,now:r}){let[a,i]=wEt(r??null),s=o?.zone??"",l=!!o?.week,d=!!r||ml(s)!=="";if(bEt(()=>{if(r){i(r);return}if(!l||!d){i(null);return}let c=()=>i(rce(s,Date.now()));c();let p=setInterval(c,xEt);return()=>clearInterval(p)},[r,s,l,d]),!o)return null;if(e==="badge"){if(!o.week||!d)return null;let c=a?ace(o.week,a):null;return Kd(It,{contained:n,className:"py-6",children:Kd(yEt,{label:c?ice(c):null,open:c?.open??!1})})}return!o.week&&!o.hours.length?null:Kd(It,{contained:n,className:"py-6",children:bE("div",{className:"flex max-w-[560px] flex-col gap-4",children:[t&&Kd("h2",{className:"font-heading3 text-[length:min(var(--size-headingSmall,28px),var(--sf-heading-max,9999px))] font-medium leading-[1.1] tracking-[-0.02em]",children:te(t,!1)}),o.week?Kd("ul",{className:"flex flex-col text-[15px]",children:sce(o.week).map(c=>{let p=a!==null&&a.day===c.day;return bE("li",{"aria-current":p?"date":void 0,className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1 rounded-sm border-b border-line px-3 py-2.5 last:border-b-0",style:p?{background:"color-mix(in oklab, var(--accent) 12%, transparent)"}:void 0,children:[bE("span",{className:p?"font-medium":void 0,children:[c.name,p&&Kd("span",{className:"opacity-70",children:` \xB7 ${Bu.today}`})]}),Kd("span",{className:c.closed?"tabular-nums opacity-60":"tabular-nums",children:c.closed?Bu.closed:c.periods})]},c.day)})}):Kd("div",{className:"flex flex-col gap-1 text-[15px] leading-[1.6]",children:o.hours.map((c,p)=>Kd("p",{children:c},p))})]})})}function yEt({label:e,open:t}){return e===null?bE("span",{"aria-hidden":!0,className:"invisible inline-flex items-center gap-2 rounded-md px-3 py-1.5 text-[14px]",children:[Kd("span",{className:"h-2 w-2 rounded-full"}),Bu.openNow]}):bE("span",{className:"inline-flex items-center gap-2 rounded-md px-3 py-1.5 text-[14px] tabular-nums",style:{background:t?"color-mix(in oklab, var(--green) 16%, transparent)":"color-mix(in oklab, var(--fg) 8%, transparent)"},children:[Kd("span",{"aria-hidden":!0,className:t?"h-2 w-2 shrink-0 rounded-full bg-green":"h-2 w-2 shrink-0 rounded-full bg-current opacity-50"}),e]})}import{readHidable as vEt}from"efficient-easel/screen/lib/document/hidable";import{parseOption as kEt}from"efficient-shell/format";import{jsx as EEt}from"react/jsx-runtime";var SEt=()=>[{week:UR,zone:"Australia/Sydney",hours:""}],TEt=e=>{let{text:t,hidden:o}=vEt(e);return o||!t?void 0:t},HFe={...B3e,render:e=>{let{rows:t,sample:o}=Kt(e,!!e.editor?.isEditing,SEt());return EEt(LY,{show:kEt(u4,rE,e.show),title:TEt(e.title),row:nce(t),contained:e.contained!==!1,now:o?lce:void 0})}};var DFe=e=>typeof e=="string"?e:"";function PEt(e){if(typeof e!="string"||!e.trim())return null;let t;try{t=JSON.parse(e)}catch{return null}return!Array.isArray(t)||!t.every(o=>o!==null&&typeof o=="object"&&!Array.isArray(o))?null:t.map(o=>({column:DFe(o.column),cell:{amount:DFe(o.amount),standard:o.standard===!0}}))}function MFe(e){let t=[],o=new Map;for(let n of e){let r=PEt(n.cells);if(r===null)continue;let a=n.group??"",i=o.get(a);i||(i={name:a,columns:r.map(l=>l.column),rows:[]},o.set(a,i),t.push(i));let s=i.columns.length;i.rows.push({label:n.label??"",cells:Array.from({length:s},(l,d)=>r[d]?.cell??{amount:"",standard:!1})})}return t}import{jsx as Hs,jsxs as Cv}from"react/jsx-runtime";var CEt="\u2013";function AY({title:e,description:t,groups:o,contained:n}){return o.length?Hs(It,{contained:n,className:"py-6",children:Cv("div",{className:"flex flex-col gap-10",children:[(e||t)&&Cv("div",{className:"flex max-w-[680px] flex-col gap-3",children:[e&&Hs("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium leading-[1.05] tracking-[-0.03em] max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:te(e,!1)}),t&&Bt(t).map((r,a)=>Hs("p",{className:"text-[15px] leading-[1.6] opacity-85",children:L(r)},a))]}),o.map((r,a)=>Hs(REt,{group:r},`${r.name}-${a}`))]})}):null}function REt({group:e}){let t=e.columns.length>4;return Cv("div",{className:"flex flex-col gap-3",children:[e.name&&Hs("h3",{className:"font-mono text-[12px] uppercase tracking-[0.18em]",children:L(e.name)}),Hs("div",{className:t?"overflow-x-auto":void 0,children:Cv("table",{className:t?"w-full min-w-[560px] border-collapse text-[15px] tabular-nums":"w-full border-collapse text-[15px] tabular-nums",children:[Hs("caption",{className:"sr-only",children:e.name}),Hs("thead",{children:Cv("tr",{className:"border-b border-line",children:[Hs("td",{className:"py-2"}),e.columns.map((o,n)=>Hs("th",{scope:"col",className:"py-2 pl-4 text-right align-bottom text-[12px] font-normal opacity-60",children:o},n))]})}),Hs("tbody",{children:e.rows.map((o,n)=>Cv("tr",{className:"border-b border-line last:border-b-0",children:[Hs("th",{scope:"row",className:"py-3 pr-2 text-left align-baseline font-normal",children:L(o.label)}),o.cells.map((r,a)=>Hs("td",{className:`whitespace-nowrap py-3 pl-4 text-right align-baseline${r.standard||!r.amount?" opacity-60":""}`,children:r.amount||CEt},a))]},n))})]})})]})}import{readHidable as NEt}from"efficient-easel/screen/lib/document/hidable";var OEt="location-rate-table",zFe={label:"Rate table",defaultProps:{title:"Rates",description:"What a visit costs.",dataSource:OEt}};import{jsx as AEt}from"react/jsx-runtime";var WFe=(e,t,o=!1)=>({column:e,amount:t,standard:o}),LEt=()=>{let e=[u("Standard"),u("VIP")],t=(o,n,r=!1)=>({group:o,label:n,cells:JSON.stringify([WFe(e[0],"$000"),WFe(e[1],"$000",r)])});return[t(u("First place"),u("First rate")),t(u("First place"),u("Second rate"),!0),t(u("Second place"),u("First rate"))]},UFe=e=>{let{text:t,hidden:o}=NEt(e);return o||!t?void 0:t},GFe={...zFe,render:e=>{let{rows:t}=Kt(e,!!e.editor?.isEditing,LEt());return AEt(AY,{title:UFe(e.title),description:UFe(e.description),groups:MFe(t),contained:e.contained!==!1})}};import{useEffect as IEt,useState as FEt}from"react";import{jsx as BEt,jsxs as HEt}from"react/jsx-runtime";function wE({text:e,className:t}){let[o,n]=FEt(!1);return IEt(()=>{if(!o)return;let r=setTimeout(()=>n(!1),2e3);return()=>clearTimeout(r)},[o]),HEt("button",{type:"button",className:t,onClick:()=>{navigator.clipboard?.writeText(e).then(()=>n(!0),()=>{})},children:[o?oi.copied:oi.copyId,BEt("span",{className:"sr-only","aria-live":"polite",children:o?` ${e}`:""})]})}var F6e=RHe(I6e()),Iv=4;function B6e(e){if(!e)return null;let t;try{({modules:t}=(0,F6e.create)(e,{errorCorrectionLevel:"M"}))}catch{return null}let o=t.size,n="";for(let r=0;r<o;r++){let a=0;for(;a<o;){if(!t.get(r,a)){a++;continue}let i=a;for(;a<o&&t.get(r,a);)a++;n+=`M${i} ${r}h${a-i}v1H${i}z`}}return{path:n,size:o}}import{jsx as H6e,jsxs as EPt}from"react/jsx-runtime";function M0({text:e,label:t,className:o}){let n=B6e(e);if(!n)return null;let r=n.size+Iv*2;return EPt("svg",{role:"img","aria-label":t,viewBox:`${-Iv} ${-Iv} ${r} ${r}`,shapeRendering:"crispEdges",className:o,"data-qr":"",children:[H6e("rect",{x:-Iv,y:-Iv,width:r,height:r,fill:"#fff"}),H6e("path",{d:n.path,fill:"#000"})]})}import{jsx as xp,jsxs as Fv}from"react/jsx-runtime";function JY({title:e,description:t,channels:o,contained:n}){return o.length?xp(It,{contained:n,className:"py-6",children:Fv("div",{className:"flex flex-col gap-6",children:[(e||t)&&Fv("div",{className:"flex max-w-[680px] flex-col gap-3",children:[e&&xp("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium leading-[1.05] tracking-[-0.03em] max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:te(e,!1)}),t&&Bt(t).map((r,a)=>xp("p",{className:"text-[15px] leading-[1.6] opacity-85",children:L(r)},a))]}),xp("ul",{className:"grid grid-cols-2 gap-3 md:gap-4 lg:grid-cols-4","data-messaging-cards":"",children:o.map(r=>Fv("li",{className:"flex min-w-0 flex-col items-center gap-3 rounded-[var(--radius-card,12px)] border border-line p-3 text-center md:p-5",children:[xp("p",{className:"font-heading2 text-[18px] font-medium leading-tight",children:r.name}),r.qr?xp(M0,{text:r.qr,label:oi.qrLabel(r.name,r.handle),className:"aspect-square w-full max-w-40 rounded-sm"}):xp("p",{className:"grid aspect-square w-full max-w-40 place-items-center rounded-sm border border-dashed border-line p-3 text-[13px] text-fg-dim",children:oi.searchFor(r.name)}),Fv("div",{className:"mt-auto flex flex-col items-center gap-1.5",children:[r.handle&&xp("p",{className:"break-all text-[14px] text-fg-dim",children:r.handle}),r.href?Fv("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",className:sh,children:[oi.open(r.name),Fv("span",{className:"sr-only",children:[" ",oi.opensApp]})]}):r.handle?xp(wE,{text:r.handle,className:sh}):xp("p",{className:"text-[14px] text-fg-dim",children:oi.scanWith(r.name)})]})]},r.app))})]})}):null}import{readHidable as PPt}from"efficient-easel/screen/lib/document/hidable";var D6e={label:"Messaging cards",defaultProps:{title:"Message us",description:"",dataSource:f4}};import{jsx as _Pt}from"react/jsx-runtime";var QY=()=>[{app:"wechat",name:"WeChat",handle:"yourvenue",href:"",qr:"https://u.wechat.com/yourvenue"},{app:"telegram",name:"Telegram",handle:"@yourvenue",href:"https://t.me/yourvenue",qr:"https://t.me/yourvenue"},{app:"whatsapp",name:"WhatsApp",handle:"0400 000 000",href:"https://wa.me/61400000000",qr:"https://wa.me/61400000000"},{app:"line",name:"LINE",handle:"yourvenue",href:"https://line.me/ti/p/~yourvenue",qr:"https://line.me/ti/p/~yourvenue"}],M6e=e=>{let{text:t,hidden:o}=PPt(e);return o||!t?void 0:t},z6e={...D6e,render:e=>{let{rows:t}=Kt(e,!!e.editor?.isEditing,QY());return _Pt(JY,{title:M6e(e.title),description:M6e(e.description),channels:h4(t),contained:e.contained!==!1})}};import{jsx as PE,jsxs as _E}from"react/jsx-runtime";function ej({heading:e,channels:t}){let o=t.filter(r=>r.qr),n=t.filter(r=>!r.qr&&r.handle);return!o.length&&!n.length?null:_E(z,{as:"div",className:"flex flex-col gap-2.5 text-[13px]","data-footer-messaging":"",children:[e&&PE("p",{children:e}),o.length>0&&PE("ul",{className:"flex flex-wrap gap-x-4 gap-y-3","aria-label":e||void 0,children:o.map(r=>_E("li",{className:"flex w-[72px] flex-col items-center gap-1.5 md:w-[88px]",children:[PE(M0,{text:r.qr,label:oi.qrLabel(r.name,r.handle),className:"aspect-square w-full rounded-sm"}),r.href?_E("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",className:"text-[12px] underline underline-offset-4",children:[r.name,_E("span",{className:"sr-only",children:[" ",oi.opensApp]})]}):PE("span",{className:"text-[12px]",children:r.name})]},r.app))}),n.map(r=>_E("p",{children:[r.name," ID ",PE("span",{className:"break-all",children:r.handle})]},r.app))]})}import{readHidable as CPt}from"efficient-easel/screen/lib/document/hidable";var W6e={label:"Messaging Strip",defaultProps:{heading:"Message us",dataSource:f4}};import{jsx as RPt}from"react/jsx-runtime";var U6e={...W6e,render:e=>{let{rows:t}=Kt(e,!!e.editor?.isEditing,QY()),{text:o,hidden:n}=CPt(e.heading);return RPt(ej,{heading:n?void 0:o||void 0,channels:h4(t)})}};import{jsx as ql,jsxs as Bv}from"react/jsx-runtime";var G6e={call:e=>e?`Call ${e}`:"Call",email:e=>e?`Email ${e}`:"Email"};function tj({title:e,description:t,contacts:o,contained:n}){return o.length?ql(It,{contained:n,className:"py-6",children:Bv("div",{className:"flex flex-col gap-6",children:[(e||t)&&Bv("div",{className:"flex max-w-[680px] flex-col gap-3",children:[e&&ql("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium leading-[1.05] tracking-[-0.03em] max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:te(e,!1)}),t&&Bt(t).map((r,a)=>ql("p",{className:"text-[15px] leading-[1.6] opacity-85",children:L(r)},a))]}),ql("ul",{className:"grid gap-3 sm:grid-cols-2 md:gap-4 lg:grid-cols-3","data-contact-cards":"",children:o.map((r,a)=>Bv("li",{className:"flex min-w-0 items-start justify-between gap-4 rounded-[var(--radius-card,12px)] border border-line p-4 md:p-5",children:[Bv("div",{className:"flex min-w-0 flex-col gap-1.5",children:[ql("p",{className:"font-mono text-[12px] uppercase tracking-[0.14em] text-fg-dim",children:r.way}),r.name&&ql("p",{className:"font-heading2 text-[18px] font-medium leading-tight",children:r.name}),ql("p",{className:"break-all text-[15px] text-fg-dim",children:r.handle}),ql("div",{className:"pt-1",children:r.kind==="phone"?ql("a",{href:r.href,className:sh,children:G6e.call(r.name)}):r.kind==="email"?ql("a",{href:r.href,className:sh,children:G6e.email(r.name)}):r.href?Bv("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",className:sh,children:[oi.open(r.way),Bv("span",{className:"sr-only",children:[" ",oi.opensApp]})]}):ql(wE,{text:r.handle,className:sh})})]}),r.qr&&ql(M0,{text:r.qr,label:oi.qrLabel(r.way,r.handle),className:"aspect-square w-24 shrink-0 rounded-sm"})]},a))})]})}):null}import{readHidable as OPt}from"efficient-easel/screen/lib/document/hidable";import{jsx as LPt}from"react/jsx-runtime";var NPt=()=>[{name:"Jessie",kind:"phone",value:"0400 000 000"},{name:"Saki",kind:"line",value:"yourvenue"}],$6e=e=>{let{text:t,hidden:o}=OPt(e);return o||!t?void 0:t},K6e={...K3e,render:e=>{let t=AV(e.contacts);return!t.length&&e.editor?.isEditing&&(t=AV(NPt())),LPt(tj,{title:$6e(e.title),description:$6e(e.description),contacts:t,contained:e.contained!==!1})}};import{jsx as oj}from"react/jsx-runtime";function nj({rating:e,field:t,editing:o}){let n=Da(),r=Number.parseFloat(t&&n?n.row[t]??"":""),a=t&&n?Number.isFinite(r)&&r>0?r:0:e;return a>0?oj(hx,{rating:a}):!o||t&&n?null:oj(z,{className:"opacity-60",children:oj(hx,{rating:lm})})}import{jsx as IPt}from"react/jsx-runtime";function APt(e){return typeof e=="number"&&Number.isFinite(e)&&e>0?e:0}var V6e={...Y3e,render:e=>IPt(nj,{rating:APt(e.rating),field:Xn(e),editing:!!e.editor?.isEditing})};import{useState as fh}from"react";import{jsx as da,jsxs as K4}from"react/jsx-runtime";var FPt="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[84px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",BPt="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-0 pb-[84px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]";function rj({eyebrow:e,title:t,designCode:o,omitHead:n=!1,editing:r=!1}={}){let a=he(),i=pr(),[s,l]=fh(""),[d,c]=fh(""),[p,m]=fh(0),[f,g]=fh(""),[h,w]=fh(""),[b,k]=fh(!1),[x,v]=fh(!1),[y,S]=fh(null);async function E(_){if(_.preventDefault(),!(r||b)){if(p<1){S("Choose a star rating.");return}k(!0),S(null);try{await Bo.submitReview({authorName:s.trim(),...d.trim()?{email:d.trim()}:{},rating:p,...f.trim()?{title:f.trim()}:{},body:h.trim(),...o?.trim()?{designCode:o.trim()}:{}}),v(!0)}catch{S("Something went wrong \u2014 your review wasn't sent. Please try again.")}finally{k(!1)}}}let T=x?da("p",{role:"status",className:"max-w-[560px] font-serif text-[19px] italic leading-[1.6] text-fg-dim",children:"Thanks \u2014 your review will appear once approved."}):K4("form",{className:"flex max-w-[720px] flex-col gap-5",onSubmit:E,children:[K4("div",{className:"grid grid-cols-2 gap-3 max-[640px]:grid-cols-1",children:[da($r,{label:"Name",required:!0,children:da("input",{type:"text",required:!0,value:s,onChange:_=>l(_.target.value),className:_u})}),da($r,{label:"Email \u2014 never shown publicly",children:da("input",{type:"email",value:d,onChange:_=>c(_.target.value),className:_u})})]}),K4("div",{className:"flex flex-col gap-2",children:[da(Vh,{required:!0,children:"Rating"}),da("div",{role:"group","aria-label":"Rating",className:"flex gap-1",children:[1,2,3,4,5].map(_=>da("button",{type:"button","aria-pressed":p>=_,"aria-label":`${_} star${_===1?"":"s"}`,onClick:()=>{m(_),S(null)},className:["cursor-pointer text-[30px] leading-none transition-colors",p>=_?"text-accent":"text-fg-dim/30 hover:text-fg-dim"].join(" "),children:"\u2605"},_))})]}),da($r,{label:"Review title (optional)",children:da("input",{type:"text",value:f,onChange:_=>g(_.target.value),className:_u})}),da($r,{label:"Your review",required:!0,children:da("textarea",{required:!0,rows:5,value:h,onChange:_=>w(_.target.value),className:_u+" resize-y"})}),y&&da("p",{role:"alert",className:"font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:y}),da("button",{type:r?"button":"submit",disabled:b,className:"cursor-pointer self-start bg-btn px-8 py-4 font-mono text-[14px] uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg hover:text-bg disabled:cursor-wait disabled:opacity-60",children:b?"Sending\u2026":"Submit review \u2192"})]});return n?da(yt,{className:"relative z-[2] border-t border-line bg-surface",column:BPt,padOnColumn:!0,children:T}):da(z,{as:"section",className:"relative z-[2] border-t border-line bg-surface",children:K4("div",{...Te(fe(FPt,a),i),children:[(e??"").trim()&&da(lt,{text:e??"",scaled:!1,className:"mb-4 block"}),(t??"").trim()&&da("h2",{className:"mb-12 font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:te(t??"",!1)}),T]})})}import{hidableText as HPt}from"efficient-easel/screen/lib/document/hidable";import{jsx as DPt}from"react/jsx-runtime";var Y6e=Ct("ReviewForm",{...q3e,render:e=>{let t=We(e.headPlacement)==="own-box",o=n=>t?void 0:n;return DPt(rj,{eyebrow:o(R(e.eyebrow,yv.eyebrow,e.editor)),title:o(R(e.title,yv.title,e.editor)),omitHead:t,designCode:HPt(e.designCode)||void 0,editing:e.editor?.isEditing})}});import{jsx as q6e}from"react/jsx-runtime";var j6e=()=>[{key:"sample-review-1",name:u("Sample reviewer"),rating:"5",title:u("Sample review title"),quote:u("Approved customer reviews appear here automatically \u2014 this card is only a preview of the section's shape.")},{key:"sample-review-2",name:u("Sample reviewer"),rating:"4",title:"",quote:u("Reviews are collected by the Review Form section and wait for your approval before they show.")},{key:"sample-review-3",name:u("Sample reviewer"),rating:"5",title:u("Another sample"),quote:u("Set a product design code on this section to show one product's reviews; leave it blank for the whole store.")}],MPt=(e,t)=>{let o=Number.parseFloat(e.rating??"");return{key:e.key||`review-${t}`,quote:e.quote??"",title:e.title??"",name:e.name??"",meta:e.dateLabel||e.role||"",...Number.isFinite(o)?{rating:o}:{}}},zPt=e=>(Array.isArray(e)?e:[]).map(nn).filter(t=>(t.quote??"").trim()),X6e=Ct("Reviews",{...e4e,render:e=>{let t=We(e.headPlacement)==="own-box",o=l=>t?void 0:l,n=!!e.editor?.isEditing,r,a=!1;if(dt(e)!==""){let l=Kt(e,n,j6e()),d=typeof e.limit=="number"&&e.limit>0?e.limit:6;r=l.sample?l.rows:l.rows.slice(0,d),a=l.sample}else r=zPt(e.items),!r.length&&n&&(r=j6e(),a=!0);let i=r.map(MPt),s=l=>q6e(vM,{look:cs(e.eyebrowLook,"Reviews"),eyebrow:o(R(e.eyebrow,vv.eyebrow,e.editor)),title:o(R(e.title,vv.title,e.editor)),omitHead:t,columns:e.columns,rows:i,sample:a,editing:n,cards:l});return q6e(Ge,{ownerId:String(e.id??""),ownerType:"Reviews",Template:e.template,rows:r,fallback:s(),children:l=>s(l)})}});import{useEffect as WPt,useState as UPt}from"react";var Z6e="data-footer-reveal";function aj(e){return e===!0}function J6e(e,t,o,n){return!aj(e)||n||!(t>0)||!(o>0)?!1:t<=o}import{jsx as Hv}from"react/jsx-runtime";var GPt=gt("SiteHeader")("header-content"),$Pt=gt("SiteFooter")("footer"),KPt={font:"--sf-header-tool-font",size:"--sf-header-tool-size"};function VPt(e){let t=Ku(e,KPt);return Object.keys(t).length?t:null}function YPt(e,t){let o=aj(e)&&!t,[n,r]=UPt(!1);return WPt(()=>{if(!o){r(!1);return}let a=document.querySelector('[data-section-group="footer"]');if(!a)return;let i=()=>r(J6e(e,a.getBoundingClientRect().height,window.innerHeight,t));i(),window.addEventListener("resize",i);let s=typeof ResizeObserver>"u"?null:new ResizeObserver(i);return s?.observe(a),()=>{window.removeEventListener("resize",i),s?.disconnect()}},[o,e,t]),n}function CE({place:e,sections:t,editing:o=!1,widths:n,navTextCase:r,menuRow:a,toolTextStyle:i,iconSize:s,cartIcon:l,revealOnScroll:d}){let c=e==="footer"?"footer":"div",p=AP(n),m=p.content==="full"?"100vw":p.contentMax===null?null:`${p.contentMax}px`,f=e==="footer"&&p.background==="content"?qm(ec):null,g=e==="header"?VPt(i):null,h=YPt(e==="footer"?d:void 0,o),w=m===null&&f===null&&g===null?void 0:{...f,...m===null?null:{"--sf-site-width":m},...g},b=Hv(z,{as:c,"data-section-group":e,...e==="header"?{"data-header-nav-case":Aw(r),"data-header-menu-row":jp(a)??"top",...g?{"data-header-tool-style":String(i)}:null}:null,...h?{[Z6e]:"on"}:null,className:o&&e==="footer"?"sf-theme-surfaces bg-bg text-fg":void 0,style:w,...e==="header"?GPt:$Pt,children:Hv(Goe,{value:{background:p.background,content:p.content==="content"?"content":null},children:Hv(t,{minEmptyHeight:120})})});return e==="header"?Hv(Vve,{children:Hv(gOe,{children:Hv(gA.Provider,{value:QR({cartIcon:l,iconSize:s}),children:b})})}):b}import{jsx as jPt}from"react/jsx-runtime";var Q6e={...o4e,render:({sections:e,editor:t,revealOnScroll:o,...n})=>jPt(CE,{place:"footer",sections:e,widths:n,editing:t?.isEditing,revealOnScroll:o})};import{parseOption as t_t}from"efficient-shell/format";import{useEffect as o_t,useState as n_t}from"react";import{useRootIsDark as r_t}from"efficient-shell/theme";import{useEffect as Dv,useLayoutEffect as qPt,useRef as XPt,useState as tBe}from"react";var eBe="data-header-fit";function ij(e){e.removeAttribute(eBe);let t=e.ownerDocument.defaultView;if(!t)return!1;let o=!1;for(let n of e.querySelectorAll("[data-header-band]")){if(t.getComputedStyle(n).display==="none")continue;let r=n.parentElement?.clientWidth??0,a=n.style.width;n.style.width="max-content";let i=n.offsetWidth;if(n.style.width=a,i>r+.5){o=!0;break}}return o&&e.setAttribute(eBe,"phone"),o}function V4({stickyMode:e,heightPx:t}){let o=XPt(null),[n,r]=tBe(!1),[a,i]=tBe(!1);return Dv(()=>{let s=o.current?.ownerDocument?.defaultView??window,l=t,d=s.scrollY;function c(){let p=s.scrollY;r(p>10),e==="on_scroll_up"&&(p<=l?i(!1):p>d+4?i(!0):p<d-4&&i(!1)),d=p}return c(),s.addEventListener("scroll",c,{passive:!0}),()=>s.removeEventListener("scroll",c)},[e,t]),Dv(()=>{e!=="on_scroll_up"&&i(!1)},[e]),Dv(()=>{let s=o.current?.ownerDocument?.documentElement;s&&s.style.setProperty(I_,`${t}px`)},[t]),Dv(()=>{let s=o.current,l=s?.ownerDocument,d=l?.defaultView;if(!s||!l||!d)return;let c="",p=f=>{let g=`${Math.round(f)}px`;g!==c&&(c=g,l.documentElement.style.setProperty(v6,g),l.body?.style.setProperty(v6,g))};if(typeof d.ResizeObserver!="function"){p(s.getBoundingClientRect().height);return}let m=new d.ResizeObserver(f=>{let g=f[0]?.borderBoxSize?.[0];p(g?g.blockSize:s.getBoundingClientRect().height)});return m.observe(s),()=>m.disconnect()},[]),Dv(()=>{let s=o.current?.ownerDocument?.documentElement;s&&s.setAttribute("data-header-sticky",e)},[e]),qPt(()=>{o.current&&ij(o.current)}),Dv(()=>{let s=o.current,l=s?.ownerDocument,d=l?.defaultView;if(!s||!l||!d)return;let c=!0,p=()=>{c&&ij(s)};s.addEventListener("load",p,!0),l.fonts?.ready.then(p,()=>{});let m=typeof d.ResizeObserver=="function"?new d.ResizeObserver(p):null;return m?.observe(s),()=>{c=!1,s.removeEventListener("load",p,!0),m?.disconnect()}},[]),{headerRef:o,scrolled:n,navHidden:a}}import{useEffect as ZPt,useState as JPt}from"react";function Y4(e,t){let o=ga(),[n,r]=JPt(!1);return ZPt(()=>{let a=e.current?.ownerDocument??document,i=()=>r(a.querySelector(`[${lie}="light"]`)!=null);i();let s=requestAnimationFrame(i);return()=>cancelAnimationFrame(s)},[e,o]),t==="light"?!0:t==="dark"?!1:n}import{useEffect as QPt,useState as e_t}from"react";function j4(e){let t=ga(),[o,n]=e_t(!1);return QPt(()=>{let r=()=>n(Yce(e.current?.ownerDocument??document));r();let a=requestAnimationFrame(r);return()=>cancelAnimationFrame(a)},[e,t]),o}import{jsx as sj}from"react/jsx-runtime";var a_t=gt("SiteHeader"),i_t=["none","always","on_scroll_up"],s_t=e=>t_t(i_t,"always",e);function lj({sticky:e,topTextColor:t,topTextCustom:o,linkOpacity:n,heightPx:r,theme:a,bandCapped:i=!1,children:s}){let l=s_t(e),d=Vce(r),{headerRef:c,scrolled:p,navHidden:m}=V4({stickyMode:l,heightPx:d}),f=tw(t),g=f==="auto"?null:{[YC]:f},h=jce(t,o),w=Jce(n),b=w===void 0?null:{[Xce]:""},k=e5(a),x=jR(ga()),[v,y]=n_t(null);o_t(()=>y(c.current?.ownerDocument??null),[c]);let S=!r_t({doc:v,whenUnset:!0}),E=j4(c),T=p||x||E,_=Y4(c,f),P=sj(dL.Provider,{value:T?null:h,children:s}),I=qR(S,x);return sj(z,{as:"header",ref:c,"data-scrolled":p||void 0,"data-box-header":"",...g,...b,className:["sf-site-header",...k?[k.className]:[],"flex flex-col justify-center",l==="none"?"absolute":"fixed","inset-x-0 top-0 z-50",T?"border-b border-line backdrop-blur-md":"border-b border-transparent","transition-[background,border-color,transform] duration-300 ease-out"].join(" "),style:{...k?k.style:null,minHeight:`var(${I_}, ${d}px)`,...i?qm(ec):null,...m?{transform:"translateY(-100%)"}:null,...T?{background:I,color:"var(--fg)","--sf-header-ground":I}:{color:"var(--sf-header-overlay-fg)","--sf-header-ground":"var(--sf-header-overlay-ground)"},...h?{"--sf-header-overlay-fg":h}:null,...w===void 0?null:{[Zce]:String(w/100)}},...a_t("header"),children:!T&&_?sj(HN,{children:P}):P})}function oBe(e){return{sticky:e.sticky,topTextColor:e.topTextColor,topTextCustom:e.topTextCustom,linkOpacity:e.linkOpacity,heightPx:e.heightPx,theme:e.sectionAccent,bandCapped:AP(e).background==="content"}}import{jsx as nBe}from"react/jsx-runtime";var rBe={...r4e,render:({sections:e,navTextCase:t,toolTextStyle:o,iconSize:n,cartIcon:r,menuRow:a,sticky:i,topTextColor:s,topTextCustom:l,linkOpacity:d,heightPx:c,sectionAccent:p,editor:m,...f})=>{let g=nBe(CE,{place:"header",sections:e,widths:f,navTextCase:t,menuRow:a,toolTextStyle:o,iconSize:n,cartIcon:r,editing:m?.isEditing});if(!m?.isEditing)return g;let h=oBe({sticky:i,topTextColor:s,topTextCustom:l,linkOpacity:d,heightPx:c,sectionAccent:p,...f});return nBe(lj,{sticky:h.sticky,topTextColor:h.topTextColor,topTextCustom:h.topTextCustom,linkOpacity:h.linkOpacity,heightPx:h.heightPx,theme:h.theme,bandCapped:h.bandCapped,children:g})}};import{hidableText as l_t}from"efficient-easel/screen/lib/document/hidable";var aBe={label:"Submit box",defaultProps:{}};import{jsx as d_t}from"react/jsx-runtime";var iBe={...aBe,render:e=>d_t(uM,{region:typeof e.region=="string"?e.region:void 0,eyebrow:un(e.eyebrow,Wt.eyebrow,e.editor),title:un(e.title,Wt.title,e.editor),body:un(e.body,Wt.body,e.editor),buttonText:un(e.buttonText,Wt.buttonText,e.editor),consent:un(e.consent,Wt.consent,e.editor),formSlug:l_t(e.formSlug)||void 0,form:e.form,editing:e.editor?.isEditing,styleField:e.styleField,styleTick:e.styleTick,styleThanks:e.styleThanks})};import{jsx as q4,jsxs as c_t}from"react/jsx-runtime";function RE(e,t){return e===void 0?t:e}function dj({eyebrow:e,title:t,body:o,buttonText:n,consent:r,formSlug:a,form:i,editing:s=!1,boxes:l,inBoxes:d=!1}){let c=RE(e,Wt.eyebrow),p=RE(t,Wt.title),m=RE(o,Wt.body),f=RE(n,Wt.buttonText),g=RE(r,Wt.consent),h=Hc(a,i),w=lf({form:h,formSlug:a,editing:s}),b=h===void 0,k=!!h||s;return!k&&!c&&!p&&!m?null:d&&l?q4(yt,{className:"border-y border-line py-[120px] max-view-desktop:py-[60px]",children:q4(l,{className:"grid grid-cols-2 items-start gap-[60px] max-view-desktop:grid-cols-1 max-view-desktop:gap-10"})}):c_t(yt,{className:"border-y border-line py-[120px] max-view-desktop:py-[60px]",column:"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-2 items-end gap-[60px] px-[var(--sf-site-gutter,40px)] max-view-desktop:grid-cols-1 max-view-desktop:gap-10 max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",children:[q4(Hhe,{eyebrow:c,title:p}),q4(kO,{body:m,buttonLabel:f,consent:g,form:h,submission:w,showForm:k,resolving:b,editing:s})]})}import{hidableText as p_t}from"efficient-easel/screen/lib/document/hidable";import{jsx as m_t}from"react/jsx-runtime";var sBe=Ct("SubmitBuild",{...l4e,render:e=>m_t(dj,{boxes:e.boxes,inBoxes:e.layout==="boxes",eyebrow:un(e.eyebrow,Wt.eyebrow,e.editor),title:un(e.title,Wt.title,e.editor),body:un(e.body,Wt.body,e.editor),buttonText:un(e.buttonText,Wt.buttonText,e.editor),consent:un(e.consent,Wt.consent,e.editor),formSlug:p_t(e.formSlug)||void 0,form:e.form,editing:e.editor?.isEditing})});import{useState as f_t}from"react";import{useCallback as lBe,useRef as u_t,useState as dBe}from"react";function X4({source:e,dryRun:t=!1}){let[o,n]=dBe("idle"),[r,a]=dBe(null),i=u_t(!1),s=lBe(()=>{i.current=!1,a(null),n("idle")},[]),l=lBe(async d=>{if(!i.current){if(!uw(d.email)){n("invalid");return}i.current=!0,a(null),n("sending");try{t||await Bo.createNewsletterSubscription(kde(d,e))}catch(c){i.current=!1,a(c),n("error");return}i.current=!1,n("sent")}},[e,t]);return{status:o,error:r,submit:l,reset:s}}import{jsx as ss,jsxs as z0}from"react/jsx-runtime";var yp={issueSubline:"text-[length:var(--size-body,13px)]",issueTitle:"text-[length:var(--size-body,16px)]",intro:"text-[length:var(--size-body,19px)]",note:"text-[length:var(--size-label,12px)]",label:"text-[length:var(--size-label,13px)]",field:"text-[length:var(--size-label,14px)]"};function h_t(e,t,o){let n=j0[yh(e)??"left"],r=zr("place",e,t,o,{atSectionLine:!0}),a=[n,r].filter(Boolean).join(" ");return a?` w-full ${a}`:""}function g_t(e,t,o){let n=Zl[yh(e)??"left"],r=zr("text",e,t,o,{atSectionLine:!0}),a=[n,r].filter(Boolean).join(" ");return a?` ${a}`:""}var b_t="border-b border-line py-[140px] max-view-desktop:py-20",w_t="border-b border-line pt-0 pb-[140px] max-view-desktop:pb-20",x_t="That didn't go through \u2014 please try again.",y_t="Please check your email address.";function OE({headNum:e,headTitle:t,headDesc:o,kicker:n,leadTitle:r,intro:a,emailPlaceholder:i,submitText:s,subscribedText:l,finePrint:d,issuesHeading:c,issues:p,archiveText:m,archiveHref:f,source:g=Bi.subscribeSection,editing:h=!1,align:w,alignTablet:b,alignPhone:k,textAlign:x,textAlignTablet:v,textAlignPhone:y,panel:S=!0,omitHead:E=!1}){let[T,_]=f_t(""),{status:P,submit:I}=X4({source:g,dryRun:h}),D=P==="sent",F=P==="sending",A=P==="error"||P==="invalid",N=(p??[]).filter(V=>(V?.n??"").trim()||(V?.title??"").trim()||(V?.date??"").trim()),B=N.length>0,Y=h_t(w,b,k),K=g_t(x,v,y),X=D?l||"Subscribed \u2713":F?"Sending\u2026":s||"Subscribe \u2192";function Z(V){V.preventDefault(),!D&&I({email:T})}return z0(yt,{className:E?w_t:b_t,children:[E?null:ss(Ma,{num:e,title:t?te(t,!0):void 0,desc:o,accentTracking:"-0.025em"}),z0("div",{className:S?B?"grid min-h-[460px] grid-cols-[1.1fr_1fr] border border-line max-view-desktop:grid-cols-1":"grid min-h-[460px] grid-cols-1 border border-line":B?"grid grid-cols-[1.1fr_1fr] gap-14 max-view-desktop:grid-cols-1 max-view-desktop:gap-10":"grid grid-cols-1",children:[z0("div",{className:(S?B?"flex flex-col justify-center gap-6 border-r border-line px-14 py-16 max-view-desktop:border-r-0 max-view-desktop:border-b max-view-desktop:px-8 max-view-desktop:py-12":"flex flex-col justify-center gap-6 px-14 py-16 max-view-desktop:px-8 max-view-desktop:py-12":"flex flex-col justify-center gap-6")+K,children:[n&&ss(lt,{text:n}),r&&ss("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.035em]",children:te(r,!0)}),a&&ss("p",{className:`max-w-[480px] font-serif ${yp.intro} italic leading-[1.5] text-fg-dim${Y}`,children:L(a,!0)}),z0("form",{className:`mt-2 flex max-w-[520px] max-view-tablet:flex-col${Y}`,onSubmit:Z,children:[ss("input",{type:"email",placeholder:i||"your@email.com","aria-label":"Email address",required:!0,value:T,onChange:V=>_(V.target.value),disabled:D,className:`${gc} border border-r-0 border-line max-view-tablet:w-full max-view-tablet:flex-none max-view-tablet:border-r max-view-tablet:border-b-0 bg-bg px-5 py-5 font-mono ${yp.field} uppercase tracking-[0.18em] text-fg placeholder:text-fg-dim outline-none focus:border-accent`}),ss("button",{type:"submit",disabled:D||F,className:`border border-btn bg-btn px-8 py-5 font-mono ${yp.label} uppercase tracking-[0.3em] text-btn-ink transition-colors hover:bg-fg hover:border-fg disabled:cursor-default disabled:opacity-90`,children:jo(X)})]}),A&&ss("p",{role:"alert",className:`max-w-[480px] font-mono ${yp.note} uppercase leading-[1.7] tracking-[0.18em] text-alert${Y}`,children:P==="invalid"?y_t:x_t}),d&&ss("p",{className:`max-w-[480px] font-mono ${yp.note} uppercase leading-[1.7] tracking-[0.18em] text-fg-dim${Y}`,children:L(d)})]}),B&&z0("div",{id:"sub-recent-issues",className:"grid grid-rows-[auto_1fr_auto] gap-6 bg-[var(--journal-panel-bg)] px-12 py-12 scroll-mt-[160px] max-view-desktop:px-8 max-view-desktop:py-10",children:[c&&ss(lt,{text:c,size:12}),ss("div",{className:"flex flex-col",children:N.map((V,j)=>z0("div",{className:["grid grid-cols-[60px_1fr_auto] items-start gap-5 border-b border-line py-5",j===0?"border-t border-line":""].join(" "),children:[ss("span",{className:`font-mono ${yp.label} tracking-[0.22em] text-accent`,children:V.n?L(V.n):""}),z0("span",{className:`font-display ${yp.issueTitle} font-medium leading-[1.3] tracking-[-0.01em]`,children:[V.title?L(V.title):"",V.small?.trim()&&ss("small",{className:`mt-1 block font-serif ${yp.issueSubline} font-normal italic text-fg-dim`,children:L(V.small,!0)})]}),ss("span",{className:`whitespace-nowrap pt-1 text-right font-mono ${yp.note} uppercase tracking-[0.22em] text-fg-dim`,children:V.date?L(V.date):""})]},j))}),m&&ss(Tt,{href:f||"/journal",className:`flex items-center justify-end gap-3 font-mono ${yp.note} uppercase tracking-[0.22em] text-accent hover:text-fg`,children:L(m)})]})]})]})}import{hidableText as Z4}from"efficient-easel/screen/lib/document/hidable";var cBe={ownPad:MA,label:"Subscribe Form",defaultProps:{headNum:"",headTitle:"",headDesc:"",kicker:"",leadTitle:"",intro:"",emailPlaceholder:"",submitText:"",subscribedText:"",finePrint:"",issuesHeading:"",issues:[],archiveText:"",archiveHref:""}};import{jsx as v_t}from"react/jsx-runtime";var pBe=Ct("Subscribe",{...cBe,render:e=>{let{headNum:t,headTitle:o,headDesc:n,kicker:r,leadTitle:a,intro:i,emailPlaceholder:s,submitText:l,subscribedText:d,finePrint:c,issuesHeading:p,issues:m,contentType:f,posts:g,limit:h,archiveText:w,archiveHref:b,align:k,alignTablet:x,alignPhone:v,textAlign:y,textAlignTablet:S,textAlignPhone:E,panel:T,editor:_}=e,P=We(e.headPlacement)==="own-box",I=D=>P?void 0:D;return v_t(OE,{headNum:I(R(t,Mo.headNum,_)),headTitle:I(R(o,Mo.headTitle,_)),headDesc:I(R(n,Mo.headDesc,_)),omitHead:P,kicker:R(r,Mo.kicker,_),leadTitle:R(a,Mo.leadTitle,_),intro:R(i,Mo.intro,_),emailPlaceholder:Z4(s)||Mo.emailPlaceholder,submitText:Z4(l)||Mo.submitText,subscribedText:Z4(d)||Mo.subscribedText,finePrint:R(c,Mo.finePrint,_),issuesHeading:R(p,Mo.issuesHeading,_),issues:x4(m4e(f),{issues:m,posts:g,limit:h,editor:_}),source:Bi.subscribeSection,editing:_?.isEditing,archiveText:R(w,Mo.archiveText,_),archiveHref:Z4(b)||Mo.archiveHref,align:k,alignTablet:x,alignPhone:v,textAlign:y,textAlignTablet:S,textAlignPhone:E,panel:T!==!1})}});import{hidableText as J4}from"efficient-easel/screen/lib/document/hidable";import{jsx as k_t}from"react/jsx-runtime";var mBe=Ct("SubscribeBlogs",{...b4e,render:e=>{let t=x4("posts",e);return k_t(OE,{headNum:R(e.headNum,Zo.headNum,e.editor),headTitle:R(e.headTitle,Zo.headTitle,e.editor),headDesc:R(e.headDesc,Zo.headDesc,e.editor),kicker:R(e.kicker,Zo.kicker,e.editor),leadTitle:R(e.leadTitle,Zo.leadTitle,e.editor),intro:R(e.intro,Zo.intro,e.editor),emailPlaceholder:J4(e.emailPlaceholder)||Zo.emailPlaceholder,submitText:J4(e.submitText)||Zo.submitText,subscribedText:J4(e.subscribedText)||Zo.subscribedText,finePrint:R(e.finePrint,Zo.finePrint,e.editor),issuesHeading:R(e.issuesHeading,Zo.issuesHeading,e.editor),issues:t,source:Bi.subscribeBlogsSection,editing:e.editor?.isEditing,archiveText:R(e.archiveText,Zo.archiveText,e.editor),archiveHref:J4(e.archiveHref)||Zo.archiveHref})}});var uBe={AppointmentBooking:y4e,BookingBox:S4e,ContactRouting:T4e,DealerFinder:P4e,SignUp:A4e,Events:F4e,Footer:K4e,FooterDivider:j4e,FooterEmailSignup:Z4e,FooterGroup:Q4e,FooterLogo:oFe,FooterMenu:kFe,ArticleBody:k4e,FooterSocial:TFe,FooterPayment:EFe,FooterText:RFe,Form:LFe,LegalLineBlock:IFe,MenuLinkBlock:BFe,OpeningHours:HFe,RateTable:GFe,MessagingCards:z6e,FooterMessaging:U6e,ContactCards:K6e,RatingBlock:V6e,ReviewForm:Y6e,Reviews:X6e,[Eb]:Q6e,[ps]:rBe,SubmitBox:iBe,SubmitBuild:sBe,Subscribe:pBe,SubscribeBlogs:mBe};var S_t={AppointmentBooking:fIe,BookingBox:gIe,ContactRouting:PIe,DealerFinder:_Ie,SignUp:NIe,Events:r3e,Footer:d3e,FooterDivider:p3e,FooterEmailSignup:m3e,FooterGroup:h3e,FooterLogo:b3e,FooterMenu:v3e,ArticleBody:S3e,FooterSocial:E3e,FooterPayment:_3e,FooterText:R3e,Form:A3e,LegalLineBlock:I3e,MenuLinkBlock:F3e,OpeningHours:H3e,RateTable:D3e,MessagingCards:M3e,FooterMessaging:z3e,ContactCards:V3e,RatingBlock:j3e,ReviewForm:Z3e,Reviews:t4e,[Eb]:n4e,[ps]:a4e,SubmitBox:s4e,SubmitBuild:d4e,Subscribe:g4e,SubscribeBlogs:w4e},io=vx(uBe,S_t);import{useEasel as R_t}from"efficient-easel/easel";import{useCallback as T_t,useEffect as wBe,useRef as E_t,useState as NE}from"react";import{rootIsDark as P_t,watchRootTheme as __t}from"efficient-shell/format";import{jsx as hBe}from"react/jsx-runtime";var fBe="sf-button inline-flex shrink-0 items-center whitespace-nowrap border border-btn bg-btn px-3 py-2 font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.12em] text-btn-ink transition-colors hover:border-btn-2 hover:bg-btn-2";function cj({href:e,label:t}){return e?hBe("a",{href:e,className:fBe,"data-header-call":"",children:t}):hBe("span",{className:fBe,"data-header-call":"",children:t})}function gBe({editorPreview:e,hasPreviewSettings:t,hasInitialSettings:o}){return!e&&!t&&!o}function bBe(e){let t=(e??"").trim();return JX(t,"#000000")===null?null:!wP(t)}import{Fragment as Q4,jsx as zo,jsxs as _n}from"react/jsx-runtime";var xBe={stacked:{grid:"hidden min-[1501px]:grid",flex:"hidden min-[1501px]:flex"},inline:{grid:"hidden view-tablet:grid",flex:"hidden view-tablet:flex"}},C_t=Array.from({length:Hce},()=>({href:"#",label:zo(dE,{})}));function pj({previewSettings:e,initialSettings:t,editorPreview:o,showThemeToggle:n,wordmark:r,hideLogo:a,hideMenu:i,siteName:s,commerceEnabled:l=!0}={}){let d=ga(),c=jR(d),[p,m]=NE(!1),{open:f,totals:g}=Fn(),{open:h}=Cw(),[w,b]=NE(!1),[k,x]=NE(null),[v,y]=NE(null),[S,E]=NE(t??null),T=e??(S?{logoUrl:S.logoUrl,reverseLogo:S.reverseLogo,logoReversed:S.logoReversed,logoInkIsDark:S.logoInkIsDark,logoPosition:S.logoPosition,logoSize:S.logoSize,logoSizePx:S.logoSizePx,logoSizeUnit:S.logoSizeUnit??null,menuItems:(S.menuItems??[]).map(xe=>({label:xe.label,url:xe.url,dropdown_menu:null,dropdown_items:xe.dropdownItems??[],dropdown_aside:xe.dropdownAside??null})),menuSplit:S.menuSplit??3,menuPosition:S.menuPosition,menuRow:S.menuRow,menuGapPx:S.menuGapPx??null,menuGapUnit:S.menuGapUnit??null,searchEnabled:S.searchEnabled,searchPosition:S.searchPosition,searchRow:S.searchRow,countrySelectorEnabled:S.countrySelectorEnabled,countrySelectorShowAs:S.countrySelectorShowAs,countryUrls:S.countryUrls,accountEnabled:S.accountEnabled,cartEnabled:S.cartEnabled,utilStyle:S.utilStyle,navTextCase:S.navTextCase,lightReverseText:S.lightReverseText,topTextColor:S.topTextColor,transparentTop:S.transparentTop,surface:S.surface,theme:S.theme,width:S.width,heightPx:S.heightPx,borderThickness:S.borderThickness??null,sticky:S.sticky,callButton:S.callButton,callPhone:S.callPhone,callHref:S.callHref}:null),_=a?null:T?.logoUrl??null,P=T?.reverseLogo??!1,I=T?.logoReversed??null,D=T?.logoInkIsDark??null,F=T?.logoPosition??"center",A=T?.logoSize??"medium",N=T?.logoSizePx??null,B=T?.logoSizeUnit??null,Y=Math.min(Math.max(T?.menuSplit??3,1),4),K=(T?.menuPosition??"left")==="center",X=(T?.menuPosition??"left")==="beside",Z=jp(T?.menuRow)==="inline",V=T?.menuGapPx??null,j=V!=null?{gap:XX(V,T?.menuGapUnit,"gap",dc)??`${V}px`}:void 0,J=Z?xBe.inline:xBe.stacked,C=T?.searchEnabled??!1,O=T?.searchPosition??"right",G=T?.countrySelectorEnabled??!0,$=Tc(T?.countrySelectorShowAs),H=T?.accountEnabled??!0,ee=T?.cartEnabled??!0,se=Iw(T?.utilStyle)==="text",pe=`mono-eyebrow${Aw(T?.navTextCase)==="capitalised"?" mono-eyebrow-plain":""}`,Ne=T?.countryUrls??{},ce=LP(T?.width),me=NP(ce)??void 0,Ce=T?.heightPx??li.default,Pe=Math.round(T?.borderThickness??1),ie=Number.isFinite(Pe)?Math.min(Math.max(Pe,0),20):1,Ae=T?.sticky??"always",At=tw(T?.topTextColor),Re=e5(T?.theme),Dt=Object.keys(Ne),we=m3(Dt.length?Dt:void 0),$e=G?zo(w0,{countries:Dt.length?Dt:void 0,urls:e?void 0:Ne,showAs:$}):null,{headerRef:ft,scrolled:ct,navHidden:xn}=V4({stickyMode:Ae,heightPx:Ce}),so=Re?JSON.stringify(Re.style):null;wBe(()=>{let xe=ft.current?.ownerDocument??document,Ze=xe.defaultView??window,yo=kr=>kr?bBe(Ze.getComputedStyle(kr).getPropertyValue("--bg")):null,Ko=()=>{b(!P_t({doc:xe,whenUnset:!0})),x(yo(xe.body)),y(yo(ft.current))};Ko();let Ei=__t(Ko,{doc:xe}),zs=new MutationObserver(Ko);return xe.body&&zs.observe(xe.body,{attributes:!0,attributeFilter:["style"]}),()=>{Ei(),zs.disconnect()}},[ft,so]);let Xt=n??Pp?zo(x0,{}):null;wBe(()=>{if(!gBe({editorPreview:!!o,hasPreviewSettings:!!e,hasInitialSettings:!!t}))return;let xe=!1;return Bo.getHeaderSettings().then(Ze=>!xe&&E(Ze)).catch(Ze=>{console.warn("[header] settings fetch failed; using built-in defaults",Ze)}),()=>{xe=!0}},[o,e,t]);let ht=j4(ft),nt=ct||c||ht,Yn=qR(w,c),Qt=Y4(ft,At),xo=nt||!Qt,yr=nt?v??w:(k??w)&&!Qt,Wo=At==="auto"?null:{[YC]:At},Cn=T_t(()=>m(!1),[]),eo=E_t(null);Nc({active:p,onDismiss:Cn,focusRef:eo,trapRef:eo});let Io=(xe,Ze,yo="start")=>zo(Pv,{item:xe,dropdownAlign:yo},Ze),et=!i&&(T?.menuItems?.length??0)>0,Gt=!!o||!!e,ko=et?T.menuItems.map(xe=>({href:xe.url||"",label:Eo(xe.label),plainLabel:xe.label,dropdownItems:(xe.dropdown_items??[]).map(Ze=>({href:Ze.url||"",label:Eo(Ze.label),plainLabel:Ze.label,description:Ze.description,image:Ze.image,badge:Ze.badge})),dropdownAside:Mi(xe.dropdown_aside)})):Gt?C_t.map(xe=>({...xe,plainLabel:"Menu item",dropdownItems:[]})):[],Ms=ko.length>0||l&&H||!!$e&&we||!!Xt,Ti=F==="center"?ko.slice(0,Y):F==="right"?ko:[],Na=F==="center"?ko.slice(Y):F==="left"?ko:[],wt=C&&l?zo(_S,{onClick:Gt?void 0:h,asText:se}):null,yn=l&&H?zo(PS,{asText:se}):null,vr=xe=>l&&ee?zo(ES,{onClick:f,count:g.sets,asText:se,className:xe}):null,Rn=T?.callPhone??"",Hr=T?.callHref??"",On=xe=>T?.callButton&&(Hr||Gt)?zo(cj,{href:Gt?"":Hr,label:xe?"Call":Rn||"Call"}):null,He=_n(Q4,{children:[O==="left"?wt:null,$e,Xt,yn,vr(),O==="right"?wt:null,On(!1)]}),tt=(xe,Ze=!1)=>zo(Be,{href:"/","aria-label":s?`${s} home`:"Home",className:xe,children:zo(hw,{variant:"header",scrolled:xo,src:_,reverse:P,onLightSurface:yr,reversedSrc:I,inkIsDark:D,size:A,sizePx:N,sizeUnit:B,wordmark:r,siteName:s,fitToContainer:Ze})}),Pt=tt("inline-flex shrink-0 items-center justify-center"),xt="flex min-w-0 flex-1 items-center overflow-x-clip [container-type:inline-size]";return _n(Q4,{children:[zo("header",{ref:ft,"data-scrolled":ct||void 0,...Wo,className:["sf-site-header",...Re?[Re.className]:[],Ae==="none"?"absolute":"fixed","inset-x-0 top-0 z-50","flex items-center","px-[var(--sf-site-gutter,40px)] max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))]",nt?"border-solid border-line backdrop-blur-md":"border-solid border-transparent","transition-[background,border-color,transform] duration-300 ease-out"].join(" "),style:{...Re?Re.style:null,minHeight:yte,borderBottomWidth:`${ie}px`,...xn?{transform:"translateY(-100%)"}:null,...nt?{background:Yn,color:"var(--fg)","--sf-header-ground":Yn}:{color:"var(--sf-header-overlay-fg)","--sf-header-ground":"var(--sf-header-overlay-ground)"}},children:_n("div",{className:"w-full",style:me,children:[K?_n("div",{"data-header-band":"",className:`${J.grid} grid-cols-[1fr_auto_1fr] items-center gap-8`,children:[F==="right"?zo("nav",{className:`${pe} flex items-center gap-8`,children:He}):zo("div",{className:"flex items-center",children:Pt}),zo("nav",{className:`${pe} flex items-center justify-center gap-8`,children:ko.map((xe,Ze)=>Io(xe,`${xe.href}-${Ze}`,"center"))}),F==="right"?zo("div",{className:"flex items-center justify-end",children:Pt}):zo("nav",{className:`${pe} flex items-center justify-end gap-8`,children:He})]}):F==="center"?_n("div",{"data-header-band":"",className:`${J.grid} grid-cols-[1fr_auto_1fr] items-center gap-8`,children:[zo("nav",{className:`${pe} flex items-center gap-8`,children:Ti.map((xe,Ze)=>Io(xe,`${xe.href}-${Ze}`))}),Pt,_n("nav",{className:`${pe} flex items-center justify-end gap-8`,children:[Na.map((xe,Ze)=>Io(xe,`${xe.href}-${Ze}`,"end")),He]})]}):X?_n("div",{"data-header-band":"",className:`${J.flex} items-center justify-between gap-8`,children:[_n("div",{className:"flex items-center gap-8",style:j,children:[Pt,zo("nav",{className:`${pe} flex items-center gap-8`,children:ko.map((xe,Ze)=>Io(xe,`${xe.href}-${Ze}`))})]}),zo("nav",{className:`${pe} flex items-center justify-end gap-8`,children:He})]}):zo("div",{"data-header-band":"",className:`${J.flex} items-center justify-between gap-8`,children:F==="right"?_n(Q4,{children:[_n("nav",{className:`${pe} flex items-center gap-8`,children:[ko.map((xe,Ze)=>Io(xe,`${xe.href}-${Ze}`)),He]}),Pt]}):_n(Q4,{children:[Pt,_n("nav",{className:`${pe} flex items-center gap-8`,children:[ko.map((xe,Ze)=>Io(xe,`${xe.href}-${Ze}`)),He]})]})}),!Z&&_n("div",{"data-header-band":"",className:"hidden view-tablet:max-[1501px]:flex flex-col gap-3",children:[_n("div",{className:"flex items-center justify-between",children:[tt(xt,!0),_n("div",{className:`${pe} flex shrink-0 items-center gap-5`,children:[wt,$e,Xt,yn,vr(),On(!1)]})]}),zo("nav",{className:`${pe} flex items-center gap-6 border-t border-line/60 pt-3`,children:ko.map((xe,Ze)=>Io(xe,`${xe.href}-${Ze}`))})]}),_n("div",{"data-header-phone":"",className:"hidden max-view-tablet:flex items-center justify-between",children:[tt(xt,!0),_n("div",{className:"flex shrink-0 items-center gap-4",children:[wt,yn,vr(pe),On(!0),Ms&&_n("button",{type:"button","aria-label":p?"Close menu":"Open menu","aria-expanded":p,onClick:()=>m(xe=>!xe),className:"flex h-11 w-11 flex-col items-center justify-center gap-2",children:[zo("span",{className:`block h-px w-5 bg-current transition-transform ${p?"translate-y-[3px] rotate-45":""}`}),zo("span",{className:`block h-px w-5 bg-current transition-transform ${p?"opacity-0":""}`}),zo("span",{className:`block h-px w-5 bg-current transition-transform ${p?"-translate-y-[3px] -rotate-45":""}`})]})]})]})]})}),p&&_n("div",{ref:eo,role:"dialog","aria-modal":"true","aria-label":"Menu",tabIndex:-1,"data-header-phone-menu":"",className:"fixed inset-x-0 top-0 bottom-0 z-40 hidden flex-col gap-8 overflow-y-auto bg-bg px-6 pt-24 pb-10 max-view-tablet:flex",children:[ko.map((xe,Ze)=>zo(Pv,{item:xe,mobile:!0,onNavigate:()=>m(!1)},`${xe.href}-${Ze}`)),_n("div",{className:"mt-auto flex flex-col gap-4 border-t border-line pt-6",children:[l&&H&&_n("div",{className:"flex items-center justify-between",children:[zo("span",{className:"mono-eyebrow text-fg-dim",children:"Account"}),zo(Be,{href:"/account",onClick:()=>m(!1),className:"mono-eyebrow underline",children:"Your account"})]}),$e&&we&&_n("div",{className:"flex items-center justify-between",children:[zo("span",{className:"mono-eyebrow text-fg-dim",children:"Region"}),$e]}),Xt&&_n("div",{className:"flex items-center justify-between",children:[zo("span",{className:"mono-eyebrow text-fg-dim",children:"Theme"}),Xt]})]})]})]})}import{jsx as yBe}from"react/jsx-runtime";function vBe(){let{settings:e,websiteName:t,templateChrome:o,templateName:n,chromePlaceholder:r,themeSwitchShown:a}=Zn(),i=o?n?.trim()||u("Template"):t?.trim()||vu,s=o||r;return yBe("div",{className:"sf-theme-surfaces",children:yBe(pj,{previewSettings:e??void 0,editorPreview:!0,showThemeToggle:a,wordmark:i,hideLogo:s,hideMenu:s})})}import{jsx as kBe}from"react/jsx-runtime";function mj({editing:e=!1}){return e?kBe(O_t,{}):null}function O_t(){return R_t(t=>(t.appState.data.content??[]).some(o=>o?.type===ps))?null:kBe(vBe,{})}import{jsx as A_t}from"react/jsx-runtime";var N_t={[_r]:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment"},LE="column";function L_t({id:e,template:t,menu:o,dataSource:n,dataRows:r,heading:a,accordionMobile:i,showDividers:s,direction:l,linkAlign:d,linkRange:c,menuStyle:p,currentPage:m,menuStylePhone:f,menuPanelWidth:g,menuPanelTintColor:h,menuPanelTintOpacity:w,editor:b,...k}){return A_t(uE,{owner:{id:String(e??""),type:_r,template:t},menu:o,served:dt({dataSource:n})?Kt({dataSource:n,dataRows:r},!!b?.isEditing).rows:void 0,heading:a||void 0,accordionMobile:i,showDividers:s,layout:zU(l),linkAlign:d,linkRange:c,menuStyle:p,currentPage:m,pageQuery:kI(k)||void 0,menuStylePhone:f,menuPanelWidth:g,menuPanelTintColor:h,menuPanelTintOpacity:w,editing:b?.isEditing})}function SBe(e){for(let[o,n]of Object.entries(N_t))e[o]={...e[n]};let t=e.MenuBlock;t.defaultProps={...t.defaultProps,direction:LE},t.render=L_t}import{useEffect as eF,useRef as I_t,useState as AE}from"react";function TBe(e){let t={};for(let o of yC){let n=e[o];n&&Object.assign(t,Ku(n,jne[o]))}return t}import{Fragment as H_t,jsx as Ft,jsxs as xr}from"react/jsx-runtime";var EBe={eyebrow:"[&>span]:text-[length:var(--pp-eyebrow-size,var(--size-label,12px))]",formEyebrow:"[&>span]:text-[length:var(--pp-formeyebrow-size,var(--size-label,13px))]"},F_t=50,tF="font-[family-name:var(--pp-fieldlabel-font,var(--font-mono))] text-[length:var(--pp-fieldlabel-size,12px)]";function B_t(e){let t=CP({sectionAccent:ab(e.sectionAccent)}),o=dJ(e.sectionCorners,e.sectionCornerSides);return{className:t?.className??"",style:{...t?.style??{},...o??{},...TBe(e.textStyles)}}}function PBe({content:e,open:t=!0,onClose:o,onSent:n,inline:r=!1,prefillEmail:a="",source:i=Bi.popup,mode:s="chosen",form:l}){let d=s==="chosen"?e.formSlug:"",c=Hc(d||void 0,r?void 0:l??null),p=!!d&&!!c,[m,f]=AE(""),[g,h]=AE(""),[w,b]=AE(()=>new Set(e.interests.slice(0,1))),[k,x]=AE(e.frequencies[0]??""),{status:v,error:y,submit:S,reset:E}=X4({source:i,dryRun:r}),T=v==="sending",_=v==="invalid"?e.emailInvalidText:v==="error"?y instanceof sr?y.message:e.submitErrorText:null,[P,I]=AE(""),D=I_t(null);if(eF(()=>{t&&E()},[t,E]),eF(()=>{v==="sent"&&!r&&n?.()},[v]),eF(()=>{if(r||!t)return;let J=window.setTimeout(()=>D.current?.focus(),F_t);return()=>window.clearTimeout(J)},[r,t]),eF(()=>{!t||!a||h(a)},[t,a]),!r&&!t)return null;function F(J){b(C=>{let O=new Set(C);return O.has(J)?O.delete(J):O.add(J),O})}function A(J){J.preventDefault();let C=g.trim().toLowerCase();I(C),S({email:C,firstName:m,interests:[...w],frequency:k})}let N=e.successBody.replace(/\{email\}/g,P).replace(/\{issue\}/g,e.issueNumber),B=B_t(e),Y=e.formSide==="left",K=xr("div",{className:"flex flex-wrap items-center justify-between gap-5 uppercase tracking-[0.18em] text-fg-dim",children:[xr("span",{className:"flex items-center gap-2 font-[family-name:var(--pp-fineprint-font,var(--font-mono))] text-[length:var(--pp-fineprint-size,12px)]",children:[Ft("span",{className:"block h-1.5 w-1.5 rounded-full bg-accent"}),L(e.finePrint)]}),!r&&Ft("button",{type:"button",onClick:o,className:"font-[family-name:var(--pp-dismiss-font,var(--font-mono))] text-[length:var(--pp-dismiss-size,12px)] uppercase tracking-[0.18em] text-fg-dim underline underline-offset-[3px] transition-colors hover:text-fg",children:L(e.dismissText)})]}),X=xr(H_t,{children:[Ft("span",{className:`contents [&>span]:font-[family-name:var(--pp-formeyebrow-font,var(--font-mono))] ${EBe.formEyebrow}`,children:Ft(lt,{text:e.formLabel,scaled:!1,className:"mb-5"})}),Ft("h2",{id:"subscribe-modal-title",className:"font-[family-name:var(--pp-formheading-font,var(--font-display))] text-[length:var(--pp-formheading-size,34px)] font-medium uppercase leading-none tracking-[-0.025em] [&_em]:font-serif [&_em]:normal-case [&_em]:tracking-[-0.02em]",children:te(e.formHeading)}),Ft("p",{className:"mt-4 font-[family-name:var(--pp-formintro-font,var(--font-serif))] text-[length:var(--pp-formintro-size,17px)] italic leading-[1.55] text-fg-dim",children:L(e.formIntro,!0)})]}),Z="px-12 py-12 max-[880px]:px-8 max-[880px]:py-8",V;p&&c?V=xr("div",{className:`relative flex min-h-[560px] flex-col max-[880px]:min-h-0 ${Z}`,children:[X,Ft("div",{className:"mt-8",children:Ft(NY,{form:c,formSlug:d,editing:r,onSent:n})}),Ft("div",{className:"mt-auto pt-8",children:K})]}):v!=="sent"?V=xr("form",{onSubmit:A,noValidate:!0,className:`relative flex min-h-[560px] flex-col max-[880px]:min-h-0 ${Z}`,children:[X,xr("div",{className:"mt-8 flex flex-col gap-5",children:[Ft($r,{label:L(e.firstNameLabel),required:!0,labelFace:tF,children:Ft("input",{type:"text",value:m,onChange:J=>f(J.target.value),placeholder:e.firstNamePlaceholder,required:!0,className:"border border-line bg-surface px-4 py-4 font-display text-[15px] tracking-[-0.005em] text-fg outline-none transition-colors placeholder:tracking-[0.04em] placeholder:text-fg-dim focus:border-accent"})}),Ft($r,{label:L(e.emailLabel),required:!0,labelFace:tF,children:Ft("input",{type:"email",value:g,onChange:J=>h(J.target.value),placeholder:e.emailPlaceholder,required:!0,className:"border border-line bg-surface px-4 py-4 font-display text-[15px] tracking-[-0.005em] text-fg outline-none transition-colors placeholder:tracking-[0.04em] placeholder:text-fg-dim focus:border-accent"})}),xr("div",{className:"mt-2 flex flex-col gap-3",children:[Ft(Vh,{labelFace:tF,children:L(e.interestsLabel)}),Ft("div",{className:"flex flex-wrap gap-2",children:e.interests.map((J,C)=>{let O=w.has(J);return Ft("button",{type:"button",onClick:()=>F(J),"aria-pressed":O,className:["select-none border px-4 py-3 font-[family-name:var(--pp-option-font,var(--font-mono))] text-[length:var(--pp-option-size,12px)] uppercase tracking-[0.22em] transition-all",O?"border-accent bg-accent text-bg":"border-line text-fg-dim hover:text-fg"].join(" "),children:J},`${J}-${C}`)})})]}),e.frequencies.length>0&&xr("div",{className:"mt-2 flex flex-col gap-3",children:[Ft(Vh,{labelFace:tF,children:L(e.frequencyLabel)}),Ft("div",{className:"flex border border-line",children:e.frequencies.map((J,C)=>{let O=k===J;return Ft("button",{type:"button",onClick:()=>x(J),"aria-pressed":O,className:["flex-1 px-3 py-4 font-[family-name:var(--pp-option-font,var(--font-mono))] text-[length:var(--pp-option-size,12px)] uppercase tracking-[0.24em] transition-all",C<e.frequencies.length-1?"border-r border-line":"",O?"bg-accent text-bg":"text-fg-dim hover:text-fg"].join(" "),children:J},`${J}-${C}`)})})]})]}),xr("div",{className:"mt-auto flex flex-col gap-4 pt-8",children:[_&&Ft(hs,{role:"alert",children:_}),xr("button",{type:"submit",disabled:T,className:"group flex items-center justify-between gap-5 border border-btn bg-btn px-6 py-5 font-mono text-[14px] uppercase tracking-[0.3em] text-btn-ink transition-colors hover:border-fg hover:bg-fg disabled:cursor-wait disabled:opacity-60 disabled:hover:border-btn disabled:hover:bg-btn",children:[Ft("span",{children:e.submitText}),Ft("span",{className:"transition-transform group-hover:translate-x-[4px]",children:T?"\u2026":"\u2192"})]}),K]})]}):V=xr("div",{className:"flex min-h-[560px] flex-col justify-center gap-6 px-12 py-12 max-[880px]:min-h-0 max-[880px]:px-8 max-[880px]:py-8",style:{animation:"subscribe-fade 0.25s ease"},children:[Ft("div",{className:"flex h-16 w-16 items-center justify-center border border-accent font-display text-[32px] text-accent",children:"\u2713"}),Ft("h3",{className:"font-[family-name:var(--pp-doneheading-font,var(--font-display))] text-[length:var(--pp-doneheading-size,38px)] font-medium uppercase leading-none tracking-[-0.025em] [&_em]:font-serif [&_em]:normal-case [&_em]:tracking-[-0.02em]",children:te(e.successHeading)}),Ft("p",{className:"max-w-[440px] font-[family-name:var(--pp-donebody-font,var(--font-serif))] text-[length:var(--pp-donebody-size,18px)] italic leading-[1.55] text-fg-dim",children:L(N,!0)}),!r&&Ft("button",{type:"button",onClick:o,className:"self-start border border-line px-6 py-5 font-mono text-[14px] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:L(e.keepBrowsingText)})]});let j=xr("div",{className:`relative w-[min(1100px,100%)] overflow-hidden border border-line bg-bg [border-radius:var(--sf-section-radius,0px)] max-[880px]:border-x-0 max-[880px]:border-b-0 ${B.className}`.trim(),style:{...B.style,background:"var(--bg)",color:"var(--fg)",boxShadow:r?"0 30px 80px -30px rgba(0,0,0,0.5)":"0 60px 120px -20px rgba(0,0,0,0.7)",animation:r?void 0:"subscribe-rise 0.35s cubic-bezier(.2,.7,.2,1)"},children:[!r&&Ft("button",{ref:D,type:"button",onClick:o,"aria-label":"Close popup",className:"absolute right-[18px] top-[18px] z-[5] flex h-[38px] w-[38px] items-center justify-center border border-line font-mono text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-fg max-[880px]:right-3 max-[880px]:top-3 max-[880px]:h-11 max-[880px]:w-11",style:{background:"color-mix(in oklab, var(--bg) 85%, transparent)"},children:"\u2715"}),xr("div",{className:["grid max-h-[calc(100vh-48px)] overflow-hidden max-[880px]:max-h-[88dvh] max-[880px]:grid-cols-1 max-[880px]:overflow-auto",Y?"grid-cols-[1fr_1.05fr]":"grid-cols-[1.05fr_1fr]"].join(" "),children:[xr("aside",{className:["relative flex min-h-[560px] flex-col justify-between overflow-hidden border-line px-[var(--sf-site-gutter,40px)] py-12 max-[880px]:min-h-[380px] max-[880px]:border-r-0 max-[880px]:border-l-0 max-[880px]:border-b max-[880px]:px-8 max-[880px]:py-8",Y?"order-2 border-l max-[880px]:order-none":"border-r",e.valuePanelOnPhone?"":"max-[880px]:hidden"].join(" "),style:{background:"var(--subscribe-panel-bg)"},children:[Ft("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:"repeating-linear-gradient(0deg, transparent 0 28px, color-mix(in oklab, var(--accent) 4%, transparent) 28px 29px), repeating-linear-gradient(90deg, transparent 0 28px, color-mix(in oklab, var(--accent) 3%, transparent) 28px 29px)"}}),xr("div",{"aria-hidden":!0,className:"pointer-events-none absolute -right-[120px] -bottom-[120px] z-[1] h-[520px] w-[520px] rounded-full border opacity-50 max-[880px]:-right-[100px] max-[880px]:-bottom-[100px] max-[880px]:h-[340px] max-[880px]:w-[340px]",style:{borderColor:"color-mix(in oklab, var(--accent) 22%, transparent)"},children:[Ft("div",{className:"absolute inset-[60px] rounded-full border",style:{borderColor:"color-mix(in oklab, var(--accent) 18%, transparent)"}}),Ft("div",{className:"absolute inset-[140px] rounded-full border",style:{borderColor:"color-mix(in oklab, var(--accent) 14%, transparent)"}})]}),xr("div",{className:["relative z-[2] flex items-start justify-between font-[family-name:var(--pp-meta-font,var(--font-mono))] text-[length:var(--pp-meta-size,12px)] uppercase tracking-[0.3em] text-fg-dim",Y&&!r?"pr-[52px]":""].join(" "),children:[Ft("span",{children:L(e.metaLabel)}),(e.issueLabel||e.issueNumber)&&xr("span",{children:[L(e.issueLabel)," ",Ft("strong",{className:"font-normal text-accent",children:e.issueNumber})]})]}),xr("div",{className:"relative z-[2] flex flex-col gap-5 py-8",children:[Ft("span",{className:`contents [&>span]:font-[family-name:var(--pp-eyebrow-font,var(--font-mono))] ${EBe.eyebrow}`,children:Ft(lt,{text:e.kicker,size:12,scaled:!1})}),Ft("h2",{className:"font-[family-name:var(--pp-heading-font,var(--font-display))] text-[length:var(--pp-heading-size,clamp(40px,4.8vw,68px))] font-medium uppercase leading-[0.92] tracking-[-0.04em] text-fg [&_em]:font-serif [&_em]:normal-case [&_em]:tracking-[-0.03em]",children:te(e.heading)}),Ft("p",{className:"max-w-[420px] font-[family-name:var(--pp-body-font,var(--font-serif))] text-[length:var(--pp-body-size,18px)] italic leading-[1.5]",style:{color:"color-mix(in oklab, var(--fg) 85%, transparent)"},children:L(e.deck,!0)})]}),e.stats.length>0&&Ft("div",{className:"relative z-[2] grid grid-cols-2 gap-5 border-t pt-6",style:{borderColor:"color-mix(in oklab, var(--accent) 18%, var(--site-line))"},children:e.stats.map((J,C)=>xr("div",{children:[Ft("div",{className:"mb-2 font-[family-name:var(--pp-statname-font,var(--font-mono))] text-[length:var(--pp-statname-size,11px)] uppercase tracking-[0.24em] text-fg-dim",children:L(J.label)}),Ft("div",{className:"font-[family-name:var(--pp-statvalue-font,var(--font-display))] text-[length:var(--pp-statvalue-size,22px)] font-medium tracking-[-0.015em] text-fg",children:L(J.value)})]},`${J.label}-${C}`))})]}),V]})]});return r?Ft("div",{className:"flex w-full justify-center p-6","data-subscribe-preview":!0,children:j}):xr($i,{site:{blur:8,sheetOnPhone:!0,animation:"subscribe-fade 0.25s ease"},labelledBy:"subscribe-modal-title",open:t,onClose:o,children:[j,Ft("style",{children:`
|
|
31
31
|
@keyframes subscribe-fade { from { opacity: 0 } to { opacity: 1 } }
|
|
32
32
|
@keyframes subscribe-rise {
|
|
33
33
|
from { transform: translateY(20px); opacity: 0 }
|