efficient-storefront-blocks 0.28.0 → 0.29.0
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 +38 -0
- package/dist/chunks/{EditorPreviewCheckout-QKN2YRWX.js → EditorPreviewCheckout-DYIFFWDV.js} +1 -1
- package/dist/chunks/{PreviewFooter-5UMON7Y2.js → PreviewFooter-MSX5VU2X.js} +1 -1
- package/dist/chunks/SiteEditorProvider-L25VIEGY.js +1 -0
- package/dist/chunks/{chunk-5AQYG2YN.js → chunk-4TBMAZTS.js} +1 -1
- package/dist/chunks/{chunk-24TYCSAT.js → chunk-AS47U6BL.js} +5 -5
- package/dist/chunks/{chunk-ABLILXK5.js → chunk-CDVN6WLL.js} +1 -1
- package/dist/chunks/chunk-GB535QZ5.js +16 -0
- package/dist/chunks/{chunk-RTLZVEMM.js → chunk-TSZ373JT.js} +1 -1
- package/dist/chunks/{fitment-data-6FRZKDD5.js → fitment-data-JL37VB22.js} +1 -1
- package/dist/chunks/{render-client-EKUPEJGE.js → render-client-V36O2I3G.js} +1 -1
- package/dist/index.js +24 -2
- package/package.json +3 -3
- package/dist/chunks/SiteEditorProvider-OPALBCTH.js +0 -1
- package/dist/chunks/chunk-PAMPYH4A.js +0 -16
- /package/dist/chunks/{SectionEditorShell-IJPMIFPV.js → SectionEditorShell-FHSP7IXG.js} +0 -0
- /package/dist/chunks/{chunk-Y5IPDNQI.js → chunk-6ALFNHF5.js} +0 -0
- /package/dist/chunks/{chunk-24TYCSAT.js.LEGAL.txt → chunk-AS47U6BL.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-PAMPYH4A.js.LEGAL.txt → chunk-GB535QZ5.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-WZYE7TP3.js → chunk-NGRN4SN6.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as $x,$b as Zz,$d as gm,$e as R3,$f as Jy,$g as x8,A as u5,Aa as rz,Ab as uz,Ac as Qz,Ad as dy,Af as X9,Ag as mw,Ah as ar,B as Rx,Ba as F9,Bb as dz,Bc as ey,Bd as Ll,Be as U9,Bf as s2,Bg as f8,Bh as Cm,C as Bx,Cb as Xh,Cc as ty,Cd as Z9,Ce as Vl,Cg as Jl,Ch as _w,D as Zx,Da as hl,Db as E9,Dc as yl,Dd as _3,De as Py,Df as Ol,Dg as b8,Dh as sr,E as Dx,Eb as em,Ec as _9,Ed as gy,Ee as j9,Ef as x1,Eh as ie,F as Ox,Fa as ml,Fb as tm,Fc as ay,Fd as vy,Fe as Q2,Ff as q1,Fg as pw,Fh as Iw,G as Wh,Ga as jh,Gc as om,Gd as hm,Gf as Gl,Gg as uw,Gh as Rw,H as Gx,Hb as Lz,Hc as wl,Hd as Al,He as K9,Hf as xm,Hg as dw,Hh as Ca,I as qx,Ib as Az,Ic as sy,Id as fy,Ie as Nl,If as P2,Ig as gw,Ih as Bw,Ja as a6,Jb as Hz,Jc as cy,Jd as by,Je as F,Jh as Zw,Kb as fl,Kc as kl,Kd as Hl,Ke as G,Kh as Dw,L as cl,La as oz,Lb as Fz,Ld as mm,Le as q,Lf as J9,Lh as cr,Ma as p2,Mb as Tz,Md as xy,Me as f1,Mf as Q9,Mh as Ow,Na as Kh,Nb as Pz,Nc as ly,Nd as pm,Ne as F1,Nf as ql,Ng as z5,Nh as Gw,Ob as V9,Od as D9,Oe as V1,Of as a7,Og as vw,Oh as qw,Pa as a1,Pb as Y6,Pc as p,Pd as zy,Pf as Ky,Pg as fw,Qa as T2,Qb as Ez,Qc as p3,Qd as O9,Qf as $y,Ra as iz,Rb as ba,Rd as G9,Re as x,Rf as zm,Rg as y5,Rh as O4,Sd as yy,Se as v5,Sf as Yy,Sg as bw,Sh as Ww,T as Wx,Tb as Vz,Td as wy,Te as Ey,Tg as le,Th as lr,Ud as Fl,Ue as Q1,Uf as Wl,Ug as xw,Uh as ka,V as Ux,Ve as Vy,Vf as Ul,Vg as Ql,Vh as s7,Wb as Nz,Wc as ry,We as _l,Wf as ee,Wg as er,Xb as _z,Xc as g8,Xd as Cy,Xe as t7,Xf as te,Xg as zw,Xh as Uw,Yb as Iz,Yd as um,Ye as $9,Yf as ae,Yg as yw,Yh as km,Z as jx,Zb as Rz,Zc as Ml,Zd as za,Zf as se,Zg as tr,_ as Kx,_b as Bz,_c as oy,_d as dm,_e as s1,_f as Xy,_g as ww,a as yx,aa as Yx,ab as s6,ac as Dz,ad as iy,ae as vm,af as Ny,ag as Qy,ah as X1,b as al,ba as Uh,bb as u8,bc as bl,bd as X2,be as fm,bf as Il,bh as o6,c as wx,ca as Xx,cb as $6,cc as xl,cd as ny,ce as bm,cf as _y,cg as jl,ch as k,d as va,da as Jx,dc as am,dd as a4,de as ky,df as Iy,dg as ew,dh as D0,ea as ll,eb as nz,ec as B2,ed as hy,ee as l6,ef as Rl,eg as tw,eh as Y,f as Cx,fa as rl,fc as _0,fd as im,fe as Tl,ff as Bl,fg as ce,fh as x0,fi as jw,ga as Qx,gc as Oz,gd as J2,ge as Pl,gf as Zl,gh as Cw,gi as Kw,ha as ez,hc as zl,hd as nm,he as My,hf as Ry,hg as aw,hh as kw,hi as Ma,ia as tz,ib as $h,ic as d8,id as I9,ie as Sy,if as By,ih as Mw,j as kx,ja as L9,jb as Yh,jc as sm,jd as my,je as Ly,jf as Zy,jh as Sw,ji as Yw,ka as A9,kd as py,kf as Dy,kg as sw,kh as Lw,la as ol,lb as hz,lc as cm,ld as uy,lf as wa,lh as Aw,li as Qw,m as Mx,mc as lm,mf as Oy,mh as Hw,mi as eC,n as Sx,nc as Gz,nd as s4,nf as f5,ng as Xl,nh as Fw,ni as tC,oc as qz,od as c4,oe as Ay,of as b5,oh as Tw,oi as aC,p as s0,pc as rm,pd as c6,pe as I3,pf as Gy,pg as ow,ph as Pw,q as sl,qc as g5,qd as v8,qe as Hy,qf as qy,qh as Ew,r as qh,ra as R2,rc as Wz,rd as R9,re as El,rf as Wy,rh as Vw,ri as rr,s as Fx,sa as Z1,sb as T9,sc as N9,sd as B9,se as J6,sf as l1,sh as i6,si as w4,t as Tx,tc as Uz,td as X6,te as q9,tf as Uy,th as n6,ti as or,u as Px,uc as jz,ud as Sl,ue as Q6,uf as x5,ug as iw,uh as re,ui as c7,v as Ex,va as O1,vc as Kz,ve as W9,vf as Y9,vg as ym,vh as oe,vi as l4,w as Vx,wa as az,wc as $z,we as Fy,wf as r6,wh as Nw,wi as sC,x as Nx,xa as U1,xb as P9,xc as Yz,xe as Ty,xf as jy,xh as w5,y as _x,ya as G1,yb as mz,yc as Xz,ye as ya,yf as Dl,yg as nw,z as Ix,zb as pz,zc as Jz,zd as y4,ze as e7,zf as v1,zg as hw,zh as wm}from"./chunk-
|
|
1
|
+
import{$ as $x,$b as Zz,$d as gm,$e as R3,$f as Jy,$g as x8,A as u5,Aa as rz,Ab as uz,Ac as Qz,Ad as dy,Af as X9,Ag as mw,Ah as ar,B as Rx,Ba as F9,Bb as dz,Bc as ey,Bd as Ll,Be as U9,Bf as s2,Bg as f8,Bh as Cm,C as Bx,Cb as Xh,Cc as ty,Cd as Z9,Ce as Vl,Cg as Jl,Ch as _w,D as Zx,Da as hl,Db as E9,Dc as yl,Dd as _3,De as Py,Df as Ol,Dg as b8,Dh as sr,E as Dx,Eb as em,Ec as _9,Ed as gy,Ee as j9,Ef as x1,Eh as ie,F as Ox,Fa as ml,Fb as tm,Fc as ay,Fd as vy,Fe as Q2,Ff as q1,Fg as pw,Fh as Iw,G as Wh,Ga as jh,Gc as om,Gd as hm,Gf as Gl,Gg as uw,Gh as Rw,H as Gx,Hb as Lz,Hc as wl,Hd as Al,He as K9,Hf as xm,Hg as dw,Hh as Ca,I as qx,Ib as Az,Ic as sy,Id as fy,Ie as Nl,If as P2,Ig as gw,Ih as Bw,Ja as a6,Jb as Hz,Jc as cy,Jd as by,Je as F,Jh as Zw,Kb as fl,Kc as kl,Kd as Hl,Ke as G,Kh as Dw,L as cl,La as oz,Lb as Fz,Ld as mm,Le as q,Lf as J9,Lh as cr,Ma as p2,Mb as Tz,Md as xy,Me as f1,Mf as Q9,Mh as Ow,Na as Kh,Nb as Pz,Nc as ly,Nd as pm,Ne as F1,Nf as ql,Ng as z5,Nh as Gw,Ob as V9,Od as D9,Oe as V1,Of as a7,Og as vw,Oh as qw,Pa as a1,Pb as Y6,Pc as p,Pd as zy,Pf as Ky,Pg as fw,Qa as T2,Qb as Ez,Qc as p3,Qd as O9,Qf as $y,Ra as iz,Rb as ba,Rd as G9,Re as x,Rf as zm,Rg as y5,Rh as O4,Sd as yy,Se as v5,Sf as Yy,Sg as bw,Sh as Ww,T as Wx,Tb as Vz,Td as wy,Te as Ey,Tg as le,Th as lr,Ud as Fl,Ue as Q1,Uf as Wl,Ug as xw,Uh as ka,V as Ux,Ve as Vy,Vf as Ul,Vg as Ql,Vh as s7,Wb as Nz,Wc as ry,We as _l,Wf as ee,Wg as er,Xb as _z,Xc as g8,Xd as Cy,Xe as t7,Xf as te,Xg as zw,Xh as Uw,Yb as Iz,Yd as um,Ye as $9,Yf as ae,Yg as yw,Yh as km,Z as jx,Zb as Rz,Zc as Ml,Zd as za,Zf as se,Zg as tr,_ as Kx,_b as Bz,_c as oy,_d as dm,_e as s1,_f as Xy,_g as ww,a as yx,aa as Yx,ab as s6,ac as Dz,ad as iy,ae as vm,af as Ny,ag as Qy,ah as X1,b as al,ba as Uh,bb as u8,bc as bl,bd as X2,be as fm,bf as Il,bh as o6,c as wx,ca as Xx,cb as $6,cc as xl,cd as ny,ce as bm,cf as _y,cg as jl,ch as k,d as va,da as Jx,dc as am,dd as a4,de as ky,df as Iy,dg as ew,dh as D0,ea as ll,eb as nz,ec as B2,ed as hy,ee as l6,ef as Rl,eg as tw,eh as Y,f as Cx,fa as rl,fc as _0,fd as im,fe as Tl,ff as Bl,fg as ce,fh as x0,fi as jw,ga as Qx,gc as Oz,gd as J2,ge as Pl,gf as Zl,gh as Cw,gi as Kw,ha as ez,hc as zl,hd as nm,he as My,hf as Ry,hg as aw,hh as kw,hi as Ma,ia as tz,ib as $h,ic as d8,id as I9,ie as Sy,if as By,ih as Mw,j as kx,ja as L9,jb as Yh,jc as sm,jd as my,je as Ly,jf as Zy,jh as Sw,ji as Yw,ka as A9,kd as py,kf as Dy,kg as sw,kh as Lw,la as ol,lb as hz,lc as cm,ld as uy,lf as wa,lh as Aw,li as Qw,m as Mx,mc as lm,mf as Oy,mh as Hw,mi as eC,n as Sx,nc as Gz,nd as s4,nf as f5,ng as Xl,nh as Fw,ni as tC,oc as qz,od as c4,oe as Ay,of as b5,oh as Tw,oi as aC,p as s0,pc as rm,pd as c6,pe as I3,pf as Gy,pg as ow,ph as Pw,q as sl,qc as g5,qd as v8,qe as Hy,qf as qy,qh as Ew,r as qh,ra as R2,rc as Wz,rd as R9,re as El,rf as Wy,rh as Vw,ri as rr,s as Fx,sa as Z1,sb as T9,sc as N9,sd as B9,se as J6,sf as l1,sh as i6,si as w4,t as Tx,tc as Uz,td as X6,te as q9,tf as Uy,th as n6,ti as or,u as Px,uc as jz,ud as Sl,ue as Q6,uf as x5,ug as iw,uh as re,ui as c7,v as Ex,va as O1,vc as Kz,ve as W9,vf as Y9,vg as ym,vh as oe,vi as l4,w as Vx,wa as az,wc as $z,we as Fy,wf as r6,wh as Nw,wi as sC,x as Nx,xa as U1,xb as P9,xc as Yz,xe as Ty,xf as jy,xh as w5,y as _x,ya as G1,yb as mz,yc as Xz,ye as ya,yf as Dl,yg as nw,z as Ix,zb as pz,zc as Jz,zd as y4,ze as e7,zf as v1,zg as hw,zh as wm}from"./chunk-GB535QZ5.js";import{$ as kC,A as ge,B as dr,C as bC,D as ve,E as xC,H as gr,I as u0,K as Lm,L as vr,M as r4,N as fr,R as h7,S as zC,T as yC,U as wC,V as fe,W as be,X as xe,Y as La,Z as CC,_ as Am,a as mC,aa as MC,ba as SC,ca as y8,da as D2,e as o7,ea as w8,f as nr,fa as LC,g as pC,ga as Hm,h as uC,i as Mm,j as dC,k as gC,l as hr,m as me,n as Sm,p as Z2,q as i7,r as mr,s as pe,t as ue,u as pr,v as n7,w as ur,x as vC,y as fC,z as de}from"./chunk-CDVN6WLL.js";import{A as J1,d as Sa,e as l7,g as i2,h as ir,i as G4,j as cC,k as lC,l as rC,m as oC,n as r7,o as iC,p as nC,v as ne,w as v0,x as z8,y as hC,z as he}from"./chunk-TSZ373JT.js";import{$ as bz,D as gz,Da as Sz,G as vz,Ga as xa,Ha as Cl,I as fa,J as pl,L as ul,La as N3,Ma as Kl,O as dl,Oa as $l,Q as gl,Qa as cw,R as Jh,Ra as lw,Sa as rw,Ta as Yl,X as vl,Y as fz,a as V3,aa as xz,b as Lx,c as L1,ca as Qh,d as sz,i as d5,j as H9,k as il,l as cz,m as lz,pa as zz,q as nl,qa as yz,ra as wz,sa as Cz,va as kz,wa as Mz}from"./chunk-6ALFNHF5.js";import{c as ga,d as bx,e as xx,g as zx,i as F2,j as Ax,k as S9,l as Hx,m as t4,q as $w,r as Xw,s as e3,t as Jw}from"./chunk-NGRN4SN6.js";import{a as hG,b as mG}from"./chunk-Y6SLVHK3.js";var FP=hG((rT1,HP)=>{"use strict";function YQ(e,t){this.v=e,this.k=t}function hP(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,s=Array(t);a<t;a++)s[a]=e[a];return s}function XQ(e){if(Array.isArray(e))return e}function JQ(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var s,c,l,r,o=[],i=!0,n=!1;try{if(l=(a=a.call(e)).next,t===0){if(Object(a)!==a)return;i=!1}else for(;!(i=(s=l.call(a)).done)&&(o.push(s.value),o.length!==t);i=!0);}catch(h){n=!0,c=h}finally{try{if(!i&&a.return!=null&&(r=a.return(),Object(r)!==r))return}finally{if(n)throw c}}return o}}function QQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e11(e,t){return XQ(e)||JQ(e,t)||t11(e,t)||QQ()}function t11(e,t){if(e){if(typeof e=="string")return hP(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?hP(e,t):void 0}}function Hi(e){var t,a;function s(l,r){try{var o=e[l](r),i=o.value,n=i instanceof YQ;Promise.resolve(n?i.v:i).then(function(h){if(n){var m=l==="return"&&i.k?l:"next";if(!i.k||h.done)return s(m,h);h=e[m](h).value}c(!!o.done,h)},function(h){s("throw",h)})}catch(h){c(2,h)}}function c(l,r){l===2?t.reject(r):t.resolve({value:r,done:l}),(t=t.next)?s(t.key,t.arg):a=null}this._invoke=function(l,r){return new Promise(function(o,i){var n={key:l,arg:r,resolve:o,reject:i,next:null};a?a=a.next=n:(t=a=n,s(l,r))})},typeof e.return!="function"&&(this.return=void 0)}Hi.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Hi.prototype.next=function(e){return this._invoke("next",e)},Hi.prototype.throw=function(e){return this._invoke("throw",e)},Hi.prototype.return=function(e){return this._invoke("return",e)};var MP=Object.entries,mP=Object.setPrototypeOf,a11=Object.isFrozen,s11=Object.getPrototypeOf,c11=Object.getOwnPropertyDescriptor,_2=Object.freeze,W2=Object.seal,vt=Object.create,SP=typeof Reflect<"u"&&Reflect,_d=SP.apply,Id=SP.construct;_2||(_2=function(t){return t});W2||(W2=function(t){return t});_d||(_d=function(t,a){for(var s=arguments.length,c=new Array(s>2?s-2:0),l=2;l<s;l++)c[l-2]=arguments[l];return t.apply(a,c)});Id||(Id=function(t){for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];return new t(...s)});var $8=S2(Array.prototype.forEach);Array.prototype.indexOf;var l11=S2(Array.prototype.lastIndexOf),pP=S2(Array.prototype.pop),Fs=S2(Array.prototype.push);Array.prototype.slice;var r11=S2(Array.prototype.splice),ft=Array.isArray,Es=S2(String.prototype.toLowerCase),Fd=S2(String.prototype.toString),uP=S2(String.prototype.match),Ts=S2(String.prototype.replace),dP=S2(String.prototype.indexOf),o11=S2(String.prototype.trim),i11=S2(Number.prototype.toString),n11=S2(Boolean.prototype.toString),gP=typeof BigInt>"u"?null:S2(BigInt.prototype.toString),vP=typeof Symbol>"u"?null:S2(Symbol.prototype.toString),K3=S2(Object.prototype.hasOwnProperty),Ps=S2(Object.prototype.toString),v3=S2(RegExp.prototype.test),_7=h11(TypeError);function S2(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];return _d(e,t,s)}}function h11(e){return function(){for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return Id(e,a)}}function S0(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Es;if(mP&&mP(e,null),!ft(t))return e;let s=t.length;for(;s--;){let c=t[s];if(typeof c=="string"){let l=a(c);l!==c&&(a11(t)||(t[s]=l),c=l)}e[c]=!0}return e}function m11(e){for(let t=0;t<e.length;t++)K3(e,t)||(e[t]=null);return e}function u4(e){let t=vt(null);for(let s of MP(e)){var a=e11(s,2);let c=a[0],l=a[1];K3(e,c)&&(ft(l)?t[c]=m11(l):l&&typeof l=="object"&&l.constructor===Object?t[c]=u4(l):t[c]=l)}return t}function p11(e){switch(typeof e){case"string":return e;case"number":return i11(e);case"boolean":return n11(e);case"bigint":return gP?gP(e):"0";case"symbol":return vP?vP(e):"Symbol()";case"undefined":return Ps(e);case"function":case"object":{if(e===null)return Ps(e);let t=e,a=V4(t,"toString");if(typeof a=="function"){let s=a(t);return typeof s=="string"?s:Ps(s)}return Ps(e)}default:return Ps(e)}}function V4(e,t){for(;e!==null;){let s=c11(e,t);if(s){if(s.get)return S2(s.get);if(typeof s.value=="function")return S2(s.value)}e=s11(e)}function a(){return null}return a}function u11(e){try{return v3(e,""),!0}catch{return!1}}var fP=_2(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Td=_2(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Pd=_2(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),d11=_2(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ed=_2(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),g11=_2(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),bP=_2(["#text"]),xP=_2(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Vd=_2(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),zP=_2(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Fi=_2(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),v11=W2(/{{[\w\W]*|^[\w\W]*}}/g),f11=W2(/<%[\w\W]*|^[\w\W]*%>/g),b11=W2(/\${[\w\W]*/g),x11=W2(/^data-[\-\w.\u00B7-\uFFFF]+$/),z11=W2(/^aria-[\-\w]+$/),yP=W2(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),y11=W2(/^(?:\w+script|data):/i),w11=W2(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),C11=W2(/^html$/i),k11=W2(/^[a-z][.\w]*(-[.\w]+)+$/i),wP=W2(/<[/\w!]/g),CP=W2(/<[/\w]/g),M11=W2(/<\/no(script|embed|frames)/i),S11=W2(/\/>/i),p4={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},LP=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],L11=_2(S0({},LP)),A11=(function(){let e={};return $8(LP,t=>{e[t]=W2(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),_2(e)})(),H11=function(){return typeof window>"u"?null:window},F11=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let s=null,c="data-tt-policy-suffix";a&&a.hasAttribute(c)&&(s=a.getAttribute(c));let l="dompurify"+(s?"#"+s:"");try{return t.createPolicy(l,{createHTML(r){return r},createScriptURL(r){return r}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}},kP=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},I7=function(t,a,s,c){return K3(t,a)&&ft(t[a])?S0(c.base?u4(c.base):{},t[a],c.transform):s},Nd=function(t,a,s){let c=K3(t,a)?t[a]:void 0;return c&&typeof c=="object"?u4(c):s()};function AP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:H11(),t=r1=>AP(r1);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==p4.document||!e.Element)return t.isSupported=!1,t;let a=e.document,s=a,c=s.currentScript;e.DocumentFragment;let l=e.HTMLTemplateElement,r=e.Node,o=e.Element,i=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let n=e.DOMParser,h=e.trustedTypes,m=o.prototype,u=V4(m,"cloneNode"),d=V4(m,"remove"),v=V4(m,"removeAttributeNode"),g=V4(m,"nextSibling"),b=V4(m,"childNodes"),f=V4(m,"parentNode"),w=V4(m,"shadowRoot"),z=V4(m,"attributes"),M=r&&r.prototype?V4(r.prototype,"nodeType"):null,S=r&&r.prototype?V4(r.prototype,"nodeName"):null,H=r&&r.prototype?V4(r.prototype,"ownerDocument"):null,I=function(C){return M?M(C):C.nodeType},E=function(C){return S?S(C):C.nodeName};if(typeof l=="function"){let r1=a.createElement("template");r1.content&&r1.content.ownerDocument&&(a=r1.content.ownerDocument)}let O,T="",P,N=!1,D=0,Z=function(){if(D>0)throw _7('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},_=function(C){Z(),D++;try{return O.createHTML(C)}finally{D--}},U=function(C){Z(),D++;try{return O.createScriptURL(C)}finally{D--}},V=function(){return N||(P=F11(h,c),N=!0),P},J=a,j=J.implementation,W=J.createNodeIterator,n1=J.createDocumentFragment,z1=J.getElementsByTagName,$=s.importNode,c1=kP();t.isSupported=typeof MP=="function"&&typeof f=="function"&&j&&j.createHTMLDocument!==void 0;let g1=v11,K=f11,u1=b11,b1=x11,T0=z11,P0=y11,H1=w11,c0=k11,l0=yP,Y1=null,y2=S0({},[...fP,...Td,...Pd,...Ed,...bP]),a0=null,H2=S0({},[...xP,...Vd,...zP,...Fi]),g0=Object.seal(vt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),p1=null,W1=null,i0=Object.seal(vt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),E0=!0,w0=!0,o2=!1,Q=!0,k1=!1,m0=!0,N0=!1,e6=!1,O6=null,G6=null,q6=!1,m5=!1,P3=!1,W6=!1,m8=!0,m3=!1,y9="user-content-",E3=!0,J3=!1,k3={},Q3=null,t6=S0({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),b4=null,x4=S0({},["audio","video","img","source","image","track"]),D4=null,U6=S0({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),S1="http://www.w3.org/1998/Math/MathML",r0="http://www.w3.org/2000/svg",M1="http://www.w3.org/1999/xhtml",w2=M1,d2=!1,j6=null,Ih=S0({},[S1,r0,M1],Fd),sx=_2(["mi","mo","mn","ms","mtext"]),Rh=S0({},sx),cx=_2(["annotation-xml"]),Bh=S0({},cx),$O=S0({},["title","style","font","a","script"]),ua=null,YO=["application/xhtml+xml","text/html"],XO="text/html",g2=null,w9=null,JO=a.createElement("form"),lx=function(C){return C instanceof RegExp||C instanceof Function},Zh=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(w9&&w9===C)return;(!C||typeof C!="object")&&(C={}),C=u4(C),ua=YO.indexOf(C.PARSER_MEDIA_TYPE)===-1?XO:C.PARSER_MEDIA_TYPE,g2=ua==="application/xhtml+xml"?Fd:Es,Y1=I7(C,"ALLOWED_TAGS",y2,{transform:g2}),a0=I7(C,"ALLOWED_ATTR",H2,{transform:g2}),j6=I7(C,"ALLOWED_NAMESPACES",Ih,{transform:Fd}),D4=I7(C,"ADD_URI_SAFE_ATTR",U6,{transform:g2,base:U6}),b4=I7(C,"ADD_DATA_URI_TAGS",x4,{transform:g2,base:x4}),Q3=I7(C,"FORBID_CONTENTS",t6,{transform:g2}),p1=I7(C,"FORBID_TAGS",u4({}),{transform:g2}),W1=I7(C,"FORBID_ATTR",u4({}),{transform:g2}),k3=K3(C,"USE_PROFILES")?C.USE_PROFILES&&typeof C.USE_PROFILES=="object"?u4(C.USE_PROFILES):C.USE_PROFILES:!1,E0=C.ALLOW_ARIA_ATTR!==!1,w0=C.ALLOW_DATA_ATTR!==!1,o2=C.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k1=C.SAFE_FOR_TEMPLATES||!1,m0=C.SAFE_FOR_XML!==!1,N0=C.WHOLE_DOCUMENT||!1,m5=C.RETURN_DOM||!1,P3=C.RETURN_DOM_FRAGMENT||!1,W6=C.RETURN_TRUSTED_TYPE||!1,q6=C.FORCE_BODY||!1,m8=C.SANITIZE_DOM!==!1,m3=C.SANITIZE_NAMED_PROPS||!1,E3=C.KEEP_CONTENT!==!1,J3=C.IN_PLACE||!1,l0=u11(C.ALLOWED_URI_REGEXP)?C.ALLOWED_URI_REGEXP:yP,w2=typeof C.NAMESPACE=="string"?C.NAMESPACE:M1,Rh=Nd(C,"MATHML_TEXT_INTEGRATION_POINTS",()=>S0({},sx)),Bh=Nd(C,"HTML_INTEGRATION_POINTS",()=>S0({},cx));let R=Nd(C,"CUSTOM_ELEMENT_HANDLING",()=>vt(null));if(g0=vt(null),K3(R,"tagNameCheck")&&lx(R.tagNameCheck)&&(g0.tagNameCheck=R.tagNameCheck),K3(R,"attributeNameCheck")&&lx(R.attributeNameCheck)&&(g0.attributeNameCheck=R.attributeNameCheck),K3(R,"allowCustomizedBuiltInElements")&&typeof R.allowCustomizedBuiltInElements=="boolean"&&(g0.allowCustomizedBuiltInElements=R.allowCustomizedBuiltInElements),W2(g0),k1&&(w0=!1),P3&&(m5=!0),k3&&(Y1=S0({},bP),a0=vt(null),k3.html===!0&&(S0(Y1,fP),S0(a0,xP)),k3.svg===!0&&(S0(Y1,Td),S0(a0,Vd),S0(a0,Fi)),k3.svgFilters===!0&&(S0(Y1,Pd),S0(a0,Vd),S0(a0,Fi)),k3.mathMl===!0&&(S0(Y1,Ed),S0(a0,zP),S0(a0,Fi))),i0.tagCheck=null,i0.attributeCheck=null,K3(C,"ADD_TAGS")&&(typeof C.ADD_TAGS=="function"?i0.tagCheck=C.ADD_TAGS:ft(C.ADD_TAGS)&&(Y1===y2&&(Y1=u4(Y1)),S0(Y1,C.ADD_TAGS,g2))),K3(C,"ADD_ATTR")&&(typeof C.ADD_ATTR=="function"?i0.attributeCheck=C.ADD_ATTR:ft(C.ADD_ATTR)&&(a0===H2&&(a0=u4(a0)),S0(a0,C.ADD_ATTR,g2))),K3(C,"ADD_FORBID_CONTENTS")&&ft(C.ADD_FORBID_CONTENTS)&&(Q3===t6&&(Q3=u4(Q3)),S0(Q3,C.ADD_FORBID_CONTENTS,g2)),E3&&(Y1["#text"]=!0),N0&&S0(Y1,["html","head","body"]),Y1.table&&(S0(Y1,["tbody"]),delete p1.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw _7('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw _7('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let t1=O;O=C.TRUSTED_TYPES_POLICY;try{T=_("")}catch(i1){throw O=t1,i1}}else C.TRUSTED_TYPES_POLICY===null?(O=void 0,T=""):(O===void 0&&(O=V()),O&&typeof T=="string"&&(T=_("")));_2&&_2(C),w9=C},rx=S0({},[...Td,...Pd,...d11]),ox=S0({},[...Ed,...g11]),QO=function(C,R,t1){return R.namespaceURI===M1?C==="svg":R.namespaceURI===S1?C==="svg"&&(t1==="annotation-xml"||Rh[t1]):!!rx[C]},eG=function(C,R,t1){return R.namespaceURI===M1?C==="math":R.namespaceURI===r0?C==="math"&&Bh[t1]:!!ox[C]},tG=function(C,R,t1){return R.namespaceURI===r0&&!Bh[t1]||R.namespaceURI===S1&&!Rh[t1]?!1:!ox[C]&&($O[C]||!rx[C])},aG=function(C){let R=f(C);(!R||!R.tagName)&&(R={namespaceURI:w2,tagName:"template"});let t1=Es(C.tagName),i1=Es(R.tagName);return j6[C.namespaceURI]?C.namespaceURI===r0?QO(t1,R,i1):C.namespaceURI===S1?eG(t1,R,i1):C.namespaceURI===M1?tG(t1,R,i1):!!(ua==="application/xhtml+xml"&&j6[C.namespaceURI]):!1},K6=function(C){Fs(t.removed,{element:C});try{f(C).removeChild(C)}catch{if(d(C),!f(C))throw _7("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ix=function(C,R,t1){try{v(C,R)}catch{try{C.removeAttribute(t1)}catch{}}},Yc=function(C){Xc(C);let R=b(C);if(R){let i1=[];$8(R,R1=>{Fs(i1,R1)}),$8(i1,R1=>{try{d(R1)}catch{}})}let t1=z(C);if(t1)for(let i1=t1.length-1;i1>=0;--i1){let R1=t1[i1],p0=R1&&R1.name;typeof p0=="string"&&ix(C,R1,p0)}},p8=function(C,R,t1){if(!t1)try{t1=R.getAttributeNode(C)}catch{t1=null}Fs(t.removed,{attribute:t1||null,from:R});try{t1?v(R,t1):R.removeAttribute(C)}catch{try{R.removeAttribute(C)}catch{}}if(C==="is")if(m5||P3)try{K6(R)}catch{}else try{R.setAttribute(C,"")}catch{}},sG=function(C){let R=z(C);if(R)for(let t1=R.length-1;t1>=0;--t1){let i1=R[t1],R1=i1&&i1.name;typeof R1!="string"||a0[g2(R1)]||ix(C,i1,R1)}},Xc=function(C){let R=[C];for(;R.length>0;){let t1=R.pop();I(t1)===p4.element&&sG(t1);let i1=b(t1);if(i1)for(let R1=i1.length-1;R1>=0;--R1)R.push(i1[R1])}},nx=function(C,R){return m0?C==="patchsrc"?!0:C==="for"&&R!=="label"&&R!=="output":!1},cG=function(C){if(!m0)return;let R=[C];for(;R.length>0;){let t1=R.pop(),i1=I(t1);if(i1===p4.processingInstruction||i1===p4.comment&&v3(CP,t1.data)){try{d(t1)}catch{}continue}if(i1===p4.element){let p0=t1,b0=g2(E(t1));try{p0.hasAttribute&&p0.hasAttribute("patchsrc")&&p0.removeAttribute("patchsrc"),p0.hasAttribute&&p0.hasAttribute("for")&&nx("for",b0)&&p0.removeAttribute("for")}catch{}}let R1=b(t1);if(R1)for(let p0=R1.length-1;p0>=0;--p0)R.push(R1[p0])}},hx=function(C){let R=null,t1=null;if(q6)C="<remove></remove>"+C;else{let p0=uP(C,/^[\r\n\t ]+/);t1=p0&&p0[0]}ua==="application/xhtml+xml"&&w2===M1&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");let i1=O?_(C):C;if(w2===M1)try{R=new n().parseFromString(i1,ua)}catch{}if(!R||!R.documentElement){R=j.createDocument(w2,"template",null);try{R.documentElement.innerHTML=d2?T:i1}catch{}}let R1=R.body||R.documentElement;return C&&t1&&R1.insertBefore(a.createTextNode(t1),R1.childNodes[0]||null),w2===M1?z1.call(R,N0?"html":"body")[0]:N0?R.documentElement:R1},mx=function(C){let R=H?H(C):C.ownerDocument;return W.call(R||C,C,i.SHOW_ELEMENT|i.SHOW_COMMENT|i.SHOW_TEXT|i.SHOW_PROCESSING_INSTRUCTION|i.SHOW_CDATA_SECTION,null)},Jc=function(C){return C=Ts(C,g1," "),C=Ts(C,K," "),C=Ts(C,u1," "),C},Dh=function(C){var R;C.normalize();let t1=H?H(C):C.ownerDocument,i1=W.call(t1||C,C,i.SHOW_TEXT|i.SHOW_COMMENT|i.SHOW_CDATA_SECTION|i.SHOW_PROCESSING_INSTRUCTION,null),R1=i1.nextNode();for(;R1;)R1.data=Jc(R1.data),R1=i1.nextNode();let p0=(R=C.querySelectorAll)===null||R===void 0?void 0:R.call(C,"template");p0&&$8(p0,b0=>{C9(b0.content)&&Dh(b0.content)})},Qc=function(C){let R=S?S(C):null;return typeof R!="string"||g2(R)!=="form"?!1:typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||C.attributes!==z(C)||typeof C.removeAttribute!="function"||typeof C.removeAttributeNode!="function"||typeof C.getAttributeNode!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function"||C.nodeType!==M(C)||C.childNodes!==b(C)},C9=function(C){if(!M||typeof C!="object"||C===null)return!1;try{return M(C)===p4.documentFragment}catch{return!1}},da=function(C){if(!M||typeof C!="object"||C===null)return!1;try{return typeof M(C)=="number"}catch{return!1}};function p5(r1,C,R){r1.length!==0&&$8(r1,t1=>{t1.call(t,C,R,w9)})}let lG=function(C,R){return!!(m0&&C.hasChildNodes()&&!da(C.firstElementChild)&&v3(wP,C.textContent)&&v3(wP,C.innerHTML)||m0&&C.namespaceURI===M1&&L11[R]&&(da(C.firstElementChild)||typeof C.textContent=="string"&&v3(A11[R],C.textContent))||C.nodeType===p4.processingInstruction||m0&&C.nodeType===p4.comment&&v3(CP,C.data))},el=function(C,R){if(C instanceof RegExp)return v3(C,R);if(C instanceof Function){for(var t1=arguments.length,i1=new Array(t1>2?t1-2:0),R1=2;R1<t1;R1++)i1[R1-2]=arguments[R1];return!!C(R,...i1)}return!1},rG=function(C,R,t1){if(!p1[R]&&gx(R)&&el(g0.tagNameCheck,R))return!1;if(E3&&!Q3[R]){let i1=f(C),R1=b(C);if(R1&&i1){let p0=R1.length;for(let b0=p0-1;b0>=0;--b0){let m2=C===t1?u(R1[b0],!0):R1[b0];i1.insertBefore(m2,g(C))}}}return K6(C),!0},px=function(C,R,t1,i1){return C.length===0?R:R===t1||R===i1?u4(R):R},k9=function(C,R){return C===R||f(C)!==null?!1:(J3&&Xc(C),!0)},ux=function(C,R){if(p5(c1.beforeSanitizeElements,C,null),k9(C,R))return!0;if(Qc(C))return K6(C),!0;let t1=g2(E(C));if(Y1=px(c1.uponSanitizeElement,Y1,y2,O6),p5(c1.uponSanitizeElement,C,{tagName:t1,allowedTags:Y1}),k9(C,R))return!0;if(lG(C,t1))return K6(C),!0;if(p1[t1]||!(i0.tagCheck instanceof Function&&i0.tagCheck(t1))&&!Y1[t1]){let i1=rG(C,t1,R);return i1===!1&&(p5(c1.afterSanitizeElements,C,null),k9(C,R))?!0:i1}if(I(C)===p4.element&&!aG(C)||(t1==="noscript"||t1==="noembed"||t1==="noframes")&&v3(M11,C.innerHTML))return K6(C),!0;if(k1&&C.nodeType===p4.text){let i1=Jc(C.textContent);C.textContent!==i1&&(Fs(t.removed,{element:C.cloneNode()}),C.textContent=i1)}return p5(c1.afterSanitizeElements,C,null),k9(C,R)},dx=function(C,R,t1){if(W1[R]||nx(R,C)||m8&&(R==="id"||R==="name")&&(t1 in a||t1 in JO))return!1;let i1=a0[R]||i0.attributeCheck instanceof Function&&i0.attributeCheck(R,C);return w0&&v3(b1,R)||E0&&v3(T0,R)?!0:i1?D4[R]||v3(l0,Ts(t1,H1,""))||(R==="src"||R==="xlink:href"||R==="href")&&C!=="script"&&dP(t1,"data:")===0&&b4[C]||o2&&!v3(P0,Ts(t1,H1,""))?!0:!t1:gx(C)&&el(g0.tagNameCheck,C)&&el(g0.attributeNameCheck,R,C)||R==="is"&&g0.allowCustomizedBuiltInElements&&el(g0.tagNameCheck,t1)},oG=S0({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),gx=function(C){return!oG[Es(C)]&&v3(c0,C)},iG=function(C,R,t1,i1){if(O&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!t1)switch(h.getAttributeType(C,R)){case"TrustedHTML":return _(i1);case"TrustedScriptURL":return U(i1)}return i1},nG=function(C,R,t1,i1){try{return t1?C.setAttributeNS(t1,R,i1):C.setAttribute(R,i1),Qc(C)?(K6(C),!1):!0}catch{return p8(R,C),!1}},vx=function(C,R){if(p5(c1.beforeSanitizeAttributes,C,null),k9(C,R))return;let t1=C.attributes;if(!t1||Qc(C))return;a0=px(c1.uponSanitizeAttribute,a0,H2,G6);let i1={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:a0,forceKeepAttr:void 0},R1=t1.length,p0=g2(C.nodeName);for(;R1--;){let b0=t1[R1],m2=b0.name,z4=b0.namespaceURI,e4=b0.value,M9=g2(m2),Gh=e4,M3=m2==="value"?Gh:o11(Gh),fx=!1;if(i1.attrName=M9,i1.attrValue=M3,i1.keepAttr=!0,i1.forceKeepAttr=void 0,p5(c1.uponSanitizeAttribute,C,i1),M3=i1.attrValue,m3&&(M9==="id"||M9==="name")&&dP(M3,y9)!==0&&(p8(m2,C,b0),M3=y9+M3,fx=!0),m0&&v3(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,M3)){p8(m2,C,b0);continue}if(M9==="attributename"&&uP(M3,"href")){p8(m2,C,b0);continue}if(!i1.forceKeepAttr){if(!i1.keepAttr){p8(m2,C,b0);continue}if(!Q&&v3(S11,M3)){p8(m2,C,b0);continue}if(k1&&(M3=Jc(M3)),!dx(p0,M9,M3)){p8(m2,C,b0);continue}M3=iG(p0,M9,z4,M3),M3!==Gh&&nG(C,m2,z4,M3)&&fx&&pP(t.removed)}}p5(c1.afterSanitizeAttributes,C,null),k9(C,R)},tl=function(C){let R=null,t1=mx(C);for(p5(c1.beforeSanitizeShadowDOM,C,null);R=t1.nextNode();)if(p5(c1.uponSanitizeShadowNode,R,null),ux(R,C),vx(R,C),C9(R.content)&&tl(R.content),I(R)===p4.element){let i1=w(R);C9(i1)&&(Oh(i1),tl(i1))}p5(c1.afterSanitizeShadowDOM,C,null)},Oh=function(C){let R=[{node:C,shadow:null}];for(;R.length>0;){let t1=R.pop();if(t1.shadow){tl(t1.shadow);continue}let i1=t1.node,R1=I(i1)===p4.element,p0=b(i1);if(p0)for(let b0=p0.length-1;b0>=0;--b0)R.push({node:p0[b0],shadow:null});if(R1){let b0=S?S(i1):null;if(typeof b0=="string"&&g2(b0)==="template"){let m2=i1.content;C9(m2)&&R.push({node:m2,shadow:null})}}if(R1){let b0=w(i1);C9(b0)&&R.push({node:null,shadow:b0},{node:b0,shadow:null})}}};return t.sanitize=function(r1){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=null,t1=null,i1=null,R1=null;if(d2=!r1,d2&&(r1="<!-->"),typeof r1!="string"&&!da(r1)&&(r1=p11(r1),typeof r1!="string"))throw _7("dirty is not a string, aborting");if(!t.isSupported)return r1;e6?(Y1=O6,a0=G6):Zh(C),(c1.uponSanitizeElement.length>0||c1.uponSanitizeAttribute.length>0)&&(Y1=u4(Y1)),c1.uponSanitizeAttribute.length>0&&(a0=u4(a0)),t.removed=[];let p0=J3&&typeof r1!="string"&&da(r1);if(p0){cG(r1);let z4=E(r1);if(typeof z4=="string"){let e4=g2(z4);if(!Y1[e4]||p1[e4])throw Yc(r1),_7("root node is forbidden and cannot be sanitized in-place")}if(Qc(r1))throw Yc(r1),_7("root node is clobbered and cannot be sanitized in-place");try{Oh(r1)}catch(e4){throw Yc(r1),e4}}else if(da(r1))R=hx("<!---->"),t1=R.ownerDocument.importNode(r1,!0),t1.nodeType===p4.element&&t1.nodeName==="BODY"||t1.nodeName==="HTML"?R=t1:R.appendChild(t1),Oh(R);else{if(!m5&&!k1&&!N0&&r1.indexOf("<")===-1)return O&&W6?_(r1):r1;if(R=hx(r1),!R)return m5?null:W6?T:""}R&&q6&&K6(R.firstChild);let b0=p0?r1:R;try{let z4=mx(b0);for(;i1=z4.nextNode();)ux(i1,b0),vx(i1,b0),C9(i1.content)&&tl(i1.content)}catch(z4){throw p0&&(Yc(r1),$8(t.removed,e4=>{e4.element&&Xc(e4.element)})),z4}if(p0){let z4=!1;if($8(t.removed,e4=>{e4.element&&(e4.element===r1&&(z4=!0),Xc(e4.element))}),z4)throw _7("a node selected for removal could not be safely returned; refusing to sanitize in place");return k1&&Dh(r1),r1}if(m5){if(k1&&Dh(R),P3)for(R1=n1.call(R.ownerDocument);R.firstChild;)R1.appendChild(R.firstChild);else R1=R;return(a0.shadowroot||a0.shadowrootmode)&&(R1=$.call(s,R1,!0)),R1}let m2=N0?R.outerHTML:R.innerHTML;return N0&&Y1["!doctype"]&&R.ownerDocument&&R.ownerDocument.doctype&&R.ownerDocument.doctype.name&&v3(C11,R.ownerDocument.doctype.name)&&(m2="<!DOCTYPE "+R.ownerDocument.doctype.name+`>
|
|
3
3
|
`+m2),k1&&(m2=Jc(m2)),O&&W6?_(m2):m2},t.setConfig=function(){let r1=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zh(r1),e6=!0,O6=Y1,G6=a0},t.clearConfig=function(){w9=null,e6=!1,O6=null,G6=null,O=P,T=""},t.isValidAttribute=function(r1,C,R){w9||Zh({});let t1=g2(r1),i1=g2(C);return dx(t1,i1,R)},t.addHook=function(r1,C){typeof C=="function"&&K3(c1,r1)&&Fs(c1[r1],C)},t.removeHook=function(r1,C){if(K3(c1,r1)){if(C!==void 0){let R=l11(c1[r1],C);return R===-1?void 0:r11(c1[r1],R,1)[0]}return pP(c1[r1])}},t.removeHooks=function(r1){K3(c1,r1)&&(c1[r1]=[])},t.removeAllHooks=function(){c1=kP()},t}var T11=AP();HP.exports=T11});import{readLockHolder as JG}from"efficient-easel/edit-lock";var Tm="/api/storefront/section-templates/",Fm=e=>`${Tm}${encodeURIComponent(e)}/`,Pm=e=>e.node!=null;function br(e){if(!Pm(e))throw new Error(`Section template ${e.id} has no design`);return e}var Vm=(e,t)=>e instanceof G4&&e.status===t;function pG(e){return{list:()=>he(`${Tm}?no_page=true`,{token:e()}).then(t=>Array.isArray(t)?t:t.results??[]),get:t=>he(Fm(t),{token:e()}).catch(a=>{if(Vm(a,404))return null;throw a}),create:t=>he(Tm,{method:"POST",token:e(),body:JSON.stringify(t)}),patch:(t,a)=>he(Fm(t),{method:"PATCH",token:e(),body:JSON.stringify(a)}),remove:t=>he(Fm(t),{method:"DELETE",token:e()})}}var Em="sf:section-templates",AC=`${Em}.imported`,uG="Untitled section",dG=160,xr=e=>(typeof e=="string"?e.trim().slice(0,dG):"")||uG;function gG(e){try{let t=JSON.parse(e);return Array.isArray(t)?t.filter(a=>{let s=a?.node;return typeof a?.id=="string"&&typeof s?.type=="string"}):[]}catch{return[]}}async function vG(e,t=e3){let a={created:0,seeded:0,left:0,skipped:0,kept:!1},s=t.getItem(Em);if(s===null)return a;for(let c of gG(s))try{let l=await e.get(c.id);if(l)l.node==null?(await e.patch(c.id,{node:c.node}),a.seeded+=1):a.left+=1;else try{await e.create({id:c.id,name:xr(c.name),node:c.node}),a.created+=1}catch(r){if(!Vm(r,400))throw r;a.skipped+=1}}catch{return{...a,kept:!0}}return t.setItem(AC,s),t.getItem(AC)===s&&t.removeItem(Em),a}var zr=class{constructor(t,a=e3){this.readToken=t;this.storage=a;this.imported=null;this.http=pG(t)}ready(){return this.imported?this.imported:this.readToken()?(this.imported=vG(this.http,this.storage).catch(()=>{}),this.imported):Promise.resolve()}async list(){return await this.ready(),(await this.http.list()).filter(Pm)}async get(t){return await this.ready(),this.http.get(t)}async ensure(t,a,s){await this.ready();let c=async r=>r?Pm(r)?r:br(await this.http.patch(t,{node:s})):null,l=await c(await this.http.get(t));if(l)return l;try{return br(await this.http.create({id:t,name:xr(a),node:s}))}catch(r){if(Vm(r,400)){let o=await c(await this.http.get(t));if(o)return o}throw r}}async save(t,a){return await this.ready(),br(await this.http.create({name:xr(t),node:a}))}async update(t,a){return await this.ready(),br(await this.http.patch(t,{node:a}))}async rename(t,a){return await this.ready(),this.http.patch(t,{name:xr(a)})}async remove(t){await this.ready(),await this.http.remove(t)}};var HC={"PATCH /api/activity/note-media/{id}/":{file:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"}},"PATCH /api/activity/notes/{id}/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"PATCH /api/auth/entities/{id}/":{logo:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0},logo_on_dark:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0},logo_square:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0}},"PATCH /api/auth/me/":{avatar:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"avatar",reencoded_image:!0}},"PATCH /api/auth/users/{id}/":{avatar:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"avatar",reencoded_image:!0}},"PATCH /api/bug-reports/{id}/":{image:{accept:"image/*",hint:"PNG \xB7 JPG",max_bytes:26214400,max_files:1,policy:"feedback_image",reencoded_image:!0},screenshot:{accept:"image/*",hint:"PNG \xB7 JPG",max_bytes:26214400,max_files:1,policy:"feedback_image",reencoded_image:!0}},"PATCH /api/employee-documents/{id}/":{file:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"PATCH /api/goods-issue-files/{id}/":{file:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"PATCH /api/goods-issues/{id}/":{label:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"PATCH /api/goods-issues/{id}/carton-groups/{group_id}/":{label:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"PATCH /api/goods-issues/{id}/pallets/{pallet_id}/":{label:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"PATCH /api/goods-issues/{id}/update_status/":{label:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"PATCH /api/platform/brand-catalog/brands/{id}/":{logo:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0}},"PATCH /api/products/brands/{id}/":{logo:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0}},"PATCH /api/products/design-images/{id}/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"PATCH /api/products/dfm-log-files/{id}/":{file:{accept:".stp,.step,.dxf,.pdf,application/pdf,application/step,model/step,application/dxf,image/vnd.dxf",hint:"STP \xB7 STEP \xB7 DXF \xB7 PDF",max_bytes:536870912,max_files:1,policy:"dfm_file"}},"PATCH /api/products/moulds/{id}/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"PATCH /api/products/project-images/{id}/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"PATCH /api/products/proposals/{id}/":{file:{accept:".pdf,application/pdf",hint:"PDF",max_bytes:52428800,max_files:1,policy:"proposal_pdf"}},"PATCH /api/products/weight-logs/{id}/":{image:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"},photo:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"}},"PATCH /api/purchase-invoices/files/{id}/":{file:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"PATCH /api/purchase-orders/files/{id}/":{file:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"PATCH /api/qc-reports/media/{id}/":{file:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"}},"PATCH /api/recruitment/candidates/{id}/":{cv:{accept:".pdf,.doc,.docx,.txt,.md,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain,text/markdown",hint:"PDF \xB7 DOC \xB7 DOCX \xB7 TXT",max_bytes:10485760,max_files:1,policy:"cv"}},"PATCH /api/reimbursements/files/{id}/":{file:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"PATCH /api/rnd/images/{id}/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"PATCH /api/sales-claims/media/{id}/":{file:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"}},"PATCH /api/storefront/header-settings/":{logo:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0}},"PATCH /api/storefront/sites/{id}/":{favicon:{accept:"image/png,image/x-icon,image/vnd.microsoft.icon,.ico,image/svg+xml,image/jpeg,image/webp",hint:"PNG \xB7 ICO \xB7 SVG",max_bytes:1048576,max_files:1,policy:"favicon"}},"POST /api/activity/note-media/":{file:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"}},"POST /api/activity/notes/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"POST /api/auth/entities/":{logo:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0},logo_on_dark:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0},logo_square:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0}},"POST /api/auth/users/{id}/reset-password/":{avatar:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"avatar",reencoded_image:!0}},"POST /api/bank-statements/{id}/import_csv/":{file:{accept:".csv,text/csv,text/plain,application/vnd.ms-excel",hint:"CSV",max_bytes:5242880,max_files:1,policy:"csv_import"}},"POST /api/bank-statements/{id}/preview_csv/":{file:{accept:".csv,text/csv,text/plain,application/vnd.ms-excel",hint:"CSV",max_bytes:5242880,max_files:1,policy:"csv_import"}},"POST /api/bug-reports/":{attachments:{accept:"*",max_bytes:26214400,max_files:10,policy:"feedback_attachment"},files:{accept:"*",max_bytes:26214400,max_files:10,policy:"feedback_attachment"},image:{accept:"image/*",hint:"PNG \xB7 JPG",max_bytes:26214400,max_files:1,policy:"feedback_image",reencoded_image:!0},screenshot:{accept:"image/*",hint:"PNG \xB7 JPG",max_bytes:26214400,max_files:1,policy:"feedback_image",reencoded_image:!0}},"POST /api/bug-reports/{id}/bookmark/":{image:{accept:"image/*",hint:"PNG \xB7 JPG",max_bytes:26214400,max_files:1,policy:"feedback_image",reencoded_image:!0},screenshot:{accept:"image/*",hint:"PNG \xB7 JPG",max_bytes:26214400,max_files:1,policy:"feedback_image",reencoded_image:!0}},"POST /api/bug-reports/{id}/thread/":{attachments:{accept:"*",max_bytes:26214400,max_files:10,policy:"feedback_attachment"},files:{accept:"*",max_bytes:26214400,max_files:10,policy:"feedback_attachment"},image:{accept:"image/*",hint:"PNG \xB7 JPG",max_bytes:26214400,max_files:1,policy:"feedback_image",reencoded_image:!0},screenshot:{accept:"image/*",hint:"PNG \xB7 JPG",max_bytes:26214400,max_files:1,policy:"feedback_image",reencoded_image:!0}},"POST /api/careers/assessments/{token}/snapshots/":{image:{accept:"image/*",max_bytes:409600,max_files:1,policy:"proctoring_snapshot"}},"POST /api/careers/jobs/{slug}/apply/":{cv:{accept:".pdf,.doc,.docx,.txt,.md,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain,text/markdown",hint:"PDF \xB7 DOC \xB7 DOCX \xB7 TXT",max_bytes:10485760,max_files:1,policy:"cv"}},"POST /api/chat/conversations/{id}/thread/":{files:{accept:"*",max_bytes:26214400,max_files:10,policy:"chat_files"}},"POST /api/chat/public/conversations/{id}/thread/":{image:{accept:"image/*",hint:"PNG \xB7 JPG",max_bytes:26214400,max_files:1,policy:"chat_image",reencoded_image:!0}},"POST /api/customer-portal/conversations/{id}/thread/":{image:{accept:"image/*",hint:"PNG \xB7 JPG",max_bytes:26214400,max_files:1,policy:"chat_image",reencoded_image:!0}},"POST /api/customer-portal/warranty-claim-media/":{file:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"}},"POST /api/dealer-portal/wheel-media/":{file:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"}},"POST /api/employee-documents/":{file:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"POST /api/goods-issue-files/":{file:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"POST /api/goods-issues/":{label:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"POST /api/goods-issues/bulk_update_status/":{label:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"POST /api/goods-issues/{id}/actual_packing/":{label:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"POST /api/goods-issues/{id}/carton-groups/":{label:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"POST /api/goods-issues/{id}/generate-label/":{label:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"POST /api/goods-issues/{id}/pallets/":{label:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"POST /api/goods-issues/{id}/refresh-tracking/":{label:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"POST /api/goods-issues/{id}/regenerate-label/":{label:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"POST /api/goods-issues/{id}/regenerate_invoice/":{label:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"POST /api/goods-issues/{id}/update_loaded/":{label:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"POST /api/platform/brand-catalog/brands/":{logo:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0}},"POST /api/platform/brand-catalog/brands/{id}/assign-owner/":{logo:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0}},"POST /api/platform/brand-catalog/brands/{id}/publish/":{logo:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0}},"POST /api/platform/brand-catalog/brands/{id}/resync/":{logo:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0}},"POST /api/platform/brand-catalog/brands/{id}/unpublish/":{logo:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0}},"POST /api/platform/feedback/reports/{id}/thread/":{attachments:{accept:"*",max_bytes:26214400,max_files:10,policy:"feedback_attachment"},files:{accept:"*",max_bytes:26214400,max_files:10,policy:"feedback_attachment"}},"POST /api/products/brands/":{logo:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0}},"POST /api/products/brands/{id}/generate-box-pns/":{logo:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0}},"POST /api/products/design-images/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"POST /api/products/dfm-log-files/":{file:{accept:".stp,.step,.dxf,.pdf,application/pdf,application/step,model/step,application/dxf,image/vnd.dxf",hint:"STP \xB7 STEP \xB7 DXF \xB7 PDF",max_bytes:536870912,max_files:1,policy:"dfm_file"}},"POST /api/products/moulds/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"POST /api/products/project-images/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"POST /api/products/proposals/":{file:{accept:".pdf,application/pdf",hint:"PDF",max_bytes:52428800,max_files:1,policy:"proposal_pdf"}},"POST /api/products/proposals/{id}/approve-project/":{file:{accept:".pdf,application/pdf",hint:"PDF",max_bytes:52428800,max_files:1,policy:"proposal_pdf"}},"POST /api/products/weight-logs/":{image:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"},photo:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"}},"POST /api/purchase-invoices/capture/":{file:{accept:"application/pdf,image/jpeg,image/png",hint:"PDF \xB7 JPG \xB7 PNG",max_bytes:15728640,max_files:1,policy:"bill_capture"}},"POST /api/purchase-invoices/files/":{file:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"POST /api/purchase-orders/files/":{file:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"POST /api/qc-reports/media/":{file:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"}},"POST /api/recruitment/candidates/":{cv:{accept:".pdf,.doc,.docx,.txt,.md,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain,text/markdown",hint:"PDF \xB7 DOC \xB7 DOCX \xB7 TXT",max_bytes:10485760,max_files:1,policy:"cv"}},"POST /api/recruitment/candidates/{id}/analyze-cv/":{cv:{accept:".pdf,.doc,.docx,.txt,.md,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain,text/markdown",hint:"PDF \xB7 DOC \xB7 DOCX \xB7 TXT",max_bytes:10485760,max_files:1,policy:"cv"}},"POST /api/recruitment/candidates/{id}/hire/":{cv:{accept:".pdf,.doc,.docx,.txt,.md,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain,text/markdown",hint:"PDF \xB7 DOC \xB7 DOCX \xB7 TXT",max_bytes:10485760,max_files:1,policy:"cv"}},"POST /api/recruitment/candidates/{id}/move-stage/":{cv:{accept:".pdf,.doc,.docx,.txt,.md,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain,text/markdown",hint:"PDF \xB7 DOC \xB7 DOCX \xB7 TXT",max_bytes:10485760,max_files:1,policy:"cv"}},"POST /api/recruitment/candidates/{id}/reinstate/":{cv:{accept:".pdf,.doc,.docx,.txt,.md,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain,text/markdown",hint:"PDF \xB7 DOC \xB7 DOCX \xB7 TXT",max_bytes:10485760,max_files:1,policy:"cv"}},"POST /api/recruitment/candidates/{id}/reject/":{cv:{accept:".pdf,.doc,.docx,.txt,.md,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain,text/markdown",hint:"PDF \xB7 DOC \xB7 DOCX \xB7 TXT",max_bytes:10485760,max_files:1,policy:"cv"}},"POST /api/recruitment/candidates/{id}/withdraw/":{cv:{accept:".pdf,.doc,.docx,.txt,.md,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain,text/markdown",hint:"PDF \xB7 DOC \xB7 DOCX \xB7 TXT",max_bytes:10485760,max_files:1,policy:"cv"}},"POST /api/reimbursements/files/":{file:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"POST /api/rnd/images/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"POST /api/rnd/{id}/upload_image/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"POST /api/sales-claims/media/":{file:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"}},"POST /api/sales/contacts/import-csv/":{file:{accept:".csv,text/csv,text/plain,application/vnd.ms-excel",hint:"CSV",max_bytes:5242880,max_files:1,policy:"csv_import"}},"POST /api/sales/contacts/{id}/avatar/":{avatar:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"avatar",reencoded_image:!0}},"POST /api/shop-portal/return-media/":{file:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"}},"POST /api/storefront/media/":{file:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 SVG \xB7 WEBP \xB7 MP4",max_bytes:268435456,max_files:1,policy:"storefront_media"}},"POST /api/storefront/media/ingest/":{file:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 SVG \xB7 WEBP \xB7 MP4",max_bytes:268435456,max_files:1,policy:"storefront_media"}},"POST /api/storefront/sites/":{favicon:{accept:"image/png,image/x-icon,image/vnd.microsoft.icon,.ico,image/svg+xml,image/jpeg,image/webp",hint:"PNG \xB7 ICO \xB7 SVG",max_bytes:1048576,max_files:1,policy:"favicon"}},"POST /api/storefront/sites/{id}/address/":{favicon:{accept:"image/png,image/x-icon,image/vnd.microsoft.icon,.ico,image/svg+xml,image/jpeg,image/webp",hint:"PNG \xB7 ICO \xB7 SVG",max_bytes:1048576,max_files:1,policy:"favicon"}},"POST /api/storefront/sites/{id}/duplicate/":{favicon:{accept:"image/png,image/x-icon,image/vnd.microsoft.icon,.ico,image/svg+xml,image/jpeg,image/webp",hint:"PNG \xB7 ICO \xB7 SVG",max_bytes:1048576,max_files:1,policy:"favicon"}},"POST /api/supplier-portal/dfm-log-files/":{file:{accept:".stp,.step,.dxf,.pdf,application/pdf,application/step,model/step,application/dxf,image/vnd.dxf",hint:"STP \xB7 STEP \xB7 DXF \xB7 PDF",max_bytes:536870912,max_files:1,policy:"dfm_file"}},"POST /api/utility/mail/send/":{attachments:{accept:"*",max_bytes:26214400,max_files:10,policy:"mail_attachments"},files:{accept:"*",max_bytes:26214400,max_files:10,policy:"mail_attachments"}},"PUT /api/activity/note-media/{id}/":{file:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"}},"PUT /api/activity/notes/{id}/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"PUT /api/auth/entities/{id}/":{logo:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0},logo_on_dark:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0},logo_square:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0}},"PUT /api/auth/me/":{avatar:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"avatar",reencoded_image:!0}},"PUT /api/auth/users/{id}/":{avatar:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"avatar",reencoded_image:!0}},"PUT /api/bug-reports/{id}/":{image:{accept:"image/*",hint:"PNG \xB7 JPG",max_bytes:26214400,max_files:1,policy:"feedback_image",reencoded_image:!0},screenshot:{accept:"image/*",hint:"PNG \xB7 JPG",max_bytes:26214400,max_files:1,policy:"feedback_image",reencoded_image:!0}},"PUT /api/employee-documents/{id}/":{file:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"PUT /api/goods-issue-files/{id}/":{file:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"PUT /api/goods-issues/{id}/":{label:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"PUT /api/products/brands/{id}/":{logo:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0}},"PUT /api/products/design-images/{id}/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"PUT /api/products/dfm-log-files/{id}/":{file:{accept:".stp,.step,.dxf,.pdf,application/pdf,application/step,model/step,application/dxf,image/vnd.dxf",hint:"STP \xB7 STEP \xB7 DXF \xB7 PDF",max_bytes:536870912,max_files:1,policy:"dfm_file"}},"PUT /api/products/moulds/{id}/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"PUT /api/products/project-images/{id}/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"PUT /api/products/proposals/{id}/":{file:{accept:".pdf,application/pdf",hint:"PDF",max_bytes:52428800,max_files:1,policy:"proposal_pdf"}},"PUT /api/products/weight-logs/{id}/":{image:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"},photo:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"}},"PUT /api/purchase-invoices/files/{id}/":{file:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"PUT /api/purchase-orders/files/{id}/":{file:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"PUT /api/qc-reports/media/{id}/":{file:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"}},"PUT /api/recruitment/candidates/{id}/":{cv:{accept:".pdf,.doc,.docx,.txt,.md,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain,text/markdown",hint:"PDF \xB7 DOC \xB7 DOCX \xB7 TXT",max_bytes:10485760,max_files:1,policy:"cv"}},"PUT /api/reimbursements/files/{id}/":{file:{accept:"*",max_bytes:52428800,max_files:1,policy:"record_document"}},"PUT /api/rnd/images/{id}/":{image:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:26214400,max_files:1,policy:"record_image",reencoded_image:!0}},"PUT /api/sales-claims/media/{id}/":{file:{accept:"image/*,video/*",hint:"PNG \xB7 JPG \xB7 MP4",max_bytes:104857600,max_files:1,policy:"record_media"}},"PUT /api/storefront/header-settings/":{logo:{accept:"image/*",hint:"PNG \xB7 JPG \xB7 WEBP",max_bytes:5242880,max_files:1,policy:"brand_logo",reencoded_image:!0}},"PUT /api/storefront/sites/{id}/":{favicon:{accept:"image/png,image/x-icon,image/vnd.microsoft.icon,.ico,image/svg+xml,image/jpeg,image/webp",hint:"PNG \xB7 ICO \xB7 SVG",max_bytes:1048576,max_files:1,policy:"favicon"}},"PUT /api/storefront/sites/{id}/countries/":{favicon:{accept:"image/png,image/x-icon,image/vnd.microsoft.icon,.ico,image/svg+xml,image/jpeg,image/webp",hint:"PNG \xB7 ICO \xB7 SVG",max_bytes:1048576,max_files:1,policy:"favicon"}},"PUT /api/storefront/sites/{id}/currencies/":{favicon:{accept:"image/png,image/x-icon,image/vnd.microsoft.icon,.ico,image/svg+xml,image/jpeg,image/webp",hint:"PNG \xB7 ICO \xB7 SVG",max_bytes:1048576,max_files:1,policy:"favicon"}},"PUT /api/storefront/sites/{id}/part-prices/":{favicon:{accept:"image/png,image/x-icon,image/vnd.microsoft.icon,.ico,image/svg+xml,image/jpeg,image/webp",hint:"PNG \xB7 ICO \xB7 SVG",max_bytes:1048576,max_files:1,policy:"favicon"}}};function FC(e,t){let a=HC[e][t];return{maxSizeBytes:a.max_bytes,maxFiles:a.max_files,accept:a.accept==="*"||a.accept==="*/*"?void 0:a.accept,acceptHint:a.hint}}import{isSafeLinkHref as hl1}from"efficient-shell/markup";var h6=["width","profile","rim"],TC={width:"Width",profile:"Profile",rim:"Rim"},fG=/^\s*(\d{2,3})\s*\/\s*(\d{2,3})\s*[A-Za-z]*\s*(\d{2}(?:\.\d+)?)\s*$/,bG={width:[100,500],profile:[20,100],rim:[10,30]};function o4(e){let t=fG.exec(e??"");if(!t)return null;let a={width:Number(t[1]),profile:Number(t[2]),rim:Number(t[3])};return h6.every(c=>{let[l,r]=bG[c];return a[c]>=l&&a[c]<=r})?a:null}function q4(e){if(e.width==null)return"";if(e.profile==null)return String(e.width);let t=`${e.width}/${e.profile}`;return e.rim==null?t:`${t} R${e.rim}`}function PC(e){return[q4({width:e.width}),q4({width:e.width,profile:e.profile}),q4(e)]}var B3=["alloy-wheel","tyre"],yr=["alloy-wheel"],i4={"alloy-wheel":"Alloy wheels",tyre:"Tyres"},EC="All products",VC="All product types";function C5(e){return e.length===1&&e[0]==="alloy-wheel"?{one:"wheel",many:"wheels"}:e.length===1&&e[0]==="tyre"?{one:"tyre",many:"tyres"}:{one:"product",many:"products"}}var ze=B3.map(e=>({value:e,label:i4[e]}));function k5(e){return e==null?[...yr]:Array.isArray(e)?B3.filter(t=>e.includes(t)):[...yr]}var S3=e=>e;function O0(e){return S3(e).kind==="tyre"?"tyre":"alloy-wheel"}function NC(e,t){return e.filter(a=>t.includes(O0(a)))}function m7(e){return S3(e).slug??""}function Nm(e){return S3(e).name??""}function ye(e){return S3(e).brand??""}function _C(e){let t=new Set;for(let a of e)if(t.add(ye(a)),t.size>1)return!0;return!1}function xG(e){return S3(e).process??""}function IC(e){let t=new Set;for(let a of e)if(t.add(xG(a)),t.size>1)return!0;return!1}function C8(e){return S3(e).prices??void 0}function _m(e){return S3(e).inStock!==!1}function RC(e){let t=S3(e),a=O0(e)==="tyre"?t.rimDiameters:t.sizes;return Array.isArray(a)?a.filter(s=>typeof s=="number"&&Number.isFinite(s)):[]}function Im(e){return O0(e)!=="tyre"&&S3(e).badge==="new"}function Rm(e){return O0(e)==="tyre"?[]:(S3(e).finishes??[]).filter(t=>typeof t?.family=="string").map(t=>({family:t.family,color:t.color??null}))}function BC(e){return Rm(e).map(t=>t.family)}function ZC(e){if(O0(e)==="tyre")return[];let t=S3(e),a=t.categories;return a&&a.length>0?a:t.process?[t.process]:[]}function DC(e){return O0(e)==="tyre"?[]:S3(e).spec?.pcds??[]}function OC(e){return O0(e)!=="tyre"?[]:S3(e).tyreTypes??[]}function GC(e){return O0(e)!=="tyre"?[]:S3(e).speedRatings??[]}function we(e){if(O0(e)!=="tyre")return[];let t=S3(e).sizes;return Array.isArray(t)?t.map(a=>o4(typeof a=="string"?a:null)).filter(a=>a!==null):[]}function W4(e,t){return e.length===0?e:e.filter(a=>a.kind===void 0||a.kind===t)}function wr(e,t){if(t.length===0)return e;let a=Ce(t);return p7(e.filter(s=>a(s.fieldKey)),s=>s.fieldKey,t,"cardOrder")}function qC(e,t){let a=t==="filter"?"filterOrder":"cardOrder",s=new Map;for(let c of e){let l=c[a];if(typeof l!="number"||!Number.isFinite(l))continue;let r=s.get(c.fieldKey);(r===void 0||l<r)&&s.set(c.fieldKey,l)}return c=>c?s.get(c):void 0}function Bm(e){return kr(e,"spec")}function WC(e){return kr(e,"fitment")}function Zm(e,t){if(t.length===0)return e;let a=Bm(t),s=e.filter(c=>a(c.fieldKey));return p7(s,c=>c.fieldKey,t,"specOrder")}function p7(e,t,a,s){let c=new Map;for(let i of a){let n=i[s];typeof n=="number"&&c.set(i.fieldKey,n)}if(c.size===0)return e;let l=[],r=[];e.forEach((i,n)=>{let h=t(i);h&&(l.push(n),r.push({item:i,index:n,order:c.get(h)}))}),r.sort((i,n)=>i.order!==void 0&&n.order!==void 0?i.order-n.order||i.index-n.index:i.order!==void 0?-1:n.order!==void 0?1:i.index-n.index);let o=[...e];return l.forEach((i,n)=>{o[i]=r[n].item}),o.every((i,n)=>i===e[n])?e:o}function Ce(e){return kr(e,"card")}function Cr(e){return kr(e,"filter")}var ke="collection";function Me(e,t){return{tyreSizes:{},brands:{"alloy-wheel":"brand",tyre:"brand"},finishes:{"alloy-wheel":"wheel_finish_ref"},diameters:{"alloy-wheel":"diameter",tyre:"rim_diameter"},collections:{"alloy-wheel":ke},pcds:{"alloy-wheel":"pcd"},tyreTypes:{tyre:"tire_type"},speedRatings:{tyre:"speed_rating"}}[e]?.[t]}function kr(e,t){let a=new Set(e.filter(s=>s[t]===!1).map(s=>s.fieldKey));return s=>!s||!a.has(s)}function E2(e){return Number.isInteger(e)?String(e):String(Number(e.toFixed(2)))}function Mr(e,t){return e===t?`ET ${e}`:`ET ${e}\u2013${t}`}function UC(e,t){return e===t?`${E2(e)}"`:`${E2(e)}"\u2013${E2(t)}"`}function Dm(e){return e==="\u2014"?e:`${e}"`}var Aa={recommended:"Recommended","price-asc":"Price \xB7 low to high","price-desc":"Price \xB7 high to low",new:"Newest",name:"Name A\u2013Z"},jC=Object.keys(Aa);function Se(e){return R2(jC,"recommended",e)}function Om(e){return jC.filter(t=>t!=="recommended"||e.length<=1)}function KC(e,t){let a=Se(e);return Om(t).includes(a)?a:"name"}var Ha=["tyreSizes","brands","finishes","diameters","collections","pcds","tyreTypes","speedRatings"],zG={tyreSizes:["tyre"],brands:["alloy-wheel","tyre"],finishes:["alloy-wheel"],diameters:["alloy-wheel","tyre"],collections:["alloy-wheel"],pcds:["alloy-wheel"],tyreTypes:["tyre"],speedRatings:["tyre"]},yG={diameters:"tyreSizes"};function $C(e){if(e.length===0)return[];let t=Ha.filter(a=>e.every(s=>zG[a].includes(s)));return t.filter(a=>{let s=yG[a];return!s||!t.includes(s)})}function YC(e,t){return t&&e.includes(t)?[t]:[...e]}function XC(e){let t=new Set;for(let a of e)t.add(O0(a));return[...t]}var M5={tyreSizes:[],brands:[],finishes:[],diameters:[],collections:[],pcds:[],tyreTypes:[],speedRatings:[],priceMax:null,inStockOnly:!1,kind:null,sort:"recommended",page:1};function k8(e){return`${wG(e.width)}\xD7${e.diameter}`}function JC(e){return(e.sizePairs??[]).map(k8)}function wG(e){return E2(e)}function Fa(e,t,a,s=null){if(s!=="kind"&&t.kind&&O0(e)!==t.kind)return!1;for(let c of Ha){if(s===c)continue;let l=t[c];if(l.length===0)continue;let r=l.map(String);if(!tk(e,c).some(o=>r.includes(o)))return!1}return!(s!=="price"&&!pr(C8(e),a,null,t.priceMax)||s!=="inStock"&&t.inStockOnly&&!_m(e))}function QC(e,t,a){return e.filter(s=>_m(s)&&Fa(s,t,a,"inStock")).length}function CG(e,t,a){let s=[...e],c=(r,o)=>Nm(r).localeCompare(Nm(o)),l=XC(e).length>1;switch(t){case"price-asc":return s.sort((r,o)=>ue(C8(r),C8(o),a,"asc"));case"price-desc":return s.sort((r,o)=>ue(C8(r),C8(o),a,"desc"));case"name":return s.sort(c);case"new":return s.sort((r,o)=>{let i=(Im(o)?1:0)-(Im(r)?1:0);return i!==0||!l?i:c(r,o)});default:return s}}function ek(e,t,a){return CG(e.filter(s=>Fa(s,t,a)),t.sort,a)}function Sr(e){return Ha.some(t=>e[t].length>0)||e.priceMax!=null||e.inStockOnly||e.kind!=null}var Gm={tyreSizes:"Size",brands:"Brand",finishes:"Colour",diameters:"Size \xB7 diameter",collections:"Collection",pcds:"PCD \xB7 fitment",tyreTypes:"Tyre type",speedRatings:"Speed rating"};function tk(e,t){switch(t){case"tyreSizes":return[...new Set(we(e).flatMap(PC))];case"brands":return ye(e)?[ye(e)]:[];case"finishes":return BC(e);case"diameters":return RC(e).map(String);case"collections":return ZC(e);case"pcds":return DC(e);case"tyreTypes":return OC(e);case"speedRatings":return GC(e)}}function kG(e){let t=new Map;for(let a of e)for(let s of Rm(a))s.color&&!t.has(s.family)&&t.set(s.family,s.color);return t}function Lr(e,t,a,s=XC(e),c=[]){let l=n=>MG(n,s,c),r=kG(e),o=$C(s).filter(n=>n!=="tyreSizes").filter(l).map(n=>{let h=t[n].map(String),m=new Set,u=new Map,d=new Map;for(let g of e){let b=tk(g,n);for(let f of b)m.add(f);for(let f of new Set(b))d.set(f,(d.get(f)??0)+1);if(Fa(g,t,a,n))for(let f of new Set(b))u.set(f,(u.get(f)??0)+1)}let v=[...m].map(g=>({value:g,label:n==="diameters"?`${g}\u2033`:g,count:u.get(g)??0,checked:h.includes(g),swatch:n==="finishes"?r.get(g)??null:null})).sort((g,b)=>{if(n==="diameters")return Number(g.value)-Number(b.value);let f=(d.get(b.value)??0)-(d.get(g.value)??0);return f!==0?f:g.value.localeCompare(b.value)});return{key:n,label:Gm[n],options:v}}).filter(n=>n.options.length>Ta),i=[];for(let n of o){let h=SG(n.key,s,c);h!==void 0&&i.push({fieldKey:n.key,filterOrder:h})}return[...p7(o,n=>n.key,i,"filterOrder")]}var Ta=1;function Ar(e){return e.showCollection===!1?["collections"]:[]}function MG(e,t,a){return t.length===0||a.length===0?!0:t.some(s=>Cr(W4(a,s))(Me(e,s)))}function SG(e,t,a){if(a.length===0)return;let s;for(let c of t){let l=qC(W4(a,c),"filter")(Me(e,c));l!==void 0&&(s===void 0||l<s)&&(s=l)}return s}function LG(e){let t=new Set;for(let a of e)for(let s of we(a))t.add(q4(s));return t.size}function ak(e,t){return $C(t).includes("tyreSizes")?LG(e)>Ta:!1}function sk(e){let t=o4(e);if(t)return t;let[a,s]=e.split("/");return{width:a?Number(a):void 0,profile:s?Number(s):void 0}}function AG(e,t,a){return h6.slice(0,h6.indexOf(a)).every(s=>{let c=t[s];return c==null||e[s]===c})}function ck(e,t,a){let s=sk(t.tyreSizes[0]??""),c=new Set(e.filter(l=>Fa(l,t,a,"tyreSizes")));return h6.map(l=>{let r=new Map;for(let i of e){let n=we(i).filter(h=>AG(h,s,l));for(let h of new Set(n.map(m=>m[l])))r.has(h)||r.set(h,0),c.has(i)&&r.set(h,(r.get(h)??0)+1)}let o=[...r.keys()].sort((i,n)=>i-n).map(i=>({value:i,label:l==="rim"?`R${i}`:String(i),count:r.get(i)??0}));return{part:l,label:TC[l],value:s[l]??null,options:o}})}function lk(e,t,a,s){let c={...sk(t)},l=h6.indexOf(a);c[a]=s??void 0;for(let r of h6.slice(l+1))c[r]!=null&&e.some(n=>h6.slice(0,h6.indexOf(r)+1).every(h=>c[h]==null||n[h]===c[h]))||(c[r]=void 0);return q4(c)}function rk(e,t,a,s){if(t.length<2)return[];let c=e.filter(l=>Fa(l,a,s,"kind"));return[{kind:null,label:EC,count:c.length,checked:a.kind===null},...t.map(l=>({kind:l,label:i4[l],count:c.filter(r=>O0(r)===l).length,checked:a.kind===l}))]}function ok(e,t){if(e.length===0)return null;let a=e.map(l=>pe(C8(l),t)).filter(l=>l!==null);if(a.length===0)return null;let s=Math.floor(Math.min(...a)),c=Math.ceil(Math.max(...a));return c>s?{min:s,max:c}:null}function ik(e,t,a){let s=[];e.kind&&s.push({key:"kind",value:e.kind,label:i4[e.kind]}),e.inStockOnly&&s.push({key:"inStock",value:"",label:"In stock"});for(let c of Ha)for(let l of e[c]){let r=String(l);s.push({key:c,value:r,label:c==="diameters"?`${r}\u2033`:c==="pcds"?`PCD ${r}`:r})}return e.priceMax!=null&&s.push({key:"price",value:"",label:`Up to ${a(e.priceMax,t)}`}),s}var C4={tyreSizes:"tyreSize",brands:"brand",finishes:"colour",diameters:"size",collections:"collection",pcds:"pcd",tyreTypes:"tyreType",speedRatings:"speed"},u7="type",nk="maxPrice",hk="inStock",mk="sort",pk="page";function uk(e){let t=l=>e.getAll(l).flatMap(r=>r.split(",")).filter(Boolean),a=Number(e.get(nk)),s=Number(e.get(pk)),c=e.get(u7);return{tyreSizes:t(C4.tyreSizes),brands:t(C4.brands),finishes:t(C4.finishes),diameters:t(C4.diameters).map(Number).filter(Number.isFinite),collections:t(C4.collections),pcds:t(C4.pcds),tyreTypes:t(C4.tyreTypes),speedRatings:t(C4.speedRatings),priceMax:Number.isFinite(a)&&a>0?a:null,inStockOnly:e.get(hk)==="1",kind:B3.find(l=>l===c)??null,sort:Se(e.get(mk)),page:Number.isFinite(s)&&s>=1?Math.floor(s):1}}function M8(e){let t=new URLSearchParams;for(let a of Ha){let s=e[a];s.length>0&&t.set(C4[a],s.join(","))}return e.priceMax!=null&&t.set(nk,String(e.priceMax)),e.inStockOnly&&t.set(hk,"1"),e.kind&&t.set(u7,e.kind),e.sort!=="recommended"&&t.set(mk,e.sort),e.page>1&&t.set(pk,String(e.page)),t}function dk(e,t){if(e<=7)return Array.from({length:e},(l,r)=>r+1);let a=[1],s=Math.max(2,t-1),c=Math.min(e-1,t+1);s>2&&a.push(null);for(let l=s;l<=c;l++)a.push(l);return c<e-1&&a.push(null),a.push(e),a}function gk(e,t,a){let s=e.length,c=Math.max(1,Math.floor(a)),l=Math.max(1,Math.ceil(s/c)),r=Math.min(Math.max(1,Math.floor(t)),l),o=(r-1)*c;return{items:e.slice(o,o+c),page:r,pageCount:l,total:s,from:s===0?0:o+1,to:Math.min(o+c,s)}}var d7="__all__",vk="All products";function Hr(e){return e?.slug===d7}var Le="AlloyWheelsListing",HG="ProductGrid",fk="catalog",FG="CatalogFilterBar",Fr="fieldUsage";function Ae(e){return e?.type===HG&&Hr(e.props?.source)}function qm(e){return e?.type===FG}function TG(e){return e?.type===Le||Ae(e)||qm(e)}function PG(e){let t=e.content??[],a=e.zones??{};return[...t,...Object.values(a).flat()]}function Jc1(e){return e?PG(e).some(t=>t?.type===Le||Ae(t)):!1}function Qc1(e,t){return VG(e,a=>Ae(a)?{...a,props:{...Wm(a).props,[fk]:EG(t,k5(a.props?.kinds))}}:{...a,props:{...Um(a).props,products:t}})}function el1(e){return xk(e,TG,t=>qm(t)?bk(t):Ae(t)?Wm(t):Um(t))}function bk(e){if(!e.props||!(Fr in e.props))return e;let{[Fr]:t,...a}=e.props;return{...e,props:a}}function Wm(e){let{[fk]:t,[Fr]:a,...s}=e.props??{};return{...e,props:s}}function EG(e,t){let a=new Set(t);return e.filter(s=>{let c=s.kind??"alloy-wheel";return a.has(c)})}function tl1(e){return Ae(e)?Wm(e):qm(e)?bk(e):e?.type===Le?Um(e):e}function Um(e){let{wheels:t,products:a,[Fr]:s,...c}=e.props??{};return{...e,props:c}}function VG(e,t){return xk(e,a=>a?.type===Le||Ae(a),t)}function xk(e,t,a){let s=r=>t(r)?a(r):r,c=e,l={...e};return c.content&&(l.content=c.content.map(s)),c.zones&&(l.zones=Object.fromEntries(Object.entries(c.zones).map(([r,o])=>[r,o.map(s)]))),l}var Pa="/wheels",jm="Products";function _G(e,t){return t>1?`${jm} \xB7 ${e}`:jm}function zk(...e){for(let t of e){let a=(t?.content??[]).find(s=>s?.type===Le);if(a)return a.props??{}}return null}function Km(...e){return zk(...e)!==null}function IG(e,t){let a=e.filter(s=>Km(...s.docs)).map(s=>d8(s.slug));return a.length===0&&t.fallback?[Pa]:a}var yk=[u7,...Object.entries(C4).filter(([e])=>e!=="tyreSizes").map(([,e])=>e)];function wk(e){let t=e.indexOf("#"),a=t===-1?"":e.slice(t),s=t===-1?e:e.slice(0,t),c=s.indexOf("?");return{path:c===-1?s:s.slice(0,c),query:c===-1?"":s.slice(c+1),hash:a}}function RG(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return e}}function $m(e){let t=new URLSearchParams(wk(e).query);for(let a of yk){let s=t.get(a);if(s)return{param:a,value:s}}return null}function Ym(e,t){let{path:a,query:s,hash:c}=wk(e),l=s.split("&").filter(r=>r&&!yk.includes(RG(r.split("=")[0])));return t?.value&&l.push(`${encodeURIComponent(t.param)}=${encodeURIComponent(t.value)}`),`${a}${l.length?`?${l.join("&")}`:""}${c}`}function vl1(e){return Array.isArray(e)?e.filter(t=>typeof t?.kind=="string"&&typeof t.field_key=="string").map(t=>({kind:t.kind,fieldKey:t.field_key,...typeof t.filter=="boolean"?{filter:t.filter}:{},filterOrder:t.filter_order??null})):[]}var BG="Product type",ZG="AUD";function DG(e,t){let a=t.listing??{},s=k5(a.kinds),c=e.filter(i=>s.includes(O0(i))),l=Ar(a),r=Lr(c,M5,ZG,s,t.fieldUsage).filter(i=>!l.includes(i.key)).map(i=>({param:C4[i.key],label:i.label,values:i.options.filter(n=>!n.value.includes(",")).map(n=>({value:n.value,label:n.label}))})).filter(i=>i.values.length>0),o=B3.filter(i=>s.includes(i)&&c.some(n=>O0(n)===i));return o.length>1&&r.unshift({param:u7,label:BG,values:o.map(i=>({value:i,label:i4[i]}))}),r}function fl1(e){return t=>{let a=IG(t,{fallback:e.offersCommerce}),s=t.filter(c=>Km(...c.docs)).length;return{listingPaths:a,pageOptions:c=>{let l=c.map(r=>{let o=t.find(i=>d8(i.slug)===r.value);return o&&Km(...o.docs)?{...r,label:_G(o.title,s)}:r});return s===0&&e.offersCommerce&&!l.some(r=>r.value===Pa)&&l.push({value:Pa,label:jm}),l},filtersFor:c=>{if(!a.includes(c))return null;let l=t.find(r=>d8(r.slug)===c);return DG(e.catalogue,{listing:l?zk(...l.docs):null,fieldUsage:e.fieldUsage})},readFilter:$m,withFilter:Ym}}}var He="product",Tr="recordType",OG={key:He,label:"Product",fields:[]};var GG=new Map,qG=0;function Xm(){return[OG,...GG.values()]}function Jm(){return qG}function Pr(e){let t=e?.[Tr];return typeof t!="string"?He:t.trim()||He}function Qm(e){return Pr(e)===He}var ep="product",WG="tyre";var tp="productType",UG={[ep]:"alloy-wheel",[WG]:"tyre"},jG=["alloy-wheel","tyre"];function Er(e,t){return Qm(t)?KG(t)??UG[e]??null:null}function KG(e){if(!Qm(e))return null;let t=e?.[tp];return typeof t=="string"&&jG.includes(t)?t:null}var $G=["home","products","gallery","about","contact"],YG=e=>{let t=e.slug.trim().toLowerCase(),a=(e.title??"").trim().toLowerCase(),s=$G.findIndex(c=>c===t||c===a);return s===-1?Number.POSITIVE_INFINITY:s},Ck=e=>e.map((t,a)=>({page:t,idx:a,rank:YG(t)})).sort((t,a)=>t.rank-a.rank||t.idx-a.idx).map(t=>t.page);var Sk="Popups",kk="Site";var Lk={[Cy]:{label:"Site popup",group:Sk},[D9]:{label:"Footer",group:kk},[vy]:{label:"Cart drawer",group:kk}};function sp(e){return Lk[e.slug]?.label||e.title||e.slug}function ap(e){let t=e.group?.trim();return t||null}function Mk(e,t){let a=new Map;for(let s of e){let c=t(s),l=a.get(c);l?l.push(s):a.set(c,[s])}return a}function Ak(e){let t=Ck(e),a=[],s=t.filter(o=>!za(o.slug)),c=s.filter(o=>!ap(o));c.length&&a.push({key:"top",group:null,pages:c});let l=s.filter(o=>ap(o));for(let[o,i]of Mk(l,n=>ap(n)))a.push({key:`folder:${o}`,group:o,pages:i});let r=t.filter(o=>za(o.slug));for(let[o,i]of Mk(r,n=>Lk[n.slug]?.group??Sk))a.push({key:`system:${o}`,group:o,pages:i});return a}import{isExpiredSession as Bl1,PAGE_CONFLICT_CODE as Hk,readEaselFailure as Zl1}from"efficient-easel/screen/lib/failure";var Vr=e=>e.layout_updated_at??e.updated_at??null;function QG(e){if(!e||typeof e!="object")return null;let t=e;return t.code!==Hk?null:{savedBy:typeof t.saved_by=="string"?t.saved_by:"",savedByYou:t.saved_by_you===!0,secondsAgo:typeof t.seconds_ago=="number"?t.seconds_ago:0}}function eq(e){return e===401||e===403?"unauthorized":e===404?"not-found":e===lC||e>=500?"unavailable":"invalid"}function tq(e){if(!(e instanceof G4))return e;if(e.status===409){let t=QG(e.data);if(t)return new g8("changed-elsewhere",e.message,{conflict:t,cause:e});let a=JG(e.data);if(a)return new g8("lock-taken",e.message,{holder:a,cause:e})}return new g8(eq(e.status),e.message,{cause:e})}var aq={group:"Template pages",groupKey:"template"},Fk=e=>({id:e.id,slug:e.slug,label:e.title||e.slug,...aq,draft:!1});function Tk(e){let t=async n=>{let h=e.token();if(!h)throw new g8("unauthorized","The editor has no sign-in yet.");try{return await n(h)}catch(m){throw tq(m)}},a={list:n=>t(async h=>{let m=await J1.listPages(h,n?.siteId);return Ak(m.filter(u=>u.slug!==D9)).flatMap(u=>u.pages.map(d=>({id:d.id,slug:d.slug,label:sp(d),group:u.group,groupKey:u.key,draft:!d.is_published,kind:d.kind??null})))}),load:n=>t(async h=>{let m="id"in n?n.id:(await J1.findPageBySlug(n.slug,h,n.siteId))?.id,u=m?await J1.getPageById(m,h):null;return u?{id:u.id,layout:u.layout,kind:u.kind,version:Vr(u)}:null}),save:(n,h,m)=>{let{version:u}=m;return u?t(async d=>({version:Vr(await J1.saveLayout(n,h.layout,d,u,m.clientId||void 0))})):Promise.reject(new Error("Refusing to save this page: the editor does not know which version it is replacing. Reload the page and try again."))},version:n=>t(h=>J1.getPageById(n,h).then(Vr)),linkTargets:n=>t(async h=>(await J1.listPages(h,n?.siteId)).map(m=>({id:m.id,slug:m.slug,label:sp(m),layout:m.layout??null}))),publish:(n,h)=>t(async m=>({version:Vr(await J1.publishPage(n,m,h?.version))}))},s=n=>({list:()=>t(async h=>(await J1.listTemplatePages(n,h)).map(Fk)),load:h=>t(async m=>{let u=b=>"id"in h?b.id===h.id:b.slug===h.slug,d=b=>({id:b.id,layout:b.layout,version:null}),v=await J1.listTemplatePages(n,m);if(v.length)return d(v.find(u)??v[0]);let g=await J1.getTemplate(n,m).catch(()=>null);try{return d(await J1.createTemplatePage(n,{slug:Oz,title:"Home",layout:g?.layout??{}},m))}catch{let b=await J1.listTemplatePages(n,m),f=b.find(u)??b[0];return f?d(f):null}}),save:(h,m)=>t(async u=>(await J1.saveTemplatePageLayout(h,m.layout,u),{version:null})),create:h=>t(async m=>Fk(await J1.createTemplatePage(n,{slug:h.slug,title:h.title,layout:h.layout},m))),remove:(h,m)=>t(u=>J1.deleteTemplatePage(h,u,m))}),c=n=>{let h=n?.siteId??e.siteId();if(!h)throw new g8("not-found","This editor is not connected to a website.");return h},l=n=>({name:n.name,slug:n.slug,mapsApiKey:n.maps_api_key,mapsMapId:n.maps_map_id}),r=n=>Object.fromEntries($l.map(h=>[h,n[Yl(h)]??""])),o=n=>({enabled:n.enabled,title:n.title,subtitle:n.subtitle,greeting:n.greeting}),i={pages:a,lock:{claim:(n,h,m)=>t(async u=>({heartbeatSeconds:(await J1.claimPageEditLock(n,u,h,m)).heartbeat_seconds})),release:n=>t(h=>J1.releasePageEditLock(n,h))},site:{get:n=>t(async h=>l(await J1.getSite(c(n),h))),update:(n,h)=>t(async m=>l(await J1.updateSite(c(h),n.mapsApiKey===void 0?{}:{maps_api_key:n.mapsApiKey},m)))},media:{resolve:Ax,maxUploadBytes:FC("POST /api/storefront/media/","file").maxSizeBytes},sectionTemplates:new zr(e.token),social:{get:n=>t(async h=>r(await J1.getSocialSettings(h,c(n)))),update:(n,h)=>t(async m=>{let u=Object.fromEntries($l.filter(d=>d in n).map(d=>[Yl(d),n[d]]));try{return r(await J1.updateSocialSettings(u,m,c(h)))}catch(d){if(d instanceof G4&&d.status===400){let v=d.data??{},g={};for(let b of $l){let f=v[Yl(b)],w=Array.isArray(f)?f[0]:f;typeof w=="string"&&w.trim()&&(g[b]=w)}if(Object.keys(g).length>0)throw new g8("invalid",d.message,{fields:g,cause:d})}throw d}})},theme:{get:n=>t(h=>J1.getThemeSettings(h,n?.siteId)),update:(n,h)=>t(m=>J1.updateThemeSettings(n,m,h?.siteId))},chat:{get:n=>t(async h=>o(await J1.getChatSettings(h,n?.siteId))),update:(n,h)=>t(async m=>o(await J1.updateChatSettings(n,m,h?.siteId)))},blog:{posts:n=>t(async h=>(await J1.listBlogPosts(h,{visibleOnly:!0,siteId:n?.siteId})).map(m=>({slug:m.slug,title:m.title,excerpt:m.excerpt,category:m.category,coverImage:m.cover_image?S9(m.cover_image)??"":"",publishedAt:m.published_at,href:sm(m.slug)})))},templates:{get:n=>t(async h=>{let m=await J1.getTemplate(n,h);return{id:m.id,name:m.name}}),pages:s}};return i[bx]=!0,i}ry({read:e=>e instanceof G4?{status:e.status,data:e.data,message:e.message}:null,unreachableMessage:cC,loadRefusal:(e,{slug:t})=>e instanceof hC?`\u201C${t}\u201D exists on more than one website. Open it from the site you want to edit.`:null});zx(e=>Tk({token:()=>e.auth.token,siteId:()=>e.siteId()}));function tr1(e={}){return e.portalAudience!==void 0&&rC(e.portalAudience),e.language!==void 0&&oC(e.language),Tk({token:()=>ga().auth.token,siteId:()=>e.siteId??ga().siteId()})}import{jsx as sq}from"react/jsx-runtime";import{createContext as cq,useContext as lq,useMemo as rq}from"react";var Pk=cq({originData:null,originSlug:null,exitFocus:()=>{}});function lr1({children:e,originData:t,originSlug:a,exitFocus:s}){let c=rq(()=>({originData:t,originSlug:a,exitFocus:s}),[t,a,s]);return sq(Pk.Provider,{value:c,children:e})}var Ek=()=>lq(Pk);import{useCallback as Pq,useEffect as Eq,useRef as Vq,useState as lM}from"react";var oq=[{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"}],iq=Object.fromEntries(oq.map(e=>[e.code,e.name]));function Vk(e){return iq[e]??e}import{jsx as cp,jsxs as Nk}from"react/jsx-runtime";function _k(e,t,a){let s=new Map(e.map(c=>[c.code,c]));return(t?.length?t:e.map(c=>c.code)).map(c=>{let l=s.get(c);return{code:c,name:l?.name||Vk(c),currency:l?.currency,url:l?.url||a?.[c]||""}})}function Nr(e){let{countries:t}=u0();return _k(t,e).length>0}function S8({urls:e,countries:t}={}){let{country:a,setCountry:s,countries:c}=u0(),l=_k(c,t,e),r=l.find(m=>m.code===a)??l[0];function o(m){let u=(e?l.find(d=>d.code===m)?.url:"")?.trim();if(u){window.location.href=u;return}c.some(d=>d.code===m)&&s(m)}let i=l.map(m=>({value:m.code,label:m.name,meta:m.currency})),n=be({items:i,value:a,onPick:o});if(!r)return null;let h=n.open;return Nk("div",{ref:n.wrapRef,className:"relative",children:[Nk("button",{ref:m=>{n.triggerRef.current=m},type:"button","aria-haspopup":"listbox","aria-expanded":h,"aria-controls":h?n.listId:void 0,"aria-activedescendant":n.activeId,"aria-label":`Region: ${r.name}. Click to change.`,onClick:n.toggle,onKeyDown:n.onTriggerKeyDown,suppressHydrationWarning:!0,className:"inline-flex items-center gap-2 whitespace-nowrap border border-fg-dim px-2.5 py-1.5 font-mono text-[13px] uppercase tracking-[0.18em] transition-colors hover:border-fg",style:{color:"color-mix(in oklab, currentColor 80%, transparent)"},children:[cp("span",{children:r.name}),cp("span",{"aria-hidden":!0,className:`text-[11px] opacity-70 transition-transform ${h?"rotate-180":""}`,children:"\u25BE"})]}),h&&cp(xe,{id:n.listId,tone:"region",ariaLabel:"Choose region",items:i,value:a,focusIdx:n.focusIdx,onFocus:n.setFocusIdx,onPick:n.pick,listRef:n.listRef})]})}import{useEffect as nq,useRef as Ik}from"react";import{jsx as k4,jsxs as lp}from"react/jsx-runtime";var Ea={search:"Search",account:"Account",cart:"Bag"},rp="whitespace-nowrap";function hq(e){return e>99?"99+":String(e)}function mq({count:e,ref:t}){return k4("span",{ref:t,"data-cart-badge":"","aria-hidden":"true",className:"pointer-events-none absolute -top-[7px] -right-[9px] inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-current px-1 text-[10px] leading-none font-semibold tabular-nums",style:{letterSpacing:0},children:k4("span",{style:{color:"var(--sf-header-ground, var(--bg))"},children:hq(e)})})}function _r({onClick:e,count:t,asText:a,className:s}){let c=Ik(null),l=Ik(t);return nq(()=>{l.current!==t&&(l.current=t,!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&c.current?.animate([{transform:"scale(0.6)"},{transform:"scale(1)"}],{duration:180,easing:"ease-out"}))},[t]),k4("button",{type:"button",onClick:e,"aria-label":`Open cart, ${t} item${t===1?"":"s"}`,className:`mono-eyebrow-ctl inline-flex items-center gap-1.5 opacity-80 transition-opacity hover:opacity-100 ${s??""}`,children:a?lp("span",{className:rp,children:[Ea.cart,t>0?` ${t}`:""]}):lp("span",{className:"relative inline-flex",children:[k4("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:bw}),t>0?k4(mq,{count:t,ref:c}):null]})})}function Rk({asText:e,className:t}){return k4(L1,{href:"/account","aria-label":"Account",className:`mono-eyebrow-ctl inline-flex items-center opacity-80 transition-opacity hover:opacity-100 ${t??""}`,children:e?k4("span",{className:rp,children:Ea.account}):lp("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[k4("circle",{cx:"12",cy:"8",r:"3.4"}),k4("path",{d:"M5 20a7 7 0 0 1 14 0"})]})})}function Ir({onClick:e,asText:t,className:a}){return k4("button",{type:"button",onClick:e,"aria-label":"Search",title:"Search (\u2318K)",className:`mono-eyebrow-ctl inline-flex items-center opacity-80 transition-opacity hover:opacity-100 ${a??""}`,children:t?k4("span",{className:rp,children:Ea.search}):k4(l6,{name:"search",size:18,strokeWidth:1.6,rounded:!0})})}var Bk="Menu Item",Zk=6,op=4,Dk="Menu",Ok="Link a menu in the inspector \u2192";function Gk(){return p("This column isn't linked to a menu, so the preview shows placeholder links. Pick a menu above.")}function qk(e){return p("\u201C{name}\u201D no longer exists in {place}, so the preview shows placeholder links. Pick another menu.",{name:e,place:p("Storefront \u2192 Menus")})}function zr1(){return p("The menu linked here no longer exists in {place}, so the header shows placeholder links. Pick another menu.",{place:p("Storefront \u2192 Menus")})}import{jsx as pq}from"react/jsx-runtime";function Fe(){return pq("span",{className:"opacity-50",children:p(Bk)})}import{jsx as uq}from"react/jsx-runtime";import{createContext as dq,useContext as ip,useEffect as gq,useState as vq,useSyncExternalStore as fq}from"react";var Uk=[];function bq(){let e=Uk,t=new Set,a=s=>{e=s;for(let c of t)c()};return{offer:s=>(a([...e,s]),()=>{let c=e.indexOf(s);c>=0&&a([...e.slice(0,c),...e.slice(c+1)])}),subscribe:s=>(t.add(s),()=>t.delete(s)),offered:()=>e}}var Rr=dq(null);function jk({children:e}){let[t]=vq(bq);return uq(Rr.Provider,{value:t,children:e})}var Br=()=>ip(Rr)!==null;function np(e){let t=ip(Rr);gq(()=>{if(!(!t||!e))return t.offer(e)},[t,e])}var xq=()=>()=>{},Wk=()=>Uk;function Kk(){let e=ip(Rr),t=fq(e?.subscribe??xq,e?.offered??Wk,Wk);return e?{search:t.includes("search"),region:t.includes("region"),account:t.includes("account"),theme:t.includes("theme")}:null}import{createContext as zq,useCallback as hp,useContext as yq,useEffect as wq,useMemo as Cq,useState as kq}from"react";import{jsx as Sq}from"react/jsx-runtime";var Mq={isOpen:!1,open:()=>{},close:()=>{},toggle:()=>{}},$k=zq(Mq);function Fr1({children:e,shortcut:t=!0}){let[a,s]=kq(!1),c=hp(()=>s(!0),[]),l=hp(()=>s(!1),[]),r=hp(()=>s(i=>!i),[]);wq(()=>{if(!t)return;let i=n=>{(n.metaKey||n.ctrlKey)&&(n.key==="k"||n.key==="K")&&(n.preventDefault(),s(h=>!h))};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[t]);let o=Cq(()=>({isOpen:a,open:c,close:l,toggle:r}),[a,c,l,r]);return Sq($k.Provider,{value:o,children:e})}function Te(){return yq($k)}import{useEffect as mp}from"react";function M4({active:e,onDismiss:t,focusRef:a,lockScroll:s=!0,scopeRef:c}){mp(()=>{if(!e)return;let l=c?.current?.ownerDocument??document,r=o=>{o.key==="Escape"&&t()};return l.addEventListener("keydown",r),()=>l.removeEventListener("keydown",r)},[e,t,c]),mp(()=>{if(!e||!s)return;let l=(c?.current?.ownerDocument??document).body,r=l.style.overflow;return l.style.overflow="hidden",()=>{l.style.overflow=r}},[e,s,c]),mp(()=>{e&&a?.current?.focus()},[e,a])}import{createContext as Lq,useCallback as eM,useContext as Aq,useMemo as Hq,useState as Fq}from"react";var Va=new Map,Yk=e=>e??"";function pp(e,t,a){a&&Va.clear();let s=Yk(t),c=Va.get(s);if(!c){let l=J1.listMenus(e,t);Va.set(s,l),l.catch(()=>{Va.get(s)===l&&Va.delete(s)}),c=l}return c}var Zr=new Map;function Xk(e,t){let a=Yk(t),s=Zr.get(a);if(!s){let c=pp(e,t,!0);Zr.set(a,c);let l=()=>{Zr.get(a)===c&&Zr.delete(a)};c.then(l,l),s=c}return s}function up(e,t=!1){return pp(e,i2(),t)}function Jk(e){return Xk(e,i2())}function Ir1(e,t=!1){return pp(e,null,t)}function Rr1(e){return Xk(e,null)}var dp={ids:new Set,handles:new Set};function Br1(e){return{ids:new Set(e.map(t=>t.id).filter(Boolean)),handles:new Set(e.map(t=>t.handle).filter(Boolean))}}function Qk({id:e,handle:t,editing:a,ready:s,live:c}){if(!a)return!1;let l=e??"",r=t??"";return!l&&!r?!0:s?l?!c.ids.has(l):!c.handles.has(r):!1}function Dr(e,t){if(t){if(t.id)return e.find(a=>a.id===t.id);if(t.handle)return e.find(a=>a.handle===t.handle)}}import{jsx as Tq}from"react/jsx-runtime";var tM=Lq({live:dp,ready:!1,primeLive:()=>{},setLive:()=>{}});function Gr1({children:e}){let[t,a]=Fq({live:dp,ready:!1}),s=eM(r=>a(o=>o.ready?o:{live:r,ready:!0}),[]),c=eM(r=>a({live:r,ready:!0}),[]),l=Hq(()=>({...t,primeLive:s,setLive:c}),[t,s,c]);return Tq(tM.Provider,{value:l,children:e})}var aM=()=>Aq(tM);function Pe(e){let t=(e??"").trim();return t===""||t==="#"}import{jsx as C0,jsxs as S5}from"react/jsx-runtime";var Nq=e=>/^https?:\/\//i.test(e),rM="flex list-none flex-col gap-2.5 text-[13px]",gp="mb-4 font-mono text-[13px] uppercase tracking-[0.2em] text-fg-dim",sM="text-[12px] italic text-fg-dim/70",oM=(e,t)=>e&&t>0?"border-t border-line pt-2.5":"";function _q({showDividers:e}){return C0("ul",{className:rM,children:Array.from({length:op},(t,a)=>C0("li",{className:`text-fg ${oM(e,a)}`,children:C0(Fe,{})},a))})}function iM({item:e,label:t,link:a,onNavigate:s}){return Pe(e.url)?C0("span",{className:t,children:k(e.label)}):Nq(e.url)?C0("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:a,onClick:s,children:k(e.label)}):C0(L1,{href:e.url,className:a,onClick:s,children:k(e.label)})}function cM({items:e,showDividers:t}){return C0("ul",{className:rM,children:e.map((a,s)=>C0("li",{className:oM(t,s),children:C0(iM,{item:a,label:"text-fg",link:"text-fg transition-colors hover:text-accent"})},`${a.label}-${s}`))})}var Iq="opacity-80 transition-opacity hover:opacity-100";function Rq({items:e,label:t,editing:a}){let[s,c]=lM(!1),l=Vq(null),r=Kk(),{open:o}=Te(),i=t||"Menu",n=Pq(()=>c(!1),[]);M4({active:s,onDismiss:n,scopeRef:l});let h=(u,d,v)=>e===null?Array.from({length:op},(g,b)=>C0("li",{className:d,children:C0(Fe,{})},b)):e.map((g,b)=>C0("li",{className:d,children:C0(iM,{item:g,label:u,link:`${u} ${Iq}`,onNavigate:v})},`${g.label}-${b}`)),m=r&&(r.search||r.region)?r:null;return S5("nav",{ref:l,"aria-label":i,"data-menu-row":"",className:"min-w-0",children:[C0("ul",{className:"m-0 hidden list-none flex-wrap items-center gap-x-[30px] gap-y-2 p-0 font-mono text-[13px] uppercase tracking-[0.18em] min-[801px]:flex",children:h("","")}),C0("button",{type:"button",className:"flex h-11 w-11 items-center justify-center min-[801px]:hidden","aria-expanded":s,"aria-label":s?"Close the menu":"Open the menu",onClick:()=>c(u=>!u),children:C0("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round","aria-hidden":"true",children:s?C0("path",{d:"M6 6l12 12M18 6L6 18"}):C0("path",{d:"M4 7h16M4 12h16M4 17h16"})})}),s?S5("div",{role:"dialog","aria-label":i,className:"fixed inset-x-0 bottom-0 top-[var(--sf-header-h,60px)] z-[60] flex flex-col overflow-y-auto bg-bg text-fg min-[801px]:hidden",children:[C0("ul",{className:"m-0 flex list-none flex-col px-5 py-3 font-mono text-[16px] uppercase tracking-[0.18em]",children:h("","flex min-h-14 items-center border-b border-line",n)}),m?S5("div",{className:"mt-auto flex flex-col gap-3.5 border-t border-line bg-surface p-5",children:[m.search?S5("button",{type:"button",className:"flex h-12 items-center gap-3 border border-line bg-bg px-3.5 text-left text-[15px]",onClick:a?void 0:()=>{n(),o()},children:[C0(l6,{name:"search",size:18,strokeWidth:1.6,rounded:!0}),Ea.search]}):null,m.region?S5("div",{className:"flex items-center justify-between",children:[C0("span",{className:"mono-eyebrow text-fg-dim",children:"Region"}),C0(S8,{})]}):null]}):null]}):null]})}function Na({menu:e,heading:t,accordionMobile:a=!1,showDividers:s=!1,editing:c=!1,layout:l="column"}){let{live:r,ready:o}=aM(),i=Qk({id:e?.id,handle:e?.handle,editing:c,ready:o,live:r}),n=i?[]:e?.items??[],h=t||e?.name||"",[m,u]=lM(!1);return Eq(()=>{if(!a)return;let d=window.matchMedia("(max-width: 800px)"),v=()=>u(d.matches);return v(),d.addEventListener("change",v),()=>d.removeEventListener("change",v)},[a]),l==="row"?C0(Rq,{items:i?null:n,label:h,editing:c}):i?S5("div",{className:"min-w-0",children:[C0("h4",{className:gp,children:t?D0(t):p(Dk)}),C0(_q,{showDividers:s}),C0("p",{className:`mt-3 ${sM}`,children:p(Ok)})]}):n.length===0?S5("div",{className:"min-w-0",children:[h?C0("h4",{className:gp,children:D0(h)}):null,c?C0("p",{className:sM,children:p("This menu has no links yet \u2014 add them in {place}.",{place:p("Storefront \u2192 Menus")})}):null]}):a&&m?S5("details",{className:"min-w-0 border-b border-line",children:[S5("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:[D0(h),C0("span",{"aria-hidden":!0,children:"\uFF0B"})]}),C0("div",{className:"pb-3",children:C0(cM,{items:n,showDividers:s})})]}):S5("div",{className:"min-w-0",children:[h?C0("h4",{className:gp,children:D0(h)}):null,C0(cM,{items:n,showDividers:s})]})}import{createContext as jq,useCallback as Z3,useContext as Kq,useEffect as $q,useMemo as Yq,useRef as AM,useState as Ne}from"react";function _a(e){return typeof e=="number"?String(e):""}function nM(e){let t=_a(e);return t&&`${t} LUG`}function vp(e){let t=e.spec?.lugs;return typeof t=="number"?t:null}function hM(e){let t=new Set;for(let a of e){let s=vp(a);s!==null&&t.add(s)}return[...t].sort((a,s)=>a-s)}function Bq(e){return e.length===0?null:{min:Math.min(...e),max:Math.max(...e)}}function Or(e){let t=Bq(e);return t?UC(t.min,t.max):null}function mM(e){let t=new Set;for(let a of e)for(let s of a.sizes??[])typeof s=="number"&&t.add(s);return[...t].sort((a,s)=>a-s)}var pM=5,gM=.2;function Ee(e){if(!e)return{holes:null,circles:[]};let t=e.replace(/\([^)]*\)?/g," ").trim(),a=t.match(/^\s*(\d+)\s*[x×*]\s*(.+)$/i),s=a?Number(a[1]):null,l=(a?a[2]:t).split(/[-/,]/).map(r=>Number(r.trim().replace(/[^\d.]/g,""))).filter(r=>Number.isFinite(r)&&r>0);return{holes:s,circles:l}}function fp(e){if(!e||e.length<2)return null;let[t,a]=e;return!Number.isFinite(t)||!Number.isFinite(a)?null:[Math.min(t,a),Math.max(t,a)]}function vM(e){if(!e)return null;let t=Ee(e.pcd||e.boltPattern);if(t.holes===null||t.circles.length===0)return null;let a=t.circles[0],s=fp(e.etRange),c=s?[s[0]-pM,s[1]+pM]:null;return{holes:t.holes,circle:a,centreBore:typeof e.centreBore=="number"&&e.centreBore>0?e.centreBore:null,etRange:c}}function Zq(e,t){return Math.abs(e-t)<=gM}function fM(e,t,a){let s=Ee(e);return(s.holes??t)!==a.holes?!1:s.circles.some(l=>Zq(l,a.circle))}function bM(e,t){return t.centreBore===null?!0:e+gM>=t.centreBore}function Dq(e,t){return e[0]<=t[1]&&e[1]>=t[0]}function L8(e,t){let a=`${t.holes}\xD7${t.circle}`;return e.pcds.length===0?{key:"unverifiable",wheel:"",vehicle:a}:e.pcds.some(s=>fM(s,e.lugs,t))?t.etRange!==null&&e.etRange!==null&&!Dq(e.etRange,t.etRange)?{key:"et",wheel:Gr(e.etRange),vehicle:Gr(t.etRange)}:e.centreBores.length>0&&!e.centreBores.some(s=>bM(s,t))?{key:"bore",wheel:`${e.centreBores.join(" / ")} mm`,vehicle:`${t.centreBore} mm`}:null:{key:"pcd",wheel:e.pcds.join(" / "),vehicle:a}}function xM(e){return{pcds:e.spec?.pcds??[],lugs:e.spec?.lugs??null,etRange:fp(e.spec?.etRange),centreBores:e.spec?.centreBores??[]}}function qr(e){let t=e.et,a=e.rearEt??e.et;return{pcds:e.boltPattern?[e.boltPattern]:[],lugs:null,etRange:t==null||a==null?null:[Math.min(t,a),Math.max(t,a)],centreBores:e.centreBore==null?[]:[e.centreBore]}}function Wr(e,t){let a=L8(e,t);return a===null||a.key!=="et"?a:L8(e,{...t,etRange:null})}function bp(e,t){return L8(xM(e),t)}function zM(e,t){return L8(qr(e),t)}function Oq(e,t){return Wr(qr(e),t)===null}function yM(e,t){return t?e.filter(a=>Oq(a,t)):[...e]}function Gq(e,t){return Wr(xM(e),t)===null}function Ur(e,t){return t?e.filter(a=>Gq(a,t)):e}var uM=1;function qq(e,t){let a=e.spec?.pcds??[],s=e.spec?.centreBores??[],c=fp(e.spec?.etRange);if(!t)return{pcds:a,etRange:c,centreBores:s};let l=e.spec?.lugs??null,r=a.filter(i=>fM(i,l,t)),o=s.filter(i=>bM(i,t));return{pcds:r.length>0?r:a,etRange:c,centreBores:o.length>0?o:s}}function Gr(e){return Mr(e[0],e[1])}function dM(e){let t=e.slice(0,uM).join(" / "),a=e.length-uM;return a>0?`${t} +${a}`:t}var wM="\xB7";function jr(e){return[{fieldKey:"diameter",text:Or(e.sizes)},{fieldKey:"holes",text:nM(e.spec?.lugs)}].filter(t=>!!t.text)}function CM(e,t){let{pcds:a,etRange:s,centreBores:c}=qq(e,t),l=[];return a.length>0&&l.push({fieldKey:"pcd",text:`PCD ${dM(a)}`}),s!==null&&l.push({fieldKey:"et",text:Gr(s)}),c.length>0&&l.push({fieldKey:"center_bore",text:`C/B ${dM(c)} mm`}),l}function Ve(e){return e?[{key:"pcd",name:"Bolt pattern",value:`${e.holes}\xD7${e.circle}`},{key:"bore",name:"Hub bore",value:e.centreBore!==null?`${e.centreBore} mm bore`:null},{key:"et",name:"Offset",value:e.etRange!==null?Gr(e.etRange):null}]:[]}function kM(e){return Ve(e).map(t=>t.value).filter(t=>t!==null).join(" \xB7 ")}var Ia={default:"Sort \xB7 Featured",new:"Newest","price-asc":"Price \xB7 Low","price-desc":"Price \xB7 High",name:"Name A\u2013Z"},Kr={process:null,size:null,lugs:null,finish:null,priceMin:null,priceMax:null,sort:"default"};function Wq(e,t,a){return!(t.process&&e.process!==t.process||t.size&&!e.sizes.includes(t.size)||t.lugs!=null&&vp(e)!==t.lugs||t.finish&&!e.finishes.some(s=>s.family===t.finish)||!pr(e.prices,a,t.priceMin,t.priceMax))}function Uq(e,t,a){return[...e].sort((s,c)=>{switch(t){case"price-asc":return ue(s.prices,c.prices,a,"asc");case"price-desc":return ue(s.prices,c.prices,a,"desc");case"name":return s.name.localeCompare(c.name);case"new":return(c.badge==="new"?1:0)-(s.badge==="new"?1:0);default:return 0}})}function MM(e,t,a,s=null){let c=Ur(e,s);return Uq(c.filter(l=>Wq(l,t,a)),t.sort,a)}import{jsx as Jq}from"react/jsx-runtime";var HM={fit:null,name:"",resolving:!1,unresolved:!1};function Xq(e,t){return e.fit===t.fit&&e.name===t.name&&e.resolving===t.resolving&&e.unresolved===t.unresolved}var n4=()=>{},FM=jq({filters:Kr,setProcess:n4,setSize:n4,setLugs:n4,setFinish:n4,setPriceMin:n4,setPriceMax:n4,setSort:n4,clearAll:n4,reportCount:n4,total:0,reportLugs:n4,lugOptions:[],reportSizes:n4,sizeOptions:[],reportFinishes:n4,finishOptions:[],optionsReported:!1,scrollProcess:null,vehicle:HM,publishVehicle:n4}),$r="data-catalog-collection",SM=(e,t)=>e-t;function LM(e,t){return e.length===t.length&&e.every((a,s)=>a===t[s])}function xp(e){let t=AM(new Map),[a,s]=Ne([]),c=Z3((l,r)=>{let o=t.current.get(l);if(o&&LM(o,r))return;t.current.set(l,r);let i=new Set;for(let h of t.current.values())for(let m of h)i.add(m);let n=[...i].sort(e);s(h=>LM(h,n)?h:n)},[e]);return[a,c]}function TM({children:e}){let[t,a]=Ne(Kr),s=Z3(U=>a(V=>({...V,process:U})),[]),c=Z3(U=>a(V=>({...V,size:U})),[]),l=Z3(U=>a(V=>({...V,lugs:U})),[]),r=Z3(U=>a(V=>({...V,finish:U})),[]),o=Z3(U=>a(V=>({...V,priceMin:U})),[]),i=Z3(U=>a(V=>({...V,priceMax:U})),[]),n=Z3(U=>a(V=>({...V,sort:U})),[]),h=Z3(()=>a(U=>({...Kr,sort:U.sort})),[]),[m,u]=Ne(HM),d=Z3(U=>{u(V=>Xq(V,U)?V:U)},[]),v=AM(new Map),[g,b]=Ne(0),f=Z3((U,V)=>{if(v.current.get(U)===V)return;v.current.set(U,V);let j=0;for(let W of v.current.values())j+=W;b(j)},[]),[w,z]=xp(SM),[M,S]=xp(SM),[H,I]=xp(MC),[E,O]=Ne(!1),T=Z3((U,V)=>{O(!0),z(U,V)},[z]),P=Z3((U,V)=>{O(!0),S(U,V)},[S]),N=Z3((U,V)=>{O(!0),I(U,V)},[I]),[D,Z]=Ne(null);$q(()=>{let V=0,J=()=>{V=0;let W=null,n1=document.querySelectorAll(`[${$r}]`);for(let z1 of n1){let $=z1.getBoundingClientRect();if($.top<=140&&$.bottom>140){W=z1.getAttribute($r)??null;break}}Z(W)},j=()=>{V||(V=requestAnimationFrame(J))};return J(),window.addEventListener("scroll",j,{passive:!0}),window.addEventListener("resize",j),()=>{window.removeEventListener("scroll",j),window.removeEventListener("resize",j),V&&cancelAnimationFrame(V)}},[]);let _=Yq(()=>({filters:t,setProcess:s,setSize:c,setLugs:l,setFinish:r,setPriceMin:o,setPriceMax:i,setSort:n,clearAll:h,reportCount:f,total:g,reportLugs:T,lugOptions:w,reportSizes:P,sizeOptions:M,reportFinishes:N,finishOptions:H,optionsReported:E,scrollProcess:D,vehicle:m,publishVehicle:d}),[t,s,c,l,r,o,i,n,h,f,g,T,w,P,M,N,H,E,D,m,d]);return Jq(FM.Provider,{value:_,children:e})}function Yr(){return Kq(FM)}import{useCallback as wW,useEffect as to,useRef as XM,useState as Ba}from"react";function PM({email:e,firstName:t,interests:a,frequency:s},c){return{email:e.trim(),firstName:t?.trim()||void 0,interests:a&&a.length?a:void 0,frequency:s||void 0,source:c}}var D3={popup:"shop_popup",subscribeSection:"subscribe_section",subscribeBlogsSection:"subscribe_blogs_section",footerSignup:"footer_signup",stockAlertOptIn:"stock_alert_optin"};var Qq={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:900};function EM(e){let t={};for(let a of Hl){let s=e[a];if(!s)continue;let c=P9({role:s},Qq);c.fontFamily&&(t[pm[a].font]=c.fontFamily),c.fontSize&&(t[pm[a].size]=c.fontSize)}return t}import{useEffect as aW}from"react";import{useEffect as _M,useState as A8}from"react";var zp=new Set,yp=new Set,wp=new Set;function VM(e){return zp.add(e),()=>zp.delete(e)}function Fo1(){zp.forEach(e=>e())}function NM(e){return yp.add(e),()=>yp.delete(e)}function To1(){yp.forEach(e=>e())}function Xr(e){return wp.add(e),()=>wp.delete(e)}function Po1(){wp.forEach(e=>e())}import{jsx as _e,jsxs as tW}from"react/jsx-runtime";function L5(e,t){let[a,s]=A8(void 0),[c,l]=A8(0);return _M(()=>{if(t!==void 0)return;if(!e){s(null);return}let r=!1;return v0.getForm(e).then(o=>{r||s(o)}).catch(()=>{r||s(null)}),()=>{r=!0}},[t,e,c]),_M(()=>{if(t===void 0)return Xr(()=>l(r=>r+1))},[t]),t!==void 0?t:a}var eW="Something went wrong \u2014 your submission wasn't sent. Please try again.";function Ie(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function g7({form:e,formSlug:t,editing:a=!1}){let[s,c]=A8({}),[l,r]=A8(""),[o,i]=A8(!1),[n,h]=A8(!1),[m,u]=A8(null);async function d(v){if(v.preventDefault(),!(a||o||!e||!t)){i(!0),u(null);try{let g=e.fields.map(b=>({fieldKey:b.key,value:s[b.key]??""}));await v0.submitForm(t,{answers:g,...l?{company:l}:{}}),h(!0)}catch{u(eW)}finally{i(!1)}}}return{valueOf:v=>s[v]??"",set:(v,g)=>c(b=>({...b,[v]:g})),honeypot:l,setHoneypot:r,submitting:o,done:n,error:m,handleSubmit:d}}function Re({value:e,onChange:t}){return _e("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:a=>t(a.target.value)})}function v7({field:e,value:t,onChange:a,className:s,rows:c=5,placeholder:l}){let r=l??e.placeholder;return e.type==="textarea"?_e("textarea",{required:e.required,rows:c,value:t,placeholder:r,onChange:o=>a(o.target.value),className:s}):e.type==="select"?tW("select",{required:e.required,value:t,onChange:o=>a(o.target.value),className:s,children:[_e("option",{value:"",children:r||"Select\u2026"}),e.options.map(o=>_e("option",{value:o,children:o},o))]}):e.type==="checkbox"?_e("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:o=>a(o.target.checked?"true":""),className:s}):_e("input",{type:e.type==="email"?"email":e.type==="tel"?"tel":"text",required:e.required,value:t,placeholder:r,onChange:o=>a(o.target.value),className:s})}import{jsx as Ra}from"react/jsx-runtime";var IM="font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim";function S4({size:e,children:t}){return e==="tall"?Ra("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:Ra("p",{className:IM,children:t})}):Ra("section",{className:"relative z-[2] border-t border-line bg-surface",children:Ra("div",{className:"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))]",children:Ra("p",{className:IM,children:t})})})}import{jsx as t3,jsxs as Jr}from"react/jsx-runtime";var RM="w-full border-2 border-line bg-bg px-4 py-3.5 font-display text-[17px] tracking-[-0.005em] text-fg outline-none transition-colors placeholder:text-fg-dim hover:border-fg-dim focus:border-accent";function sW({field:e,value:t,onChange:a}){let s={field:e,value:t,onChange:a};return e.type==="checkbox"?Jr("label",{className:"flex items-start gap-3",children:[t3(v7,{...s,className:"mt-1 size-4 accent-accent"}),Jr("span",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.16em] text-fg",children:[e.label,e.required?t3("span",{className:"text-accent",children:" *"}):null]})]}):t3(D2,{label:e.label,required:e.required,children:t3(v7,{...s,className:e.type==="textarea"?RM+" resize-y":RM})})}function Cp({formSlug:e,heading:t,intro:a,submitText:s,finePrint:c,form:l,editing:r=!1}={}){let o=L5(e,l);if(o===void 0)return t3(S4,{size:"short",children:p("Loading form\u2026")});if(o===null)return t3(S4,{size:"short",children:r?p("Choose a form in the inspector, under Form."):"This form is unavailable."});let i=(t??"").trim()||o.title;return t3("section",{className:"relative z-[2] border-t border-line bg-surface",children:Jr("div",{className:"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))]",children:[i&&t3("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-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:i}),(a??"").trim()&&t3("p",{className:"mb-11 max-w-[640px] font-display text-[16px] leading-[1.6] text-fg-dim",children:a}),t3(kp,{form:o,formSlug:e,submitText:s,finePrint:c,editing:r})]})})}function kp({form:e,formSlug:t,submitText:a,finePrint:s,editing:c=!1,onSent:l}){let{valueOf:r,set:o,honeypot:i,setHoneypot:n,submitting:h,done:m,error:u,handleSubmit:d}=g7({form:e,formSlug:t,editing:c});aW(()=>{m&&l?.()},[m]);let v=(a??"").trim()||e.submitButtonText?.trim()||"Submit";return m?t3("p",{role:"status",className:"max-w-[560px] font-serif text-[19px] italic leading-[1.6] text-fg-dim",children:Ie(e)}):Jr("form",{className:"flex max-w-[720px] flex-col gap-5",onSubmit:d,children:[e.fields.map(g=>t3(sW,{field:g,value:r(g.key),onChange:b=>o(g.key,b)},g.key)),t3(Re,{value:i,onChange:n}),u&&t3("p",{role:"alert",className:"font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:u}),t3("button",{type:c?"button":"submit",disabled:h,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:h?"Sending\u2026":v}),e.consentText?.trim()&&t3("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:e.consentText}),(s??"").trim()&&t3("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:s})]})}import{jsx as Mp,jsxs as lW}from"react/jsx-runtime";import{jsx as cW}from"react/jsx-runtime";function BM(){return cW("span",{className:"block h-px w-[30px] bg-current"})}function rW(e,t){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var oW="inline-block w-fit bg-accent px-3.5 py-1.5 font-mono text-[length:var(--size-label,12px)] font-semibold uppercase tracking-[0.16em] text-bg",iW="flex items-center gap-3.5 font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.3em] opacity-80 max-[800px]:text-[length:var(--size-label,12px)] max-[800px]:tracking-[0.25em]";function N1({text:e,look:t="plain",size:a=13,scaled:s=!0,className:c="",classNameAfter:l=""}){if(t==="line")return lW("div",{className:[c,iW,l].filter(Boolean).join(" "),children:[Mp(BM,{}),Mp("span",{children:k(e)})]});let r=t==="filled"?oW:rW(a,s);return Mp("span",{className:[c,r,l].filter(Boolean).join(" "),children:k(e)})}import{useCallback as ZM,useRef as nW,useState as DM}from"react";function Qr({source:e,dryRun:t=!1}){let[a,s]=DM("idle"),[c,l]=DM(null),r=nW(!1),o=ZM(()=>{r.current=!1,l(null),s("idle")},[]),i=ZM(async n=>{if(!r.current){if(!ve(n.email)){s("invalid");return}r.current=!0,l(null),s("sending");try{t||await v0.createNewsletterSubscription(PM(n,e))}catch(h){r.current=!1,l(h),s("error");return}r.current=!1,s("sent")}},[e,t]);return{status:a,error:c,submit:i,reset:o}}function Be(){return"/edit"}import{createContext as uW,useCallback as eo,useContext as dW,useEffect as gW,useMemo as vW,useRef as fW,useState as Ap}from"react";var OM="/edit";function GM(e){return e===OM||e.startsWith(`${OM}/`)}var WM="storefront-subscribe-seen",UM="storefront-popup-closed-at",hW=1440*60*1e3,mW=["/checkout","/cart"];function qM(e){let t=e.split(/[?#]/)[0]||"/",a=t.startsWith("/")?t:`/${t}`;return a.length>1?a.replace(/\/+$/,"")||"/":a}function Sp(e,t,a){let s=qM(e);return mW.some(c=>s===c||s.startsWith(`${c}/`))?!1:t==="all"?!0:a.some(c=>qM(c)===s)}function pW(e,t,a,s){if(e==="never")return!1;if(a.session.getItem(WM)==="1")return!0;if(e==="visit")return!1;let c=Number(a.local.getItem(UM));return!Number.isFinite(c)||c<=0?!1:s-c<t*hW}function Lp(e,t){e.session.setItem(WM,"1"),e.local.setItem(UM,String(t))}function jM(e,t){return e==="exit"&&!t?"delay":e}function KM(e,t,a){let s=a-t;return s<=0?100:Math.min(100,Math.max(0,e/s*100))}function $M(e,t,a){return!e.autoOpen||e.inEditor||!Sp(e.path,e.showOn,e.showOnPages)||e.hideAfter!=="never"&&!Xw(t.session)?!1:!pW(e.hideAfter,e.hideDays,t,a)}import{jsx as yW}from"react/jsx-runtime";var YM=uW(null),Hp={session:Jw,local:e3};function bW(){try{return window.matchMedia("(hover: hover) and (pointer: fine)").matches}catch{return!1}}var xW=15,zW=[];function gi1({children:e,disableAutoTrigger:t,autoOpen:a=!1,autoOpenDelaySec:s=xW,trigger:c="delay",scrollPercent:l=50,showOn:r="all",showOnPages:o=zW,hideAfter:i="visit",hideDays:n=7}){let[h,m]=Ap(!1),[u,d]=Ap("chosen"),[v,g]=Ap({}),b=Be()??"/",f=GM(b),w=Sp(b,r,o),z=fW(!1),M=eo(O=>{g(O??{}),d("newsletter"),m(!0)},[]),S=eo(()=>{z.current=!0,g({}),d("chosen"),m(!0)},[]),H=eo(()=>Lp(Hp,Date.now()),[]),I=eo(()=>{m(!1),Lp(Hp,Date.now())},[]);gW(()=>{if(t||z.current||!$M({autoOpen:a,inEditor:f,path:b,showOn:r,showOnPages:o,hideAfter:i,hideDays:n},Hp,Date.now()))return;let T=jM(c,bW());if(T==="scroll"){let N=()=>{KM(window.scrollY,window.innerHeight,document.documentElement.scrollHeight)>=l&&(window.removeEventListener("scroll",N),S())};return window.addEventListener("scroll",N,{passive:!0}),()=>window.removeEventListener("scroll",N)}if(T==="exit"){let N=D=>{D.relatedTarget===null&&D.clientY<=0&&(document.removeEventListener("mouseout",N),S())};return document.addEventListener("mouseout",N),()=>document.removeEventListener("mouseout",N)}let P=window.setTimeout(S,Math.max(0,s)*1e3);return()=>window.clearTimeout(P)},[t,a,f,w,c,s,l,i,n,S]);let E=vW(()=>({isOpen:h,mode:u,open:M,close:I,markSent:H,prefillEmail:v.email??"",signupSource:v.source??D3.popup}),[h,u,M,I,H,v]);return yW(YM.Provider,{value:E,children:e})}function Fp(){let e=dW(YM);if(!e)throw new Error("useSubscribePopup() must be called inside <SubscribePopupProvider>. Mount the provider in app/layout.tsx.");return e}import{Fragment as MW,jsx as e0,jsxs as C2}from"react/jsx-runtime";var CW=50,ao="font-[family-name:var(--pp-fieldlabel-font,var(--font-mono))] text-[length:var(--pp-fieldlabel-size,12px)]";function kW(e){let t=N9({sectionAccent:g5(e.sectionAccent)}),a=fl(e.sectionCorners,e.sectionCornerSides);return{className:t?.className??"",style:{...t?.style??{},...a??{},...EM(e.textStyles)}}}function JM({content:e,open:t=!0,onClose:a,onSent:s,inline:c=!1,prefillEmail:l="",source:r=D3.popup,mode:o="chosen",form:i}){let n=o==="chosen"?e.formSlug:"",h=L5(n||void 0,c?void 0:i??null),m=!!n&&!!h,[u,d]=Ba(""),[v,g]=Ba(""),[b,f]=Ba(()=>new Set(e.interests.slice(0,1))),[w,z]=Ba(e.frequencies[0]??""),{status:M,error:S,submit:H,reset:I}=Qr({source:r,dryRun:c}),E=M==="sending",O=M==="invalid"?e.emailInvalidText:M==="error"?S instanceof G4?S.message:e.submitErrorText:null,[T,P]=Ba(""),N=XM(null),D=XM(null);to(()=>{t&&I()},[t,I]),to(()=>{M==="sent"&&!c&&s?.()},[M]);let Z=wW(()=>a?.(),[a]);if(M4({active:!c&&t,onDismiss:Z}),to(()=>{if(c||!t)return;let K=window.setTimeout(()=>D.current?.focus(),CW);return()=>window.clearTimeout(K)},[c,t]),to(()=>{!t||!l||g(l)},[t,l]),!c&&!t)return null;function _(K){f(u1=>{let b1=new Set(u1);return b1.has(K)?b1.delete(K):b1.add(K),b1})}function U(K){K.target===N.current&&a?.()}function V(K){K.preventDefault();let u1=v.trim().toLowerCase();P(u1),H({email:u1,firstName:u,interests:[...b],frequency:w})}let J=e.successBody.replace(/\{email\}/g,T).replace(/\{issue\}/g,e.issueNumber),j=kW(e),W=e.formSide==="left",n1=C2("div",{className:"flex flex-wrap items-center justify-between gap-5 uppercase tracking-[0.18em] text-fg-dim",children:[C2("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:[e0("span",{className:"block h-1.5 w-1.5 rounded-full bg-accent"}),k(e.finePrint)]}),!c&&e0("button",{type:"button",onClick:a,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:k(e.dismissText)})]}),z1=C2(MW,{children:[e0("span",{className:"contents [&>span]:font-[family-name:var(--pp-formeyebrow-font,var(--font-mono))] [&>span]:text-[length:var(--pp-formeyebrow-size,var(--size-label,13px))]",children:e0(N1,{text:e.formLabel,scaled:!1,className:"mb-[18px]"})}),e0("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:Y(e.formHeading)}),e0("p",{className:"mt-3.5 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:k(e.formIntro,!0)})]}),$="px-11 py-12 max-[880px]:px-[26px] max-[880px]:py-8",c1;m&&h?c1=C2("div",{className:`relative flex min-h-[560px] flex-col max-[880px]:min-h-0 ${$}`,children:[z1,e0("div",{className:"mt-8",children:e0(kp,{form:h,formSlug:n,editing:c,onSent:s})}),e0("div",{className:"mt-auto pt-7",children:n1})]}):M!=="sent"?c1=C2("form",{onSubmit:V,noValidate:!0,className:`relative flex min-h-[560px] flex-col max-[880px]:min-h-0 ${$}`,children:[z1,C2("div",{className:"mt-8 flex flex-col gap-[18px]",children:[e0(D2,{label:k(e.firstNameLabel),required:!0,labelFace:ao,children:e0("input",{type:"text",value:u,onChange:K=>d(K.target.value),placeholder:e.firstNamePlaceholder,required:!0,className:"border border-line bg-surface px-4 py-3.5 font-display text-[15px] tracking-[-0.005em] text-fg outline-none transition-colors placeholder:tracking-[0.04em] placeholder:text-fg-dim focus:border-accent"})}),e0(D2,{label:k(e.emailLabel),required:!0,labelFace:ao,children:e0("input",{type:"email",value:v,onChange:K=>g(K.target.value),placeholder:e.emailPlaceholder,required:!0,className:"border border-line bg-surface px-4 py-3.5 font-display text-[15px] tracking-[-0.005em] text-fg outline-none transition-colors placeholder:tracking-[0.04em] placeholder:text-fg-dim focus:border-accent"})}),C2("div",{className:"mt-1.5 flex flex-col gap-2.5",children:[e0(y8,{labelFace:ao,children:k(e.interestsLabel)}),e0("div",{className:"flex flex-wrap gap-2",children:e.interests.map((K,u1)=>{let b1=b.has(K);return e0("button",{type:"button",onClick:()=>_(K),"aria-pressed":b1,className:["select-none border px-3.5 py-2.5 font-[family-name:var(--pp-option-font,var(--font-mono))] text-[length:var(--pp-option-size,12px)] uppercase tracking-[0.22em] transition-all",b1?"border-accent bg-accent text-bg":"border-line text-fg-dim hover:text-fg"].join(" "),children:K},`${K}-${u1}`)})})]}),e.frequencies.length>0&&C2("div",{className:"mt-1.5 flex flex-col gap-2.5",children:[e0(y8,{labelFace:ao,children:k(e.frequencyLabel)}),e0("div",{className:"flex border border-line",children:e.frequencies.map((K,u1)=>{let b1=w===K;return e0("button",{type:"button",onClick:()=>z(K),"aria-pressed":b1,className:["flex-1 px-2.5 py-3.5 font-[family-name:var(--pp-option-font,var(--font-mono))] text-[length:var(--pp-option-size,12px)] uppercase tracking-[0.24em] transition-all",u1<e.frequencies.length-1?"border-r border-line":"",b1?"bg-accent text-bg":"text-fg-dim hover:text-fg"].join(" "),children:K},`${K}-${u1}`)})})]})]}),C2("div",{className:"mt-auto flex flex-col gap-3.5 pt-7",children:[O&&e0("p",{role:"alert",className:"border border-red-300 bg-red-50 px-4 py-3 font-mono text-[12px] uppercase tracking-[0.18em] text-red-700",children:O}),C2("button",{type:"submit",disabled:E,className:"group flex items-center justify-between gap-[18px] border border-btn bg-btn px-6 py-[18px] 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:[e0("span",{children:e.submitText}),e0("span",{className:"transition-transform group-hover:translate-x-[4px]",children:E?"\u2026":"\u2192"})]}),n1]})]}):c1=C2("div",{className:"flex min-h-[560px] flex-col justify-center gap-6 px-11 py-12 max-[880px]:min-h-0 max-[880px]:px-[26px] max-[880px]:py-8",style:{animation:"subscribe-fade 0.25s ease"},children:[e0("div",{className:"flex h-16 w-16 items-center justify-center border border-accent font-display text-[32px] text-accent",children:"\u2713"}),e0("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:Y(e.successHeading)}),e0("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:k(J,!0)}),!c&&e0("button",{type:"button",onClick:a,className:"self-start border border-line px-6 py-[18px] font-mono text-[14px] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:k(e.keepBrowsingText)})]});let g1=C2("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 ${j.className}`.trim(),style:{...j.style,background:"var(--bg)",color:"var(--fg)",boxShadow:c?"0 30px 80px -30px rgba(0,0,0,0.5)":"0 60px 120px -20px rgba(0,0,0,0.7)",animation:c?void 0:"subscribe-rise 0.35s cubic-bezier(.2,.7,.2,1)"},children:[!c&&e0("button",{ref:D,type:"button",onClick:a,"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"}),C2("div",{className:["grid max-h-[calc(100vh-48px)] overflow-hidden max-[880px]:max-h-[88dvh] max-[880px]:grid-cols-1 max-[880px]:overflow-auto",W?"grid-cols-[1fr_1.05fr]":"grid-cols-[1.05fr_1fr]"].join(" "),children:[C2("aside",{className:["relative flex min-h-[560px] flex-col justify-between overflow-hidden border-line px-[var(--sf-site-gutter,40px)] py-11 max-[880px]:min-h-[380px] max-[880px]:border-r-0 max-[880px]:border-l-0 max-[880px]:border-b max-[880px]:px-[26px] max-[880px]:py-8",W?"order-2 border-l max-[880px]:order-none":"border-r",e.valuePanelOnPhone?"":"max-[880px]:hidden"].join(" "),style:{background:"var(--subscribe-panel-bg)"},children:[e0("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)"}}),C2("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:[e0("div",{className:"absolute inset-[60px] rounded-full border",style:{borderColor:"color-mix(in oklab, var(--accent) 18%, transparent)"}}),e0("div",{className:"absolute inset-[140px] rounded-full border",style:{borderColor:"color-mix(in oklab, var(--accent) 14%, transparent)"}})]}),C2("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",W&&!c?"pr-[52px]":""].join(" "),children:[e0("span",{children:k(e.metaLabel)}),(e.issueLabel||e.issueNumber)&&C2("span",{children:[k(e.issueLabel)," ",e0("strong",{className:"font-normal text-accent",children:e.issueNumber})]})]}),C2("div",{className:"relative z-[2] flex flex-col gap-[18px] py-8",children:[e0("span",{className:"contents [&>span]:font-[family-name:var(--pp-eyebrow-font,var(--font-mono))] [&>span]:text-[length:var(--pp-eyebrow-size,var(--size-label,12px))]",children:e0(N1,{text:e.kicker,size:12,scaled:!1})}),e0("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:Y(e.heading)}),e0("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:k(e.deck,!0)})]}),e.stats.length>0&&e0("div",{className:"relative z-[2] grid grid-cols-2 gap-[18px] border-t pt-6",style:{borderColor:"color-mix(in oklab, var(--accent) 18%, var(--site-line))"},children:e.stats.map((K,u1)=>C2("div",{children:[e0("div",{className:"mb-1.5 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:k(K.label)}),e0("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:k(K.value)})]},`${K.label}-${u1}`))})]}),c1]})]});return c?e0("div",{className:"flex w-full justify-center p-6","data-subscribe-preview":!0,children:g1}):C2("div",{ref:N,onClick:U,role:"dialog","aria-modal":"true","aria-labelledby":"subscribe-modal-title",className:"fixed inset-0 z-[90] flex items-center justify-center p-6 backdrop-blur-[8px] max-[880px]:items-end max-[880px]:p-0",style:{background:"color-mix(in oklab, var(--bg) 78%, transparent)",animation:"subscribe-fade 0.25s ease"},children:[g1,e0("style",{children:`
|
|
4
4
|
@keyframes subscribe-fade { from { opacity: 0 } to { opacity: 1 } }
|
|
@@ -19,7 +19,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
19
19
|
`;function _p(){let{chromePlaceholder:e,themeFromDocument:t}=N3(),{chat:a,selected:s,select:c}=sw();return e||t||!a.enabled?null:DW("div",{className:"sf-preview-chat-pick","data-selected":s||void 0,onClick:l=>{l.stopPropagation(),c()},children:[Np("style",{children:ZW}),Np(lS,{preview:!0,children:Np(Vp,{title:a.title,subtitle:a.subtitle,greeting:a.greeting})})]})}import{lazy as OW,Suspense as GW}from"react";import{jsx as oS}from"react/jsx-runtime";function Ip(e,t={}){let a=OW(async()=>{let l=await e();return{default:"default"in l?l.default:l}}),s=t.loading?t.loading():null;function c(l){return oS(GW,{fallback:s,children:oS(a,{...l})})}return c}import{useEffect as fU,useRef as bU}from"react";import{jsx as Rp,jsxs as qW}from"react/jsx-runtime";import{useEffect as WW,useState as UW}from"react";function k0({fallback:e,className:t,src:a,alt:s="",objectPosition:c,objectFit:l="cover",sizes:r="100vw",priority:o=!1,deferFetch:i=!1,showBackground:n=!0,treatment:h}){let[m,u]=UW(!1),d=a||"";WW(()=>{u(!1)},[d]);let v=Hx(d),g=!d||m;return qW("div",{className:`relative h-full w-full overflow-hidden ${t??""}`,children:[Rp("div",{className:"absolute inset-0 flex items-center justify-center",style:n?{background:"var(--site-surface)"}:void 0,children:g?e:null}),d&&(v?Rp("img",{src:d,alt:s,decoding:"async",...i?{loading:"lazy"}:{},className:`absolute inset-0 h-full w-full${h?.className?` ${h.className}`:""}`,style:{display:m?"none":"block",objectFit:l,...c?{objectPosition:c}:{},...h?.style??{}},onError:()=>u(!0)}):Rp(sl,{src:d,alt:s,fill:!0,sizes:r,priority:o,...h?.className?{className:h.className}:{},style:{display:m?"none":"block",objectFit:l,...c?{objectPosition:c}:{},...h?.style??{}},onError:()=>u(!0)}))]})}import{useId as eU}from"react";var jW=25.4,Da=400,co=152,KW=58,iS=co*Math.cos(KW*Math.PI/180),$W=14,YW=Da/2,XW={sectionWidth:225,aspectRatio:60,rimDiameter:17};function hS(e){let t=o4(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:XW}function mS(e){let t=e.rimDiameter*jW/2,a=t+e.sectionWidth*e.aspectRatio/100,s=co*(e.sectionWidth/a),c=t/a;return{cy:YW,rx:iS,ry:co,cxf:Da/2-s/2-$W,dx:s,rimRx:iS*c,rimRy:co*c}}var z0=e=>e.toFixed(1);function lo(e,t,a,s=!1){let c=e.cxf+t*e.dx,[l,r]=s?[e.cy+e.ry,e.cy-e.ry]:[e.cy-e.ry,e.cy+e.ry];return`M${z0(c)} ${z0(l)} A${z0(e.rx)} ${z0(e.ry)} 0 0 ${a} ${z0(c)} ${z0(r)}`}function Bp(e,t,a){let s=e.cxf+t*e.dx,c=e.cxf+a*e.dx,l=e.cy-e.ry,r=e.cy+e.ry;return`M${z0(s)} ${z0(l)} L${z0(c)} ${z0(l)} A${z0(e.rx)} ${z0(e.ry)} 0 0 1 ${z0(c)} ${z0(r)} L${z0(s)} ${z0(r)} A${z0(e.rx)} ${z0(e.ry)} 0 0 0 ${z0(s)} ${z0(l)} Z`}function so(e,t,a){let s=a*Math.PI;return[e.cxf+t*e.dx+e.rx*Math.sin(s),e.cy-e.ry*Math.cos(s)]}function pS(e,t,a,s,c){let[l,r]=so(e,t,s),[o,i]=so(e,t,c),[n,h]=so(e,a,c),[m,u]=so(e,a,s);return`M${z0(l)} ${z0(r)} A${z0(e.rx)} ${z0(e.ry)} 0 0 1 ${z0(o)} ${z0(i)} L${z0(n)} ${z0(h)} A${z0(e.rx)} ${z0(e.ry)} 0 0 0 ${z0(m)} ${z0(u)} L${z0(l)} ${z0(r)} Z`}var nS=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],JW={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}}]},QW=[["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 uS(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return nS;for(let[a,s]of QW)if(t.includes(` ${a} `))return JW[s];return nS}var ro="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{Fragment as Oa,jsx as d0,jsxs as H5}from"react/jsx-runtime";var h4={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},tU=[.8,.52,.24],dS=.4,gS=.88,vS=.3,fS=5,bS=.3,xS=.84,aU=7,L0=e=>Math.round(e*10)/10;function Zp({size:e,type:t,className:a}){let s=eU().replace(/[^a-zA-Z0-9]/g,""),c={tread:`${s}-tread`,wall:`${s}-wall`,rim:`${s}-rim`,shadow:`${s}-shadow`,crown:`${s}-crown`},l=mS(hS(e)),r=Bp(l,0,1),o=e?`${e} tyre illustration`:"Tyre illustration";return H5("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${Da} ${Da}`,role:"img","aria-label":o,fill:"none",className:a??"block h-full w-full",children:[d0("title",{children:o}),H5("defs",{children:[d0(cU,{id:c}),d0("clipPath",{id:c.crown,children:d0("path",{d:r})})]}),d0("ellipse",{cx:L0(l.cxf+l.dx/2),cy:L0(l.cy+l.ry-4),rx:L0(l.dx*1.5),ry:16,fill:`url(#${c.shadow})`}),d0(lU,{g:l,id:c}),d0(rU,{g:l,id:c}),d0("path",{d:r,fill:`url(#${c.tread})`}),d0("g",{clipPath:`url(#${c.crown})`,children:uS(t).map(i=>d0(sU,{g:l,column:i},i.f[0]))}),d0("path",{d:lo(l,0,0,!0),stroke:"currentColor",strokeOpacity:h4.shoulder,strokeWidth:1.2}),d0("path",{d:lo(l,1,1),stroke:"currentColor",strokeOpacity:h4.silhouette,strokeWidth:1.4})]})}function sU({g:e,column:t}){let[a,s]=t.f;if(!t.blocks)return H5(Oa,{children:[d0("path",{d:Bp(e,a,s),fill:"currentColor",fillOpacity:h4.rib}),d0("path",{d:lo(e,a,1),stroke:"currentColor",strokeOpacity:h4.grooveWall,strokeWidth:1})]});let{count:c,gap:l,phase:r=0}=t.blocks,o=1/c,i=[];for(let n=-1;n<=c;n+=1){let h=Math.max((n+r+l/2)*o,0),m=Math.min((n+r+1-l/2)*o,1);m-h>o*.15&&i.push([h,m])}return d0(Oa,{children:i.map(([n,h])=>d0("path",{d:pS(e,a,s,n,h),fill:"currentColor",fillOpacity:h4.rib,stroke:"currentColor",strokeOpacity:h4.grooveWall,strokeWidth:1},n))})}function cU({id:e}){return H5(Oa,{children:[H5("linearGradient",{id:e.tread,x1:"0",y1:"0",x2:"1",y2:"0",children:[d0("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.07}),d0("stop",{offset:"0.14",stopColor:"currentColor",stopOpacity:.24}),d0("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.18}),d0("stop",{offset:"0.84",stopColor:"currentColor",stopOpacity:.1}),d0("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.05})]}),H5("linearGradient",{id:e.wall,x1:"0.15",y1:"0",x2:"0.9",y2:"1",children:[d0("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.28}),d0("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.17}),d0("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.08})]}),H5("linearGradient",{id:e.rim,x1:"0.1",y1:"0",x2:"0.9",y2:"1",children:[d0("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.46}),d0("stop",{offset:"0.5",stopColor:"currentColor",stopOpacity:.26}),d0("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.12})]}),H5("radialGradient",{id:e.shadow,children:[d0("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),d0("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function lU({g:e,id:t}){let a=e.rimRy/e.ry,s=l=>a+(1-a)*l,c=Math.max(6,(e.ry-e.rimRy)*.3);return H5(Oa,{children:[d0("ellipse",{cx:L0(e.cxf),cy:L0(e.cy),rx:L0(e.rx),ry:L0(e.ry),fill:`url(#${t.wall})`}),tU.map((l,r)=>{let o=s(l);return d0("ellipse",{cx:L0(e.cxf),cy:L0(e.cy),rx:L0(e.rx*o),ry:L0(e.ry*o),stroke:"currentColor",strokeOpacity:h4.relief[r],strokeWidth:1},l)}),d0("ellipse",{cx:L0(e.cxf),cy:L0(e.cy),rx:L0(e.rx*s(dS)),ry:L0(e.ry*s(dS)),stroke:"currentColor",strokeOpacity:h4.lettering,strokeWidth:L0(c)})]})}function rU({g:e,id:t}){let a=Array.from({length:fS},(s,c)=>{let l=(c*(360/fS)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*bS*Math.cos(l),y1:e.cy+e.rimRy*bS*Math.sin(l),x2:e.cxf+e.rimRx*xS*Math.cos(l),y2:e.cy+e.rimRy*xS*Math.sin(l)}});return H5(Oa,{children:[d0("ellipse",{cx:L0(e.cxf),cy:L0(e.cy),rx:L0(e.rimRx),ry:L0(e.rimRy),fill:`url(#${t.rim})`}),d0("ellipse",{cx:L0(e.cxf),cy:L0(e.cy),rx:L0(e.rimRx*gS),ry:L0(e.rimRy*gS),fill:"currentColor",fillOpacity:h4.dishFill,stroke:"currentColor",strokeOpacity:h4.dishEdge,strokeWidth:1}),a.map((s,c)=>d0("line",{x1:L0(s.x1),y1:L0(s.y1),x2:L0(s.x2),y2:L0(s.y2),stroke:"currentColor",strokeOpacity:h4.spoke,strokeWidth:aU,strokeLinecap:"round"},c)),d0("ellipse",{cx:L0(e.cxf),cy:L0(e.cy),rx:L0(e.rimRx*vS),ry:L0(e.rimRy*vS),fill:"currentColor",fillOpacity:h4.hubFill,stroke:"currentColor",strokeOpacity:h4.hubEdge,strokeWidth:1})]})}import{jsx as Dp}from"react/jsx-runtime";function m6({image:e,size:t,type:a,sizes:s,priority:c=!1,className:l="aspect-square",showBackground:r=!0}){return Dp("div",{className:`text-fg ${l}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:Dp(k0,{label:t||"Tyre",src:t4(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:s,priority:c,showBackground:r,fallback:Dp(Zp,{size:t,type:a,className:"block h-full w-full p-3"})})})}function io(e){if(!e||e.year===null)return null;let{make:t,model:a,year:s,modification:c}=e;return!t||!a||!c?null:{make:t,model:a,year:s,modification:c}}function oU(e,t){let a=new URLSearchParams({make:t.make,model:t.model,year:String(t.year),modification:t.modification});return`/api/v1/tyres/${encodeURIComponent(e)}/fitment?${a.toString()}`}function oo(e,t=""){return{vehicle:{...e,region:t},status:"unknown",oemSizes:[],variants:[]}}function iU(e,t){if(typeof t!="object"||t===null)return oo(e);let a=t,s=typeof a.vehicle=="object"&&a.vehicle!==null?a.vehicle:{},c=typeof s.region=="string"?s.region:"",l=a.status;if(l!=="fits"&&l!=="doesNotFit")return oo(e,c);let r=Array.isArray(a.variants)?a.variants.filter(o=>typeof o=="object"&&o!==null&&typeof o.sku=="string"&&typeof o.fits=="boolean"):[];return r.length===0?oo(e,c):{vehicle:{make:typeof s.make=="string"?s.make:e.make,model:typeof s.model=="string"?s.model:e.model,year:typeof s.year=="number"?s.year:e.year,modification:typeof s.modification=="string"?s.modification:e.modification,region:c},status:l,oemSizes:Array.isArray(a.oemSizes)?a.oemSizes.filter(o=>typeof o=="string"):[],variants:r.map(o=>({sku:o.sku,size:typeof o.size=="string"?o.size:"",fits:o.fits}))}}async function zS(e,t){try{let a=await r7(oU(e,t),{baseUrl:nC});return iU(t,a)}catch{return oo(t)}}function yS(e){if(!e)return[];let t=[];for(let a of[...e.frontTyres,...e.rearTyres]){let s=o4(a);if(!s)continue;let c=q4(s);t.includes(c)||t.push(c)}return t}function wS(e,t){if(t.length===0)return null;for(let a of e){let s=o4(a);if(!s)continue;let c=q4(s);if(t.includes(c))return c}return null}function Ga(e,t){if(!e||e.status==="unknown")return"unknown";let a=e.variants.find(s=>s.sku===t);return a?a.fits?"fits":"doesNotFit":"unknown"}var nU="/tyres";function Ze(e){return e?`${nU}/${e}`:null}function De(e){let t=e.lastIndexOf(" ");return t===-1?{lead:"",accent:e}:{lead:e.slice(0,t+1),accent:e.slice(t+1)}}function Op(e,t){return uC({partNumber:e.sku,prices:e.prices},t)}var hU="Tyre";function no(e,t,a,s){return{id:`${e.slug}|${t.sku}|${a.unit}|${a.spares>0?"spare":"no-spare"}`,slug:e.slug,name:De(e.name),process:e.brand||hU,positionNo:"01",config:[{label:t.size},{label:hr(a)}],finishName:"",size:t.size,components:Op(t,a),qty:s,href:Ze(e.slug)??void 0,kind:"tyre",sku:t.sku,pack:a}}function ho(e){return e.kind==="tyre"}function CS(e,t){let a=e.prices?.[t];return typeof a!="number"||!Number.isFinite(a)||a<=0?!1:e.inStock}import{jsx as qa}from"react/jsx-runtime";function mU(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function Gp({line:e,catalog:t,tyre:a}){let s=t.find(h=>h.slug===e.slug),c=e.config.find(h=>h.gold)?.label,l=s?.finishes.find(h=>h.name===c&&h.src)??s?.finishes.find(h=>h.src),r=s?.spokes??5,o=s?.mesh??!1,n=(s?.finishes.find(h=>h.name===c)??s?.finishes[0])?.color??CC;return qa("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:ho(e)?qa(m6,{image:a?.coverImage,size:e.size,type:mU(a),sizes:"96px",className:"h-full w-full"}):l?.src?qa(V3,{src:l.src,alt:`${s?.name??e.slug} \u2014 ${l.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))"}}):s||t.length===0?qa("div",{className:"relative z-[2] block w-[72%]",style:{color:n,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:qa(w8,{spokes:r,mesh:o,className:"block w-full"})}):null})}import{jsx as qp,jsxs as uU}from"react/jsx-runtime";function kS(e,t){return Math.min(Sm,Math.max(1,e+t))}var MS="disabled:cursor-not-allowed disabled:opacity-40",pU={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono text-[length:var(--size-label,16px)] font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${MS}`,value:"w-11 text-center font-mono text-[length:var(--size-label,15px)] 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 ${MS}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function Wa({value:e,onChange:t,size:a}){let s=pU[a];return uU("div",{className:s.frame,children:[qp("button",{type:"button",onClick:()=>t(kS(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:s.button,children:"\u2212"}),qp("span",{className:s.value,children:e}),qp("button",{type:"button",onClick:()=>t(kS(e,1)),disabled:e>=Sm,"aria-label":"Increase quantity",className:s.button,children:"+"})]})}import{useEffect as dU,useState as gU}from"react";var vU=new Map;function SS(e){let[t,a]=gU(null);return dU(()=>{if(!e||t)return;let s=!0;return v0.listCatalog(["tyre"]).then(c=>{s&&a(new Map(c.flatMap(l=>l.kind==="tyre"?[[l.slug,l]]:[])))}).catch(c=>{console.error("[useTyreCatalog] tyre catalog read failed",c)}),()=>{s=!1}},[e,t]),t??vU}import{Fragment as mo,jsx as _1,jsxs as n0}from"react/jsx-runtime";function Ua({content:e=Al}){let{isOpen:t,preview:a,close:s,items:c,remove:l,setQty:r,totals:o,coupon:i,bundles:n}=r4(),h=new Set(c.flatMap(z=>(z.components??[]).map(M=>M.partNumber))),m=new Set(o.appliedBundles.map(z=>z.slug)),u=n.filter(z=>!m.has(z.slug)).filter(z=>z.components.some(M=>h.has(M.partNumber))).slice(0,2),{formatMoney:d,activeCountry:v}=u0(),g=v?.name??e.shipsToFallback,b=1+(e.leadTimeValue?1:0)+(g?1:0),f=bU(null),w=SS(c.some(ho));return M4({active:t,onDismiss:s,lockScroll:!a}),fU(()=>{t&&f.current?.focus({preventScroll:!0})},[t]),t?n0(mo,{children:[_1("div",{onClick:s,className:"fixed inset-0 z-[60] backdrop-blur-[4px]",style:{background:"rgba(0,0,0,0.68)",animation:"storefront-cart-fade 350ms ease both"},"aria-hidden":"true"}),n0("aside",{role:"dialog","aria-label":"Your cart","aria-modal":"true",className:"fixed inset-y-0 right-0 z-[61] flex w-[520px] max-w-[100vw] flex-col border-l border-line bg-bg max-[640px]:w-screen max-[640px]:border-l-0",style:{animation:"storefront-cart-slide 450ms cubic-bezier(.2,.7,.2,1) both",boxShadow:"-30px 0 80px rgba(0,0,0,.5)"},onClick:z=>z.stopPropagation(),children:[_1("style",{children:`
|
|
20
20
|
@keyframes storefront-cart-fade { from { opacity: 0 } to { opacity: 1 } }
|
|
21
21
|
@keyframes storefront-cart-slide { from { transform: translateX(40px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
|
|
22
|
-
`}),n0("header",{className:"flex flex-shrink-0 flex-col gap-3.5 border-b border-line px-8 pb-[22px] pt-[26px] max-[640px]:px-[22px] max-[640px]:pt-[22px] max-[640px]:pb-[18px]",children:[n0("div",{className:"flex items-center justify-between",children:[n0("span",{className:"flex items-center gap-2.5 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?_1("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]}),_1("button",{ref:f,type:"button",onClick:s,"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"})]}),n0("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",_1("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),_1("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:fy(e,c.length)})]}),n0("div",{className:`grid flex-shrink-0 ${xU[b-1]} gap-px border-b border-line bg-line`,children:[_1(Wp,{label:"Items",value:n0(mo,{children:[_1("em",{className:"font-serif font-normal italic text-accent",children:o.sets})," set",o.sets===1?"":"s"," \xB7 ",o.units," item",o.units===1?"":"s"]})}),e.leadTimeValue?_1(Wp,{label:"Lead time",value:e.leadTimeValue}):null,g?_1(Wp,{label:"Ships to",value:g}):null]}),n0("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[c.length===0?_1(kU,{content:e}):c.map(z=>_1(zU,{line:z,tyre:w.get(z.slug),onRemove:()=>l(z.id),onQtyChange:M=>r(z.id,M)},z.id)),u.length>0&&n0("section",{className:"border-b border-line px-8 py-[22px] max-[640px]:px-[22px]",style:{background:"color-mix(in oklab, var(--site-surface) 60%, transparent)"},children:[n0("div",{className:"mb-3.5 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[_1("span",{children:"You may also need"}),_1("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),_1("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:u.map(z=>_1(yU,{href:`/bundles/${z.slug}`,title:z.name,sub:wU(z,o.currency,d)},z.slug))})]}),_1("section",{className:"border-b border-line px-8 py-[22px] max-[640px]:px-[22px]",children:_1(LC,{})}),e.promises.length>0&&_1("div",{className:"flex flex-wrap justify-center gap-[18px] border-b border-line px-8 pt-[22px] pb-7 font-mono text-[9px] uppercase tracking-[0.24em] text-fg-dim max-[640px]:px-[22px]",children:e.promises.map(z=>_1(CU,{children:z},z))})]}),n0("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-[22px]",children:[_1(b7,{label:`Subtotal \xB7 ${o.sets} set${o.sets===1?"":"s"}`,value:d(o.subtotal,o.currency)}),o.appliedBundles.map(z=>_1(b7,{label:`Bundle \xB7 ${z.name}${z.multiples>1?` \xD7${z.multiples}`:""}`,value:n0("span",{style:{color:"var(--green)"},children:["\u2212 ",d(z.discount,o.currency)]})},z.slug)),o.discount>0&&i?.valid&&_1(b7,{label:`Coupon \xB7 ${i.code}`,value:n0("span",{style:{color:"var(--green)"},children:["\u2212 ",d(o.discount,o.currency)]})}),i?.deferred&&_1(b7,{label:`Coupon \xB7 ${i.code}`,value:mC}),i?.valid&&i.effects?.gift&&_1(b7,{label:`Free gift \xB7 ${i.effects.gift.partNumber}${i.effects.gift.quantity>1?` \xD7${i.effects.gift.quantity}`:""}`,value:_1("span",{style:{color:"var(--green)"},children:"Free"})}),_1(b7,{label:"Shipping",value:o.freeShipping||o.shipping===0?_1("span",{style:{color:"var(--green)"},children:"Free"}):d(o.shipping,o.currency)}),o.tax&&(o.tax.charged?_1(b7,{label:o.tax.inclusive?`${o.tax.name} included \xB7 ${o.tax.rate}%`:o.tax.name,value:d(o.tax.amount,o.currency)}):o.tax.name?_1(b7,{label:o.tax.name,value:"Calculated at checkout"}):null),n0("div",{className:"mt-1.5 flex items-center justify-between border-t border-line pt-3.5 text-fg",children:[n0("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",_1("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),_1("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:o.repricing?"\u2026":d(o.grand,o.currency)})]})]}),n0("div",{className:"flex flex-shrink-0 flex-col gap-2.5 px-8 pb-[22px] pt-3.5 max-[640px]:px-[22px]",children:[n0(L1,{href:"/checkout",onClick:s,"aria-disabled":c.length===0,className:["group flex items-center justify-between border px-5 py-[18px] font-mono text-[12px] uppercase tracking-[0.3em] transition-colors",c.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",_1("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),n0("div",{className:"flex items-center justify-between px-1 py-1.5 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:[_1(L1,{href:"/wheels",onClick:s,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"}),_1("button",{type:"button",className:"text-fg transition-colors hover:text-accent",children:"Save for later"})]})]})]})]}):null}var xU=["grid-cols-1","grid-cols-2","grid-cols-3"];function Wp({label:e,value:t}){return n0("div",{className:"flex flex-col gap-[3px] bg-bg px-4 py-3.5",children:[_1("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),_1("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function zU({line:e,tyre:t,onRemove:a,onQtyChange:s}){let{catalog:c,totals:l}=r4(),r=(e.components??[]).reduce((n,h)=>n+(l.freeUnitsByPartNumber[h.partNumber]??0),0),{currency:o,formatMoney:i}=u0();return n0(mo,{children:[n0("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-[22px] max-[640px]:py-5",children:[_1(Gp,{line:e,catalog:c,tyre:t}),n0("div",{className:"flex min-w-0 flex-col gap-2",children:[n0("div",{className:"flex items-start justify-between gap-3",children:[n0("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:["N\xB0 ",e.positionNo," \xB7 ",e.process==="FusionForge\xAE"?n0(mo,{children:["FusionForge",_1(o6,{})]}):e.process]}),_1("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:Lm(e,o)===null?i7:i(Lm(e,o),o)})]}),n0("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,_1("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&n0("div",{className:"mt-1 flex flex-wrap gap-1.5",children:[e.config.map(n=>_1("span",{className:["border px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em]",n.gold?"border-[color-mix(in_oklab,var(--accent)_45%,var(--site-line))] text-accent":"border-line text-fg-dim"].join(" "),children:n.label},n.label)),r>0&&n0("span",{className:"border border-accent bg-accent px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em] text-bg",children:[r,"\xD7 free"]})]}),n0("div",{className:"mt-2.5 flex items-center justify-between gap-3",children:[_1(Wa,{value:e.qty,onChange:s,size:"small"}),n0("div",{className:"flex gap-3.5 font-mono text-[10px] uppercase tracking-[0.22em]",children:[_1(L1,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),_1("button",{type:"button",onClick:a,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&n0("div",{className:"mx-8 -mt-px flex items-start gap-3 border-t-0 px-4 py-3.5 font-display text-[13px] leading-[1.45] text-fg max-[640px]:mx-[22px]",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:[_1("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),n0("span",{children:["Verified for your ",_1("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function yU({title:e,sub:t,href:a}){return n0(L1,{href:a,className:"flex items-center justify-between border border-line bg-bg px-3.5 py-3 text-left transition-colors hover:border-accent",children:[n0("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[_1("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),_1("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),_1("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 wU(e,t,a){let s=e.savings[t];if(s===void 0)return"Buy together";let c=a(s,t);return e.savingIsFrom?`Save from ${c}`:`Save ${c}`}function CU({children:e}){return _1("span",{className:"inline-flex items-center gap-1.5 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function b7({label:e,value:t}){return n0("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[_1("span",{children:e}),_1("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function kU({content:e}){return n0("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[_1("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),_1("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),n0(L1,{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 ",_1("span",{className:"text-accent",children:"\u2192"})]})]})}var MU=[{key:"cart",label:"Cart",href:"/?cart=open"},{key:"checkout",label:"Checkout",href:"/checkout"}],SU=Object.fromEntries(MU.map(e=>[e.key,e]));function LS(e){return SU[e]}import{Fragment as AU,jsx as H8,jsxs as po}from"react/jsx-runtime";var LU=Ip(()=>import("./EditorPreviewCheckout-QKN2YRWX.js"),{ssr:!1});function Up(){let{chromePlaceholder:e,themeFromDocument:t}=N3(),{surface:a}=ow();return e||t||!a||a!=="cart"&&a!=="checkout"?null:a==="checkout"?po(AU,{children:[H8(LU,{}),H8(AS,{surface:a})]}):H8(gr,{children:po(vr,{preview:!0,children:[H8(Ua,{}),H8(AS,{surface:a})]})})}function AS({surface:e}){let{label:t,href:a}=LS(e);return po("div",{style:{position:"fixed",bottom:14,left:"50%",transform:"translateX(-50%)",zIndex:2147483e3,display:"flex",alignItems:"center",gap:8,maxWidth:"calc(100% - 24px)",padding:"5px 6px 5px 13px",borderRadius:999,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:[H8("span",{style:{whiteSpace:"nowrap"},children:p("{name} \xB7 preview only",{name:p(t)})}),po("a",{href:a,target:"_blank",rel:"noopener noreferrer",style:{pointerEvents:"auto",flex:"none",display:"inline-flex",alignItems:"center",gap:5,padding:"4px 11px",borderRadius:999,color:"#fff",background:"#2563eb",textDecoration:"none"},children:[p("Open live"),H8(l6,{name:"external-link",size:13,rounded:!0})]})]})}import{CategoryIcon as nc1,CheckIcon as KO,ClockIcon as ax,ColumnsIcon as hc1,DirectionIcon as mc1,EyeIcon as pc1,ListIcon as uc1,PageIcon as dc1,PlacementIcon as gc1,ScrollPointIcon as vc1,TriggerIcon as fc1}from"efficient-easel/icons";import{useContext as PU,useEffect as VS,useRef as go,useState as vo}from"react";import{Button as fo}from"efficient-shell/ui";var ja=class extends Error{constructor(a){super("The storefront forms list could not be loaded.");this.cause=a;this.name="FormsUnavailableError"}},uo=null,jp=null,Kp=null;function HU(){uo=null,jp=null,Kp=null}function HS(e=!1){let t=_3(),a=i2();return(e||!uo||jp===null&&t!==null||Kp!==a)&&(jp=t,Kp=a,uo=(t?J1.listForms(t,{siteId:a}):Promise.reject(new ja)).catch(s=>{throw HU(),s instanceof ja?s:new ja(s)})),uo}var $p=new Map,FU=9e5,FS=0;function TU(){return FS+=1,`fe-${typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():String(FS)}`}function TS(e,t){e.connected&&e.send("storefront-editor:open-form",{mode:"edit",formId:t})}function PS(e,t){if(!e.connected)return Promise.resolve({status:"closed"});let a=TU();return new Promise(s=>{let c=setTimeout(()=>ES(a,{status:"timeout"}),t.timeoutMs??FU);$p.set(a,l=>{clearTimeout(c),s(l)}),e.send("storefront-editor:open-form",{requestId:a,mode:t.mode,...t.formId?{formId:t.formId}:{}})})}function ES(e,t){let a=$p.get(e);a&&($p.delete(e),a(t))}function kh1(e,t){ES(e,t?{status:"saved",form:t}:{status:"closed"})}import{jsx as k2,jsxs as F5}from"react/jsx-runtime";var NS="__create-a-new-form__";function EU({value:e,forms:t,loadFailed:a,emptyLabel:s}){let c=t??[],l=e?c.some(m=>m.slug===e):!0,r=t===null&&!a,o={value:"",label:r?p("Loading\u2026"):a?p("Forms couldn\u2019t be loaded"):s===void 0?p("No form yet"):p(s)},i=e&&!l?[{value:e,label:r||a?e:p("{slug} \u2014 no form with this name",{slug:e})}]:[],n=c.map(m=>({value:m.slug,label:m.is_active?m.title:p("{title} (switched off)",{title:m.title})})),h=r?[]:[{value:NS,label:p("Create a new form")}];return[o,...i,...n,...h]}function VU(e){return e===NS?{action:"create"}:{action:"store",slug:e}}function NU({value:e,pickedId:t,forms:a}){if(!e||!t||a.some(c=>c.slug===e))return null;let s=a.find(c=>c.id===t);return s&&s.slug&&s.slug!==e?s.slug:null}function _U(e){let t=[p("Goes to {place}",{place:p("Storefront \u2192 Forms")})],a=(e.notify_email??"").trim();return a&&t.push(p("Emails a copy to {email}",{email:a})),e.mailing_list_name&&t.push(e.subscribe_mode==="checkbox"?p("Joins the \u201C{audience}\u201D audience, but only when the consent box is ticked",{audience:e.mailing_list_name}):p("Joins the \u201C{audience}\u201D audience",{audience:e.mailing_list_name})),e.kind==="account_signup"&&t.push(e.signup_customer_type==="importer"?p("Creates a wholesale account"):p("Creates a retail account")),t}function Yp({value:e,onChange:t,label:a="Form",emptyLabel:s}){let c=y4(),l=PU(kl),r=l?l.capabilities.hasForms:!0,[o,i]=vo(null),[n,h]=vo(!1),[m,u]=vo(!1),[d,v]=vo(!1),g=go(!0),b=go(e);b.current=e;let f=go(t);f.current=t;let w=go(null),z=(T=!1)=>HS(T).then(P=>{if(g.current){i(P),h(!1);let N=NU({value:b.current,pickedId:w.current,forms:P});N&&f.current(N)}return P},()=>(g.current&&h(!0),[]));VS(()=>(g.current=!0,r&&z(),()=>{g.current=!1}),[r]),VS(()=>r?Xr(()=>{z(!0)}):void 0,[r]);let S=e?(o??[]).find(T=>T.slug===e)??null:null;S?w.current=S.id:e||(w.current=null);let H=!!e&&!S&&o!==null&&!n,I=EU({value:e,forms:o,loadFailed:n,emptyLabel:s}),E=async()=>{u(!0),v(!1);try{let T=await PS(c,{mode:"create"}),P=await z(!0);if(!g.current)return;if(T.status==="timeout"){v(!0);return}if(T.status!=="saved")return;let{form:N}=T;N.slug!==b.current&&f.current(N.slug),P.some(D=>D.id===N.id)||z(!0)}finally{g.current&&u(!1)}},O=T=>{let P=VU(T);P.action==="create"?E():(v(!1),t(P.slug))};return r?F5("div",{className:"sf-formpicker",children:[k2(Z9,{label:a,options:I,fallback:"",value:e??"",onChange:O,placeholder:p("Search forms\u2026")}),d&&k2("p",{className:"sf-formsummary-warn",children:p("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),S?F5("div",{className:"sf-blogsource sf-formsummary",children:[F5("div",{children:[k2("div",{className:"sf-formsummary-caption",children:p3("{n} field","{n} fields",S.fields.length)}),S.fields.length?k2("ol",{className:"sf-formsummary-fields",children:S.fields.map((T,P)=>k2("li",{children:T.label},T.key||`${T.label}-${P}`))}):k2("p",{className:"es-field-hint sf-hint-keep",children:p("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),F5("div",{children:[k2("div",{className:"sf-formsummary-caption",children:p("Where the answers go")}),k2("ul",{className:"sf-formsummary-fields",children:_U(S).map(T=>k2("li",{children:T},T))})]}),!S.is_active&&k2("p",{className:"sf-formsummary-warn",children:p("This form is switched off, so it won\u2019t appear on the published page. Turn it back on in {place}.",{place:p("Storefront \u2192 Forms")})}),F5("div",{className:"sf-formsummary-actions",children:[k2(fo,{variant:"secondary",size:"sm",onClick:()=>TS(c,S.id),children:p("Edit form \u270E")}),k2(fo,{variant:"secondary",size:"sm",disabled:m,onClick:()=>{E()},children:p("New form +")})]}),k2("p",{className:"es-field-hint sf-hint-keep",children:p("The questions, the button text and the thank-you message all come from {place}. Edit them there \u2014 this section updates to match.",{place:p("Storefront \u2192 Forms")})})]}):F5("div",{className:"sf-blogsource sf-formsummary",children:[n?F5("p",{className:"es-field-hint sf-hint-keep",children:[p("This website\u2019s forms couldn\u2019t be loaded, so there is nothing to choose from yet."),e?` ${p("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]}):H&&k2("p",{className:"sf-formsummary-warn",children:p("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??""})}),F5("div",{className:"sf-formsummary-actions",children:[n&&k2(fo,{variant:"secondary",size:"sm",disabled:m,onClick:()=>{z(!0)},children:p("Try again")}),k2(fo,{variant:"secondary",size:"sm",disabled:m,onClick:()=>{E()},children:p("New form +")})]}),!n&&k2("p",{className:"es-field-hint sf-hint-keep",children:p("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:p("Storefront \u2192 Forms")})})]})]}):k2("div",{className:"sf-formpicker",children:k2("div",{className:"sf-blogsource sf-formsummary",children:F5("div",{children:[k2("div",{className:"sf-formsummary-caption",children:p(a)}),F5("p",{className:"es-field-hint sf-hint-keep",children:[p("Forms aren\u2019t available in this editor, so there is nothing to choose here."),e?` ${p("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]})]})})})}import{jsx as IU}from"react/jsx-runtime";function T5(e,t){return{type:"custom",render:({value:a,onChange:s})=>IU(Yp,{value:a,onChange:s,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}var bo=null,_S=null;function RU(e,t){bo=e,_S=t}function Oh1(e){RU(e,null)}function IS(){return bo}function M2(){return _S==="dynamic"||bo===ep}function RS(e){return Er(bo??"",e)??"alloy-wheel"}import{createContext as BU,useContext as ZU}from"react";import{jsx as DU}from"react/jsx-runtime";var BS=BU(null);function ZS({slug:e,children:t}){let a=typeof e=="string"&&e.trim()?e:null;return DU(BS.Provider,{value:a,children:t})}function DS(){return ZU(BS)}import{createContext as OU,useContext as GU}from"react";import{jsx as qU}from"react/jsx-runtime";var OS=OU("alloy-wheel");function GS({kind:e,children:t}){return qU(OS.Provider,{value:e??"alloy-wheel",children:t})}function qS(){return GU(OS)}import{createContext as WS,useContext as xo}from"react";import{jsx as KU}from"react/jsx-runtime";function WU(e){let t=e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim().toLowerCase();return t?t[0].toUpperCase()+t.slice(1):e}var UU=/^\d{4}-\d{2}-\d{2}$/;function US(e){return e?e.schema?.length?e.schema.filter(t=>typeof t?.key=="string"&&t.key in e.fields):Object.entries(e.fields).flatMap(([t,a])=>{let s=Array.isArray(a)?"images":typeof a=="string"?UU.test(a)?"date":"text":null;return s?[{key:t,label:WU(t),kind:s}]:[]}):[]}function zo(e,{firstField:t=!1}={}){if(!e)return[];let a=US(e).filter(s=>s.kind==="images");return(t?a.slice(0,1):a).flatMap(s=>{let c=e.fields[s.key];return Array.isArray(c)?c.flatMap(l=>{let r=l?.url;if(typeof r!="string"||!r)return[];let o=l.alt;return[{url:r,alt:typeof o=="string"?o:""}]}):[]})}function jU(e){let t=new Date(`${e}T00:00:00Z`);return Number.isNaN(t.getTime())?e:t.toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"})}function jS(e){return e?US(e).flatMap(t=>{if(t.kind!=="text"&&t.kind!=="date")return[];let a=e.fields[t.key];return typeof a!="string"||!a.trim()?[]:[{label:t.label,value:t.kind==="date"?jU(a):a}]}):[]}var x7="product",Xp=WS(null);function Jp(e){let t=e?.recordType;return typeof t=="string"&&t.trim()||x7}function yo(e){let t=e?.appState?.data?.root;return Jp(t?.props)!==x7}var KS=WS(x7);function $S({type:e,children:t}){return KU(KS.Provider,{value:e,children:t})}function wo(e){let t=xo(Xp),a=xo(KS);return t?t.type!==x7:e&&a!==x7}var Co={type:"sample",key:"sample",get title(){return p("Record title")},get fields(){return{first:p("A detail of this record"),second:p("Another detail"),third:p("A third")}},value:void 0,get schema(){return[{key:"first",label:p("First detail"),kind:"text"},{key:"second",label:p("Second detail"),kind:"text"},{key:"third",label:p("Third detail"),kind:"text"}]}},YS=4;function ko(){return xo(Xp)}function XS(e){let t=xo(Xp);return t!==null&&t.type===e?t:null}import{createContext as YU,useContext as XU}from"react";var Qp="heroBullets",Ka="\xB7",$a={bullets:[{label:"Free shipping",detail:"USA, UK, AUS"},{label:"Lifetime warranty",detail:"structural"}]};function JS(e){return e.detail?`${e.label} ${Ka} ${e.detail}`:e.label}function $U(e){let t=e.trim();if(!t)return null;let a=t.indexOf(Ka);return a<0?{label:t,detail:""}:{label:t.slice(0,a).trim(),detail:t.slice(a+Ka.length).trim()}}function QS(e){let t=(e??{})[Qp];return Array.isArray(t)?{bullets:t.map(s=>$U(typeof s=="string"?s:gy(s?.text,""))).filter(s=>s!==null)}:$a}import{jsx as JU}from"react/jsx-runtime";var eL=YU($a);function tL({content:e,children:t}){return JU(eL.Provider,{value:e,children:t})}function aL(){return XU(eL)}var u2={text:"Button label",href:"#"},A={eyebrow:"Eyebrow",heading:"Main heading",accent:"Highlight line",body:"Add a sentence or two of supporting copy.",button:"Button label",link:"#",sectionHeading:"Section heading",slideName:"Slide name",boxName:"Box name",headingAccent:"Section heading *here.*",sectionNumber:"Section number",imageCaption:"Image caption",bookingConfirmation:"Thanks \u2014 we'll email you to confirm.",imageMeta:"Image meta",label:"Label",value:"Value",viewAll:"View all",date:"Month DD, YYYY",category:"Category"};var a3={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Hy,Stats:void 0};import{jsx as u6}from"react/jsx-runtime";import{jsx as ej}from"react/jsx-runtime";var Mo="sf-card",V2={min:0,max:90,step:5,fallback:0,unit:"%"},z7=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],QU="68%",O3={desktop:20,phone:20,side:40,sidePhone:24},sL="sf-box-sides",cL={min:0,max:200,step:10};function Oe(e){return typeof e=="string"&&e.trim()!==""}function So(e,t){let a=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(a)||a<=0)return null;let s=(Math.min(V2.max,Math.max(V2.min,a))/100).toFixed(2);return t!=="bottom"?{background:`rgba(0,0,0,${s})`}:{background:`linear-gradient(0deg, rgba(0,0,0,${s}) 0%, rgba(0,0,0,0) ${QU})`}}function Lo(e,t){let a={"top-left":["start","start"],"top-center":["center","start"],"top-right":["end","start"],left:["start","center"],center:["center","center"],right:["end","center"],"bottom-left":["start","end"],"bottom-center":["center","end"],"bottom-right":["end","end"]},[s,c]=a[e]??a.center,[l,r]=t==="column"?[c,s]:[s,c],o={start:"justify-start",center:"justify-center",end:"justify-end"},i={start:"items-start",center:"items-center",end:"items-end"};return`${o[l]} ${i[r]}`}var Ao={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120},DetailRows:{top:100,bottom:100}},lL=new Set(Object.keys(Ao)),tj=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),rL=new Set(["ProductGrid"]);function eu(e,t){let a=e.render;e.render=s=>{if(t?.(s))return a(s);let c=_9(s.sectionPaddingTop,s.sectionPaddingBottom,s.sectionPaddingTopPhone,s.sectionPaddingBottomPhone),l=a(s);return c?ej("div",{className:c.className,style:c.style,children:l}):l}}var oL={name:"sectionPadding",applies:(e,t,a)=>t.isSection(e)&&!tj.has(e)&&!!a&&typeof a.render=="function",panel(e,t,a){lL.has(t)||rL.has(t)||(e.fields={...e.fields,...a.spacingFields({phone:!0})})},draw(e,t){if(lL.has(t)){let a=e.render,s=Ao[t];e.render=c=>{let l=ay(c,s);return a({...c,padTop:l.top,padBottom:l.bottom})};return}if(rL.has(t)){eu(e);return}eu(e,t==="Flex"?a=>Oe(a.bgImage):void 0)}},aj=["Heading","Text"],iL={name:"blockPadding",applies:(e,t,a)=>aj.includes(e)&&!!a&&typeof a.render=="function",panel(e,t,a){e.fields={...e.fields,...a.spacingFields({phone:!0})}},draw(e){eu(e)}};import{jsx as p6,Fragment as sj,jsxs as cj}from"react/jsx-runtime";import{useEasel as pL}from"efficient-easel/easel";import{LayersIcon as lj}from"efficient-easel/icons";import{SettingsDrill as rj,SettingsField as oj}from"efficient-easel/panel";import{default as nL}from"efficient-easel/screen/components/AddBlockRow";import{default as hL}from"efficient-easel/screen/components/AddChildRow";import{SlotChildActionsProvider as xm1,useSlotChildActions as mL}from"efficient-easel/screen/components/SlotChildActionsContext";function ij({parent:e,parentType:t,label:a,rowName:s,onSelectChild:c,onAddChild:l,nestDepth:r=0}){let o=Ma(t,r);if(!o)return null;let{slot:i,choices:n,spec:h}=o,m=String(e.props.id),u=`${m}:${i}`,d=Array.isArray(e.props[i])?e.props[i]:[],v=h?.addBlocked?.(d)??null,g=h?.notice?.(d)??null,b=cj(sj,{children:[g?p6("p",{className:"sf-note",children:g}):null,d.map((f,w)=>p6(rj,{name:s(f),onOpen:()=>c(u,w,String(f.props.id),t)},String(f.props.id??`${u}-${w}`))),n?p6(nL,{choices:n,onPick:f=>l(m,i,f,d.length,t)}):h.fixed?null:p6(hL,{label:h.addLabel,blocked:v,onAdd:()=>l(m,i,h.childType,d.length,t)})]});return p6("div",{className:"sf-slot-rows",children:a?p6(oj,{label:p(a),icon:p6(lj,{}),value:String(d.length),children:b}):b})}function nj(e,t){return Ma(e)?.spec?.notice?.(t)??null}function uL({parentType:e}){let{selectedItem:t}=pL(l=>l);if(!t||t.type!==e)return null;let a=Ma(e)?.slot,s=a&&Array.isArray(t.props[a])?t.props[a]:[],c=nj(e,s);return c?p6("p",{className:"sf-note",children:c}):null}function hj(e,t){return Ma(t)?.source==="footer"?e.blockRowName:e.childRowName}function dL({parentType:e,label:t}){let{appState:a,selectedItem:s}=pL(r=>r),c=mL();if(!c||!s||s.type!==e)return null;let l=e===qx?cl(a?.data,String(s.props.id)):0;return p6(ij,{parent:s,parentType:e,label:t,rowName:hj(c,e),onSelectChild:c.selectChild,onAddChild:c.addChild,nestDepth:l})}var gL="grayscale(1) contrast(1.03)",vL="Black and white";function mj(e){return e===!0?{filter:gL}:{}}function pj(e){let{filter:t}=mj(e);return t?{style:{filter:t}}:{}}var Ya="sf-photo-grayscale",uj=`@media (hover:hover){.${Ya}{filter:${gL};transition:filter 160ms ease}.${Ya}:hover{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Ya}{transition:none}}`;function Ge(e,t){return typeof e=="boolean"?e?pj(!0):{}:t===!0?{className:Ya}:{}}function fL(e){return e===!0?{[Ya]:uj}:{}}import{AlignLeftIcon as vj,BlackAndWhiteIcon as fj,ContrastIcon as bj,HeightIcon as xj,TypeIcon as zj}from"efficient-easel/icons";var dj=["eyebrow","heading","title","body","intro","button","link","label","number","value","name","price","date","caption","note","quote","tag","meta"],gj=new Set(dj);function bL(e){let t=e.toLowerCase().split(/[^a-z]+/).filter(Boolean);for(let a=t.length-1;a>=0;a-=1)if(gj.has(t[a]))return t[a];return null}var d6=e=>J2(e,s1("Height",u6(xj,{}),re.min,re.max,re.step,re.fallback,re.unit)),L4={ctaText:F("Button",u2.text),ctaHref:F1("Button link")},P5=()=>x1("Alignment",u6(vj,{}),[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}],"left"),Ho=()=>x1("Tone",u6(bj,{}),[{label:"Default",value:"default"},{label:"Muted",value:"dim"}],"default"),u3=e=>f5({...Ao[e],keys:{top:"padTop",bottom:"padBottom"},group:!1}),E5=(e,t)=>({type:"custom",render:()=>u6(dL,{parentType:e,label:t})}),Fo=e=>({type:"custom",render:()=>u6(uL,{parentType:e})});function yj(e){let{photographyGrayscale:t}=N3();return l1(vL,t===!0,u6(fj,{})).render(e)}function qe(){return{type:"custom",render:e=>u6(yj,{...e})}}var j1=Object.keys(b5("full"));function We(e){let t=bL(e);return t?u6(a4,{noun:t}):u6(zj,{})}import{createContext as wj,useContext as Cj}from"react";import{jsx as y7,jsxs as tu}from"react/jsx-runtime";function au(e){return S9(e)??void 0}var su=wj({}),xL=3;function cu({tag:e,name:t,desc:a,href:s,imageSrc:c,imageLabel:l,price:r}){let{showPrice:o,cardStyle:i,partStyles:n,editing:h}=Cj(su),m=i==="bordered"?" border border-line":i==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",u=au(c),d=g=>h?{[f8]:g}:{},v=g=>Jl(n?.[b8(g)]?.role,hw[g],il);return tu(L1,{href:s||"#",className:`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${m}`,children:[y7("div",{className:"relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] group-hover:scale-[1.04]",children:y7(k0,{label:l||"collection.jpg",src:u})}),y7("div",{className:"pointer-events-none absolute inset-0 z-[1] [background:rgba(0,0,0,0.4)] group-hover:[background:rgba(0,0,0,0.3)] max-[800px]:hidden",style:{transition:"none"}}),tu("div",{className:"absolute inset-x-8 bottom-8 z-[2] flex flex-col gap-2.5 text-overlay-fg max-[800px]:relative max-[800px]:inset-auto max-[800px]:p-6 max-[800px]:gap-3 max-[800px]:text-fg",children:[e&&y7("span",{...d("tag"),style:v("tag"),className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.25em] opacity-70",children:k(e)}),t&&y7("h3",{...d("name"),style:v("name"),className:"font-heading2 text-[length:min(var(--size-headingMedium,48px),var(--sf-heading-max,9999px))] font-medium leading-none tracking-[-0.03em] max-[800px]:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",children:typeof t=="string"?Y(t,!1):t}),a&&x0(a).map((g,b)=>y7("p",{...d("body"),style:v("body"),className:"max-w-[420px] text-[length:var(--size-body,14px)] leading-[1.5] opacity-80",children:k(g)},b)),o&&r&&y7("span",{...d("price"),style:v("price"),className:"font-mono text-[length:var(--size-label,15px)] tracking-[0.05em] text-accent",children:k(r)}),tu("span",{...d("link"),style:v("link"),className:"mt-2 inline-flex items-center gap-2.5 font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em]",children:["Explore",y7("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]})}import{createContext as Mj,useCallback as Sj,useContext as Lj,useEffect as yL,useRef as Aj,useState as ru}from"react";import{useState as kj}from"react";function To(e){switch(e){case"tall":return"aspect-[3/4]";case"wide":return"aspect-[2/1]";case"landscape":return"aspect-[4/3]";case"portrait":return"aspect-[4/5]";case"auto":return"";default:return"aspect-square"}}function zL(e){return e==="below"}import{jsx as U4,jsxs as Ue}from"react/jsx-runtime";function lu({build:e,hiddenMobile:t,alwaysShowOverlay:a,forceHover:s,index:c,total:l,ratio:r,captionPlace:o}){let[i,n]=kj(!1),h=zL(o),m=Ue("div",{className:["sf-card group relative overflow-hidden bg-surface-2",To(r),t?"max-[800px]:hidden":""].join(" "),children:[Ue("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)]",s?"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:[U4(k0,{label:e.imageLabel,src:e.imageSrc}),U4("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),U4("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)]",s?"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&&U4(V3,{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:i?"none":"block"},onError:()=>n(!0)})}),c!=null&&l!=null&&Ue("span",{className:"pointer-events-none absolute top-3 right-3 z-[3] font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] max-[800px]:top-2.5 max-[800px]:right-2.5",style:{color:"rgba(245,241,232,0.7)"},children:[String(c).padStart(2,"0")," / ",String(l).padStart(2,"0")]}),e.process&&U4("span",{className:["pointer-events-none absolute top-3 left-3 z-[3] inline-block max-w-[60%] truncate font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-accent max-[800px]:top-2.5 max-[800px]:left-2.5","transition-opacity duration-300 ease-out",a||s?"opacity-100":"opacity-0 group-hover:opacity-100 max-[800px]:opacity-100"].join(" "),children:X1(e.process)}),Ue("div",{className:["absolute inset-0 z-[2] flex flex-col justify-end gap-1 p-6","transition-[opacity,transform] duration-300 ease-out",a||s?"opacity-100 translate-y-0":"opacity-0 translate-y-2 group-hover:opacity-100 group-hover:translate-y-0 max-[800px]:opacity-100 max-[800px]:translate-y-0","max-[800px]:p-3.5"].join(" "),style:{color:"var(--overlay-fg)",background:"linear-gradient(180deg, transparent 40%, rgba(10,10,10,.85) 100%)"},children:[e.car&&U4("div",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] text-accent max-[800px]:text-[length:var(--size-label,11px)] max-[800px]:tracking-[0.15em]",children:e.car}),e.wheel&&U4("div",{className:"font-heading3 text-[length:var(--size-headingSmall,22px)] font-medium leading-[1.05] tracking-[-0.02em] max-[800px]:text-[length:var(--size-body,16px)]",children:e.wheel}),e.finish&&U4("div",{className:"mt-1.5 flex gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.12em]",style:{color:"rgba(245,241,232,0.7)"},children:U4("span",{children:X1(e.finish)})})]})]});return h?Ue("div",{className:t?"max-[800px]:hidden":"",children:[m,Ue("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&U4("div",{className:"font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg",children:e.wheel}),(e.finish||e.car)&&U4("div",{className:"mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim",children:X1(e.finish||e.car)})]})]}):m}import{Fragment as je,jsx as Q0,jsxs as d3}from"react/jsx-runtime";var Xa=Mj({}),Ja="data-gallery-grid",ou="data-gallery-tile";function Hj(e,t){let[a,s]=ru(null);return yL(()=>{let c=e.current,l=c?.closest(`[${Ja}]`);if(!c||!l)return;let r=()=>{let i=Array.from(l.querySelectorAll(`[${ou}]`)),n=i.indexOf(c),h=n>=0?{index:n+1,total:i.length}:null;s(m=>m?.index===h?.index&&m?.total===h?.total?m:h)};if(r(),!t)return;let o=new MutationObserver(r);return o.observe(l,{childList:!0,subtree:!0}),()=>o.disconnect()},[e,t]),a}var wL=[{image:"",href:"#",process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},{image:"",href:"#",process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},{image:"",href:"#",process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},{image:"",href:"#",process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},{image:"",href:"#",process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},{image:"",href:"#",process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"}];function Fj(e,t){return(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||t}function Tj(e){let t=(e.photos??[]).map(l=>l?.src).filter(l=>!!l),a=e.image||t[0]||"",s=[a,...t].filter(l=>!!l),c=Fj(e.name,"gallery-item");return{car:e.eyebrow??"",wheel:e.name??"",process:e.process??"",finish:e.meta??"",imageLabel:`${c}.jpg`,detailLabel:`${c}-detail.jpg`,imageSrc:a||void 0,detailSrc:t[0]||a||void 0,photos:s,href:e.href}}function Qa({editing:e=!1,previewHover:t,ratio:a,captionPlace:s,...c}){let{galleryHref:l="/gallery",submitHref:r="/contact",previewHover:o}=Lj(Xa),i=Tj(c),n=i.photos??(i.imageSrc?[i.imageSrc]:[]),h=Aj(null),m=Sj(z=>{h.current=z},[]),u=Hj(h,e),d=e&&(!!t||!!o),[v,g]=ru(!1),[b,f]=ru(0);yL(()=>{if(!v)return;let z=S=>{S.key==="Escape"?g(!1):S.key==="ArrowLeft"&&n.length>1?f(H=>(H-1+n.length)%n.length):S.key==="ArrowRight"&&n.length>1&&f(H=>(H+1)%n.length)};window.addEventListener("keydown",z);let M=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",z),document.body.style.overflow=M}},[v,n.length]);let w=Q0(lu,{build:i,forceHover:d,index:u?.index,total:u?.total,ratio:a,captionPlace:s});return d3(je,{children:[e?Q0("div",{ref:m,[ou]:"",className:"block w-full text-left",children:w}):Q0("button",{ref:m,[ou]:"",type:"button","aria-label":`Open ${i.car||"build"} on ${i.wheel||"wheel"}`,onClick:()=>{f(0),g(!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:w}),v&&(()=>{let z=n[b]??i.imageSrc??"",M=()=>f(H=>(H-1+n.length)%n.length),S=()=>f(H=>(H+1)%n.length);return Q0("div",{role:"dialog","aria-modal":"true","aria-label":`${i.car} on ${i.wheel}`,onClick:()=>g(!1),className:"fixed inset-0 z-[100] flex items-center justify-center p-6 backdrop-blur-[8px] max-[700px]:p-3",style:{background:"color-mix(in oklab, var(--bg) 78%, transparent)"},children:d3("div",{onClick:H=>H.stopPropagation(),className:"relative grid w-[min(1800px,100%)] max-h-[calc(100vh-48px)] grid-cols-[1.4fr_1fr] overflow-hidden border border-line bg-bg max-[1100px]:grid-cols-1 max-[1100px]:overflow-auto",style:{boxShadow:"0 60px 120px -20px rgba(0,0,0,0.7)"},children:[Q0("button",{type:"button",onClick:()=>g(!1),"aria-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:"color-mix(in oklab, var(--bg) 70%, transparent)"},children:"\u2715"}),d3("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-[1100px]:min-h-[450px]",children:[z&&Q0("img",{src:z,alt:`${i.car} \u2014 ${b+1} of ${n.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},z),n.length>1&&d3(je,{children:[Q0("button",{type:"button","aria-label":"Previous photo",onClick:M,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"}),Q0("button",{type:"button","aria-label":"Next photo",onClick:S,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"}),d3("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:[b+1," / ",n.length]})]})]}),d3("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-[1100px]:px-9 max-[1100px]:py-[54px]",children:[i.process&&Q0("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:k(i.process)}),i.wheel&&Q0("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:Y(i.wheel,!1)}),i.car&&d3("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",Q0("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:k(i.car,!0)})]}),d3("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:[i.wheel&&d3(je,{children:[Q0("dt",{className:"text-fg-dim",children:"Wheel"}),Q0("dd",{className:"text-fg",children:k(i.wheel)})]}),i.process&&d3(je,{children:[Q0("dt",{className:"text-fg-dim",children:"Process"}),Q0("dd",{className:"text-fg",children:k(i.process)})]}),i.finish&&d3(je,{children:[Q0("dt",{className:"text-fg-dim",children:"Finish"}),Q0("dd",{className:"text-fg",children:k(i.finish)})]}),i.car&&d3(je,{children:[Q0("dt",{className:"text-fg-dim",children:"Vehicle"}),Q0("dd",{className:"text-fg",children:k(i.car)})]})]}),d3("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[d3(L1,{href:i.href||"/wheels",onClick:()=>g(!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:[Q0("span",{children:"View product"}),Q0("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),d3(L1,{href:l,onClick:()=>g(!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:[Q0("span",{children:"See more builds"}),Q0("span",{children:"\u2192"})]}),d3(L1,{href:r,onClick:()=>g(!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:[Q0("span",{children:"Submit your build"}),Q0("span",{children:"\u2192"})]})]})]})]})})})()]})}import{createContext as Nj,useContext as _j,useEffect as Po,useId as Ij,useMemo as Rj,useState as N2}from"react";var Pj=14,Ej=3;function iu(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function Vj(e,t){let a=new Date(`${e}T00:00:00`);return a.setDate(a.getDate()+t),iu(a)}async function CL(e,t,a={}){let s=a.days??Pj,c=a.read??z8.getAvailability,l=0,r=0;for(let o=0;o<s;o++){if(a.signal?.aborted)return{outcome:"unreadable"};let i=Vj(t,o);try{let n=await c(e,i);if(l=0,r++,n.slots.length>0)return{outcome:"found",date:i,availability:n}}catch{if(l++,l>=Ej)return{outcome:"unreadable"}}}return r===s?{outcome:"noneInWindow",days:s}:{outcome:"unreadable"}}import{jsx as Dj}from"react/jsx-runtime";var kL=Nj(null);function w7(){let e=_j(kL);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var nu=[{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:""}];function Bj(e){return{timezone:"UTC",slots:[`${e}T09:00:00.000Z`,`${e}T10:30:00.000Z`,`${e}T13:00:00.000Z`].map(t=>({start:t}))}}var hu={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"2026-01-01T00:00:00.000Z",timezone:"UTC",customerTimezone:"",manageToken:"example"};function Zj(e,t){return e&&t?.length===0}function ML({editing:e=!1,previewConfirmation:t=!1,children:a}){let s=Ij(),c=Rj(()=>iu(new Date),[]),[l,r]=N2(),[o,i]=N2(""),[n,h]=N2(""),[m,u]=N2(c),[d,v]=N2(c),[g,b]=N2(!1),[f,w]=N2(null),[z,M]=N2(),[S,H]=N2(""),[I,E]=N2(""),[O,T]=N2(""),[P,N]=N2(""),[D,Z]=N2(""),[_,U]=N2(()=>Hm()),[V,J]=N2(null),[j,W]=N2(!1),[n1,z1]=N2(!1),[$,c1]=N2(null),[g1,K]=N2("");Po(()=>{K(Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC")},[]),Po(()=>{let c0=!1;return z8.listServices().then(l0=>{c0||(r(l0.results),i(l0.currency),h(Y1=>Y1||l0.results[0]?.id||""))}).catch(()=>{c0||r([])}),()=>{c0=!0}},[]),Po(()=>{if(g||!n)return;let c0={aborted:!1};return H(""),M(void 0),c1(null),w(null),W(!0),CL(n,c,{signal:c0}).then(l0=>{if(!c0.aborted){if(l0.outcome==="found"){u(l0.date),v(l0.date),M(l0.availability);return}w(l0.outcome==="noneInWindow"?`No times are available in the next ${l0.days} days.`:"We couldn't load available times. Please try again.")}}).finally(()=>{c0.aborted||W(!1)}),()=>{c0.aborted=!0}},[g,n,c]),Po(()=>{if(!g||!n||!m)return;let c0=!1;return H(""),M(void 0),c1(null),w(null),W(!0),z8.getAvailability(n,m).then(l0=>{c0||(M(l0),l0.slots.length===0&&w("No times are available on this date."))}).catch(()=>{c0||w("We couldn't load available times. Please try again.")}).finally(()=>{c0||W(!1)}),()=>{c0=!0}},[m,g,n]);let u1=l?.find(c0=>c0.id===n),b1=u1?.depositAmountDue!=null,T0=!!(!e&&!n1&&u1&&S&&I.trim()&&O.trim()&&!b1);async function P0(c0){if(c0.preventDefault(),!(!T0||!u1)){z1(!0),c1(null);try{let l0=await z8.create({serviceId:u1.id,start:S,customer:{name:I.trim(),email:O.trim(),phone:P.trim()},notes:D.trim(),idempotencyKey:_,customerTimezone:g1});J(l0),U(Hm())}catch(l0){c1(l0 instanceof G4&&l0.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),l0 instanceof G4&&l0.status===409&&(H(""),z8.getAvailability(u1.id,m).then(M).catch(()=>{}))}finally{z1(!1)}}}let H1=Zj(e,l);return Dj(kL.Provider,{value:{fieldPrefix:s,editing:e,services:H1?nu:l,currency:H1?"AUD":o,serviceId:H1?nu[0].id:n,setServiceId:h,service:H1?nu[0]:u1,requiresPayment:H1?!1:b1,date:m,earliestDate:d,setDate:u,setDateTouched:b,availability:H1?Bj(m):z,loadingSlots:H1?!1:j,noSlotsMessage:f,selectedStart:H1?`${m}T09:00:00.000Z`:S,setSelectedStart:H,customerTimezone:g1,name:I,setName:E,email:O,setEmail:T,phone:P,setPhone:N,notes:D,setNotes:Z,confirmation:V??(t?hu:null),submitting:n1,error:$,canSubmit:H1?!1:T0,handleSubmit:P0,sample:!!H1},children:a})}import{jsx as mu,Fragment as Oj,jsxs as Gj}from"react/jsx-runtime";var qj="sf-button group inline-flex items-center justify-center gap-2.5 border px-[22px] py-4 font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors",SL={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 s3(e){let{variant:t="primary",arrow:a,className:s,style:c,children:l,href:r,newTab:o,...i}=e,n=`${qj} ${SL[t]??SL.primary} ${s??""}`,h=Gj(Oj,{children:[l,a!==null&&mu("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",children:a??"\u2192"})]});return r?mu(s0,{href:r,className:n,style:c,...o?{target:"_blank",rel:"noopener noreferrer"}:{},children:h}):mu("button",{type:"button",className:n,style:c,...i,children:h})}import{jsx as A0,jsxs as L3}from"react/jsx-runtime";var es="w-full border-2 border-line bg-bg px-4 py-3.5 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 Wj(e,t){let a=Number(e);if(a===0)return"Free";try{return new Intl.NumberFormat(void 0,{style:"currency",currency:t}).format(a)}catch{return`${t} ${e}`}}function LL(e,t){try{return new Intl.DateTimeFormat(void 0,{hour:"numeric",minute:"2-digit",timeZone:t}).format(new Date(e))}catch{return new Date(e).toLocaleTimeString([],{hour:"numeric",minute:"2-digit"})}}function AL(e,t){try{return new Intl.DateTimeFormat(void 0,{weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit",timeZone:t,timeZoneName:"short"}).format(new Date(e))}catch{return new Date(e).toLocaleString()}}var ts="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function pu({number:e,children:t}){return L3("div",{className:"mb-4 flex items-center gap-3",children:[A0("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}),A0("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 Eo({eyebrow:e,heading:t,intro:a}){return L3("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&A0("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&A0("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-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:t}),(a??"").trim()&&A0("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:a})]})}function Vo({style:e}={}){let{fieldPrefix:t,services:a,currency:s,serviceId:c,setServiceId:l,requiresPayment:r,date:o,earliestDate:i,setDate:n,setDateTouched:h,availability:m,loadingSlots:u,noSlotsMessage:d,selectedStart:v,setSelectedStart:g,customerTimezone:b}=w7();return a?L3("div",{className:"flex flex-col gap-9",style:e,children:[L3("div",{children:[A0(pu,{number:"01",children:"Choose a service"}),A0("div",{className:"grid gap-3 sm:grid-cols-2",children:a.map(f=>{let w=f.id===c;return L3("button",{type:"button","aria-pressed":w,onClick:()=>l(f.id),className:`min-h-11 border p-4 text-left transition-colors ${w?"border-accent bg-accent/10":"border-line bg-bg hover:border-fg-dim"}`,children:[A0("span",{className:"block font-[family-name:var(--bk-name-font,var(--font-display))] text-[length:var(--bk-name-size,18px)] font-medium text-fg",children:f.name}),L3("span",{className:"mt-1 block font-[family-name:var(--bk-value-font,var(--font-mono))] text-[length:var(--bk-value-size,11px)] uppercase tracking-[0.14em] text-fg-dim",children:[f.durationMinutes," min \xB7 ",Wj(f.price,s)]}),f.description&&A0("span",{className:"mt-3 block font-[family-name:var(--bk-note-font,var(--font-display))] text-[length:var(--bk-note-size,14px)] leading-[1.5] text-fg-dim",children:f.description})]},f.id)})}),r&&A0("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."})]}),L3("div",{children:[A0(pu,{number:"02",children:"Choose a date and time"}),A0(D2,{separate:!0,htmlFor:`${t}-date`,label:"Date",required:!0,labelFace:ts,children:A0("input",{id:`${t}-date`,type:"date",min:i,value:o,onChange:f=>{h(!0),n(f.target.value)},className:es,required:!0})}),A0("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:u?A0("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?m.slots.map(f=>L3("button",{type:"button","aria-pressed":v===f.start,onClick:()=>g(f.start),className:`min-h-11 border px-3 py-2 font-[family-name:var(--bk-value-font,var(--font-mono))] text-[length:var(--bk-value-size,12px)] font-semibold uppercase tracking-[0.12em] transition-colors ${v===f.start?"border-accent bg-accent text-bg":"border-line bg-bg text-fg hover:border-accent"}`,children:[A0("span",{className:"block",children:LL(f.start,b||m.timezone)}),b&&b!==m.timezone&&L3("span",{className:"mt-0.5 block text-[9px] font-normal tracking-[0.08em] opacity-70",children:[LL(f.start,m.timezone)," business"]})]},f.start)):d?A0("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:d}):null}),m?.timezone&&L3("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 ",b||m.timezone,b&&b!==m.timezone?` \xB7 business timezone ${m.timezone}`:""]})]})]}):null}function No({buttonLabel:e,style:t}){let{fieldPrefix:a,editing:s,name:c,setName:l,email:r,setEmail:o,phone:i,setPhone:n,notes:h,setNotes:m,submitting:u,error:d,canSubmit:v}=w7();return L3("div",{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-7",style:t,children:[A0(pu,{number:"03",children:"Your details"}),L3("div",{className:"flex flex-col gap-4",children:[A0(D2,{separate:!0,htmlFor:`${a}-name`,label:"Name",required:!0,labelFace:ts,children:A0("input",{id:`${a}-name`,type:"text",autoComplete:"name",value:c,onChange:g=>l(g.target.value),className:es,required:!0})}),A0(D2,{separate:!0,htmlFor:`${a}-email`,label:"Email",required:!0,labelFace:ts,children:A0("input",{id:`${a}-email`,type:"email",inputMode:"email",autoComplete:"email",value:r,onChange:g=>o(g.target.value),className:es,required:!0})}),A0(D2,{separate:!0,htmlFor:`${a}-phone`,label:"Phone",labelFace:ts,children:A0("input",{id:`${a}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:i,onChange:g=>n(g.target.value),className:es})}),A0(D2,{separate:!0,htmlFor:`${a}-notes`,label:"What would you like to cover?",labelFace:ts,children:A0("textarea",{id:`${a}-notes`,rows:4,value:h,onChange:g=>m(g.target.value),className:`${es} resize-y`})})]}),d&&A0("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:d}),A0(s3,{type:s?"button":"submit",disabled:!v,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:u?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function _o({successMessage:e}){let{confirmation:t,customerTimezone:a}=w7();return t?L3("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-9",role:"status",children:[L3("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),A0("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),A0("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:AL(t.startAt,t.customerTimezone||a||t.timezone)}),t.customerTimezone&&t.timezone!==t.customerTimezone&&L3("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",AL(t.startAt,t.timezone)]}),(e??"").trim()&&A0("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),A0(s3,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:t!==hu,variant:"ghost",className:"mt-7",children:"Manage booking"})]}):null}var Io=["step","name","value","note"],uu={step:"Step",name:"Name",value:"Value",note:"Note"},Ro={step:"styleStep",name:"styleName",value:"styleValue",note:"styleNote"},HL={step:{font:"--bk-step-font",size:"--bk-step-size"},name:{font:"--bk-name-font",size:"--bk-name-size"},value:{font:"--bk-value-font",size:"--bk-value-size"},note:{font:"--bk-note-font",size:"--bk-note-size"}};function Uj(e){return typeof e=="string"&&d5.includes(e)?e:null}var jj={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:900};function FL(e){let t={};for(let a of Io){let s=Uj(e[Ro[a]]);if(!s)continue;let c=P9({role:s},jj);c.fontFamily&&(t[HL[a].font]=c.fontFamily),c.fontSize&&(t[HL[a].size]=c.fontSize)}return t}import{jsx as Ke}from"react/jsx-runtime";var TL=["head","booking","details","confirm"],PL={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function du({region:e,eyebrow:t,heading:a,intro:s,buttonLabel:c,successMessage:l,...r}){let{confirmation:o,services:i}=w7(),n=FL(r);return e==="head"?Ke("div",{className:"min-[960px]:col-span-2",style:n,children:Ke(Eo,{eyebrow:t,heading:a,intro:s})}):e==="confirm"?o?Ke("div",{className:"min-[960px]:col-span-2",style:n,children:Ke(_o,{successMessage:l})}):null:o||!i||i.length===0?null:e==="booking"?Ke(Vo,{style:n}):e==="details"?Ke(No,{buttonLabel:c,style:n}):null}import{jsx as Y0,Fragment as Kj,jsxs as A4}from"react/jsx-runtime";var F8="solid",gu=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function EL(e){return R2(gu,F8,e)}var vu="sf-secnum-outline",VL="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",NL=`@supports (-webkit-text-stroke: 1px currentColor){.${vu}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var as=(e,t=!1)=>typeof e=="string"?Y(e,t):e,$e=(e,t=!1)=>typeof e=="string"?k(e,t):e;function t0({num:e,title:t,link:a,logo:s,description:c,accent:l,accentNum:r,numStyle:o=F8,look:i="standard",titleAccent:n,accentTracking:h="-0.02em",spaceBelow:m,rowGap:u,descriptionSize:d,className:v="",eyebrowLook:g=rr}){let b=m??(i==="editorial"?"mb-[60px]":"");if(i==="editorial"){let H=!!t||!!n;return A4("header",{className:`${b} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-[1100px]:grid-cols-1 max-[1100px]:gap-3.5 ${v}`.trim(),children:[e&&(typeof e=="string"?Y0(N1,{text:e,className:"pb-2"}):Y0("span",{className:"pb-2",children:e})),H&&A4("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[t,n&&A4(Kj,{children:[" ",Y0("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:h},children:n})]})]}),c&&Y0("p",{className:"max-w-[360px] pb-1 text-right font-display text-[length:var(--size-body,14px)] leading-[1.5] text-fg-dim max-[1100px]:max-w-full max-[1100px]:text-left",children:c})]})}if(i==="simple"){let H=`${b} ${v}`.trim();return A4("div",{className:H||void 0,children:[e&&(typeof e=="string"?Y0(N1,{text:e,look:g,className:"mb-4 block"}):Y0("span",{className:"mb-4 block",children:e})),t&&Y0("h2",{className:"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-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:as(t)})]})}if(i==="statement"){let H=`${b} ${v}`.trim();return A4("div",{className:H||void 0,children:[e&&(typeof e=="string"?Y0(N1,{text:e,look:g,className:"mb-4 block"}):Y0("span",{className:"mb-4 block",children:e})),t&&Y0("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:as(t,!0)})]})}if(i==="natural"){let H=`flex max-w-[680px] flex-col ${u??"gap-5"} ${b} ${v}`.replace(/\s+/g," ").trim();return A4("div",{className:H,children:[e&&(typeof e=="string"?Y0(N1,{text:e,look:g}):Y0("span",{children:e})),t&&Y0("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-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:as(t)}),c&&Y0("p",{className:`${d??"text-[length:var(--size-body,16px)]"} leading-[1.6] opacity-85`,children:c})]})}if(i==="essay"){let H=`${b} ${v}`.trim();return A4("div",{className:H||void 0,children:[e&&(typeof e=="string"?Y0(N1,{text:e,look:g,className:"mb-4 block"}):Y0("span",{className:"mb-4 block",children:e})),t&&Y0("h2",{className:"font-heading2 text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg max-[800px]:text-[length:var(--size-headingSmall,28px)]",children:as(t)})]})}let f=!!c||!!a,w=!!t,z=EL(o)==="outlined",M="font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.3em]",S=null;if(e)if(z)S=Y0("span",{className:`${VL} text-fg-dim ${vu}`,children:$e(e)});else if(r&&!l&&typeof e=="string"){let H=e.indexOf("/"),I=H===-1?e:e.slice(0,H),E=H===-1?"":e.slice(H);S=A4("span",{className:M,children:[Y0("span",{className:"text-accent",children:$e(I)}),E&&Y0("span",{className:"text-fg-dim",children:$e(E)})]})}else S=Y0("span",{className:`${M} ${l?"text-accent":"text-fg-dim"}`,children:$e(e)});return A4("div",{className:"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-[800px]:mb-9 max-[800px]:grid-cols-1 max-[800px]:gap-3 max-[800px]:pb-5",children:[z&&e&&Y0("style",{children:NL}),A4("div",{className:"flex flex-col items-start gap-3",children:[s?.src&&Y0("img",{src:F2(s.src),alt:s.alt,className:"h-8 w-auto object-contain"}),S]}),w&&Y0("h2",{className:l?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":"font-heading2 text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line max-[800px]:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))] max-[800px]:leading-[1]",children:as(t)}),f&&A4("div",{className:"flex flex-col items-end gap-3 max-[800px]:items-start",children:[c&&Y0("p",{className:"max-w-[340px] font-display text-[length:var(--size-body,14px)] leading-[1.5] text-fg-dim text-right max-[800px]:max-w-full max-[800px]:text-left",children:$e(c)}),a&&A4(s0,{href:a.href,className:"inline-flex items-center gap-2 whitespace-nowrap font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg",children:[$e(a.text),Y0("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}import{jsx as H4,jsxs as ss}from"react/jsx-runtime";function $j(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function _L({eyebrow:e,title:t}){return ss("div",{className:"flex flex-col gap-4",children:[e&&H4(N1,{text:e,scaled:!1}),t&&H4("h2",{className:"font-display text-[min(clamp(40px,5vw,72px),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:Y(t,!0)})]})}function Bo({body:e,buttonLabel:t,consent:a,form:s,submission:c,showForm:l,resolving:r,editing:o}){return ss("div",{className:"flex flex-col gap-7",children:[e&&x0(e).map((i,n)=>H4("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:k(i)},n)),l&&(s?c.done?H4("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:Ie(s)}):ss("form",{className:"grid grid-cols-2 gap-2",onSubmit:c.handleSubmit,children:[s.fields.map(i=>{let n=["border border-line bg-transparent px-4 py-3.5 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",$j(i)?"col-span-2":""].join(" ");return i.type==="checkbox"?ss("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:[H4(v7,{field:i,value:c.valueOf(i.key),onChange:h=>c.set(i.key,h),className:"mt-0.5 size-4 accent-accent"}),ss("span",{children:[i.label,i.required?H4("span",{className:"text-accent",children:" *"}):null]})]},i.key):H4(v7,{field:i,value:c.valueOf(i.key),onChange:h=>c.set(i.key,h),rows:4,placeholder:i.placeholder||i.label,className:i.type==="textarea"?`${n} resize-y`:n},i.key)}),H4(Re,{value:c.honeypot,onChange:c.setHoneypot}),c.error&&H4("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:c.error}),t&&H4("button",{type:o?"button":"submit",disabled:c.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:c.submitting?"Sending\u2026":k(t)})]}):H4("p",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:r?p("Loading form\u2026"):p("Choose a form in the inspector, under Form \u2014 until then this form is hidden on the live page and nothing can be submitted.")})),l&&a&&H4("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:k(a)})]})}var Zo=["field","tick","thanks"],fu={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},Do={field:"styleField",tick:"styleTick",thanks:"styleThanks"},IL={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 Yj(e){return typeof e=="string"&&d5.includes(e)?e:null}var Xj={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:900};function RL(e){let t={};for(let a of Zo){let s=Yj(e[Do[a]]);if(!s)continue;let c=P9({role:s},Xj);c.fontFamily&&(t[IL[a].font]=c.fontFamily),c.fontSize&&(t[IL[a].size]=c.fontSize)}return t}import{jsx as Oo}from"react/jsx-runtime";var BL=["head","form"],ZL={head:"Head",form:"Form"};function bu({region:e,eyebrow:t,title:a,body:s,buttonText:c,consent:l,formSlug:r,form:o,editing:i=!1,...n}){let h=L5(r,o),m=g7({form:h,formSlug:r,editing:i}),u=RL(n);return e==="head"?Oo("div",{style:u,children:Oo(t0,{look:"statement",num:t,title:a})}):Oo("div",{style:u,children:Oo(Bo,{body:s??"",buttonLabel:c??"",consent:l??"",form:h,submission:m,showForm:!!h||i,resolving:h===void 0,editing:i})})}var Jj={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>TL.map(e=>({region:e,name:PL[e]})),addBlocked:()=>p("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:()=>BL.map(e=>({region:e,name:ZL[e]})),addBlocked:()=>p("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:xL},()=>({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:()=>wL.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};Ux(Jj);function Ye(e,t){let a={};for(let s of Object.keys(e))a[s]={...e[s],...t[s]};return a}import{jsx as Qj}from"react/jsx-runtime";import{OpacityIcon as eK}from"efficient-easel/icons";var DL={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow","Limited release"),title:G("Heading","Banner headline"),body:G("Body","A line or two of supporting copy."),_gBackground:x("Background image"),imageSrc:q1("Image","image/*"),overlay:s1("Overlay",Qj(eK,{}),0,100,5,60,"%"),_gButton:x("Button"),...L4,_gLayout:x("Layout")}};import{jsx as sK}from"react/jsx-runtime";import{jsx as cs,jsxs as xu,Fragment as tK}from"react/jsx-runtime";import{Fragment as aK}from"react";function OL({items:e,meta:t,editing:a=!1}){let s=(e??[]).filter(l=>l?.label?.trim()),c=s.length>0?s:a?[{label:p("Breadcrumb")}]:[];return c.length===0&&!t?null:xu("nav",{className:"flex items-center gap-4 border-b border-line px-[var(--sf-site-gutter,40px)] py-6 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim max-[720px]:px-[min(20px,var(--sf-site-gutter,40px))] max-[720px]:py-4",children:[c.map((l,r)=>{let o=r===c.length-1;return xu(aK,{children:[r>0&&cs("span",{className:"opacity-40",children:"/"}),l.href&&!o?cs(s0,{href:l.href,className:"hover:text-fg",children:D0(l.label)}):cs("span",{className:o?"text-fg":void 0,children:D0(l.label)})]},r)}),t&&xu(tK,{children:[cs("span",{className:"opacity-40",children:"\xB7"}),cs("span",{children:k(t)})]})]})}function j4(e,t,a){return e||(a?.isEditing?p(t):void 0)}function w1(e,t,a){let s=Array.isArray(e)?e:[];return s.length?s:a?.isEditing?t:[]}function y(e,t,a){let s=T2(e);if(!s.hidden)return j4(s.text,t,a)}function e2(e,t,a){return T2(e).hidden?"":y(e,t,a)}function G3(e,t,a){return{text:y(e,u2.text,a),href:t||u2.href}}var zu={meta:"Trailing note"},cK=()=>[{label:p("Home"),href:"/"},{label:p("Section"),href:""}],GL={label:"Breadcrumb",defaultProps:{items:[],meta:""},render:({items:e,meta:t,puck:a})=>sK(OL,{items:w1(e,cK(),a),meta:y(t,zu.meta,a),editing:a?.isEditing})};var qL={fields:{_gContent:x("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:q("Label"),href:Q2(q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:F("Trailing note",zu.meta)}};import{jsx as rK}from"react/jsx-runtime";function WL(e){return typeof e=="boolean"?e:!0}import{ButtonArrowIcon as oK}from"efficient-easel/icons";var UL={fields:{label:q("Button"),href:F1("Button link"),_gStyle:x("Style"),variant:{type:"radio",options:[{label:"Primary",value:"primary"},{label:"Ghost",value:"ghost"}]},arrow:l1("Arrow",!0,rK(oK,{})),align:P5()}};import{jsx as $L}from"react/jsx-runtime";import{ColumnsIcon as uK,StylesIcon as dK}from"efficient-easel/icons";import{jsx as mK}from"react/jsx-runtime";import{jsx as Xe,Fragment as iK,jsxs as yu}from"react/jsx-runtime";var nK="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))]",hK="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))]";function jL({look:e,eyebrow:t,title:a,items:s,columns:c,omitHead:l=!1,editing:r=!1}={}){let o=Math.min(4,Math.max(2,c??3)),i=(s??[]).filter(h=>r||(h.title??"").trim()||(h.body??"").trim()),n=!!(t??"").trim()||!!(a??"").trim();return!r&&!n&&i.length===0?null:Xe("section",{className:"relative z-[2] bg-surface",children:yu("div",{className:l?hK:nK,children:[l?null:yu(iK,{children:[(t??"").trim()&&Xe(N1,{text:t??"",look:e,className:"mb-4 block"}),(a??"").trim()&&Xe("h2",{className:"mb-9 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-[800px]:mb-7 max-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:Y(a??"",!1)})]}),i.length>0&&Xe("div",{className:"sf-card grid grid-cols-1 gap-px border border-line bg-line min-[700px]:[grid-template-columns:repeat(var(--cd-cols),minmax(0,1fr))]",style:{"--cd-cols":String(o)},children:i.map((h,m)=>yu("div",{className:"bg-bg p-8 max-[800px]:p-7",children:[Xe("div",{className:"mb-3 font-heading3 text-[length:var(--size-headingSmall,20px)] font-medium uppercase tracking-[0.02em] text-fg",children:k((h.title??"").trim()||"Card title")}),Xe("p",{className:"text-[length:var(--size-body,15px)] leading-[1.6] text-fg-dim",children:k((h.body??"").trim()||"A short line about this card.")})]},m))})]})})}var ls={eyebrow:"Label",title:"Section *heading.*"},pK=()=>[{title:p("Card title one"),body:p("A short line about this card.")},{title:p("Card title two"),body:p("A short line about this card.")},{title:p("Card title three"),body:p("A short line about this card.")}],KL={label:"Cards",defaultProps:{eyebrow:"",title:"",items:[],columns:3},render:e=>{let t=O1(e.headPlacement)==="own-box",a=s=>t?void 0:s;return mK(jL,{look:l4(e.eyebrowLook,"Cards"),eyebrow:a(y(e.eyebrow,ls.eyebrow,e.puck)),title:a(y(e.title,ls.title,e.puck)),omitHead:t,items:w1(e.items,pK(),e.puck),columns:e.columns,editing:e.puck?.isEditing})}};var YL={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow",ls.eyebrow),eyebrowLook:v1("Eyebrow style",$L(dK,{}),[...w4],c7("Cards")),title:G("Heading",ls.title),items:{type:"array",label:"Cards",arrayFields:{title:f1("Card title"),body:V1("Card body")},defaultItemProps:{title:"",body:""},getItemSummary:e=>e?.title||e?.body||"Card"},_gStyle:x("Style"),columns:s1("Columns",$L(uK,{}),2,4,1,3)},resolveFields:(e,{fields:t,parent:a})=>G1(U1(t,a,j1),e.props.headPlacement,Z1.Cards.headRows)};import{jsx as gK}from"react/jsx-runtime";import{StickyIcon as vK}from"efficient-easel/icons";var XL={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:Q2(q("Active tab","All")),_gLinks:x("Links"),links:{type:"array",label:"Right links",arrayFields:{label:q("Label"),href:Q2(q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:x("Style"),sticky:l1("Stick under header",!0,gK(vK,{}))}};import{jsx as wK}from"react/jsx-runtime";import{StylesIcon as CK}from"efficient-easel/icons";import{jsx as zK}from"react/jsx-runtime";import{jsx as l2,jsxs as K4}from"react/jsx-runtime";function wu(e){return Number.isInteger(e)?String(e):String(Math.round(e*10)/10)}var JL=[100,70,46,30,19,12];function QL(e){return`color-mix(in srgb, var(--accent) ${JL[e%JL.length]}%, var(--bg))`}function fK({data:e,suffix:t}){let a=Math.max(...e.map(s=>s.value),0)||1;return l2("div",{className:"flex w-full flex-col gap-6",children:e.map((s,c)=>K4("div",{children:[K4("div",{className:"mb-2 flex items-baseline justify-between gap-4",children:[l2("span",{className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg/60",children:k(s.label)}),K4("span",{className:"font-display text-[length:var(--size-body,16px)] font-medium text-fg",children:[wu(s.value),t]})]}),l2("div",{className:"h-[10px] border border-line bg-bg",children:l2("div",{className:"h-full bg-accent",style:{width:`${Math.max(s.value/a*100,s.value===0?0:2)}%`}})})]},c))})}function bK({data:e,suffix:t}){let a={l:42,r:42,t:36,b:38},s=640-a.l-a.r,c=300-a.t-a.b,l=Math.max(...e.map(h=>h.value),0)||1,r=e.length>1?s/(e.length-1):0,o=e.map((h,m)=>({x:a.l+(e.length>1?m*r:s/2),y:a.t+c-h.value/l*c})),i=o.map((h,m)=>`${m===0?"M":"L"}${h.x},${h.y}`).join(" "),n=`${i} L${o[o.length-1].x},${a.t+c} L${o[0].x},${a.t+c} Z`;return K4("svg",{viewBox:"0 0 640 300",className:"w-full",role:"img","aria-hidden":!0,children:[[.25,.5,.75,1].map(h=>l2("line",{x1:a.l,x2:640-a.r,y1:a.t+c*(1-h),y2:a.t+c*(1-h),stroke:"var(--site-line)",strokeWidth:"1"},h)),l2("line",{x1:a.l,x2:640-a.r,y1:a.t+c,y2:a.t+c,stroke:"var(--site-line)",strokeWidth:"1.5"}),l2("path",{d:n,fill:"var(--accent)",opacity:"0.13"}),l2("path",{d:i,fill:"none",stroke:"var(--accent)",strokeWidth:"2.5"}),o.map((h,m)=>K4("g",{children:[l2("circle",{cx:h.x,cy:h.y,r:"4",fill:"var(--accent)"}),K4("text",{x:h.x,y:h.y-12,textAnchor:"middle",className:"font-display",fontSize:"14",fill:"var(--fg)",children:[wu(e[m].value),t]}),l2("text",{x:h.x,y:288,textAnchor:"middle",className:"font-mono",fontSize:"10",letterSpacing:"0.1em",fill:"var(--fg)",opacity:"0.55",children:e[m].label.toUpperCase()})]},m))]})}function xK({data:e,suffix:t}){let a=e.reduce((o,i)=>o+i.value,0)||1,s=80,c=2*Math.PI*s,l=0,r=e.map((o,i)=>{let n=o.value/a,h={frac:n,dash:Math.max(n*c-3,0),off:l,ink:QL(i)};return l+=n*c,h});return K4("div",{className:"flex w-full flex-wrap items-center justify-center gap-10",children:[l2("svg",{viewBox:"0 0 200 200",className:"w-[220px] max-w-full -rotate-90",role:"img","aria-hidden":!0,children:r.map((o,i)=>l2("circle",{cx:"100",cy:"100",r:s,fill:"none",stroke:o.ink,strokeWidth:"34",strokeDasharray:`${o.dash} ${c-o.dash}`,strokeDashoffset:-o.off},i))}),l2("ul",{className:"flex min-w-[200px] flex-1 flex-col gap-3",children:e.map((o,i)=>K4("li",{className:"flex items-baseline gap-3",children:[l2("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] flex-shrink-0 rotate-45",style:{background:QL(i)}}),l2("span",{className:"flex-1 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.12em] text-fg/60",children:k(o.label)}),l2("span",{className:"font-display text-[length:var(--size-body,15px)] font-medium text-fg",children:t?`${wu(o.value)}${t}`:`${Math.round(o.value/a*100)}%`})]},i))})]})}function eA({eyebrow:e,title:t,body:a,chartStyle:s,items:c,valueSuffix:l,caption:r,editing:o=!1}={}){let i=(l??"").trim()===""?"":l??"",n=(c??[]).map(d=>({label:(d.label??"").trim(),value:parseFloat(d.value??"")})).filter(d=>o?!0:d.label&&Number.isFinite(d.value)).map(d=>({label:d.label||"\u2014",value:Number.isFinite(d.value)?d.value:0})),h=!!(e??"").trim()||!!(t??"").trim();if(!o&&!h&&n.length===0)return null;let m=s??"bars",u=n.length===0?null:m==="line"&&n.length>1?l2(bK,{data:n,suffix:i}):m==="donut"?l2(xK,{data:n,suffix:i}):l2(fK,{data:n,suffix:i});return l2("section",{className:"relative z-[2] border-y border-line bg-surface",children:K4("div",{className:"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))]",children:[K4("div",{children:[(e??"").trim()&&l2("span",{className:"inline-block bg-accent px-3.5 py-1.5 font-mono text-[length:var(--size-label,12px)] font-semibold uppercase tracking-[0.16em] text-bg",children:k(e??"")}),(t??"").trim()&&l2("h2",{className:"mt-5 font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg max-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:Y(t??"",!1)}),(a??"").trim()&&l2("p",{className:"mt-5 max-w-[46ch] text-[length:var(--size-body,15px)] leading-relaxed text-fg/65",children:a})]}),K4("div",{children:[u,(r??"").trim()&&l2("p",{className:"mt-4 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.14em] text-fg/40",children:r})]})]})})}var rs={eyebrow:"By the numbers",title:`A picture worth
|
|
22
|
+
`}),n0("header",{className:"flex flex-shrink-0 flex-col gap-3.5 border-b border-line px-8 pb-[22px] pt-[26px] max-[640px]:px-[22px] max-[640px]:pt-[22px] max-[640px]:pb-[18px]",children:[n0("div",{className:"flex items-center justify-between",children:[n0("span",{className:"flex items-center gap-2.5 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?_1("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]}),_1("button",{ref:f,type:"button",onClick:s,"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"})]}),n0("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",_1("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),_1("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:fy(e,c.length)})]}),n0("div",{className:`grid flex-shrink-0 ${xU[b-1]} gap-px border-b border-line bg-line`,children:[_1(Wp,{label:"Items",value:n0(mo,{children:[_1("em",{className:"font-serif font-normal italic text-accent",children:o.sets})," set",o.sets===1?"":"s"," \xB7 ",o.units," item",o.units===1?"":"s"]})}),e.leadTimeValue?_1(Wp,{label:"Lead time",value:e.leadTimeValue}):null,g?_1(Wp,{label:"Ships to",value:g}):null]}),n0("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[c.length===0?_1(kU,{content:e}):c.map(z=>_1(zU,{line:z,tyre:w.get(z.slug),onRemove:()=>l(z.id),onQtyChange:M=>r(z.id,M)},z.id)),u.length>0&&n0("section",{className:"border-b border-line px-8 py-[22px] max-[640px]:px-[22px]",style:{background:"color-mix(in oklab, var(--site-surface) 60%, transparent)"},children:[n0("div",{className:"mb-3.5 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[_1("span",{children:"You may also need"}),_1("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),_1("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:u.map(z=>_1(yU,{href:`/bundles/${z.slug}`,title:z.name,sub:wU(z,o.currency,d)},z.slug))})]}),_1("section",{className:"border-b border-line px-8 py-[22px] max-[640px]:px-[22px]",children:_1(LC,{})}),e.promises.length>0&&_1("div",{className:"flex flex-wrap justify-center gap-[18px] border-b border-line px-8 pt-[22px] pb-7 font-mono text-[9px] uppercase tracking-[0.24em] text-fg-dim max-[640px]:px-[22px]",children:e.promises.map(z=>_1(CU,{children:z},z))})]}),n0("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-[22px]",children:[_1(b7,{label:`Subtotal \xB7 ${o.sets} set${o.sets===1?"":"s"}`,value:d(o.subtotal,o.currency)}),o.appliedBundles.map(z=>_1(b7,{label:`Bundle \xB7 ${z.name}${z.multiples>1?` \xD7${z.multiples}`:""}`,value:n0("span",{style:{color:"var(--green)"},children:["\u2212 ",d(z.discount,o.currency)]})},z.slug)),o.discount>0&&i?.valid&&_1(b7,{label:`Coupon \xB7 ${i.code}`,value:n0("span",{style:{color:"var(--green)"},children:["\u2212 ",d(o.discount,o.currency)]})}),i?.deferred&&_1(b7,{label:`Coupon \xB7 ${i.code}`,value:mC}),i?.valid&&i.effects?.gift&&_1(b7,{label:`Free gift \xB7 ${i.effects.gift.partNumber}${i.effects.gift.quantity>1?` \xD7${i.effects.gift.quantity}`:""}`,value:_1("span",{style:{color:"var(--green)"},children:"Free"})}),_1(b7,{label:"Shipping",value:o.freeShipping||o.shipping===0?_1("span",{style:{color:"var(--green)"},children:"Free"}):d(o.shipping,o.currency)}),o.tax&&(o.tax.charged?_1(b7,{label:o.tax.inclusive?`${o.tax.name} included \xB7 ${o.tax.rate}%`:o.tax.name,value:d(o.tax.amount,o.currency)}):o.tax.name?_1(b7,{label:o.tax.name,value:"Calculated at checkout"}):null),n0("div",{className:"mt-1.5 flex items-center justify-between border-t border-line pt-3.5 text-fg",children:[n0("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",_1("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),_1("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:o.repricing?"\u2026":d(o.grand,o.currency)})]})]}),n0("div",{className:"flex flex-shrink-0 flex-col gap-2.5 px-8 pb-[22px] pt-3.5 max-[640px]:px-[22px]",children:[n0(L1,{href:"/checkout",onClick:s,"aria-disabled":c.length===0,className:["group flex items-center justify-between border px-5 py-[18px] font-mono text-[12px] uppercase tracking-[0.3em] transition-colors",c.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",_1("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),n0("div",{className:"flex items-center justify-between px-1 py-1.5 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:[_1(L1,{href:"/wheels",onClick:s,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"}),_1("button",{type:"button",className:"text-fg transition-colors hover:text-accent",children:"Save for later"})]})]})]})]}):null}var xU=["grid-cols-1","grid-cols-2","grid-cols-3"];function Wp({label:e,value:t}){return n0("div",{className:"flex flex-col gap-[3px] bg-bg px-4 py-3.5",children:[_1("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),_1("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function zU({line:e,tyre:t,onRemove:a,onQtyChange:s}){let{catalog:c,totals:l}=r4(),r=(e.components??[]).reduce((n,h)=>n+(l.freeUnitsByPartNumber[h.partNumber]??0),0),{currency:o,formatMoney:i}=u0();return n0(mo,{children:[n0("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-[22px] max-[640px]:py-5",children:[_1(Gp,{line:e,catalog:c,tyre:t}),n0("div",{className:"flex min-w-0 flex-col gap-2",children:[n0("div",{className:"flex items-start justify-between gap-3",children:[n0("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:["N\xB0 ",e.positionNo," \xB7 ",e.process==="FusionForge\xAE"?n0(mo,{children:["FusionForge",_1(o6,{})]}):e.process]}),_1("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:Lm(e,o)===null?i7:i(Lm(e,o),o)})]}),n0("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,_1("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&n0("div",{className:"mt-1 flex flex-wrap gap-1.5",children:[e.config.map(n=>_1("span",{className:["border px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em]",n.gold?"border-[color-mix(in_oklab,var(--accent)_45%,var(--site-line))] text-accent":"border-line text-fg-dim"].join(" "),children:n.label},n.label)),r>0&&n0("span",{className:"border border-accent bg-accent px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em] text-bg",children:[r,"\xD7 free"]})]}),n0("div",{className:"mt-2.5 flex items-center justify-between gap-3",children:[_1(Wa,{value:e.qty,onChange:s,size:"small"}),n0("div",{className:"flex gap-3.5 font-mono text-[10px] uppercase tracking-[0.22em]",children:[_1(L1,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),_1("button",{type:"button",onClick:a,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&n0("div",{className:"mx-8 -mt-px flex items-start gap-3 border-t-0 px-4 py-3.5 font-display text-[13px] leading-[1.45] text-fg max-[640px]:mx-[22px]",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:[_1("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),n0("span",{children:["Verified for your ",_1("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function yU({title:e,sub:t,href:a}){return n0(L1,{href:a,className:"flex items-center justify-between border border-line bg-bg px-3.5 py-3 text-left transition-colors hover:border-accent",children:[n0("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[_1("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),_1("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),_1("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 wU(e,t,a){let s=e.savings[t];if(s===void 0)return"Buy together";let c=a(s,t);return e.savingIsFrom?`Save from ${c}`:`Save ${c}`}function CU({children:e}){return _1("span",{className:"inline-flex items-center gap-1.5 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function b7({label:e,value:t}){return n0("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[_1("span",{children:e}),_1("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function kU({content:e}){return n0("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[_1("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),_1("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),n0(L1,{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 ",_1("span",{className:"text-accent",children:"\u2192"})]})]})}var MU=[{key:"cart",label:"Cart",href:"/?cart=open"},{key:"checkout",label:"Checkout",href:"/checkout"}],SU=Object.fromEntries(MU.map(e=>[e.key,e]));function LS(e){return SU[e]}import{Fragment as AU,jsx as H8,jsxs as po}from"react/jsx-runtime";var LU=Ip(()=>import("./EditorPreviewCheckout-DYIFFWDV.js"),{ssr:!1});function Up(){let{chromePlaceholder:e,themeFromDocument:t}=N3(),{surface:a}=ow();return e||t||!a||a!=="cart"&&a!=="checkout"?null:a==="checkout"?po(AU,{children:[H8(LU,{}),H8(AS,{surface:a})]}):H8(gr,{children:po(vr,{preview:!0,children:[H8(Ua,{}),H8(AS,{surface:a})]})})}function AS({surface:e}){let{label:t,href:a}=LS(e);return po("div",{style:{position:"fixed",bottom:14,left:"50%",transform:"translateX(-50%)",zIndex:2147483e3,display:"flex",alignItems:"center",gap:8,maxWidth:"calc(100% - 24px)",padding:"5px 6px 5px 13px",borderRadius:999,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:[H8("span",{style:{whiteSpace:"nowrap"},children:p("{name} \xB7 preview only",{name:p(t)})}),po("a",{href:a,target:"_blank",rel:"noopener noreferrer",style:{pointerEvents:"auto",flex:"none",display:"inline-flex",alignItems:"center",gap:5,padding:"4px 11px",borderRadius:999,color:"#fff",background:"#2563eb",textDecoration:"none"},children:[p("Open live"),H8(l6,{name:"external-link",size:13,rounded:!0})]})]})}import{CategoryIcon as nc1,CheckIcon as KO,ClockIcon as ax,ColumnsIcon as hc1,DirectionIcon as mc1,EyeIcon as pc1,ListIcon as uc1,PageIcon as dc1,PlacementIcon as gc1,ScrollPointIcon as vc1,TriggerIcon as fc1}from"efficient-easel/icons";import{useContext as PU,useEffect as VS,useRef as go,useState as vo}from"react";import{Button as fo}from"efficient-shell/ui";var ja=class extends Error{constructor(a){super("The storefront forms list could not be loaded.");this.cause=a;this.name="FormsUnavailableError"}},uo=null,jp=null,Kp=null;function HU(){uo=null,jp=null,Kp=null}function HS(e=!1){let t=_3(),a=i2();return(e||!uo||jp===null&&t!==null||Kp!==a)&&(jp=t,Kp=a,uo=(t?J1.listForms(t,{siteId:a}):Promise.reject(new ja)).catch(s=>{throw HU(),s instanceof ja?s:new ja(s)})),uo}var $p=new Map,FU=9e5,FS=0;function TU(){return FS+=1,`fe-${typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():String(FS)}`}function TS(e,t){e.connected&&e.send("storefront-editor:open-form",{mode:"edit",formId:t})}function PS(e,t){if(!e.connected)return Promise.resolve({status:"closed"});let a=TU();return new Promise(s=>{let c=setTimeout(()=>ES(a,{status:"timeout"}),t.timeoutMs??FU);$p.set(a,l=>{clearTimeout(c),s(l)}),e.send("storefront-editor:open-form",{requestId:a,mode:t.mode,...t.formId?{formId:t.formId}:{}})})}function ES(e,t){let a=$p.get(e);a&&($p.delete(e),a(t))}function kh1(e,t){ES(e,t?{status:"saved",form:t}:{status:"closed"})}import{jsx as k2,jsxs as F5}from"react/jsx-runtime";var NS="__create-a-new-form__";function EU({value:e,forms:t,loadFailed:a,emptyLabel:s}){let c=t??[],l=e?c.some(m=>m.slug===e):!0,r=t===null&&!a,o={value:"",label:r?p("Loading\u2026"):a?p("Forms couldn\u2019t be loaded"):s===void 0?p("No form yet"):p(s)},i=e&&!l?[{value:e,label:r||a?e:p("{slug} \u2014 no form with this name",{slug:e})}]:[],n=c.map(m=>({value:m.slug,label:m.is_active?m.title:p("{title} (switched off)",{title:m.title})})),h=r?[]:[{value:NS,label:p("Create a new form")}];return[o,...i,...n,...h]}function VU(e){return e===NS?{action:"create"}:{action:"store",slug:e}}function NU({value:e,pickedId:t,forms:a}){if(!e||!t||a.some(c=>c.slug===e))return null;let s=a.find(c=>c.id===t);return s&&s.slug&&s.slug!==e?s.slug:null}function _U(e){let t=[p("Goes to {place}",{place:p("Storefront \u2192 Forms")})],a=(e.notify_email??"").trim();return a&&t.push(p("Emails a copy to {email}",{email:a})),e.mailing_list_name&&t.push(e.subscribe_mode==="checkbox"?p("Joins the \u201C{audience}\u201D audience, but only when the consent box is ticked",{audience:e.mailing_list_name}):p("Joins the \u201C{audience}\u201D audience",{audience:e.mailing_list_name})),e.kind==="account_signup"&&t.push(e.signup_customer_type==="importer"?p("Creates a wholesale account"):p("Creates a retail account")),t}function Yp({value:e,onChange:t,label:a="Form",emptyLabel:s}){let c=y4(),l=PU(kl),r=l?l.capabilities.hasForms:!0,[o,i]=vo(null),[n,h]=vo(!1),[m,u]=vo(!1),[d,v]=vo(!1),g=go(!0),b=go(e);b.current=e;let f=go(t);f.current=t;let w=go(null),z=(T=!1)=>HS(T).then(P=>{if(g.current){i(P),h(!1);let N=NU({value:b.current,pickedId:w.current,forms:P});N&&f.current(N)}return P},()=>(g.current&&h(!0),[]));VS(()=>(g.current=!0,r&&z(),()=>{g.current=!1}),[r]),VS(()=>r?Xr(()=>{z(!0)}):void 0,[r]);let S=e?(o??[]).find(T=>T.slug===e)??null:null;S?w.current=S.id:e||(w.current=null);let H=!!e&&!S&&o!==null&&!n,I=EU({value:e,forms:o,loadFailed:n,emptyLabel:s}),E=async()=>{u(!0),v(!1);try{let T=await PS(c,{mode:"create"}),P=await z(!0);if(!g.current)return;if(T.status==="timeout"){v(!0);return}if(T.status!=="saved")return;let{form:N}=T;N.slug!==b.current&&f.current(N.slug),P.some(D=>D.id===N.id)||z(!0)}finally{g.current&&u(!1)}},O=T=>{let P=VU(T);P.action==="create"?E():(v(!1),t(P.slug))};return r?F5("div",{className:"sf-formpicker",children:[k2(Z9,{label:a,options:I,fallback:"",value:e??"",onChange:O,placeholder:p("Search forms\u2026")}),d&&k2("p",{className:"sf-formsummary-warn",children:p("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),S?F5("div",{className:"sf-blogsource sf-formsummary",children:[F5("div",{children:[k2("div",{className:"sf-formsummary-caption",children:p3("{n} field","{n} fields",S.fields.length)}),S.fields.length?k2("ol",{className:"sf-formsummary-fields",children:S.fields.map((T,P)=>k2("li",{children:T.label},T.key||`${T.label}-${P}`))}):k2("p",{className:"es-field-hint sf-hint-keep",children:p("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),F5("div",{children:[k2("div",{className:"sf-formsummary-caption",children:p("Where the answers go")}),k2("ul",{className:"sf-formsummary-fields",children:_U(S).map(T=>k2("li",{children:T},T))})]}),!S.is_active&&k2("p",{className:"sf-formsummary-warn",children:p("This form is switched off, so it won\u2019t appear on the published page. Turn it back on in {place}.",{place:p("Storefront \u2192 Forms")})}),F5("div",{className:"sf-formsummary-actions",children:[k2(fo,{variant:"secondary",size:"sm",onClick:()=>TS(c,S.id),children:p("Edit form \u270E")}),k2(fo,{variant:"secondary",size:"sm",disabled:m,onClick:()=>{E()},children:p("New form +")})]}),k2("p",{className:"es-field-hint sf-hint-keep",children:p("The questions, the button text and the thank-you message all come from {place}. Edit them there \u2014 this section updates to match.",{place:p("Storefront \u2192 Forms")})})]}):F5("div",{className:"sf-blogsource sf-formsummary",children:[n?F5("p",{className:"es-field-hint sf-hint-keep",children:[p("This website\u2019s forms couldn\u2019t be loaded, so there is nothing to choose from yet."),e?` ${p("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]}):H&&k2("p",{className:"sf-formsummary-warn",children:p("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??""})}),F5("div",{className:"sf-formsummary-actions",children:[n&&k2(fo,{variant:"secondary",size:"sm",disabled:m,onClick:()=>{z(!0)},children:p("Try again")}),k2(fo,{variant:"secondary",size:"sm",disabled:m,onClick:()=>{E()},children:p("New form +")})]}),!n&&k2("p",{className:"es-field-hint sf-hint-keep",children:p("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:p("Storefront \u2192 Forms")})})]})]}):k2("div",{className:"sf-formpicker",children:k2("div",{className:"sf-blogsource sf-formsummary",children:F5("div",{children:[k2("div",{className:"sf-formsummary-caption",children:p(a)}),F5("p",{className:"es-field-hint sf-hint-keep",children:[p("Forms aren\u2019t available in this editor, so there is nothing to choose here."),e?` ${p("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]})]})})})}import{jsx as IU}from"react/jsx-runtime";function T5(e,t){return{type:"custom",render:({value:a,onChange:s})=>IU(Yp,{value:a,onChange:s,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}var bo=null,_S=null;function RU(e,t){bo=e,_S=t}function Oh1(e){RU(e,null)}function IS(){return bo}function M2(){return _S==="dynamic"||bo===ep}function RS(e){return Er(bo??"",e)??"alloy-wheel"}import{createContext as BU,useContext as ZU}from"react";import{jsx as DU}from"react/jsx-runtime";var BS=BU(null);function ZS({slug:e,children:t}){let a=typeof e=="string"&&e.trim()?e:null;return DU(BS.Provider,{value:a,children:t})}function DS(){return ZU(BS)}import{createContext as OU,useContext as GU}from"react";import{jsx as qU}from"react/jsx-runtime";var OS=OU("alloy-wheel");function GS({kind:e,children:t}){return qU(OS.Provider,{value:e??"alloy-wheel",children:t})}function qS(){return GU(OS)}import{createContext as WS,useContext as xo}from"react";import{jsx as KU}from"react/jsx-runtime";function WU(e){let t=e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim().toLowerCase();return t?t[0].toUpperCase()+t.slice(1):e}var UU=/^\d{4}-\d{2}-\d{2}$/;function US(e){return e?e.schema?.length?e.schema.filter(t=>typeof t?.key=="string"&&t.key in e.fields):Object.entries(e.fields).flatMap(([t,a])=>{let s=Array.isArray(a)?"images":typeof a=="string"?UU.test(a)?"date":"text":null;return s?[{key:t,label:WU(t),kind:s}]:[]}):[]}function zo(e,{firstField:t=!1}={}){if(!e)return[];let a=US(e).filter(s=>s.kind==="images");return(t?a.slice(0,1):a).flatMap(s=>{let c=e.fields[s.key];return Array.isArray(c)?c.flatMap(l=>{let r=l?.url;if(typeof r!="string"||!r)return[];let o=l.alt;return[{url:r,alt:typeof o=="string"?o:""}]}):[]})}function jU(e){let t=new Date(`${e}T00:00:00Z`);return Number.isNaN(t.getTime())?e:t.toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"})}function jS(e){return e?US(e).flatMap(t=>{if(t.kind!=="text"&&t.kind!=="date")return[];let a=e.fields[t.key];return typeof a!="string"||!a.trim()?[]:[{label:t.label,value:t.kind==="date"?jU(a):a}]}):[]}var x7="product",Xp=WS(null);function Jp(e){let t=e?.recordType;return typeof t=="string"&&t.trim()||x7}function yo(e){let t=e?.appState?.data?.root;return Jp(t?.props)!==x7}var KS=WS(x7);function $S({type:e,children:t}){return KU(KS.Provider,{value:e,children:t})}function wo(e){let t=xo(Xp),a=xo(KS);return t?t.type!==x7:e&&a!==x7}var Co={type:"sample",key:"sample",get title(){return p("Record title")},get fields(){return{first:p("A detail of this record"),second:p("Another detail"),third:p("A third")}},value:void 0,get schema(){return[{key:"first",label:p("First detail"),kind:"text"},{key:"second",label:p("Second detail"),kind:"text"},{key:"third",label:p("Third detail"),kind:"text"}]}},YS=4;function ko(){return xo(Xp)}function XS(e){let t=xo(Xp);return t!==null&&t.type===e?t:null}import{createContext as YU,useContext as XU}from"react";var Qp="heroBullets",Ka="\xB7",$a={bullets:[{label:"Free shipping",detail:"USA, UK, AUS"},{label:"Lifetime warranty",detail:"structural"}]};function JS(e){return e.detail?`${e.label} ${Ka} ${e.detail}`:e.label}function $U(e){let t=e.trim();if(!t)return null;let a=t.indexOf(Ka);return a<0?{label:t,detail:""}:{label:t.slice(0,a).trim(),detail:t.slice(a+Ka.length).trim()}}function QS(e){let t=(e??{})[Qp];return Array.isArray(t)?{bullets:t.map(s=>$U(typeof s=="string"?s:gy(s?.text,""))).filter(s=>s!==null)}:$a}import{jsx as JU}from"react/jsx-runtime";var eL=YU($a);function tL({content:e,children:t}){return JU(eL.Provider,{value:e,children:t})}function aL(){return XU(eL)}var u2={text:"Button label",href:"#"},A={eyebrow:"Eyebrow",heading:"Main heading",accent:"Highlight line",body:"Add a sentence or two of supporting copy.",button:"Button label",link:"#",sectionHeading:"Section heading",slideName:"Slide name",boxName:"Box name",headingAccent:"Section heading *here.*",sectionNumber:"Section number",imageCaption:"Image caption",bookingConfirmation:"Thanks \u2014 we'll email you to confirm.",imageMeta:"Image meta",label:"Label",value:"Value",viewAll:"View all",date:"Month DD, YYYY",category:"Category"};var a3={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Hy,Stats:void 0};import{jsx as u6}from"react/jsx-runtime";import{jsx as ej}from"react/jsx-runtime";var Mo="sf-card",V2={min:0,max:90,step:5,fallback:0,unit:"%"},z7=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],QU="68%",O3={desktop:20,phone:20,side:40,sidePhone:24},sL="sf-box-sides",cL={min:0,max:200,step:10};function Oe(e){return typeof e=="string"&&e.trim()!==""}function So(e,t){let a=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(a)||a<=0)return null;let s=(Math.min(V2.max,Math.max(V2.min,a))/100).toFixed(2);return t!=="bottom"?{background:`rgba(0,0,0,${s})`}:{background:`linear-gradient(0deg, rgba(0,0,0,${s}) 0%, rgba(0,0,0,0) ${QU})`}}function Lo(e,t){let a={"top-left":["start","start"],"top-center":["center","start"],"top-right":["end","start"],left:["start","center"],center:["center","center"],right:["end","center"],"bottom-left":["start","end"],"bottom-center":["center","end"],"bottom-right":["end","end"]},[s,c]=a[e]??a.center,[l,r]=t==="column"?[c,s]:[s,c],o={start:"justify-start",center:"justify-center",end:"justify-end"},i={start:"items-start",center:"items-center",end:"items-end"};return`${o[l]} ${i[r]}`}var Ao={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120},DetailRows:{top:100,bottom:100}},lL=new Set(Object.keys(Ao)),tj=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),rL=new Set(["ProductGrid"]);function eu(e,t){let a=e.render;e.render=s=>{if(t?.(s))return a(s);let c=_9(s.sectionPaddingTop,s.sectionPaddingBottom,s.sectionPaddingTopPhone,s.sectionPaddingBottomPhone),l=a(s);return c?ej("div",{className:c.className,style:c.style,children:l}):l}}var oL={name:"sectionPadding",applies:(e,t,a)=>t.isSection(e)&&!tj.has(e)&&!!a&&typeof a.render=="function",panel(e,t,a){lL.has(t)||rL.has(t)||(e.fields={...e.fields,...a.spacingFields({phone:!0})})},draw(e,t){if(lL.has(t)){let a=e.render,s=Ao[t];e.render=c=>{let l=ay(c,s);return a({...c,padTop:l.top,padBottom:l.bottom})};return}if(rL.has(t)){eu(e);return}eu(e,t==="Flex"?a=>Oe(a.bgImage):void 0)}},aj=["Heading","Text"],iL={name:"blockPadding",applies:(e,t,a)=>aj.includes(e)&&!!a&&typeof a.render=="function",panel(e,t,a){e.fields={...e.fields,...a.spacingFields({phone:!0})}},draw(e){eu(e)}};import{jsx as p6,Fragment as sj,jsxs as cj}from"react/jsx-runtime";import{useEasel as pL}from"efficient-easel/easel";import{LayersIcon as lj}from"efficient-easel/icons";import{SettingsDrill as rj,SettingsField as oj}from"efficient-easel/panel";import{default as nL}from"efficient-easel/screen/components/AddBlockRow";import{default as hL}from"efficient-easel/screen/components/AddChildRow";import{SlotChildActionsProvider as xm1,useSlotChildActions as mL}from"efficient-easel/screen/components/SlotChildActionsContext";function ij({parent:e,parentType:t,label:a,rowName:s,onSelectChild:c,onAddChild:l,nestDepth:r=0}){let o=Ma(t,r);if(!o)return null;let{slot:i,choices:n,spec:h}=o,m=String(e.props.id),u=`${m}:${i}`,d=Array.isArray(e.props[i])?e.props[i]:[],v=h?.addBlocked?.(d)??null,g=h?.notice?.(d)??null,b=cj(sj,{children:[g?p6("p",{className:"sf-note",children:g}):null,d.map((f,w)=>p6(rj,{name:s(f),onOpen:()=>c(u,w,String(f.props.id),t)},String(f.props.id??`${u}-${w}`))),n?p6(nL,{choices:n,onPick:f=>l(m,i,f,d.length,t)}):h.fixed?null:p6(hL,{label:h.addLabel,blocked:v,onAdd:()=>l(m,i,h.childType,d.length,t)})]});return p6("div",{className:"sf-slot-rows",children:a?p6(oj,{label:p(a),icon:p6(lj,{}),value:String(d.length),children:b}):b})}function nj(e,t){return Ma(e)?.spec?.notice?.(t)??null}function uL({parentType:e}){let{selectedItem:t}=pL(l=>l);if(!t||t.type!==e)return null;let a=Ma(e)?.slot,s=a&&Array.isArray(t.props[a])?t.props[a]:[],c=nj(e,s);return c?p6("p",{className:"sf-note",children:c}):null}function hj(e,t){return Ma(t)?.source==="footer"?e.blockRowName:e.childRowName}function dL({parentType:e,label:t}){let{appState:a,selectedItem:s}=pL(r=>r),c=mL();if(!c||!s||s.type!==e)return null;let l=e===qx?cl(a?.data,String(s.props.id)):0;return p6(ij,{parent:s,parentType:e,label:t,rowName:hj(c,e),onSelectChild:c.selectChild,onAddChild:c.addChild,nestDepth:l})}var gL="grayscale(1) contrast(1.03)",vL="Black and white";function mj(e){return e===!0?{filter:gL}:{}}function pj(e){let{filter:t}=mj(e);return t?{style:{filter:t}}:{}}var Ya="sf-photo-grayscale",uj=`@media (hover:hover){.${Ya}{filter:${gL};transition:filter 160ms ease}.${Ya}:hover{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Ya}{transition:none}}`;function Ge(e,t){return typeof e=="boolean"?e?pj(!0):{}:t===!0?{className:Ya}:{}}function fL(e){return e===!0?{[Ya]:uj}:{}}import{AlignLeftIcon as vj,BlackAndWhiteIcon as fj,ContrastIcon as bj,HeightIcon as xj,TypeIcon as zj}from"efficient-easel/icons";var dj=["eyebrow","heading","title","body","intro","button","link","label","number","value","name","price","date","caption","note","quote","tag","meta"],gj=new Set(dj);function bL(e){let t=e.toLowerCase().split(/[^a-z]+/).filter(Boolean);for(let a=t.length-1;a>=0;a-=1)if(gj.has(t[a]))return t[a];return null}var d6=e=>J2(e,s1("Height",u6(xj,{}),re.min,re.max,re.step,re.fallback,re.unit)),L4={ctaText:F("Button",u2.text),ctaHref:F1("Button link")},P5=()=>x1("Alignment",u6(vj,{}),[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}],"left"),Ho=()=>x1("Tone",u6(bj,{}),[{label:"Default",value:"default"},{label:"Muted",value:"dim"}],"default"),u3=e=>f5({...Ao[e],keys:{top:"padTop",bottom:"padBottom"},group:!1}),E5=(e,t)=>({type:"custom",render:()=>u6(dL,{parentType:e,label:t})}),Fo=e=>({type:"custom",render:()=>u6(uL,{parentType:e})});function yj(e){let{photographyGrayscale:t}=N3();return l1(vL,t===!0,u6(fj,{})).render(e)}function qe(){return{type:"custom",render:e=>u6(yj,{...e})}}var j1=Object.keys(b5("full"));function We(e){let t=bL(e);return t?u6(a4,{noun:t}):u6(zj,{})}import{createContext as wj,useContext as Cj}from"react";import{jsx as y7,jsxs as tu}from"react/jsx-runtime";function au(e){return S9(e)??void 0}var su=wj({}),xL=3;function cu({tag:e,name:t,desc:a,href:s,imageSrc:c,imageLabel:l,price:r}){let{showPrice:o,cardStyle:i,partStyles:n,editing:h}=Cj(su),m=i==="bordered"?" border border-line":i==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",u=au(c),d=g=>h?{[f8]:g}:{},v=g=>Jl(n?.[b8(g)]?.role,hw[g],il);return tu(L1,{href:s||"#",className:`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${m}`,children:[y7("div",{className:"relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] group-hover:scale-[1.04]",children:y7(k0,{label:l||"collection.jpg",src:u})}),y7("div",{className:"pointer-events-none absolute inset-0 z-[1] [background:rgba(0,0,0,0.4)] group-hover:[background:rgba(0,0,0,0.3)] max-[800px]:hidden",style:{transition:"none"}}),tu("div",{className:"absolute inset-x-8 bottom-8 z-[2] flex flex-col gap-2.5 text-overlay-fg max-[800px]:relative max-[800px]:inset-auto max-[800px]:p-6 max-[800px]:gap-3 max-[800px]:text-fg",children:[e&&y7("span",{...d("tag"),style:v("tag"),className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.25em] opacity-70",children:k(e)}),t&&y7("h3",{...d("name"),style:v("name"),className:"font-heading2 text-[length:min(var(--size-headingMedium,48px),var(--sf-heading-max,9999px))] font-medium leading-none tracking-[-0.03em] max-[800px]:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",children:typeof t=="string"?Y(t,!1):t}),a&&x0(a).map((g,b)=>y7("p",{...d("body"),style:v("body"),className:"max-w-[420px] text-[length:var(--size-body,14px)] leading-[1.5] opacity-80",children:k(g)},b)),o&&r&&y7("span",{...d("price"),style:v("price"),className:"font-mono text-[length:var(--size-label,15px)] tracking-[0.05em] text-accent",children:k(r)}),tu("span",{...d("link"),style:v("link"),className:"mt-2 inline-flex items-center gap-2.5 font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em]",children:["Explore",y7("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]})}import{createContext as Mj,useCallback as Sj,useContext as Lj,useEffect as yL,useRef as Aj,useState as ru}from"react";import{useState as kj}from"react";function To(e){switch(e){case"tall":return"aspect-[3/4]";case"wide":return"aspect-[2/1]";case"landscape":return"aspect-[4/3]";case"portrait":return"aspect-[4/5]";case"auto":return"";default:return"aspect-square"}}function zL(e){return e==="below"}import{jsx as U4,jsxs as Ue}from"react/jsx-runtime";function lu({build:e,hiddenMobile:t,alwaysShowOverlay:a,forceHover:s,index:c,total:l,ratio:r,captionPlace:o}){let[i,n]=kj(!1),h=zL(o),m=Ue("div",{className:["sf-card group relative overflow-hidden bg-surface-2",To(r),t?"max-[800px]:hidden":""].join(" "),children:[Ue("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)]",s?"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:[U4(k0,{label:e.imageLabel,src:e.imageSrc}),U4("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),U4("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)]",s?"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&&U4(V3,{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:i?"none":"block"},onError:()=>n(!0)})}),c!=null&&l!=null&&Ue("span",{className:"pointer-events-none absolute top-3 right-3 z-[3] font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] max-[800px]:top-2.5 max-[800px]:right-2.5",style:{color:"rgba(245,241,232,0.7)"},children:[String(c).padStart(2,"0")," / ",String(l).padStart(2,"0")]}),e.process&&U4("span",{className:["pointer-events-none absolute top-3 left-3 z-[3] inline-block max-w-[60%] truncate font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-accent max-[800px]:top-2.5 max-[800px]:left-2.5","transition-opacity duration-300 ease-out",a||s?"opacity-100":"opacity-0 group-hover:opacity-100 max-[800px]:opacity-100"].join(" "),children:X1(e.process)}),Ue("div",{className:["absolute inset-0 z-[2] flex flex-col justify-end gap-1 p-6","transition-[opacity,transform] duration-300 ease-out",a||s?"opacity-100 translate-y-0":"opacity-0 translate-y-2 group-hover:opacity-100 group-hover:translate-y-0 max-[800px]:opacity-100 max-[800px]:translate-y-0","max-[800px]:p-3.5"].join(" "),style:{color:"var(--overlay-fg)",background:"linear-gradient(180deg, transparent 40%, rgba(10,10,10,.85) 100%)"},children:[e.car&&U4("div",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] text-accent max-[800px]:text-[length:var(--size-label,11px)] max-[800px]:tracking-[0.15em]",children:e.car}),e.wheel&&U4("div",{className:"font-heading3 text-[length:var(--size-headingSmall,22px)] font-medium leading-[1.05] tracking-[-0.02em] max-[800px]:text-[length:var(--size-body,16px)]",children:e.wheel}),e.finish&&U4("div",{className:"mt-1.5 flex gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.12em]",style:{color:"rgba(245,241,232,0.7)"},children:U4("span",{children:X1(e.finish)})})]})]});return h?Ue("div",{className:t?"max-[800px]:hidden":"",children:[m,Ue("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&U4("div",{className:"font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg",children:e.wheel}),(e.finish||e.car)&&U4("div",{className:"mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim",children:X1(e.finish||e.car)})]})]}):m}import{Fragment as je,jsx as Q0,jsxs as d3}from"react/jsx-runtime";var Xa=Mj({}),Ja="data-gallery-grid",ou="data-gallery-tile";function Hj(e,t){let[a,s]=ru(null);return yL(()=>{let c=e.current,l=c?.closest(`[${Ja}]`);if(!c||!l)return;let r=()=>{let i=Array.from(l.querySelectorAll(`[${ou}]`)),n=i.indexOf(c),h=n>=0?{index:n+1,total:i.length}:null;s(m=>m?.index===h?.index&&m?.total===h?.total?m:h)};if(r(),!t)return;let o=new MutationObserver(r);return o.observe(l,{childList:!0,subtree:!0}),()=>o.disconnect()},[e,t]),a}var wL=[{image:"",href:"#",process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},{image:"",href:"#",process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},{image:"",href:"#",process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},{image:"",href:"#",process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},{image:"",href:"#",process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},{image:"",href:"#",process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"}];function Fj(e,t){return(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||t}function Tj(e){let t=(e.photos??[]).map(l=>l?.src).filter(l=>!!l),a=e.image||t[0]||"",s=[a,...t].filter(l=>!!l),c=Fj(e.name,"gallery-item");return{car:e.eyebrow??"",wheel:e.name??"",process:e.process??"",finish:e.meta??"",imageLabel:`${c}.jpg`,detailLabel:`${c}-detail.jpg`,imageSrc:a||void 0,detailSrc:t[0]||a||void 0,photos:s,href:e.href}}function Qa({editing:e=!1,previewHover:t,ratio:a,captionPlace:s,...c}){let{galleryHref:l="/gallery",submitHref:r="/contact",previewHover:o}=Lj(Xa),i=Tj(c),n=i.photos??(i.imageSrc?[i.imageSrc]:[]),h=Aj(null),m=Sj(z=>{h.current=z},[]),u=Hj(h,e),d=e&&(!!t||!!o),[v,g]=ru(!1),[b,f]=ru(0);yL(()=>{if(!v)return;let z=S=>{S.key==="Escape"?g(!1):S.key==="ArrowLeft"&&n.length>1?f(H=>(H-1+n.length)%n.length):S.key==="ArrowRight"&&n.length>1&&f(H=>(H+1)%n.length)};window.addEventListener("keydown",z);let M=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",z),document.body.style.overflow=M}},[v,n.length]);let w=Q0(lu,{build:i,forceHover:d,index:u?.index,total:u?.total,ratio:a,captionPlace:s});return d3(je,{children:[e?Q0("div",{ref:m,[ou]:"",className:"block w-full text-left",children:w}):Q0("button",{ref:m,[ou]:"",type:"button","aria-label":`Open ${i.car||"build"} on ${i.wheel||"wheel"}`,onClick:()=>{f(0),g(!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:w}),v&&(()=>{let z=n[b]??i.imageSrc??"",M=()=>f(H=>(H-1+n.length)%n.length),S=()=>f(H=>(H+1)%n.length);return Q0("div",{role:"dialog","aria-modal":"true","aria-label":`${i.car} on ${i.wheel}`,onClick:()=>g(!1),className:"fixed inset-0 z-[100] flex items-center justify-center p-6 backdrop-blur-[8px] max-[700px]:p-3",style:{background:"color-mix(in oklab, var(--bg) 78%, transparent)"},children:d3("div",{onClick:H=>H.stopPropagation(),className:"relative grid w-[min(1800px,100%)] max-h-[calc(100vh-48px)] grid-cols-[1.4fr_1fr] overflow-hidden border border-line bg-bg max-[1100px]:grid-cols-1 max-[1100px]:overflow-auto",style:{boxShadow:"0 60px 120px -20px rgba(0,0,0,0.7)"},children:[Q0("button",{type:"button",onClick:()=>g(!1),"aria-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:"color-mix(in oklab, var(--bg) 70%, transparent)"},children:"\u2715"}),d3("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-[1100px]:min-h-[450px]",children:[z&&Q0("img",{src:z,alt:`${i.car} \u2014 ${b+1} of ${n.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},z),n.length>1&&d3(je,{children:[Q0("button",{type:"button","aria-label":"Previous photo",onClick:M,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"}),Q0("button",{type:"button","aria-label":"Next photo",onClick:S,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"}),d3("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:[b+1," / ",n.length]})]})]}),d3("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-[1100px]:px-9 max-[1100px]:py-[54px]",children:[i.process&&Q0("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:k(i.process)}),i.wheel&&Q0("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:Y(i.wheel,!1)}),i.car&&d3("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",Q0("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:k(i.car,!0)})]}),d3("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:[i.wheel&&d3(je,{children:[Q0("dt",{className:"text-fg-dim",children:"Wheel"}),Q0("dd",{className:"text-fg",children:k(i.wheel)})]}),i.process&&d3(je,{children:[Q0("dt",{className:"text-fg-dim",children:"Process"}),Q0("dd",{className:"text-fg",children:k(i.process)})]}),i.finish&&d3(je,{children:[Q0("dt",{className:"text-fg-dim",children:"Finish"}),Q0("dd",{className:"text-fg",children:k(i.finish)})]}),i.car&&d3(je,{children:[Q0("dt",{className:"text-fg-dim",children:"Vehicle"}),Q0("dd",{className:"text-fg",children:k(i.car)})]})]}),d3("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[d3(L1,{href:i.href||"/wheels",onClick:()=>g(!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:[Q0("span",{children:"View product"}),Q0("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),d3(L1,{href:l,onClick:()=>g(!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:[Q0("span",{children:"See more builds"}),Q0("span",{children:"\u2192"})]}),d3(L1,{href:r,onClick:()=>g(!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:[Q0("span",{children:"Submit your build"}),Q0("span",{children:"\u2192"})]})]})]})]})})})()]})}import{createContext as Nj,useContext as _j,useEffect as Po,useId as Ij,useMemo as Rj,useState as N2}from"react";var Pj=14,Ej=3;function iu(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function Vj(e,t){let a=new Date(`${e}T00:00:00`);return a.setDate(a.getDate()+t),iu(a)}async function CL(e,t,a={}){let s=a.days??Pj,c=a.read??z8.getAvailability,l=0,r=0;for(let o=0;o<s;o++){if(a.signal?.aborted)return{outcome:"unreadable"};let i=Vj(t,o);try{let n=await c(e,i);if(l=0,r++,n.slots.length>0)return{outcome:"found",date:i,availability:n}}catch{if(l++,l>=Ej)return{outcome:"unreadable"}}}return r===s?{outcome:"noneInWindow",days:s}:{outcome:"unreadable"}}import{jsx as Dj}from"react/jsx-runtime";var kL=Nj(null);function w7(){let e=_j(kL);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var nu=[{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:""}];function Bj(e){return{timezone:"UTC",slots:[`${e}T09:00:00.000Z`,`${e}T10:30:00.000Z`,`${e}T13:00:00.000Z`].map(t=>({start:t}))}}var hu={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"2026-01-01T00:00:00.000Z",timezone:"UTC",customerTimezone:"",manageToken:"example"};function Zj(e,t){return e&&t?.length===0}function ML({editing:e=!1,previewConfirmation:t=!1,children:a}){let s=Ij(),c=Rj(()=>iu(new Date),[]),[l,r]=N2(),[o,i]=N2(""),[n,h]=N2(""),[m,u]=N2(c),[d,v]=N2(c),[g,b]=N2(!1),[f,w]=N2(null),[z,M]=N2(),[S,H]=N2(""),[I,E]=N2(""),[O,T]=N2(""),[P,N]=N2(""),[D,Z]=N2(""),[_,U]=N2(()=>Hm()),[V,J]=N2(null),[j,W]=N2(!1),[n1,z1]=N2(!1),[$,c1]=N2(null),[g1,K]=N2("");Po(()=>{K(Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC")},[]),Po(()=>{let c0=!1;return z8.listServices().then(l0=>{c0||(r(l0.results),i(l0.currency),h(Y1=>Y1||l0.results[0]?.id||""))}).catch(()=>{c0||r([])}),()=>{c0=!0}},[]),Po(()=>{if(g||!n)return;let c0={aborted:!1};return H(""),M(void 0),c1(null),w(null),W(!0),CL(n,c,{signal:c0}).then(l0=>{if(!c0.aborted){if(l0.outcome==="found"){u(l0.date),v(l0.date),M(l0.availability);return}w(l0.outcome==="noneInWindow"?`No times are available in the next ${l0.days} days.`:"We couldn't load available times. Please try again.")}}).finally(()=>{c0.aborted||W(!1)}),()=>{c0.aborted=!0}},[g,n,c]),Po(()=>{if(!g||!n||!m)return;let c0=!1;return H(""),M(void 0),c1(null),w(null),W(!0),z8.getAvailability(n,m).then(l0=>{c0||(M(l0),l0.slots.length===0&&w("No times are available on this date."))}).catch(()=>{c0||w("We couldn't load available times. Please try again.")}).finally(()=>{c0||W(!1)}),()=>{c0=!0}},[m,g,n]);let u1=l?.find(c0=>c0.id===n),b1=u1?.depositAmountDue!=null,T0=!!(!e&&!n1&&u1&&S&&I.trim()&&O.trim()&&!b1);async function P0(c0){if(c0.preventDefault(),!(!T0||!u1)){z1(!0),c1(null);try{let l0=await z8.create({serviceId:u1.id,start:S,customer:{name:I.trim(),email:O.trim(),phone:P.trim()},notes:D.trim(),idempotencyKey:_,customerTimezone:g1});J(l0),U(Hm())}catch(l0){c1(l0 instanceof G4&&l0.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),l0 instanceof G4&&l0.status===409&&(H(""),z8.getAvailability(u1.id,m).then(M).catch(()=>{}))}finally{z1(!1)}}}let H1=Zj(e,l);return Dj(kL.Provider,{value:{fieldPrefix:s,editing:e,services:H1?nu:l,currency:H1?"AUD":o,serviceId:H1?nu[0].id:n,setServiceId:h,service:H1?nu[0]:u1,requiresPayment:H1?!1:b1,date:m,earliestDate:d,setDate:u,setDateTouched:b,availability:H1?Bj(m):z,loadingSlots:H1?!1:j,noSlotsMessage:f,selectedStart:H1?`${m}T09:00:00.000Z`:S,setSelectedStart:H,customerTimezone:g1,name:I,setName:E,email:O,setEmail:T,phone:P,setPhone:N,notes:D,setNotes:Z,confirmation:V??(t?hu:null),submitting:n1,error:$,canSubmit:H1?!1:T0,handleSubmit:P0,sample:!!H1},children:a})}import{jsx as mu,Fragment as Oj,jsxs as Gj}from"react/jsx-runtime";var qj="sf-button group inline-flex items-center justify-center gap-2.5 border px-[22px] py-4 font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors",SL={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 s3(e){let{variant:t="primary",arrow:a,className:s,style:c,children:l,href:r,newTab:o,...i}=e,n=`${qj} ${SL[t]??SL.primary} ${s??""}`,h=Gj(Oj,{children:[l,a!==null&&mu("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",children:a??"\u2192"})]});return r?mu(s0,{href:r,className:n,style:c,...o?{target:"_blank",rel:"noopener noreferrer"}:{},children:h}):mu("button",{type:"button",className:n,style:c,...i,children:h})}import{jsx as A0,jsxs as L3}from"react/jsx-runtime";var es="w-full border-2 border-line bg-bg px-4 py-3.5 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 Wj(e,t){let a=Number(e);if(a===0)return"Free";try{return new Intl.NumberFormat(void 0,{style:"currency",currency:t}).format(a)}catch{return`${t} ${e}`}}function LL(e,t){try{return new Intl.DateTimeFormat(void 0,{hour:"numeric",minute:"2-digit",timeZone:t}).format(new Date(e))}catch{return new Date(e).toLocaleTimeString([],{hour:"numeric",minute:"2-digit"})}}function AL(e,t){try{return new Intl.DateTimeFormat(void 0,{weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit",timeZone:t,timeZoneName:"short"}).format(new Date(e))}catch{return new Date(e).toLocaleString()}}var ts="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function pu({number:e,children:t}){return L3("div",{className:"mb-4 flex items-center gap-3",children:[A0("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}),A0("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 Eo({eyebrow:e,heading:t,intro:a}){return L3("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&A0("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&A0("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-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:t}),(a??"").trim()&&A0("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:a})]})}function Vo({style:e}={}){let{fieldPrefix:t,services:a,currency:s,serviceId:c,setServiceId:l,requiresPayment:r,date:o,earliestDate:i,setDate:n,setDateTouched:h,availability:m,loadingSlots:u,noSlotsMessage:d,selectedStart:v,setSelectedStart:g,customerTimezone:b}=w7();return a?L3("div",{className:"flex flex-col gap-9",style:e,children:[L3("div",{children:[A0(pu,{number:"01",children:"Choose a service"}),A0("div",{className:"grid gap-3 sm:grid-cols-2",children:a.map(f=>{let w=f.id===c;return L3("button",{type:"button","aria-pressed":w,onClick:()=>l(f.id),className:`min-h-11 border p-4 text-left transition-colors ${w?"border-accent bg-accent/10":"border-line bg-bg hover:border-fg-dim"}`,children:[A0("span",{className:"block font-[family-name:var(--bk-name-font,var(--font-display))] text-[length:var(--bk-name-size,18px)] font-medium text-fg",children:f.name}),L3("span",{className:"mt-1 block font-[family-name:var(--bk-value-font,var(--font-mono))] text-[length:var(--bk-value-size,11px)] uppercase tracking-[0.14em] text-fg-dim",children:[f.durationMinutes," min \xB7 ",Wj(f.price,s)]}),f.description&&A0("span",{className:"mt-3 block font-[family-name:var(--bk-note-font,var(--font-display))] text-[length:var(--bk-note-size,14px)] leading-[1.5] text-fg-dim",children:f.description})]},f.id)})}),r&&A0("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."})]}),L3("div",{children:[A0(pu,{number:"02",children:"Choose a date and time"}),A0(D2,{separate:!0,htmlFor:`${t}-date`,label:"Date",required:!0,labelFace:ts,children:A0("input",{id:`${t}-date`,type:"date",min:i,value:o,onChange:f=>{h(!0),n(f.target.value)},className:es,required:!0})}),A0("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:u?A0("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?m.slots.map(f=>L3("button",{type:"button","aria-pressed":v===f.start,onClick:()=>g(f.start),className:`min-h-11 border px-3 py-2 font-[family-name:var(--bk-value-font,var(--font-mono))] text-[length:var(--bk-value-size,12px)] font-semibold uppercase tracking-[0.12em] transition-colors ${v===f.start?"border-accent bg-accent text-bg":"border-line bg-bg text-fg hover:border-accent"}`,children:[A0("span",{className:"block",children:LL(f.start,b||m.timezone)}),b&&b!==m.timezone&&L3("span",{className:"mt-0.5 block text-[9px] font-normal tracking-[0.08em] opacity-70",children:[LL(f.start,m.timezone)," business"]})]},f.start)):d?A0("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:d}):null}),m?.timezone&&L3("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 ",b||m.timezone,b&&b!==m.timezone?` \xB7 business timezone ${m.timezone}`:""]})]})]}):null}function No({buttonLabel:e,style:t}){let{fieldPrefix:a,editing:s,name:c,setName:l,email:r,setEmail:o,phone:i,setPhone:n,notes:h,setNotes:m,submitting:u,error:d,canSubmit:v}=w7();return L3("div",{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-7",style:t,children:[A0(pu,{number:"03",children:"Your details"}),L3("div",{className:"flex flex-col gap-4",children:[A0(D2,{separate:!0,htmlFor:`${a}-name`,label:"Name",required:!0,labelFace:ts,children:A0("input",{id:`${a}-name`,type:"text",autoComplete:"name",value:c,onChange:g=>l(g.target.value),className:es,required:!0})}),A0(D2,{separate:!0,htmlFor:`${a}-email`,label:"Email",required:!0,labelFace:ts,children:A0("input",{id:`${a}-email`,type:"email",inputMode:"email",autoComplete:"email",value:r,onChange:g=>o(g.target.value),className:es,required:!0})}),A0(D2,{separate:!0,htmlFor:`${a}-phone`,label:"Phone",labelFace:ts,children:A0("input",{id:`${a}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:i,onChange:g=>n(g.target.value),className:es})}),A0(D2,{separate:!0,htmlFor:`${a}-notes`,label:"What would you like to cover?",labelFace:ts,children:A0("textarea",{id:`${a}-notes`,rows:4,value:h,onChange:g=>m(g.target.value),className:`${es} resize-y`})})]}),d&&A0("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:d}),A0(s3,{type:s?"button":"submit",disabled:!v,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:u?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function _o({successMessage:e}){let{confirmation:t,customerTimezone:a}=w7();return t?L3("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-9",role:"status",children:[L3("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),A0("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),A0("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:AL(t.startAt,t.customerTimezone||a||t.timezone)}),t.customerTimezone&&t.timezone!==t.customerTimezone&&L3("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",AL(t.startAt,t.timezone)]}),(e??"").trim()&&A0("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),A0(s3,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:t!==hu,variant:"ghost",className:"mt-7",children:"Manage booking"})]}):null}var Io=["step","name","value","note"],uu={step:"Step",name:"Name",value:"Value",note:"Note"},Ro={step:"styleStep",name:"styleName",value:"styleValue",note:"styleNote"},HL={step:{font:"--bk-step-font",size:"--bk-step-size"},name:{font:"--bk-name-font",size:"--bk-name-size"},value:{font:"--bk-value-font",size:"--bk-value-size"},note:{font:"--bk-note-font",size:"--bk-note-size"}};function Uj(e){return typeof e=="string"&&d5.includes(e)?e:null}var jj={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:900};function FL(e){let t={};for(let a of Io){let s=Uj(e[Ro[a]]);if(!s)continue;let c=P9({role:s},jj);c.fontFamily&&(t[HL[a].font]=c.fontFamily),c.fontSize&&(t[HL[a].size]=c.fontSize)}return t}import{jsx as Ke}from"react/jsx-runtime";var TL=["head","booking","details","confirm"],PL={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function du({region:e,eyebrow:t,heading:a,intro:s,buttonLabel:c,successMessage:l,...r}){let{confirmation:o,services:i}=w7(),n=FL(r);return e==="head"?Ke("div",{className:"min-[960px]:col-span-2",style:n,children:Ke(Eo,{eyebrow:t,heading:a,intro:s})}):e==="confirm"?o?Ke("div",{className:"min-[960px]:col-span-2",style:n,children:Ke(_o,{successMessage:l})}):null:o||!i||i.length===0?null:e==="booking"?Ke(Vo,{style:n}):e==="details"?Ke(No,{buttonLabel:c,style:n}):null}import{jsx as Y0,Fragment as Kj,jsxs as A4}from"react/jsx-runtime";var F8="solid",gu=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function EL(e){return R2(gu,F8,e)}var vu="sf-secnum-outline",VL="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",NL=`@supports (-webkit-text-stroke: 1px currentColor){.${vu}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var as=(e,t=!1)=>typeof e=="string"?Y(e,t):e,$e=(e,t=!1)=>typeof e=="string"?k(e,t):e;function t0({num:e,title:t,link:a,logo:s,description:c,accent:l,accentNum:r,numStyle:o=F8,look:i="standard",titleAccent:n,accentTracking:h="-0.02em",spaceBelow:m,rowGap:u,descriptionSize:d,className:v="",eyebrowLook:g=rr}){let b=m??(i==="editorial"?"mb-[60px]":"");if(i==="editorial"){let H=!!t||!!n;return A4("header",{className:`${b} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-[1100px]:grid-cols-1 max-[1100px]:gap-3.5 ${v}`.trim(),children:[e&&(typeof e=="string"?Y0(N1,{text:e,className:"pb-2"}):Y0("span",{className:"pb-2",children:e})),H&&A4("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[t,n&&A4(Kj,{children:[" ",Y0("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:h},children:n})]})]}),c&&Y0("p",{className:"max-w-[360px] pb-1 text-right font-display text-[length:var(--size-body,14px)] leading-[1.5] text-fg-dim max-[1100px]:max-w-full max-[1100px]:text-left",children:c})]})}if(i==="simple"){let H=`${b} ${v}`.trim();return A4("div",{className:H||void 0,children:[e&&(typeof e=="string"?Y0(N1,{text:e,look:g,className:"mb-4 block"}):Y0("span",{className:"mb-4 block",children:e})),t&&Y0("h2",{className:"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-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:as(t)})]})}if(i==="statement"){let H=`${b} ${v}`.trim();return A4("div",{className:H||void 0,children:[e&&(typeof e=="string"?Y0(N1,{text:e,look:g,className:"mb-4 block"}):Y0("span",{className:"mb-4 block",children:e})),t&&Y0("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:as(t,!0)})]})}if(i==="natural"){let H=`flex max-w-[680px] flex-col ${u??"gap-5"} ${b} ${v}`.replace(/\s+/g," ").trim();return A4("div",{className:H,children:[e&&(typeof e=="string"?Y0(N1,{text:e,look:g}):Y0("span",{children:e})),t&&Y0("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-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:as(t)}),c&&Y0("p",{className:`${d??"text-[length:var(--size-body,16px)]"} leading-[1.6] opacity-85`,children:c})]})}if(i==="essay"){let H=`${b} ${v}`.trim();return A4("div",{className:H||void 0,children:[e&&(typeof e=="string"?Y0(N1,{text:e,look:g,className:"mb-4 block"}):Y0("span",{className:"mb-4 block",children:e})),t&&Y0("h2",{className:"font-heading2 text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg max-[800px]:text-[length:var(--size-headingSmall,28px)]",children:as(t)})]})}let f=!!c||!!a,w=!!t,z=EL(o)==="outlined",M="font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.3em]",S=null;if(e)if(z)S=Y0("span",{className:`${VL} text-fg-dim ${vu}`,children:$e(e)});else if(r&&!l&&typeof e=="string"){let H=e.indexOf("/"),I=H===-1?e:e.slice(0,H),E=H===-1?"":e.slice(H);S=A4("span",{className:M,children:[Y0("span",{className:"text-accent",children:$e(I)}),E&&Y0("span",{className:"text-fg-dim",children:$e(E)})]})}else S=Y0("span",{className:`${M} ${l?"text-accent":"text-fg-dim"}`,children:$e(e)});return A4("div",{className:"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-[800px]:mb-9 max-[800px]:grid-cols-1 max-[800px]:gap-3 max-[800px]:pb-5",children:[z&&e&&Y0("style",{children:NL}),A4("div",{className:"flex flex-col items-start gap-3",children:[s?.src&&Y0("img",{src:F2(s.src),alt:s.alt,className:"h-8 w-auto object-contain"}),S]}),w&&Y0("h2",{className:l?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":"font-heading2 text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line max-[800px]:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))] max-[800px]:leading-[1]",children:as(t)}),f&&A4("div",{className:"flex flex-col items-end gap-3 max-[800px]:items-start",children:[c&&Y0("p",{className:"max-w-[340px] font-display text-[length:var(--size-body,14px)] leading-[1.5] text-fg-dim text-right max-[800px]:max-w-full max-[800px]:text-left",children:$e(c)}),a&&A4(s0,{href:a.href,className:"inline-flex items-center gap-2 whitespace-nowrap font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg",children:[$e(a.text),Y0("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}import{jsx as H4,jsxs as ss}from"react/jsx-runtime";function $j(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function _L({eyebrow:e,title:t}){return ss("div",{className:"flex flex-col gap-4",children:[e&&H4(N1,{text:e,scaled:!1}),t&&H4("h2",{className:"font-display text-[min(clamp(40px,5vw,72px),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:Y(t,!0)})]})}function Bo({body:e,buttonLabel:t,consent:a,form:s,submission:c,showForm:l,resolving:r,editing:o}){return ss("div",{className:"flex flex-col gap-7",children:[e&&x0(e).map((i,n)=>H4("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:k(i)},n)),l&&(s?c.done?H4("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:Ie(s)}):ss("form",{className:"grid grid-cols-2 gap-2",onSubmit:c.handleSubmit,children:[s.fields.map(i=>{let n=["border border-line bg-transparent px-4 py-3.5 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",$j(i)?"col-span-2":""].join(" ");return i.type==="checkbox"?ss("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:[H4(v7,{field:i,value:c.valueOf(i.key),onChange:h=>c.set(i.key,h),className:"mt-0.5 size-4 accent-accent"}),ss("span",{children:[i.label,i.required?H4("span",{className:"text-accent",children:" *"}):null]})]},i.key):H4(v7,{field:i,value:c.valueOf(i.key),onChange:h=>c.set(i.key,h),rows:4,placeholder:i.placeholder||i.label,className:i.type==="textarea"?`${n} resize-y`:n},i.key)}),H4(Re,{value:c.honeypot,onChange:c.setHoneypot}),c.error&&H4("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:c.error}),t&&H4("button",{type:o?"button":"submit",disabled:c.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:c.submitting?"Sending\u2026":k(t)})]}):H4("p",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:r?p("Loading form\u2026"):p("Choose a form in the inspector, under Form \u2014 until then this form is hidden on the live page and nothing can be submitted.")})),l&&a&&H4("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:k(a)})]})}var Zo=["field","tick","thanks"],fu={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},Do={field:"styleField",tick:"styleTick",thanks:"styleThanks"},IL={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 Yj(e){return typeof e=="string"&&d5.includes(e)?e:null}var Xj={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:900};function RL(e){let t={};for(let a of Zo){let s=Yj(e[Do[a]]);if(!s)continue;let c=P9({role:s},Xj);c.fontFamily&&(t[IL[a].font]=c.fontFamily),c.fontSize&&(t[IL[a].size]=c.fontSize)}return t}import{jsx as Oo}from"react/jsx-runtime";var BL=["head","form"],ZL={head:"Head",form:"Form"};function bu({region:e,eyebrow:t,title:a,body:s,buttonText:c,consent:l,formSlug:r,form:o,editing:i=!1,...n}){let h=L5(r,o),m=g7({form:h,formSlug:r,editing:i}),u=RL(n);return e==="head"?Oo("div",{style:u,children:Oo(t0,{look:"statement",num:t,title:a})}):Oo("div",{style:u,children:Oo(Bo,{body:s??"",buttonLabel:c??"",consent:l??"",form:h,submission:m,showForm:!!h||i,resolving:h===void 0,editing:i})})}var Jj={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>TL.map(e=>({region:e,name:PL[e]})),addBlocked:()=>p("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:()=>BL.map(e=>({region:e,name:ZL[e]})),addBlocked:()=>p("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:xL},()=>({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:()=>wL.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};Ux(Jj);function Ye(e,t){let a={};for(let s of Object.keys(e))a[s]={...e[s],...t[s]};return a}import{jsx as Qj}from"react/jsx-runtime";import{OpacityIcon as eK}from"efficient-easel/icons";var DL={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow","Limited release"),title:G("Heading","Banner headline"),body:G("Body","A line or two of supporting copy."),_gBackground:x("Background image"),imageSrc:q1("Image","image/*"),overlay:s1("Overlay",Qj(eK,{}),0,100,5,60,"%"),_gButton:x("Button"),...L4,_gLayout:x("Layout")}};import{jsx as sK}from"react/jsx-runtime";import{jsx as cs,jsxs as xu,Fragment as tK}from"react/jsx-runtime";import{Fragment as aK}from"react";function OL({items:e,meta:t,editing:a=!1}){let s=(e??[]).filter(l=>l?.label?.trim()),c=s.length>0?s:a?[{label:p("Breadcrumb")}]:[];return c.length===0&&!t?null:xu("nav",{className:"flex items-center gap-4 border-b border-line px-[var(--sf-site-gutter,40px)] py-6 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim max-[720px]:px-[min(20px,var(--sf-site-gutter,40px))] max-[720px]:py-4",children:[c.map((l,r)=>{let o=r===c.length-1;return xu(aK,{children:[r>0&&cs("span",{className:"opacity-40",children:"/"}),l.href&&!o?cs(s0,{href:l.href,className:"hover:text-fg",children:D0(l.label)}):cs("span",{className:o?"text-fg":void 0,children:D0(l.label)})]},r)}),t&&xu(tK,{children:[cs("span",{className:"opacity-40",children:"\xB7"}),cs("span",{children:k(t)})]})]})}function j4(e,t,a){return e||(a?.isEditing?p(t):void 0)}function w1(e,t,a){let s=Array.isArray(e)?e:[];return s.length?s:a?.isEditing?t:[]}function y(e,t,a){let s=T2(e);if(!s.hidden)return j4(s.text,t,a)}function e2(e,t,a){return T2(e).hidden?"":y(e,t,a)}function G3(e,t,a){return{text:y(e,u2.text,a),href:t||u2.href}}var zu={meta:"Trailing note"},cK=()=>[{label:p("Home"),href:"/"},{label:p("Section"),href:""}],GL={label:"Breadcrumb",defaultProps:{items:[],meta:""},render:({items:e,meta:t,puck:a})=>sK(OL,{items:w1(e,cK(),a),meta:y(t,zu.meta,a),editing:a?.isEditing})};var qL={fields:{_gContent:x("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:q("Label"),href:Q2(q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:F("Trailing note",zu.meta)}};import{jsx as rK}from"react/jsx-runtime";function WL(e){return typeof e=="boolean"?e:!0}import{ButtonArrowIcon as oK}from"efficient-easel/icons";var UL={fields:{label:q("Button"),href:F1("Button link"),_gStyle:x("Style"),variant:{type:"radio",options:[{label:"Primary",value:"primary"},{label:"Ghost",value:"ghost"}]},arrow:l1("Arrow",!0,rK(oK,{})),align:P5()}};import{jsx as $L}from"react/jsx-runtime";import{ColumnsIcon as uK,StylesIcon as dK}from"efficient-easel/icons";import{jsx as mK}from"react/jsx-runtime";import{jsx as Xe,Fragment as iK,jsxs as yu}from"react/jsx-runtime";var nK="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))]",hK="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))]";function jL({look:e,eyebrow:t,title:a,items:s,columns:c,omitHead:l=!1,editing:r=!1}={}){let o=Math.min(4,Math.max(2,c??3)),i=(s??[]).filter(h=>r||(h.title??"").trim()||(h.body??"").trim()),n=!!(t??"").trim()||!!(a??"").trim();return!r&&!n&&i.length===0?null:Xe("section",{className:"relative z-[2] bg-surface",children:yu("div",{className:l?hK:nK,children:[l?null:yu(iK,{children:[(t??"").trim()&&Xe(N1,{text:t??"",look:e,className:"mb-4 block"}),(a??"").trim()&&Xe("h2",{className:"mb-9 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-[800px]:mb-7 max-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:Y(a??"",!1)})]}),i.length>0&&Xe("div",{className:"sf-card grid grid-cols-1 gap-px border border-line bg-line min-[700px]:[grid-template-columns:repeat(var(--cd-cols),minmax(0,1fr))]",style:{"--cd-cols":String(o)},children:i.map((h,m)=>yu("div",{className:"bg-bg p-8 max-[800px]:p-7",children:[Xe("div",{className:"mb-3 font-heading3 text-[length:var(--size-headingSmall,20px)] font-medium uppercase tracking-[0.02em] text-fg",children:k((h.title??"").trim()||"Card title")}),Xe("p",{className:"text-[length:var(--size-body,15px)] leading-[1.6] text-fg-dim",children:k((h.body??"").trim()||"A short line about this card.")})]},m))})]})})}var ls={eyebrow:"Label",title:"Section *heading.*"},pK=()=>[{title:p("Card title one"),body:p("A short line about this card.")},{title:p("Card title two"),body:p("A short line about this card.")},{title:p("Card title three"),body:p("A short line about this card.")}],KL={label:"Cards",defaultProps:{eyebrow:"",title:"",items:[],columns:3},render:e=>{let t=O1(e.headPlacement)==="own-box",a=s=>t?void 0:s;return mK(jL,{look:l4(e.eyebrowLook,"Cards"),eyebrow:a(y(e.eyebrow,ls.eyebrow,e.puck)),title:a(y(e.title,ls.title,e.puck)),omitHead:t,items:w1(e.items,pK(),e.puck),columns:e.columns,editing:e.puck?.isEditing})}};var YL={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow",ls.eyebrow),eyebrowLook:v1("Eyebrow style",$L(dK,{}),[...w4],c7("Cards")),title:G("Heading",ls.title),items:{type:"array",label:"Cards",arrayFields:{title:f1("Card title"),body:V1("Card body")},defaultItemProps:{title:"",body:""},getItemSummary:e=>e?.title||e?.body||"Card"},_gStyle:x("Style"),columns:s1("Columns",$L(uK,{}),2,4,1,3)},resolveFields:(e,{fields:t,parent:a})=>G1(U1(t,a,j1),e.props.headPlacement,Z1.Cards.headRows)};import{jsx as gK}from"react/jsx-runtime";import{StickyIcon as vK}from"efficient-easel/icons";var XL={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:Q2(q("Active tab","All")),_gLinks:x("Links"),links:{type:"array",label:"Right links",arrayFields:{label:q("Label"),href:Q2(q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:x("Style"),sticky:l1("Stick under header",!0,gK(vK,{}))}};import{jsx as wK}from"react/jsx-runtime";import{StylesIcon as CK}from"efficient-easel/icons";import{jsx as zK}from"react/jsx-runtime";import{jsx as l2,jsxs as K4}from"react/jsx-runtime";function wu(e){return Number.isInteger(e)?String(e):String(Math.round(e*10)/10)}var JL=[100,70,46,30,19,12];function QL(e){return`color-mix(in srgb, var(--accent) ${JL[e%JL.length]}%, var(--bg))`}function fK({data:e,suffix:t}){let a=Math.max(...e.map(s=>s.value),0)||1;return l2("div",{className:"flex w-full flex-col gap-6",children:e.map((s,c)=>K4("div",{children:[K4("div",{className:"mb-2 flex items-baseline justify-between gap-4",children:[l2("span",{className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg/60",children:k(s.label)}),K4("span",{className:"font-display text-[length:var(--size-body,16px)] font-medium text-fg",children:[wu(s.value),t]})]}),l2("div",{className:"h-[10px] border border-line bg-bg",children:l2("div",{className:"h-full bg-accent",style:{width:`${Math.max(s.value/a*100,s.value===0?0:2)}%`}})})]},c))})}function bK({data:e,suffix:t}){let a={l:42,r:42,t:36,b:38},s=640-a.l-a.r,c=300-a.t-a.b,l=Math.max(...e.map(h=>h.value),0)||1,r=e.length>1?s/(e.length-1):0,o=e.map((h,m)=>({x:a.l+(e.length>1?m*r:s/2),y:a.t+c-h.value/l*c})),i=o.map((h,m)=>`${m===0?"M":"L"}${h.x},${h.y}`).join(" "),n=`${i} L${o[o.length-1].x},${a.t+c} L${o[0].x},${a.t+c} Z`;return K4("svg",{viewBox:"0 0 640 300",className:"w-full",role:"img","aria-hidden":!0,children:[[.25,.5,.75,1].map(h=>l2("line",{x1:a.l,x2:640-a.r,y1:a.t+c*(1-h),y2:a.t+c*(1-h),stroke:"var(--site-line)",strokeWidth:"1"},h)),l2("line",{x1:a.l,x2:640-a.r,y1:a.t+c,y2:a.t+c,stroke:"var(--site-line)",strokeWidth:"1.5"}),l2("path",{d:n,fill:"var(--accent)",opacity:"0.13"}),l2("path",{d:i,fill:"none",stroke:"var(--accent)",strokeWidth:"2.5"}),o.map((h,m)=>K4("g",{children:[l2("circle",{cx:h.x,cy:h.y,r:"4",fill:"var(--accent)"}),K4("text",{x:h.x,y:h.y-12,textAnchor:"middle",className:"font-display",fontSize:"14",fill:"var(--fg)",children:[wu(e[m].value),t]}),l2("text",{x:h.x,y:288,textAnchor:"middle",className:"font-mono",fontSize:"10",letterSpacing:"0.1em",fill:"var(--fg)",opacity:"0.55",children:e[m].label.toUpperCase()})]},m))]})}function xK({data:e,suffix:t}){let a=e.reduce((o,i)=>o+i.value,0)||1,s=80,c=2*Math.PI*s,l=0,r=e.map((o,i)=>{let n=o.value/a,h={frac:n,dash:Math.max(n*c-3,0),off:l,ink:QL(i)};return l+=n*c,h});return K4("div",{className:"flex w-full flex-wrap items-center justify-center gap-10",children:[l2("svg",{viewBox:"0 0 200 200",className:"w-[220px] max-w-full -rotate-90",role:"img","aria-hidden":!0,children:r.map((o,i)=>l2("circle",{cx:"100",cy:"100",r:s,fill:"none",stroke:o.ink,strokeWidth:"34",strokeDasharray:`${o.dash} ${c-o.dash}`,strokeDashoffset:-o.off},i))}),l2("ul",{className:"flex min-w-[200px] flex-1 flex-col gap-3",children:e.map((o,i)=>K4("li",{className:"flex items-baseline gap-3",children:[l2("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] flex-shrink-0 rotate-45",style:{background:QL(i)}}),l2("span",{className:"flex-1 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.12em] text-fg/60",children:k(o.label)}),l2("span",{className:"font-display text-[length:var(--size-body,15px)] font-medium text-fg",children:t?`${wu(o.value)}${t}`:`${Math.round(o.value/a*100)}%`})]},i))})]})}function eA({eyebrow:e,title:t,body:a,chartStyle:s,items:c,valueSuffix:l,caption:r,editing:o=!1}={}){let i=(l??"").trim()===""?"":l??"",n=(c??[]).map(d=>({label:(d.label??"").trim(),value:parseFloat(d.value??"")})).filter(d=>o?!0:d.label&&Number.isFinite(d.value)).map(d=>({label:d.label||"\u2014",value:Number.isFinite(d.value)?d.value:0})),h=!!(e??"").trim()||!!(t??"").trim();if(!o&&!h&&n.length===0)return null;let m=s??"bars",u=n.length===0?null:m==="line"&&n.length>1?l2(bK,{data:n,suffix:i}):m==="donut"?l2(xK,{data:n,suffix:i}):l2(fK,{data:n,suffix:i});return l2("section",{className:"relative z-[2] border-y border-line bg-surface",children:K4("div",{className:"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))]",children:[K4("div",{children:[(e??"").trim()&&l2("span",{className:"inline-block bg-accent px-3.5 py-1.5 font-mono text-[length:var(--size-label,12px)] font-semibold uppercase tracking-[0.16em] text-bg",children:k(e??"")}),(t??"").trim()&&l2("h2",{className:"mt-5 font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg max-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:Y(t??"",!1)}),(a??"").trim()&&l2("p",{className:"mt-5 max-w-[46ch] text-[length:var(--size-body,15px)] leading-relaxed text-fg/65",children:a})]}),K4("div",{children:[u,(r??"").trim()&&l2("p",{className:"mt-4 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.14em] text-fg/40",children:r})]})]})})}var rs={eyebrow:"By the numbers",title:`A picture worth
|
|
23
23
|
*a thousand rows.*`},yK=()=>[{label:p("Before"),value:"9"},{label:p("After"),value:"3"},{label:p("With us"),value:"1"}],tA={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""},render:({eyebrow:e,title:t,body:a,items:s,caption:c,chartStyle:l,valueSuffix:r,puck:o})=>zK(eA,{eyebrow:y(e,rs.eyebrow,o),title:y(t,rs.title,o),body:a,items:w1(s,yK(),o),chartStyle:l,valueSuffix:r,caption:c,editing:o?.isEditing})};var aA={fields:{_gContent:x("Content"),eyebrow:F("Chip label",rs.eyebrow),title:G("Heading",rs.title),body:G("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:f1("Label"),value:q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:F("Caption","Illustrative example"),_gStyle:x("Style"),chartStyle:v1("Chart style",wK(CK,{}),[{label:"Bars (comparison / funnel)",value:"bars"},{label:"Line (trend)",value:"line"},{label:"Donut (split of a whole)",value:"donut"}],"bars"),valueSuffix:F("Value suffix","%")}};import{jsx as DK}from"react/jsx-runtime";import{jsx as A1,Fragment as Mu,jsxs as $4}from"react/jsx-runtime";import{useId as SK,useState as LK}from"react";import{InspectorUpLevel as is}from"efficient-easel/chrome";import{useEasel as AK}from"efficient-easel/easel";import{ListField as rA}from"efficient-easel/fields";import{SettingsField as oA}from"efficient-easel/panel";import{ClockIcon as sA,ContrastIcon as HK,GlobeIcon as FK,LinkIcon as TK,LocationIcon as PK,PhoneIcon as EK,SquareIcon as VK,TypeIcon as Su}from"efficient-easel/icons";var kK=["tall","square","wide"],MK="tall";function Go(e){return kK.includes(String(e??""))?String(e):MK}var r2={sectionNumber:"\xB7 Locations",heading:"Our *locations.*",tagline:"Visit us in person \u2014 find your nearest studio below.",galleryKicker:"Gallery",galleryHint:"Hover to see in colour \xB7 click to jump",apiKey:"",mapId:"",mapTheme:"auto"},os=[{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
24
24
|
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""},{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
25
25
|
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""}];function qo(e){let t=String(e??"").split(" \xB7 ");return{state:(t[0]??"").trim(),country:(t[1]??"").trim()}}var T8="other",f0={routingNumber:"02 \xB7 Routing",routingTagline:"What can we help you with?",groups:[{id:"fitment",eyebrow:"A \xB7 Label",title:"Group one",copy:"Short description of this routing group.",response:"< 48h"},{id:"trade",eyebrow:"B \xB7 Label",title:"Group two",copy:"Short description of this routing group.",response:"< 24h"},{id:"press",eyebrow:"C \xB7 Label",title:"Group three",copy:"Short description of this routing group.",response:"< 48h"},{id:"order",eyebrow:"D \xB7 Label",title:"Group four",copy:"Short description of this routing group.",response:"< 24h"}],formNumber:"03 \xB7 Message",formHeading:"Send *a note.*",metaLines:["Encrypted in transit","Stored 12 months"],showOther:!0,otherLabel:"Other",otherNoteTitle:"No matching team",otherNoteBody:"Tell us what you need in the message field below \u2014 we'll route it to whoever can help.",buttonText:"Send Message \u2192",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties.",channels:[{label:"Team one",value:"team-one@email.com",href:"mailto:team-one@email.com",sub:"Detail \xB7 Detail",groupId:"fitment"},{label:"Team two",value:"team-two@email.com",href:"mailto:team-two@email.com",sub:"Detail \xB7 Detail",groupId:"trade"},{label:"Team three",value:"team-three@email.com",href:"mailto:team-three@email.com",sub:"Detail \xB7 Detail",groupId:"press"},{label:"Team four",value:"team-four@email.com",href:"mailto:team-four@email.com",sub:"Detail \xB7 Detail",groupId:"order"},{label:"Phone",value:"+1 (000) 000-0000",href:"tel:+10000000000",sub:"Mon\u2013Fri \xB7 9:00\u201318:00"}]};function Cu(e){return zl(e)}var Lu=(e,t)=>t||e?Uw(e,t):p("Ungrouped");function NK(e){let t=[];return e.forEach((a,s)=>{let c=s7(a),l=t.find(r=>r.key===c);l||(l={key:c,name:String(a?.groupName??""),indices:[]},t.push(l)),l.indices.push(s)}),t}function ku({children:e}){return A1("div",{style:{fontSize:11,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--fg-dim, #999)",margin:"14px 0 6px"},children:e})}var iA={width:"100%",height:32,textAlign:"left",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"0 12px",fontSize:12,border:"1px solid var(--border-strong, #d0d0d0)",borderRadius:6,background:"transparent",color:"inherit",cursor:"inherit"},_K={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent, #2563eb)",cursor:"pointer"},nA={..._K,color:"#d85a30"};function g6({label:e,value:t,placeholder:a,textarea:s,icon:c,onChange:l,onBlur:r,onKeyDown:o}){let i=SK();return A1(oA,{label:e,icon:c??A1(Su,{}),htmlFor:i,children:s?A1("textarea",{id:i,value:t,placeholder:a,onChange:n=>l(n.target.value)}):A1("input",{id:i,type:"text",value:t,placeholder:a,onChange:n=>l(n.target.value),onBlur:r,onKeyDown:o})})}var IK=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],RK=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function cA({label:e,icon:t,options:a,value:s,onChange:c}){return A1(oA,{label:e,icon:t,children:A1("div",{role:"group","aria-label":e,style:{display:"flex",gap:4,flex:1},children:a.map(l=>{let r=s===l.value;return A1("button",{type:"button","aria-pressed":r,onClick:()=>c(l.value),style:{flex:1,padding:"6px 8px",fontSize:12,borderRadius:6,cursor:"pointer",border:`1px solid ${r?"var(--sf-accent, #2563eb)":"var(--border-strong, #d0d0d0)"}`,background:r?"var(--sf-accent, #2563eb)":"transparent",color:r?"#fff":"inherit",fontWeight:r?500:400},children:p(l.label)},l.value)})})})}function lA({props:e,setSection:t,headOnly:a}){let s=r=>String(e[r]??""),c=e.mapTheme||r2.mapTheme,l=r2;return $4(Mu,{children:[!a&&A1(ku,{children:p("Section")}),A1(g6,{label:p("Section number"),value:s("sectionNumber"),placeholder:l.sectionNumber,onChange:r=>t({sectionNumber:r})}),A1(g6,{label:p("Heading"),textarea:!0,value:s("heading"),placeholder:l.heading,onChange:r=>t({heading:r})}),A1(g6,{label:p("Body"),textarea:!0,value:s("tagline"),placeholder:l.tagline,onChange:r=>t({tagline:r})}),a?null:$4(Mu,{children:[A1(ku,{children:p("City strip")}),A1(g6,{label:p("Eyebrow"),value:s("galleryKicker"),placeholder:l.galleryKicker,onChange:r=>t({galleryKicker:r})}),A1(g6,{label:p("Hint"),value:s("galleryHint"),placeholder:l.galleryHint,onChange:r=>t({galleryHint:r})}),A1(cA,{label:p("Shape"),icon:A1(VK,{}),options:RK,value:Go(e.imageShape),onChange:r=>t({imageShape:r})}),A1(ku,{children:p("Map & Theme")}),A1(cA,{label:p("Map theme"),icon:A1(HK,{}),options:IK,value:c,onChange:r=>t({mapTheme:r})})]})]})}function BK({cards:e,groupKey:t,onChange:a,onBack:s,onOpenCity:c,onNavigate:l}){let r=e.map((d,v)=>s7(d)===t?v:-1).filter(d=>d>=0),o=String(e[r[0]]?.groupName??""),i=new Set(e.map(s7).filter(d=>d!==t)),[n,h]=LK(t),m=d=>a(e.map(v=>s7(v)===t?{...v,...d}:v)),u=()=>{let d=n;if(d!==t){if(i.has(d)){h(t);return}a(e.map(v=>s7(v)===t?{...v,group:d}:v)),l(d)}};return $4("div",{className:"sf-locations-view",children:[A1(is,{inline:!0,name:p("Section"),onSelect:s}),A1("div",{style:{fontSize:14,fontWeight:500,margin:"6px 0 10px"},children:Lu(t,o)}),A1(g6,{label:p("Group heading"),value:n,placeholder:p("e.g. Americas"),onChange:h,onBlur:u,onKeyDown:d=>{d.key==="Enter"&&d.currentTarget.blur()}}),i.has(n)&&n!==t&&A1("p",{className:"sf-note sf-note--error",role:"alert",children:p("Another group already uses this heading \u2014 pick a different one.")}),A1(g6,{label:p("Group name"),value:o,placeholder:p("Shown beside the heading"),onChange:d=>m({groupName:d})}),A1(rA,{label:p("Cities in this group"),noun:p("city"),items:r.map(d=>e[d]),onChange:d=>a(jw(e,t,d)),newItem:()=>({...km,group:t,groupName:o}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(d,v)=>$4("button",{type:"button",style:iA,onClick:()=>c(r[v]),children:[A1("span",{children:d?.name||p("City")}),A1("span",{"aria-hidden":"true",children:"\u203A"})]})}),A1("div",{style:{marginTop:12},children:A1("button",{type:"button",style:nA,onClick:()=>{a(e.filter(d=>s7(d)!==t)),s()},children:p3("Delete group ({n} city)","Delete group ({n} cities)",r.length)})})]})}function hA({value:e,onChange:t}){let a=Array.isArray(e)?e:[],s=Ww(),c=nw(),l=NK(a),{appState:r,selectedItem:o}=AK(g=>g),i=iy(),n=o?.props??{},h=g=>{if(!o)return;let b=(r.data.content??[]).findIndex(f=>f.props.id===o.props.id);b<0||i.replaceComponent(Wx,b,{type:o.type,props:{...o.props,...g}})},m=(g,b)=>t(a.map((f,w)=>w===g?{...f,...b}:f)),u=()=>{let g=new Set(l.map(w=>w.key)),b=l.length+1,f=`Group ${b}`;for(;g.has(f);)f=`Group ${++b}`;return f};if(s.level==="texts")return $4("div",{className:"sf-locations-view",children:[A1(is,{inline:!0,name:p("Locations"),onSelect:()=>O4({level:"groups"})}),A1("div",{style:{fontSize:14,fontWeight:500,margin:"6px 0 10px"},children:p("Texts")}),A1(lA,{props:n,setSection:h,headOnly:!0})]});if(s.level==="image"){let g=a[s.index];return g?$4("div",{className:"sf-locations-view",children:[A1(is,{inline:!0,name:String(g.name??"")||p("City"),onSelect:()=>O4({level:"city",index:s.index})}),A1("div",{style:{fontSize:14,fontWeight:500,margin:"6px 0 10px"},children:p("Image")}),A1(dy,{value:g.photo||"",onChange:b=>m(s.index,{photo:b}),label:"Image",accept:"image/*"})]}):d()}if(s.level==="map"){let g=a[s.index];return g?$4("div",{className:"sf-locations-view",children:[A1(is,{inline:!0,name:String(g.name??"")||p("City"),onSelect:()=>O4({level:"city",index:s.index})}),A1("div",{style:{fontSize:14,fontWeight:500,margin:"6px 0 10px"},children:p("Map")}),A1(Gl,{value:g.geocode,onChange:b=>m(s.index,{geocode:b}),label:"Coordinates"}),A1(g6,{label:p("Directions link"),icon:A1(TK,{}),value:String(g.mapsUrl??""),onChange:b=>m(s.index,{mapsUrl:b})})]}):d()}if(s.level==="city"){let g=s.index,b=a[g];if(!b)return d();let f=s7(b),w=(M,S)=>m(g,{[M]:S}),z=(M,S,H,I=!1)=>A1(g6,{label:S,icon:H,textarea:I,value:String(b[M]??""),onChange:E=>w(M,E)});return $4("div",{className:"sf-locations-view",children:[A1(is,{inline:!0,name:Lu(f,String(b.groupName??"")),onSelect:()=>O4({level:"group",key:f})}),A1("div",{style:{fontSize:14,fontWeight:500,margin:"6px 0 10px"},children:b.name||p("City")}),z("name",p("Location name"),A1(Su,{})),z("state",p("State / Province"),A1(Su,{})),z("country",p("Country"),A1(FK,{})),z("address",p("Address"),A1(PK,{}),!0),z("phone",p("Phone"),A1(EK,{})),z("hours",p("Opening hours"),A1(sA,{})),z("timezone",p("Timezone chip"),A1(sA,{})),A1("div",{style:{marginTop:12},children:A1("button",{type:"button",style:nA,onClick:()=>{t(a.filter((M,S)=>S!==g)),O4({level:"group",key:f})},children:p("Delete city")})})]})}if(s.level==="group")return l.some(g=>g.key===s.key)?A1(BK,{cards:a,groupKey:s.key,onChange:t,onBack:()=>O4({level:"groups"}),onOpenCity:g=>O4({level:"city",index:g}),onNavigate:g=>O4({level:"group",key:g})},s.key):d();function d(){return $4("div",{className:"sf-locations-view",children:[A1(lA,{props:n,setSection:h}),!c&&A1(Mu,{children:v()})]})}function v(){return A1(rA,{label:p("Locations"),noun:p("group"),items:l,onChange:g=>{let b=g.find(f=>!l.some(w=>w.key===f.key));t(Kw(a,g.map(f=>f.key),f=>[{...km,group:f,groupName:""}])),b&&O4({level:"group",key:b.key})},newItem:()=>({key:u(),name:"",indices:[]}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,above:l.length===0?A1("div",{style:{fontSize:12,color:"var(--fg-dim, #999)",padding:"4px 0"},children:p("No locations yet.")}):void 0,renderRow:g=>$4("button",{type:"button",style:iA,onClick:()=>O4({level:"group",key:g.key}),children:[A1("span",{style:{fontWeight:500},children:Lu(g.key,g.name)}),$4("span",{style:{color:"var(--fg-dim, #999)"},children:[p3("{n} city","{n} cities",g.indices.length)," \u203A"]})]})})}return d()}var ZK="/geocode.json";async function mA(e){let t=e.trim();if(!t)return null;if(!xx())throw new Error("geocode_unavailable");let a=await fetch(`${$w()}${ZK}?q=${encodeURIComponent(t)}`,{headers:{Accept:"application/json"}});if(!a.ok)throw new Error(`geocode_http_${a.status}`);let s=await a.json();if(!s||typeof s!="object")return null;let{lat:c,lng:l,label:r}=s,o=Number(c),i=Number(l);return!Number.isFinite(o)||!Number.isFinite(i)?null:{lat:o,lng:i,label:String(r??"")}}var Wo=e=>typeof e=="number"&&Number.isFinite(e);function Uo(e){return e.some(t=>{let a=t?.geocode;return a?a.pending||a.manual&&a.lat===void 0&&a.lng===void 0?!0:Wo(a.lat)&&a.lat!==t.lat||Wo(a.lng)&&a.lng!==t.lng:!1})}async function jo(e,t,{geocode:a=mA,courtesyGapMs:s=1100}={}){let c=r=>new Promise(o=>setTimeout(o,r)),l=e.slice();if(e.some(r=>r?.geocode?.pending)){let r=[],o=!1;for(let i of e){if(!i?.geocode?.pending){r.push(i);continue}o&&s>0&&await c(s),o=!0;try{let n=await a(t(i));r.push(n?{...i,lat:n.lat,lng:n.lng,geocode:{...i.geocode,pending:!1,ok:!0,status:`Found \u2014 ${n.label.split(",").slice(0,3).join(",").trim()}`,lat:n.lat,lng:n.lng}}:{...i,geocode:{...i.geocode,pending:!1,ok:!1,status:"No match \u2014 check the address and try again."}})}catch{r.push({...i,geocode:{...i.geocode,pending:!1,ok:!1,status:"Lookup busy \u2014 try again in a moment."}})}}l=r}return l.map(r=>{let o=r?.geocode;if(!o)return r;if(o.manual&&o.lat===void 0&&o.lng===void 0)return{...r,geocode:{...o,lat:r.lat,lng:r.lng}};let i=Wo(o.lat)&&o.lat!==r.lat?o.lat:r.lat,n=Wo(o.lng)&&o.lng!==r.lng?o.lng:r.lng;return i!==r.lat||n!==r.lng?{...r,lat:i,lng:n}:r})}var pA={fields:{locations:{type:"custom",render:({value:e,onChange:t})=>DK(hA,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,a=t.locations??[];if(!Uo(a))return e;let s=await jo(a,c=>{let l=qo(c.region);return[String(c.address??"").replace(/\s*\n+\s*/g,", "),c.name,String(c.state??"").trim()||l.state,String(c.country??"").trim()||l.country].map(r=>String(r??"").trim()).filter(Boolean).join(", ")});return{...e,props:{...t,locations:s}}}};import{jsx as fA}from"react/jsx-runtime";import{ClockIcon as XK,TagIcon as JK}from"efficient-easel/icons";import{jsx as YK}from"react/jsx-runtime";import{jsx as V5,jsxs as Ko,Fragment as GK}from"react/jsx-runtime";import{useEffect as qK,useState as dA}from"react";import{Fragment as OK,jsx as uA}from"react/jsx-runtime";function Je({kind:e,children:t}){let a=Hz(e);return a?uA("span",{[hz]:a.stamp,children:t}):uA(OK,{children:t})}var WK=24*3600*1e3,UK=[{key:"hours",label:"Hours"},{key:"minutes",label:"Minutes"},{key:"seconds",label:"Seconds"}];function jK(e,t){return Math.max(0,Math.ceil((e-t)/1e3))}function KK(e){let t=Date.parse((e??"").trim());return Number.isFinite(t)?t:null}var $K=e=>String(e).padStart(2,"0");function gA({title:e,zeroText:t,endsAt:a,showUnits:s=!0,editing:c=!1}={}){let l=KK(a),[r]=dA(()=>Date.now()+WK),o=l??(c?r:null),[i,n]=dA(()=>Date.now());if(qK(()=>{if(o===null)return;n(Date.now());let g=window.setInterval(()=>n(Date.now()),1e3);return()=>window.clearInterval(g)},[o]),o===null)return null;let h=jK(o,i),m=[Math.floor(h/3600),Math.floor(h%3600/60),h%60],u=(e??"").trim(),d=(t??"").trim(),v=`${m[0]} hours, ${m[1]} minutes and ${m[2]} seconds left`;return V5("section",{className:"relative z-[2] bg-bg",role:"timer","aria-live":"off",children:Ko("div",{className:"mx-auto flex max-w-[var(--sf-site-width,1600px)] flex-col items-center gap-4 px-[var(--sf-site-gutter,40px)] py-12 text-center max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",children:[u&&V5("p",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] text-fg-dim",children:k(u)}),h===0?d&&V5("p",{className:"font-heading3 text-[length:min(var(--size-headingSmall,32px),var(--sf-heading-max,9999px))] font-medium leading-tight text-fg",children:Y(d,!1)}):Ko(GK,{children:[V5("span",{className:"sr-only",children:v}),V5("div",{"aria-hidden":!0,className:"flex items-start gap-[clamp(8px,2vw,24px)]",children:UK.map((g,b)=>Ko("div",{className:"contents",children:[b>0&&V5("span",{className:"font-mono text-[length:clamp(32px,7vw,80px)] leading-none text-accent",children:":"}),Ko("div",{className:"flex min-w-0 flex-col items-center gap-2",children:[V5(Je,{kind:tm,children:V5("span",{"data-countdown-unit":g.key,...c?{[$6]:tm}:{},suppressHydrationWarning:!0,className:"font-mono text-[length:clamp(40px,8vw,96px)] font-medium leading-none tabular-nums text-fg",children:$K(m[b])})}),s&&V5(Je,{kind:E9,children:V5("span",{...c?{[$6]:E9}:{},className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.2em] text-fg-dim",children:g.label})})]})]},g.key))})]})]})})}var $o={title:"Back online in",zeroText:"Almost done. Back very soon."},vA={label:"Countdown",defaultProps:{...$o,endsAt:"",showUnits:!0},render:({title:e,zeroText:t,endsAt:a,showUnits:s,puck:c})=>YK(gA,{title:e,zeroText:t,endsAt:a,showUnits:s,editing:c?.isEditing})};var bA={fields:{title:F("Heading",$o.title),zeroText:F("At zero",$o.zeroText),endsAt:Wy("Ends",fA(XK,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:l1("Unit labels",!0,fA(JK,{}))}};var xA={fields:{html:{type:"textarea",label:"HTML"}}};import{jsx as s$}from"react/jsx-runtime";import{StylesIcon as c$}from"efficient-easel/icons";var P8="line",Au=[{label:"Line",value:"line"},{label:"Stripes \xB7 fine",value:"stripes-fine"},{label:"Stripes \xB7 medium",value:"stripes-medium"},{label:"Stripes \xB7 bold",value:"stripes-bold"}],QK={"stripes-fine":{ink:4,period:12},"stripes-medium":{ink:8,period:18},"stripes-bold":{ink:14,period:28}},zA=28,e$="-45deg",t$="color-mix(in oklab, var(--accent) 50%, var(--bg))";function a$(e){return e!=="line"}function yA(e){return R2(Au,P8,e)}function wA(e){if(!a$(e))return null;let{ink:t,period:a}=QK[e];return`repeating-linear-gradient(${e$}, ${t$} 0 ${t}px, transparent ${t}px ${a}px)`}var CA={fields:{style:v1("Style",s$(c$,{}),Au,P8),spacing:{type:"select",options:[{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}]}}};import{jsx as n$}from"react/jsx-runtime";import{jsx as v6,jsxs as ns}from"react/jsx-runtime";function l$(e,t){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||`section-${t+1}`}function r$(e){let t=[];for(let a of e.replace(/\r\n?/g,`
|
|
@@ -56,8 +56,8 @@ ${s}`:t.push({type:"p",text:s})});return t}var o$=()=>[{label:p("First section")
|
|
|
56
56
|
</div>
|
|
57
57
|
`),D.open({map:N,anchor:_}),w.current=c},[c,H,E,e]),i?R8("div",{ref:m,className:"sf-card footprint-map relative aspect-[16/9] w-full overflow-hidden border border-line max-[720px]:aspect-[4/5]",style:{backgroundColor:T},children:[v2("style",{dangerouslySetInnerHTML:{__html:yY(E.info)}}),v2(yH,{pal:n?h:void 0}),v2("div",{ref:u,className:"gmap-canvas absolute inset-0 transition-opacity duration-500",style:{opacity:H?1:0}}),v2("div",{className:["pointer-events-none absolute inset-0 flex items-center justify-center font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-fg-dim transition-opacity duration-500",H?"opacity-0":"opacity-100"].join(" "),children:"Loading map\u2026"})]}):R8("div",{className:["relative aspect-[16/9] w-full overflow-hidden border border-line max-[720px]:aspect-[4/5]",n?"":"bg-bg"].join(" "),style:n?{backgroundColor:h.background}:void 0,children:[v2(yH,{pal:n?h:void 0}),v2("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.24em]",n?"":"text-fg-dim"].join(" "),style:n?{color:h.info.fgDim}:void 0,children:r?"Add office coordinates to plot the map":"Add a Google Maps API key to show the map"})]})}var B8={sectionNumber:A.sectionNumber,heading:`${A.heading}
|
|
58
58
|
*${A.accent}*`,tagline:A.body},kY=()=>[{role:p("Headquarters"),city:p("City"),country:p("Country"),address:p("Street address"),lat:0,lng:0,hq:!0},{role:p("Office"),city:p("City"),country:p("Country"),address:p("Street address"),lat:0,lng:0,hq:!1}],kH={label:"Locations Map",defaultProps:{sectionNumber:"",heading:"",tagline:"",offices:[],apiKey:I8.apiKey,mapId:I8.mapId,mapTheme:I8.mapTheme,padTop:120,padBottom:120},render:e=>{let t=O1(e.headPlacement)==="own-box",a=s=>t?void 0:s;return CY(CH,{sectionNumber:a(y(e.sectionNumber,B8.sectionNumber,e.puck)),heading:a(y(e.heading,B8.heading,e.puck)),tagline:a(y(e.tagline,B8.tagline,e.puck)),omitHead:t,offices:w1(e.offices,kY(),e.puck),apiKey:a1(e.apiKey),mapId:a1(e.mapId),mapTheme:e.mapTheme??I8.mapTheme,padTop:t?0:typeof e.padTop=="number"?e.padTop:120,padBottom:typeof e.padBottom=="number"?e.padBottom:120,editing:e.puck?.isEditing})}};var SH={fields:{_gContent:x("Section"),sectionNumber:F("Section number",B8.sectionNumber),heading:G("Heading",B8.heading),tagline:G("Body",B8.tagline),_gOffices:x("Offices"),offices:{type:"array",label:"Offices",arrayFields:{role:q("Role"),city:q("City"),country:q("Region \xB7 country"),address:f1("Address"),group:q("Group"),hq:l1("HQ",!1,MH(MY,{})),geocode:s2(Gl,{label:"Coordinates"})},defaultItemProps:{role:"Sales & Distribution",city:"City",country:"Country",address:"",group:"",hq:!1,lat:0,lng:0},getItemSummary:e=>e?.city||"Office"},mapTheme:x1("Map theme",MH(SY,{}),[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],I8.mapTheme),_dLayout:Q1("Layout"),...u3("Footprint")},resolveData:async e=>{let t=e.props,a=t.offices??[];if(!Uo(a))return e;let s=await jo(a,c=>[c.address,c.city,c.country].map(l=>String(l??"").replace(/\*/g,"").trim()).filter(Boolean).join(", "));return{...e,props:{...t,offices:s}}},resolveFields:(e,{fields:t,parent:a})=>G1(U1(t,a,j1),e.props.headPlacement,Z1.Footprint.headRows)};import{jsx as FH}from"react/jsx-runtime";import{ColumnsIcon as AY,PhoneIcon as HY}from"efficient-easel/icons";import{jsx as LY}from"react/jsx-runtime";import{jsx as LH}from"react/jsx-runtime";function AH({columns:e,mobileColumns:t,gap:a,contained:s=!0,fillHeight:c=!1,content:l}){let r=c?" h-full":"",o=`${ds} py-6 ${gs}${r}`,i=`w-full py-6${r}`,n=ll(e),h=rl(t,e),m=I3("Grid",a,"both");return LH(st,{contained:s,framedClass:o,fillClass:i,children:LH(l,{className:`sf-grid-zone grid${m.className}${r}`,style:{...m.style,"--sf-grid-cols":String(n),"--sf-grid-cols-phone":String(h)},minEmptyHeight:120})})}var ju={content:{type:"slot"}},HH={label:"Grid",fields:ju,defaultProps:{columns:"3",content:[]},render:e=>LY(AH,{columns:e.columns,mobileColumns:e.mobileColumns,gap:e.gap,contained:e.contained,fillHeight:yl(e),content:e.content})};var TH={fields:{columns:s1("Columns",FH(AY,{}),1,Yx,1,Jx),mobileColumns:s1("Columns on phone",FH(HY,{}),Uh,Xx,1,Uh),gap:R3("Grid"),content:ju.content}};import{jsx as FY}from"react/jsx-runtime";var PH={fields:{text:G("Heading",A.heading),level:v1("Level",FY(a4,{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"),align:P5()}};import{jsx as G2}from"react/jsx-runtime";import{ClockIcon as EY,EyeIcon as $u,OpacityIcon as VY,PhoneIcon as VH,PlayIcon as NY,SlideArrowsBareIcon as _Y,SlideArrowsRoundIcon as IY,SlideArrowsSquareIcon as RY,SlidePickerBarIcon as BY,SlidePickerCardsIcon as ZY,SlidePickerDotsIcon as DY,SlidePickerNumbersIcon as OY,SquareIcon as NH}from"efficient-easel/icons";import{efficientLooks as GY}from"efficient-shell/icons/efficient-looks";import{jsx as TY}from"react/jsx-runtime";var Ku={slides:{type:"slot"}},EH={label:"Hero Slideshow",fields:Ku,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6,showTicker:!0,tickerItems:Gw.map(e=>({text:e}))},render:({slides:e,alignment:t,textureOpacity:a,showTexture:s,textureColor:c,phoneUpDown:l,phoneSideways:r,autoplay:o,autoplayInterval:i,showTicker:n,tickerItems:h,heightDesktop:m,heightMobile:u,showPicker:d,pickerShape:v,pickerPlacement:g,showArrows:b,arrowsShape:f,arrowsPlacement:w,puck:z})=>TY(qw,{slides:e,alignment:t,textureOpacity:a,showTexture:s,textureColor:c,phoneUpDown:l,phoneSideways:r,autoplay:o,autoplayInterval:i,showTicker:n,tickerItems:h,heightDesktop:m,heightMobile:u,showPicker:d,pickerShape:v,pickerPlacement:g,showArrows:b,arrowsShape:f,arrowsPlacement:w,editing:z?.isEditing})};var qY=GY.looks?.solid?.["slide-arrows-round"],WY={cards:G2(ZY,{}),dots:G2(DY,{}),numbers:G2(OY,{}),bar:G2(BY,{})},UY={outline:G2(IY,{}),solid:G2(qY,{}),square:G2(RY,{}),bare:G2(_Y,{})},_H={fields:{_dDevice:I9(),_gContent:x("Content"),slides:Ku.slides,_gStyle:x("Style"),alignment:P5(),_gTexture:x("Texture"),showTexture:l1("Show texture",!0,G2($u,{})),textureColor:x5("Texture color",Ix),textureOpacity:s1("Texture opacity",G2(VY,{}),0,100,1,40,"%"),_gLayout:x("Layout"),heightDesktop:d6("desktop"),heightMobile:d6("mobile"),_gAutoplay:x("Auto-slide"),autoplay:l1("Auto-advance slides",!1,G2(NY,{})),autoplayInterval:s1("Still time per slide",G2(EY,{}),2,15,1,6,"s"),_gPicker:x("Slide picker"),showPicker:l1("Show slide picker",Ew,G2($u,{})),pickerShape:x1("Slide picker shape",G2(NH,{}),Fw.map(e=>({label:Pw[e],value:e,picture:WY[e]})),Tw),pickerPlacement:r6("Slide picker placement",{stacking:!1,fallback:Hw}),_gArrows:x("Arrows"),showArrows:l1("Show arrows",Aw,G2($u,{})),arrowsShape:x1("Arrows shape",G2(NH,{}),Mw.map(e=>({label:Lw[e],value:e,picture:UY[e]})),Sw),arrowsPlacement:r6("Arrows placement",{stacking:!1,fallback:kw}),_gPhone:J2("mobile",x("On a phone")),phoneUpDown:J2("mobile",x1(Ex,G2(VH,{}),Nx(),Tx)),phoneSideways:J2("mobile",x1(Vx,G2(VH,{}),_x(),Px))}};import{jsx as ni}from"react/jsx-runtime";import{NudgeIcon as OH,WidthIcon as GH}from"efficient-easel/icons";import{jsx as jY}from"react/jsx-runtime";import{jsx as IH}from"react/jsx-runtime";function RH({placement:e,nudgeX:t,nudgeY:a,width:s,gap:c,direction:l,justify:r,align:o,wrap:i,sectionPaddingTop:n,sectionPaddingBottom:h,sectionPaddingTopPhone:m,sectionPaddingBottomPhone:u,content:d,dragRef:v}){let g=Ox(e),b=Wh(t),f=Wh(a),w=I3("HeroGroup",c,wl("HeroGroup",l)==="column"?"block":"inline"),z={"--sf-hg-row":Dx(g),justifySelf:Zx(g).column};typeof s=="number"&&Number.isFinite(s)&&(z["--sf-hg-w"]=`${Gx(s)}%`),(b!==0||f!==0)&&(z["--sf-hg-nudge"]=`${b}px ${f}px`);let M=_9(n,h,m,u);return IH("div",{className:M?`sf-hero-group ${M.className}`:"sf-hero-group","data-hg":g,style:M?{...z,...M.style}:z,ref:v??void 0,children:d?IH(d,{className:["sf-hero-group-blocks flex",sy("HeroGroup",l),Tl(r,o),Pl(i)].filter(Boolean).join(" ")+w.className,style:w.style,minEmptyHeight:40}):null})}var Yu={content:{type:"slot",allow:Sx}},BH={label:Cx,inline:!0,fields:Yu,defaultProps:{placement:Bx,nudgeX:0,nudgeY:0,content:[]},render:({placement:e,nudgeX:t,nudgeY:a,width:s,gap:c,direction:l,justify:r,align:o,wrap:i,sectionPaddingTop:n,sectionPaddingBottom:h,sectionPaddingTopPhone:m,sectionPaddingBottomPhone:u,content:d,puck:v})=>jY(RH,{placement:e,nudgeX:t,nudgeY:a,width:s,gap:c,direction:l,justify:r,align:o,wrap:i,sectionPaddingTop:n,sectionPaddingBottom:h,sectionPaddingTopPhone:m,sectionPaddingBottomPhone:u,content:d,dragRef:v?.dragRef})};var qH={fields:{_gContent:x("Content"),name:K9(Q2(q("Box name",A.boxName))),content:Yu.content,_gLayout:x("Layout"),placement:r6("Placement",{stacking:!0}),width:s1("Width",ni(GH,{}),30,100,5,60,"%"),direction:Dy("HeroGroup"),gap:R3("HeroGroup"),justify:Rl(),align:Bl(),wrap:Zl(),_gNudge:x("Nudge"),nudgeX:s1("Sideways",ni(OH,{}),-40,40,1,0,"px"),nudgeY:s1("Up and down",ni(OH,{}),-40,40,1,0,"px"),...f5({phone:!0})},resolveFields:(e,{fields:t,appState:a})=>{let s=typeof e.props.id=="string"?e.props.id:"";if(cl(a?.data,s)===0)return t;let c={...t};return delete c.placement,c.width=s1("Width",ni(GH,{}),30,100,5,100,"%"),c}};import{jsx as hi}from"react/jsx-runtime";import{MediaIcon as lX,OpacityIcon as KH,PlacementIcon as rX}from"efficient-easel/icons";var M7="bottom",S7="#0A0A0A",Xu=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],YY={bottom:180,top:0,left:270,right:90},XY=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],JY=[[null,33],[.6,67],[.94,100]];function QY(e,t){let a=/^#[0-9a-f]{6}$/i.test(e)?e:S7,s=parseInt(a.slice(1),16);return`rgba(${s>>16&255},${s>>8&255},${s&255},${t})`}function eX(e){return R2(Xu,M7,e)}function WH(e=S7,t=M7){let a=eX(t),s=(a==="top"||a==="bottom"?XY:JY).map(([c,l])=>`${c===null?"transparent":QY(e,c)} ${l}%`);return`linear-gradient(${YY[a]}deg, ${s.join(", ")})`}import{jsx as sX}from"react/jsx-runtime";import{jsx as rt,jsxs as tX}from"react/jsx-runtime";import{useRef as aX}from"react";function UH({overlay:e=100,overlayColor:t=S7,overlayPosition:a=M7,mediaType:s="image",mediaSrc:c,poster:l,objectPosition:r,tintColor:o="#000000",tintOpacity:i=0,heightDesktop:n,heightMobile:h,boxes:m,editing:u=!1}){let d=Nw(n,h),v=d?"h-[var(--sf-hero-h-m)] min-[720px]:h-[var(--sf-hero-h-d)]":"h-screen min-h-[680px]",g=d?{"--sf-hero-h-d":oe(n),"--sf-hero-h-m":oe(h)}:void 0,b=s==="video",f=b?t4(c):void 0,w=b?t4(l):t4(c)??t4(l),z=aX(null);return tX("section",{ref:z,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${v} max-w-[var(--sf-hero-cap,none)] overflow-hidden`,style:g,children:[rt("div",{className:"absolute inset-0 z-[1]",children:rt(Fx,{videoSrc:f,posterSrc:w,showVideo:b,objectPosition:r})}),i>0&&rt("div",{className:"pointer-events-none absolute inset-0 z-[2]",style:{background:o,opacity:Math.min(Math.max(i,0),100)/100}}),rt("div",{className:"pointer-events-none absolute inset-0 z-[2]",style:{background:WH(t,a),opacity:Math.min(Math.max(e,0),100)/100}}),m&&rt("div",{className:["sf-hero-group-layer absolute inset-0 z-[3] mx-auto","max-w-[min(var(--sf-page-cap,var(--sf-site-width,1600px)),var(--sf-site-width,1600px))]","px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",u?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:u5,children:rt(m,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}import{FOCAL_DEFAULT as cX}from"efficient-shell/format";var Ju={boxes:{type:"slot",allow:["HeroGroup"]}},jH={label:"Hero",fields:Ju,defaultProps:{mediaType:"image",imageFocal:cX,tintColor:"#000000",tintOpacity:0,overlay:100,overlayColor:S7,overlayPosition:M7},render:({mediaType:e,mediaImage:t,mediaVideo:a,poster:s,imageFocal:c,tintColor:l,tintOpacity:r,overlay:o,overlayColor:i,overlayPosition:n,heightDesktop:h,heightMobile:m,boxes:u,puck:d})=>sX(UH,{mediaType:e,mediaSrc:(e==="image"?t:a)||void 0,poster:s||void 0,objectPosition:e==="image"&&c||void 0,tintColor:l,tintOpacity:e==="image"?r:0,overlay:o,overlayColor:i,overlayPosition:n,heightDesktop:h,heightMobile:m,boxes:u,editing:d?.isEditing})};var $H={fields:{_dDevice:I9(),boxNotice:Fo("HeroSingle"),boxes:Ju.boxes,_gStyle:x("Style"),overlay:s1("Overlay",hi(KH,{}),0,100,5,100,"%"),overlayColor:x5("Overlay color",S7),overlayPosition:Dl("Overlay position",Xu,M7,"A corner would need a diagonal ramp, which this overlay does not draw.",hi(rX,{})),_gLayout:x("Layout"),heightDesktop:d6("desktop"),heightMobile:d6("mobile"),_gMedia:x("Media"),mediaType:x1("Type",hi(lX,{}),Ol,"image"),mediaImage:q1("Background image","image/*","Upload a background image"),imageFocal:Y9("Image focus",U9),mediaVideo:q1("Background video","video/*","Upload a background video"),poster:q1("Video poster","image/*","Upload a poster still"),_gTint:x("Image tint"),tintColor:x5("Tint color","#000000"),tintOpacity:s1("Tint opacity",hi(KH,{}),0,100,5,0,"%")},resolveFields:(e,{fields:t})=>{let a=e.props.mediaType??"image",s={...t};return a==="image"?(delete s.mediaVideo,delete s.poster):(delete s.mediaImage,delete s.imageFocal,delete s._gTint,delete s.tintColor,delete s.tintOpacity),s}};import{jsx as ed}from"react/jsx-runtime";import{MediaIcon as nX,OpacityIcon as hX,PlayIcon as mX}from"efficient-easel/icons";import{jsx as oX}from"react/jsx-runtime";import{FOCAL_DEFAULT as iX}from"efficient-shell/format";var Qu={groups:{type:"slot",allow:["HeroGroup"]}},YH={label:"Hero Slide",fields:Qu,defaultProps:{mediaType:"video",videoSpeed:100,imageFocal:iX,tintColor:"#000000",overlay:0},render:({name:e,process:t,mediaType:a,mediaVideo:s,mediaImage:c,poster:l,mediaSrc:r,videoSpeed:o,imageFocal:i,tintColor:n,overlay:h,groups:m,puck:u,...d})=>{let v=N9({...d,sectionAccent:g5(d.sectionAccent)});return oX(Rx,{themeClassName:v?.className,themeStyle:v?.style,name:e||void 0,process:y(t,"Label",u),mediaType:a,mediaSrc:(a==="image"?c:s||r)||void 0,videoSpeed:typeof o=="number"?o:void 0,poster:l||void 0,objectPosition:a==="image"&&i||void 0,tintColor:n,tintOpacity:a==="image"?h:0,groups:m,editing:u?.isEditing})}};var XH={fields:{_gContent:x("Content"),name:K9(q("Slide name",A.slideName)),process:F("Reel label","Label"),groupNotice:Fo("HeroSlide"),groups:Qu.groups,_gMedia:x("Media"),mediaType:x1("Type",ed(nX,{}),Ol,"video"),mediaVideo:q1("Background video","video/*","Upload a background video"),videoSpeed:s1("Playback speed",ed(mX,{}),25,100,5,100,"%"),mediaImage:q1("Background image","image/*","Upload a background image"),imageFocal:Y9("Image focus",U9),poster:q1("Video poster","image/*","Upload a poster still"),_gTint:x("Image tint"),tintColor:x5("Tint color","#000000"),overlay:s1("Overlay",ed(hX,{}),0,100,5,0,"%")},resolveFields:(e,{fields:t})=>{let a=e.props.mediaType??"video",s={...t};return a==="image"?(delete s.mediaVideo,delete s.videoSpeed,delete s.poster):(delete s.mediaImage,delete s.imageFocal,delete s._gTint,delete s.tintColor,delete s.overlay),s}};import{jsx as pX}from"react/jsx-runtime";var JH=["cover","contain"],td={cover:"Cover",contain:"Contain"},mi="Image fit";function ot(e,t){return JH.includes(e)?e:t}function QH(){return JH.map(e=>({label:td[e],value:e}))}function eF(e){return e==="contain"?"object-contain":"object-cover"}function pi(e,t){return e!=="auto"&&t==="cover"}import{ImageIcon as uX}from"efficient-easel/icons";var tF={fields:{_gImage:x("Image"),src:q1("Image","image/*"),alt:q("Alt text"),aspect:{type:"select",label:"Aspect ratio",options:[{label:"Auto",value:"auto"},{label:"21 : 9",value:"21/9"},{label:"16 : 9",value:"16/9"},{label:"4 : 3",value:"4/3"},{label:"1 : 1",value:"1/1"}]},fit:v1(mi,pX(uX,{}),QH(),"cover"),focal:Y9("Image focus",U9,"src"),href:F1("Link"),_gStyle:x("Style"),grayscale:qe(),_gShape:x("Shape"),corners:Ky(),cornerSides:Ny()},resolveFields:(e,{fields:t})=>{let a=e.props??{};if(pi(a.aspect,ot(a.fit,"cover")))return t;let s={...t};return delete s.focal,s}};import{jsx as dX}from"react/jsx-runtime";var aF={fields:{_gContent:x("Content"),eyebrow:F("Chip label","Integrations"),title:G("Heading",`Plays well with
|
|
59
|
-
*your favourite apps.*`),body:G("Body",""),apps:P2("App chips",dX(a4,{noun:"tag"}),"App name","verbatim"),_gStat:x("Stat & note"),statValue:F("Big stat","100s"),statLabel:F("Stat label",""),note:F("Footnote","")}};import{jsx as Z8}from"react/jsx-runtime";import{CaseIcon as bX,FullWidthIcon as xX,
|
|
60
|
-
*Highlight line*`,body:"A sentence or two of supporting copy."};function fX(e){if(e===!1)return Y6(`var(--sf-page-width, ${V9.default}px)`)}var cF={label:"Scroll-Over Text",defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:ya,bodySizeDesktop:ya,titleSizeMobile:ya,bodySizeMobile:ya,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",sticky:!0,uppercase:!1,fullWidth:!0},render:e=>vX(sF,{eyebrow:y(e.eyebrow,L7.eyebrow,e.puck),title:y(e.title,L7.title,e.puck),body:y(e.body,L7.body,e.puck),imageLabel:a1(e.title)||L7.title,imageSrc:e.imageSrc||void 0,imageSrcMobile:e.imageSrcMobile||void 0,cta:G3(e.ctaText,e.ctaHref,e.puck),sticky:e.sticky,layout:it(e.layout),copyShareDesktop:e.copyShareDesktop,copyShareMobile:e.copyShareMobile,heightDesktop:e.heightDesktop,heightMobile:e.heightMobile,overlay:e.overlay,titleSizeDesktop:e.titleSizeDesktop,bodySizeDesktop:e.bodySizeDesktop,titleSizeMobile:e.titleSizeMobile,bodySizeMobile:e.bodySizeMobile,buttonColor:e.buttonColor||void 0,buttonTextColor:e.buttonTextColor||void 0,uppercase:e.uppercase,capStyle:fX(e.fullWidth)})};var rF={fields:{_dDevice:I9(),_gContent:x("Content"),eyebrow:F("Eyebrow",L7.eyebrow),title:G("Heading",L7.title),body:G("Subtitle",L7.body),uppercase:l1("Uppercase heading",!1,Z8(bX,{})),_gBackground:x("Background images"),imageSrc:J2("desktop",q1("Background image","image/*")),imageSrcMobile:J2("mobile",q1("Background image","image/*")),_gLayout:x("Layout"),layout:v1("Layout",Z8(zX,{}),sd,ad),heightDesktop:d6("desktop"),heightMobile:d6("mobile"),copyShareDesktop:J2("desktop",s1("Text height",Z8(lF,{}),P4.min,P4.max,P4.step,P4.desktop,"%")),copyShareMobile:J2("mobile",s1("Text height",Z8(lF,{}),P4.min,P4.max,P4.step,P4.mobile,"%")),sticky:l1("Scroll-over",!0,Z8(wX,{})),_gWidth:x("Width"),fullWidth:l1("Full width",!0,Z8(xX,{})),overlay:s1("Overlay",Z8(yX,{}),0,100,5,60,"%"),_gTextDesktop:J2("desktop",x("Text style")),titleSizeDesktop:J2("desktop",wa("Heading font size",32,120,1,96,"heading")),bodySizeDesktop:J2("desktop",wa("Subtitle font size",12,28,1,17,"body")),_gTextMobile:J2("mobile",x("Text style")),titleSizeMobile:J2("mobile",wa("Heading font size",24,72,1,44,"heading")),bodySizeMobile:J2("mobile",wa("Subtitle font size",12,22,1,16,"body")),_gButton:x("Button"),...L4,buttonColor:x5("Button color","#C9A461"),buttonTextColor:x5("Button text color","#000000")}};import{jsx as nF}from"react/jsx-runtime";import{ColumnsIcon as SX,StylesIcon as LX}from"efficient-easel/icons";import{jsx as kX}from"react/jsx-runtime";import{jsx as b6,jsxs as ld,Fragment as CX}from"react/jsx-runtime";function oF({look:e,eyebrow:t,title:a,items:s,columns:c,editing:l=!1}={}){let r=Math.min(4,Math.max(2,c??3)),o=(s??[]).filter(n=>l||(n.label??"").trim()),i=!!(t??"").trim()||!!(a??"").trim();return!l&&!i&&o.length===0?null:b6("section",{className:"relative z-[2] border-y border-line bg-surface",children:ld("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[76px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",children:[i&&ld("div",{className:"mb-11 flex flex-wrap items-baseline gap-5 max-[800px]:mb-8",children:[(t??"").trim()&&b6(N1,{text:t??"",look:e}),(a??"").trim()&&b6("h2",{className:"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-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:Y(a??"",!1)})]}),o.length>0&&b6("div",{className:"sf-card grid grid-cols-1 gap-px border border-line bg-line min-[700px]:[grid-template-columns:repeat(var(--kf-cols),minmax(0,1fr))]",style:{"--kf-cols":String(r)},children:o.map((n,h)=>{let m=ld(CX,{children:[b6("span",{"aria-hidden":!0,className:"h-[9px] w-[9px] flex-shrink-0 rotate-45 bg-accent"}),b6("span",{className:"font-display text-[length:var(--size-body,17px)] font-medium uppercase tracking-[0.06em] text-fg transition-colors group-hover/kf:text-accent",children:k((n.label??"").trim()||p("Feature"))})]}),u=(n.href??"").trim();if(u&&!l){let d="group/kf flex items-center gap-4 bg-bg px-7 py-[30px] transition-colors hover:bg-surface";return u.startsWith("/")?b6(s0,{href:u,className:d,children:m},h):b6("a",{href:u,className:d,children:m},h)}return b6("div",{className:"flex items-center gap-4 bg-bg px-7 py-[30px]",children:m},h)})})]})})}var zs={eyebrow:"Highlight",title:"Key *features.*"},MX=()=>[{label:p("Feature label one")},{label:p("Feature label two")},{label:p("Feature label three")},{label:p("Feature label four")},{label:p("Feature label five")},{label:p("Feature label six")}],iF={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3},render:({eyebrow:e,title:t,items:a,columns:s,eyebrowLook:c,puck:l})=>kX(oF,{look:l4(c,"KeyFeatures"),eyebrow:y(e,zs.eyebrow,l),title:y(t,zs.title,l),items:w1(a,MX(),l),columns:s,editing:l?.isEditing})};var hF={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow",zs.eyebrow),eyebrowLook:v1("Eyebrow style",nF(LX,{}),[...w4],c7("KeyFeatures")),title:G("Heading",zs.title),items:{type:"array",label:"Features",arrayFields:{label:f1("Feature label"),href:Q2(q("Link"))},defaultItemProps:{label:"",href:""},getItemSummary:e=>e?.label||"Feature"},_gStyle:x("Style"),columns:s1("Columns",nF(SX,{}),2,4,1,3)}};import{jsx as AX}from"react/jsx-runtime";import{HeightIcon as HX}from"efficient-easel/icons";var mF={fields:{src:q1("Logo image","image/*"),alt:q("Alt text","Brand name","Read out in place of the picture, and shown if it can\u2019t load."),href:F1("Link"),heightPx:s1("Height",AX(HX,{}),zC,yC,1,h7,"px"),reverse:{type:"select",label:"Logo color",options:[{label:"Auto contrast",value:"auto"},{label:"As uploaded",value:"off"}]}},resolveFields:(e,{fields:t})=>{if((e.props.src??"").trim())return t;let a={...t};return delete a.alt,a}};import{jsx as ui}from"react/jsx-runtime";import{BlackAndWhiteIcon as FX,ColumnsIcon as TX,HeightIcon as PX,PaddingYIcon as EX}from"efficient-easel/icons";var pF={fields:{_gContent:x("Content"),heading:G("Heading","Trusted by *teams worldwide*"),items:{type:"array",label:"Logos",arrayFields:{src:q1("Image","image/*"),alt:q("Name / alt")},getItemSummary:e=>e.alt||e.src||"logo"},_gStyle:x("Style"),columns:s1("Columns",ui(TX,{}),3,6,1,5),logoHeight:s1("Logo height",ui(PX,{}),20,72,2,28,"px"),bandPadding:s1("Space above and below",ui(EX,{}),16,120,4,40,"px"),grayscale:l1("Black and white logos",!0,ui(FX,{}))}};import{jsx as VX}from"react/jsx-runtime";import{jsx as l3,jsxs as J4,Fragment as rd}from"react/jsx-runtime";import{Fragment as uF}from"react";function dF({headNum:e,headTitle:t,headDesc:a,category:s,metaMiddle:c,readLabel:l,title:r,dek:o,quote:i,quoteAttribution:n,ctaText:h,ctaHref:m,image:u,imageLabel:d,metaPublished:v,metaReads:g,omitHead:b=!1,...f}){let w=[s?l3("span",{className:"text-accent",children:k(s)}):null,c?l3("span",{children:k(c)}):null,l?l3("span",{children:k(l)}):null].filter(Boolean),z=!!v||!!g;return J4("section",{className:_0(f)?b?"border-b border-line px-[var(--sf-site-gutter,40px)] pt-0 pb-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:pt-0 max-[1100px]:pb-20":"border-b border-line px-[var(--sf-site-gutter,40px)] py-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:py-20":b?"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] pt-0 pb-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:pt-0 max-[1100px]:pb-20":"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] py-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:py-20",children:[b?null:l3(O2,{num:e,title:t?Y(t,!0):void 0,desc:a?k(a):void 0}),J4("article",{className:"sf-card grid min-h-[640px] grid-cols-[1fr_1.2fr] border border-line max-[1100px]:grid-cols-1",children:[J4("div",{className:"flex flex-col justify-center gap-7 border-r border-line bg-surface px-14 py-16 max-[1100px]:border-r-0 max-[1100px]:border-b max-[1100px]:px-7 max-[1100px]:py-12",children:[w.length>0&&l3("div",{className:"flex items-center gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-fg-dim",children:w.map((M,S)=>J4(uF,{children:[S>0&&l3("span",{className:"opacity-40",children:"\xB7"}),M]},S))}),r&&l3("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,4.2vw,68px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.035em]",children:Y(r,!0)}),o&&l3("p",{className:"font-serif text-[length:var(--size-body,22px)] italic leading-[1.45] text-fg",children:k(o)}),(i||n)&&J4("blockquote",{className:"max-w-[520px] border-l-2 border-accent py-1.5 pl-[22px] font-serif text-[length:var(--size-body,17px)] italic leading-[1.6] text-fg-dim",children:[i&&J4(rd,{children:["\u201C",k(i),"\u201D"]}),n&&l3("strong",{className:"mt-2.5 block font-display text-[length:var(--size-body,14px)] font-normal not-italic uppercase tracking-[0.22em] text-fg",children:k(n)})]}),h&&J4(s0,{href:m||"#",className:"inline-flex items-center gap-3.5 self-start border border-btn px-7 py-4 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.3em] text-btn transition-colors hover:bg-btn hover:text-btn-ink",children:[k(h)," ",l3("span",{children:"\u2192"})]})]}),J4("div",{className:"relative overflow-hidden bg-surface-2 max-[1100px]:aspect-[4/3]",children:[l3(k0,{label:"long-read",src:u||void 0,alt:p2(r||"Long read"),sizes:"(max-width: 1100px) 100vw, 56vw"}),l3("div",{className:"pointer-events-none absolute inset-0 z-[1]",style:{background:"linear-gradient(180deg, rgba(10,10,10,0.55) 0%, transparent 25%, transparent 60%, rgba(10,10,10,0.7) 100%)"}}),d&&l3(N1,{text:d,size:12,className:"absolute right-6 top-6 z-[2]"}),z&&l3("div",{className:"absolute bottom-6 left-6 z-[2] font-mono text-[length:var(--size-label,12px)] uppercase leading-[1.8] tracking-[0.22em] text-overlay-fg",children:[v?J4(rd,{children:[l3("strong",{className:"font-normal text-accent",children:"Published"})," ",k(v)]}):null,g?J4(rd,{children:[l3("strong",{className:"font-normal text-accent",children:"Reads in"})," ",k(g)]}):null].filter(Boolean).map((M,S)=>J4(uF,{children:[S>0&&l3("br",{}),M]},S))})]})]})]})}var I0={headNum:A.sectionNumber,headTitle:A.headingAccent,headDesc:A.body,category:A.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 "+A.date,ctaText:"Begin reading",ctaHref:u2.href,imageLabel:"Featured *image*",metaPublished:A.date,metaReads:"0 min"},gF={label:"Long read",defaultProps:{source:null,headNum:"",headTitle:"",headDesc:"",category:"",metaMiddle:"",readLabel:"",title:"",dek:"",quote:"",quoteAttribution:"",ctaText:"",ctaHref:"",image:"",imageLabel:"",metaPublished:"",metaReads:""},render:({source:e,headNum:t,headTitle:a,headDesc:s,category:c,metaMiddle:l,readLabel:r,title:o,dek:i,quote:n,quoteAttribution:h,ctaText:m,ctaHref:u,image:d,imageLabel:v,metaPublished:g,metaReads:b,headPlacement:f,puck:w})=>{let z=O1(f)==="own-box",M=I=>z?void 0:I,S=e,H=!!S?.slug;return VX(dF,{headNum:M(y(t,I0.headNum,w)),headTitle:M(y(a,I0.headTitle,w)),headDesc:M(y(s,I0.headDesc,w)),omitHead:z,category:y(c,I0.category,w),metaMiddle:y(l,I0.metaMiddle,w),readLabel:y(r,I0.readLabel,w),title:H?S.title:y(o,I0.title,w),dek:H?S.dek:y(i,I0.dek,w),quote:y(n,I0.quote,w),quoteAttribution:y(h,I0.quoteAttribution,w),ctaText:y(m,I0.ctaText,w),ctaHref:H?S.href:a1(u),image:H?S.image:d,imageLabel:y(v,I0.imageLabel,w),metaPublished:H?S.date:y(g,I0.metaPublished,w),metaReads:y(b,I0.metaReads,w)})}};var vF={fields:{source:s2(at),_gHead:x("Section header"),headNum:F("Number",I0.headNum),headTitle:G("Heading",I0.headTitle),headDesc:G("Body",I0.headDesc),_gMeta:x("Article"),category:F("Category",I0.category),metaMiddle:F("Middle meta",I0.metaMiddle),readLabel:F("Read time",I0.readLabel),title:G("Article title",I0.title),dek:G("Dek",I0.dek),_gQuote:x("Pull quote"),quote:G("Quote",I0.quote),quoteAttribution:F("Attribution",I0.quoteAttribution),_gLink:x("Link"),ctaText:F("Button",I0.ctaText),ctaHref:F1("Link"),image:q1("Image","image/*"),imageLabel:F("Image label",I0.imageLabel),_gOverlay:x("Image caption"),metaPublished:F("Published",I0.metaPublished),metaReads:F("Reads in",I0.metaReads)},resolveFields:(e,{fields:t,parent:a})=>{let s=!!e.props.source?.slug,c=new Set(s?["image","title","dek","ctaHref","metaPublished"]:[]),l={};for(let[r,o]of Object.entries(t))c.has(r)||(l[r]=o,s&&r==="source"&&(l._nBound=v5(Nl)));return G1(U1(l,a,j1),e.props.headPlacement,Z1.LongRead.headRows)}};var fF={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow",A.eyebrow),heading:G("Heading",`Main heading
|
|
59
|
+
*your favourite apps.*`),body:G("Body",""),apps:P2("App chips",dX(a4,{noun:"tag"}),"App name","verbatim"),_gStat:x("Stat & note"),statValue:F("Big stat","100s"),statLabel:F("Stat label",""),note:F("Footnote","")}};import{jsx as Z8}from"react/jsx-runtime";import{CaseIcon as bX,FullWidthIcon as xX,OpacityIcon as zX,PlacementIcon as yX,StickyIcon as wX,TextLinesIcon as lF}from"efficient-easel/icons";var ad="overlay",sd=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function it(e){return R2(sd,ad,e)}var P4={desktop:40,mobile:45,min:20,max:80,step:5};function cd(e,t){return`${typeof e=="number"?e:t}%`}import{jsx as vX}from"react/jsx-runtime";import{jsx as U3,jsxs as xs,Fragment as gX}from"react/jsx-runtime";function sF({eyebrow:e,title:t,body:a,cta:s,imageLabel:c,imageSrc:l,imageSrcMobile:r,layout:o,copyShareDesktop:i,copyShareMobile:n,sticky:h=!0,heightDesktop:m,heightMobile:u,overlay:d,titleSizeDesktop:v,titleSizeMobile:g,bodySizeDesktop:b,bodySizeMobile:f,buttonColor:w,buttonTextColor:z,uppercase:M=!1,capStyle:S}){let H=it(o)==="stacked",I=n1=>H?`calc(${oe(n1)} - ${wm})`:oe(n1),E=I(m),O=I(u),T=e7(v,"clamp(48px,7vw,96px)","heading","headingLarge"),P=e7(g,"clamp(36px,7vw,96px)","heading","headingLarge"),N=e7(b,"17px","body","body"),D=e7(f,"16px","body","body"),Z=d!=null?d/100:H?0:.6,_=w||"var(--btn)",U=z||"var(--btn-ink)",V={"--intro-h-d":E,"--intro-h-m":O,"--intro-title-d":T,"--intro-title-m":P,"--intro-body-d":N,"--intro-body-m":D,...H?{"--intro-copy-d":cd(i,P4.desktop),"--intro-copy-m":cd(n,P4.mobile),marginTop:wm}:{}},J=S?"px-[var(--sf-site-gutter,40px)] max-[800px]:px-[min(20px,var(--sf-site-gutter,40px))]":"px-[60px] max-[960px]:px-6",j=xs(gX,{children:[xs("div",{className:"absolute inset-0",children:[U3("div",{className:"absolute inset-0 hidden min-[960px]:block",children:U3(k0,{label:c,src:l})}),U3("div",{className:"absolute inset-0 min-[960px]:hidden",children:U3(k0,{label:c,src:r||l})}),U3("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:"repeating-linear-gradient(45deg, transparent 0 80px, rgba(201,164,97,.04) 80px 81px)"}})]}),U3("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${Z})`}})]}),W=xs("div",{style:S,className:"flex flex-col gap-6",children:[e&&U3(N1,{text:e,size:14}),t&&U3("h2",{className:["font-display font-medium leading-[0.95] tracking-[-0.03em]","text-[length:var(--intro-title-m)] min-[960px]:text-[length:var(--intro-title-d)]",M?"uppercase":""].join(" "),children:Y(t,!1)}),a&&x0(a).map((n1,z1)=>U3("p",{className:"max-w-[560px] leading-[1.6] opacity-85 text-[length:var(--intro-body-m)] min-[960px]:text-[length:var(--intro-body-d)]",children:k(n1)},z1)),s.text&&U3("div",{className:"mt-2 self-start",children:U3(s3,{href:s.href,variant:"ghost",style:{background:_,color:U,borderColor:_},children:k(s.text)})})]});return H?xs("section",{style:V,className:[h?"sticky top-0":"relative","flex flex-col","h-[var(--intro-h-m)] min-[960px]:h-[var(--intro-h-d)] min-h-[420px]","overflow-hidden p-0 z-[1]"].join(" "),children:[U3("div",{className:["relative z-[2] flex shrink-0 flex-col justify-center bg-bg py-10","min-h-[var(--intro-copy-m)] min-[960px]:min-h-[var(--intro-copy-d)]",J].join(" "),style:{color:"var(--fg)"},children:W}),U3("div",{className:"relative min-h-0 flex-1 overflow-hidden",children:j})]}):xs("section",{style:V,className:[h?"sticky top-0":"relative","h-[var(--intro-h-m)] min-[960px]:h-[var(--intro-h-d)] min-h-[420px]","overflow-hidden p-0 z-[1]"].join(" "),children:[j,U3("div",{className:["relative z-[2] flex h-full flex-col justify-center",J].join(" "),style:u5,children:W})]})}var L7={eyebrow:"\u2014 Label",title:`Section headline
|
|
60
|
+
*Highlight line*`,body:"A sentence or two of supporting copy."};function fX(e){if(e===!1)return Y6(`var(--sf-page-width, ${V9.default}px)`)}var cF={label:"Scroll-Over Text",defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:ya,bodySizeDesktop:ya,titleSizeMobile:ya,bodySizeMobile:ya,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",sticky:!0,uppercase:!1,fullWidth:!0},render:e=>vX(sF,{eyebrow:y(e.eyebrow,L7.eyebrow,e.puck),title:y(e.title,L7.title,e.puck),body:y(e.body,L7.body,e.puck),imageLabel:a1(e.title)||L7.title,imageSrc:e.imageSrc||void 0,imageSrcMobile:e.imageSrcMobile||void 0,cta:G3(e.ctaText,e.ctaHref,e.puck),sticky:e.sticky,layout:it(e.layout),copyShareDesktop:e.copyShareDesktop,copyShareMobile:e.copyShareMobile,heightDesktop:e.heightDesktop,heightMobile:e.heightMobile,overlay:e.overlay,titleSizeDesktop:e.titleSizeDesktop,bodySizeDesktop:e.bodySizeDesktop,titleSizeMobile:e.titleSizeMobile,bodySizeMobile:e.bodySizeMobile,buttonColor:e.buttonColor||void 0,buttonTextColor:e.buttonTextColor||void 0,uppercase:e.uppercase,capStyle:fX(e.fullWidth)})};var rF={fields:{_dDevice:I9(),_gContent:x("Content"),eyebrow:F("Eyebrow",L7.eyebrow),title:G("Heading",L7.title),body:G("Subtitle",L7.body),uppercase:l1("Uppercase heading",!1,Z8(bX,{})),_gBackground:x("Background images"),imageSrc:J2("desktop",q1("Background image","image/*")),imageSrcMobile:J2("mobile",q1("Background image","image/*")),_gLayout:x("Layout"),layout:v1("Text position",Z8(yX,{}),sd,ad),heightDesktop:d6("desktop"),heightMobile:d6("mobile"),copyShareDesktop:J2("desktop",s1("Text height",Z8(lF,{}),P4.min,P4.max,P4.step,P4.desktop,"%")),copyShareMobile:J2("mobile",s1("Text height",Z8(lF,{}),P4.min,P4.max,P4.step,P4.mobile,"%")),sticky:l1("Scroll-over",!0,Z8(wX,{})),_gWidth:x("Width"),fullWidth:l1("Full width",!0,Z8(xX,{})),overlay:s1("Overlay",Z8(zX,{}),0,100,5,60,"%"),_gTextDesktop:J2("desktop",x("Text style")),titleSizeDesktop:J2("desktop",wa("Heading font size",32,120,1,96,"heading")),bodySizeDesktop:J2("desktop",wa("Subtitle font size",12,28,1,17,"body")),_gTextMobile:J2("mobile",x("Text style")),titleSizeMobile:J2("mobile",wa("Heading font size",24,72,1,44,"heading")),bodySizeMobile:J2("mobile",wa("Subtitle font size",12,22,1,16,"body")),_gButton:x("Button"),...L4,buttonColor:x5("Button color","#C9A461"),buttonTextColor:x5("Button text color","#000000")}};import{jsx as nF}from"react/jsx-runtime";import{ColumnsIcon as SX,StylesIcon as LX}from"efficient-easel/icons";import{jsx as kX}from"react/jsx-runtime";import{jsx as b6,jsxs as ld,Fragment as CX}from"react/jsx-runtime";function oF({look:e,eyebrow:t,title:a,items:s,columns:c,editing:l=!1}={}){let r=Math.min(4,Math.max(2,c??3)),o=(s??[]).filter(n=>l||(n.label??"").trim()),i=!!(t??"").trim()||!!(a??"").trim();return!l&&!i&&o.length===0?null:b6("section",{className:"relative z-[2] border-y border-line bg-surface",children:ld("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[76px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",children:[i&&ld("div",{className:"mb-11 flex flex-wrap items-baseline gap-5 max-[800px]:mb-8",children:[(t??"").trim()&&b6(N1,{text:t??"",look:e}),(a??"").trim()&&b6("h2",{className:"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-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:Y(a??"",!1)})]}),o.length>0&&b6("div",{className:"sf-card grid grid-cols-1 gap-px border border-line bg-line min-[700px]:[grid-template-columns:repeat(var(--kf-cols),minmax(0,1fr))]",style:{"--kf-cols":String(r)},children:o.map((n,h)=>{let m=ld(CX,{children:[b6("span",{"aria-hidden":!0,className:"h-[9px] w-[9px] flex-shrink-0 rotate-45 bg-accent"}),b6("span",{className:"font-display text-[length:var(--size-body,17px)] font-medium uppercase tracking-[0.06em] text-fg transition-colors group-hover/kf:text-accent",children:k((n.label??"").trim()||p("Feature"))})]}),u=(n.href??"").trim();if(u&&!l){let d="group/kf flex items-center gap-4 bg-bg px-7 py-[30px] transition-colors hover:bg-surface";return u.startsWith("/")?b6(s0,{href:u,className:d,children:m},h):b6("a",{href:u,className:d,children:m},h)}return b6("div",{className:"flex items-center gap-4 bg-bg px-7 py-[30px]",children:m},h)})})]})})}var zs={eyebrow:"Highlight",title:"Key *features.*"},MX=()=>[{label:p("Feature label one")},{label:p("Feature label two")},{label:p("Feature label three")},{label:p("Feature label four")},{label:p("Feature label five")},{label:p("Feature label six")}],iF={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3},render:({eyebrow:e,title:t,items:a,columns:s,eyebrowLook:c,puck:l})=>kX(oF,{look:l4(c,"KeyFeatures"),eyebrow:y(e,zs.eyebrow,l),title:y(t,zs.title,l),items:w1(a,MX(),l),columns:s,editing:l?.isEditing})};var hF={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow",zs.eyebrow),eyebrowLook:v1("Eyebrow style",nF(LX,{}),[...w4],c7("KeyFeatures")),title:G("Heading",zs.title),items:{type:"array",label:"Features",arrayFields:{label:f1("Feature label"),href:Q2(q("Link"))},defaultItemProps:{label:"",href:""},getItemSummary:e=>e?.label||"Feature"},_gStyle:x("Style"),columns:s1("Columns",nF(SX,{}),2,4,1,3)}};import{jsx as AX}from"react/jsx-runtime";import{HeightIcon as HX}from"efficient-easel/icons";var mF={fields:{src:q1("Logo image","image/*"),alt:q("Alt text","Brand name","Read out in place of the picture, and shown if it can\u2019t load."),href:F1("Link"),heightPx:s1("Height",AX(HX,{}),zC,yC,1,h7,"px"),reverse:{type:"select",label:"Logo color",options:[{label:"Auto contrast",value:"auto"},{label:"As uploaded",value:"off"}]}},resolveFields:(e,{fields:t})=>{if((e.props.src??"").trim())return t;let a={...t};return delete a.alt,a}};import{jsx as ui}from"react/jsx-runtime";import{BlackAndWhiteIcon as FX,ColumnsIcon as TX,HeightIcon as PX,PaddingYIcon as EX}from"efficient-easel/icons";var pF={fields:{_gContent:x("Content"),heading:G("Heading","Trusted by *teams worldwide*"),items:{type:"array",label:"Logos",arrayFields:{src:q1("Image","image/*"),alt:q("Name / alt")},getItemSummary:e=>e.alt||e.src||"logo"},_gStyle:x("Style"),columns:s1("Columns",ui(TX,{}),3,6,1,5),logoHeight:s1("Logo height",ui(PX,{}),20,72,2,28,"px"),bandPadding:s1("Space above and below",ui(EX,{}),16,120,4,40,"px"),grayscale:l1("Black and white logos",!0,ui(FX,{}))}};import{jsx as VX}from"react/jsx-runtime";import{jsx as l3,jsxs as J4,Fragment as rd}from"react/jsx-runtime";import{Fragment as uF}from"react";function dF({headNum:e,headTitle:t,headDesc:a,category:s,metaMiddle:c,readLabel:l,title:r,dek:o,quote:i,quoteAttribution:n,ctaText:h,ctaHref:m,image:u,imageLabel:d,metaPublished:v,metaReads:g,omitHead:b=!1,...f}){let w=[s?l3("span",{className:"text-accent",children:k(s)}):null,c?l3("span",{children:k(c)}):null,l?l3("span",{children:k(l)}):null].filter(Boolean),z=!!v||!!g;return J4("section",{className:_0(f)?b?"border-b border-line px-[var(--sf-site-gutter,40px)] pt-0 pb-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:pt-0 max-[1100px]:pb-20":"border-b border-line px-[var(--sf-site-gutter,40px)] py-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:py-20":b?"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] pt-0 pb-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:pt-0 max-[1100px]:pb-20":"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] py-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:py-20",children:[b?null:l3(O2,{num:e,title:t?Y(t,!0):void 0,desc:a?k(a):void 0}),J4("article",{className:"sf-card grid min-h-[640px] grid-cols-[1fr_1.2fr] border border-line max-[1100px]:grid-cols-1",children:[J4("div",{className:"flex flex-col justify-center gap-7 border-r border-line bg-surface px-14 py-16 max-[1100px]:border-r-0 max-[1100px]:border-b max-[1100px]:px-7 max-[1100px]:py-12",children:[w.length>0&&l3("div",{className:"flex items-center gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-fg-dim",children:w.map((M,S)=>J4(uF,{children:[S>0&&l3("span",{className:"opacity-40",children:"\xB7"}),M]},S))}),r&&l3("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,4.2vw,68px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.035em]",children:Y(r,!0)}),o&&l3("p",{className:"font-serif text-[length:var(--size-body,22px)] italic leading-[1.45] text-fg",children:k(o)}),(i||n)&&J4("blockquote",{className:"max-w-[520px] border-l-2 border-accent py-1.5 pl-[22px] font-serif text-[length:var(--size-body,17px)] italic leading-[1.6] text-fg-dim",children:[i&&J4(rd,{children:["\u201C",k(i),"\u201D"]}),n&&l3("strong",{className:"mt-2.5 block font-display text-[length:var(--size-body,14px)] font-normal not-italic uppercase tracking-[0.22em] text-fg",children:k(n)})]}),h&&J4(s0,{href:m||"#",className:"inline-flex items-center gap-3.5 self-start border border-btn px-7 py-4 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.3em] text-btn transition-colors hover:bg-btn hover:text-btn-ink",children:[k(h)," ",l3("span",{children:"\u2192"})]})]}),J4("div",{className:"relative overflow-hidden bg-surface-2 max-[1100px]:aspect-[4/3]",children:[l3(k0,{label:"long-read",src:u||void 0,alt:p2(r||"Long read"),sizes:"(max-width: 1100px) 100vw, 56vw"}),l3("div",{className:"pointer-events-none absolute inset-0 z-[1]",style:{background:"linear-gradient(180deg, rgba(10,10,10,0.55) 0%, transparent 25%, transparent 60%, rgba(10,10,10,0.7) 100%)"}}),d&&l3(N1,{text:d,size:12,className:"absolute right-6 top-6 z-[2]"}),z&&l3("div",{className:"absolute bottom-6 left-6 z-[2] font-mono text-[length:var(--size-label,12px)] uppercase leading-[1.8] tracking-[0.22em] text-overlay-fg",children:[v?J4(rd,{children:[l3("strong",{className:"font-normal text-accent",children:"Published"})," ",k(v)]}):null,g?J4(rd,{children:[l3("strong",{className:"font-normal text-accent",children:"Reads in"})," ",k(g)]}):null].filter(Boolean).map((M,S)=>J4(uF,{children:[S>0&&l3("br",{}),M]},S))})]})]})]})}var I0={headNum:A.sectionNumber,headTitle:A.headingAccent,headDesc:A.body,category:A.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 "+A.date,ctaText:"Begin reading",ctaHref:u2.href,imageLabel:"Featured *image*",metaPublished:A.date,metaReads:"0 min"},gF={label:"Long read",defaultProps:{source:null,headNum:"",headTitle:"",headDesc:"",category:"",metaMiddle:"",readLabel:"",title:"",dek:"",quote:"",quoteAttribution:"",ctaText:"",ctaHref:"",image:"",imageLabel:"",metaPublished:"",metaReads:""},render:({source:e,headNum:t,headTitle:a,headDesc:s,category:c,metaMiddle:l,readLabel:r,title:o,dek:i,quote:n,quoteAttribution:h,ctaText:m,ctaHref:u,image:d,imageLabel:v,metaPublished:g,metaReads:b,headPlacement:f,puck:w})=>{let z=O1(f)==="own-box",M=I=>z?void 0:I,S=e,H=!!S?.slug;return VX(dF,{headNum:M(y(t,I0.headNum,w)),headTitle:M(y(a,I0.headTitle,w)),headDesc:M(y(s,I0.headDesc,w)),omitHead:z,category:y(c,I0.category,w),metaMiddle:y(l,I0.metaMiddle,w),readLabel:y(r,I0.readLabel,w),title:H?S.title:y(o,I0.title,w),dek:H?S.dek:y(i,I0.dek,w),quote:y(n,I0.quote,w),quoteAttribution:y(h,I0.quoteAttribution,w),ctaText:y(m,I0.ctaText,w),ctaHref:H?S.href:a1(u),image:H?S.image:d,imageLabel:y(v,I0.imageLabel,w),metaPublished:H?S.date:y(g,I0.metaPublished,w),metaReads:y(b,I0.metaReads,w)})}};var vF={fields:{source:s2(at),_gHead:x("Section header"),headNum:F("Number",I0.headNum),headTitle:G("Heading",I0.headTitle),headDesc:G("Body",I0.headDesc),_gMeta:x("Article"),category:F("Category",I0.category),metaMiddle:F("Middle meta",I0.metaMiddle),readLabel:F("Read time",I0.readLabel),title:G("Article title",I0.title),dek:G("Dek",I0.dek),_gQuote:x("Pull quote"),quote:G("Quote",I0.quote),quoteAttribution:F("Attribution",I0.quoteAttribution),_gLink:x("Link"),ctaText:F("Button",I0.ctaText),ctaHref:F1("Link"),image:q1("Image","image/*"),imageLabel:F("Image label",I0.imageLabel),_gOverlay:x("Image caption"),metaPublished:F("Published",I0.metaPublished),metaReads:F("Reads in",I0.metaReads)},resolveFields:(e,{fields:t,parent:a})=>{let s=!!e.props.source?.slug,c=new Set(s?["image","title","dek","ctaHref","metaPublished"]:[]),l={};for(let[r,o]of Object.entries(t))c.has(r)||(l[r]=o,s&&r==="source"&&(l._nBound=v5(Nl)));return G1(U1(l,a,j1),e.props.headPlacement,Z1.LongRead.headRows)}};var fF={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow",A.eyebrow),heading:G("Heading",`Main heading
|
|
61
61
|
*Highlight line*`),body:G("Body",A.body),stats:{type:"array",label:"Stats",arrayFields:{value:q("Number"),label:q("Label")},getItemSummary:e=>e.label||e.value||"Stat"},_gMedia:x("Media"),imageSrc:q1("Image","image/*"),_gStyle:x("Style"),grayscale:qe()}};import{jsx as BX}from"react/jsx-runtime";import{TextLinesIcon as ZX}from"efficient-easel/icons";import{jsx as _X}from"react/jsx-runtime";import{jsx as A7,Fragment as NX,jsxs as D8}from"react/jsx-runtime";function bF({eyebrow:e,issueMeta:t,lead:a,issueHeading:s,issueList:c,issueTotal:l,...r}){let o=(t??[]).filter(d=>(d?.lead??"").trim()||(d?.rest??"").trim()),i=(c??[]).map(d=>d?.text??"").filter(d=>d.trim()),n=x0(a??""),h=!!e||o.length>0,m=!!s||i.length>0||!!l,u=n.length>0||m;return D8("section",{className:_0(r)?"border-b border-line px-[var(--sf-site-gutter,40px)] pt-20 pb-10 max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:pt-[60px] max-[1100px]:pb-8":"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] pt-20 pb-10 max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:pt-[60px] max-[1100px]:pb-8",children:[h&&D8("div",{className:"flex items-end justify-between gap-[60px] pb-8 max-[1100px]:flex-col max-[1100px]:items-start max-[1100px]:gap-4",children:[e&&A7(N1,{text:e,size:14,className:"pb-3.5"}),o.length>0&&A7("div",{className:"pb-3.5 text-right font-mono text-[length:var(--size-label,13px)] uppercase leading-[1.8] tracking-[0.18em] text-fg-dim max-[1100px]:text-left",children:o.map((d,v)=>D8("div",{children:[A7("strong",{className:"font-normal text-fg",children:k(d.lead??"")}),d.rest?.trim()?D8(NX,{children:[" ",k(d.rest)]}):null]},v))})]}),u&&D8("div",{className:"grid grid-cols-[1fr_auto] items-start gap-[60px] border-t border-line pt-8 max-[1100px]:grid-cols-1 max-[1100px]:gap-4",children:[n.length>0&&A7("div",{className:"max-w-[720px]",children:n.map((d,v)=>A7("p",{className:"font-heading3 text-[length:var(--size-headingSmall,20px)] leading-[1.5] tracking-[-0.005em] text-fg [&:not(:first-child)]:mt-4",children:k(d,!0)},v))}),m&&D8("div",{className:"min-w-[240px] text-right font-mono text-[length:var(--size-label,13px)] uppercase leading-[1.9] tracking-[0.22em] text-fg-dim max-[1100px]:text-left",children:[s&&A7("strong",{className:"mb-1.5 block font-display text-[length:var(--size-body,18px)] font-normal tracking-[-0.01em] normal-case text-fg",children:Y(s,!1)}),i.map((d,v)=>D8("span",{children:[k(d),A7("br",{})]},v)),l&&A7("span",{className:"text-accent",children:k(l)})]})]})]})}var x6={eyebrow:A.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"},IX=()=>[{lead:p("Volume"),rest:p("No. 1")},{lead:p("Season"),rest:p("Year")},{lead:p("Frequency"),rest:""}],RX=()=>[{text:p("Article headline")},{text:p("Feature story")},{text:p("Interview")},{text:p("Field notes")}],xF={label:"Issue Header",defaultProps:{eyebrow:"",issueMeta:[],lead:"",issueHeading:"",issueList:[],issueTotal:""},render:({eyebrow:e,issueMeta:t,lead:a,issueHeading:s,issueList:c,issueTotal:l,puck:r})=>_X(bF,{eyebrow:y(e,x6.eyebrow,r),issueMeta:w1(t,IX(),r),lead:y(a,x6.lead,r),issueHeading:y(s,x6.issueHeading,r),issueList:w1(c,RX(),r),issueTotal:y(l,x6.issueTotal,r),editing:r?.isEditing})};var zF={fields:{_gTop:x("Top row"),eyebrow:F("Eyebrow",x6.eyebrow),issueMeta:{type:"array",label:"Issue meta lines",arrayFields:{lead:f1("Bold word"),rest:f1("Rest")},getItemSummary:e=>[e?.lead,e?.rest].filter(Boolean).join(" ")||"Line"},_gLead:x("Lead"),lead:G("Lead",x6.lead),_gIssue:x("In this issue"),issueHeading:G("Panel heading",x6.issueHeading),issueList:P2("Issue lines",BX(ZX,{}),"Line","markup"),issueTotal:F("Total line",x6.issueTotal)}};import{jsx as H7}from"react/jsx-runtime";import{BlockColumnIcon as di,PlacementIcon as qX,StateIcon as WX,TemplateIcon as UX,TextLinesIcon as jX}from"efficient-easel/icons";var od=[{label:"Product record (spec tiles)",value:"spec-card"},{label:"Selector guide (pills + results)",value:"fitment"},{label:"Portal card (stock + button + orders)",value:"portal"},{label:"Kanban board (job columns)",value:"kanban"},{label:"Claims panel (rows + defect bars)",value:"claims"},{label:"Browser storefront (hero + tiles)",value:"browser"},{label:"Terminal (CLI session)",value:"terminal"}],DX=od.map(e=>e.value),id="spec-card",OX={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 GX(e){return DX.includes(e)?e:id}function yF(e,t){let a=GX(t),s={...e};for(let[c,l]of Object.entries(OX))l.includes(a)||delete s[c];return s}var wF={fields:{_gContent:x("Content"),eyebrow:F("Chip label","In the product"),title:G("Heading",`Seen from
|
|
62
62
|
*the counter.*`),body:G("Body",""),_gCard:x("Mockup card"),variant:v1("Card type",H7(UX,{}),od,id),cardHeader:F("Card header strip","Product record"),badge:F("Header badge","LIVE"),cardTitle:F("Card title",""),cardSubtitle:F("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:v1("State",H7(WX,{}),[{label:"Match / done (green)",value:"ok"},{label:"In progress (accent)",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:F("Accent button",""),footnote:F("Accent footnote",""),_gKanban:x("Kanban columns"),col1Title:F("Column 1 title",""),col1Cards:P2("Column 1 cards",H7(di,{}),"Job card label","verbatim"),col2Title:F("Column 2 title",""),col2Cards:P2("Column 2 cards",H7(di,{}),"Job card label","verbatim"),col3Title:F("Column 3 title",""),col3Cards:P2("Column 3 cards",H7(di,{}),"Job card label","verbatim"),col4Title:F("Column 4 title",""),col4Cards:P2("Column 4 cards",H7(di,{}),"Job card label","verbatim"),_gClaims:x("Claims bars"),barsHeading:F("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:x("Terminal"),termLines:P2("Terminal lines",H7(jX,{}),"$ efficient \u2026","verbatim"),_gBrowser:x("Browser mock"),urlText:F("URL pill",""),heroTitle:F("Hero line",""),heroButton:F("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:x("Style"),align:v1("Mockup position",H7(qX,{}),[{label:"Right of the copy",value:"right"},{label:"Left of the copy",value:"left"}],"right")},resolveFields:(e,{fields:t})=>yF(t,e.props.variant)};import{jsx as QX}from"react/jsx-runtime";import{ListIcon as eJ}from"efficient-easel/icons";var gi="dataSource";var KX="dataRows";var $X=Symbol.for("efficient.block-sources");function nd(){let e=globalThis;return e[$X]??={sources:new Map,revision:0}}function hd(e){let t=[...nd().sources.values()];return e===void 0?t:t.filter(a=>a.blocks.includes(e))}function YX(e){return nd().sources.get(e)??null}function vi(){return nd().revision}function O8(e){let t=e?.[gi];return typeof t=="string"?t.trim():""}function XX(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let[a,s]of Object.entries(e))typeof s=="string"&&s&&(t[a]=s);return Object.keys(t).length?t:null}function JX(e){let t=e?.[KX];return Array.isArray(t)?t.map(XX).filter(a=>a!==null):null}function fi(e,t,a=[]){let s=JX(e);if(s!==null&&(s.length||!t))return{rows:s,sample:!1};if(!t)return{rows:[],sample:!1};let c=YX(O8(e))?.sample;return{rows:c?.length?c:a,sample:!0}}function bi(e,t){return v1(e,QX(eJ,{}),[{label:t,value:""}],"")}var CF=new WeakMap,kF=-1,md={},MF=new WeakMap;function tJ(e,t,a){kF!==vi()&&(kF=vi(),md={});let s=CF.get(t);(!s||MF.get(s)!==md)&&(s=new Map,MF.set(s,md),CF.set(t,s));let c=hd(e),l=a&&!c.some(i=>i.key===a)?a:"",r=`${e}\0${l}`,o=s.get(r);return o||(o={...t,options:[...t.options,...c.map(i=>({label:i.label,value:i.key})),...l?[{label:l,value:l}]:[]]},s.set(r,o)),o}var SF=new WeakMap;function xi(e,t,a,s={}){let c=t[gi];if(!c)return t;let l=O8(a),r=hd(e).length>0||l!=="",o=r?tJ(e,c,l):null,i=SF.get(t);i||SF.set(t,i=new Map);let n=`${vi()}\0${r?"1":"0"}\0${l}`,h=i.get(n);if(h)return h;let m=new Set(l?s.hides??[]:[]),u={};for(let[d,v]of Object.entries(t))d===gi?o&&(u[d]=o):m.has(d)||(u[d]=v);return i.set(n,u),u}import{Fragment as aJ,jsx as ud}from"react/jsx-runtime";import{jsx as m4,jsxs as ys}from"react/jsx-runtime";function pd({eyebrow:e,title:t,rows:a,subRows:s,totalLabel:c,totalAmount:l,note:r,contained:o}){return m4(t2,{contained:o,className:"py-6",children:ys("div",{className:"sf-card mx-auto max-w-[560px] border border-line bg-surface px-8 py-9 max-[800px]:px-5 max-[800px]:py-6",children:[e&&m4(N1,{text:e,scaled:!1}),t&&m4("h2",{className:"mt-2 font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium leading-[1.1] tracking-[-0.02em] max-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:Y(t,!1)}),a.length>0&&m4("ul",{className:"mt-6 flex flex-col",children:a.map((i,n)=>ys("li",{className:"flex items-baseline justify-between gap-4 border-t border-line py-3 first:border-t-0",children:[ys("span",{className:"min-w-0",children:[i.label&&m4("span",{className:"block text-[15px]",children:k(i.label)}),i.meta&&m4("span",{className:"block font-mono text-[12px] uppercase tracking-[0.12em] opacity-60",children:k(i.meta)})]}),i.amount&&m4("span",{className:"text-[15px] tabular-nums",children:k(i.amount)})]},n))}),s.length>0&&m4("ul",{className:"mt-1 flex flex-col border-t border-line pt-3",children:s.map((i,n)=>ys("li",{className:"flex items-baseline justify-between gap-4 py-1",children:[m4("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] opacity-70",children:i.label&&k(i.label)}),i.amount&&m4("span",{className:"text-[14px] tabular-nums opacity-85",children:k(i.amount)})]},n))}),(c||l)&&ys("div",{className:"mt-4 flex items-baseline justify-between gap-4 border-t border-line pt-4",children:[c&&m4("span",{className:"font-mono text-[13px] uppercase tracking-[0.3em]",children:k(c)}),l&&m4("span",{className:"font-display text-[26px] font-medium text-accent tabular-nums",children:k(l)})]}),r&&m4("p",{className:"mt-4 text-[13px] leading-[1.6] opacity-60",children:k(r)})]})})}var nt={title:"Order summary",note:"A short reassurance note under the total."},sJ=()=>[{label:p("Product name"),meta:p("Finish \xB7 Size \xB7 \xD71"),amount:"$0,000"},{label:p("Second item"),meta:p("Detail line"),amount:"$000"}],cJ=()=>[{label:p("Subtotal"),amount:"$0,000"},{label:p("Delivery"),amount:"$00"}],lJ=()=>[{label:p("First item"),meta:p("A detail line"),amount:"$000"},{label:p("Second item"),meta:p("A detail line"),amount:"$000"},{label:p("Third item"),meta:p("A detail line"),amount:"$000"}],rJ=e=>({label:e.label,meta:e.meta,amount:e.amount}),LF={label:"Order Table",defaultProps:{eyebrow:"",title:"",rows:[],subRows:[],totalLabel:"",totalAmount:"",note:"",contained:!0},render:e=>{let{eyebrow:t,title:a,rows:s,subRows:c,totalLabel:l,totalAmount:r,note:o,contained:i,puck:n}=e;if(O8(e)!==""){let h=fi(e,!!n?.isEditing,lJ());return h.rows.length?ud(pd,{eyebrow:y(t,A.eyebrow,n),title:y(a,nt.title,n),rows:h.rows.map(rJ),subRows:Array.isArray(c)?c:[],totalLabel:y(l,"",n),totalAmount:y(r,"",n),note:y(o,"",n),contained:i}):ud(aJ,{})}return ud(pd,{eyebrow:y(t,A.eyebrow,n),title:y(a,nt.title,n),rows:w1(s,sJ(),n),subRows:w1(c,cJ(),n),totalLabel:y(l,"Total",n),totalAmount:y(r,"$0,000",n),note:y(o,nt.note,n),contained:i})}};var AF={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow",A.eyebrow),title:G("Heading",nt.title),_gItems:x("Items"),dataSource:bi("Items from","Typed here"),rows:{type:"array",label:"Items",arrayFields:{label:f1("Item"),meta:f1("Meta line"),amount:f1("Amount")},getItemSummary:e=>e.label||"Item"},subRows:{type:"array",label:"Sub-total lines",arrayFields:{label:f1("Label"),amount:f1("Amount")},getItemSummary:e=>e.label||"Line"},_gTotal:x("Total"),totalLabel:F("Total label","Total"),totalAmount:F("Total amount","$0,000"),note:G("Note",nt.note),_gLayout:x("Layout")},resolveFields:(e,{fields:t})=>xi("OrderSummary",t,e.props,{hides:["rows"]})};import{jsx as oJ}from"react/jsx-runtime";import{jsx as z6,jsxs as ws}from"react/jsx-runtime";function HF({eyebrow:e,stats:t,lead:a,foundersHeading:s,foundersBody:c,attribution:l,padTop:r,padBottom:o}={}){let i=typeof r=="number"?r:60,n=typeof o=="number"?o:80,h=(t??[]).filter(d=>(d.value??"").trim()!==""||(d.label??"").trim()!==""),m=!!e||h.length>0,u=!!(s||c||l);return z6("section",{className:"relative z-[2] bg-bg",children:ws("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] overflow-hidden border-b border-line px-[var(--sf-site-gutter,40px)] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))]",style:{paddingTop:i,paddingBottom:n},children:[m&&ws("div",{className:"mb-[40px] grid grid-cols-3 gap-[60px] border-b border-line pb-[40px] max-[1100px]:grid-cols-1 max-[1100px]:gap-6",children:[z6("div",{className:"col-span-2 max-[1100px]:col-span-1",children:e&&z6("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-fg-dim",children:k(e)})}),h.length>0&&z6("div",{className:"text-right font-mono text-[length:var(--size-label,13px)] uppercase leading-[1.8] tracking-[0.18em] text-fg-dim max-[1100px]:text-left",children:h.map((d,v)=>ws("div",{children:[d.value?z6("strong",{className:"font-normal text-fg",children:k(d.value)}):null," ",d.label?k(d.label):null]},v))})]}),(a||u)&&ws("div",{className:"grid grid-cols-3 gap-[60px] max-[1100px]:grid-cols-1 max-[1100px]:gap-7",children:[a&&z6("div",{className:"col-span-2 max-[1100px]:col-span-1",children:x0(a).map((d,v)=>z6("p",{className:"max-w-[780px] font-heading3 text-[length:var(--size-headingSmall,22px)] leading-[1.45] tracking-[-0.005em] text-fg max-[720px]:text-[length:var(--size-headingSmall,20px)]",children:k(d)},v))}),u&&ws("div",{className:"self-end font-display text-[length:var(--size-body,14px)] leading-[1.7] text-fg-dim max-[720px]:text-[length:var(--size-body,12px)]",children:[s&&z6("strong",{className:"mb-1.5 block text-[length:var(--size-body,18px)] font-medium tracking-[-0.01em] text-fg max-[720px]:text-[length:var(--size-body,16px)]",children:Y(s,!1)}),c?k(c):null,l&&z6("span",{className:"mt-2 block font-mono text-[length:var(--size-label,12px)] uppercase not-italic tracking-[0.24em] text-accent max-[720px]:text-[length:var(--size-label,10px)]",children:k(l)})]})]})]})})}var y6={eyebrow:A.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},FF={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80},render:({eyebrow:e,lead:t,stats:a,foundersHeading:s,foundersBody:c,attribution:l,padTop:r,padBottom:o,puck:i})=>oJ(HF,{eyebrow:y(e,y6.eyebrow,i),lead:y(t,A.body,i),stats:a,foundersHeading:y(s,y6.foundersHeading,i),foundersBody:y(c,y6.foundersBody,i),attribution:y(l,y6.attribution,i),padTop:r,padBottom:o})};var TF={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow",y6.eyebrow),lead:G("Lead",A.body),stats:{type:"array",label:"Stats",arrayFields:{value:f1("Number"),label:f1("Unit")},getItemSummary:e=>e.label||e.value||"Stat"},_gFounders:x("Founders"),foundersHeading:G("Founders heading",y6.foundersHeading),foundersBody:G("Founders statement",y6.foundersBody),attribution:F("Attribution",y6.attribution),_gStyle:x("Style"),...u3("ParagraphsA")}};import{jsx as iJ}from"react/jsx-runtime";import{jsx as F7,jsxs as PF}from"react/jsx-runtime";function EF({heading:e,badges:t,assurances:a,contained:s}){return F7(t2,{contained:s,className:"py-6",children:PF("div",{className:"flex flex-col items-center gap-5 border-y border-line py-8 text-center",children:[e&&F7("span",{className:"font-mono text-[13px] uppercase tracking-[0.3em] opacity-70",children:k(e)}),t.length>0&&F7("ul",{className:"flex flex-wrap items-center justify-center gap-3",children:t.map((c,l)=>F7("li",{className:"sf-card flex h-10 items-center border border-line bg-surface px-4",children:c.src?F7("img",{src:F2(c.src),alt:p2(c.label||""),className:"max-h-5 w-auto opacity-90"}):c.label&&F7("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em]",children:k(c.label)})},l))}),a.length>0&&F7("ul",{className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-1",children:a.map((c,l)=>c.text&&PF("li",{className:"flex items-center gap-2 text-[13px] opacity-60",children:[F7("span",{className:"h-1 w-1 rounded-full bg-accent","aria-hidden":!0}),k(c.text)]},l))})]})})}var dd={heading:"Ways to pay"},nJ=[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],hJ=()=>[{text:p("Secure encrypted checkout")},{text:p("30-day returns")}],VF={label:"Payment Methods",defaultProps:{heading:"",badges:[],assurances:[],contained:!0},render:({heading:e,badges:t,assurances:a,contained:s,puck:c})=>iJ(EF,{heading:y(e,dd.heading,c),badges:w1(t,nJ,c),assurances:w1(a,hJ(),c),contained:s})};var NF={fields:{_gContent:x("Content"),heading:F("Heading",dd.heading),badges:{type:"array",label:"Payment methods",arrayFields:{label:f1("Name"),src:q1("Logo","image/*")},getItemSummary:e=>e.label||e.src||"Method"},assurances:{type:"array",label:"Reassurance lines",arrayFields:{text:f1("Line")},getItemSummary:e=>e.text||"Line"},_gLayout:x("Layout")}};import{jsx as Cs}from"react/jsx-runtime";import{jsx as g3,jsxs as G8}from"react/jsx-runtime";var _F=[{label:"Card",value:"card"},{label:"Photo behind the words",value:"cover"}],zi="card",w6={min:200,max:700,step:10,fallback:330,unit:"px"};function ht({post:e,scaffold:t=!1,layout:a,showCover:s=!0,placement:c,darken:l,darkenStyle:r,href:o,minHeight:i}){let n=o||(t?"#":`/journal/${e.slug}`),h=a==="cover",m=(e.meta||e.dateLabel||e.read)&&G8("div",{className:"flex gap-3.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim",children:[e.meta&&g3("span",{className:"text-accent",children:k(e.meta)}),e.dateLabel&&g3("span",{children:k(e.dateLabel)}),e.read&&g3("span",{children:k(e.read)})]});if(h){let u=So(l,r);return G8(s0,{href:n,className:`${Mo} group relative isolate flex overflow-hidden`,style:{minHeight:`${i??w6.fallback}px`},"aria-disabled":t||void 0,tabIndex:t?-1:void 0,children:[g3("div",{className:"absolute inset-0",children:g3(k0,{label:`post-${e.slug}`,src:e.cover||void 0,sizes:"(max-width: 800px) 100vw, 56vw"})}),u&&g3("div",{className:"absolute inset-0 z-0",style:u,"aria-hidden":!0}),G8("div",{className:`relative z-[1] flex w-full flex-col gap-2 p-8 text-overlay-fg max-[800px]:p-5 ${Lo(c??"bottom-left","column")}`,children:[e.meta&&g3("div",{className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-accent",children:k(e.meta)}),g3("h3",{className:"font-heading3 text-[length:var(--size-headingSmall,30px)] font-medium leading-[1.2] tracking-[-0.02em]",children:Y(e.title,!1)}),e.excerpt&&g3("p",{className:"max-w-[46ch] text-[length:var(--size-body,14px)] leading-[1.55] opacity-80",children:k(e.excerpt)}),(e.dateLabel||e.read)&&G8("div",{className:"flex gap-3.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] opacity-75",children:[e.dateLabel&&g3("span",{children:k(e.dateLabel)}),e.read&&g3("span",{children:k(e.read)})]})]})]})}return G8(s0,{href:n,style:{"--card-bg":"var(--site-surface)","--card-bg-hover":"var(--site-surface-2)"},className:"sf-card sf-card-fill group block bg-[var(--card-bg)] transition-colors duration-300 hover:bg-[var(--card-bg-hover)]","aria-disabled":t||void 0,tabIndex:t?-1:void 0,children:[s&&g3("div",{className:"sf-card-image relative aspect-[16/10] overflow-hidden bg-bg",children:g3(k0,{label:`event-${e.slug}`,src:e.cover||void 0})}),G8("div",{className:"flex flex-col gap-2.5 px-7 pb-8 pt-6",children:[m,g3("h3",{className:"mt-1 font-heading3 text-[length:var(--size-headingSmall,22px)] font-medium leading-[1.2] tracking-[-0.02em]",children:Y(e.title,!1)}),e.excerpt&&g3("p",{className:"text-[length:var(--size-body,14px)] leading-[1.55] text-fg-dim",children:k(e.excerpt)}),G8("span",{className:"mt-1.5 inline-flex items-center gap-2 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] transition-colors group-hover:text-accent",children:["Read more",g3("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}import{HeightIcon as pJ,ImageIcon as uJ,LayoutIcon as dJ,OpacityIcon as gJ,StylesIcon as vJ}from"efficient-easel/icons";import{jsx as mJ}from"react/jsx-runtime";var Q4={title:"Add a *headline* for this post.",excerpt:"A short summary of the post \u2014 one or two sentences.",category:A.category,date:A.date,readLabel:"0 min read"},IF={label:"Post Card",defaultProps:{source:null,image:"",title:"",excerpt:"",href:"",category:"",date:"",readLabel:"",layout:zi,showCover:!0,placement:"bottom-left",darken:55,darkenStyle:z7[0].value,minHeight:w6.fallback},render:e=>{let t=e.source,a=!!t?.slug;return mJ(ht,{post:{slug:a?t.slug:"post-card",title:(a?t.title:y(e.title,Q4.title,e.puck))||"",excerpt:(a?t.dek:y(e.excerpt,Q4.excerpt,e.puck))||"",cover:(a?t.image:e.image)||"",meta:y(e.category,Q4.category,e.puck)||void 0,dateLabel:(a?t.date:y(e.date,Q4.date,e.puck))||void 0,read:y(e.readLabel,Q4.readLabel,e.puck)||void 0},href:(a?t.href:a1(e.href))||void 0,layout:e.layout,showCover:e.showCover,placement:e.placement,darken:e.darken,darkenStyle:e.darkenStyle,minHeight:e.minHeight,scaffold:!!e.puck?.isEditing&&!a})}};var RF={fields:{source:s2(at),image:q1("Cover image","image/*"),title:G("Heading",Q4.title),excerpt:G("Excerpt",Q4.excerpt),href:F1("Link"),category:F("Category",Q4.category),date:F("Date",Q4.date),readLabel:F("Read time",Q4.readLabel),layout:v1("Card layout",Cs(dJ,{}),_F,zi),showCover:l1("Show cover image",!0,Cs(uJ,{})),placement:r6("Text position",{stacking:!1}),minHeight:s1("Card height",Cs(pJ,{}),w6.min,w6.max,w6.step,w6.fallback,w6.unit),_gTint:x("Image tint"),darken:s1("Darken",Cs(gJ,{}),V2.min,V2.max,V2.step,V2.fallback,V2.unit),darkenStyle:v1("Darken style",Cs(vJ,{}),z7,z7[0].value)},resolveFields:(e,{fields:t})=>{let a=e.props,s={...t};if(a.layout!=="cover")for(let c of["placement","darken","darkenStyle","minHeight","_gTint"])delete s[c];else delete s.showCover;if(a.source?.slug)for(let c of["image","title","excerpt","href"])delete s[c];return s}};import{jsx as GF}from"react/jsx-runtime";import{ColumnsIcon as zJ,PlacementIcon as yJ}from"efficient-easel/icons";import{jsx as bJ}from"react/jsx-runtime";import{jsx as f2,Fragment as fJ,jsxs as C6}from"react/jsx-runtime";var BF={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-[1100px]:grid-cols-1",4:"grid-cols-4 max-[1100px]:grid-cols-2 max-[700px]:grid-cols-1"},gd="sf-itc-boxes",ZF="sf-itc-steps";function DF({num:e,title:t,description:a,boxes:s,steps:c,columns:l=3,cta:r,padTop:o,padBottom:i,editing:n=!1,omitHead:h=!1,cardImage:m,cardText:u,...d}){let v=typeof o=="number"?o:120,g=typeof i=="number"?i:120,b=(c??[]).filter(M=>(M?.tag??"").trim()||(M?.meta??"").trim()||(M?.title??"").trim()||(M?.copy??"").trim()||(M?.image??"").trim()||(M?.specs??[]).some(S=>(S?.label??"").trim()||(S?.value??"").trim())),f=b.length>0?b:n&&!s?[1,2,3].map(M=>({tag:p("Column {n}",{n:M})})):[],w=BF[l]??BF[3],z=u==="on-image";return C6("section",{className:_0(d)?"relative z-[2] border-b border-line bg-bg px-[var(--sf-site-gutter,40px)] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))]":"relative z-[2] mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line bg-bg px-[var(--sf-site-gutter,40px)] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))]",style:{paddingTop:v,paddingBottom:g,...X2(m)},children:[h?null:f2(O2,{num:e,title:t?.trim()?k(t,!0):void 0,desc:a?.trim()?k(a,!1):void 0}),s?C6(fJ,{children:[f2("style",{children:`.${gd}:empty{display:none}.${gd}:not(:empty)~.${ZF}{display:none}`}),f2(s,{className:`${gd} sf-card grid ${w} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,f.length>0&&f2("div",{className:`${ZF} sf-card grid ${w} gap-[2px] border border-line bg-line`,children:f.map((M,S)=>{let H=(M.specs??[]).filter(I=>(I?.label??"").trim()||(I?.value??"").trim());return C6("article",{className:z?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[C6("div",{className:z?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[f2(k0,{label:M.tag?.trim()||M.title?.trim()||`column-${S+1}`,src:M.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...s?{deferFetch:!0}:{}}),f2("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:"linear-gradient(180deg, rgba(10,10,10,0.55) 0%, transparent 30%, transparent 70%, rgba(10,10,10,0.65) 100%)"}}),z&&f2("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:"linear-gradient(180deg, transparent 0%, rgba(10,10,10,0.73) 55%, rgba(10,10,10,0.92) 100%)"}}),M.tag?.trim()&&f2("span",{className:"absolute left-5 top-[18px] z-[2] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:X1(M.tag)}),M.meta?.trim()&&f2("span",{className:z?"absolute right-5 top-[18px] z-[2] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-overlay-fg/80":"absolute right-5 bottom-[18px] z-[2] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-overlay-fg/80",children:X1(M.meta)}),z&&(M.title?.trim()||M.copy?.trim())&&C6("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[M.title?.trim()&&f2("h3",{className:"flex min-h-[2em] flex-col justify-end font-heading3 text-[length:var(--size-headingSmall,28px)] font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg max-[700px]:text-[length:var(--size-headingSmall,26px)]",children:k(M.title,!0)}),M.copy?.trim()&&f2("p",{className:"min-h-[3em] font-display text-[length:var(--size-body,15px)] leading-[1.5] text-overlay-fg/85",children:k(M.copy,!1)})]})]}),z?H.length>0&&f2("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:H.map((I,E)=>C6("div",{className:"flex flex-col gap-1",children:[I.label?.trim()&&f2("span",{className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-fg-dim",children:X1(I.label)}),I.value?.trim()&&f2("span",{className:"font-display text-[length:var(--size-body,18px)] font-medium tracking-[-0.01em] text-fg",children:X1(I.value)})]},E))}):C6("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[M.title?.trim()&&f2("h3",{className:"font-heading3 text-[length:var(--size-headingSmall,34px)] font-medium uppercase leading-none tracking-[-0.02em] max-[700px]:text-[length:var(--size-headingSmall,28px)]",children:k(M.title,!0)}),M.copy?.trim()&&f2("p",{className:"font-display text-[length:var(--size-body,15px)] leading-[1.55] text-fg-dim",children:k(M.copy,!1)}),H.length>0&&f2("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:H.map((I,E)=>C6("div",{className:"flex flex-col gap-1",children:[I.label?.trim()&&f2("span",{className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-fg-dim",children:X1(I.label)}),I.value?.trim()&&f2("span",{className:"font-display text-[length:var(--size-body,18px)] font-medium tracking-[-0.01em] text-fg",children:X1(I.value)})]},E))})]})]},S)})}),r?.text&&f2("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:C6(s0,{href:r.href,className:"group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:[X1(r.text),f2("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})}var ks={num:A.sectionNumber,title:A.headingAccent,description:A.body,cta:A.viewAll},xJ=()=>[{image:"",tag:p("{letter} \xB7 Step",{letter:"A"}),meta:p("Short detail line"),title:p("Step *one*"),copy:p("Describe this step in a sentence or two."),specs:[{label:A.label,value:A.value},{label:A.label,value:A.value},{label:A.label,value:A.value},{label:A.label,value:A.value}]},{image:"",tag:p("{letter} \xB7 Step",{letter:"B"}),meta:p("Short detail line"),title:p("Step *two*"),copy:p("Describe this step in a sentence or two."),specs:[{label:A.label,value:A.value},{label:A.label,value:A.value},{label:A.label,value:A.value},{label:A.label,value:A.value}]},{image:"",tag:p("{letter} \xB7 Step",{letter:"C"}),meta:p("Short detail line"),title:p("Step *three*"),copy:p("Describe this step in a sentence or two."),specs:[{label:A.label,value:A.value},{label:A.label,value:A.value},{label:A.label,value:A.value},{label:A.label,value:A.value}]}],vd={boxes:{type:"slot"}},OF={label:"Image & Text Columns",fields:vd,defaultProps:{num:"",title:"",description:"",columns:3,padTop:120,padBottom:120},render:e=>{let t=O1(e.headPlacement)==="own-box",a=s=>t?void 0:s;return bJ(DF,{num:a(y(e.num,ks.num,e.puck)),title:a(y(e.title,ks.title,e.puck)),description:a(y(e.description,A.body,e.puck)),omitHead:t,boxes:e.boxes,steps:w1(e.steps,xJ(),e.puck),columns:typeof e.columns=="number"?e.columns:3,cta:G3(e.ctaText,e.ctaHref),padTop:t?0:typeof e.padTop=="number"?e.padTop:120,padBottom:typeof e.padBottom=="number"?e.padBottom:120,cardImage:e.cardImage,cardText:e.cardText,editing:e.puck?.isEditing})}};var qF={fields:{_sHeader:Q1("Header"),_gContent:x("Content"),num:F("Number",ks.num),title:F("Heading",ks.title),description:G("Body",A.body),boxes:vd.boxes,_dDesign:Q1("Design"),columns:s1("Columns",GF(zJ,{}),2,4,1,3),cardImage:a7(),cardText:x1("Text position",GF(yJ,{}),[{label:"Below picture",value:"below"},{label:"On picture",value:"on-image"}],"below"),_dLayout:Q1("Layout"),...u3("ProcessSteps")},resolveFields:(e,{fields:t,parent:a})=>{let s=G1(U1(t,a,j1),e.props.headPlacement,Z1.ProcessSteps.headRows);if(!(Array.isArray(e.props.boxes)&&e.props.boxes.length>0))return s;let{cardText:c,...l}=s;return l}};import{jsx as SJ}from"react/jsx-runtime";import{SquareIcon as LJ}from"efficient-easel/icons";import{jsx as MJ}from"react/jsx-runtime";import{jsx as yi,Fragment as wJ,jsxs as WF}from"react/jsx-runtime";var CJ="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))]",kJ="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))]";function UF({eyebrow:e,title:t,body:a,topBorder:s=!0,omitHead:c=!1,editing:l=!1}={}){let r=x0((a??"").trim()),o=!!(e??"").trim()||!!(t??"").trim()||r.length>0;return!l&&!o?null:yi("section",{className:`relative z-[2] ${s?"border-t border-line ":""}bg-bg`,children:WF("div",{className:c?kJ:CJ,children:[c?null:WF(wJ,{children:[(e??"").trim()&&yi(N1,{text:e??"",className:"mb-4 block"}),(t??"").trim()&&yi("h2",{className:"mb-7 font-heading2 text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg max-[800px]:text-[length:var(--size-headingSmall,28px)]",children:Y(t??"",!1)})]}),r.map((i,n)=>yi("p",{className:"mb-[18px] max-w-[680px] text-[length:var(--size-body,16px)] leading-[1.7] text-fg-dim last:mb-0",children:k(i)},n))]})})}var q8={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},jF={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0},render:e=>{let t=O1(e.headPlacement)==="own-box",a=s=>t?void 0:s;return MJ(UF,{eyebrow:a(y(e.eyebrow,q8.eyebrow,e.puck)),title:a(y(e.title,q8.title,e.puck)),omitHead:t,body:y(e.body,q8.body,e.puck),topBorder:e.topBorder,editing:e.puck?.isEditing})}};var KF={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow",q8.eyebrow),title:G("Heading",q8.title),body:G("Body",q8.body),_dDesign:Q1("Design"),topBorder:l1("Top border",!0,SJ(LJ,{}))},resolveFields:(e,{fields:t,parent:a})=>G1(U1(t,a,j1),e.props.headPlacement,Z1.Prose.headRows)};import{jsx as zd}from"react/jsx-runtime";import{jsx as Ci}from"react/jsx-runtime";import{WidthIcon as AJ}from"efficient-easel/icons";var W8={min:40,max:2e3,step:10,fallback:2e3,unit:"px"};function $F(e){return typeof e!="number"?null:{width:`${e}${W8.unit}`,maxWidth:"100%"}}function YF(e,t){let a=e.props?.id,s=t.appState?.data?.content;return!Array.isArray(s)||typeof a!="string"?!0:!s.some(c=>c?.props?.id===a)}function wi(e,t){let a=e?.data?.content;if(!Array.isArray(a)||typeof t!="string")return;let s=(c,l)=>{for(let r of c){if(r?.props?.id===t)return l;for(let o of Object.values(r?.props??{}))if(Array.isArray(o)&&o.length>0&&typeof o[0]=="object"&&o[0]!==null&&"type"in o[0]){let i=s(o,r);if(i!==void 0)return i}}};return s(a,null)}var HJ=new Set(["SectionHeader","ProductGrid","IntroBleed","RelatedProducts","Banner","Stats","Logos","Divider","OrderSummary","DeliveryOptions","PaymentBadges","CheckoutCTA","Ticker","CategoryBar","DocTabs","CustomHTML","Spacer","Flex","Grid"]),FJ=new Set(["Hero","HeroSingle","Manifesto","ProductHero"]),TJ=new Set(["ProductHero"]),XF={name:"sectionWidth",applies:(e,t,a)=>t.isSection(e)&&!HJ.has(e)&&!!a&&typeof a.render=="function",panel(e,t,a){let s=a.widthField;e.fields={...e.fields,...s("full")};let c=e.resolveFields;e.resolveFields=(l,r)=>{let o=c?c(l,r):r.fields,i=B2(l?.props??{},"full");return o&&typeof o.then=="function"?o.then(n=>T7(n,i)):T7(o,i)}},draw(e,t){let a=FJ.has(t),s=e.render;e.render=c=>{let{mode:l,inherited:r}=B2(c,"full"),o=s(c);if(l==="full")return a&&!r&&!TJ.has(t)?Ci("div",{style:{[_z]:"none",[Iz]:"initial",[Rz]:"initial"},children:o}):o;let i=Y6(ba);return a?Ci("div",{style:{"--sf-page-cap":ba},children:o}):Ci("div",{style:i,children:o})}}};function T7(e,t){if(!e||!("widthMode"in e))return e;let a={...e},s=a.widthMode;return s&&(a.widthMode={...s,currentValue:t.mode,inherited:t.inherited}),a}var PJ=new Set(["Heading","Text","ImageBlock","ButtonBlock","Banner","Stats","Logos","Divider","Flex","Grid","OrderSummary","DeliveryOptions","PaymentBadges","CheckoutCTA"]),JF={name:"containedWidth",applies:(e,t,a)=>PJ.has(e)&&!!a&&typeof a.render=="function",panel(e,t,a){let s=a.widthField;e.fields={...e.fields,...s("page")};let c=e.resolveFields;e.resolveFields=(l,r)=>{let o=c?c(l,r):r.fields,i=B2(l?.props??{},"page"),n=h=>VJ(T7(h,i),l,r);return o&&typeof o.then=="function"?o.then(n):n(o)}},draw(e){let t=e.render;e.render=a=>{let{mode:s}=B2(a,"page");return t({...a,contained:s!=="full"})}}},QF={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let t=e,a=t?.resolveFields;t.resolveFields=(s,c)=>{let l=a?a(s,c):c.fields,r=o=>{let i=wi(c.appState,s.props?.id);if(!i||i.type!=="HeroGroup"||wl("HeroGroup",i.props?.direction)!=="row")return o;let n={...o};return delete n.align,n};return l&&typeof l.then=="function"?l.then(r):r(l)}}};function EJ(e){return Object.values(e).some(t=>!!t&&typeof t=="object"&&t.type==="slot")}function VJ(e,t,a){if(EJ(e)){let c=a.appState?.data?.content;if(rH(c,t.props?.id)!==!0)return e;let l={...e};return delete l.widthMode,delete l.pageWidth,l}if("parent"in a){if(!az(a.parent))return e}else if(!YF({props:t.props??{}},a))return e;let s={...e};return delete s.widthMode,delete s.pageWidth,s}var eT={name:"imageWidth",applies:e=>e==="ImageBlock",panel(e,t,a){let s=a.slider;if(e?.fields){let c=s("Image width",Ci(AJ,{}),W8.min,W8.max,W8.step,W8.fallback,W8.unit),l="focal",r=Object.entries(e.fields),o=r.findIndex(([i])=>i===l);e.fields=Object.fromEntries(o===-1?[...r,["width",c]]:[...r.slice(0,o+1),["width",c],...r.slice(o+1)])}}};import{HashIcon as NJ,StylesIcon as rT}from"efficient-easel/icons";var Ms="standard",xd=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],bd=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],fd=[...bd,"description"],sT={standard:["eyebrowLook"],editorial:[...bd,"eyebrowLook"],simple:fd,statement:fd,natural:bd,essay:fd},tT=["gap-5","gap-3"],aT=["text-[length:var(--size-body,16px)]","text-[15px]"];function cT(e){return R2(tT,tT[0],e)}function lT(e){return R2(aT,aT[0],e)}function ki(e){return R2(xd,Ms,e)}var oT={fields:{_gContent:x("Content"),headStyle:v1("Style",zd(rT,{}),[...xd],Ms),num:F("Number","01 / Section"),eyebrowLook:v1("Eyebrow style",zd(rT,{}),[...w4],rr),numStyle:x1("Number style",zd(NJ,{}),[...gu],F8),title:G("Heading","Section *title*"),description:G("Body","Short supporting line"),linkText:F("Button","View all"),linkHref:F1("Link"),_gLogo:x("Logo"),logoSrc:q1("Logo image","image/*"),logoAlt:q("Logo alt text","Logo description"),...b5("full")},resolveFields:(e,{fields:t})=>{let a=T7(t,B2(e?.props??{},"full")),s=ki(e?.props?.headStyle),c={...a};for(let l of sT[s])delete c[l];return c}};import{jsx as IJ}from"react/jsx-runtime";import{jsx as P7,jsxs as mt,Fragment as _J}from"react/jsx-runtime";function iT({headNum:e,headTitle:t,headDesc:a,cards:s,viewLabel:c,background:l,editing:r=!1,omitHead:o=!1,...i}){let n=(s??[]).filter(u=>(u?.title??"").trim()||(u?.desc??"").trim()||(u?.num??"").trim()),h=n.length>0?n:r?[{title:p("Series title")}]:[],m=!!(l&&l!=="transparent");return mt("section",{className:_0(i)?o?"border-b border-line px-[var(--sf-site-gutter,40px)] pt-0 pb-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:pt-0 max-[1100px]:pb-20":"border-b border-line px-[var(--sf-site-gutter,40px)] py-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:py-20":o?"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] pt-0 pb-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:pt-0 max-[1100px]:pb-20":"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] py-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:py-20",style:m?{backgroundColor:l}:void 0,children:[o?null:P7(O2,{num:e,title:t?Y(t):void 0,desc:a}),P7("div",{className:`grid grid-cols-4 max-[1100px]:grid-cols-2 max-[700px]:grid-cols-1 ${m?"gap-[1px]":"gap-[2px] bg-bg"}`,children:h.map((u,d)=>{let v=!!(u.num?.trim()||u.since?.trim()),g=!!u.title?.trim(),b=!!(u.entries?.trim()||u.entriesLabel?.trim()||c);return mt("article",{className:"flex min-h-[340px] flex-col gap-4 bg-bg px-7 pt-9 pb-8",children:[v&&mt("div",{className:"flex items-baseline justify-between gap-3 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.3em] text-accent",children:[P7("span",{children:u.num?k(u.num):null}),u.since?.trim()?P7("span",{children:k(u.since)}):null]}),g&&P7("h3",{className:"font-heading3 text-[length:var(--size-headingSmall,28px)] font-medium uppercase leading-[1.04] tracking-[-0.02em]",children:Y(u.title??"")}),u.desc?.trim()&&P7("p",{className:"font-display text-[length:var(--size-body,14px)] leading-[1.6] text-fg-dim",children:k(u.desc)}),b&&mt("div",{className:"mt-auto flex items-center justify-between border-t border-line pt-4 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-fg-dim",children:[mt("span",{children:[u.entries?.trim()?P7("strong",{className:"font-normal text-fg",children:k(u.entries)}):null,u.entriesLabel?.trim()?mt(_J,{children:[u.entries?.trim()?" ":"",k(u.entriesLabel)]}):null]}),c&&P7("span",{className:"text-accent",children:k(c)})]})]},d)})})]})}var k6={headNum:A.sectionNumber,headTitle:A.headingAccent,headDesc:A.body,viewLabel:"View series \u2192"},RJ=()=>[{num:"01",since:p("Year"),title:p("Column *title.*"),desc:p("A short description of this recurring column."),entries:"0",entriesLabel:p("entries")},{num:"02",since:p("Year"),title:p("Column *title.*"),desc:p("A short description of this recurring column."),entries:"0",entriesLabel:p("entries")},{num:"03",since:p("Year"),title:p("Column *title.*"),desc:p("A short description of this recurring column."),entries:"0",entriesLabel:p("entries")}],nT={label:"Recurring Columns",defaultProps:{headNum:"",headTitle:"",headDesc:"",cards:[],viewLabel:"",background:"transparent"},render:({headNum:e,headTitle:t,headDesc:a,cards:s,viewLabel:c,background:l,headPlacement:r,puck:o})=>{let i=O1(r)==="own-box",n=h=>i?void 0:h;return IJ(iT,{headNum:n(y(e,k6.headNum,o)),headTitle:n(y(t,k6.headTitle,o)),headDesc:n(y(a,k6.headDesc,o)),omitHead:i,cards:w1(s,RJ(),o),viewLabel:y(c,k6.viewLabel,o),background:J6(l,a3.Series),editing:o?.isEditing})}};var hT={fields:{_gHead:x("Section header"),headNum:F("Number",k6.headNum),headTitle:G("Heading",k6.headTitle),headDesc:G("Body",k6.headDesc),_gCards:x("Cards"),cards:{type:"array",label:"Cards",arrayFields:{num:f1("Number"),since:f1("Right Top Text"),title:V1("Title"),desc:V1("Body"),entries:f1("Entries count"),entriesLabel:f1("Button Right Text")},getItemSummary:e=>e?.title||(e?.num?`Column ${e.num}`:"Column")},_gViewLabel:x("Card link"),viewLabel:F("Card button",k6.viewLabel),_gStyle:x("Style"),background:t7("Background",a3.Series)},resolveFields:(e,{fields:t,parent:a})=>G1(U1(t,a,j1),e.props.headPlacement,Z1.Series.headRows)};var mT={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 pT}from"react/jsx-runtime";import{BackgroundIcon as BJ,ContrastIcon as ZJ}from"efficient-easel/icons";var uT={fields:{_gContent:x("Content"),cells:{type:"array",label:"Strip items",arrayFields:{text:q("Label","Label"),tone:x1("Tone",pT(ZJ,{}),[{label:"Normal",value:"normal"},{label:"Muted",value:"muted"}],"normal")},defaultItemProps:{text:"",tone:"normal"},getItemSummary:e=>e?.text||"Item",min:2,max:8},_gStyle:x("Style"),fill:x1("Strip fill",pT(BJ,{}),[{label:"Dark band",value:"dark"},{label:"None",value:"none"}],"dark")}};import{jsx as Mi}from"react/jsx-runtime";import{AlignLeftIcon as jJ,CaseIcon as KJ,OpacityIcon as $J,PlacementIcon as YJ}from"efficient-easel/icons";import{jsx as WJ}from"react/jsx-runtime";import{jsx as q2,jsxs as E7}from"react/jsx-runtime";import{jsx as DJ,jsxs as OJ}from"react/jsx-runtime";import{createContext as GJ,useContext as qJ}from"react";var dT=GJ(!1);function pt(){return qJ(dT)}function gT({grayscale:e,children:t}){let a=e===!0;return OJ(dT.Provider,{value:a,children:[Object.entries(fL(e)).map(([s,c])=>DJ("style",{children:c},s)),t]})}function vT({imageLabel:e,imageSrc:t,imageTint:a=.4,imageObjectPosition:s,eyebrow:c,title:l,body:r,cta:o,reverse:i=!1,uppercase:n=!1,textAlign:h="left",textBgSrc:m,textBgLabel:u,textBgTint:d=.6,textBgObjectPosition:v,featureBar:g,imageButton:b,grayscale:f}){let w=Ge(f,pt()),z={left:{items:"",text:"",cta:"self-start"},center:{items:"items-center",text:"text-center",cta:"self-center"},right:{items:"items-end",text:"text-right",cta:"self-end"}},M=z[h]??z.left;return q2("section",{className:"relative z-[2] bg-bg p-0",children:E7("div",{className:["grid min-h-[72vh] grid-cols-2 border-t border-b border-line","max-[960px]:grid-cols-1","max-[960px]:min-h-0",i?"min-[961px]:[direction:rtl]":""].join(" "),children:[E7("div",{className:"sf-card relative flex items-center justify-center overflow-hidden bg-surface [direction:ltr] max-[960px]:aspect-[4/3] max-[960px]:order-2",style:i?{borderLeft:"1px solid var(--site-line)"}:{borderRight:"1px solid var(--site-line)"},children:[q2(k0,{label:e,src:t,objectPosition:s,treatment:w}),t&&a>0&&q2("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${a})`}}),(g||b)&&E7("div",{className:"pointer-events-none absolute inset-0 z-[3] flex flex-col items-center justify-center gap-4 px-[var(--sf-site-gutter,40px)] max-[800px]:px-[min(20px,var(--sf-site-gutter,40px))]",children:[g&&E7(s0,{href:g.href,className:"pointer-events-auto inline-flex items-center justify-center gap-3 border px-7 py-4 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] backdrop-blur-sm transition-colors max-[800px]:gap-2 max-[800px]:px-5 max-[800px]:py-3 max-[800px]:text-[length:var(--size-label,12px)]",style:{borderColor:"rgba(245,241,232,0.3)",color:"rgba(245,241,232,0.85)",background:"rgba(0,0,0,0.45)"},children:[q2("span",{children:k(g.wheel)}),q2("span",{"aria-hidden":!0,style:{opacity:.55},children:"\xB7"}),q2("span",{children:k(g.category)}),q2("span",{"aria-hidden":!0,children:"\u2192"}),q2("span",{children:k(g.cta??"Shop now")})]}),b&&E7(s0,{href:b.href,className:"pointer-events-auto inline-flex items-center justify-center gap-2 border px-7 py-4 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] backdrop-blur-sm transition-colors hover:bg-[rgba(245,241,232,0.1)] max-[800px]:gap-2 max-[800px]:px-5 max-[800px]:py-3 max-[800px]:text-[length:var(--size-label,12px)]",style:{borderColor:"rgba(245,241,232,0.5)",color:"rgba(245,241,232,0.95)",background:"transparent"},children:[q2("span",{children:k(b.text??"Learn more")}),q2("span",{"aria-hidden":!0,children:"\u2192"})]})]})]}),E7("div",{className:"relative overflow-hidden [direction:ltr] max-[960px]:order-1",children:[m&&E7("div",{className:"absolute inset-0","aria-hidden":!0,children:[q2(k0,{label:u??e,src:m,objectPosition:v,treatment:w}),d>0&&q2("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${d})`}})]}),q2("div",{className:"relative z-[2] flex h-full min-h-full flex-col px-[60px] py-[100px] max-[960px]:px-6 max-[960px]:py-[60px]",style:m?u5:void 0,children:E7("div",{className:["flex flex-1 flex-col justify-center gap-6",M.items,M.text].join(" "),children:[c&&q2(N1,{text:c,size:14}),l&&q2("h2",{className:["font-heading2 text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))] font-normal leading-[1.05] tracking-[-0.03em]","max-[800px]:text-[length:var(--size-headingMedium,36px)] max-[800px]:leading-[1]",n?"uppercase":""].join(" "),children:Y(l,!1)}),r&&x0(r).map((S,H)=>q2("p",{className:["max-w-[520px] text-[length:var(--size-body,16px)] leading-[1.7]","text-fg-dim"].join(" "),children:k(S)},H)),o.text&&q2("div",{className:`mt-2 ${M.cta}`,children:q2(s3,{href:o.href,variant:"primary",children:k(o.text)})})]})})]})]})})}var V7={eyebrow:"\u2014 Label",title:`Section headline *here.*
|
|
63
63
|
*Highlight line*`,body:"Describe this section in a sentence or two."},yd={text:"Learn more"};function UJ(e,t,a){let s=y(e,yd.text,a);if(s!==void 0)return{text:s,href:t||"#"}}var fT={label:"Image & Text Split",defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",reverse:!1,uppercase:!1,textAlign:"left",ctaText:"",ctaHref:"",imageBtnText:"",imageBtnHref:"",textBgSrc:"",overlay:60},render:e=>WJ(vT,{eyebrow:y(e.eyebrow,V7.eyebrow,e.puck),title:y(e.title,V7.title,e.puck),body:y(e.body,V7.body,e.puck),imageLabel:a1(e.title)||V7.title,imageSrc:e.imageSrc||void 0,reverse:e.reverse,uppercase:e.uppercase,textAlign:e.textAlign,cta:G3(e.ctaText,e.ctaHref,e.puck),imageButton:UJ(e.imageBtnText,e.imageBtnHref,e.puck),textBgSrc:e.textBgSrc||void 0,textBgTint:(typeof e.overlay=="number"?e.overlay:60)/100,grayscale:e.grayscale})};var bT={fields:{_sText:Q1("Text column"),_gContent:x("Content"),eyebrow:F("Eyebrow",V7.eyebrow),title:G("Heading",V7.title),body:G("Body",V7.body),uppercase:l1("Uppercase heading",!1,Mi(KJ,{})),textAlign:x1("Alignment",Mi(jJ,{}),[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}],"left"),_gButton:x("Button"),...L4,_gTextBg:x("Background image"),textBgSrc:q1("Background image","image/*"),overlay:s1("Overlay",Mi($J,{}),0,100,5,60,"%"),_sImage:Q1("Image column"),_gImage:x("Image"),imageSrc:q1("Image","image/*"),reverse:x1("Image side",Mi(YJ,{}),[{label:"Image left",value:!1},{label:"Image right",value:!0}],!1),_gImageBtn:x("Overlay button"),imageBtnText:F("Overlay button",yd.text),imageBtnHref:F1("Overlay button link"),_gStyle:x("Style"),grayscale:qe()}};import{jsx as XJ}from"react/jsx-runtime";import{ColumnsIcon as JJ}from"efficient-easel/icons";var xT={fields:{_gContent:x("Content"),heading:F("Heading","By the *numbers*"),items:{type:"array",label:"Stats",arrayFields:{value:f1("Value"),label:f1("Label")},getItemSummary:e=>e.label||e.value||"stat"},columns:s1("Columns",XJ(JJ,{}),2,4,1,4),_gStyle:x("Style"),background:t7("Background",a3.Stats)}};import{jsx as rQ}from"react/jsx-runtime";import{AccentIcon as oQ}from"efficient-easel/icons";import{jsx as cQ}from"react/jsx-runtime";import{jsxs as dt,jsx as gt,Fragment as aQ}from"react/jsx-runtime";import{useEffect as QJ,useRef as zT,useState as eQ}from"react";var tQ=1400;function ut(e,t={}){let{threshold:a=.1,replay:s=!0,durationMs:c=tQ}=t,l=zT(null),r=zT(null),[o,i]=eQ(0);return QJ(()=>{let n=l.current;if(!n)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){i(e);return}let h=()=>{r.current!==null&&(cancelAnimationFrame(r.current),r.current=null)},m=()=>{h();let d=performance.now(),v=g=>{let b=Math.min(1,(g-d)/c),f=1-Math.pow(1-b,3);i(Math.round(f*e)),b<1?r.current=requestAnimationFrame(v):r.current=null};r.current=requestAnimationFrame(v)},u=new IntersectionObserver(d=>{let v=d[0];v&&(v.isIntersecting?(m(),s||u.disconnect()):s&&(h(),i(0)))},{threshold:a});return u.observe(n),()=>{u.disconnect(),h()}},[e,a,s,c]),{ref:l,value:o}}var yT="font-normal italic text-accent";function sQ({value:e,prefix:t,suffix:a,supSuffix:s,emphasizeAll:c,label:l,sub:r}){let o=(e??"").trim(),i=/^\d+$/.test(o),{ref:n,value:h}=ut(i?parseInt(o,10):0),m=i?String(h):o,u=t??"";return dt("div",{className:"flex min-h-[240px] flex-col gap-3 bg-bg px-8 py-12",children:[dt("div",{ref:n,className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(56px,7vw,96px)),var(--sf-heading-max,9999px))] font-medium leading-[0.9] tracking-[-0.04em] tabular-nums",children:[c?dt("em",{className:yT,children:[u,m]}):dt(aQ,{children:[u,m,a?gt("em",{className:yT,children:a}):null]}),s?gt("sup",{className:"ml-8 inline-block pt-[18px] align-top font-mono text-[length:var(--size-label,13px)] leading-none tracking-[0.18em] text-accent",children:s}):null]}),(l||r)&&dt("div",{className:"mt-auto font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-fg-dim",children:[l?gt("strong",{className:"mb-1 block font-display text-[length:var(--size-body,16px)] font-normal normal-case tracking-[-0.01em] text-fg",children:l}):null,r?k(r):null]})]})}function wT({eyebrow:e,title:t,desc:a,stats:s,background:c,padTop:l,padBottom:r,editing:o=!1,omitHead:i=!1,...n}={}){let h=typeof l=="number"?l:120,m=typeof r=="number"?r:120,u=(s??[]).filter(g=>(g.value??"").trim()!==""||(g.label??"").trim()!==""||(g.sub??"").trim()!==""||(g.suffix??"").trim()!==""||(g.supSuffix??"").trim()!==""),d=u.length>0?u:o?[{value:"0",label:p("Stat"),sub:p("Add your numbers.")}]:[],v=!!(c&&c!=="transparent");return dt("section",{className:_0(n)?"border-b border-line px-[var(--sf-site-gutter,40px)] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))]":"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))]",style:{paddingTop:h,paddingBottom:m,...v?{backgroundColor:c}:{}},children:[i?null:gt(O2,{num:e,title:t?Y(t):void 0,desc:a?k(a):void 0}),d.length>0&>("div",{className:"sf-card grid grid-cols-4 gap-[2px] border border-line bg-line max-[1100px]:grid-cols-2 max-[700px]:grid-cols-1",children:d.map((g,b)=>gt(sQ,{...g},b))})]})}var U8={eyebrow:A.eyebrow,title:A.headingAccent,desc:A.body},lQ=()=>[{value:"00",label:A.label,sub:p("Short description of this figure.")},{value:"00",label:A.label,sub:p("Short description of this figure.")},{value:"00",label:A.label,sub:p("Short description of this figure.")},{value:"00",label:A.label,sub:p("Short description of this figure.")}],CT={label:"Stats with Text",defaultProps:{eyebrow:"",title:"",desc:"",stats:[],background:El,padTop:120,padBottom:120},render:({eyebrow:e,title:t,desc:a,stats:s,background:c,padTop:l,padBottom:r,headPlacement:o,puck:i})=>{let n=O1(o)==="own-box",h=m=>n?void 0:m;return cQ(wT,{eyebrow:h(y(e,U8.eyebrow,i)),title:h(y(t,U8.title,i)),desc:h(y(a,U8.desc,i)),omitHead:n,stats:w1(s,lQ(),i),background:J6(c,a3.StatsParagraph),padTop:n?0:typeof l=="number"?l:120,padBottom:typeof r=="number"?r:120,editing:i?.isEditing})}};var kT={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow",U8.eyebrow),title:G("Heading",U8.title),desc:G("Body",U8.desc),stats:{type:"array",label:"Stats",arrayFields:{value:q("Number"),prefix:q("Prefix"),suffix:q("Unit"),supSuffix:q("Superscript"),emphasizeAll:l1("Whole number Theme Color",!1,rQ(oQ,{})),label:q("Label"),sub:V1("Body")},defaultItemProps:{value:"",prefix:"",suffix:"",supSuffix:"",emphasizeAll:!1,label:"",sub:""},getItemSummary:e=>e.label||e.value||"Stat"},_gStyle:x("Style"),background:t7("Background",a3.StatsParagraph),...u3("StatsParagraph")},resolveFields:(e,{fields:t,parent:a})=>G1(U1(t,a,j1),e.props.headPlacement,Z1.StatsParagraph.headRows)};import{jsx as LT}from"react/jsx-runtime";import{ColumnsIcon as uQ,StylesIcon as dQ}from"efficient-easel/icons";import{jsx as mQ}from"react/jsx-runtime";import{jsx as M6,Fragment as iQ,jsxs as Si}from"react/jsx-runtime";var nQ="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))]",hQ="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 MT({look:e,eyebrow:t,title:a,items:s,columns:c,omitHead:l=!1,editing:r=!1}={}){let o=Math.min(3,Math.max(1,c??3)),i=(s??[]).filter(h=>r||(h.quote??"").trim()),n=!!(t??"").trim()||!!(a??"").trim();return!r&&!n&&i.length===0?null:M6("section",{className:"relative z-[2] border-t border-line bg-surface",children:Si("div",{className:l?hQ:nQ,children:[l?null:Si(iQ,{children:[(t??"").trim()&&M6(N1,{text:t??"",look:e,className:"mb-4 block"}),(a??"").trim()&&M6("h2",{className:"mb-11 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-[800px]:mb-8 max-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:Y(a??"",!1)})]}),i.length>0&&M6("div",{className:"sf-card grid grid-cols-1 gap-px border border-line bg-line min-[700px]:[grid-template-columns:repeat(var(--tm-cols),minmax(0,1fr))]",style:{"--tm-cols":String(o)},children:i.map((h,m)=>Si("figure",{className:"flex flex-col gap-5 bg-bg p-9 max-[800px]:p-7",children:[M6("span",{"aria-hidden":!0,className:"font-heading2 text-[length:var(--size-headingMedium,46px)] leading-none text-accent",children:"\u201C"}),M6("blockquote",{className:"flex-1 text-[length:var(--size-body,16px)] leading-[1.6] text-fg-dim",children:x0((h.quote??"").trim()||p("A short customer quote goes here.")).map((u,d)=>M6("p",{className:d?"mt-3":"",children:k(u)},d))}),Si("figcaption",{className:"border-t border-line pt-[18px]",children:[M6("div",{className:"font-display text-[length:var(--size-body,15px)] font-medium uppercase tracking-[0.04em] text-fg",children:(h.name??"").trim()||"Customer name"}),(h.role??"").trim()&&M6("div",{className:"mt-1 text-[length:var(--size-body,12px)] text-fg-dim",children:h.role})]})]},m))})]})})}var Ss={eyebrow:"Feedback",title:"What people *say.*"},pQ=()=>[{quote:p("A short customer quote goes here \u2014 replace it with a real testimonial from your customers."),name:p("Customer name"),role:p("Role \xB7 Location")},{quote:p("A second customer quote \u2014 what they loved, in a sentence or two."),name:p("Customer name"),role:p("Role \xB7 Location")},{quote:p("A third short quote to round out the row."),name:p("Customer name"),role:p("Role \xB7 Location")}],ST={label:"Testimonials",defaultProps:{eyebrow:"",title:"",items:[],columns:3},render:e=>{let t=O1(e.headPlacement)==="own-box",a=s=>t?void 0:s;return mQ(MT,{look:l4(e.eyebrowLook,"Testimonials"),eyebrow:a(y(e.eyebrow,Ss.eyebrow,e.puck)),title:a(y(e.title,Ss.title,e.puck)),omitHead:t,items:w1(e.items,pQ(),e.puck),columns:e.columns,editing:e.puck?.isEditing})}};var AT={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow",Ss.eyebrow),eyebrowLook:v1("Eyebrow style",LT(dQ,{}),[...w4],c7("Testimonials")),title:G("Heading",Ss.title),items:{type:"array",label:"Quotes",arrayFields:{quote:V1("Quote"),name:q("Name"),role:q("Role \xB7 location")},defaultItemProps:{quote:"",name:"",role:""},getItemSummary:e=>e?.name||e?.quote||"Quote"},_gStyle:x("Style"),columns:s1("Columns",LT(uQ,{}),1,3,1,3)},resolveFields:(e,{fields:t,parent:a})=>G1(U1(t,a,j1),e.props.headPlacement,Z1.Testimonials.headRows)};var HT={fields:{text:G("Body",A.body),align:P5(),tone:Ho()}};import{jsx as j8}from"react/jsx-runtime";import{ClockIcon as fQ,DirectionIcon as bQ,GapIcon as xQ,LineBetweenIcon as zQ,SquareIcon as yQ,StylesIcon as wQ,TextSizeIcon as CQ}from"efficient-easel/icons";var FT="none",TT=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function PT(e){return e==="above"||e==="below"?e:null}var ET="sf-ticker-join";function VT(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}import{jsx as vQ}from"react/jsx-runtime";import{jsx as wd}from"react/jsx-runtime";var gQ=()=>p("item");function NT({items:e,durationSec:t=50,tone:a="scrim",borders:s=!0,size:c,separator:l,scroll:r,join:o,editing:i}){let n=(e??[]).map(d=>d?.text?.trim()?d.text:i?gQ():"").filter(Boolean);if(n.length===0)return null;let h=a!=="plain",m=PT(o),u=wd("div",{className:[m?`absolute inset-x-0 ${VT(m)}`:"relative z-[2]","py-3.5 max-[800px]:py-3",h?"bg-bg":"",s?"border-y border-line":""].filter(Boolean).join(" "),children:wd(Cw,{items:n,durationSec:t,size:c,separator:l,scroll:r,backdrop:h?"themed-band":"themed-section"})});return m?wd("div",{className:ET,children:u}):u}var Cd=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],_T={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:Ql,separator:er,scrollDirection:tr,speed:50},render:({items:e,tone:t,borders:a,size:s,separator:c,scrollDirection:l,speed:r,join:o,puck:i})=>vQ(NT,{items:w1(e,Cd,i),tone:t,borders:a,size:s,separator:c,scroll:l,durationSec:r,join:o,editing:i?.isEditing})};var IT={fields:{_gContent:x("Content"),items:j9(P2(xm.label,xm.icon,"item","markup"),Cd),_gStyle:x("Style"),tone:x1("Style",j8(wQ,{}),[{label:"Solid",value:"scrim"},{label:"Plain",value:"plain"}],"scrim"),borders:l1("Hairline borders",!0,j8(yQ,{})),size:x1("Text size",j8(CQ,{}),[...zw],Ql),separator:v1("Separator",j8(zQ,{}),yw,er),scrollDirection:Dl("Scroll direction",ww,tr,"A marquee cannot run diagonally, so the corners are not answers.",j8(bQ,{}),jy),speed:s1("Scroll duration",j8(fQ,{}),20,90,5,50,"s"),join:v1("Join",j8(xQ,{}),TT,FT)}};import{jsx as SQ}from"react/jsx-runtime";import{EyeIcon as LQ}from"efficient-easel/icons";import{jsx as kQ}from"react/jsx-runtime";import{jsx as M0,Fragment as OT,jsxs as j3}from"react/jsx-runtime";function RT({eyebrow:e,title:t,intro:a,center:s=!1}){return j3(OT,{children:[e&&M0(N1,{text:e,size:12}),t&&M0("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,76px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.94] tracking-[-0.03em] text-fg",children:Y(t)}),a&&M0("p",{className:["font-display text-[length:var(--size-body,14px)] leading-[1.6] text-fg-dim",s?"max-w-[520px]":"max-w-[360px]"].join(" "),children:k(a,!0)})]})}function BT({cta:e,className:t=""}){return e?.text?j3(s0,{href:e.href,className:["group inline-flex items-center gap-3.5 border border-line px-5 py-4","font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.3em] text-fg","transition-colors hover:border-accent hover:text-accent",t].join(" "),children:[k(e.text),M0("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]}):null}function ZT({src:e,caption:t,meta:a,aspectClass:s,editing:c,sizes:l="100vw",className:r=""}){return!e&&!c?null:j3("figure",{className:["relative overflow-hidden border border-line bg-surface",s,r].join(" "),children:[M0(k0,{label:t||"Image",src:e,alt:p2(t??""),sizes:l}),M0("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(180deg, transparent 55%, rgba(10,10,10,0.75) 100%)"}}),(t||a)&&j3("figcaption",{className:"absolute inset-x-0 bottom-0 z-[1] flex items-center justify-between gap-3 px-4 py-3 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-overlay-fg/85",children:[M0("span",{children:t?k(t):""}),a&&M0("span",{className:"text-accent",children:k(a)})]})]})}function kd({entry:e}){let t=x0(e.body??"");return j3(OT,{children:[e.title&&M0("h3",{className:"mb-3.5 font-heading3 text-[length:var(--size-headingSmall,24px)] font-medium uppercase tracking-[-0.02em] text-fg max-[800px]:text-[length:var(--size-headingSmall,20px)]",children:Y(e.title)}),t.length>0&&M0("div",{className:"space-y-3.5 font-display text-[length:var(--size-body,17px)] leading-[1.6] max-[800px]:text-[length:var(--size-body,16px)]",children:t.map((a,s)=>M0("p",{className:s===0?"text-fg":"text-fg-dim",children:k(a,!0)},s))})]})}var DT={boxShadow:"0 0 0 4px var(--bg)"};function GT({layout:e="split",eyebrow:t,title:a,intro:s,imageSrc:c,imageCaption:l,imageMeta:r,cta:o,entries:i,padTop:n,padBottom:h,editing:m}={}){let u=typeof n=="number"?n:120,d=typeof h=="number"?h:120,v=(i??[]).filter(g=>(g.date??"").trim()||(g.title??"").trim()||(g.body??"").trim());return M0("section",{className:"relative z-[2] bg-bg",children:M0("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[800px]:px-[min(20px,var(--sf-site-gutter,40px))]",style:{paddingTop:u,paddingBottom:d},children:e==="split"?j3("div",{className:"grid grid-cols-[1fr_1.4fr] gap-20 max-[1100px]:grid-cols-1 max-[1100px]:gap-12",children:[j3("aside",{className:"sticky top-[120px] flex flex-col gap-6 self-start max-[1100px]:static",children:[M0(RT,{eyebrow:t,title:a,intro:s}),M0(ZT,{src:c,caption:l,meta:r,aspectClass:"mt-1 aspect-[4/5]",sizes:"(max-width: 1100px) 100vw, 420px",editing:m}),M0(BT,{cta:o,className:"mt-2 self-start"})]}),M0("ol",{className:"flex flex-col gap-12",children:v.map((g,b)=>j3("li",{className:"grid grid-cols-[80px_1fr] items-start gap-6 max-[700px]:grid-cols-1 max-[700px]:gap-2",children:[M0("span",{className:"pt-1.5 font-mono text-[length:var(--size-label,13px)] tracking-[0.24em] text-accent",children:g.date?k(g.date):""}),M0("div",{className:"max-w-[640px]",children:M0(kd,{entry:g})})]},b))})]}):j3("div",{children:[j3("header",{className:"mx-auto flex max-w-[760px] flex-col items-center gap-6 text-center",children:[M0(RT,{eyebrow:t,title:a,intro:s,center:!0}),M0(BT,{cta:o})]}),M0(ZT,{src:c,caption:l,meta:r,aspectClass:"mx-auto mt-12 aspect-[16/9] w-full max-w-[900px]",sizes:"(max-width: 900px) 100vw, 900px",editing:m}),e==="spine"?M0("ol",{className:"relative mx-auto mt-16 max-w-[760px]",children:v.map((g,b)=>j3("li",{className:"relative border-l border-line pb-12 pl-10 last:pb-0 max-[700px]:pl-8",children:[M0("span",{className:"absolute left-[-5px] top-1.5 h-2.5 w-2.5 rounded-full bg-accent",style:DT}),M0("div",{className:"mb-2 font-mono text-[length:var(--size-label,13px)] tracking-[0.24em] text-accent",children:g.date?k(g.date):""}),M0("div",{className:"max-w-[640px]",children:M0(kd,{entry:g})})]},b))}):j3("ol",{className:"relative mx-auto mt-16 max-w-[1000px]",children:[M0("span",{"aria-hidden":!0,className:"pointer-events-none absolute top-0 h-full w-px bg-line left-[7px] min-[801px]:left-1/2 min-[801px]:-translate-x-1/2"}),v.map((g,b)=>{let f=b%2===0;return j3("li",{className:"relative mb-14 pl-8 last:mb-0 min-[801px]:grid min-[801px]:grid-cols-2 min-[801px]:gap-16 min-[801px]:pl-0",children:[M0("span",{className:"absolute top-1.5 h-2.5 w-2.5 rounded-full bg-accent left-[2px] min-[801px]:left-1/2 min-[801px]:-translate-x-1/2",style:DT}),j3("div",{className:f?"min-[801px]:col-start-1 min-[801px]:pr-8 min-[801px]:text-right":"min-[801px]:col-start-2 min-[801px]:pl-8",children:[M0("div",{className:"mb-2 font-mono text-[length:var(--size-label,13px)] tracking-[0.24em] text-accent",children:g.date?k(g.date):""}),M0("div",{className:["max-w-[520px] max-[800px]:max-w-none",f?"min-[801px]:ml-auto":""].join(" "),children:M0(kd,{entry:g})})]})]},b)})]})]})})})}var e5={eyebrow:A.eyebrow,title:`Section heading
|
|
@@ -151,4 +151,4 @@ ${s}`:t.push({type:"p",text:s})});return t}var o$=()=>[{label:p("First section")
|
|
|
151
151
|
`;function tZ(){let{settings:e,selected:t,select:a,websiteName:s,templateChrome:c,templateName:l,chromePlaceholder:r,themeSwitchShown:o}=N3(),i=c?l?.trim()||p("Template"):s?.trim()||Kl,n=c||r;return P91("div",{className:"sf-preview-header-pick sf-theme-surfaces","data-selected":t||void 0,onClick:h=>{h.stopPropagation(),a()},children:[eZ("style",{children:T91}),eZ(Bf,{previewSettings:e??void 0,editorPreview:!0,showThemeToggle:o,wordmark:i,hideLogo:n,hideMenu:n})]})}import{Render as Z91}from"efficient-easel/render";import{useEffect as E91,useState as V91}from"react";import{jsx as I91}from"react/jsx-runtime";var N91=["none","always","on_scroll_up"],_91=e=>N91.includes(e)?e:"always";function Zf({sticky:e,topTextColor:t,heightPx:a,theme:s,children:c}){let l=_91(e),r=KB(a),{headerRef:o,scrolled:i,navHidden:n}=ch({stickyMode:l,heightPx:r}),h=hh(t),m=h==="auto"?null:{[nh]:h},u=lh(s),d=rh(Be()),[v,g]=V91(!1);E91(()=>{let w=o.current?.ownerDocument??document,z=()=>g(w.documentElement.getAttribute("data-theme")==="light");z();let M=new MutationObserver(z);return M.observe(w.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>M.disconnect()},[o]);let b=i||d,f=oh(v,d);return I91("header",{ref:o,"data-scrolled":i||void 0,"data-box-header":"",...m,className:["sf-site-header",...u?[u.className]:[],"flex flex-col justify-center",l==="none"?"absolute":"fixed","inset-x-0 top-0 z-50",b?"border-b border-line backdrop-blur-md":"border-b border-transparent","transition-[background,border-color,transform] duration-300 ease-out"].join(" "),style:{...u?u.style:null,minHeight:`var(${ar}, ${r}px)`,...n?{transform:"translateY(-100%)"}:null,...b?{background:f,color:"var(--fg)","--sf-header-ground":f}:{color:"var(--sf-header-overlay-fg)","--sf-header-ground":"var(--sf-header-overlay-ground)"}},children:c})}var R91={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"};function B91(e){return Array.isArray(e)&&e.length>0&&e.every(t=>!!t&&typeof t=="object"&&typeof t.type=="string")}function Df(e){let t=e.props,a=!1;if(e.type&&t)for(let[s,c]of Object.entries(R91)){let l=s.indexOf("."),r=s.slice(0,l),o=s.slice(l+1);if(r!==e.type||!(o in t))continue;let i=t[o],n={...t};delete n[o],(!(c in n)||n[c]===void 0)&&(n[c]=i),t=n,a=!0}if(t){let s=t;for(let[c,l]of Object.entries(t)){if(!B91(l))continue;let r=l.map(Df);r.some((o,i)=>o!==l[i])&&(s===t&&(s={...t}),s[c]=r,a=!0)}t=s}return a?{...e,props:t}:e}function aZ(e){let t=e;if(!t||typeof t!="object")return e;let a=!1,s={...e};if(Array.isArray(t.content)){let c=t.content.map(Df);c.some((l,r)=>l!==t.content[r])&&(s.content=c,a=!0)}if(t.zones&&typeof t.zones=="object"){let c=!1,l=Object.fromEntries(Object.entries(t.zones).map(([r,o])=>{if(!Array.isArray(o))return[r,o];let i=o.map(Df);return i.some((n,h)=>n!==o[h])&&(c=!0),[r,i]}));c&&(s.zones=l,a=!0)}return a?s:e}import{Fragment as G91,jsx as Of}from"react/jsx-runtime";var D91=null,O91=()=>D91??={...Gf,root:{...Gf.root,render:({children:e})=>Of(G91,{children:e})}};function qf({group:e}){let t=aZ({root:{props:{}},content:[e],zones:{}}),a=e.props??{};return Of(Zf,{sticky:a.sticky,topTextColor:a.topTextColor,heightPx:a.heightPx,theme:a.sectionAccent,children:Of(Z91,{config:O91(),data:t})})}import{jsx as sZ}from"react/jsx-runtime";function Wf({editing:e=!1}){let{headerGroup:t}=aw();return e?t?sZ(qf,{group:t}):sZ(tZ,{}):null}import{jsx as q91}from"react/jsx-runtime";var cZ={label:"Header",render:({puck:e})=>q91(Wf,{editing:e?.isEditing})};import{useEffect as be1,useState as EZ}from"react";var lZ="flex items-stretch gap-3.5 max-[720px]:flex-wrap max-[720px]:[&>.flex-1]:order-last max-[720px]:[&>.flex-1]:basis-full";import{useEffect as Jf,useRef as ne1,useState as TZ}from"react";import{jsx as Uf,jsxs as rZ}from"react/jsx-runtime";var W91="Please enter a valid email address.";function Fc({email:e,onEmailChange:t,status:a,onResetVerdict:s,onSubmit:c,submitLabel:l,errorMessage:r,inputAriaLabel:o,buttonClassName:i,className:n,placeholder:h="you@example.com"}){return rZ("form",{className:[n,"flex flex-col gap-2"].filter(Boolean).join(" "),noValidate:!0,onSubmit:m=>{m.preventDefault(),c()},children:[rZ("div",{className:"flex items-stretch gap-2",children:[Uf("input",{type:"email",value:e,onChange:m=>{t(m.target.value),(a==="invalid"||a==="error")&&s()},placeholder:h,"aria-label":o,disabled:a==="sending",className:"min-w-0 flex-1 border-2 border-line bg-bg px-3.5 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"}),Uf("button",{type:"submit",disabled:a==="sending",className:i,children:a==="sending"?"Sending\u2026":l})]}),(a==="error"||a==="invalid")&&Uf("p",{role:"alert",className:"font-mono text-[11px] uppercase tracking-[0.18em]",style:{color:"var(--alert)"},children:a==="invalid"?W91:r})]})}import{jsx as Q5,jsxs as la}from"react/jsx-runtime";function Tc({vehicle:e,escape:t,override:a,verdict:s,showChangeCar:c,cascadeErrorNote:l,askNote:r}){let o=e.appliedName!=="";return la("div",{className:"pb-2",children:[la("div",{className:"mb-3 flex items-center justify-between gap-4 font-mono text-[13px] font-semibold uppercase tracking-[0.2em] text-fg",children:[Q5("span",{children:"Vehicle Fitment"}),t]}),a?Q5("div",{className:"flex flex-col gap-3",children:a}):o?la("div",{className:"flex flex-col gap-3",children:[s,c&&Q5("div",{children:Q5("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"})})]}):la("div",{className:"flex flex-col gap-3",children:[Q5($3,{cascade:e.cascade,compact:!0}),e.cascade.cascadeError&&Q5("p",{className:"font-mono text-[12px] leading-relaxed tracking-[0.1em] text-fg-dim",children:l}),Q5("span",{className:"font-mono text-[12px] tracking-[0.1em] text-fg-dim",children:r})]})]})}function jf({vehicle:e}){return e.appliedName?la("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:[la("span",{children:["Showing fitment for your"," ",Q5("strong",{className:"font-semibold text-fg",children:e.appliedName})]}),Q5("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}function i5({tone:e,children:t}){return Q5("div",{className:["border px-3 py-2.5 font-mono text-[13px] leading-relaxed tracking-[0.1em] text-fg-dim",e==="good"?"border-accent":e==="bad"?"border-alert":"border-dashed border-line"].join(" "),children:t})}import{useEffect as U91,useState as oZ}from"react";function ph(e,t){let[a,s]=oZ(null),[c,l]=oZ(!1),r=t?.make??"",o=t?.model??"",i=t?.year??null,n=t?.modification??"",h=t!==null;return U91(()=>{if(!h||i===null){s(null),l(!1);return}let m=!0;return s(null),l(!0),zS(e,{make:r,model:o,year:i,modification:n}).then(u=>{if(!m)return;let d=u.vehicle;d.make!==r||d.model!==o||d.year!==i||d.modification!==n||(s(u),l(!1))}),()=>{m=!1}},[e,r,o,i,n,h]),{answer:a,loading:c}}function uh(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}`:"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 dh={fits:"Fits",doesNotFit:"Not your size",unknown:"Unknown"};function j91(e,t,a){if(!e)return"unknown";let s=t.filter(l=>l.size===a);if(s.length===0)return"unknown";let c=s.map(l=>Ga(e,l.sku));return c.includes("fits")?"fits":c.every(l=>l==="doesNotFit")?"doesNotFit":"unknown"}var Kf={fits:{color:"var(--accent)",dashed:!1},doesNotFit:{color:void 0,dashed:!1},unknown:{color:void 0,dashed:!0}};function iZ(e,t){if(!e)return[];let a=[];for(let n of t)a.includes(n.size)||a.push(n.size);let s=a.filter(n=>j91(e,t,n)==="fits"),c=n=>{let h=o4(n);return h?q4(h):null},l=new Map;for(let n of s){let h=c(n);h!==null&&!l.has(h)&&l.set(h,n)}let r=[],o=new Set,i=new Set;for(let n of e.oemSizes){let h=c(n),m=h===null?void 0:l.get(h),u=m??n;o.has(u)||(o.add(u),h!==null&&i.add(h),r.push({size:u,made:m!==void 0}))}for(let n of s){let h=c(n);h!==null&&i.has(h)||o.has(n)||(o.add(n),r.push({size:n,made:!0}))}return r}import{Fragment as nZ,jsx as R4,jsxs as I4}from"react/jsx-runtime";function $f({slug:e,variants:t,vehicle:a,manualMode:s,setManualMode:c}){let{answer:l,loading:r}=ph(e,s?null:io(a.applied?.vehicle)),o=a.appliedName;return R4(Tc,{vehicle:a,escape:R4("button",{type:"button",className:"cursor-pointer text-right text-accent hover:underline",onClick:()=>c(i=>!i),children:s?"\u2190 Find by vehicle":"Select by specs instead \u2192"}),override:s?I4(i5,{tone:"quiet",children:[R4("strong",{className:"font-semibold text-fg",children:"You are choosing by size."}),I4("span",{className:"mt-1.5 block",children:["Pick the size above. We have not checked it against any car \u2014 make sure it matches the placard on your door."," ",R4(L1,{href:"/contact",className:"text-accent hover:underline",children:"Ask us if you are unsure \u2192"})]})]}):null,verdict:R4(K91,{answer:l,loading:r,car:o,variants:t,onChange:a.clear}),showChangeCar:!1,cascadeErrorNote:I4(nZ,{children:["Vehicle data is unavailable right now. Pick your size above, or"," ",R4(L1,{href:"/contact",className:"text-accent hover:underline",children:"ask us to check it \u2192"})]}),askNote:"Asked once. Every tyre after this one is already filled in."})}function K91({answer:e,loading:t,car:a,variants:s,onChange:c}){if(t||!e)return I4(i5,{tone:"quiet",children:[R4("strong",{className:"font-semibold text-fg",children:"Checking your car\u2026"})," ",I4("span",{children:["Reading the factory tyre sizes for your ",a,"."]})]});let l=iZ(e,s),r=e.status==="doesNotFit"?"You can still order any size here \u2014 check it suits your car first.":"",o=l.length===0?uh(e):"",i=o&&r?`${o} ${r}`:o||r;return I4(i5,{tone:e.status==="fits"?"good":"quiet",children:[I4("span",{className:"block",children:[e.status==="fits"?I4("strong",{className:"font-semibold text-accent",children:["\u2713 Made in a size your ",a," takes"]}):e.status==="doesNotFit"?I4("strong",{className:"font-semibold text-fg",children:["Not made in a size your ",a," takes"]}):I4("strong",{className:"font-semibold text-fg",children:["We cannot check this tyre against your ",a]}),I4("span",{className:"whitespace-nowrap",children:[" \xB7 ",R4("button",{type:"button",onClick:c,"aria-label":`Change car - forget ${a} and ask again`,className:"cursor-pointer uppercase tracking-[0.16em] text-accent underline underline-offset-4 hover:text-fg",children:"Change car"})]})]}),i?R4("span",{className:"mt-1.5 block",children:i}):null,l.length>0?I4(nZ,{children:[R4("span",{className:"mt-1.5 block",children:"Your car takes:"}),R4("ul",{className:"mt-2 flex flex-wrap gap-1.5",children:l.map(n=>{let h=n.made?Kf.fits:Kf.doesNotFit;return R4("li",{className:"border border-line px-2 py-1 text-[11px] uppercase tracking-[0.14em]",style:h.color?{color:h.color,borderColor:h.color}:void 0,children:n.made?`${n.size} \xB7 ${dh.fits}`:n.size},n.size)})})]}):null]})}import{useEffect as hZ,useState as mZ}from"react";var gh="(max-width: 720px) 88vw, (max-width: 1100px) 44vw, 700px";function pZ(e,t,a){return a<=1?0:((e+t)%a+a)%a}function uZ(e,t,a){return[{glyph:"\u25C1",label:"Previous angle",onClick:()=>a(pZ(e,-1,t))},{glyph:"\u27F3",label:"Reset to first angle",onClick:()=>a(0)},{glyph:"\u25B7",label:"Next angle",onClick:()=>a(pZ(e,1,t))}]}function $91(e){let{props:t}=Lx({src:e,alt:"",fill:!0,sizes:gh}),a=new window.Image;return t.sizes&&(a.sizes=t.sizes),t.srcSet&&(a.srcset=t.srcSet),a.src=t.src,a.decode()}function dZ(e,t,a=$91){let[s,c]=mZ(()=>new Set),[l,r]=mZ(t),o=e.join(`
|
|
152
152
|
`);hZ(()=>{let n=!0,h=m=>{n&&c(u=>u.has(m)?u:new Set(u).add(m))};for(let m of o?o.split(`
|
|
153
153
|
`):[])a(m).then(()=>h(m),()=>h(m));return()=>{n=!1}},[o]);let i=t===void 0||s.has(t)||l===void 0;return hZ(()=>{i&&l!==t&&r(t)},[i,l,t]),i?t:l}import{Fragment as X91,jsx as w3,jsxs as Y3}from"react/jsx-runtime";function Yf({selection:e,spec:t,vehicle:a,wheel:s}){let{manualMode:c,setManualMode:l}=e,r=fn(e.rows,e.preOrder),o=a.appliedName!=="",i=(s?.variants??[]).some(sg),n=SI({wheel:s,applied:o,fit:a.fit,resolving:a.resolving});return w3(Tc,{vehicle:a,escape:w3("button",{type:"button",className:"cursor-pointer text-right text-accent hover:underline",onClick:()=>l(h=>!h),children:c?"\u2190 Find by vehicle":"Select by specs instead \u2192"}),override:c?Y3(i5,{tone:"quiet",children:[w3("strong",{className:"font-semibold text-fg",children:"You are choosing by the numbers."}),Y3("span",{className:"mt-1.5 block",children:[t?`${i?"The set is":"All four wheels are"} ${t}. We have not checked that against any car \u2014 make sure it matches yours.`:r?"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."," ",w3(L1,{href:"/fitment",className:"text-accent hover:underline",children:"Talk to an engineer \u2192"})]})]}):null,verdict:w3(Y91,{verdict:n,car:a.appliedName}),showChangeCar:n.state!=="fits"&&n.state!=="checking",cascadeErrorNote:Y3(X91,{children:["Vehicle data is unavailable right now. Pick your wheel by its specs instead, or"," ",w3(L1,{href:"/contact",className:"text-accent hover:underline",children:"ask us to check it \u2192"})]}),askNote:"Asked once. Every wheel after this one is already filled in."})}function Y91({verdict:e,car:t}){switch(e.state){case"checking":return Y3(i5,{tone:"quiet",children:[w3("strong",{className:"font-semibold text-fg",children:"Checking fitment\u2026"})," ",Y3("span",{children:["Reading the factory wheel specs for your ",t,"."]})]});case"fits":return Y3(i5,{tone:"good",children:[Y3("strong",{className:"font-semibold text-accent",children:["\u2713 Fits your ",t]}),w3("ul",{className:"mt-2 flex flex-wrap gap-1.5",children:e.checks.map(a=>w3("li",{className:["px-2 py-1 text-[11px] uppercase tracking-[0.14em] text-fg-dim",a.value!==null?"border border-line":"border border-dashed border-line"].join(" "),children:a.value??`${a.name} not published, not checked`},a.key))})]});case"fits-with-warning":return Y3(i5,{tone:"good",children:[Y3("strong",{className:"font-semibold text-accent",children:["\u2713 Fits your ",t]}),w3("ul",{className:"mt-2 flex flex-wrap gap-1.5",children:e.checks.map(a=>w3("li",{className:["px-2 py-1 text-[11px] uppercase tracking-[0.14em] text-fg-dim",a.value!==null?"border border-line":"border border-dashed border-line"].join(" "),children:a.value??`${a.name} not published, not checked`},a.key))}),Y3("span",{className:"mt-2 block border-l-2 border-alert pl-2.5",children:[w3("strong",{className:"font-semibold text-fg",children:"Check the offset. "}),h9(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."," ",w3(L1,{href:"/contact",className:"text-accent hover:underline",children:"Ask us if you are unsure \u2192"})]})]});case"no-fit":return Y3(i5,{tone:"bad",children:[Y3("strong",{className:"font-semibold",style:{color:"var(--alert)"},children:["\u2717 Does not fit your ",t]}),w3("span",{className:"mt-1.5 block",children:h9(e.failure)})]});case"unknown":return Y3(i5,{tone:"quiet",children:[w3("strong",{className:"font-semibold text-fg",children:e.missing==="vehicle"?`We cannot check this wheel against your ${t}`:"We cannot check this wheel"}),Y3("span",{className:"mt-1.5 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."," ",w3(L1,{href:"/contact",className:"text-accent hover:underline",children:"Ask us before you order \u2192"})]})]});default:return null}}import{useState as bZ}from"react";import{useCallback as vZ,useRef as J91,useState as Q91}from"react";function gZ(e,t,a){return{productSlug:e,email:a.trim(),size:t?k8(t):""}}function fZ(){let[e,t]=Q91("idle"),a=J91(!1),s=vZ(()=>{a.current=!1,t("idle")},[]),c=vZ(async({productSlug:l,size:r,email:o,dryRun:i=!1})=>{if(!a.current){if(!ve(o)){t("invalid");return}a.current=!0,t("sending");try{i||await v0.createPreOrderIntent(gZ(l,r,o))}catch{a.current=!1,t("error");return}a.current=!1,t("sent")}},[]);return{status:e,submit:c,reset:s}}import{jsx as ra,jsxs as oa}from"react/jsx-runtime";function Xf({wheel:e,editing:t=!1}){let a=e.sizePairs??[],[s,c]=bZ(a.length>0?0:-1),[l,r]=bZ(""),{status:o,submit:i,reset:n}=fZ(),h=s>=0?a[s]??null:null;function m(){i({productSlug:e.slug,size:h,email:l,dryRun:t})}return oa("div",{className:"flex flex-col gap-5 border-t border-line pt-[18px]",children:[oa("div",{className:"border-2 border-accent/40 px-4 py-3.5 font-mono text-[12px] leading-relaxed tracking-[0.08em] text-fg",style:{background:"color-mix(in oklab, var(--accent) 6%, transparent)"},children:[ra("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."]}),a.length>0&&oa("div",{children:[oa("div",{className:"mb-3.5 font-mono text-[13px] font-semibold uppercase tracking-[0.22em] text-fg",children:["Size \xB7"," ",ra("span",{className:"text-accent",children:h?k8(h):"Select a size"})]}),ra("div",{className:"flex flex-wrap gap-1.5",children:a.map((u,d)=>{let v=d===s;return oa("button",{type:"button",onClick:()=>{c(d),o==="sent"&&n()},className:["relative cursor-pointer border-2 px-4 py-3 text-left font-mono uppercase transition-colors",v?"border-accent text-fg outline outline-1 outline-accent -outline-offset-1":"border-fg-dim/50 text-fg hover:border-accent"].join(" "),style:v?{background:"color-mix(in oklab, var(--accent) 14%, transparent)"}:void 0,children:[v&&ra("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),ra("span",{className:"block text-[14px] tracking-[0.18em]",children:k8(u)})]},k8(u))})})]}),o==="sent"?oa("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,"."]}):ra(Fc,{email:l,onEmailChange:r,status:o,onResetVerdict:n,onSubmit:m,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 ee1}from"react";import{Fragment as te1,jsx as vh}from"react/jsx-runtime";function fh({src:e,alt:t,fallback:a,fill:s=!1,width:c,height:l,sizes:r,className:o,style:i,priority:n,draggable:h,imageKey:m,imageWrapperClassName:u,onImageClick:d,imageButtonClassName:v,imageButtonLabel:g}){let[b,f]=ee1(null),w=e||"";if(!(w!==""&&b!==w))return vh(te1,{children:a});let M=vh(V3,{src:w,alt:t,...s?{fill:!0}:{width:c??1e3,height:l??1e3},sizes:r,className:o,style:i,priority:n,draggable:h,onError:()=>f(w)},m??w),S=u?vh("div",{className:u,children:M}):M;return d?vh("button",{type:"button",onClick:d,"aria-label":g,className:v,children:S}):S}function xZ(e){let t=e.angles??(e.src?[e.src]:[]),a=[],s=[];for(let c of t)(c.split("/").pop()??"").includes("20-20")?a.push(c):s.push(c);return[...s,...a]}var yZ="Image for reference only. Actual product may vary.",zZ=e=>String(Number(e));function wZ(e,t,a,s){let c=e.renderFits;if(!c||!t||t.diameter==null||t.width==null)return!1;let l=s&&a!=null?c.lug?.[String(a)]:c.angles;if(!l)return!1;let r=zZ(t.diameter);if(!(l.sizes.length===0||l.sizes.includes(`${r}x${zZ(t.width)}`)||l.sizes.includes(r)))return!0;let i=l.lugs??[];return!s&&a!=null&&i.length>0&&!i.includes(a)}import{Fragment as CZ,jsx as B4,jsxs as se1}from"react/jsx-runtime";function bh(e,t){return e.captions[t]?.trim()||`Photo ${t+1}`}function xh({text:e}){return e==="FusionForge\xAE"?se1(CZ,{children:["FusionForge",B4(o6,{})]}):B4(CZ,{children:e})}function kZ(e,t,a){if(e.kind==="tyre"){let h=e.source,m=t.shown.size??h.sizes[0]??"",u=h.variants.find(g=>g.size===m),d=u?.specs.tireType??h.variants[0]?.specs.tireType??null,v=[u?.image,h.coverImage].filter(g=>!!g);return{heading:Ui(h.brand,h.name),photos:v.slice(0,1),tint:void 0,stageImage:()=>B4(m6,{image:u?.image??h.coverImage,size:m,type:d,sizes:gh,priority:!0,className:"h-full w-full"}),thumbImage:()=>null,captions:[],thumbFallbackCells:0,galleryHint:"",referenceNote:"",metaValue:m,specCaption:u?[u.specs.loadIndex,u.specs.speedRating].filter(Boolean).join(""):"",originCaption:h.brand,unitLabel:"per tyre",vehicle:B4($f,{slug:h.slug,variants:h.variants,vehicle:t.vehicle,manualMode:t.manualMode,setManualMode:t.setManualMode}),vehicleMemory:t.manualMode?null:B4(jf,{vehicle:t.vehicle}),vehicleAnswersSpecs:!1,preOrder:null}}let s=e.source,c=cN(s,t.shown.finish),l=Z7(s,t.part),r=zn(t),o=hg(c,r),i=o?[...o]:xZ(c),n=i.length>0?i:s.coverImage?[s.coverImage]:[];return{heading:e.name,photos:n,tint:c.color,stageImage:({photo:h,alt:m,label:u,onZoom:d,fit:v})=>B4(fh,{src:h,alt:m,fill:!0,sizes:gh,className:v==="cover"?"object-cover":"object-contain",priority:!0,onImageClick:d,imageButtonClassName:"relative block h-[88%] w-[88%] cursor-zoom-in",imageButtonLabel:u,fallback:B4(w8,{spokes:s.spokes,mesh:s.mesh,className:"block h-[70%] w-[70%]"})}),thumbImage:({photo:h,alt:m})=>B4(fh,{src:h,alt:m,fill:!0,sizes:"(max-width: 720px) 20vw, (max-width: 1100px) 10vw, 120px",className:"object-contain",imageWrapperClassName:"relative h-[80%] w-[80%]",fallback:B4(w8,{spokes:s.spokes,mesh:s.mesh,className:"block h-[55%] w-[55%]"})}),captions:n.map(h=>c.captions?.[h]),thumbFallbackCells:4,galleryHint:ae1(n,c,r,t.manualMode),referenceNote:wZ(c,l,r,o!=null)?yZ:"",metaValue:c.name,specCaption:l?qs(l):"",originCaption:s.process==="FusionForge\xAE"?"FusionForge\xAE \xB7 Hybrid":`${s.process} \xB7 1-piece`,unitLabel:"per wheel",vehicle:B4(Yf,{selection:t,spec:l?qs(l):"",vehicle:t.vehicle,wheel:s}),vehicleMemory:t.manualMode?null:B4(jf,{vehicle:t.vehicle}),vehicleAnswersSpecs:!0,preOrder:B4(Xf,{wheel:s,editing:a})}}function ae1(e,t,a,s){return e.length>=2||a!=null||!Object.values(t.lugRenderings??{}).some(l=>Array.isArray(l)&&l.filter(Boolean).length>=2)?"":s?"Pick a bolt pattern to see every angle":"Pick your vehicle to see every angle"}import{createContext as ce1,useContext as le1,useEffect as re1,useState as MZ}from"react";import{jsx as ie1}from"react/jsx-runtime";var SZ="storefront-wishlist";function oe1(e){let t=JSON.parse(e);return Array.isArray(t)?t.filter(a=>typeof a=="string"):[]}var LZ=ce1(null);function w80({children:e}){let[t,a]=MZ([]),[s,c]=MZ(!1);re1(()=>{let o=e3.getItem(SZ);try{o&&a(oe1(o))}catch{}c(!0)},[]);function l(o){let i=t.includes(o)?t.filter(n=>n!==o):[...t,o];a(i),e3.setItem(SZ,JSON.stringify(i))}let r={slugs:t,ready:s,has:o=>t.includes(o),toggle:l,count:t.length};return ie1(LZ.Provider,{value:r,children:e})}function AZ(){let e=le1(LZ);if(!e)throw new Error("useWishlist must be used within a WishlistProvider");return e}var HZ="data-option-row";import{Fragment as n5,jsx as y1,jsxs as $1}from"react/jsx-runtime";var he1=4e3;function me1(e){return e?[e.year,e.make,e.model,e.modification].join("-"):""}function ia({product:e,selection:t,onLightbox:a,editing:s=!1,pricePlacement:c="top",showVehicleFitment:l=!0,heroLayout:r=Q7,imageRatio:o=e8,textAlign:i=u9,showSpecTable:n=!0,showPriceQuote:h=!0,galleryMode:m=t8,imageFit:u=a8}){let d=$t(r),v=On(i),g=Gn(o),b=qn(m),f=ER(Wn(u),KV(e)),w=d==="imageRight"?`${100-g}fr ${g}fr`:`${g}fr ${100-g}fr`,{picked:z,pick:M,qty:S,setQty:H,choice:I,setChoice:E,angleIdx:O,setAngleIdx:T,showValidation:P,setShowValidation:N,manualMode:D,vehicle:Z,rows:_,facts:U,part:V,outOfStock:J,offer:j,preOrder:W,canAddToCart:n1,currency:z1,price:$,set:c1,msrpLabel:g1}=t,K=kZ(e,t,s),{bullets:u1}=aL(),b1=ZV(e),T0=GV(e),P0=l?K.vehicle:null,H1=l?K.vehicleMemory:null,[c0,l0]=TZ(!1);Jf(()=>{let Q=()=>{l0(document.documentElement.getAttribute("data-theme")==="light")};Q();let k1=new MutationObserver(Q);return k1.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>k1.disconnect()},[]);let{add:Y1,open:y2,warmCatalog:a0}=r4();Jf(()=>{s||a0(e.kind)},[s,e.kind,a0]);let H2=_.filter(Q=>!W||Q.values.length>0),g0=H2.filter(Q=>Q.role==="resolves"),p1=H2.filter(Q=>Q.role==="describes"&&!$V(T0,Q.key)),W1=p1.findIndex(Q=>Q.chosen===null),i0=(!P0||!K.vehicleAnswersSpecs||t.fitmentSet)&&fn(_,W)?W1===-1?p1:p1.slice(0,W1+1):[],E0=[...g0,...i0],w0=$1("div",{className:"flex items-baseline gap-5 border-t border-line pt-[18px]",children:[g1&&y1("div",{className:"font-mono text-[length:var(--size-label,15px)] text-fg-dim line-through",children:g1}),y1("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",children:b1?bC($,z1):ge($,z1)}),$.priced&&y1("div",{className:"font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:K.unitLabel}),$.setTotal!=null&&$1("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:[j.quantityLabel,": ",Z2(c1,z1)]})]}),o2=ne1(null);return Jf(()=>{s||o2.current===e.slug||(o2.current=e.slug,xC({itemId:V?`${e.slug}|${V.id}`:e.slug,itemName:e.name,variant:K.metaValue,pricePerSet:$.setTotal??$.fromSetTotal??0,currency:z1}))},[s,e.slug,e.name,K.metaValue,V,$,z1]),$1(n5,{children:[y1("nav",{className:"border-b border-line px-[max(var(--sf-site-gutter,40px),calc((100%_-_var(--sf-page-cap,100%))/2_+_var(--sf-site-gutter,40px)))] pt-4 pb-4 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim max-[720px]:px-[min(20px,var(--sf-site-gutter,40px))]",style:c0?void 0:{background:"var(--section-bg)"},children:e.crumbs.map((Q,k1)=>$1("span",{children:[k1>0&&$1(n5,{children:[y1("span",{className:"mx-3 text-accent",children:"/"}),y1("wbr",{})]}),Q.href?y1(L1,{href:Q.href,className:"hover:text-fg",children:y1(xh,{text:Q.label})}):y1("span",{className:"text-fg",children:y1(xh,{text:Q.label})})]},`${Q.label}-${k1}`))}),$1("section",{"data-hero-layout":d,"data-hero-align":v,className:["grid gap-10 px-[max(var(--sf-site-gutter,40px),calc((100%_-_var(--sf-page-cap,100%))/2_+_var(--sf-site-gutter,40px)))] py-14 max-[720px]:px-[min(20px,var(--sf-site-gutter,40px))] max-[720px]:py-8",d==="stacked"?"grid-cols-1":"[grid-template-columns:var(--hero-cols)] max-[1100px]:[grid-template-columns:1fr]"].join(" "),style:{...c0?{}:{background:"var(--section-bg)"},...d==="stacked"?{}:{"--hero-cols":w}},children:[$1("div",{"data-hero-gallery":b,"data-hero-fit":f,className:b==="tiled"?"flex items-start gap-3 max-[720px]:gap-2":void 0,style:d==="imageRight"?{order:2}:void 0,children:[$1("div",{className:b==="tiled"?"min-w-0 flex-1":void 0,children:[y1(de1,{name:e.name,view:K,angleIdx:O,onSelect:T,isLight:c0,onLightbox:a,fit:f}),K.referenceNote&&y1("p",{"data-hero-reference-note":!0,className:"mt-2 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.18em] text-fg-dim",children:K.referenceNote}),K.galleryHint&&y1("p",{"data-hero-gallery-hint":!0,className:"mt-2 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.18em] text-fg-dim",children:K.galleryHint})]}),b!=="main"&&y1(ge1,{name:e.name,view:K,angleIdx:O,onSelect:T,isLight:c0,tiled:b==="tiled"})]}),$1("div",{className:["flex flex-col gap-7",v==="center"?"items-center text-center":""].filter(Boolean).join(" "),style:d==="imageRight"?{order:1}:void 0,children:[$1("div",{children:[$1("div",{className:"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",children:[y1("span",{children:y1(xh,{text:e.eyebrow})}),e.badge&&$1(n5,{children:[y1("span",{children:"\xB7"}),y1("span",{children:e.badge})]})]}),y1("h1",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(48px,5.5vw,84px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] leading-[0.92] tracking-[-0.035em]",children:(()=>{let Q=K.heading.lastIndexOf(" ");if(Q===-1)return K.heading;let k1=K.heading.slice(0,Q),m0=K.heading.slice(Q+1);return $1(n5,{children:[k1," ",$1("em",{className:"font-normal italic text-accent",children:[m0,"."]})]})})()})]}),c!=="belowSpecs"&&h&&w0,H1,g0.map(Q=>y1(FZ,{row:Q,onPick:M},Q.key)),W&&K.preOrder?$1(n5,{children:[c==="belowSpecs"&&h&&w0,K.preOrder]}):$1(n5,{children:[P0,i0.map(Q=>y1(FZ,{row:Q,onPick:M},Q.key)),n&&y1(pe1,{facts:U}),(j.packs.length>0||j.extra||j.spareCounts.length>0)&&$1("div",{className:"border-b border-line pb-[26px]",children:[j.packs.length>0&&$1(n5,{children:[y1("div",{className:"mb-3.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:"How many"}),y1("div",{className:"flex flex-wrap gap-1.5",children:j.packs.map(Q=>$1("button",{type:"button",onClick:()=>E(k1=>({...k1,unit:Q.value})),"aria-pressed":I.unit===Q.value,className:["relative cursor-pointer border-2 px-4 py-3 text-left font-mono uppercase transition-colors",I.unit===Q.value?"border-accent text-fg outline outline-1 outline-accent -outline-offset-1":"border-fg-dim/50 text-fg hover:border-accent"].join(" "),style:I.unit===Q.value?{background:"color-mix(in oklab, var(--accent) 14%, transparent)"}:void 0,children:[I.unit===Q.value&&y1("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),y1("span",{className:"block text-[length:var(--size-label,14px)] tracking-[0.18em]",children:Q.label})]},Q.value))})]}),j.extra&&$1("label",{className:`${j.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:[y1("input",{type:"checkbox",checked:I.spares>0,onChange:Q=>E(k1=>({...k1,spares:Q.target.checked?nr:0})),className:"h-4 w-4 cursor-pointer accent-[var(--accent)]"}),j.extra.label]}),j.spareCounts.length>0&&$1(n5,{children:[y1("div",{className:"mb-3.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:e9.howMany}),y1("div",{className:"flex flex-col gap-1.5 sm:flex-row sm:flex-wrap",children:j.spareCounts.map(Q=>{let k1=Q.value-o7,m0=I.spares===k1;return $1("button",{type:"button",onClick:()=>E(N0=>({...N0,spares:k1})),"aria-pressed":m0,className:["relative cursor-pointer border-2 px-4 py-3 text-left font-mono uppercase transition-colors",m0?"border-accent text-fg outline outline-1 outline-accent -outline-offset-1":"border-fg-dim/50 text-fg hover:border-accent"].join(" "),style:m0?{background:"color-mix(in oklab, var(--accent) 14%, transparent)"}:void 0,children:[m0&&y1("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),$1("span",{className:"block text-[length:var(--size-label,14px)] tracking-[0.18em]",children:[Q.value," \xB7 ",Q.label]})]},Q.value)})})]}),j.spareSide&&$1(n5,{children:[y1("div",{className:"mb-3.5 mt-[26px] font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:j.spareSide.label}),y1("div",{className:"flex flex-wrap gap-1.5",children:j.spareSide.options.map(Q=>{let k1=I.spareSide===Q.value;return $1("button",{type:"button",onClick:()=>E(m0=>({...m0,spareSide:Q.value})),"aria-pressed":k1,className:["relative cursor-pointer border-2 px-4 py-3 text-left font-mono uppercase transition-colors",k1?"border-accent text-fg outline outline-1 outline-accent -outline-offset-1":"border-fg-dim/50 text-fg hover:border-accent"].join(" "),style:k1?{background:"color-mix(in oklab, var(--accent) 14%, transparent)"}:void 0,children:[k1&&y1("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),y1("span",{className:"block text-[length:var(--size-label,14px)] tracking-[0.18em]",children:Q.label})]},Q.value)})})]})]}),c==="belowSpecs"&&h&&w0,$1("div",{className:lZ,children:[!(b1&&!$.priced)&&y1(Wa,{value:S,onChange:H,size:"large"}),b1&&!$.priced?y1(L1,{href:"/contact",className:"flex-1 cursor-pointer bg-btn px-6 py-4 text-center font-mono text-[length:var(--size-label,14px)] font-bold uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg",children:mr}):$.priced?J?y1("button",{type:"button",disabled:!0,"aria-disabled":!0,className:"flex-1 cursor-not-allowed border-2 border-dashed border-fg-dim/20 px-6 py-4 font-mono text-[length:var(--size-label,14px)] font-bold uppercase tracking-[0.32em] text-fg-dim/40",children:"Out of stock"}):$1("button",{type:"button",[me]:"",onClick:()=>{if(!n1){N(!0),window.setTimeout(()=>N(!1),he1);return}if(N(!1),s)return;let Q=iN(e,V,z,{choice:I,qty:S},{fitmentLabel:D?K.specCaption:Z.appliedName?`For ${Z.appliedName}`:"",fitmentKey:D?`manual|${K.specCaption}`:`vehicle|${me1(Z.applied?.vehicle)}`});Q&&(Y1(Q),y2())},"aria-disabled":!n1,className:["flex-1 px-6 py-4 font-mono text-[length:var(--size-label,14px)] font-bold uppercase tracking-[0.32em] transition-colors",n1?"cursor-pointer bg-btn text-btn-ink hover:bg-fg hover:text-bg":"cursor-pointer border-2 border-dashed border-accent/50 text-accent/80 hover:border-accent hover:text-accent"].join(" "),style:n1?void 0:{background:"color-mix(in oklab, var(--accent) 6%, transparent)"},children:["Add to Cart",$.setTotal!=null?` \xB7 ${Z2(c1,z1)}`:""]}):y1("button",{type:"button",disabled:!0,"aria-disabled":!0,className:"flex-1 cursor-not-allowed border-2 border-dashed border-fg-dim/20 px-6 py-4 font-mono text-[length:var(--size-label,14px)] font-bold uppercase tracking-[0.32em] text-fg-dim/40",children:i7}),y1(ve1,{slug:e.slug,name:e.name})]}),J&&V&&y1(fe1,{partNumbers:V.components.map(Q=>Q.partNumber),productSlug:e.slug},V.id),P&&(()=>{let Q=E0.filter(m0=>m0.chosen===null).map(m0=>m0.prompt.replace(/^Select\s+/i,""));if(P0&&K.vehicleAnswersSpecs&&!t.fitmentSet&&Q.push("vehicle fitment"),Q.length===0)return null;let k1=Q.length===1?Q[0]:Q.length===2?`${Q[0]} and ${Q[1]}`:`${Q.slice(0,-1).join(", ")}, and ${Q.at(-1)}`;return $1("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 ",k1," first."]})})()]}),u1.length>0&&y1("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-2 border-t border-line pt-5 font-mono text-[length:var(--size-label,13px)] tracking-[0.05em] text-fg",children:u1.map((Q,k1)=>$1("li",{children:[y1("strong",{className:"font-bold text-accent",children:Q.label}),Q.detail?` ${Ka} ${Q.detail}`:""]},`${Q.label}-${k1}`))})]})]})]})}function pe1({facts:e}){return e.length===0?null:$1("div",{className:"border-b border-line pb-[26px]",children:[y1("dl",{className:"flex flex-col gap-2",children:e.map(t=>$1("div",{className:"flex flex-wrap items-baseline gap-x-2 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.22em]",children:[$1("dt",{className:"text-fg-dim",children:[t.label," \xB7"]}),y1("dd",{className:"font-semibold text-fg",children:t.value.label})]},t.key))}),y1("p",{className:"mt-3 font-mono text-[length:var(--size-body,12px)] leading-relaxed tracking-[0.1em] text-fg-dim",children:"Only one of each is left, so there is nothing to choose here."})]})}function FZ({row:e,onPick:t}){if(e.values.length===0&&!e.empty)return null;let a=e.values.find(c=>c.value===e.chosen),s=a&&[a.label,a.note].filter(Boolean).join(" \xB7 ");return $1("div",{className:"border-b border-line pb-[26px]",[HZ]:e.key,children:[$1("div",{className:"mb-3.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:[e.label," \xB7 ",y1("span",{className:"text-accent",children:s??e.prompt})]}),e.values.length===0?$1("p",{className:"font-mono text-[length:var(--size-body,12px)] leading-relaxed tracking-[0.1em] text-fg-dim",children:[e.empty.text," ",y1(L1,{href:e.empty.href,className:"text-accent hover:underline",children:e.empty.linkText})]}):e.display==="swatch"?y1("div",{className:"grid grid-cols-2 gap-2",children:e.values.map(c=>{let l=c.value===e.chosen;return $1("button",{type:"button",onClick:()=>t(e.key,c.value),className:["relative flex items-center gap-3 border-2 px-3 py-3 text-left transition-colors",l?"border-accent outline outline-1 outline-accent -outline-offset-1":"border-fg-dim/50 hover:border-accent"].join(" "),style:l?{background:"color-mix(in oklab, var(--accent) 14%, transparent)"}:void 0,children:[l&&y1("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),y1("span",{className:"block h-5 w-5 shrink-0 rounded-full border border-fg-dim",style:{background:c.swatch}}),y1("span",{className:"block min-w-0 flex-1 truncate font-mono text-[length:var(--size-label,12px)] font-bold uppercase tracking-[0.18em] text-fg",children:c.label})]},c.value)})}):y1("div",{className:"flex flex-wrap gap-1.5",children:e.values.map(c=>{let l=c.value===e.chosen;return $1("button",{type:"button",onClick:()=>t(e.key,c.value),className:["relative cursor-pointer border-2 px-4 py-3 text-left font-mono uppercase transition-colors",l?"border-accent text-fg outline outline-1 outline-accent -outline-offset-1":"border-fg-dim/50 text-fg hover:border-accent"].join(" "),style:l?{background:"color-mix(in oklab, var(--accent) 14%, transparent)"}:void 0,children:[l&&y1("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),y1("span",{className:"block text-[length:var(--size-label,14px)] tracking-[0.18em]",children:c.label}),c.note&&y1("span",{className:"mt-1 block text-[length:var(--size-label,11px)] tracking-[0.12em] text-fg-dim",children:c.note})]},c.value)})})]})}function PZ(e){return e.photos.length>0?e.photos.length:e.thumbFallbackCells}var ue1=6;function de1({name:e,view:t,angleIdx:a,onSelect:s,isLight:c,onLightbox:l,fit:r}){let o=t.photos[Math.min(a,t.photos.length-1)],i=dZ(t.photos,o),n=PZ(t),h=n>=2,m=String(n).padStart(2,"0"),u=Math.min(a,Math.max(t.photos.length-1,0)),d=h||t.captions[u]?bh(t,u):"",v=[e,t.metaValue,d].filter(Boolean).join(" \u2014 "),g="max-[720px]:static",b=["relative flex aspect-square items-center justify-center overflow-hidden max-[720px]:col-span-2",c?"bg-bg":""].join(" ");return $1("div",{className:"relative max-[720px]:grid max-[720px]:grid-cols-[minmax(0,1fr)_auto] max-[720px]:items-start max-[720px]:gap-x-3 max-[720px]:gap-y-2",style:{color:t.tint},children:[$1("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 ${g} max-[720px]:min-w-0 max-[720px]:flex-wrap max-[720px]:gap-x-2 max-[720px]:gap-y-1`,children:[h&&$1(n5,{children:[$1("span",{className:"text-accent",children:[String(a+1).padStart(2,"0")," / ",m]}),y1("span",{className:"text-fg-dim",children:"\xB7"})]}),y1("span",{children:e}),t.metaValue&&$1(n5,{children:[y1("span",{className:"text-fg-dim",children:"\xB7"}),y1("span",{className:"text-accent",children:t.metaValue})]})]}),h&&y1("div",{className:`absolute right-5 top-5 z-10 flex gap-1 ${g}`,children:uZ(a,n,s).map(w=>y1("button",{type:"button","aria-label":w.label,title:w.label,onClick:w.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:w.glyph},w.label))}),$1("div",{className:b,children:[["top-3 left-3","top-3 right-3","bottom-3 left-3","bottom-3 right-3"].map((w,z)=>y1("span",{className:`absolute ${w} h-3 w-3 border border-fg-dim/40`,style:{borderTop:w.includes("top")?"1px solid var(--site-line)":"none",borderBottom:w.includes("bottom")?"1px solid var(--site-line)":"none",borderLeft:w.includes("left")?"1px solid var(--site-line)":"none",borderRight:w.includes("right")?"1px solid var(--site-line)":"none"}},z)),t.stageImage({photo:i,alt:v,label:`Open ${[e,t.metaValue].filter(Boolean).join(" ")} at full resolution`,onZoom:()=>l(i,v),fit:r})]}),$1("div",{className:`absolute bottom-5 left-5 right-5 z-10 flex items-center justify-between gap-3 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-fg-dim ${g} max-[720px]:col-span-2 max-[720px]:flex-wrap`,children:[y1("span",{children:t.specCaption}),y1("span",{children:t.originCaption})]})]})}function ge1({name:e,view:t,angleIdx:a,onSelect:s,isLight:c,tiled:l=!1}){let r=PZ(t);return r<2?null:y1("div",{className:l?"order-[-1] flex w-16 flex-col gap-2 max-[720px]:w-12 max-[720px]:gap-1":"mt-2 grid grid-cols-4 gap-2 max-[720px]:gap-1",style:!l&&r>4?{gridTemplateColumns:`repeat(${Math.min(r,ue1)}, minmax(0, 1fr))`}:void 0,children:Array.from({length:r}).map((o,i)=>{let n=t.photos[i];return $1("button",{type:"button",onClick:()=>s(i),"aria-label":`View ${bh(t,i)}`,className:["relative flex aspect-square items-center justify-center overflow-hidden transition-colors",c?"bg-bg":"",i===a?"border border-accent":"border border-transparent hover:border-fg-dim"].join(" "),style:{color:t.tint},children:[y1("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(i+1).padStart(2,"0")}),t.thumbImage({photo:n,alt:`${e} \u2014 ${bh(t,i)}`})]},i)})})}function ve1({slug:e,name:t}){let{has:a,toggle:s}=AZ(),c=a(e);return y1("button",{type:"button",title:c?"Saved":"Save","aria-label":c?`Remove ${t} from wishlist`:`Save ${t} to wishlist`,"aria-pressed":c,onClick:()=>s(e),className:["h-12 w-12 cursor-pointer border-2 bg-transparent transition-colors",c?"border-accent text-accent":"border-fg-dim/50 text-fg hover:border-accent hover:text-accent"].join(" "),children:c?"\u2665":"\u2661"})}function fe1({partNumbers:e,productSlug:t}){let[a,s]=TZ(""),{status:c,submit:l,reset:r}=Yi();function o(){l({partNumbers:e,email:a,productSlug:t})}return c==="sent"?y1("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."}):y1(Fc,{className:"-mt-1",email:a,onEmailChange:s,status:c,onResetVerdict:r,onSubmit:o,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{Fragment as ze1,jsx as Pc,jsxs as ye1}from"react/jsx-runtime";function Qf({slug:e,kind:t="wheel",editing:a=!1,pricePlacement:s,showVehicleFitment:c=!0,...l}){let[r,o]=EZ(null),[i,n]=EZ(!1);return be1(()=>{let h=!1;return o(null),n(!1),(t==="tyre"?v0.getTyre(e).then(u=>({kind:"tyre",tyre:u})):v0.getWheel(e).then(u=>({kind:"wheel",wheel:u}))).then(u=>{h||o(u)}).catch(()=>{h||n(!0)}),()=>{h=!0}},[e,t]),i?Pc(S4,{size:"tall",children:"Couldn\u2019t load this product."}):r?Pc(xe1,{record:r,editing:a,pricePlacement:s,showVehicleFitment:c,...l}):Pc(S4,{size:"tall",children:"Loading product\u2026"})}function xe1({record:e,editing:t=!1,pricePlacement:a,showVehicleFitment:s=!0,...c}){let l=e.kind==="tyre"?yn(e.tyre):Ws(e.wheel),r=uc(l,{editing:t}),o=pc();return ye1(ze1,{children:[Pc(ia,{product:l,selection:r,onLightbox:o.open,editing:t,pricePlacement:a,showVehicleFitment:s,...c}),Pc(_t,{item:o.item,onClose:o.close})]})}import{Fragment as Me1,jsx as r8,jsxs as Se1}from"react/jsx-runtime";var we1=B3;function zh({editing:e=!1,pricePlacement:t,showVehicleFitment:a=!0,...s}){let c=X0();return r8(x2,{kinds:we1,type:"ProductHero",editing:e,children:c?r8(ia,{product:c.product,selection:c.selection,onLightbox:c.openLightbox,editing:e,pricePlacement:t,showVehicleFitment:a,...s}):e?r8(Ce1,{pricePlacement:t,showVehicleFitment:a,...s}):r8(S4,{size:"tall",children:"Bound to the current product \u2014 preview on a product page."})})}function Ce1({pricePlacement:e,showVehicleFitment:t,...a}){let s=x3(!0);return s?r8(ke1,{product:s,pricePlacement:e,showVehicleFitment:t,...a}):r8(S4,{size:"tall",children:p("Loading sample product\u2026")})}function ke1({product:e,pricePlacement:t,showVehicleFitment:a,...s}){let c=uc(e,{editing:!0}),l=pc();return Se1(Me1,{children:[r8(ia,{product:e,selection:c,onLightbox:l.open,editing:!0,pricePlacement:t,showVehicleFitment:a,...s}),r8(_t,{item:l.item,onClose:l.close})]})}import{jsx as Ec}from"react/jsx-runtime";function Le1({source:e,editing:t=!1,pricePlacement:a=Kt,showVehicleFitment:s=!0,heroLayout:c=Q7,imageRatio:l=e8,textAlign:r=u9,showSpecTable:o=!0,showPriceQuote:i=!0,galleryMode:n=t8,imageFit:h=a8}){let m={heroLayout:c,imageRatio:l,textAlign:r,showSpecTable:o,showPriceQuote:i,galleryMode:n,imageFit:h};return X0()||t&&M2()?Ec(zh,{editing:t,pricePlacement:a,showVehicleFitment:s,...m}):e?.slug?Ec(Qf,{slug:e.slug,kind:e.kind??"wheel",editing:t,pricePlacement:a,showVehicleFitment:s,...m}):t?Ec(S4,{size:"tall",children:p("Pick a product in the panel to fill this hero.")}):Ec(zh,{pricePlacement:a,showVehicleFitment:s,...m})}var VZ={label:"Product Hero",defaultProps:{source:null,pricePlacement:Kt,showVehicleFitment:!0,heroLayout:Q7,imageRatio:e8,textAlign:u9,showSpecTable:!0,showPriceQuote:!0,galleryMode:t8,imageFit:a8},render:e=>Ec(Le1,{source:e.source,editing:e.puck?.isEditing,pricePlacement:TR(e.pricePlacement),showVehicleFitment:e.showVehicleFitment??!0,heroLayout:$t(e.heroLayout),imageRatio:Gn(e.imageRatio),textAlign:On(e.textAlign),showSpecTable:e.showSpecTable??!0,showPriceQuote:e.showPriceQuote??!0,galleryMode:qn(e.galleryMode),imageFit:Wn(e.imageFit)})};import{jsx as Ae1}from"react/jsx-runtime";var NZ={label:"Product",defaultProps:{code:"",finish:""},render:e=>Ae1(Uv,{code:e.code||void 0,finish:e.finish||void 0,wheel:e.wheel})};import{jsx as He1}from"react/jsx-runtime";var _Z={label:"Search",defaultProps:{style:"icon"},render:({style:e,puck:t})=>He1(zB,{style:e,editing:t?.isEditing})};import{useEffect as Te1,useRef as Pe1}from"react";import{jsx as Vc,jsxs as IZ}from"react/jsx-runtime";var Fe1={fits:{className:"font-medium",style:{color:"var(--green)"}},doesNotFit:{className:"text-fg-dim"},unknown:{className:"text-fg-dim"}};function eb({variants:e,answer:t,loading:a=!1}){return t?IZ("div",{className:"mt-9",children:[Vc("p",{className:"max-w-[68ch] font-serif text-[length:var(--size-body,18px)] italic leading-[1.55] text-fg-dim",children:uh(t)}),Vc("ul",{className:"mt-6 grid gap-[2px] border border-line bg-line",children:e.map(s=>{let c=Ga(t,s.sku),l=Fe1[c];return IZ("li",{className:"flex items-baseline justify-between gap-6 bg-bg px-[18px] py-4",children:[Vc("span",{className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.14em] text-fg",children:s.size}),Vc("span",{className:`font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] ${l.className}`,style:l.style,children:dh[c]})]},s.sku)})})]}):a?Vc("p",{className:"mt-9 border border-line bg-bg p-6 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.24em] text-fg-dim",children:"Checking your car\u2026"}):null}import{jsx as tb,jsxs as RZ}from"react/jsx-runtime";var ab="Will it fit *your car?*",sb="Pick your vehicle and we\u2019ll tell you which of these sizes matches what it came on.",cb="mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] py-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:py-20",lb="mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] pt-0 pb-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:pt-0 max-[1100px]:pb-20";function rb({num:e,title:t=ab,description:a=sb,escapeText:s,escapeHref:c,omitHead:l=!1,slug:r,variants:o,onAnswer:i}){let n=N4({autoApply:!0}),{answer:h,loading:m}=ph(r,io(n.applied?.vehicle)),u=Pe1(i);return u.current=i,Te1(()=>{u.current?.(h)},[h]),RZ("section",{className:l?lb:cb,children:[l?null:tb(t0,{num:e,title:t,description:a,accent:!0}),tb($3,{cascade:n.cascade}),s&&c?RZ("a",{href:c,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:[s," \u2192"]}):null,tb(eb,{variants:o,answer:h,loading:m})]})}import{jsx as Nc,jsxs as Ne1}from"react/jsx-runtime";var Ee1=["tyre"];function ob(e){return Nc(x2,{kinds:Ee1,type:"TyreFitment",editing:e.editing,children:Nc(Ve1,{...e})})}function Ve1({num:e,title:t,description:a,escapeText:s,escapeHref:c,omitHead:l=!1,editing:r=!1}){let o=X0(),i=x3(r&&!o),n=o?.product??i,h=n?.kind==="tyre"?n.source:null;return!h||h.variants.length===0?r?Ne1("section",{className:l?lb:cb,children:[l?null:Nc(t0,{num:e,title:t||ab,description:a||sb,accent:!0}),Nc("p",{className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim",children:p("The vehicle question appears here on a tyre product page, with one verdict per size.")})]}):null:Nc(rb,{num:e,title:t||void 0,description:a||void 0,escapeText:s,escapeHref:c,omitHead:l,slug:h.slug,variants:h.variants})}import{jsx as _e1}from"react/jsx-runtime";var BZ={label:"Tyre Fitment Form",defaultProps:{num:"",title:"",description:"",escapeText:"",escapeHref:""},render:e=>{let t=O1(e.headPlacement)==="own-box",a=l=>t?void 0:l,s=a1(e.escapeText),c=a1(e.escapeHref);return _e1(ob,{num:a(y(e.num,K0.num,e.puck)),title:a(y(e.title,A.sectionHeading,e.puck)),description:a(y(e.description,A.body,e.puck)),escapeText:s,escapeHref:c,omitHead:t,editing:e.puck?.isEditing})}};import{jsx as o8,jsxs as OZ}from"react/jsx-runtime";var ZZ="mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] py-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:py-20",DZ="mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] pt-0 pb-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:pt-0 max-[1100px]:pb-20",Ie1=[],Re1=["tyre"];function ib(e){return o8(x2,{kinds:Re1,type:"TyreSizes",editing:e.editing,children:o8(Be1,{...e})})}function Be1({num:e,title:t,description:a,editing:s=!1,omitHead:c=!1}){let l=X0(),r=x3(s&&!l),o=l?.product??r,i=o?.kind==="tyre"?o.source.variants:[],n=c?null:o8(t0,{num:e?k(e):void 0,title:Y(t||"Available *sizes.*",!1),description:k(a||"Every size this tyre is made in, with its own price and stock."),accent:!0});if(i.length===0)return s?OZ("section",{className:c?DZ:ZZ,children:[n,o8("p",{className:"border-t border-line py-6 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim",children:p("This product\u2019s sizes appear here on a product page.")})]}):null;let h=i.some(m=>!m.image);return OZ("section",{className:c?DZ:ZZ,children:[n,o8(Ze1,{variants:i,fieldUsage:l?.fieldUsage??Ie1}),o8(t5,{text:h?ro:""})]})}function Ze1({variants:e,fieldUsage:t}){let{currency:a,formatPrice:s}=u0();return o8("div",{className:"grid grid-cols-3 gap-2 max-[1100px]:grid-cols-2 max-[720px]:grid-cols-1",children:e.map(c=>o8(hc,{fieldUsage:t,size:c.size,specs:c.specs,prices:c.prices,image:c.image,inStock:c.inStock,currency:a,formatPrice:s},c.sku))})}import{jsx as De1}from"react/jsx-runtime";var GZ={label:"Tyre Sizes",defaultProps:{num:"",title:"",description:""},render:e=>{let t=O1(e.headPlacement)==="own-box",a=s=>t?void 0:s;return De1(ib,{num:a(y(e.num,K0.num,e.puck)),title:a(y(e.title,A.sectionHeading,e.puck)),description:a(y(e.description,A.body,e.puck)),omitHead:t,editing:e.puck?.isEditing})}};var qZ={AlloyWheelsListing:WN,BrandStrip:mB,BundleOffer:vB,CartBlock:CB,CatalogFilterBar:_B,CheckoutCTA:m_,CollectionCard:RB,Collections:f_,CompatibleTyres:j_,CountrySwitchBlock:BB,DeliveryOptions:X_,DetailRows:pI,EuTyreLabel:ZB,FitmentFinder:xI,FitmentTable:BI,Gallery:UI,GalleryB:aR,GalleryItem:DB,Header:cZ,ProductGrid:wR,ProductHero:VZ,ProductRef:NZ,RelatedProducts:DR,SearchBlock:_Z,SpecTable:sB,TyreFitment:BZ,TyreSizes:GZ};var Oe1={AlloyWheelsListing:KN,BrandStrip:QN,BundleOffer:e_,CartBlock:t_,CatalogFilterBar:n_,CheckoutCTA:p_,CollectionCard:g_,Collections:x_,CompatibleTyres:K_,CountrySwitchBlock:$_,DeliveryOptions:Q_,DetailRows:dI,EuTyreLabel:gI,FitmentFinder:zI,FitmentTable:ZI,Gallery:$I,GalleryB:sR,GalleryItem:mR,Header:pR,ProductGrid:kR,ProductHero:VR,ProductRef:ZR,RelatedProducts:OR,SearchBlock:GR,SpecTable:lB,TyreFitment:rB,TyreSizes:oB},U0=Ye(qZ,Oe1);import{jsx as f4,jsxs as yh}from"react/jsx-runtime";function hb(e={}){let t=Yw();return f4(ML,{editing:e.editing,previewConfirmation:!!e.nodeId&&t===e.nodeId,children:f4(Ge1,{...e})})}var WZ="mx-auto max-w-[var(--sf-site-width,1600px)] px-[min(24px,var(--sf-site-gutter,40px))] py-16 min-[800px]:px-[var(--sf-site-gutter,40px)] min-[800px]:py-[88px]",nb="grid gap-8 min-[960px]:grid-cols-[minmax(0,1fr)_minmax(360px,0.8fr)] min-[960px]:gap-12";function Ge1({eyebrow:e,heading:t,intro:a,buttonLabel:s,successMessage:c,boxes:l,inBoxes:r=!1}){let{fieldPrefix:o,editing:i,services:n,currency:h,serviceId:m,setServiceId:u,requiresPayment:d,date:v,earliestDate:g,setDate:b,setDateTouched:f,availability:w,loadingSlots:z,noSlotsMessage:M,selectedStart:S,setSelectedStart:H,customerTimezone:I,name:E,setName:O,email:T,setEmail:P,phone:N,setPhone:D,notes:Z,setNotes:_,confirmation:U,submitting:V,error:J,canSubmit:j,handleSubmit:W,sample:n1}=w7(),z1=n1?f4("p",{className:"mb-6 font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",role:"status",children:p("Example form \u2014 add an active service in {place}.",{place:p("Storefront \u2192 Booking Services")})}):null,$=n===void 0?f4("p",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",children:"Loading appointments\u2026"}):n?.length===0?f4("p",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",role:"status",children:i?p("Add an active service in {place}.",{place:p("Storefront \u2192 Booking Services")}):"Appointments are not available right now."}):null;return r&&l?f4("section",{className:"relative z-[2] border-t border-line bg-surface",children:yh("div",{className:WZ,children:[z1,U?f4(l,{className:`${nb} items-start`}):yh("form",{onSubmit:W,children:[f4(l,{className:`${nb} items-start`}),$]})]})}):f4("section",{className:"relative z-[2] border-t border-line bg-surface",children:yh("div",{className:WZ,children:[z1,f4(Eo,{eyebrow:e,heading:t,intro:a}),U?f4(_o,{successMessage:c}):$||yh("form",{onSubmit:W,className:nb,children:[f4(Vo,{}),f4(No,{buttonLabel:s})]})]})})}import{jsx as qe1}from"react/jsx-runtime";var mb={boxes:{type:"slot",allow:["BookingBox"]}},UZ={label:"Booking Form",fields:mb,defaultProps:{eyebrow:"",heading:"",intro:"",buttonLabel:"",successMessage:""},render:e=>qe1(hb,{eyebrow:y(e.eyebrow,A.eyebrow,e.puck),heading:y(e.heading,A.heading,e.puck),intro:y(e.intro,A.body,e.puck),buttonLabel:y(e.buttonLabel,A.button,e.puck),successMessage:y(e.successMessage,A.bookingConfirmation,e.puck),boxes:e.boxes,inBoxes:e.layout==="boxes",nodeId:typeof e.id=="string"?e.id:void 0,editing:e.puck?.isEditing})};var jZ={fields:{_gContent:x("Content"),eyebrow:q("Eyebrow"),heading:V1("Heading"),intro:V1("Introduction"),buttonLabel:q("Submit button"),successMessage:V1("Confirmation message"),boxes:mb.boxes},resolveFields:(e,{fields:t})=>{if(e.props.layout!=="boxes")return t;let{eyebrow:a,heading:s,intro:c,buttonLabel:l,successMessage:r,...o}=t;return o}};var KZ={fields:{_gTextStyle:x("Text style"),...Object.fromEntries(Io.map(e=>[Ro[e],v1(uu[e],We(uu[e]),[{label:"Section's own",value:""},...d5.map(t=>({label:H9[t],value:t}))],"")])),_gContent:x("Content"),eyebrow:q("Eyebrow"),heading:V1("Heading"),intro:V1("Introduction"),buttonLabel:q("Submit button"),successMessage:V1("Confirmation message")},resolveFields:(e,{fields:t})=>{let a=e.props.region,s=t,c=Io.map(r=>Ro[r]),l=r=>Object.fromEntries(Object.entries(s).filter(([o])=>o.startsWith("_")||c.includes(o)||r.includes(o)));return l(a==="head"?["eyebrow","heading","intro"]:a==="details"?["buttonLabel"]:a==="confirm"?["successMessage"]:[])}};import{EyeIcon as We1,LinkIcon as $Z,EyeOffIcon as Ue1}from"efficient-easel/icons";import{jsx as _c}from"react/jsx-runtime";var YZ={fields:{_gTop:x("Routing groups"),routingNumber:F("Section number",f0.routingNumber),routingTagline:F("Eyebrow",f0.routingTagline),groups:{type:"array",label:"Groups",arrayFields:{eyebrow:q("Eyebrow"),title:V1("Title"),copy:V1("Body"),response:q("Response time")},getItemSummary:e=>e?.title||e?.eyebrow||p("Group")},_gForm:x("Message form"),formSlug:T5(),formNumber:F("Section number",f0.formNumber),formHeading:G("Heading",f0.formHeading),metaItems:P2("Meta lines",_c(a4,{noun:"meta"}),"Encrypted in transit","verbatim"),_gOther:x("\u201COther\u201D reason"),showOther:l1("Show \u201COther\u201D reason",f0.showOther,_c(We1,{})),otherLabel:q("\u201COther\u201D chip label",f0.otherLabel),otherNoteTitle:F("\u201COther\u201D note title",f0.otherNoteTitle),otherNoteBody:G("\u201COther\u201D note body",f0.otherNoteBody),_gSubmit:x("Submit button"),buttonText:q("Submit button",f0.buttonText),consent:G("Consent line",f0.consent),_gChannels:x("Contact info"),channels:{type:"array",label:"Channels",arrayFields:{label:q("Label"),value:q("Value"),href:Q2(q("Link")),sub:q("Sub line"),groupId:v1("Link to group",_c($Z,{}),[{label:"\u2014 Not linked \u2014",value:""},...f0.groups.map(e=>({label:e.title,value:e.id}))],""),hidden:l1("Hidden",!1,_c(Ue1,{}))},getItemSummary:e=>{let t=e?.label||e?.value||p("Channel");return e?.hidden?p("{name} \xB7 hidden",{name:t}):t}}},resolveData:e=>{let t=e.props.groups??[];if(!t.some(c=>!c?.id))return e;let a=new Set,s=t.map((c,l)=>{if(c?.id)return a.add(c.id),c;let r=Cu(c?.title)||`group-${l+1}`;for(;a.has(r);)r=`${r}-${l+1}`;return a.add(r),{...c,id:r}});return{...e,props:{...e.props,groups:s}}},resolveFields:(e,{fields:t})=>{let a=e.props.groups??[],s=[{label:"\u2014 Not linked \u2014",value:""},...a.map((r,o)=>({label:r?.title||r?.eyebrow||p("Group {n}",{n:o+1}),value:r?.id||Cu(r?.title)||`group-${o+1}`}))],c=t,l=c.channels;return l?.type==="array"&&l.arrayFields&&(c.channels={...l,arrayFields:{...l.arrayFields,groupId:v1("Link to group",_c($Z,{}),s,"")}}),t}};import{useEffect as je1,useRef as Ke1,useState as $e1}from"react";import{jsx as JZ,jsxs as et1}from"react/jsx-runtime";var Ye1=12,wh=null,XZ=null;function Xe1(e=!1){let t=i2();if((e||XZ!==t)&&(wh=null),!wh){let a=_3();XZ=t,wh=J1.listBlogPosts(a,{visibleOnly:!0,siteId:t}).catch(()=>null)}return wh}function Je1(e){if(!e)return"";let t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"2-digit"})}function Qe1(e){return{slug:e.slug,title:e.title,excerpt:e.excerpt,cover:e.cover_image?S9(e.cover_image)??"":"",meta:e.category||void 0,dateLabel:Je1(e.published_at)||void 0}}function v9({value:e,onChange:t,snapshotCount:a=Ye1}){let[s,c]=$e1("idle"),l=Array.isArray(e),r=l?e.length:0,o=Ke1(!0),i=m=>{c("loading"),Xe1(m).then(u=>{if(!o.current)return;if(u===null){c("error");return}c("idle");let d=u.slice(0,a).map(Qe1);f6(d,e??null)&&t(d)})};je1(()=>(o.current=!0,i(!1),()=>{o.current=!1}),[]);let n=p("Storefront \u2192 Blog"),h=s==="loading"?p("Syncing from {place}\u2026",{place:n}):s==="error"?p("Couldn\u2019t reach {place}.",{place:n}):l?p3("Auto-synced from {place} \xB7 {n} post","Auto-synced from {place} \xB7 {n} posts",r,{place:n}):p("Linking to {place}\u2026",{place:n});return et1("div",{children:[JZ(_l,{label:"Blog posts"}),JZ(T4,{status:s,statusText:h,onRefresh:()=>i(!0),busy:s==="loading",spaced:!1,hint:p("Auto-refreshes from the most-recent visible posts each time you open the editor. Set how many appear with \u201CPosts to display\u201D.")})]})}import{useState as tt1}from"react";import{jsx as B0,jsxs as i8}from"react/jsx-runtime";var QZ=3,aD="featured",Ch="tabs",sD="portrait",na="spread",kh="count",cD=[{label:"Even grid",value:"even"},{label:"Featured first",value:aD},{label:"Tabs",value:Ch},{label:"Photo cards",value:sD},{label:"Staggered spread",value:na},{label:"Count",value:kh}],at1=[sD,na],lD="even",B6={min:2,max:11,step:1,fallback:7,unit:"of 12"},st1="bottom-left",ct1=55,lt1="bottom";function rt1(e){let t=typeof e=="number"?e:Number.parseFloat(String(e??"")),a=Number.isFinite(t)?Math.min(B6.max,Math.max(B6.min,Math.round(t))):B6.fallback;return`${a}fr ${12-a}fr`}var eD={1:"grid-cols-1",2:"grid-cols-2 max-[800px]:grid-cols-1",3:"grid-cols-3 max-[800px]:grid-cols-1",4:"grid-cols-4 max-[1100px]:grid-cols-2 max-[800px]:grid-cols-1"},tD={2:"grid-cols-2",3:"grid-cols-3 max-[800px]:grid-cols-2",4:"grid-cols-4 max-[1100px]:grid-cols-3 max-[800px]:grid-cols-2"},ot1="Find by name",it1="Nobody by that name.";function nt1(e,t){let a=c=>c.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLocaleLowerCase().trim(),s=a(t);return s===""||a(e).includes(s)}function ht1({card:e,scaffold:t,lower:a=!1}){return i8(s0,{href:e.href||"#",className:`sf-card group relative isolate flex aspect-[3/4] overflow-hidden bg-surface${a?" min-[801px]:mt-16":""}`,"aria-disabled":t||void 0,tabIndex:t?-1:void 0,children:[B0("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:B0(k0,{label:`card-${e.slug}`,src:e.cover||void 0,sizes:"(max-width: 800px) 50vw, 25vw"})}),B0("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&&B0("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:k(e.meta)}),i8("div",{className:"relative z-[1] mt-auto flex w-full flex-col gap-1 p-4 max-[800px]:p-3",children:[B0("h3",{className:"font-heading3 text-[length:var(--size-headingSmall,24px)] leading-[1.1] tracking-[-0.01em] text-fg",children:Y(e.title,!1)}),e.dateLabel&&B0("p",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.16em] text-accent",children:k(e.dateLabel)}),e.excerpt&&B0("p",{className:"line-clamp-2 text-[length:var(--size-body,14px)] leading-[1.45] text-fg-dim",children:k(e.excerpt)})]})]})}function mt1({cards:e,scaffold:t}){return B0("nav",{"aria-label":"Days",className:"-mx-1 overflow-x-auto",children:B0("ul",{className:"flex min-w-max gap-2 px-1 pb-1",children:e.map((a,s)=>{let c=!!a.meta;return B0("li",{children:i8(s0,{href:a.href||"#","aria-current":c?"page":void 0,"aria-disabled":t||void 0,tabIndex:t?-1:void 0,className:`flex flex-col gap-0.5 rounded-[var(--sf-button-radius,999px)] border px-5 py-2.5 transition-colors ${c?"border-accent bg-accent text-accent-ink":"border-line text-fg hover:border-accent hover:text-accent"}`,children:[B0("span",{className:"font-heading3 text-[length:var(--size-body,15px)] leading-[1.2]",children:Y(a.title,!1)}),a.excerpt&&B0("span",{className:`font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] ${c?"opacity-80":"text-fg-dim"}`,children:k(a.excerpt)})]})},`${a.slug}-${s}`)})})})}function pt1({count:e,words:t,href:a}){let s=i8("span",{className:"inline-flex items-baseline gap-3",children:[B0("span",{className:"font-heading text-[length:var(--size-headingLarge,64px)] leading-none text-accent",children:e}),t!==void 0&&B0("span",{className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg",children:t})]});return a?B0(s0,{href:a,className:"inline-flex hover:opacity-85",children:s}):s}var ut1="relative z-[2] bg-bg px-[var(--sf-site-gutter,40px)] py-[120px] max-[800px]:px-[min(20px,var(--sf-site-gutter,40px))] max-[800px]:py-[70px]",dt1="relative z-[2] bg-bg px-[var(--sf-site-gutter,40px)] pt-0 pb-[120px] max-[800px]:px-[min(20px,var(--sf-site-gutter,40px))] max-[800px]:pt-0 max-[800px]:pb-[70px]",gt1="relative z-[2] bg-bg px-[var(--sf-site-gutter,40px)] py-[32px] max-[800px]:px-[min(20px,var(--sf-site-gutter,40px))] max-[800px]:py-[24px]";function pb({num:e,title:t,link:a,posts:s,columns:c,limit:l,showAll:r=!1,editing:o=!1,cardImage:i,gap:n,layout:h,featuredWidth:m,listCover:u=!0,featuredDarken:d,omitHead:v=!1,sample:g,nameFilter:b=!1}){let[f,w]=tt1(""),z=s??[],M=r?z.length:typeof l=="number"&&l>0?l:QZ,S=z.slice(0,M),H=o&&S.length===0;if(S.length===0&&!o)return null;let I=r?QZ:M,E=H?g?.length?g.slice(0,r?g.length:I):Array.from({length:I},(V,J)=>({slug:`placeholder-${J}`,title:p("Blog post title"),excerpt:p("A short summary of the post appears here."),cover:"",meta:p("Journal"),dateLabel:p("Date")})):S,O=I3("Events",n,"both"),T=h===aD&&E.length>1,P=rt1(m),N=h===Ch,D=h===kh,Z=at1.includes(h??""),_=b&&!N&&!D&&!T,U=_?E.filter(V=>nt1(V.title,f)):E;return D?B0("section",{className:gt1,children:B0(pt1,{count:E.length,words:v||t===void 0?void 0:Y(t,!1),href:v?void 0:a?.href})}):i8("section",{className:v?dt1:ut1,style:X2(i),children:[v?null:B0(t0,{num:e!==void 0?k(e):void 0,title:t!==void 0?Y(t,!1):void 0,link:a?{text:k(a.text),href:a.href}:void 0}),_&&i8("div",{className:"mb-6 flex flex-col gap-2",children:[i8("label",{className:"flex max-w-[360px] flex-col gap-1.5",children:[B0("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-fg-dim",children:ot1}),B0("input",{type:"search",value:f,onChange:V=>w(V.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"})]}),U.length===0&&B0("p",{role:"status",className:"text-[length:var(--size-body,14px)] text-fg-dim",children:it1})]}),N?B0(mt1,{cards:E,scaffold:H}):Z?B0("div",{className:`sf-card-grid grid${O.className} ${h===na?"grid-cols-3 max-[800px]:grid-cols-2":tD[Math.min(4,Math.max(2,c??3))]??tD[3]}`,style:O.style,children:U.map((V,J)=>B0(ht1,{card:V,scaffold:H,lower:h===na&&J%3===1},`${V.slug}-${J}`))}):T?i8("div",{className:`sf-card-grid grid grid-cols-[var(--sf-events-split)] max-[800px]:grid-cols-1${O.className}`,style:{...O.style,"--sf-events-split":P},children:[B0(ht,{post:E[0],href:E[0].href,scaffold:H,layout:"cover",darken:d??ct1,darkenStyle:lt1,placement:st1},`${E[0].slug}-0`),B0("div",{className:`grid auto-rows-min${O.className}`,style:O.style,children:E.slice(1).map((V,J)=>B0(ht,{post:V,href:V.href,scaffold:H,showCover:u},`${V.slug}-${J+1}`))})]}):B0("div",{className:`sf-card-grid grid${O.className} ${eD[Math.min(4,Math.max(1,c??3))]??eD[3]}`,style:O.style,children:U.map((V,J)=>B0(ht,{post:V,href:V.href,scaffold:H},`${V.slug}-${J}`))})]})}import{LayoutIcon as bt1,ColumnsIcon as xt1,WidthIcon as zt1,ImageIcon as yt1,OpacityIcon as wt1,ListIcon as Ct1,HashIcon as kt1,SearchIcon as Mt1}from"efficient-easel/icons";import{jsx as ft1}from"react/jsx-runtime";var f9={num:A.sectionNumber,title:"Section title",link:A.viewAll},vt1=()=>[{key:"sample-1",title:p("First card"),excerpt:p("A line about it appears here.")},{key:"sample-2",title:p("Second card"),excerpt:p("A line about it appears here.")},{key:"sample-3",title:p("Third card"),excerpt:p("A line about it appears here.")},{key:"sample-4",title:p("Fourth card"),excerpt:p("A line about it appears here.")}],rD=(e,t)=>({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||"#"}),oD={label:"Latest Posts",defaultProps:{num:"",title:"",linkText:"",linkHref:"/journal",columns:3,limit:3,showAll:!1},render:e=>{let t=O1(e.headPlacement)==="own-box",a=o=>t?void 0:o,s=y(e.linkText,f9.link,e.puck),l=O8(e)!==""?fi(e,!!e.puck?.isEditing,vt1()):null,r=l?l.sample?[]:l.rows.map(rD):e.posts;return ft1(pb,{num:a(y(e.num,f9.num,e.puck)),title:a(y(e.title,f9.title,e.puck)),link:a(s?{text:s,href:a1(e.linkHref)||"/journal"}:void 0),omitHead:t,posts:r,sample:l?.sample?l.rows.map(rD):void 0,columns:e.columns,limit:e.limit,showAll:e.showAll,layout:e.layout,featuredWidth:e.featuredWidth,listCover:e.listCover,featuredDarken:e.featuredDarken,cardImage:e.cardImage,gap:e.gap,nameFilter:e.nameFilter===!0,editing:e.puck?.isEditing})}};import{jsx as n8}from"react/jsx-runtime";var St1=50,iD={fields:{_gContent:x("Content"),num:F("Number",f9.num),title:G("Heading",f9.title),linkText:F("Button",f9.link),linkHref:F1("Link"),dataSource:bi("Cards from","Blog posts"),_gPosts:x("Blog posts"),posts:s2(v9,{snapshotCount:St1}),_gLayout:x("Layout"),layout:v1("Arrangement",n8(bt1,{}),cD,lD),columns:s1("Columns",n8(xt1,{}),2,4,1,3),featuredWidth:s1("Featured width",n8(zt1,{}),B6.min,B6.max,B6.step,B6.fallback,B6.unit),listCover:l1("Show cover image on the smaller cards",!0,n8(yt1,{})),featuredDarken:s1("Darken",n8(wt1,{}),V2.min,V2.max,V2.step,55,V2.unit),nameFilter:l1("Filter by name",!1,n8(Mt1,{})),gap:R3("Events"),showAll:l1("Show all blog posts",!1,n8(Ct1,{})),limit:s1("Posts to display",n8(kt1,{}),1,20,1,3),cardImage:a7()},resolveFields:(e,{fields:t,parent:a})=>{let s=e.props,l={...xi("Events",t,e.props,{hides:["_gPosts","posts"]})},r=o=>G1(U1(o,a,j1),e.props.headPlacement,Z1.Events.headRows);if(s.showAll&&delete l.limit,s.layout==="featured")delete l.columns;else for(let o of["featuredWidth","listCover","featuredDarken"])delete l[o];if(s.layout===Ch||s.layout===kh)for(let o of["columns","nameFilter","cardImage"])delete l[o];return s.layout===na&&delete l.columns,s.layout==="featured"&&delete l.nameFilter,r(l)}};import{jsx as Mh}from"react/jsx-runtime";import{SettingsDefaultReset as Lt1,SettingsField as At1,SettingsSegmented as Ht1}from"efficient-easel/panel";import{WidthIcon as Ft1}from"efficient-easel/icons";function Sh({value:e,resolved:t,onChange:a,label:s="Width",labelId:c,followsLabel:l,hint:r}){let o=e===void 0,i=o?t:e,n=p(s);return Mh(At1,{label:n,labelId:c,icon:Mh(Ft1,{}),value:o?l:void 0,changed:!o,action:Mh(Lt1,{words:ly()?.panel,label:n,changed:!o,onReset:()=>a(void 0)}),hint:r,children:Mh(Ht1,{options:[{label:p(am.page),id:"content"},{label:p(am.full),id:"full"}],value:i,ariaLabel:n,onChange:a})})}import{SettingsField as Tt1,SettingsSwitch as Pt1}from"efficient-easel/panel";import{BlockColumnIcon as Et1}from"efficient-easel/icons";import{Fragment as Vt1,jsx as Ic}from"react/jsx-runtime";function ub({value:e,onChange:t}){let a=y5(),s={...O9,...e},c=s[a];return Ic(Tt1,{label:p("Logo fills its column"),icon:Ic(Et1,{}),action:Ic(Pt1,{checked:c,onChange:l=>t({...s,[a]:l}),ariaLabel:p("Logo fills its column on {view}",{view:p(z5[a])})}),hint:Ic(Vt1,{children:_5(p("Sets the {view} view \u2014 switch views in the top bar to set each one."),{view:Ic("strong",{children:p(z5[a])})})})})}import{SettingsField as Nt1,SettingsSwitch as _t1}from"efficient-easel/panel";import{FullWidthIcon as It1}from"efficient-easel/icons";import{Fragment as Rt1,jsx as Rc}from"react/jsx-runtime";function db({value:e,onChange:t}){let a=y5(),s={...G9,...e},c=s[a];return Rc(Nt1,{label:p("Logo fills its row"),icon:Rc(It1,{}),action:Rc(_t1,{checked:c,onChange:l=>t({...s,[a]:l}),ariaLabel:p("Logo fills its row on {view}",{view:p(z5[a])})}),hint:Rc(Rt1,{children:_5(p("Sets the {view} view \u2014 switch views in the top bar to set each one."),{view:Rc("strong",{children:p(z5[a])})})})})}import{jsx as Bt1}from"react/jsx-runtime";function gb({value:e,onChange:t}){return Bt1(_s,{label:"Columns per line",unit:p("columns"),steps:yy,value:Fl(e),onChange:t})}import{useContext as Zt1,useEffect as Dt1,useRef as Ot1,useState as hD}from"react";import{jsx as ha,jsxs as nD}from"react/jsx-runtime";function Bc(){let e=xB();return nD("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-[800px]:flex-col max-[800px]:gap-3",children:[ha("span",{children:e}),nD("span",{className:"flex flex-wrap items-center gap-3",children:[ha("span",{children:"Privacy"}),ha("span",{"aria-hidden":!0,children:"\xB7"}),ha("span",{children:"Terms"}),ha("span",{"aria-hidden":!0,children:"\xB7"}),ha("span",{children:"Cookies"})]})]})}import{jsx as vb,jsxs as Wt1}from"react/jsx-runtime";var mD={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6"},Gt1={1:"min-[720px]:grid-cols-1",2:"min-[720px]:grid-cols-2",3:"min-[720px]:grid-cols-3",4:"min-[720px]:grid-cols-4",5:"min-[720px]:grid-cols-5",6:"min-[720px]:grid-cols-6"},qt1={1:"min-[1100px]:grid-cols-1",2:"min-[1100px]:grid-cols-2",3:"min-[1100px]:grid-cols-3",4:"min-[1100px]:grid-cols-4",5:"min-[1100px]:grid-cols-5",6:"min-[1100px]:grid-cols-6"};function fb({blocks:e,editing:t=!1,width:a,columns:s,logoFill:c,logoRowFill:l}){let r=Zt1(xa),{desktop:o,tablet:i,mobile:n}=Fl(s),{desktop:h,tablet:m,mobile:u}={...O9,...c},{desktop:d,tablet:v,mobile:g}={...G9,...l},b=y5(),w=t?mD[b==="desktop"?o:b==="tablet"?i:n]:`${mD[n]} ${Gt1[i]} ${qt1[o]}`,z=Ot1(null),[M,S]=hD(1),[H,I]=hD(!1);if(Dt1(()=>{if(!t&&!r)return;let O=z.current;if(!O)return;let T=()=>{let U=O.querySelector(".footer-block-grid");if(!U)return;let V=t?b:fw(window.innerWidth),J=V==="desktop"?d:V==="tablet"?v:g;I(J);let j=V==="desktop"?h:V==="tablet"?m:u,W=getComputedStyle(U).gridTemplateColumns.split(" ").filter(Boolean).length-1,n1=Math.max(U.childElementCount-1,0);S(!J&&j&&W>=1?Math.max(Math.ceil(n1/W),1):1)},P,N=()=>{clearTimeout(P),P=setTimeout(T,0)},D=[0,80,250,600].map(U=>setTimeout(T,U)),Z=new MutationObserver(N);Z.observe(O,{childList:!0,subtree:!0});let _=new ResizeObserver(N);return _.observe(O),()=>{clearTimeout(P),D.forEach(clearTimeout),Z.disconnect(),_.disconnect()}},[o,i,n,t,r,b,h,m,u,d,v,g]),!t&&!r)return null;let E=bl(xl(a))??void 0;return vb("footer",{ref:z,className:"border-t border-line bg-bg px-[var(--sf-site-gutter,40px)] pb-10 pt-20 max-[800px]:px-[min(20px,var(--sf-site-gutter,40px))] max-[800px]:pt-14",style:{"--footer-logo-rows":M,"--footer-logo-col":H?"1 / -1":"1"},children:Wt1("div",{style:E,children:[vb(e,{className:`footer-block-grid mb-[60px] grid items-start gap-x-10 gap-y-12 ${w}`,minEmptyHeight:160}),vb(Bc,{})]})})}import{jsx as Ut1}from"react/jsx-runtime";var bb={blocks:{type:"slot",allow:["FooterLogo","FooterMenu","FooterDivider","FooterGroup","FooterText","FooterEmailSignup","FooterSocial"]}},pD={label:"Footer",fields:bb,defaultProps:{columns:wy,logoFill:O9,logoRowFill:G9},render:({blocks:e,width:t,columns:a,logoFill:s,logoRowFill:c,puck:l})=>Ut1(fb,{blocks:e,width:t,columns:a,logoFill:s,logoRowFill:c,editing:l?.isEditing})};import{jsx as Lh}from"react/jsx-runtime";var uD={fields:{_gLayout:x("Layout"),width:{type:"custom",render:({value:e,onChange:t})=>Lh(Sh,{value:e==="full"?"full":e==="page"||e==="content"?"content":void 0,resolved:"content",followsLabel:p("Follows the page"),hint:p("Whether the footer's blocks sit on the page's column, or run edge to edge. The background always spans the screen."),onChange:a=>t(a)})},columns:{type:"custom",render:({value:e,onChange:t})=>Lh(gb,{value:e,onChange:t})},logoFill:{type:"custom",render:({value:e,onChange:t})=>Lh(ub,{value:e,onChange:t})},logoRowFill:{type:"custom",render:({value:e,onChange:t})=>Lh(db,{value:e,onChange:t})},_gBlocks:x("Blocks"),blockList:E5("Footer"),blocks:bb.blocks}};import{WeightIcon as jt1,WidthIcon as Kt1,PhoneIcon as $t1}from"efficient-easel/icons";import{jsx as xb}from"react/jsx-runtime";var dD={fields:{_gStyle:x("Style"),thickness:s1("Thickness",xb(jt1,{}),1,8,1,1,"px"),lengthPct:s1("Length",xb(Kt1,{}),10,100,1,100,"%"),hideOnMobile:l1("Hide on mobile",!1,xb($t1,{}))}};var gD={fields:{_gContent:x("Content"),heading:V1("Heading","Join our email list"),placeholder:q("Field placeholder","Email address"),buttonLabel:q("Button","Subscribe")}};import{AlignLeftIcon as Jt1}from"efficient-easel/icons";import{jsx as vD}from"react/jsx-runtime";var Yt1={start:"items-start",center:"items-center",end:"items-end"};function zb({direction:e="vertical",gap:t,align:a="start",content:s}){let c=I3("FooterGroup",t,e==="horizontal"?"inline":"block");return vD("div",{className:"min-w-0",children:vD(s,{className:`flex ${e==="horizontal"?"flex-row flex-wrap":"flex-col"} ${Yt1[a]}${c.className}`,style:c.style,minEmptyHeight:80})})}import{jsx as Xt1}from"react/jsx-runtime";var yb={blocks:{type:"slot",allow:["FooterText","FooterEmailSignup","FooterMenu","FooterDivider","FooterSocial"]}},fD={label:"Footer Box",fields:yb,defaultProps:{direction:"vertical",align:"start"},render:({direction:e,gap:t,align:a,blocks:s})=>Xt1(zb,{direction:e,gap:t,align:a,content:s})};import{jsx as Qt1}from"react/jsx-runtime";var bD={fields:{_gLayout:x("Layout"),direction:x1("Direction",Vl("`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"),gap:R3("FooterGroup"),align:x1("Alignment",Qt1(Jt1,{}),[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"End",value:"end"}],"start"),_gBlocks:x("Blocks"),blockList:E5("FooterGroup"),blocks:yb.blocks}};import{WidthIcon as ea1,AlignLeftIcon as ta1,LogoIcon as aa1,PaddingTopIcon as sa1,PaddingRightIcon as ca1,PaddingBottomIcon as la1,PaddingLeftIcon as ra1}from"efficient-easel/icons";import{jsx as b9}from"react/jsx-runtime";var xD={fields:{_gContent:x("Content"),tagline:V1("Body","Short brand tagline"),_gStyle:x("Style"),widthPct:s1("Width",b9(ea1,{}),40,400,1,100,"%"),align:x1("Alignment",b9(ta1,{}),[{label:"Start",value:"left"},{label:"Center",value:"center"},{label:"End",value:"right"}],"left"),reverse:x1("Logo color",b9(aa1,{}),[{label:"Auto contrast",value:"auto"},{label:"As uploaded",value:"off"}],"auto"),padTop:s1("Padding top",b9(sa1,{}),0,120,2,0,"px"),padRight:s1("Padding right",b9(ca1,{}),0,120,2,0,"px"),padBottom:s1("Padding bottom",b9(la1,{}),0,120,2,0,"px"),padLeft:s1("Padding left",b9(ra1,{}),0,120,2,0,"px")}};import{Button as oa1}from"efficient-shell/ui";import{SettingsField as ia1}from"efficient-easel/panel";import{FieldSelect as na1}from"efficient-easel/fields";import{MenuIcon as ha1}from"efficient-easel/icons";import{useCallback as ma1,useEffect as zD,useState as wb}from"react";import{jsx as x9,jsxs as yD}from"react/jsx-runtime";function Cb({value:e,onChange:t}){let[a,s]=wb(null),[c,l]=wb(!1),r=ma1(f=>{s(f),l(!0)},[]);zD(()=>{let f=!1;return up(_3()).then(w=>{f||r(w)}).catch(()=>{f||s([])}),()=>{f=!0}},[r]),zD(()=>{let f=!1,w=NM(()=>{Jk(_3()).then(z=>{f||r(z)}).catch(()=>{})});return()=>{f=!0,w()}},[r]);let o=a===null,i=!!(e?.id||e?.handle),n=c&&i&&!Dr(a??[],e),h=!i&&(e?.items?.length??0)>0,m=n?"":Dr(a??[],e)?.id??"",u=f=>t({id:f.id,handle:f.handle,name:f.name,items:f.items.map(w=>({label:w.label,url:w.url}))}),d=f=>{if(!f){t(null);return}let w=(a??[]).find(z=>z.id===f);w&&u(w)},[v,g]=wb(!1),b=()=>{i&&(g(!0),up(_3(),!0).then(f=>{r(f);let w=Dr(f,e);w&&u(w)}).catch(()=>{}).finally(()=>g(!1)))};return yD("div",{children:[x9(ia1,{label:p("Menu"),icon:x9(ha1,{}),hint:!o&&a&&a.length===0?p("Create menus in {place}, then pick one here.",{place:p("Storefront \u2192 Menus")}):void 0,children:x9(na1,{value:m,ariaLabel:p("Menu"),onChange:d,readOnly:o||(a?.length??0)===0,options:[{label:o?p("Loading menus\u2026"):a&&a.length===0?p("No menus found"):p("Select a menu\u2026"),value:""},...(a??[]).map(f=>({label:`${f.name} (${f.item_count??f.items.length})`,value:f.id}))]})}),h?x9("p",{className:"mt-1.5 text-[12px] text-[var(--sf-warning,#b45309)]",children:Gk()}):null,n?x9("p",{className:"mt-1.5 text-[12px] text-[var(--sf-warning,#b45309)]",children:qk(e?.name??p("The linked menu"))}):null,i&&!n?yD("div",{className:"mt-1.5 flex items-center justify-between gap-2",children:[x9("p",{className:"text-[12px] text-fg-dim",children:p3("Linked to \u201C{name}\u201D \u2014 {n} link. Re-pull after editing the menu:","Linked to \u201C{name}\u201D \u2014 {n} links. Re-pull after editing the menu:",e?.items?.length??0,{name:e?.name??""})}),x9(oa1,{variant:"link",size:"sm",className:"shrink-0",onClick:b,disabled:v,children:v?p("Updating\u2026"):p("Update links")})]}):null]})}import{PhoneIcon as pa1,LineBetweenIcon as ua1}from"efficient-easel/icons";import{jsx as kb}from"react/jsx-runtime";var wD={fields:{_gContent:x("Content"),menu:{type:"custom",render:({value:e,onChange:t})=>kb(Cb,{value:e,onChange:t})},heading:q("Heading","Column heading"),_gStyle:x("Style"),accordionMobile:l1("Show as accordion on mobile",!1,kb(pa1,{})),showDividers:l1("Dividers between links",!1,kb(ua1,{}))}};import{jsx as Zc}from"react/jsx-runtime";var CD={small:16,medium:20,large:24},Mb=0,Sb=32,MD=2,Dc=0,kD={start:"justify-start",center:"justify-center",end:"justify-end"};function Lb({iconStyle:e=le,iconSize:t="medium",align:a="start",gap:s=Dc,editing:c=!1}){let l=fB(),r=rw(lw(l));if(r.length===0)return c?Zc("div",{"data-social-placeholder":"",className:"rounded border border-dashed border-line px-3 py-2 text-[13px] text-fg-dim",children:p("Add your social links")}):null;let o=CD[t]??CD.medium,n={gap:Math.min(Sb,Math.max(Mb,Number.isFinite(s)?s:0)),"--social-mark":`${o}px`};return Zc("ul",{"data-social-block":"","aria-label":"Social media",className:`flex list-none flex-wrap p-0 [margin:calc((44px-var(--social-mark))/-2)] max-[800px]:[margin:calc((40px-var(--social-mark))/-2)] ${kD[a]??kD.start}`,style:n,children:r.map(({platform:h,href:m,label:u})=>Zc("li",{children:Zc("a",{href:m,target:"_blank",rel:"noopener noreferrer","aria-label":`${u} (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-[800px]:h-10 max-[800px]:w-10",children:Zc(xw,{platform:h,iconStyle:e,size:o})})},h))})}import{Button as da1}from"efficient-shell/ui";import{Fragment as ga1,jsx as Ab,jsxs as va1}from"react/jsx-runtime";function Hb(){let{openPanel:e}=Xl();return va1(ga1,{children:[Ab(_l,{label:"Social links"}),Ab("p",{className:"es-field-hint sf-hint-keep",children:p("The links are typed once for the whole website, in Site settings.")}),Ab(da1,{variant:"link",size:"sm",onClick:e,children:p("Edit social links \u2192")})]})}import{StylesIcon as fa1,TextSizeIcon as ba1,AlignLeftIcon as xa1,GapIcon as za1}from"efficient-easel/icons";import{jsx as Oc}from"react/jsx-runtime";var SD={fields:{_gStyle:x("Style"),iconStyle:x1("Icon style",Oc(fa1,{}),[{label:"Outline",value:"outline"},{label:"Solid",value:"solid"}],le),iconSize:x1("Icon size",Oc(ba1,{}),[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}],"medium"),_socialLinks:{type:"custom",render:()=>Oc(Hb,{})},_gLayout:x("Layout"),align:x1("Alignment",Oc(xa1,{}),[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"End",value:"end"}],"start"),gap:s1("Gap",Oc(za1,{}),Mb,Sb,MD,Dc,"px")}};import{TextSizeIcon as ya1}from"efficient-easel/icons";import{jsx as wa1}from"react/jsx-runtime";var LD={fields:{_gContent:x("Content"),text:V1("Body","Footer text"),_gStyle:x("Style"),size:x1("Size",wa1(ya1,{}),[{label:"S",value:"sm"},{label:"M",value:"md"},{label:"L",value:"lg"}],"md"),tone:Ho()}};var AD={fields:{_gForm:x("Form"),formSlug:T5(),_gContent:x("Content"),heading:q("Heading override"),intro:V1("Intro"),submitText:q("Submit button"),finePrint:q("Fine print")}};var HD={fields:{}};var Ah="e.g. D00123 \xB7 blank = the whole store";import{useState as h8}from"react";import{Fragment as Ma1,jsx as h3,jsxs as Gc}from"react/jsx-runtime";var Hh="w-full border-2 border-line bg-bg px-4 py-3.5 font-display text-[17px] tracking-[-0.005em] text-fg outline-none transition-colors placeholder:text-fg-dim hover:border-fg-dim focus:border-accent",Ca1="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))]",ka1="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 Fb({eyebrow:e,title:t,designCode:a,omitHead:s=!1,editing:c=!1}={}){let[l,r]=h8(""),[o,i]=h8(""),[n,h]=h8(0),[m,u]=h8(""),[d,v]=h8(""),[g,b]=h8(!1),[f,w]=h8(!1),[z,M]=h8(null);async function S(H){if(H.preventDefault(),!(c||g)){if(n<1){M("Choose a star rating.");return}b(!0),M(null);try{await v0.submitReview({authorName:l.trim(),...o.trim()?{email:o.trim()}:{},rating:n,...m.trim()?{title:m.trim()}:{},body:d.trim(),...a?.trim()?{designCode:a.trim()}:{}}),w(!0)}catch{M("Something went wrong \u2014 your review wasn't sent. Please try again.")}finally{b(!1)}}}return h3("section",{className:"relative z-[2] border-t border-line bg-surface",children:Gc("div",{className:s?ka1:Ca1,children:[s?null:Gc(Ma1,{children:[(e??"").trim()&&h3(N1,{text:e??"",scaled:!1,className:"mb-4 block"}),(t??"").trim()&&h3("h2",{className:"mb-11 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-[800px]:mb-8 max-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:Y(t??"",!1)})]}),f?h3("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."}):Gc("form",{className:"flex max-w-[720px] flex-col gap-5",onSubmit:S,children:[Gc("div",{className:"grid grid-cols-2 gap-3 max-[640px]:grid-cols-1",children:[h3(D2,{label:"Name",required:!0,children:h3("input",{type:"text",required:!0,value:l,onChange:H=>r(H.target.value),className:Hh})}),h3(D2,{label:"Email \u2014 never shown publicly",children:h3("input",{type:"email",value:o,onChange:H=>i(H.target.value),className:Hh})})]}),Gc("div",{className:"flex flex-col gap-2",children:[h3(y8,{required:!0,children:"Rating"}),h3("div",{role:"group","aria-label":"Rating",className:"flex gap-1",children:[1,2,3,4,5].map(H=>h3("button",{type:"button","aria-pressed":n>=H,"aria-label":`${H} star${H===1?"":"s"}`,onClick:()=>{h(H),M(null)},className:["cursor-pointer text-[30px] leading-none transition-colors",n>=H?"text-accent":"text-fg-dim/30 hover:text-fg-dim"].join(" "),children:"\u2605"},H))})]}),h3(D2,{label:"Review title (optional)",children:h3("input",{type:"text",value:m,onChange:H=>u(H.target.value),className:Hh})}),h3(D2,{label:"Your review",required:!0,children:h3("textarea",{required:!0,rows:5,value:d,onChange:H=>v(H.target.value),className:Hh+" resize-y"})}),z&&h3("p",{role:"alert",className:"font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:z}),h3("button",{type:c?"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",children:g?"Sending\u2026":"Submit review \u2192"})]})]})})}import{jsx as Sa1}from"react/jsx-runtime";var qc={eyebrow:"Your turn",title:"Leave a *review.*"},FD={label:"Review Form",defaultProps:{eyebrow:"",title:"",designCode:""},render:e=>{let t=O1(e.headPlacement)==="own-box",a=s=>t?void 0:s;return Sa1(Fb,{eyebrow:a(y(e.eyebrow,qc.eyebrow,e.puck)),title:a(y(e.title,qc.title,e.puck)),omitHead:t,designCode:a1(e.designCode)||void 0,editing:e.puck?.isEditing})}};var TD={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow",qc.eyebrow),title:G("Heading",qc.title),_gSource:x("Reviews"),designCode:Q2(q("Design code",Ah))},resolveFields:(e,{fields:t,parent:a})=>G1(U1(t,a,j1),e.props.headPlacement,Z1.ReviewForm.headRows)};import{StylesIcon as _a1,HashIcon as Ia1,ColumnsIcon as Ra1}from"efficient-easel/icons";import{useEffect as La1,useState as Aa1}from"react";function PD(e,t){let[a,s]=Aa1(null);return La1(()=>{let c=!1;return s(null),v0.listReviews({...e?{limit:e}:{},...t?{designCode:t}:{}}).then(l=>{c||s(l)}),()=>{c=!0}},[e,t]),a}import{Fragment as Va1,jsx as Z4,jsxs as Fh}from"react/jsx-runtime";var Ha1=()=>[{id:"sample-review-1",authorName:p("Sample reviewer"),rating:5,title:p("Sample review title"),body:p("Approved customer reviews appear here automatically \u2014 this card is only a preview of the section's shape."),designCode:"",createdAt:""},{id:"sample-review-2",authorName:p("Sample reviewer"),rating:4,title:"",body:p("Reviews are collected by the Review Form section and wait for your approval before they show."),designCode:"",createdAt:""},{id:"sample-review-3",authorName:p("Sample reviewer"),rating:5,title:p("Another sample"),body:p("Set a product design code on this section to show one product's reviews; leave it blank for the whole store."),designCode:"",createdAt:""}];function Fa1(e){let t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString("en-US",{month:"long",year:"numeric"})}function Ta1({rating:e}){let t=Math.min(5,Math.max(0,Math.round(e)));return Z4("div",{role:"img","aria-label":`${t} out of 5 stars`,className:"flex gap-1 text-[length:var(--size-body,17px)] leading-none",children:Array.from({length:5}).map((a,s)=>Z4("span",{"aria-hidden":!0,className:s<t?"text-accent":"text-fg-dim/30",children:"\u2605"},s))})}var Pa1="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))]",Ea1="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 Tb({look:e,eyebrow:t,title:a,columns:s,limit:c,designCode:l,omitHead:r=!1,editing:o=!1}={}){let i=PD(c??6,l),n=Math.min(3,Math.max(1,s??3)),h=!(i&&i.length>0)&&o,m=i&&i.length>0?i:h?Ha1():[];return!o&&m.length===0?null:Z4("section",{className:"relative z-[2] border-t border-line bg-surface",children:Fh("div",{className:r?Ea1:Pa1,children:[r?null:Fh(Va1,{children:[(t??"").trim()&&Z4(N1,{text:t??"",look:e,className:"mb-4 block"}),(a??"").trim()&&Z4("h2",{className:"mb-11 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-[800px]:mb-8 max-[800px]:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:Y(a??"",!1)})]}),Z4("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(n)},children:m.map(u=>Fh("article",{className:["flex flex-col gap-4 bg-bg p-9 max-[800px]:p-7",h?"opacity-60":""].join(" "),children:[Z4(Ta1,{rating:u.rating}),u.title.trim()&&Z4("h3",{className:"font-display text-[length:var(--size-body,19px)] font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg",children:u.title}),Z4("div",{className:"flex-1 font-serif text-[length:var(--size-body,15px)] leading-[1.65] text-fg-dim",children:x0(u.body).map((d,v)=>Z4("p",{className:v?"mt-3":"",children:d},v))}),Fh("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-[18px]",children:[Z4("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-fg",children:u.authorName}),Z4("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-fg-dim",children:Fa1(u.createdAt)})]})]},u.id))})]})})}import{jsx as Na1}from"react/jsx-runtime";var Wc={eyebrow:"Reviews",title:"From our *customers.*"},ED={label:"Reviews",defaultProps:{eyebrow:"",title:"",columns:3,limit:6,designCode:""},render:e=>{let t=O1(e.headPlacement)==="own-box",a=s=>t?void 0:s;return Na1(Tb,{look:l4(e.eyebrowLook,"Reviews"),eyebrow:a(y(e.eyebrow,Wc.eyebrow,e.puck)),title:a(y(e.title,Wc.title,e.puck)),omitHead:t,columns:e.columns,limit:e.limit,designCode:a1(e.designCode)||void 0,editing:e.puck?.isEditing})}};import{jsx as Pb}from"react/jsx-runtime";var VD={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow",Wc.eyebrow),eyebrowLook:v1("Eyebrow style",Pb(_a1,{}),[...w4],c7("Reviews")),title:G("Heading",Wc.title),_gSource:x("Reviews"),limit:s1("Reviews to display",Pb(Ia1,{}),3,12,1,6),designCode:Q2(q("Design code",Ah)),_gStyle:x("Style"),columns:s1("Columns",Pb(Ra1,{}),1,3,1,3)},resolveFields:(e,{fields:t,parent:a})=>G1(U1(t,a,j1),e.props.headPlacement,Z1.Reviews.headRows)};import{FullWidthIcon as Da1}from"efficient-easel/icons";import{jsx as Eb,jsxs as Ba1}from"react/jsx-runtime";function Uc({place:e,sections:t,editing:a=!1,fullWidth:s=!1,navTextCase:c,menuRow:l}){let o=Ba1(e==="footer"?"footer":"div",{"data-section-group":e,...e==="header"?{"data-header-nav-case":$B(c),"data-header-menu-row":YB(l)??"top"}:null,style:s===!0?{"--sf-site-width":"100vw"}:void 0,children:[a?Eb("p",{className:"px-5 pt-3 font-mono text-[11px] uppercase tracking-[0.15em] text-fg-dim",children:e==="header"?p("Site header \u2014 above every page"):p("Site footer \u2014 below every page")}):null,Eb(t,{minEmptyHeight:120})]});return e==="header"?Eb(jk,{children:o}):o}import{jsx as Za1}from"react/jsx-runtime";var Vb={sections:{type:"slot"}},ND={label:"Site Footer",fields:Vb,render:({sections:e,fullWidth:t,puck:a})=>Za1(Uc,{place:"footer",sections:e,fullWidth:t,editing:a?.isEditing})};import{jsx as Oa1}from"react/jsx-runtime";var _D={fields:{fullWidth:l1("Full width",!1,Oa1(Da1,{})),sections:Vb.sections}};import{CaseIcon as qa1,ContrastIcon as Wa1,FullWidthIcon as Ua1,HeightIcon as ja1,LayoutIcon as Ka1,StickyIcon as $a1}from"efficient-easel/icons";import{jsx as Ga1}from"react/jsx-runtime";var Nb={sections:{type:"slot"}},ID={label:"Site Header",fields:Nb,defaultProps:{sticky:"always",topTextColor:"auto",sections:[]},render:({sections:e,fullWidth:t,navTextCase:a,menuRow:s,puck:c})=>Ga1(Uc,{place:"header",sections:e,fullWidth:t,navTextCase:a,menuRow:s,editing:c?.isEditing})};import{jsx as ma}from"react/jsx-runtime";var{sectionAccent:Ya1}=$9(e=>If(e)??jB,"Follow the site theme"),RD={fields:{heightPx:s1("Height",ma(ja1,{}),w5.min,w5.max,2,w5.default,"px"),fullWidth:l1("Full width",!1,ma(Ua1,{})),sectionAccent:Ya1,topTextColor:x1("Text color at the top",ma(Wa1,{}),[{label:"Auto",value:"auto"},{label:"Light",value:"light"},{label:"Dark",value:"dark"}],"auto"),navTextCase:x1("Letters",ma(qa1,{}),[{label:"Uppercase",value:"uppercase"},{label:"Capitalised",value:"capitalised"}],"uppercase"),menuRow:x1("Menu row",ma(Ka1,{}),[{label:"Own row",value:"top"},{label:"Same row",value:"inline"}],"top"),sticky:x1("Sticky header",ma($a1,{}),[{label:"None",value:"none"},{label:"Always",value:"always"},{label:"On scroll up",value:"on_scroll_up"}],"always"),sections:Nb.sections}};import{jsx as Th,jsxs as Xa1}from"react/jsx-runtime";var y0={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."};function jc(e,t){return e===void 0?t:e}function _b({eyebrow:e,title:t,body:a,buttonText:s,consent:c,formSlug:l,form:r,editing:o=!1,boxes:i,inBoxes:n=!1,...h}){let m=jc(e,y0.eyebrow),u=jc(t,y0.title),d=jc(a,y0.body),v=jc(s,y0.buttonText),g=jc(c,y0.consent),b=L5(l,r),f=g7({form:b,formSlug:l,editing:o}),w=b===void 0,z=!!b||o;return!z&&!m&&!u&&!d?null:n&&i?Th("section",{className:_0(h)?"border-y border-line px-[var(--sf-site-gutter,40px)] py-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:py-[60px]":"mx-auto max-w-[var(--sf-site-width,1600px)] border-y border-line px-[var(--sf-site-gutter,40px)] py-[120px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:py-[60px]",children:Th(i,{className:"grid grid-cols-2 items-start gap-[60px] max-[1100px]:grid-cols-1 max-[1100px]:gap-9"})}):Xa1("section",{className:_0(h)?"grid grid-cols-2 items-end gap-[60px] border-y border-line px-[var(--sf-site-gutter,40px)] py-[120px] max-[1100px]:grid-cols-1 max-[1100px]:gap-9 max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:py-[60px]":"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-2 items-end gap-[60px] border-y border-line px-[var(--sf-site-gutter,40px)] py-[120px] max-[1100px]:grid-cols-1 max-[1100px]:gap-9 max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:py-[60px]",children:[Th(_L,{eyebrow:m,title:u}),Th(Bo,{body:d,buttonLabel:v,consent:g,form:b,submission:f,showForm:z,resolving:w,editing:o})]})}var BD={fields:{_gTextStyle:x("Text style"),...Object.fromEntries(Zo.map(e=>[Do[e],v1(fu[e],We(fu[e]),[{label:"Section's own",value:""},...d5.map(t=>({label:H9[t],value:t}))],"")])),_gContent:x("Content"),eyebrow:F("Eyebrow",y0.eyebrow),title:G("Heading",y0.title),body:G("Body",y0.body),formSlug:T5(),buttonText:F("Button",y0.buttonText),consent:G("Consent line",y0.consent)},resolveFields:(e,{fields:t})=>{let a=e.props.region,s=t,c=["eyebrow","title"],l=["body","formSlug","buttonText","consent"],r=Zo.map(n=>Do[n]),o=a==="head"?c:l,i={};for(let[n,h]of Object.entries(s)){if(n.startsWith("_")){i[n]=h;continue}if(r.includes(n)){a!=="head"&&(i[n]=h);continue}o.includes(n)&&(i[n]=h)}return i}};import{jsx as Ja1}from"react/jsx-runtime";var Ib={boxes:{type:"slot",allow:["SubmitBox"]}},ZD={label:"Photo Submission Form",fields:Ib,defaultProps:{eyebrow:y0.eyebrow,title:y0.title,body:y0.body,formSlug:"",buttonText:y0.buttonText,consent:y0.consent},render:e=>Ja1(_b,{boxes:e.boxes,inBoxes:e.layout==="boxes",eyebrow:e2(e.eyebrow,y0.eyebrow,e.puck),title:e2(e.title,y0.title,e.puck),body:e2(e.body,y0.body,e.puck),buttonText:e2(e.buttonText,y0.buttonText,e.puck),consent:e2(e.consent,y0.consent,e.puck),formSlug:a1(e.formSlug)||void 0,form:e.form,editing:e.puck?.isEditing})};var DD={fields:{_gContent:x("Content"),eyebrow:F("Eyebrow",y0.eyebrow),title:G("Heading",y0.title),body:G("Body",y0.body),_gForm:x("Form"),formSlug:T5(),_gButton:x("Button"),buttonText:F("Button",y0.buttonText),_gFootnote:x("Footnote"),consent:G("Consent line",y0.consent),boxes:Ib.boxes},resolveFields:(e,{fields:t})=>{if(e.props.layout!=="boxes")return t;let{_gContent:a,eyebrow:s,title:c,body:l,_gForm:r,formSlug:o,_gButton:i,buttonText:n,_gFootnote:h,consent:m,...u}=t;return u}};var Qa1=["issues","posts"],OD=[{label:"Issues",value:"issues"},{label:"Blog posts",value:"posts"}],Rb="issues";function Bb(e){return Qa1.includes(e)?e:Rb}var es1={issues:["issues"],_gPosts:["posts"],posts:["posts"],limit:["posts"]};function GD(e,t){let a=Bb(t),s={...e};for(let[c,l]of Object.entries(es1))l.includes(a)||delete s[c];return s}import{CategoryIcon as as1,HashIcon as ss1}from"efficient-easel/icons";var Z0={headNum:A.sectionNumber,headTitle:A.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:u2.href},qD=()=>["N\xB0 04","N\xB0 03","N\xB0 02","N\xB0 01"].map(e=>({n:e,title:p("Issue title"),small:p("Short description"),date:p("Month YYYY")}));function ts1(e){return e.map((t,a)=>({n:`N\xB0 ${String(e.length-a).padStart(2,"0")}`,title:t.title,small:t.meta,date:t.dateLabel}))}function Ph(e,t){if(e==="issues")return w1(t.issues,qD(),t.puck);let a=t.posts,s=typeof t.limit=="number"&&t.limit>0?t.limit:4,c=Array.isArray(a)?ts1(a.slice(0,s)):[];return w1(c,qD(),t.puck)}import{jsx as WD}from"react/jsx-runtime";var UD={fields:{_sHead:Q1("Section header"),_gHeadCopy:x("Content"),headNum:F("Number",Z0.headNum),headTitle:G("Heading",Z0.headTitle),headDesc:G("Body",Z0.headDesc),_sLeft:Q1("Newsletter panel"),_gLeftCopy:x("Content"),kicker:F("Eyebrow",Z0.kicker),leadTitle:G("Heading",Z0.leadTitle),intro:G("Intro",Z0.intro),_gForm:x("Signup form"),emailPlaceholder:q("Email placeholder",Z0.emailPlaceholder),submitText:q("Submit button",Z0.submitText),subscribedText:q("Subscribed button",Z0.subscribedText),finePrint:G("Fine print",Z0.finePrint),_sRight:Q1("Recent issues"),_gRightCopy:x("Content"),contentType:x1("Type",WD(as1,{}),[...OD],Rb),issuesHeading:F("Panel heading",Z0.issuesHeading),issues:{type:"array",label:"Issues",arrayFields:{n:f1("Number"),title:f1("Title"),small:f1("Sub-line"),date:f1("Date")},getItemSummary:e=>[e?.n,e?.title].filter(Boolean).join(" \xB7 ")||p("Issue")},_gPosts:x("Blog posts"),posts:s2(v9),limit:s1("Posts to display",WD(ss1,{}),1,6,1,4),_gArchive:x("Archive link"),archiveText:F("Archive button",Z0.archiveText),archiveHref:F1("Archive link")},resolveFields:(e,{fields:t})=>GD(t,e.props.contentType)};import{HashIcon as os1}from"efficient-easel/icons";import{useState as cs1}from"react";import{jsx as X3,jsxs as z9}from"react/jsx-runtime";var ls1="That didn't go through \u2014 please try again.";function Kc({headNum:e,headTitle:t,headDesc:a,kicker:s,leadTitle:c,intro:l,emailPlaceholder:r,submitText:o,subscribedText:i,finePrint:n,issuesHeading:h,issues:m,archiveText:u,archiveHref:d,source:v=D3.subscribeSection,editing:g=!1,...b}){let[f,w]=cs1(""),{status:z,submit:M}=Qr({source:v,dryRun:g}),S=z==="sent",H=z==="sending",I=z==="error"||z==="invalid",E=(m??[]).filter(N=>(N?.n??"").trim()||(N?.title??"").trim()||(N?.date??"").trim()),O=E.length>0,T=S?i||"Subscribed \u2713":H?"Sending\u2026":o||"Subscribe \u2192";function P(N){N.preventDefault(),!S&&M({email:f})}return z9("section",{className:_0(b)?"border-b border-line px-[var(--sf-site-gutter,40px)] py-[140px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:py-20":"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] py-[140px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:py-20",children:[X3(O2,{num:e,title:t?Y(t,!0):void 0,desc:a,accentTracking:"-0.025em"}),z9("div",{className:O?"grid min-h-[460px] grid-cols-[1.1fr_1fr] border border-line max-[1100px]:grid-cols-1":"grid min-h-[460px] grid-cols-1 border border-line",children:[z9("div",{className:O?"flex flex-col justify-center gap-6 border-r border-line px-14 py-16 max-[1100px]:border-r-0 max-[1100px]:border-b max-[1100px]:px-7 max-[1100px]:py-12":"flex flex-col justify-center gap-6 px-14 py-16 max-[1100px]:px-7 max-[1100px]:py-12",children:[s&&X3(N1,{text:s}),c&&X3("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:Y(c,!0)}),l&&X3("p",{className:"max-w-[480px] font-serif text-[length:var(--size-body,19px)] italic leading-[1.5] text-fg-dim",children:k(l,!0)}),z9("form",{className:"mt-2 flex max-w-[520px]",onSubmit:P,children:[X3("input",{type:"email",placeholder:r||"your@email.com",required:!0,value:f,onChange:N=>w(N.target.value),disabled:S,className:"flex-1 border border-r-0 border-line bg-bg px-5 py-[18px] font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.18em] text-fg placeholder:text-fg-dim outline-none focus:border-accent"}),X3("button",{type:"submit",disabled:S||H,className:"border border-btn bg-btn px-7 py-[18px] font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.3em] text-btn-ink transition-colors hover:bg-fg hover:border-fg disabled:cursor-default disabled:opacity-90",children:D0(T)})]}),I&&X3("p",{role:"alert",className:"max-w-[480px] font-mono text-[length:var(--size-label,12px)] uppercase leading-[1.7] tracking-[0.18em] text-alert",children:ls1}),n&&X3("p",{className:"max-w-[480px] font-mono text-[length:var(--size-label,12px)] uppercase leading-[1.7] tracking-[0.18em] text-fg-dim",children:k(n)})]}),O&&z9("div",{id:"sub-recent-issues",className:"grid grid-rows-[auto_1fr_auto] gap-6 bg-[var(--journal-panel-bg)] px-11 py-12 scroll-mt-[160px] max-[1100px]:px-7 max-[1100px]:py-9",children:[h&&X3(N1,{text:h,size:12}),X3("div",{className:"flex flex-col",children:E.map((N,D)=>z9("div",{className:["grid grid-cols-[60px_1fr_auto] items-start gap-[18px] border-b border-line py-[18px]",D===0?"border-t border-line":""].join(" "),children:[X3("span",{className:"font-mono text-[length:var(--size-label,13px)] tracking-[0.22em] text-accent",children:N.n?k(N.n):""}),z9("span",{className:"font-display text-[length:var(--size-body,16px)] font-medium leading-[1.3] tracking-[-0.01em]",children:[N.title?k(N.title):"",N.small?.trim()&&X3("small",{className:"mt-1 block font-serif text-[length:var(--size-body,13px)] font-normal italic text-fg-dim",children:k(N.small,!0)})]}),X3("span",{className:"whitespace-nowrap pt-[3px] text-right font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-fg-dim",children:N.date?k(N.date):""})]},D))}),u&&X3(s0,{href:d||"/journal",className:"flex items-center justify-end gap-2.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-accent hover:text-fg",children:k(u)})]})]})]})}import{jsx as rs1}from"react/jsx-runtime";var J0={...Z0,issuesHeading:"Recent posts",archiveText:"Read all posts \u2192"},jD={label:"Subscribe with Posts",defaultProps:{headNum:"",headTitle:"",headDesc:"",kicker:"",leadTitle:"",intro:"",emailPlaceholder:"",submitText:"",subscribedText:"",finePrint:"",issuesHeading:"",limit:4,archiveText:"",archiveHref:""},render:e=>{let t=Ph("posts",e);return rs1(Kc,{headNum:y(e.headNum,J0.headNum,e.puck),headTitle:y(e.headTitle,J0.headTitle,e.puck),headDesc:y(e.headDesc,J0.headDesc,e.puck),kicker:y(e.kicker,J0.kicker,e.puck),leadTitle:y(e.leadTitle,J0.leadTitle,e.puck),intro:y(e.intro,J0.intro,e.puck),emailPlaceholder:a1(e.emailPlaceholder)||J0.emailPlaceholder,submitText:a1(e.submitText)||J0.submitText,subscribedText:a1(e.subscribedText)||J0.subscribedText,finePrint:y(e.finePrint,J0.finePrint,e.puck),issuesHeading:y(e.issuesHeading,J0.issuesHeading,e.puck),issues:t,source:D3.subscribeBlogsSection,editing:e.puck?.isEditing,archiveText:y(e.archiveText,J0.archiveText,e.puck),archiveHref:a1(e.archiveHref)||J0.archiveHref})}};import{jsx as is1}from"react/jsx-runtime";var KD={fields:{_sHead:Q1("Section header"),_gHeadCopy:x("Content"),headNum:F("Number",J0.headNum),headTitle:G("Heading",J0.headTitle),headDesc:G("Body",J0.headDesc),_sLeft:Q1("Newsletter panel"),_gLeftCopy:x("Content"),kicker:F("Eyebrow",J0.kicker),leadTitle:G("Heading",J0.leadTitle),intro:G("Intro",J0.intro),_gForm:x("Signup form"),emailPlaceholder:q("Email placeholder",J0.emailPlaceholder),submitText:q("Submit button",J0.submitText),subscribedText:q("Subscribed button",J0.subscribedText),finePrint:G("Fine print",J0.finePrint),_sRight:Q1("Recent posts"),_gRightCopy:x("Content"),issuesHeading:F("Panel heading",J0.issuesHeading),_gPosts:x("Blog posts"),posts:s2(v9),limit:s1("Posts to display",is1(os1,{}),1,6,1,4),_gArchive:x("Archive link"),archiveText:F("Archive button",J0.archiveText),archiveHref:F1("Archive link")}};import{jsx as ns1}from"react/jsx-runtime";var $D={label:"Booking box",defaultProps:{},render:e=>ns1(du,{region:typeof e.region=="string"?e.region:void 0,eyebrow:y(e.eyebrow,A.eyebrow,e.puck),heading:y(e.heading,A.heading,e.puck),intro:y(e.intro,A.body,e.puck),buttonLabel:y(e.buttonLabel,A.button,e.puck),successMessage:y(e.successMessage,A.bookingConfirmation,e.puck),styleStep:e.styleStep,styleName:e.styleName,styleValue:e.styleValue,styleNote:e.styleNote})};import{useEffect as Zb,useState as Db}from"react";import{Fragment as hs1,jsx as H0,jsxs as C3}from"react/jsx-runtime";var YD="border-b border-line bg-transparent py-3.5 font-display text-[length:var(--size-body,18px)] tracking-[0.01em] text-fg outline-none transition-colors focus:border-accent";function Ob({routingNumber:e,routingTagline:t,groups:a,formNumber:s,formHeading:c,metaLines:l,showOther:r=!0,otherLabel:o="Other",otherNoteTitle:i,otherNoteBody:n,buttonText:h,consent:m,channels:u,formSlug:d,form:v,editing:g,initialActiveId:b,onActiveChange:f,reasonExtras:w,...z}){let M=[...a.map(W=>W.id),...r?[T8]:[]],S=b&&M.includes(b)?b:M[0]??T8,[H,I]=Db(S);Zb(()=>{M.includes(H)||I(M[0]??T8)},[M.join("|")]),Zb(()=>{b&&M.includes(b)&&I(b)},[b]);let E=W=>{I(W),T(null),f?.(W)},[O,T]=Db(null),P=(u??[]).filter(W=>!W.hidden),N=P.find(W=>W.groupId===H)?.value??null,D=O??N,Z=L5(d,v),_=g7({form:Z,formSlug:d,editing:g}),U=Z===void 0,V=!!Z||!!g,[J,j]=Db(!1);return Zb(()=>{let W=()=>j(document.documentElement.getAttribute("data-theme")==="light");W();let n1=new MutationObserver(W);return n1.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>n1.disconnect()},[]),C3(hs1,{children:[C3("section",{className:_0(z)?"border-b border-line px-[var(--sf-site-gutter,40px)] py-[60px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))]":"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] py-[60px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))]",style:J?void 0:{background:"var(--section-bg)"},children:[(e||t)&&C3("div",{className:"mb-6 flex items-center gap-6 border-b border-line pb-6",children:[e&&H0(N1,{text:e}),t&&H0("span",{className:"font-display text-[length:var(--size-body,14px)] uppercase tracking-[0.04em] text-fg-dim",children:k(t)})]}),H0("div",{className:"sf-card grid grid-cols-4 gap-[2px] border border-line bg-line max-[1100px]:grid-cols-2 max-[700px]:grid-cols-1",children:a.map(W=>{let n1=H===W.id;return C3("button",{type:"button",onClick:()=>{E(W.id),typeof window<"u"&&window.matchMedia("(max-width: 1100px)").matches&&document.getElementById("contact-form")?.scrollIntoView({behavior:i6(),block:"start"})},className:["flex min-h-[240px] cursor-pointer flex-col gap-3.5 px-7 py-9 text-left transition-colors",n1?"bg-surface outline outline-2 -outline-offset-2 outline-accent":"bg-bg hover:bg-surface"].join(" "),children:[W.eyebrow&&H0("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent",children:W.eyebrow}),H0("h3",{className:"whitespace-pre-line font-heading3 text-[length:var(--size-headingSmall,26px)] font-medium uppercase leading-[1.05] tracking-[-0.02em]",children:W.title}),W.copy&&H0("p",{className:"mt-auto font-display text-[length:var(--size-body,14px)] leading-[1.5] text-fg-dim",children:W.copy}),W.response&&C3("div",{className:"mt-2 flex justify-between border-t border-line pt-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-fg-dim",children:[H0("span",{children:"Response"}),H0("strong",{className:"font-normal text-fg",children:W.response})]})]},W.id)})})]}),(V||P.length>0)&&C3("section",{id:"contact-form",className:["mx-auto grid max-w-[var(--sf-site-width,1600px)] scroll-mt-[80px] gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[1100px]:grid-cols-1 max-[1100px]:gap-[60px] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:py-[60px]",V&&P.length>0?"grid-cols-[1.3fr_1fr]":"grid-cols-1"].join(" "),children:[V&&C3("div",{children:[C3("div",{className:"mb-7 flex items-end justify-between gap-6 border-b border-line pb-6",children:[C3("div",{children:[s&&H0("div",{className:"pb-2 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.3em] text-accent",children:k(s)}),c&&H0("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:Y(c,!0)})]}),!!(l&&l.length)&&H0("div",{className:"text-right font-mono text-[length:var(--size-label,12px)] uppercase leading-[1.8] tracking-[0.22em] text-fg-dim max-[700px]:text-left",children:l.map((W,n1)=>H0("div",{children:W},n1))})]}),Z?_.done?H0("div",{className:"border border-accent bg-accent/[0.08] p-8 font-display text-[length:var(--size-body,15px)] leading-[1.6] text-fg-dim",children:Ie(Z,"Thanks \u2014 we've received your message.")}):C3("form",{className:"grid grid-cols-2 gap-5 max-[700px]:grid-cols-1",onSubmit:_.handleSubmit,children:[Z.fields.map(W=>H0(D2,{label:W.label,required:W.required,className:W.type==="textarea"||W.type==="checkbox"?"col-span-2 max-[700px]:col-span-1":void 0,children:H0(v7,{field:W,value:_.valueOf(W.key),onChange:n1=>_.set(W.key,n1),className:W.type==="textarea"?`${YD} min-h-[140px] resize-y leading-[1.5]`:W.type==="checkbox"?"size-4 self-start accent-accent":YD})},W.key)),C3("div",{className:"col-span-2 flex flex-col gap-2 max-[700px]:col-span-1",children:[H0(y8,{required:!0,children:"Reason"}),C3("div",{className:"mt-1 flex flex-wrap gap-2",children:[a.map(W=>{let n1=H===W.id;return H0("button",{type:"button",onClick:()=>E(W.id),className:["cursor-pointer border px-3.5 py-2.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] transition-colors",n1?"border-accent bg-accent text-bg":"border-line text-fg-dim hover:text-fg"].join(" "),children:W.title},W.id)}),r&&H0("button",{type:"button",onClick:()=>E(T8),className:["cursor-pointer border px-3.5 py-2.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] transition-colors",H===T8?"border-accent bg-accent text-bg":"border-line text-fg-dim hover:text-fg"].join(" "),children:D0(o)})]})]}),w?.(H),H===T8&&(i||n)&&C3("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:[i&&H0("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent",children:k(i)}),n&&x0(n).map((W,n1)=>H0("p",{className:"font-display text-[length:var(--size-body,15px)] leading-[1.55] text-fg-dim",children:k(W)},n1))]}),H0(Re,{value:_.honeypot,onChange:_.setHoneypot}),_.error&&H0("p",{role:"alert",className:"col-span-2 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-alert max-[700px]:col-span-1",children:_.error}),C3("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:[m&&H0("span",{className:"max-w-[380px] font-mono text-[length:var(--size-label,12px)] uppercase leading-[1.6] tracking-[0.18em] text-fg-dim",children:k(m)}),H0("button",{type:g?"button":"submit",disabled:_.submitting,className:"cursor-pointer bg-btn px-8 py-[18px] font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg disabled:cursor-wait disabled:opacity-60 max-[700px]:w-full",children:_.submitting?"Sending\u2026":h?D0(h):"Send Message \u2192"})]})]}):H0("p",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-fg-dim",children:U?p("Loading form\u2026"):p("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.")})]}),P.length>0&&H0("aside",{className:"flex flex-col gap-0 max-[1100px]:hidden",children:P.map((W,n1)=>{let z1=D===W.value,c1=!!!W.groupId;return C3("div",{onClick:c1?()=>T(W.value):void 0,className:["relative flex flex-col gap-2.5 border-b border-line border-l-2 px-5 py-7 transition-all",c1?"cursor-pointer border-t-2 border-t-accent":"",z1?"border-l-accent pl-6":c1?"border-l-transparent hover:bg-accent/[0.04]":"border-l-transparent"].join(" "),style:z1?{background:"color-mix(in oklab, var(--accent) 8%, transparent)"}:void 0,children:[z1&&C3("span",{className:"absolute right-[18px] top-6 flex flex-col items-end gap-0.5 text-right",children:[H0("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent",children:"\u2192 Message routes here"}),H0("span",{className:"font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.18em] text-fg-dim",children:"Other inboxes filter as spam"})]}),H0("span",{className:["font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] transition-colors",z1?"text-fg":"text-accent"].join(" "),children:W.label}),c1?H0("a",{href:W.href,onClick:g1=>g1.stopPropagation(),className:["font-heading3 text-[length:var(--size-headingSmall,24px)] font-medium leading-[1.2] tracking-[-0.02em] transition-colors hover:text-accent",z1?"text-accent":"text-fg"].join(" "),children:W.value}):H0("span",{className:["font-heading3 text-[length:var(--size-headingSmall,24px)] font-medium leading-[1.2] tracking-[-0.02em]",z1?"text-accent":"text-fg"].join(" "),children:W.value}),W.sub&&H0("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] text-fg-dim",children:W.sub})]},`${W.value}-${n1}`)})})]})]})}import{jsx as ms1}from"react/jsx-runtime";var XD={label:"Contact Form",defaultProps:{routingNumber:f0.routingNumber,routingTagline:f0.routingTagline,groups:f0.groups,formSlug:"",formNumber:f0.formNumber,formHeading:f0.formHeading,metaItems:f0.metaLines.map(e=>({text:e})),showOther:f0.showOther,otherLabel:f0.otherLabel,otherNoteTitle:f0.otherNoteTitle,otherNoteBody:f0.otherNoteBody,buttonText:f0.buttonText,consent:f0.consent,channels:f0.channels},render:e=>ms1(Ob,{routingNumber:y(e.routingNumber,f0.routingNumber,e.puck),routingTagline:y(e.routingTagline,f0.routingTagline,e.puck),groups:e.groups??[],formNumber:y(e.formNumber,f0.formNumber,e.puck),formHeading:y(e.formHeading,f0.formHeading,e.puck),metaLines:(e.metaItems??[]).map(t=>t?.text??"").filter(Boolean),showOther:e.showOther,otherLabel:a1(e.otherLabel)||f0.otherLabel,otherNoteTitle:y(e.otherNoteTitle,f0.otherNoteTitle,e.puck),otherNoteBody:y(e.otherNoteBody,f0.otherNoteBody,e.puck),buttonText:a1(e.buttonText)||f0.buttonText,consent:y(e.consent,f0.consent,e.puck),channels:e.channels??[],formSlug:a1(e.formSlug)||void 0,form:e.form,editing:e.puck?.isEditing})};import{jsx as JD}from"react/jsx-runtime";function Gb({thickness:e=1,lengthPct:t=100,hideOnMobile:a=!1}){return JD("div",{className:`col-span-full w-full basis-full ${a?"max-[800px]:hidden":""}`,"aria-hidden":"true",children:JD("div",{className:"bg-line",style:{height:`${e}px`,width:`${t}%`}})})}import{jsx as ps1}from"react/jsx-runtime";var QD={label:"Divider",defaultProps:{thickness:1,lengthPct:100,hideOnMobile:!1},render:({thickness:e,lengthPct:t,hideOnMobile:a})=>ps1(Gb,{thickness:e,lengthPct:t,hideOnMobile:a})};import{useState as us1}from"react";import{jsx as qb,jsxs as eO}from"react/jsx-runtime";function Wb({heading:e,placeholder:t="Email address",buttonLabel:a="Subscribe"}){let{open:s}=Fp(),[c,l]=us1("");return eO("div",{className:"w-full min-w-0",children:[e?qb("h4",{className:"mb-3 font-mono text-[13px] uppercase tracking-[0.2em] text-fg-dim",children:Y(e,!1)}):null,eO("form",{className:"flex max-w-[320px] flex-wrap items-stretch gap-2",onSubmit:r=>{r.preventDefault(),s({email:c.trim(),source:D3.footerSignup})},children:[qb("input",{type:"email",placeholder:t,value:c,onChange:r=>l(r.target.value),className:"w-0 min-w-[7rem] flex-1 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":p2(e??"")||"Email address"}),qb("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:D0(a)})]})]})}import{jsx as ds1}from"react/jsx-runtime";var tO={label:"Email Form",defaultProps:{heading:"",placeholder:"Email address",buttonLabel:"Subscribe"},render:({heading:e,placeholder:t,buttonLabel:a,puck:s})=>ds1(Wb,{heading:j4(e,"Join our email list",s),placeholder:t||void 0,buttonLabel:a||void 0})};import{jsx as Eh,jsxs as vs1}from"react/jsx-runtime";var gs1={left:"items-start text-left",center:"items-center text-center",right:"items-end text-right"};function Ub({tagline:e,widthPct:t=100,align:a="left",reverse:s=!0,padTop:c=0,padRight:l=0,padBottom:r=0,padLeft:o=0,editing:i=!1}){let{src:n,reversedSrc:h,inkIsDark:m,wordmark:u,siteName:d}=Cl(),v=Math.round(h7*(t/100)),g={...c?{paddingTop:c}:{},...l?{paddingRight:l}:{},...r?{paddingBottom:r}:{},...o?{paddingLeft:o}:{}};return vs1("div",{className:`flex min-w-0 flex-col ${gs1[a]} [container-type:inline-size]`,style:g,children:[Eh(L1,{href:"/","aria-label":d?`${d} home`:"Home",className:"inline-flex max-w-full overflow-x-clip",children:Eh(fe,{variant:"footer",sizePx:v,src:n,reverse:s,reversedSrc:h,inkIsDark:m,wordmark:u,siteName:d,fitWordmarkToContainer:!0,fitFloorPx:wC})}),e?Eh("p",{className:"mt-3.5 max-w-[280px] text-[13px] leading-[1.5] text-fg-dim",children:k(e)}):i?Eh("p",{className:"mt-3.5 max-w-[280px] text-[13px] italic leading-[1.5] text-fg-dim/60",children:p("Add a short brand tagline \u2192")}):null]})}import{jsx as fs1}from"react/jsx-runtime";var aO={label:"Logo",defaultProps:{widthPct:100,align:"left",reverse:"auto",padTop:0,padRight:0,padBottom:0,padLeft:0},render:({tagline:e,widthPct:t,align:a,reverse:s,padTop:c,padRight:l,padBottom:r,padLeft:o,puck:i})=>fs1(Ub,{tagline:e||void 0,widthPct:t,align:a,reverse:s!=="off",padTop:c,padRight:l,padBottom:r,padLeft:o,editing:i?.isEditing})};import{jsx as bs1}from"react/jsx-runtime";var sO={label:"Menu",defaultProps:{accordionMobile:!1,showDividers:!1},render:({menu:e,heading:t,accordionMobile:a,showDividers:s,puck:c})=>bs1(Na,{menu:e,heading:t||void 0,accordionMobile:a,showDividers:s,editing:c?.isEditing})};import{jsx as xs1}from"react/jsx-runtime";var cO={label:"Social Logos",defaultProps:{iconStyle:le,iconSize:"medium",align:"start",gap:Dc},render:({iconStyle:e,iconSize:t,align:a,gap:s,puck:c})=>xs1(Lb,{iconStyle:e,iconSize:t,align:a,gap:s,editing:c?.isEditing})};import{jsx as ys1}from"react/jsx-runtime";var zs1={sm:"text-[12px]",md:"text-[13px]",lg:"text-[15px]"};function jb({text:e,size:t="md",tone:a="default",editing:s=!1}){let c=e||(s?p("Add a line of footer text."):"");return c?ys1("p",{className:`${zs1[t]} leading-[1.5] ${a==="dim"?"text-fg-dim":"text-fg"}`,children:k(c)}):null}import{jsx as ws1}from"react/jsx-runtime";var lO={label:"Text",defaultProps:{size:"md",tone:"default"},render:({text:e,size:t,tone:a,puck:s})=>ws1(jb,{text:e||void 0,size:t,tone:a,editing:s?.isEditing})};import{jsx as Cs1}from"react/jsx-runtime";var rO={label:"Form",defaultProps:{formSlug:"",heading:"",intro:"",submitText:"",finePrint:""},render:e=>Cs1(Cp,{formSlug:a1(e.formSlug)||void 0,heading:a1(e.heading)||void 0,intro:a1(e.intro)||void 0,submitText:a1(e.submitText)||void 0,finePrint:a1(e.finePrint)||void 0,form:e.form,editing:e.puck?.isEditing})};import{jsx as ks1}from"react/jsx-runtime";var oO={label:"Legal Line",render:()=>ks1(Bc,{})};import{jsx as Ms1}from"react/jsx-runtime";var iO={label:"Submit box",defaultProps:{},render:e=>Ms1(bu,{region:typeof e.region=="string"?e.region:void 0,eyebrow:e2(e.eyebrow,y0.eyebrow,e.puck),title:e2(e.title,y0.title,e.puck),body:e2(e.body,y0.body,e.puck),buttonText:e2(e.buttonText,y0.buttonText,e.puck),consent:e2(e.consent,y0.consent,e.puck),formSlug:a1(e.formSlug)||void 0,form:e.form,editing:e.puck?.isEditing,styleField:e.styleField,styleTick:e.styleTick,styleThanks:e.styleThanks})};import{jsx as Ss1}from"react/jsx-runtime";var nO={label:"Subscribe Form",defaultProps:{headNum:"",headTitle:"",headDesc:"",kicker:"",leadTitle:"",intro:"",emailPlaceholder:"",submitText:"",subscribedText:"",finePrint:"",issuesHeading:"",issues:[],archiveText:"",archiveHref:""},render:({headNum:e,headTitle:t,headDesc:a,kicker:s,leadTitle:c,intro:l,emailPlaceholder:r,submitText:o,subscribedText:i,finePrint:n,issuesHeading:h,issues:m,contentType:u,posts:d,limit:v,archiveText:g,archiveHref:b,puck:f})=>Ss1(Kc,{headNum:y(e,Z0.headNum,f),headTitle:y(t,Z0.headTitle,f),headDesc:y(a,Z0.headDesc,f),kicker:y(s,Z0.kicker,f),leadTitle:y(c,Z0.leadTitle,f),intro:y(l,Z0.intro,f),emailPlaceholder:a1(r)||Z0.emailPlaceholder,submitText:a1(o)||Z0.submitText,subscribedText:a1(i)||Z0.subscribedText,finePrint:y(n,Z0.finePrint,f),issuesHeading:y(h,Z0.issuesHeading,f),issues:Ph(Bb(u),{issues:m,posts:d,limit:v,puck:f}),source:D3.subscribeSection,editing:f?.isEditing,archiveText:y(g,Z0.archiveText,f),archiveHref:a1(b)||Z0.archiveHref})};var hO={AppointmentBooking:UZ,BookingBox:$D,ContactRouting:XD,Events:oD,Footer:pD,FooterDivider:QD,FooterEmailSignup:tO,FooterGroup:fD,FooterLogo:aO,FooterMenu:sO,FooterSocial:cO,FooterText:lO,Form:rO,LegalLineBlock:oO,ReviewForm:FD,Reviews:ED,[A9]:ND,[L9]:ID,SubmitBox:iO,SubmitBuild:ZD,Subscribe:nO,SubscribeBlogs:jD};var Ls1={AppointmentBooking:jZ,BookingBox:KZ,ContactRouting:YZ,Events:iD,Footer:uD,FooterDivider:dD,FooterEmailSignup:gD,FooterGroup:bD,FooterLogo:xD,FooterMenu:wD,FooterSocial:SD,FooterText:LD,Form:AD,LegalLineBlock:HD,ReviewForm:TD,Reviews:VD,[A9]:_D,[L9]:RD,SubmitBox:BD,SubmitBuild:DD,Subscribe:UD,SubscribeBlogs:KD},h2=Ye(hO,Ls1);import{jsx as D6,jsxs as dO}from"react/jsx-runtime";var Kb=e=>e==="sentence"?"none":void 0,Z6=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0,$c=e=>typeof e=="string"&&e?e:void 0,As1=["font","color","size","weight","italic","lineHeight","letterSpacing","paragraphSpacing","letterCase","largestSize"];function Vh(e){let t={};for(let a of As1)e[a]!==void 0&&(t[a]=e[a]);return t}function Hs1(e){let t=e.fonts,a=e.sizes,s=e.typography,c=Mz(e.compression),l=(o,i)=>({id:`heading-${o}`,kind:"heading",name:`Heading ${o}`,values:Vh(i)}),r=(o,i={})=>({id:`body-${o}`,kind:"body",name:`Body ${o}`,values:Vh(i)});return[l(1,{font:$c(t.heading),size:Z6(a.headingLarge),weight:Z6(s.weight),lineHeight:c.lineHeight,letterSpacing:c.letterSpacing,letterCase:Kb(s.case),largestSize:Z6(s.maxPx)}),l(2,{font:$c(t.heading2),size:Z6(a.headingMedium),weight:Z6(s.weight2),lineHeight:c.lineHeight,letterSpacing:c.letterSpacing,letterCase:Kb(s.case2)}),l(3,{font:$c(t.heading3),size:Z6(a.headingSmall),weight:Z6(s.weight3),lineHeight:c.lineHeight,letterSpacing:c.letterSpacing,letterCase:Kb(s.case3)}),r(1,{font:$c(t.body),size:Z6(a.body)}),r(2),r(3),r(4),r(5,{font:$c(t.label),size:Z6(a.label)})]}function mO(e){return Array.isArray(e)&&e.every(t=>t&&typeof t=="object"&&typeof t.id=="string"&&(t.kind==="heading"||t.kind==="body")&&typeof t.name=="string")?e.map(t=>({...t,values:Vh(t.values??{})})):null}function pO(e){return mO(e)??[]}function eh0(e,t){let a=Hs1(t),s=mO(e);return s?s.map(c=>({...c,values:Vh({...Fs1(a,c.id),...c.values})})):a}var Fs1=(e,t)=>e.find(a=>a.id===t)?.values??{};function th0(e,t){let a=u=>e.find(d=>d.id===u)?.values??{},s=a("heading-1"),c=a("heading-2"),l=a("heading-3"),r=a("body-1"),o=a("body-5"),i=t.fonts,n=t.sizes,h=t.typography,m=u=>u==="none"?"sentence":"authored";return{fonts:{...i,heading:s.font??i.heading,heading2:c.font??s.font??i.heading2,heading3:l.font??s.font??i.heading3,body:r.font??i.body,label:o.font??i.label},sizes:{...n,headingLarge:s.size??null,headingMedium:c.size??null,headingSmall:l.size??null,body:r.size??null,label:o.size??null},compression:t.compression,typography:{...h,case:m(s.letterCase),weight:s.weight??null,maxPx:s.largestSize??null,weight2:c.weight??null,weight3:l.weight??null,case2:m(c.letterCase),case3:m(l.letterCase)}}}function Ts1(e){switch(e.id){case"heading-1":return"font-display";case"heading-2":return"font-heading2";case"heading-3":return"font-heading3";case"body-1":return"font-body";case"body-5":return"font-mono";default:return`font-${e.id}`}}function Ps1(e){return e==="accent"?"var(--accent)":e==="text"?"var(--fg)":e==="labels"?"var(--fg-dim)":/^#[0-9a-f]{6}$/i.test(e)?e:null}function Es1(e){let t=":is([data-sf-bullet], [data-sf-number])";return[`${e} br:not(br + br) { display: block; content: ""; margin-top: var(--sf-part-para) }`,`${e} ${t}:not(:first-child) { margin-top: var(--sf-part-para) }`,`${e} ${t}:not(:last-child) { margin-bottom: var(--sf-part-para) }`]}function uO(e){let t=[];for(let a of e){let s=a.values,c=`.${Ts1(a)}`,l=[],r=s.font!==void 0?sz.find(n=>n.key===s.font)?.cssVar:void 0;if(r&&l.push(`font-family: var(${r})`),s.size!==void 0){let n=s.largestSize!==void 0?Math.min(s.size,s.largestSize):s.size;l.push(`font-size: ${n}px`)}let o=s.color!==void 0?Ps1(s.color):null;o&&l.push(`color: ${o}`),s.italic===!0&&l.push("font-style: italic"),s.weight!==void 0&&l.push(`font-weight: ${s.weight}`);let i=[];s.lineHeight!==void 0&&i.push(`line-height: ${s.lineHeight}`),s.letterSpacing!==void 0&&i.push(`letter-spacing: ${s.letterSpacing}em`),a.kind==="body"&&l.push(...i),s.letterCase!==void 0&&l.push(`text-transform: ${s.letterCase==="upper"?"uppercase":s.letterCase==="lower"?"lowercase":"none"}`),s.paragraphSpacing&&l.push(`--sf-part-para: ${s.paragraphSpacing}px`),l.length&&t.push(`${c} { ${l.join("; ")} }`),a.kind==="heading"&&i.length&&t.push(`${c}, ${c}:is(h1, h2, h3, h4) { ${i.join("; ")} }`),s.paragraphSpacing&&t.push(...Es1(c))}return t.join(`
|
|
154
|
-
`)}import{useEasel as Vs1}from"efficient-easel/easel";var Ns1="color-mix(in oklab, var(--bg) 40%, #ffffff)",_s1="12vh";function Is1({style:e,frameClass:t,children:a}){let{appState:s}=Vs1(d=>d),c=s.data.content,l=s.data.root;if(Bw(c))return D6("div",{className:`sf-themed-content${t?` ${t}`:""}`,style:{...e,background:Ns1,minHeight:"100vh",paddingBottom:_s1},children:D6("div",{style:{background:"var(--bg)"},children:a})});let r=Ca(c)&&cr(l,c),o=Ca(c)?Ow(l,c):null,i=o?{[Dw]:o}:null,n=Dz(l?.widthChoice),h=n?{[Zz]:n}:null,m=r?null:JB(c),u=m?{[ih]:m}:null;return D6("div",{className:`sf-themed-content${r?` ${sr}`:""}${t?` ${t}`:""}`,style:e,...u,...i,...h,children:D6("div",{style:{background:"var(--bg)",minHeight:"100%"},children:a})})}function gO(e){return{frameClass:void 0,style:{"--sf-page-width":ba}}}function $b({w:e,children:t}){let{frameClass:a,style:s}=gO(e);return D6("div",{className:a,style:s,children:t})}function Yb({propsTheme:e,propsFonts:t,propsCornerStyle:a,propsCornerRadiusPx:s,propsHeadingCompression:c,propsHeadingTypography:l,widthMode:r,fullWidth:o,pageWidth:i,pageBackground:n,chromeInheritsSiteBackground:h,suppressPreviewNav:m,footer:u,overlay:d,children:v}){let{theme:g,fonts:b,sizes:f,cornerRadiusPx:w,cardShadow:z,shadowColor:M,cardGap:S,hoverEffect:H,headingCompression:I,siteWidth:E,siteGutter:O,blockGap:T,headingTypography:P,heroBackgroundFollowsWidth:N,photographyGrayscale:D,textStyles:Z,themeFromDocument:_}=N3(),U=_?e:g,V=_?t:b,J=_?void 0:f,j=_?s===void 0?bz[fz(a)]:xz(s):w,W=_?c:I,n1=uO(pO(_?void 0:Z)),z1=_?l:P,$=gO({widthMode:r,fullWidth:o,pageWidth:i}),c1={...fa(U),...vl(J),...Sz(z1),...$.style,...h?{}:im(n)};return dO("div",{className:"sf-theme-surfaces sf-theme-accent",style:{...nl(V),...pl(U),...ul(U),...dl(U),...gl(U),...Qh(j),...Pz(Qh(j)),...Cz(_?void 0:z,_?void 0:M,_?void 0:H),...Vz(_?void 0:E),...Nz(_?void 0:O),...Ay(_?void 0:T),...Bz(_?void 0:N)},"data-sf-headings":kz(W),"data-sf-card-shadow":_?void 0:zz(z),"data-sf-card-gap":_?void 0:yz(S),"data-sf-card-hover":_?void 0:wz(H),onClickCapture:m,children:[n1?D6("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:n1}}):null,dO(gT,{grayscale:_?void 0:D,children:[D6(Is1,{style:c1,frameClass:$.frameClass,children:v}),u,d]})]})}var Xb=e=>{e.target?.closest?.("a")&&e.preventDefault()};function vO({pageBackground:e,inheritBackground:t=!1,w:a,children:s}){return D6("div",{style:{...t?{}:im(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:D6($b,{w:a,children:s})})}import{jsx as Qb}from"react/jsx-runtime";import{ListIcon as Rs1,PaddingTopIcon as Bs1}from"efficient-easel/icons";function Zs1(){return{type:"custom",render:({value:e,onChange:t})=>Qb(Sh,{value:e==="full"?"full":e==="content"?"content":void 0,resolved:"content",followsLabel:p("Follows the site"),hint:p("Whether this page sits on the site's content column, or runs edge to edge."),onChange:a=>t(a)})}}var Ds1=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],xO={pageBackground:Uy(),topSpace:v1("Top space",Qb(Bs1,{}),Ds1,Zw),widthChoice:Zs1()},Os1="Record type",Jb=new Map,fO=-1;function Gs1(e){fO!==Jm()&&(Jb.clear(),fO=Jm());let t=Xm(),a=t.some(c=>c.key===e)?"":e,s=Jb.get(a);return s||(s=v1(Os1,Qb(Rs1,{}),[...t.map(c=>({label:c.label,value:c.key})),...a?[{label:a,value:a}]:[]],He),Jb.set(a,s)),s}var bO=new WeakMap;function zO(e,t){if(!M2()||Xm().length<2||Tr in e)return e;let a=Gs1(Pr(t)),s=bO.get(e);if(s&&s.row===a)return s.fields;let c={[Tr]:a,...e};return bO.set(e,{row:a,fields:c}),c}function qs1(e,t){let a=nm(t),s=a?a.inner:t;if(Kh(s))return!1;if(s?.type==="slot")return!0;let c=uy(s);return c==="always"?!1:c==="authored-copy"?iz(e):!0}function yO(e){let t=nm(e),a=t?t.inner:e,s=Kh(a);return s?Vy(a)?0:s.level:null}function Ws1(e,t,a){return a?t===0&&e===zm.Design||t===1&&e===Yy.Content:!1}var Us1=new WeakMap,js1=new WeakMap;function Nh(e,t="section"){let a=t==="page"?js1:Us1,s=a.get(e);if(s)return s;let c=Object.entries(e).map(([m,u])=>({key:m,field:u,level:yO(u),draws:qs1(m,u)||t==="page"&&yO(u)===null&&Yh(m,u)})),l=t==="section"&&c.some(m=>Yh(m.key,m.field)),r=new Set;for(let m=0;m<c.length;m++){let u=c[m].level;if(u===null)continue;let d=0;for(let v=m+1;v<c.length;v++){let g=c[v].level;if(g!==null&&g<=u)break;c[v].draws&&(d+=1)}d===0&&!Ws1(c[m].key,u,l)&&r.add(c[m].key)}let o=l&&tw(e),i=o&&!(zm.Design in e);if(!r.size&&!i)return a.set(e,e),e;let n={};for(let m of c)r.has(m.key)||(n[m.key]=m.field);let h=ce(o?ew(n):n);return a.set(e,h),h}var wO={name:"catalogueLabel",applies:e=>Object.prototype.hasOwnProperty.call(va,e),draw(e,t){e.label=va[t]}};import{jsx as Ks1}from"react/jsx-runtime";var CO={name:"sectionGroupAllow",applies:e=>ol.includes(e),panel(e,t,a,s){let c=e.fields?.sections;c&&(c.allow=[...s.sectionGroupAllow])}},ex=new Set(Object.keys(Z1)),kO={name:"openSlotDisallow",applies:()=>!0,panel(e,t,a,s){let c=s.contentSectionKeys;if(e?.fields)for(let l of Object.values(e.fields)){let r=l;if(r.type!=="slot"||r.allow)continue;let o=t==="Flex"?c.filter(i=>!ex.has(i)):c;r.disallow=Array.from(new Set([...r.disallow??[],...o]))}}};var $s1=Array.from(new Set([...Mx.map(e=>e.type),...ex,...al,"GalleryItem"])),MO={name:"cellWidth",applies:(e,t,a)=>$s1.includes(e)&&!!a&&typeof a.render=="function",panel(e,t,a){let s=a.cellWidthFields;e.fields={...e.fields,...s()};let c=e.resolveFields;e.resolveFields=(l,r)=>{let o=c?c(l,r):r.fields,i=wi(r.appState,l.props?.id);if(i===void 0||tz(i))return o;let n={...o};for(let h of Object.keys(s()))delete n[h];return n}},draw(e){let t=e.render;e.render=a=>{let s=Qx(a.gridSpan),c=t(a);return s==null?c:Ks1("div",{className:"sf-grid-cell",[ez]:String(s),children:c})}}};import{jsx as SO}from"react/jsx-runtime";var LO={name:"clickableParts",applies:(e,t,a)=>typeof a?.render=="function",draw(e,t){let a=e,s=a.render;a.render=c=>{let l=T9(c);return c.puck?.isEditing?SO(DA,{needles:$h(a.fields,c),styles:l,type:t,children:s(c)}):Object.keys(l).length?SO(Az,{needles:$h(a.fields,c),styles:l,type:t,children:s(c)}):s(c)}}};import{jsx as AO}from"react/jsx-runtime";var HO={name:"sectionCorners",applies:(e,t,a)=>t.isSection(e)&&!!a&&typeof a.render=="function",panel(e,t,a){e.fields={...e.fields,...a.sectionShapeFields()}},draw(e){let t=e.render;e.render=a=>{let s=fl(a.sectionCorners,a.sectionCornerSides),c=t(a),l=_0(a)?`sf-section-corners ${Fz}`:"sf-section-corners";return s?AO("div",{className:l,style:{display:"contents",...s},children:c}):c}}},Ys1=["CollectionCard"],FO={name:"cardCorners",applies:(e,t,a)=>Ys1.includes(e)&&!!a&&typeof a.render=="function",panel(e,t,a){e.fields={...e.fields,...a.cardShapeFields()}},draw(e){let t=e.render;e.render=a=>{let s=Tz(a.cardCorners,a.cardCornerSides),c=t(a);return s?AO("div",{className:"sf-card-corners",style:{display:"contents",...s},children:c}):c}}};var TO={name:"emptyHeadings",applies:()=>!0,panel(e,t,a){let s=a.dropEmptyHeadings,c=e.resolveFields;e.resolveFields=c?(l,r)=>{let o=c(l,r);return o instanceof Promise?o.then(i=>s(i??r.fields)):s(o??r.fields)}:(l,r)=>s(r.fields)}};var PO={name:"hiddenNodes",applies:(e,t,a)=>typeof a?.render=="function",draw(e){let t=e.render;e.render=a=>a._hidden?null:t(a)}};import{jsx as EO,Fragment as Xs1,jsxs as Js1}from"react/jsx-runtime";function Qs1({anchor:e}){let t=cm(typeof e=="string"?e:"");return t?EO("span",{id:t,className:"sf-section-anchor","aria-hidden":"true"}):null}var VO={name:"sectionAnchor",applies:(e,t,a)=>t.isSection(e)&&!!a&&typeof a.render=="function",panel(e,t,a){let s=a.anchorFields;e.fields={...e.fields,...s()}},draw(e){e.defaultProps={...e.defaultProps,anchor:""};let t=e.render;e.render=a=>Js1(Xs1,{children:[EO(Qs1,{anchor:a.anchor}),t(a)]})}};import{jsx as ac1}from"react/jsx-runtime";import{jsx as ec1}from"react/jsx-runtime";import{useEffect as tc1,useRef as NO}from"react";function _O({motion:e,editing:t,children:a}){let s=NO(null),c=NO(e);return tc1(()=>{let l=s.current;if(l){if(t){if(c.current===e)return;c.current=e,$z(l);return}return Kz(l)}},[e,t]),ec1("div",{ref:s,[jz]:e,children:a})}var IO={name:"sectionAnimation",applies:(e,t,a)=>t.isSection(e)&&!Yz.has(e)&&!!a&&typeof a.render=="function",panel(e,t,a){let s=a.sectionAnimationFields;e.fields={...e.fields,...s()}},draw(e){let t=e,a=t.render;t.render=s=>{let c=Uz(s.sectionAnimation);return c?ac1(_O,{motion:c,editing:!!s.puck?.isEditing,children:a(s)}):a(s)}}};import{jsx as sc1}from"react/jsx-runtime";var ZO={name:"sectionHeight",applies:(e,t,a)=>t.isSection(e)&&!Jz.has(e)&&!!a&&typeof a.render=="function",panel(e,t,a){let s=a.heightFields;e.fields={...e.fields,...s()};let c=e.resolveFields;e.resolveFields=(l,r)=>{let o=c?c(l,r):r.fields,i=l?.props??{},n=Xz(i),h=Qz(i)?ey(i):null;return o&&typeof o.then=="function"?o.then(m=>BO(RO(m,n),h)):BO(RO(o,n),h)}},draw(e){let t=e.render;e.render=a=>{let s=ty(a);return s?sc1("div",{className:s.className,style:s.style,children:t(a)}):t(a)}}};function RO(e,t){if(!e||!("sectionHeightMode"in e))return e;let a={...e};if(t.mode==="auto")return delete a.sectionHeightValue,delete a.sectionHeightUnit,a;t.mode==="screen"&&delete a.sectionHeightUnit;let s=a.sectionHeightValue;return s&&(a.sectionHeightValue={...s,unit:t.unit}),a}function BO(e,t){if(!e||!("sectionHeightModePhone"in e))return e;let a={...e};if(!t||t.mode==="auto")return delete a.sectionHeightValuePhone,delete a.sectionHeightUnitPhone,a;t.mode==="screen"&&delete a.sectionHeightUnitPhone;let s=a.sectionHeightValuePhone;return s&&(a.sectionHeightValuePhone={...s,unit:t.unit}),a}import{jsx as cc1}from"react/jsx-runtime";var DO={name:"sectionTheme",applies:(e,t,a)=>t.isSection(e)&&!qz.has(e)&&!!a&&typeof a.render=="function",panel(e,t,a){let{sectionThemeFields:s,SECTION_THEME_FOLLOW_LABEL:c}=a,l=rm.has(t);e.fields={...e.fields,...l?s(g5,c):s()}},draw(e,t){let a=rm.has(t),s=e.render;e.render=c=>{let l=N9(a?{...c,sectionAccent:g5(c.sectionAccent)}:c),r=s(c);return l?cc1("div",{className:l.className,style:l.style,children:r}):r}}},OO={name:"slideTheme",applies:e=>e==="HeroSlide",panel(e,t,a){let{sectionThemeFields:s,BLOCK_THEME_FOLLOW_LABEL:c}=a;e?.fields&&(e.fields={...e.fields,...s(g5,c)})}};var lc1=new Set(["Reviews","Cards","FAQ","Prose","ProductHero","SpecTable","ProductGrid","ParagraphsA","KeyFeatures","Stats","StatsParagraph","Chart","Mockup","Testimonials","Logos","ContactRouting","ContactLocations","SubmitBuild","ReviewForm","Form","AppointmentBooking","OrderSummary","DeliveryOptions","PaymentBadges","CheckoutCTA","Collections","AlloyWheelsListing","CatalogFilterBar","FitmentFinder","GalleryB","BrandStrip","DocMasthead","DocBody","DocMetaCards","Masthead","FeaturedCover","LongRead","Series","Events","SectionHeader","Grid","Flex","Spacer","Divider","CustomHTML","Breadcrumb","CategoryBar","DocTabs","Hero","HeroSingle","IntroBleed","Manifesto","Timeline","TimelineTrack","Footprint","Banner","TitleWithButtons","Ticker","SubscribeBlogs","TyreSizes","TyreFitment","EuTyreLabel","SpecStrip","ProcessSteps","DetailRows","FitmentTable","CompatibleTyres","RelatedProducts","BundleOffer","Split","Gallery","Subscribe","Countdown"]),GO={name:"sectionGroups",applies:(e,t)=>t.isSection(e)&&(lc1.has(e)||t.isHostBlock(e)),panel(e,t,a){let s=a.assignSectionGroups;e?.fields&&(e.fields=s(e.fields,t))}},rc1=new Set(["HeroSlide","Heading","Text","ImageBlock","ButtonBlock","HeroGroup","GalleryItem","Footer","FooterLogo","FooterMenu","FooterGroup","FooterText","PostCard","LogoBlock","CollectionCard","Eyebrow","BookingBox","SubmitBox","FooterSocial","MenuBlock","SocialLogosBlock","EmailFormBlock","SearchBlock","CartBlock"]),qO={name:"blockGroups",applies:e=>rc1.has(e),panel(e,t,a){let s=a.assignSectionGroups;e?.fields&&(e.fields=s(e.fields,t))}};var oc1=["Form","Stats"];function tx(e,t){let a=new Set(e),s=wx.filter(i=>a.has(i)),c=s.filter(i=>i!=="Header"&&i!=="Footer"&&!ol.includes(i)),l=new Set([...t,...al,...oc1]),r=s.filter(i=>!l.has(i)),o=new Set(s);return{isSection:i=>o.has(i),isHostBlock:()=>!1,sectionGroupAllow:c,contentSectionKeys:r}}var ic1=[CO,kO,oL,HO,FO,iL,MO,XF,JF,QF,eT,ZO,VO,DO,IO,OO,GO,qO,TO,LO,PO,wO];function WO(e,t,a){let s=t;for(let c of ic1)c.applies(e,a,s)&&(a.inspector&&c.panel?.(s,e,a.inspector,a),c.draw?.(s,e,a));return t}var UO={spacingFields:f5,sectionShapeFields:Il,cardShapeFields:Iy,cellWidthFields:Oy,widthField:b5,heightFields:Gy,anchorFields:qy,sectionThemeFields:$9,sectionAnimationFields:_y,slider:s1,assignSectionGroups:jl,dropEmptyHeadings:Nh,SECTION_THEME_FOLLOW_LABEL:Ml,BLOCK_THEME_FOLLOW_LABEL:oy};function jO(e){let t={...tx(Object.keys(e.components),e.categories?.structure?.components??[]),inspector:UO};for(let[l,r]of Object.entries(e.components))WO(l,r,t);let a=e.root,s=a.resolveFields,c=(l,r)=>Nh(zO(l,r?.props),"page");return a.resolveFields=s?(l,r)=>{let o=s(l,r);return o instanceof Promise?o.then(i=>c(i??r.fields,l)):c(o??r.fields,l)}:(l,r)=>c(r.fields,l),t}import{Fragment as Fc1,jsx as o0,jsxs as pa}from"react/jsx-runtime";var bc1="Newsletter (built in)";var Yp0=[{value:"00",label:A.label},{value:"00",label:A.label},{value:"00",label:A.label}],xc1=qh(()=>import("./PreviewFooter-5UMON7Y2.js")),zc1=qh(()=>import("./render-client-EKUPEJGE.js")),yc1={padding:"14px 18px",fontFamily:"var(--font-mono, monospace)",fontSize:12,letterSpacing:"0.18em",textTransform:"uppercase",color:"var(--fg-dim, #888)",borderBottom:"1px solid var(--site-line, #e5e5e5)"};function wc1({propsTheme:e,propsFonts:t,widthMode:a,fullWidth:s,pageWidth:c,pageBackground:l,chromeInheritsSiteBackground:r,suppressPreviewNav:o,children:i}){let{originData:n,exitFocus:h}=Ek(),{theme:m,fonts:u,sizes:d,themeFromDocument:v}=N3();if(!n)return pa(Yb,{propsTheme:e,propsFonts:t,widthMode:a,fullWidth:s,pageWidth:c,pageBackground:l,chromeInheritsSiteBackground:r,suppressPreviewNav:o,footer:null,children:[o0("div",{style:yc1,children:"This is your site footer \u2014 it shows at the bottom of every page."}),i]});let g=v?e:m,b=v?t:u,f=n.content??[],w=n.root,z=Ca(f)&&cr(w,f);return pa("div",{className:"sf-theme-accent",style:{...nl(b),...pl(g),...ul(g),...dl(g)},onClickCapture:o,children:[pa("div",{style:{position:"relative"},children:[o0("div",{className:z?sr:void 0,style:{...fa(g),...vl(v?void 0:d),pointerEvents:"none",userSelect:"none"},"aria-hidden":"true",children:o0(zc1,{data:n})}),o0("button",{type:"button",onClick:()=>h(),title:p("Click the page to go back"),"aria-label":p("Go back to the page"),style:{position:"absolute",inset:0,width:"100%",height:"100%",cursor:"pointer",background:"transparent",border:0,padding:0}})]}),o0("div",{className:"sf-theme-surfaces",style:{...fa(g),...gl(g)},children:o0($b,{w:{widthMode:a,fullWidth:s,pageWidth:c},children:i})})]})}var F0=fm,Cc1={formSlug:T5(void 0,bc1),_gLeft:x("Left panel"),metaLabel:q("Meta label",F0.metaLabel),issueLabel:q("Issue label",F0.issueLabel),issueNumber:q("Issue number",F0.issueNumber),kicker:q("Eyebrow",F0.kicker),heading:V1("Heading",F0.heading),deck:V1("Deck",F0.deck),stats:{type:"array",label:"Stats",arrayFields:{label:q("Label"),value:q("Value")},getItemSummary:e=>e?.label||e?.value||"Stat"},_gForm:x("Right panel \xB7 form"),formLabel:q("Section label",F0.formLabel),formHeading:q("Heading",F0.formHeading),formIntro:V1("Intro",F0.formIntro),firstNameLabel:q("First-name label",F0.firstNameLabel),firstNamePlaceholder:q("First-name placeholder",F0.firstNamePlaceholder),emailLabel:q("Email label",F0.emailLabel),emailPlaceholder:q("Email placeholder",F0.emailPlaceholder),_gChoices:x("Right panel \xB7 choices"),interestsLabel:q("Interests label",F0.interestsLabel),interests:P2("Interest chips",o0(a4,{noun:"tag"}),"Chip label","verbatim"),frequencyLabel:q("Frequency label",F0.frequencyLabel),frequencies:P2("Frequency options",o0(uc1,{}),"Option label","verbatim"),_gActions:x("Right panel \xB7 actions"),submitText:q("Submit button",F0.submitText),finePrint:q("Fine print",F0.finePrint),dismissText:q("Dismiss link",F0.dismissText),emailInvalidText:q("Invalid-email error",F0.emailInvalidText),submitErrorText:q("Submit-failed error",F0.submitErrorText),_gSuccess:x("Success state"),successHeading:q("Heading",F0.successHeading),successBody:V1("Message",F0.successBody),keepBrowsingText:q("Dismiss button",F0.keepBrowsingText),...$9(g5,Ml),...Il(),_gTextStyle:x("Text style"),...Object.fromEntries(Hl.map(e=>[xy[e],v1(mm[e],We(mm[e]),[{label:"Popup's own",value:""},...d5.map(t=>({label:H9[t],value:t}))],"")])),_gBehaviour:x("Behavior"),autoOpen:l1("Show by itself",F0.autoOpen,o0(pc1,{})),trigger:x1("Trigger",o0(fc1,{}),[{label:"Delay",value:"delay"},{label:"Scroll",value:"scroll"},{label:"Exit",value:"exit"}],F0.trigger),autoOpenDelaySec:s1("Delay",o0(ax,{}),dm.min,dm.max,1,F0.autoOpenDelaySec,"s"),scrollPercent:s1("Scroll",o0(vc1,{}),gm.min,gm.max,5,F0.scrollPercent,"%"),showOn:x1("Pages",o0(dc1,{}),[{label:"All",value:"all"},{label:"Chosen",value:"chosen"}],F0.showOn),showOnPages:X9("Chosen pages",[],"None"),hideAfter:x1("After close",o0(ax,{}),[{label:"This visit",value:"visit"},{label:"Days",value:"days"},{label:"Never",value:"never"}],F0.hideAfter),hideDays:s1("Days",o0(ax,{}),vm.min,vm.max,1,F0.hideDays),_gArrangement:x("Arrangement"),formSide:x1("Form side",o0(gc1,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],F0.formSide),_gPhone:x("On a phone"),valuePanelOnPhone:l1("Left panel",F0.valuePanelOnPhone,o0(hc1,{}))},kc1=jl(Cc1,"SubscribePopup");async function Mc1(){return(await ky(i2()??"")).filter(t=>!za(t.slug)).map(t=>({label:t.label,value:d8(t.slug)}))}async function Sc1(e){let t=bm(e),a=new Set;t.autoOpen||["trigger","autoOpenDelaySec","scrollPercent","showOn","showOnPages","hideAfter","hideDays"].forEach(c=>a.add(c)),t.trigger==="scroll"&&a.add("autoOpenDelaySec"),t.trigger!=="scroll"&&a.add("scrollPercent"),t.showOn!=="chosen"&&a.add("showOnPages"),t.hideAfter!=="days"&&a.add("hideDays");let s={};for(let[c,l]of Object.entries(kc1))a.has(c)||(s[c]=c==="showOnPages"?{...l,options:await Mc1().catch(()=>[])}:l);return ce(s)}var h5=Al,Lc1={_gHeader:x("Header"),kickerBadge:q("Eyebrow badge",h5.kickerBadge),kickerText:q("Eyebrow text",h5.kickerText),titleLead:q("Heading",h5.titleLead),titleAccent:q("Heading accent",h5.titleAccent),subtitleEmpty:V1("Sub-line \xB7 empty",h5.subtitleEmpty),subtitleOne:V1("Sub-line \xB7 one set",h5.subtitleOne),subtitleMany:V1("Sub-line \xB7 several sets",h5.subtitleMany,"{count} becomes the number of sets"),_gStatus:x("Status rail"),leadTimeValue:q("Lead time",h5.leadTimeValue),shipsToFallback:q("Ships to \xB7 fallback",h5.shipsToFallback,"Shown only while the site serves no countries \u2014 otherwise the site's default country is stated"),_gPromises:x("Promise row"),promises:P2("Trust markers",o0(KO,{}),"Marker","verbatim"),_gEmpty:x("Empty basket"),emptyKicker:q("Eyebrow",h5.emptyKicker),emptyBody:V1("Message",h5.emptyBody)},_h={root:{fields:{...xO},resolveFields:async(e,{fields:t})=>{if(e?.props?.kind===um)return Sc1(e.props);if(e?.props?.kind===hm)return Lc1;let a=t;return M2()?{[tp]:v1("Product type",o0(nc1,{}),ze,"alloy-wheel"),...a,_gHeroBullets:x("Product hero"),_nHeroBullets:v5("The promises under Add to Cart. Text before the \xB7 is bold. Leave the list empty to show no promises at all."),[Qp]:P2("Trust bullets",o0(KO,{}),JS($a.bullets[0]),"verbatim")}:a},render:e=>{let{children:t,puck:a,widthMode:s,fullWidth:c,pageWidth:l,pageBackground:r,theme:o,fonts:i,scales:n,kind:h,previewProduct:m}=e,u=Er(typeof h=="string"?h:"",e);if(h===um){let f=bm(e);return pa("div",{style:{background:"var(--bg)",minHeight:"100%"},children:[a?.isEditing?o0("div",{style:{padding:"14px 18px",fontFamily:"var(--font-mono, monospace)",fontSize:12,letterSpacing:"0.18em",textTransform:"uppercase",color:"var(--fg-dim, #888)",borderBottom:"1px solid var(--site-line, #e5e5e5)"},children:"This is the site popup \u2014 edit it in the Settings panel \u2192"}):null,o0(JM,{inline:!0,content:f})]})}if(h===hm){let f=by(e);return pa("div",{style:{background:"var(--bg)",minHeight:"100%"},children:[a?.isEditing?o0("div",{style:{padding:"14px 18px",fontFamily:"var(--font-mono, monospace)",fontSize:12,letterSpacing:"0.18em",textTransform:"uppercase",color:"var(--fg-dim, #888)",borderBottom:"1px solid var(--site-line, #e5e5e5)"},children:"This is the cart drawer \u2014 edit its copy in the Settings panel \u2192"}):null,o0(gr,{children:o0(vr,{preview:!0,children:o0(Ua,{content:f})})})]})}let d=!!a?.isEditing,v=o0($S,{type:Jp(e),children:o0(GS,{kind:u,children:o0(tL,{content:QS(e),children:o0(ZS,{slug:d?m:null,children:o0(TM,{children:t})})})})}),g=h===zy&&!hy(r);return d?h===D9?o0(wc1,{propsTheme:o,propsFonts:i,widthMode:s,fullWidth:c,pageWidth:l,pageBackground:typeof r=="string"?r:void 0,chromeInheritsSiteBackground:g,suppressPreviewNav:Xb,children:v}):o0(Yb,{propsTheme:o,propsFonts:i,widthMode:s,fullWidth:c,pageWidth:l,pageBackground:typeof r=="string"?r:void 0,suppressPreviewNav:Xb,footer:o0(xc1,{}),overlay:pa(Fc1,{children:[o0(_p,{}),o0(Up,{})]}),children:v}):o0(vO,{pageBackground:r,inheritBackground:g,w:{widthMode:s,fullWidth:c,pageWidth:l},children:v})}},categories:yx(),components:{Heading:B1.Heading,Text:B1.Text,Eyebrow:B1.Eyebrow,ImageBlock:B1.ImageBlock,LogoBlock:B1.LogoBlock,ButtonBlock:B1.ButtonBlock,Spacer:B1.Spacer,Divider:B1.Divider,Grid:B1.Grid,Flex:B1.Flex,Breadcrumb:B1.Breadcrumb,Masthead:B1.Masthead,CategoryBar:B1.CategoryBar,FeaturedCover:B1.FeaturedCover,LongRead:B1.LongRead,Series:B1.Series,Subscribe:h2.Subscribe,SubscribeBlogs:h2.SubscribeBlogs,Banner:B1.Banner,ParagraphsA:B1.ParagraphsA,StatsParagraph:B1.StatsParagraph,Timeline:B1.Timeline,Footprint:B1.Footprint,TimelineTrack:B1.TimelineTrack,TitleWithButtons:B1.TitleWithButtons,Stats:B1.Stats,Integrations:B1.Integrations,Mockup:B1.Mockup,Chart:B1.Chart,KeyFeatures:B1.KeyFeatures,Testimonials:B1.Testimonials,Reviews:h2.Reviews,Prose:B1.Prose,Cards:B1.Cards,Logos:B1.Logos,Ticker:B1.Ticker,ContactRouting:h2.ContactRouting,ContactLocations:B1.ContactLocations,HeroSingle:B1.HeroSingle,Hero:B1.Hero,HeroSlide:B1.HeroSlide,HeroGroup:B1.HeroGroup,Collections:U0.Collections,CollectionCard:U0.CollectionCard,Events:h2.Events,PostCard:B1.PostCard,DocMetaCards:B1.DocMetaCards,DocTabs:B1.DocTabs,DocMasthead:B1.DocMasthead,DocBody:B1.DocBody,FAQ:B1.FAQ,Gallery:U0.Gallery,GalleryB:U0.GalleryB,BrandStrip:U0.BrandStrip,SpecStrip:B1.SpecStrip,GalleryItem:U0.GalleryItem,Manifesto:B1.Manifesto,SectionHeader:B1.SectionHeader,IntroBleed:B1.IntroBleed,Split:B1.Split,SubmitBuild:h2.SubmitBuild,SubmitBox:h2.SubmitBox,ReviewForm:h2.ReviewForm,Form:h2.Form,AppointmentBooking:h2.AppointmentBooking,BookingBox:h2.BookingBox,CatalogFilterBar:U0.CatalogFilterBar,AlloyWheelsListing:U0.AlloyWheelsListing,ProductGrid:U0.ProductGrid,ProductHero:U0.ProductHero,SpecTable:U0.SpecTable,ProcessSteps:B1.ProcessSteps,DetailRows:U0.DetailRows,FitmentTable:U0.FitmentTable,RelatedProducts:U0.RelatedProducts,BundleOffer:U0.BundleOffer,CompatibleTyres:U0.CompatibleTyres,TyreSizes:U0.TyreSizes,TyreFitment:U0.TyreFitment,EuTyreLabel:U0.EuTyreLabel,FitmentFinder:U0.FitmentFinder,OrderSummary:B1.OrderSummary,DeliveryOptions:U0.DeliveryOptions,PaymentBadges:B1.PaymentBadges,CheckoutCTA:U0.CheckoutCTA,ProductRef:U0.ProductRef,CustomHTML:B1.CustomHTML,Header:U0.Header,Footer:h2.Footer,FooterLogo:h2.FooterLogo,FooterMenu:h2.FooterMenu,FooterDivider:h2.FooterDivider,FooterGroup:h2.FooterGroup,FooterText:h2.FooterText,FooterEmailSignup:h2.FooterEmailSignup,FooterSocial:h2.FooterSocial,LegalLineBlock:h2.LegalLineBlock,SearchBlock:U0.SearchBlock,CartBlock:U0.CartBlock,CountrySwitchBlock:U0.CountrySwitchBlock,[L9]:h2.SiteHeader,[A9]:h2.SiteFooter}},Ac1={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial"};for(let[e,t]of Object.entries(Ac1)){let a=_h.components;a[e]={...a[t]}}{let e=_h.components.MenuBlock;e.fields={...e.fields,direction:x1("Direction",o0(mc1,{}),[{label:om.column,value:"column"},{label:om.row,value:"row"}],"column")},e.defaultProps={...e.defaultProps,direction:"column"},e.render=({menu:t,heading:a,accordionMobile:s,showDividers:c,direction:l,puck:r})=>o0(Na,{menu:t,heading:a||void 0,accordionMobile:s,showDividers:c,layout:l==="row"?"row":"column",editing:r?.isEditing})}var Hc1=jO(_h),Xp0=Hc1.sectionGroupAllow,Gf=_h;export{yx1 as a,wx1 as b,Cx1 as c,kx1 as d,Mx1 as e,tx as f,WO as g,UO as h,RU as i,Oh1 as j,lr1 as k,aZ as l,Fo1 as m,NM as n,To1 as o,Po1 as p,kh1 as q,eh0 as r,th0 as s,AO1 as t,Jc1 as u,Qc1 as v,el1 as w,tl1 as x,vl1 as y,fl1 as z,lW1 as A,Fr1 as B,gi1 as C,w80 as D,Ip as E,E_1 as F,up as G,Jk as H,Ir1 as I,Rr1 as J,Br1 as K,Gr1 as L,aM as M,zr1 as N,_5 as O,jB as P,If as Q,hh as R,zt as S,o3 as T,MU as U,YB as V,tr1 as W,Vn as X,Bv as Y,Q61 as Z,FX1 as _,xR as $,zc as aa,Gf as ba};
|
|
154
|
+
`)}import{useEasel as Vs1}from"efficient-easel/easel";var Ns1="color-mix(in oklab, var(--bg) 40%, #ffffff)",_s1="12vh";function Is1({style:e,frameClass:t,children:a}){let{appState:s}=Vs1(d=>d),c=s.data.content,l=s.data.root;if(Bw(c))return D6("div",{className:`sf-themed-content${t?` ${t}`:""}`,style:{...e,background:Ns1,minHeight:"100vh",paddingBottom:_s1},children:D6("div",{style:{background:"var(--bg)"},children:a})});let r=Ca(c)&&cr(l,c),o=Ca(c)?Ow(l,c):null,i=o?{[Dw]:o}:null,n=Dz(l?.widthChoice),h=n?{[Zz]:n}:null,m=r?null:JB(c),u=m?{[ih]:m}:null;return D6("div",{className:`sf-themed-content${r?` ${sr}`:""}${t?` ${t}`:""}`,style:e,...u,...i,...h,children:D6("div",{style:{background:"var(--bg)",minHeight:"100%"},children:a})})}function gO(e){return{frameClass:void 0,style:{"--sf-page-width":ba}}}function $b({w:e,children:t}){let{frameClass:a,style:s}=gO(e);return D6("div",{className:a,style:s,children:t})}function Yb({propsTheme:e,propsFonts:t,propsCornerStyle:a,propsCornerRadiusPx:s,propsHeadingCompression:c,propsHeadingTypography:l,widthMode:r,fullWidth:o,pageWidth:i,pageBackground:n,chromeInheritsSiteBackground:h,suppressPreviewNav:m,footer:u,overlay:d,children:v}){let{theme:g,fonts:b,sizes:f,cornerRadiusPx:w,cardShadow:z,shadowColor:M,cardGap:S,hoverEffect:H,headingCompression:I,siteWidth:E,siteGutter:O,blockGap:T,headingTypography:P,heroBackgroundFollowsWidth:N,photographyGrayscale:D,textStyles:Z,themeFromDocument:_}=N3(),U=_?e:g,V=_?t:b,J=_?void 0:f,j=_?s===void 0?bz[fz(a)]:xz(s):w,W=_?c:I,n1=uO(pO(_?void 0:Z)),z1=_?l:P,$=gO({widthMode:r,fullWidth:o,pageWidth:i}),c1={...fa(U),...vl(J),...Sz(z1),...$.style,...h?{}:im(n)};return dO("div",{className:"sf-theme-surfaces sf-theme-accent",style:{...nl(V),...pl(U),...ul(U),...dl(U),...gl(U),...Qh(j),...Pz(Qh(j)),...Cz(_?void 0:z,_?void 0:M,_?void 0:H),...Vz(_?void 0:E),...Nz(_?void 0:O),...Ay(_?void 0:T),...Bz(_?void 0:N)},"data-sf-headings":kz(W),"data-sf-card-shadow":_?void 0:zz(z),"data-sf-card-gap":_?void 0:yz(S),"data-sf-card-hover":_?void 0:wz(H),onClickCapture:m,children:[n1?D6("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:n1}}):null,dO(gT,{grayscale:_?void 0:D,children:[D6(Is1,{style:c1,frameClass:$.frameClass,children:v}),u,d]})]})}var Xb=e=>{e.target?.closest?.("a")&&e.preventDefault()};function vO({pageBackground:e,inheritBackground:t=!1,w:a,children:s}){return D6("div",{style:{...t?{}:im(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:D6($b,{w:a,children:s})})}import{jsx as Qb}from"react/jsx-runtime";import{ListIcon as Rs1,PaddingTopIcon as Bs1}from"efficient-easel/icons";function Zs1(){return{type:"custom",render:({value:e,onChange:t})=>Qb(Sh,{value:e==="full"?"full":e==="content"?"content":void 0,resolved:"content",followsLabel:p("Follows the site"),hint:p("Whether this page sits on the site's content column, or runs edge to edge."),onChange:a=>t(a)})}}var Ds1=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],xO={pageBackground:Uy(),topSpace:v1("Top space",Qb(Bs1,{}),Ds1,Zw),widthChoice:Zs1()},Os1="Record type",Jb=new Map,fO=-1;function Gs1(e){fO!==Jm()&&(Jb.clear(),fO=Jm());let t=Xm(),a=t.some(c=>c.key===e)?"":e,s=Jb.get(a);return s||(s=v1(Os1,Qb(Rs1,{}),[...t.map(c=>({label:c.label,value:c.key})),...a?[{label:a,value:a}]:[]],He),Jb.set(a,s)),s}var bO=new WeakMap;function zO(e,t){if(!M2()||Xm().length<2||Tr in e)return e;let a=Gs1(Pr(t)),s=bO.get(e);if(s&&s.row===a)return s.fields;let c={[Tr]:a,...e};return bO.set(e,{row:a,fields:c}),c}function qs1(e,t){let a=nm(t),s=a?a.inner:t;if(Kh(s))return!1;if(s?.type==="slot")return!0;let c=uy(s);return c==="always"?!1:c==="authored-copy"?iz(e):!0}function yO(e){let t=nm(e),a=t?t.inner:e,s=Kh(a);return s?Vy(a)?0:s.level:null}function Ws1(e,t,a){return a?t===0&&e===zm.Design||t===1&&e===Yy.Content:!1}var Us1=new WeakMap,js1=new WeakMap;function Nh(e,t="section"){let a=t==="page"?js1:Us1,s=a.get(e);if(s)return s;let c=Object.entries(e).map(([m,u])=>({key:m,field:u,level:yO(u),draws:qs1(m,u)||t==="page"&&yO(u)===null&&Yh(m,u)})),l=t==="section"&&c.some(m=>Yh(m.key,m.field)),r=new Set;for(let m=0;m<c.length;m++){let u=c[m].level;if(u===null)continue;let d=0;for(let v=m+1;v<c.length;v++){let g=c[v].level;if(g!==null&&g<=u)break;c[v].draws&&(d+=1)}d===0&&!Ws1(c[m].key,u,l)&&r.add(c[m].key)}let o=l&&tw(e),i=o&&!(zm.Design in e);if(!r.size&&!i)return a.set(e,e),e;let n={};for(let m of c)r.has(m.key)||(n[m.key]=m.field);let h=ce(o?ew(n):n);return a.set(e,h),h}var wO={name:"catalogueLabel",applies:e=>Object.prototype.hasOwnProperty.call(va,e),draw(e,t){e.label=va[t]}};import{jsx as Ks1}from"react/jsx-runtime";var CO={name:"sectionGroupAllow",applies:e=>ol.includes(e),panel(e,t,a,s){let c=e.fields?.sections;c&&(c.allow=[...s.sectionGroupAllow])}},ex=new Set(Object.keys(Z1)),kO={name:"openSlotDisallow",applies:()=>!0,panel(e,t,a,s){let c=s.contentSectionKeys;if(e?.fields)for(let l of Object.values(e.fields)){let r=l;if(r.type!=="slot"||r.allow)continue;let o=t==="Flex"?c.filter(i=>!ex.has(i)):c;r.disallow=Array.from(new Set([...r.disallow??[],...o]))}}};var $s1=Array.from(new Set([...Mx.map(e=>e.type),...ex,...al,"GalleryItem"])),MO={name:"cellWidth",applies:(e,t,a)=>$s1.includes(e)&&!!a&&typeof a.render=="function",panel(e,t,a){let s=a.cellWidthFields;e.fields={...e.fields,...s()};let c=e.resolveFields;e.resolveFields=(l,r)=>{let o=c?c(l,r):r.fields,i=wi(r.appState,l.props?.id);if(i===void 0||tz(i))return o;let n={...o};for(let h of Object.keys(s()))delete n[h];return n}},draw(e){let t=e.render;e.render=a=>{let s=Qx(a.gridSpan),c=t(a);return s==null?c:Ks1("div",{className:"sf-grid-cell",[ez]:String(s),children:c})}}};import{jsx as SO}from"react/jsx-runtime";var LO={name:"clickableParts",applies:(e,t,a)=>typeof a?.render=="function",draw(e,t){let a=e,s=a.render;a.render=c=>{let l=T9(c);return c.puck?.isEditing?SO(DA,{needles:$h(a.fields,c),styles:l,type:t,children:s(c)}):Object.keys(l).length?SO(Az,{needles:$h(a.fields,c),styles:l,type:t,children:s(c)}):s(c)}}};import{jsx as AO}from"react/jsx-runtime";var HO={name:"sectionCorners",applies:(e,t,a)=>t.isSection(e)&&!!a&&typeof a.render=="function",panel(e,t,a){e.fields={...e.fields,...a.sectionShapeFields()}},draw(e){let t=e.render;e.render=a=>{let s=fl(a.sectionCorners,a.sectionCornerSides),c=t(a),l=_0(a)?`sf-section-corners ${Fz}`:"sf-section-corners";return s?AO("div",{className:l,style:{display:"contents",...s},children:c}):c}}},Ys1=["CollectionCard"],FO={name:"cardCorners",applies:(e,t,a)=>Ys1.includes(e)&&!!a&&typeof a.render=="function",panel(e,t,a){e.fields={...e.fields,...a.cardShapeFields()}},draw(e){let t=e.render;e.render=a=>{let s=Tz(a.cardCorners,a.cardCornerSides),c=t(a);return s?AO("div",{className:"sf-card-corners",style:{display:"contents",...s},children:c}):c}}};var TO={name:"emptyHeadings",applies:()=>!0,panel(e,t,a){let s=a.dropEmptyHeadings,c=e.resolveFields;e.resolveFields=c?(l,r)=>{let o=c(l,r);return o instanceof Promise?o.then(i=>s(i??r.fields)):s(o??r.fields)}:(l,r)=>s(r.fields)}};var PO={name:"hiddenNodes",applies:(e,t,a)=>typeof a?.render=="function",draw(e){let t=e.render;e.render=a=>a._hidden?null:t(a)}};import{jsx as EO,Fragment as Xs1,jsxs as Js1}from"react/jsx-runtime";function Qs1({anchor:e}){let t=cm(typeof e=="string"?e:"");return t?EO("span",{id:t,className:"sf-section-anchor","aria-hidden":"true"}):null}var VO={name:"sectionAnchor",applies:(e,t,a)=>t.isSection(e)&&!!a&&typeof a.render=="function",panel(e,t,a){let s=a.anchorFields;e.fields={...e.fields,...s()}},draw(e){e.defaultProps={...e.defaultProps,anchor:""};let t=e.render;e.render=a=>Js1(Xs1,{children:[EO(Qs1,{anchor:a.anchor}),t(a)]})}};import{jsx as ac1}from"react/jsx-runtime";import{jsx as ec1}from"react/jsx-runtime";import{useEffect as tc1,useRef as NO}from"react";function _O({motion:e,editing:t,children:a}){let s=NO(null),c=NO(e);return tc1(()=>{let l=s.current;if(l){if(t){if(c.current===e)return;c.current=e,$z(l);return}return Kz(l)}},[e,t]),ec1("div",{ref:s,[jz]:e,children:a})}var IO={name:"sectionAnimation",applies:(e,t,a)=>t.isSection(e)&&!Yz.has(e)&&!!a&&typeof a.render=="function",panel(e,t,a){let s=a.sectionAnimationFields;e.fields={...e.fields,...s()}},draw(e){let t=e,a=t.render;t.render=s=>{let c=Uz(s.sectionAnimation);return c?ac1(_O,{motion:c,editing:!!s.puck?.isEditing,children:a(s)}):a(s)}}};import{jsx as sc1}from"react/jsx-runtime";var ZO={name:"sectionHeight",applies:(e,t,a)=>t.isSection(e)&&!Jz.has(e)&&!!a&&typeof a.render=="function",panel(e,t,a){let s=a.heightFields;e.fields={...e.fields,...s()};let c=e.resolveFields;e.resolveFields=(l,r)=>{let o=c?c(l,r):r.fields,i=l?.props??{},n=Xz(i),h=Qz(i)?ey(i):null;return o&&typeof o.then=="function"?o.then(m=>BO(RO(m,n),h)):BO(RO(o,n),h)}},draw(e){let t=e.render;e.render=a=>{let s=ty(a);return s?sc1("div",{className:s.className,style:s.style,children:t(a)}):t(a)}}};function RO(e,t){if(!e||!("sectionHeightMode"in e))return e;let a={...e};if(t.mode==="auto")return delete a.sectionHeightValue,delete a.sectionHeightUnit,a;t.mode==="screen"&&delete a.sectionHeightUnit;let s=a.sectionHeightValue;return s&&(a.sectionHeightValue={...s,unit:t.unit}),a}function BO(e,t){if(!e||!("sectionHeightModePhone"in e))return e;let a={...e};if(!t||t.mode==="auto")return delete a.sectionHeightValuePhone,delete a.sectionHeightUnitPhone,a;t.mode==="screen"&&delete a.sectionHeightUnitPhone;let s=a.sectionHeightValuePhone;return s&&(a.sectionHeightValuePhone={...s,unit:t.unit}),a}import{jsx as cc1}from"react/jsx-runtime";var DO={name:"sectionTheme",applies:(e,t,a)=>t.isSection(e)&&!qz.has(e)&&!!a&&typeof a.render=="function",panel(e,t,a){let{sectionThemeFields:s,SECTION_THEME_FOLLOW_LABEL:c}=a,l=rm.has(t);e.fields={...e.fields,...l?s(g5,c):s()}},draw(e,t){let a=rm.has(t),s=e.render;e.render=c=>{let l=N9(a?{...c,sectionAccent:g5(c.sectionAccent)}:c),r=s(c);return l?cc1("div",{className:l.className,style:l.style,children:r}):r}}},OO={name:"slideTheme",applies:e=>e==="HeroSlide",panel(e,t,a){let{sectionThemeFields:s,BLOCK_THEME_FOLLOW_LABEL:c}=a;e?.fields&&(e.fields={...e.fields,...s(g5,c)})}};var lc1=new Set(["Reviews","Cards","FAQ","Prose","ProductHero","SpecTable","ProductGrid","ParagraphsA","KeyFeatures","Stats","StatsParagraph","Chart","Mockup","Testimonials","Logos","ContactRouting","ContactLocations","SubmitBuild","ReviewForm","Form","AppointmentBooking","OrderSummary","DeliveryOptions","PaymentBadges","CheckoutCTA","Collections","AlloyWheelsListing","CatalogFilterBar","FitmentFinder","GalleryB","BrandStrip","DocMasthead","DocBody","DocMetaCards","Masthead","FeaturedCover","LongRead","Series","Events","SectionHeader","Grid","Flex","Spacer","Divider","CustomHTML","Breadcrumb","CategoryBar","DocTabs","Hero","HeroSingle","IntroBleed","Manifesto","Timeline","TimelineTrack","Footprint","Banner","TitleWithButtons","Ticker","SubscribeBlogs","TyreSizes","TyreFitment","EuTyreLabel","SpecStrip","ProcessSteps","DetailRows","FitmentTable","CompatibleTyres","RelatedProducts","BundleOffer","Split","Gallery","Subscribe","Countdown"]),GO={name:"sectionGroups",applies:(e,t)=>t.isSection(e)&&(lc1.has(e)||t.isHostBlock(e)),panel(e,t,a){let s=a.assignSectionGroups;e?.fields&&(e.fields=s(e.fields,t))}},rc1=new Set(["HeroSlide","Heading","Text","ImageBlock","ButtonBlock","HeroGroup","GalleryItem","Footer","FooterLogo","FooterMenu","FooterGroup","FooterText","PostCard","LogoBlock","CollectionCard","Eyebrow","BookingBox","SubmitBox","FooterSocial","MenuBlock","SocialLogosBlock","EmailFormBlock","SearchBlock","CartBlock"]),qO={name:"blockGroups",applies:e=>rc1.has(e),panel(e,t,a){let s=a.assignSectionGroups;e?.fields&&(e.fields=s(e.fields,t))}};var oc1=["Form","Stats"];function tx(e,t){let a=new Set(e),s=wx.filter(i=>a.has(i)),c=s.filter(i=>i!=="Header"&&i!=="Footer"&&!ol.includes(i)),l=new Set([...t,...al,...oc1]),r=s.filter(i=>!l.has(i)),o=new Set(s);return{isSection:i=>o.has(i),isHostBlock:()=>!1,sectionGroupAllow:c,contentSectionKeys:r}}var ic1=[CO,kO,oL,HO,FO,iL,MO,XF,JF,QF,eT,ZO,VO,DO,IO,OO,GO,qO,TO,LO,PO,wO];function WO(e,t,a){let s=t;for(let c of ic1)c.applies(e,a,s)&&(a.inspector&&c.panel?.(s,e,a.inspector,a),c.draw?.(s,e,a));return t}var UO={spacingFields:f5,sectionShapeFields:Il,cardShapeFields:Iy,cellWidthFields:Oy,widthField:b5,heightFields:Gy,anchorFields:qy,sectionThemeFields:$9,sectionAnimationFields:_y,slider:s1,assignSectionGroups:jl,dropEmptyHeadings:Nh,SECTION_THEME_FOLLOW_LABEL:Ml,BLOCK_THEME_FOLLOW_LABEL:oy};function jO(e){let t={...tx(Object.keys(e.components),e.categories?.structure?.components??[]),inspector:UO};for(let[l,r]of Object.entries(e.components))WO(l,r,t);let a=e.root,s=a.resolveFields,c=(l,r)=>Nh(zO(l,r?.props),"page");return a.resolveFields=s?(l,r)=>{let o=s(l,r);return o instanceof Promise?o.then(i=>c(i??r.fields,l)):c(o??r.fields,l)}:(l,r)=>c(r.fields,l),t}import{Fragment as Fc1,jsx as o0,jsxs as pa}from"react/jsx-runtime";var bc1="Newsletter (built in)";var Yp0=[{value:"00",label:A.label},{value:"00",label:A.label},{value:"00",label:A.label}],xc1=qh(()=>import("./PreviewFooter-MSX5VU2X.js")),zc1=qh(()=>import("./render-client-V36O2I3G.js")),yc1={padding:"14px 18px",fontFamily:"var(--font-mono, monospace)",fontSize:12,letterSpacing:"0.18em",textTransform:"uppercase",color:"var(--fg-dim, #888)",borderBottom:"1px solid var(--site-line, #e5e5e5)"};function wc1({propsTheme:e,propsFonts:t,widthMode:a,fullWidth:s,pageWidth:c,pageBackground:l,chromeInheritsSiteBackground:r,suppressPreviewNav:o,children:i}){let{originData:n,exitFocus:h}=Ek(),{theme:m,fonts:u,sizes:d,themeFromDocument:v}=N3();if(!n)return pa(Yb,{propsTheme:e,propsFonts:t,widthMode:a,fullWidth:s,pageWidth:c,pageBackground:l,chromeInheritsSiteBackground:r,suppressPreviewNav:o,footer:null,children:[o0("div",{style:yc1,children:"This is your site footer \u2014 it shows at the bottom of every page."}),i]});let g=v?e:m,b=v?t:u,f=n.content??[],w=n.root,z=Ca(f)&&cr(w,f);return pa("div",{className:"sf-theme-accent",style:{...nl(b),...pl(g),...ul(g),...dl(g)},onClickCapture:o,children:[pa("div",{style:{position:"relative"},children:[o0("div",{className:z?sr:void 0,style:{...fa(g),...vl(v?void 0:d),pointerEvents:"none",userSelect:"none"},"aria-hidden":"true",children:o0(zc1,{data:n})}),o0("button",{type:"button",onClick:()=>h(),title:p("Click the page to go back"),"aria-label":p("Go back to the page"),style:{position:"absolute",inset:0,width:"100%",height:"100%",cursor:"pointer",background:"transparent",border:0,padding:0}})]}),o0("div",{className:"sf-theme-surfaces",style:{...fa(g),...gl(g)},children:o0($b,{w:{widthMode:a,fullWidth:s,pageWidth:c},children:i})})]})}var F0=fm,Cc1={formSlug:T5(void 0,bc1),_gLeft:x("Left panel"),metaLabel:q("Meta label",F0.metaLabel),issueLabel:q("Issue label",F0.issueLabel),issueNumber:q("Issue number",F0.issueNumber),kicker:q("Eyebrow",F0.kicker),heading:V1("Heading",F0.heading),deck:V1("Deck",F0.deck),stats:{type:"array",label:"Stats",arrayFields:{label:q("Label"),value:q("Value")},getItemSummary:e=>e?.label||e?.value||"Stat"},_gForm:x("Right panel \xB7 form"),formLabel:q("Section label",F0.formLabel),formHeading:q("Heading",F0.formHeading),formIntro:V1("Intro",F0.formIntro),firstNameLabel:q("First-name label",F0.firstNameLabel),firstNamePlaceholder:q("First-name placeholder",F0.firstNamePlaceholder),emailLabel:q("Email label",F0.emailLabel),emailPlaceholder:q("Email placeholder",F0.emailPlaceholder),_gChoices:x("Right panel \xB7 choices"),interestsLabel:q("Interests label",F0.interestsLabel),interests:P2("Interest chips",o0(a4,{noun:"tag"}),"Chip label","verbatim"),frequencyLabel:q("Frequency label",F0.frequencyLabel),frequencies:P2("Frequency options",o0(uc1,{}),"Option label","verbatim"),_gActions:x("Right panel \xB7 actions"),submitText:q("Submit button",F0.submitText),finePrint:q("Fine print",F0.finePrint),dismissText:q("Dismiss link",F0.dismissText),emailInvalidText:q("Invalid-email error",F0.emailInvalidText),submitErrorText:q("Submit-failed error",F0.submitErrorText),_gSuccess:x("Success state"),successHeading:q("Heading",F0.successHeading),successBody:V1("Message",F0.successBody),keepBrowsingText:q("Dismiss button",F0.keepBrowsingText),...$9(g5,Ml),...Il(),_gTextStyle:x("Text style"),...Object.fromEntries(Hl.map(e=>[xy[e],v1(mm[e],We(mm[e]),[{label:"Popup's own",value:""},...d5.map(t=>({label:H9[t],value:t}))],"")])),_gBehaviour:x("Behavior"),autoOpen:l1("Show by itself",F0.autoOpen,o0(pc1,{})),trigger:x1("Trigger",o0(fc1,{}),[{label:"Delay",value:"delay"},{label:"Scroll",value:"scroll"},{label:"Exit",value:"exit"}],F0.trigger),autoOpenDelaySec:s1("Delay",o0(ax,{}),dm.min,dm.max,1,F0.autoOpenDelaySec,"s"),scrollPercent:s1("Scroll",o0(vc1,{}),gm.min,gm.max,5,F0.scrollPercent,"%"),showOn:x1("Pages",o0(dc1,{}),[{label:"All",value:"all"},{label:"Chosen",value:"chosen"}],F0.showOn),showOnPages:X9("Chosen pages",[],"None"),hideAfter:x1("After close",o0(ax,{}),[{label:"This visit",value:"visit"},{label:"Days",value:"days"},{label:"Never",value:"never"}],F0.hideAfter),hideDays:s1("Days",o0(ax,{}),vm.min,vm.max,1,F0.hideDays),_gArrangement:x("Arrangement"),formSide:x1("Form side",o0(gc1,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],F0.formSide),_gPhone:x("On a phone"),valuePanelOnPhone:l1("Left panel",F0.valuePanelOnPhone,o0(hc1,{}))},kc1=jl(Cc1,"SubscribePopup");async function Mc1(){return(await ky(i2()??"")).filter(t=>!za(t.slug)).map(t=>({label:t.label,value:d8(t.slug)}))}async function Sc1(e){let t=bm(e),a=new Set;t.autoOpen||["trigger","autoOpenDelaySec","scrollPercent","showOn","showOnPages","hideAfter","hideDays"].forEach(c=>a.add(c)),t.trigger==="scroll"&&a.add("autoOpenDelaySec"),t.trigger!=="scroll"&&a.add("scrollPercent"),t.showOn!=="chosen"&&a.add("showOnPages"),t.hideAfter!=="days"&&a.add("hideDays");let s={};for(let[c,l]of Object.entries(kc1))a.has(c)||(s[c]=c==="showOnPages"?{...l,options:await Mc1().catch(()=>[])}:l);return ce(s)}var h5=Al,Lc1={_gHeader:x("Header"),kickerBadge:q("Eyebrow badge",h5.kickerBadge),kickerText:q("Eyebrow text",h5.kickerText),titleLead:q("Heading",h5.titleLead),titleAccent:q("Heading accent",h5.titleAccent),subtitleEmpty:V1("Sub-line \xB7 empty",h5.subtitleEmpty),subtitleOne:V1("Sub-line \xB7 one set",h5.subtitleOne),subtitleMany:V1("Sub-line \xB7 several sets",h5.subtitleMany,"{count} becomes the number of sets"),_gStatus:x("Status rail"),leadTimeValue:q("Lead time",h5.leadTimeValue),shipsToFallback:q("Ships to \xB7 fallback",h5.shipsToFallback,"Shown only while the site serves no countries \u2014 otherwise the site's default country is stated"),_gPromises:x("Promise row"),promises:P2("Trust markers",o0(KO,{}),"Marker","verbatim"),_gEmpty:x("Empty basket"),emptyKicker:q("Eyebrow",h5.emptyKicker),emptyBody:V1("Message",h5.emptyBody)},_h={root:{fields:{...xO},resolveFields:async(e,{fields:t})=>{if(e?.props?.kind===um)return Sc1(e.props);if(e?.props?.kind===hm)return Lc1;let a=t;return M2()?{[tp]:v1("Product type",o0(nc1,{}),ze,"alloy-wheel"),...a,_gHeroBullets:x("Product hero"),_nHeroBullets:v5("The promises under Add to Cart. Text before the \xB7 is bold. Leave the list empty to show no promises at all."),[Qp]:P2("Trust bullets",o0(KO,{}),JS($a.bullets[0]),"verbatim")}:a},render:e=>{let{children:t,puck:a,widthMode:s,fullWidth:c,pageWidth:l,pageBackground:r,theme:o,fonts:i,scales:n,kind:h,previewProduct:m}=e,u=Er(typeof h=="string"?h:"",e);if(h===um){let f=bm(e);return pa("div",{style:{background:"var(--bg)",minHeight:"100%"},children:[a?.isEditing?o0("div",{style:{padding:"14px 18px",fontFamily:"var(--font-mono, monospace)",fontSize:12,letterSpacing:"0.18em",textTransform:"uppercase",color:"var(--fg-dim, #888)",borderBottom:"1px solid var(--site-line, #e5e5e5)"},children:"This is the site popup \u2014 edit it in the Settings panel \u2192"}):null,o0(JM,{inline:!0,content:f})]})}if(h===hm){let f=by(e);return pa("div",{style:{background:"var(--bg)",minHeight:"100%"},children:[a?.isEditing?o0("div",{style:{padding:"14px 18px",fontFamily:"var(--font-mono, monospace)",fontSize:12,letterSpacing:"0.18em",textTransform:"uppercase",color:"var(--fg-dim, #888)",borderBottom:"1px solid var(--site-line, #e5e5e5)"},children:"This is the cart drawer \u2014 edit its copy in the Settings panel \u2192"}):null,o0(gr,{children:o0(vr,{preview:!0,children:o0(Ua,{content:f})})})]})}let d=!!a?.isEditing,v=o0($S,{type:Jp(e),children:o0(GS,{kind:u,children:o0(tL,{content:QS(e),children:o0(ZS,{slug:d?m:null,children:o0(TM,{children:t})})})})}),g=h===zy&&!hy(r);return d?h===D9?o0(wc1,{propsTheme:o,propsFonts:i,widthMode:s,fullWidth:c,pageWidth:l,pageBackground:typeof r=="string"?r:void 0,chromeInheritsSiteBackground:g,suppressPreviewNav:Xb,children:v}):o0(Yb,{propsTheme:o,propsFonts:i,widthMode:s,fullWidth:c,pageWidth:l,pageBackground:typeof r=="string"?r:void 0,suppressPreviewNav:Xb,footer:o0(xc1,{}),overlay:pa(Fc1,{children:[o0(_p,{}),o0(Up,{})]}),children:v}):o0(vO,{pageBackground:r,inheritBackground:g,w:{widthMode:s,fullWidth:c,pageWidth:l},children:v})}},categories:yx(),components:{Heading:B1.Heading,Text:B1.Text,Eyebrow:B1.Eyebrow,ImageBlock:B1.ImageBlock,LogoBlock:B1.LogoBlock,ButtonBlock:B1.ButtonBlock,Spacer:B1.Spacer,Divider:B1.Divider,Grid:B1.Grid,Flex:B1.Flex,Breadcrumb:B1.Breadcrumb,Masthead:B1.Masthead,CategoryBar:B1.CategoryBar,FeaturedCover:B1.FeaturedCover,LongRead:B1.LongRead,Series:B1.Series,Subscribe:h2.Subscribe,SubscribeBlogs:h2.SubscribeBlogs,Banner:B1.Banner,ParagraphsA:B1.ParagraphsA,StatsParagraph:B1.StatsParagraph,Timeline:B1.Timeline,Footprint:B1.Footprint,TimelineTrack:B1.TimelineTrack,TitleWithButtons:B1.TitleWithButtons,Stats:B1.Stats,Integrations:B1.Integrations,Mockup:B1.Mockup,Chart:B1.Chart,KeyFeatures:B1.KeyFeatures,Testimonials:B1.Testimonials,Reviews:h2.Reviews,Prose:B1.Prose,Cards:B1.Cards,Logos:B1.Logos,Ticker:B1.Ticker,ContactRouting:h2.ContactRouting,ContactLocations:B1.ContactLocations,HeroSingle:B1.HeroSingle,Hero:B1.Hero,HeroSlide:B1.HeroSlide,HeroGroup:B1.HeroGroup,Collections:U0.Collections,CollectionCard:U0.CollectionCard,Events:h2.Events,PostCard:B1.PostCard,DocMetaCards:B1.DocMetaCards,DocTabs:B1.DocTabs,DocMasthead:B1.DocMasthead,DocBody:B1.DocBody,FAQ:B1.FAQ,Gallery:U0.Gallery,GalleryB:U0.GalleryB,BrandStrip:U0.BrandStrip,SpecStrip:B1.SpecStrip,GalleryItem:U0.GalleryItem,Manifesto:B1.Manifesto,SectionHeader:B1.SectionHeader,IntroBleed:B1.IntroBleed,Split:B1.Split,SubmitBuild:h2.SubmitBuild,SubmitBox:h2.SubmitBox,ReviewForm:h2.ReviewForm,Form:h2.Form,AppointmentBooking:h2.AppointmentBooking,BookingBox:h2.BookingBox,CatalogFilterBar:U0.CatalogFilterBar,AlloyWheelsListing:U0.AlloyWheelsListing,ProductGrid:U0.ProductGrid,ProductHero:U0.ProductHero,SpecTable:U0.SpecTable,ProcessSteps:B1.ProcessSteps,DetailRows:U0.DetailRows,FitmentTable:U0.FitmentTable,RelatedProducts:U0.RelatedProducts,BundleOffer:U0.BundleOffer,CompatibleTyres:U0.CompatibleTyres,TyreSizes:U0.TyreSizes,TyreFitment:U0.TyreFitment,EuTyreLabel:U0.EuTyreLabel,FitmentFinder:U0.FitmentFinder,OrderSummary:B1.OrderSummary,DeliveryOptions:U0.DeliveryOptions,PaymentBadges:B1.PaymentBadges,CheckoutCTA:U0.CheckoutCTA,ProductRef:U0.ProductRef,CustomHTML:B1.CustomHTML,Header:U0.Header,Footer:h2.Footer,FooterLogo:h2.FooterLogo,FooterMenu:h2.FooterMenu,FooterDivider:h2.FooterDivider,FooterGroup:h2.FooterGroup,FooterText:h2.FooterText,FooterEmailSignup:h2.FooterEmailSignup,FooterSocial:h2.FooterSocial,LegalLineBlock:h2.LegalLineBlock,SearchBlock:U0.SearchBlock,CartBlock:U0.CartBlock,CountrySwitchBlock:U0.CountrySwitchBlock,[L9]:h2.SiteHeader,[A9]:h2.SiteFooter}},Ac1={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial"};for(let[e,t]of Object.entries(Ac1)){let a=_h.components;a[e]={...a[t]}}{let e=_h.components.MenuBlock;e.fields={...e.fields,direction:x1("Direction",o0(mc1,{}),[{label:om.column,value:"column"},{label:om.row,value:"row"}],"column")},e.defaultProps={...e.defaultProps,direction:"column"},e.render=({menu:t,heading:a,accordionMobile:s,showDividers:c,direction:l,puck:r})=>o0(Na,{menu:t,heading:a||void 0,accordionMobile:s,showDividers:c,layout:l==="row"?"row":"column",editing:r?.isEditing})}var Hc1=jO(_h),Xp0=Hc1.sectionGroupAllow,Gf=_h;export{yx1 as a,wx1 as b,Cx1 as c,kx1 as d,Mx1 as e,tx as f,WO as g,UO as h,RU as i,Oh1 as j,lr1 as k,aZ as l,Fo1 as m,NM as n,To1 as o,Po1 as p,kh1 as q,eh0 as r,th0 as s,AO1 as t,Jc1 as u,Qc1 as v,el1 as w,tl1 as x,vl1 as y,fl1 as z,lW1 as A,Fr1 as B,gi1 as C,w80 as D,Ip as E,E_1 as F,up as G,Jk as H,Ir1 as I,Rr1 as J,Br1 as K,Gr1 as L,aM as M,zr1 as N,_5 as O,jB as P,If as Q,hh as R,zt as S,o3 as T,MU as U,YB as V,tr1 as W,Vn as X,Bv as Y,Q61 as Z,FX1 as _,xR as $,zc as aa,Gf as ba};
|