efficient-storefront-blocks 0.32.5 → 0.32.6
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 +27 -0
- package/dist/chunks/{EditorPreviewCheckout-UGMEXAGV.js → EditorPreviewCheckout-MP7HSXYA.js} +1 -1
- package/dist/chunks/{PreviewFooter-PGJSJ4SM.js → PreviewFooter-Q36PUHMP.js} +1 -1
- package/dist/chunks/{chunk-NEQXU52M.js → chunk-5FHN3KMU.js} +1 -1
- package/dist/chunks/{chunk-GD6ZFQC7.js → chunk-GW3NVLTK.js} +1 -1
- package/dist/chunks/{chunk-3SPZO3U2.js → chunk-LCA4D7H4.js} +3 -3
- package/dist/chunks/{fitment-data-I2D4TVEQ.js → fitment-data-XF3S6LXZ.js} +1 -1
- package/dist/chunks/{render-client-KZKC5SLK.js → render-client-2S7YA55G.js} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- /package/dist/chunks/{chunk-3SPZO3U2.js.LEGAL.txt → chunk-LCA4D7H4.js.LEGAL.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as mz,$b as ay,$d as Lm,$f as le,$g as or,A as g5,Aa as wz,Ab as Hz,Ac as gy,Ad as Ay,Ae as t7,Af as jl,Ag as Mw,Ai as o4,B as ez,Ba as P9,Bb as Fz,Bc as vy,Bd as El,Bf as g1,Bg as Sw,Bh as Vm,Bi as yC,C as tz,Cb as nm,Cc as fy,Cd as O9,Ce as K9,Cf as Q9,Cg as Lw,Ch as ir,D as az,Da as dl,Db as N9,Dc as Ml,Dd as R3,De as Zl,Df as c2,Dg as b8,Dh as Nm,E as sz,Eb as pm,Ec as R9,Ed as Hy,Ee as jy,Eg as cr,Eh as Jw,F as cz,Fa as gl,Fb as um,Fc as by,Fd as Fy,Fe as $9,Ff as Kl,Fg as x8,Fh as nr,G as sm,Ga as lm,Gc as xm,Gd as wm,Ge as e3,Gf as v1,Gh as he,H as lz,Hb as Gz,Hc as Sl,Hd as Vl,Hf as q1,Hg as Aw,Hh as Qw,I as rz,Ib as qz,Ic as xy,Id as Ty,Ie as Y9,If as $l,Ig as Hw,Ih as eC,Ja as s6,Jb as Wz,Jc as zy,Jd as Py,Je as Ky,Jf as Tm,Jg as Fw,Jh as Sa,Kb as yl,Kc as Al,Kd as Nl,Ke as Dl,Kf as T2,Kg as Tw,Kh as tC,L as il,La as Cz,Lb as Uz,Ld as Cm,Le as T,Lh as aC,Ma as p2,Mb as jz,Md as Ey,Me as O,Mh as sC,Na as rm,Nb as Kz,Nc as yy,Nd as km,Ne as q,Nf as ee,Nh as hr,Ob as _9,Od as G9,Oe as f1,Of as te,Oh as cC,Pa as a1,Pb as X6,Pc as p,Pd as Vy,Pe as H1,Pf as Yl,Pg as w5,Ph as lC,Qa as F2,Qb as $z,Qc as p3,Qd as q9,Qe as E1,Qf as s7,Qg as Pw,Qh as rC,Ra as kz,Rb as ya,Rd as W9,Rf as hw,Rg as Ew,Sd as Ny,Sf as mw,T as oz,Tb as Yz,Td as _y,Te as x,Tf as Pm,Tg as C5,Th as q4,Ud as _l,Ue as b5,Uf as pw,Ug as Vw,Uh as oC,V as iz,Ve as $y,Vg as oe,Vh as mr,Wb as Xz,Wc as wy,We as Y1,Wf as Xl,Wg as Nw,Wh as La,Xb as Jz,Xc as v8,Xd as Iy,Xe as Yy,Xf as Jl,Xg as lr,Xh as c7,Yb as Qz,Yd as Mm,Ye as Ol,Yf as ae,Yg as rr,Z as nz,Zb as ey,Zc as Hl,Zd as Ca,Ze as a7,Zf as se,Zg as _w,Zh as iC,_ as hz,_b as ty,_c as Cy,_d as Sm,_e as X9,_f as ce,_g as Iw,_h as _m,a as Ix,aa as pz,ab as c6,ac as sy,ad as ky,ae as Am,af as s1,ag as uw,ah as Rw,b as rl,ba as cm,bb as d8,bc as wl,bd as J2,be as Hm,bf as Z3,bg as dw,bh as z8,c as Rx,ca as uz,cb as Y6,cc as Cl,cd as My,ce as Fm,cf as Xy,cg as gw,ch as e0,d as xa,da as dz,dc as dm,dd as c4,de as Ry,df as Gl,dh as i6,ea as nl,eb as Mz,ec as R2,ed as Sy,ee as By,ef as Jy,eg as Ql,eh as M,f as Bx,fa as hl,fc as E0,fd as zm,fe as r6,ff as Qy,fg as vw,fh as R0,ga as gz,gc as cy,gd as Q2,ge as Il,gf as ql,gg as fw,gh as Y,ha as vz,hc as kl,hd as ym,he as Rl,hf as Wl,hg as re,hh as z0,hi as nC,ia as fz,ib as om,ic as g8,id as B9,ie as Zy,if as Ul,ih as Bw,ii as hC,j as Zx,ja as H9,jb as im,jc as gm,jd as Fl,je as Dy,jf as ew,jg as bw,jh as Zw,ji as mC,ka as F9,kd as Tl,ke as Oy,kf as tw,kh as Dw,ki as pC,la as ml,lb as Sz,lc as vm,ld as Ly,lf as aw,lh as Ow,li as uC,m as Dx,mc as fm,mf as sw,mg as xw,mh as Gw,mi as Aa,n as Ox,nc as ly,nd as l4,nf as Ma,nh as qw,oc as ry,od as r4,of as cw,oh as Ww,oi as dC,p as r0,pc as bm,pd as l6,pe as Gy,pf as x5,pg as sr,ph as Uw,q as ol,qc as f5,qd as f8,qe as B3,qf as z5,qh as jw,qi as fC,r as am,ra as I2,rc as oy,rd as Z9,re as qy,rf as lw,rg as Cw,rh as Kw,ri as bC,s as Ux,sa as Z1,sb as E9,sc as I9,sd as D9,se as Bl,sf as rw,sh as $w,si as xC,t as jx,tc as iy,td as J6,te as Q6,tf as ow,th as Yw,ti as zC,u as Kx,uc as ny,ud as Pl,ue as U9,uf as l1,uh as n6,v as $x,va as O1,vc as hy,ve as e7,vf as iw,vh as h6,w as Yx,wa as bz,wc as my,we as j9,wf as y5,wg as kw,wh as ie,wi as ur,x as Xx,xa as W1,xb as V9,xc as py,xe as Wy,xf as J9,xg as Em,xh as ne,xi as k4,y as Jx,ya as G1,yb as Lz,yc as uy,ye as Uy,yf as o6,yh as Xw,yi as dr,z as Qx,zb as Az,zc as dy,zd as C4,ze as ka,zf as nw,zh as k5,zi as l7}from"./chunk-QOXKQV6L.js";import{$ as Zm,A as fe,B as yr,C as _C,D as be,E as IC,H as RC,I as wr,J as d0,L as Bm,M as Cr,N as i4,O as kr,S as m7,T as BC,U as ZC,V as DC,W as xe,X as ze,Y as ye,Z as Fa,_ as OC,a as HC,aa as GC,ba as qC,ca as WC,da as w8,e as i7,ea as Z2,f as vr,fa as C8,g as FC,ga as UC,h as TC,ha as Dm,i as Im,j as PC,k as EC,l as fr,m as ue,n as Rm,p as B2,q as n7,r as br,s as de,t as ge,u as xr,v as h7,w as zr,x as VC,y as NC,z as ve}from"./chunk-
|
|
1
|
+
import{$ as mz,$b as ay,$d as Lm,$f as le,$g as or,A as g5,Aa as wz,Ab as Hz,Ac as gy,Ad as Ay,Ae as t7,Af as jl,Ag as Mw,Ai as o4,B as ez,Ba as P9,Bb as Fz,Bc as vy,Bd as El,Bf as g1,Bg as Sw,Bh as Vm,Bi as yC,C as tz,Cb as nm,Cc as fy,Cd as O9,Ce as K9,Cf as Q9,Cg as Lw,Ch as ir,D as az,Da as dl,Db as N9,Dc as Ml,Dd as R3,De as Zl,Df as c2,Dg as b8,Dh as Nm,E as sz,Eb as pm,Ec as R9,Ed as Hy,Ee as jy,Eg as cr,Eh as Jw,F as cz,Fa as gl,Fb as um,Fc as by,Fd as Fy,Fe as $9,Ff as Kl,Fg as x8,Fh as nr,G as sm,Ga as lm,Gc as xm,Gd as wm,Ge as e3,Gf as v1,Gh as he,H as lz,Hb as Gz,Hc as Sl,Hd as Vl,Hf as q1,Hg as Aw,Hh as Qw,I as rz,Ib as qz,Ic as xy,Id as Ty,Ie as Y9,If as $l,Ig as Hw,Ih as eC,Ja as s6,Jb as Wz,Jc as zy,Jd as Py,Je as Ky,Jf as Tm,Jg as Fw,Jh as Sa,Kb as yl,Kc as Al,Kd as Nl,Ke as Dl,Kf as T2,Kg as Tw,Kh as tC,L as il,La as Cz,Lb as Uz,Ld as Cm,Le as T,Lh as aC,Ma as p2,Mb as jz,Md as Ey,Me as O,Mh as sC,Na as rm,Nb as Kz,Nc as yy,Nd as km,Ne as q,Nf as ee,Nh as hr,Ob as _9,Od as G9,Oe as f1,Of as te,Oh as cC,Pa as a1,Pb as X6,Pc as p,Pd as Vy,Pe as H1,Pf as Yl,Pg as w5,Ph as lC,Qa as F2,Qb as $z,Qc as p3,Qd as q9,Qe as E1,Qf as s7,Qg as Pw,Qh as rC,Ra as kz,Rb as ya,Rd as W9,Rf as hw,Rg as Ew,Sd as Ny,Sf as mw,T as oz,Tb as Yz,Td as _y,Te as x,Tf as Pm,Tg as C5,Th as q4,Ud as _l,Ue as b5,Uf as pw,Ug as Vw,Uh as oC,V as iz,Ve as $y,Vg as oe,Vh as mr,Wb as Xz,Wc as wy,We as Y1,Wf as Xl,Wg as Nw,Wh as La,Xb as Jz,Xc as v8,Xd as Iy,Xe as Yy,Xf as Jl,Xg as lr,Xh as c7,Yb as Qz,Yd as Mm,Ye as Ol,Yf as ae,Yg as rr,Z as nz,Zb as ey,Zc as Hl,Zd as Ca,Ze as a7,Zf as se,Zg as _w,Zh as iC,_ as hz,_b as ty,_c as Cy,_d as Sm,_e as X9,_f as ce,_g as Iw,_h as _m,a as Ix,aa as pz,ab as c6,ac as sy,ad as ky,ae as Am,af as s1,ag as uw,ah as Rw,b as rl,ba as cm,bb as d8,bc as wl,bd as J2,be as Hm,bf as Z3,bg as dw,bh as z8,c as Rx,ca as uz,cb as Y6,cc as Cl,cd as My,ce as Fm,cf as Xy,cg as gw,ch as e0,d as xa,da as dz,dc as dm,dd as c4,de as Ry,df as Gl,dh as i6,ea as nl,eb as Mz,ec as R2,ed as Sy,ee as By,ef as Jy,eg as Ql,eh as M,f as Bx,fa as hl,fc as E0,fd as zm,fe as r6,ff as Qy,fg as vw,fh as R0,ga as gz,gc as cy,gd as Q2,ge as Il,gf as ql,gg as fw,gh as Y,ha as vz,hc as kl,hd as ym,he as Rl,hf as Wl,hg as re,hh as z0,hi as nC,ia as fz,ib as om,ic as g8,id as B9,ie as Zy,if as Ul,ih as Bw,ii as hC,j as Zx,ja as H9,jb as im,jc as gm,jd as Fl,je as Dy,jf as ew,jg as bw,jh as Zw,ji as mC,ka as F9,kd as Tl,ke as Oy,kf as tw,kh as Dw,ki as pC,la as ml,lb as Sz,lc as vm,ld as Ly,lf as aw,lh as Ow,li as uC,m as Dx,mc as fm,mf as sw,mg as xw,mh as Gw,mi as Aa,n as Ox,nc as ly,nd as l4,nf as Ma,nh as qw,oc as ry,od as r4,of as cw,oh as Ww,oi as dC,p as r0,pc as bm,pd as l6,pe as Gy,pf as x5,pg as sr,ph as Uw,q as ol,qc as f5,qd as f8,qe as B3,qf as z5,qh as jw,qi as fC,r as am,ra as I2,rc as oy,rd as Z9,re as qy,rf as lw,rg as Cw,rh as Kw,ri as bC,s as Ux,sa as Z1,sb as E9,sc as I9,sd as D9,se as Bl,sf as rw,sh as $w,si as xC,t as jx,tc as iy,td as J6,te as Q6,tf as ow,th as Yw,ti as zC,u as Kx,uc as ny,ud as Pl,ue as U9,uf as l1,uh as n6,v as $x,va as O1,vc as hy,ve as e7,vf as iw,vh as h6,w as Yx,wa as bz,wc as my,we as j9,wf as y5,wg as kw,wh as ie,wi as ur,x as Xx,xa as W1,xb as V9,xc as py,xe as Wy,xf as J9,xg as Em,xh as ne,xi as k4,y as Jx,ya as G1,yb as Lz,yc as uy,ye as Uy,yf as o6,yh as Xw,yi as dr,z as Qx,zb as Az,zc as dy,zd as C4,ze as ka,zf as nw,zh as k5,zi as l7}from"./chunk-QOXKQV6L.js";import{$ as Zm,A as fe,B as yr,C as _C,D as be,E as IC,H as RC,I as wr,J as d0,L as Bm,M as Cr,N as i4,O as kr,S as m7,T as BC,U as ZC,V as DC,W as xe,X as ze,Y as ye,Z as Fa,_ as OC,a as HC,aa as GC,ba as qC,ca as WC,da as w8,e as i7,ea as Z2,f as vr,fa as C8,g as FC,ga as UC,h as TC,ha as Dm,i as Im,j as PC,k as EC,l as fr,m as ue,n as Rm,p as B2,q as n7,r as br,s as de,t as ge,u as xr,v as h7,w as zr,x as VC,y as NC,z as ve}from"./chunk-GW3NVLTK.js";import{A as J1,d as Ha,e as r7,g as i2,h as gr,i as W4,j as wC,k as CC,l as kC,m as MC,n as o7,o as SC,p as LC,v as me,w as v0,x as y8,y as AC,z as pe}from"./chunk-5FHN3KMU.js";import{$ as Vz,D as Tz,Da as Oz,G as Pz,Ga as wa,Ha as Ll,I as za,J as vl,L as fl,La as I3,Ma as er,O as bl,Oa as tr,Q as xl,Qa as zw,R as hm,Ra as yw,Sa as ww,Ta as ar,X as zl,Y as Ez,a as _3,aa as Nz,b as Gx,c as L1,ca as mm,d as xz,i as v5,j as T9,k as pl,l as zz,m as yz,pa as _z,q as ul,qa as Iz,ra as Rz,sa as Bz,va as Zz,wa as Dz}from"./chunk-IKG5YKP7.js";import{c as ba,d as Vx,e as Nx,g as _x,i as H2,j as qx,k as A9,l as Wx,m as s4,q as pr,r as gC,s as t3,t as vC}from"./chunk-VBQY6H55.js";import{a as _G,b as IG}from"./chunk-Y6SLVHK3.js";var eE=_G((qP1,QP)=>{"use strict";function i01(e,t){this.v=e,this.k=t}function VP(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 n01(e){if(Array.isArray(e))return e}function h01(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 m01(){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 p01(e,t){return n01(e)||h01(e,t)||u01(e,t)||m01()}function u01(e,t){if(e){if(typeof e=="string")return VP(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)?VP(e,t):void 0}}function Zi(e){var t,a;function s(l,r){try{var o=e[l](r),i=o.value,n=i instanceof i01;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)}Zi.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Zi.prototype.next=function(e){return this._invoke("next",e)},Zi.prototype.throw=function(e){return this._invoke("throw",e)},Zi.prototype.return=function(e){return this._invoke("return",e)};var $P=Object.entries,NP=Object.setPrototypeOf,d01=Object.isFrozen,g01=Object.getPrototypeOf,v01=Object.getOwnPropertyDescriptor,N2=Object.freeze,q2=Object.seal,zt=Object.create,YP=typeof Reflect<"u"&&Reflect,Qd=YP.apply,eg=YP.construct;N2||(N2=function(t){return t});q2||(q2=function(t){return t});Qd||(Qd=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)});eg||(eg=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 Y8=S2(Array.prototype.forEach);Array.prototype.indexOf;var f01=S2(Array.prototype.lastIndexOf),_P=S2(Array.prototype.pop),Vs=S2(Array.prototype.push);Array.prototype.slice;var b01=S2(Array.prototype.splice),yt=Array.isArray,Is=S2(String.prototype.toLowerCase),jd=S2(String.prototype.toString),IP=S2(String.prototype.match),Ns=S2(String.prototype.replace),RP=S2(String.prototype.indexOf),x01=S2(String.prototype.trim),z01=S2(Number.prototype.toString),y01=S2(Boolean.prototype.toString),BP=typeof BigInt>"u"?null:S2(BigInt.prototype.toString),ZP=typeof Symbol>"u"?null:S2(Symbol.prototype.toString),Y3=S2(Object.prototype.hasOwnProperty),_s=S2(Object.prototype.toString),f3=S2(RegExp.prototype.test),I7=w01(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 Qd(e,t,s)}}function w01(e){return function(){for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return eg(e,a)}}function S0(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Is;if(NP&&NP(e,null),!yt(t))return e;let s=t.length;for(;s--;){let c=t[s];if(typeof c=="string"){let l=a(c);l!==c&&(d01(t)||(t[s]=l),c=l)}e[c]=!0}return e}function C01(e){for(let t=0;t<e.length;t++)Y3(e,t)||(e[t]=null);return e}function g4(e){let t=zt(null);for(let s of $P(e)){var a=p01(s,2);let c=a[0],l=a[1];Y3(e,c)&&(yt(l)?t[c]=C01(l):l&&typeof l=="object"&&l.constructor===Object?t[c]=g4(l):t[c]=l)}return t}function k01(e){switch(typeof e){case"string":return e;case"number":return z01(e);case"boolean":return y01(e);case"bigint":return BP?BP(e):"0";case"symbol":return ZP?ZP(e):"Symbol()";case"undefined":return _s(e);case"function":case"object":{if(e===null)return _s(e);let t=e,a=_4(t,"toString");if(typeof a=="function"){let s=a(t);return typeof s=="string"?s:_s(s)}return _s(e)}default:return _s(e)}}function _4(e,t){for(;e!==null;){let s=v01(e,t);if(s){if(s.get)return S2(s.get);if(typeof s.value=="function")return S2(s.value)}e=g01(e)}function a(){return null}return a}function M01(e){try{return f3(e,""),!0}catch{return!1}}var DP=N2(["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"]),Kd=N2(["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"]),$d=N2(["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"]),S01=N2(["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"]),Yd=N2(["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"]),L01=N2(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),OP=N2(["#text"]),GP=N2(["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"]),Xd=N2(["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"]),qP=N2(["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"]),Di=N2(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),A01=q2(/{{[\w\W]*|^[\w\W]*}}/g),H01=q2(/<%[\w\W]*|^[\w\W]*%>/g),F01=q2(/\${[\w\W]*/g),T01=q2(/^data-[\-\w.\u00B7-\uFFFF]+$/),P01=q2(/^aria-[\-\w]+$/),WP=q2(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),E01=q2(/^(?:\w+script|data):/i),V01=q2(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),N01=q2(/^html$/i),_01=q2(/^[a-z][.\w]*(-[.\w]+)+$/i),UP=q2(/<[/\w!]/g),jP=q2(/<[/\w]/g),I01=q2(/<\/no(script|embed|frames)/i),R01=q2(/\/>/i),d4={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},XP=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],B01=N2(S0({},XP)),Z01=(function(){let e={};return Y8(XP,t=>{e[t]=q2(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),N2(e)})(),D01=function(){return typeof window>"u"?null:window},O01=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:[]}},R7=function(t,a,s,c){return Y3(t,a)&&yt(t[a])?S0(c.base?g4(c.base):{},t[a],c.transform):s},Jd=function(t,a,s){let c=Y3(t,a)?t[a]:void 0;return c&&typeof c=="object"?g4(c):s()};function JP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:D01(),t=r1=>JP(r1);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==d4.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=_4(m,"cloneNode"),d=_4(m,"remove"),v=_4(m,"removeAttributeNode"),g=_4(m,"nextSibling"),b=_4(m,"childNodes"),f=_4(m,"parentNode"),w=_4(m,"shadowRoot"),z=_4(m,"attributes"),k=r&&r.prototype?_4(r.prototype,"nodeType"):null,S=r&&r.prototype?_4(r.prototype,"nodeName"):null,H=r&&r.prototype?_4(r.prototype,"ownerDocument"):null,I=function(C){return k?k(C):C.nodeType},P=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 D,E="",F,_=!1,Z=0,G=function(){if(Z>0)throw I7('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.')},V=function(C){G(),Z++;try{return D.createHTML(C)}finally{Z--}},j=function(C){G(),Z++;try{return D.createScriptURL(C)}finally{Z--}},N=function(){return _||(F=O01(h,c),_=!0),F},Q=a,W=Q.implementation,U=Q.createNodeIterator,i1=Q.createDocumentFragment,y1=Q.getElementsByTagName,K=s.importNode,c1=KP();t.isSupported=typeof $P=="function"&&typeof f=="function"&&W&&W.createHTMLDocument!==void 0;let b1=A01,$=H01,u1=F01,x1=T01,X0=P01,o0=E01,I1=V01,c0=_01,l0=WP,X1=null,X2=S0({},[...DP,...Kd,...$d,...Yd,...OP]),Q1=null,d2=S0({},[...GP,...Xd,...qP,...Di]),b0=Object.seal(zt(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}})),d1=null,$1=null,u0=Object.seal(zt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),P0=!0,J0=!0,q0=!1,e1=!0,z1=!1,t0=!0,s2=!1,M3=!1,G6=null,q6=null,W6=!1,u5=!1,V3=!1,U6=!1,p8=!0,m3=!1,C9="user-content-",N3=!0,e4=!1,S3={},t4=null,a6=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"]),z4=null,y4=S0({},["audio","video","img","source","image","track"]),G4=null,j6=S0({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),S1="http://www.w3.org/1998/Math/MathML",i0="http://www.w3.org/2000/svg",M1="http://www.w3.org/1999/xhtml",w2=M1,g2=!1,K6=null,$h=S0({},[S1,i0,M1],jd),xx=N2(["mi","mo","mn","ms","mtext"]),Yh=S0({},xx),zx=N2(["annotation-xml"]),Xh=S0({},zx),yG=S0({},["title","style","font","a","script"]),va=null,wG=["application/xhtml+xml","text/html"],CG="text/html",v2=null,k9=null,kG=a.createElement("form"),yx=function(C){return C instanceof RegExp||C instanceof Function},Jh=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(k9&&k9===C)return;(!C||typeof C!="object")&&(C={}),C=g4(C),va=wG.indexOf(C.PARSER_MEDIA_TYPE)===-1?CG:C.PARSER_MEDIA_TYPE,v2=va==="application/xhtml+xml"?jd:Is,X1=R7(C,"ALLOWED_TAGS",X2,{transform:v2}),Q1=R7(C,"ALLOWED_ATTR",d2,{transform:v2}),K6=R7(C,"ALLOWED_NAMESPACES",$h,{transform:jd}),G4=R7(C,"ADD_URI_SAFE_ATTR",j6,{transform:v2,base:j6}),z4=R7(C,"ADD_DATA_URI_TAGS",y4,{transform:v2,base:y4}),t4=R7(C,"FORBID_CONTENTS",a6,{transform:v2}),d1=R7(C,"FORBID_TAGS",g4({}),{transform:v2}),$1=R7(C,"FORBID_ATTR",g4({}),{transform:v2}),S3=Y3(C,"USE_PROFILES")?C.USE_PROFILES&&typeof C.USE_PROFILES=="object"?g4(C.USE_PROFILES):C.USE_PROFILES:!1,P0=C.ALLOW_ARIA_ATTR!==!1,J0=C.ALLOW_DATA_ATTR!==!1,q0=C.ALLOW_UNKNOWN_PROTOCOLS||!1,e1=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,z1=C.SAFE_FOR_TEMPLATES||!1,t0=C.SAFE_FOR_XML!==!1,s2=C.WHOLE_DOCUMENT||!1,u5=C.RETURN_DOM||!1,V3=C.RETURN_DOM_FRAGMENT||!1,U6=C.RETURN_TRUSTED_TYPE||!1,W6=C.FORCE_BODY||!1,p8=C.SANITIZE_DOM!==!1,m3=C.SANITIZE_NAMED_PROPS||!1,N3=C.KEEP_CONTENT!==!1,e4=C.IN_PLACE||!1,l0=M01(C.ALLOWED_URI_REGEXP)?C.ALLOWED_URI_REGEXP:WP,w2=typeof C.NAMESPACE=="string"?C.NAMESPACE:M1,Yh=Jd(C,"MATHML_TEXT_INTEGRATION_POINTS",()=>S0({},xx)),Xh=Jd(C,"HTML_INTEGRATION_POINTS",()=>S0({},zx));let R=Jd(C,"CUSTOM_ELEMENT_HANDLING",()=>zt(null));if(b0=zt(null),Y3(R,"tagNameCheck")&&yx(R.tagNameCheck)&&(b0.tagNameCheck=R.tagNameCheck),Y3(R,"attributeNameCheck")&&yx(R.attributeNameCheck)&&(b0.attributeNameCheck=R.attributeNameCheck),Y3(R,"allowCustomizedBuiltInElements")&&typeof R.allowCustomizedBuiltInElements=="boolean"&&(b0.allowCustomizedBuiltInElements=R.allowCustomizedBuiltInElements),q2(b0),z1&&(J0=!1),V3&&(u5=!0),S3&&(X1=S0({},OP),Q1=zt(null),S3.html===!0&&(S0(X1,DP),S0(Q1,GP)),S3.svg===!0&&(S0(X1,Kd),S0(Q1,Xd),S0(Q1,Di)),S3.svgFilters===!0&&(S0(X1,$d),S0(Q1,Xd),S0(Q1,Di)),S3.mathMl===!0&&(S0(X1,Yd),S0(Q1,qP),S0(Q1,Di))),u0.tagCheck=null,u0.attributeCheck=null,Y3(C,"ADD_TAGS")&&(typeof C.ADD_TAGS=="function"?u0.tagCheck=C.ADD_TAGS:yt(C.ADD_TAGS)&&(X1===X2&&(X1=g4(X1)),S0(X1,C.ADD_TAGS,v2))),Y3(C,"ADD_ATTR")&&(typeof C.ADD_ATTR=="function"?u0.attributeCheck=C.ADD_ATTR:yt(C.ADD_ATTR)&&(Q1===d2&&(Q1=g4(Q1)),S0(Q1,C.ADD_ATTR,v2))),Y3(C,"ADD_FORBID_CONTENTS")&&yt(C.ADD_FORBID_CONTENTS)&&(t4===a6&&(t4=g4(t4)),S0(t4,C.ADD_FORBID_CONTENTS,v2)),N3&&(X1["#text"]=!0),s2&&S0(X1,["html","head","body"]),X1.table&&(S0(X1,["tbody"]),delete d1.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw I7('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw I7('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let t1=D;D=C.TRUSTED_TYPES_POLICY;try{E=V("")}catch(n1){throw D=t1,n1}}else C.TRUSTED_TYPES_POLICY===null?(D=void 0,E=""):(D===void 0&&(D=N()),D&&typeof E=="string"&&(E=V("")));N2&&N2(C),k9=C},wx=S0({},[...Kd,...$d,...S01]),Cx=S0({},[...Yd,...L01]),MG=function(C,R,t1){return R.namespaceURI===M1?C==="svg":R.namespaceURI===S1?C==="svg"&&(t1==="annotation-xml"||Yh[t1]):!!wx[C]},SG=function(C,R,t1){return R.namespaceURI===M1?C==="math":R.namespaceURI===i0?C==="math"&&Xh[t1]:!!Cx[C]},LG=function(C,R,t1){return R.namespaceURI===i0&&!Xh[t1]||R.namespaceURI===S1&&!Yh[t1]?!1:!Cx[C]&&(yG[C]||!wx[C])},AG=function(C){let R=f(C);(!R||!R.tagName)&&(R={namespaceURI:w2,tagName:"template"});let t1=Is(C.tagName),n1=Is(R.tagName);return K6[C.namespaceURI]?C.namespaceURI===i0?MG(t1,R,n1):C.namespaceURI===S1?SG(t1,R,n1):C.namespaceURI===M1?LG(t1,R,n1):!!(va==="application/xhtml+xml"&&K6[C.namespaceURI]):!1},$6=function(C){Vs(t.removed,{element:C});try{f(C).removeChild(C)}catch{if(d(C),!f(C))throw I7("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},kx=function(C,R,t1){try{v(C,R)}catch{try{C.removeAttribute(t1)}catch{}}},el=function(C){tl(C);let R=b(C);if(R){let n1=[];Y8(R,R1=>{Vs(n1,R1)}),Y8(n1,R1=>{try{d(R1)}catch{}})}let t1=z(C);if(t1)for(let n1=t1.length-1;n1>=0;--n1){let R1=t1[n1],m0=R1&&R1.name;typeof m0=="string"&&kx(C,R1,m0)}},u8=function(C,R,t1){if(!t1)try{t1=R.getAttributeNode(C)}catch{t1=null}Vs(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(u5||V3)try{$6(R)}catch{}else try{R.setAttribute(C,"")}catch{}},HG=function(C){let R=z(C);if(R)for(let t1=R.length-1;t1>=0;--t1){let n1=R[t1],R1=n1&&n1.name;typeof R1!="string"||Q1[v2(R1)]||kx(C,n1,R1)}},tl=function(C){let R=[C];for(;R.length>0;){let t1=R.pop();I(t1)===d4.element&&HG(t1);let n1=b(t1);if(n1)for(let R1=n1.length-1;R1>=0;--R1)R.push(n1[R1])}},Mx=function(C,R){return t0?C==="patchsrc"?!0:C==="for"&&R!=="label"&&R!=="output":!1},FG=function(C){if(!t0)return;let R=[C];for(;R.length>0;){let t1=R.pop(),n1=I(t1);if(n1===d4.processingInstruction||n1===d4.comment&&f3(jP,t1.data)){try{d(t1)}catch{}continue}if(n1===d4.element){let m0=t1,x0=v2(P(t1));try{m0.hasAttribute&&m0.hasAttribute("patchsrc")&&m0.removeAttribute("patchsrc"),m0.hasAttribute&&m0.hasAttribute("for")&&Mx("for",x0)&&m0.removeAttribute("for")}catch{}}let R1=b(t1);if(R1)for(let m0=R1.length-1;m0>=0;--m0)R.push(R1[m0])}},Sx=function(C){let R=null,t1=null;if(W6)C="<remove></remove>"+C;else{let m0=IP(C,/^[\r\n\t ]+/);t1=m0&&m0[0]}va==="application/xhtml+xml"&&w2===M1&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");let n1=D?V(C):C;if(w2===M1)try{R=new n().parseFromString(n1,va)}catch{}if(!R||!R.documentElement){R=W.createDocument(w2,"template",null);try{R.documentElement.innerHTML=g2?E:n1}catch{}}let R1=R.body||R.documentElement;return C&&t1&&R1.insertBefore(a.createTextNode(t1),R1.childNodes[0]||null),w2===M1?y1.call(R,s2?"html":"body")[0]:s2?R.documentElement:R1},Lx=function(C){let R=H?H(C):C.ownerDocument;return U.call(R||C,C,i.SHOW_ELEMENT|i.SHOW_COMMENT|i.SHOW_TEXT|i.SHOW_PROCESSING_INSTRUCTION|i.SHOW_CDATA_SECTION,null)},al=function(C){return C=Ns(C,b1," "),C=Ns(C,$," "),C=Ns(C,u1," "),C},Qh=function(C){var R;C.normalize();let t1=H?H(C):C.ownerDocument,n1=U.call(t1||C,C,i.SHOW_TEXT|i.SHOW_COMMENT|i.SHOW_CDATA_SECTION|i.SHOW_PROCESSING_INSTRUCTION,null),R1=n1.nextNode();for(;R1;)R1.data=al(R1.data),R1=n1.nextNode();let m0=(R=C.querySelectorAll)===null||R===void 0?void 0:R.call(C,"template");m0&&Y8(m0,x0=>{M9(x0.content)&&Qh(x0.content)})},sl=function(C){let R=S?S(C):null;return typeof R!="string"||v2(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!==k(C)||C.childNodes!==b(C)},M9=function(C){if(!k||typeof C!="object"||C===null)return!1;try{return k(C)===d4.documentFragment}catch{return!1}},fa=function(C){if(!k||typeof C!="object"||C===null)return!1;try{return typeof k(C)=="number"}catch{return!1}};function d5(r1,C,R){r1.length!==0&&Y8(r1,t1=>{t1.call(t,C,R,k9)})}let TG=function(C,R){return!!(t0&&C.hasChildNodes()&&!fa(C.firstElementChild)&&f3(UP,C.textContent)&&f3(UP,C.innerHTML)||t0&&C.namespaceURI===M1&&B01[R]&&(fa(C.firstElementChild)||typeof C.textContent=="string"&&f3(Z01[R],C.textContent))||C.nodeType===d4.processingInstruction||t0&&C.nodeType===d4.comment&&f3(jP,C.data))},cl=function(C,R){if(C instanceof RegExp)return f3(C,R);if(C instanceof Function){for(var t1=arguments.length,n1=new Array(t1>2?t1-2:0),R1=2;R1<t1;R1++)n1[R1-2]=arguments[R1];return!!C(R,...n1)}return!1},PG=function(C,R,t1){if(!d1[R]&&Tx(R)&&cl(b0.tagNameCheck,R))return!1;if(N3&&!t4[R]){let n1=f(C),R1=b(C);if(R1&&n1){let m0=R1.length;for(let x0=m0-1;x0>=0;--x0){let m2=C===t1?u(R1[x0],!0):R1[x0];n1.insertBefore(m2,g(C))}}}return $6(C),!0},Ax=function(C,R,t1,n1){return C.length===0?R:R===t1||R===n1?g4(R):R},S9=function(C,R){return C===R||f(C)!==null?!1:(e4&&tl(C),!0)},Hx=function(C,R){if(d5(c1.beforeSanitizeElements,C,null),S9(C,R))return!0;if(sl(C))return $6(C),!0;let t1=v2(P(C));if(X1=Ax(c1.uponSanitizeElement,X1,X2,G6),d5(c1.uponSanitizeElement,C,{tagName:t1,allowedTags:X1}),S9(C,R))return!0;if(TG(C,t1))return $6(C),!0;if(d1[t1]||!(u0.tagCheck instanceof Function&&u0.tagCheck(t1))&&!X1[t1]){let n1=PG(C,t1,R);return n1===!1&&(d5(c1.afterSanitizeElements,C,null),S9(C,R))?!0:n1}if(I(C)===d4.element&&!AG(C)||(t1==="noscript"||t1==="noembed"||t1==="noframes")&&f3(I01,C.innerHTML))return $6(C),!0;if(z1&&C.nodeType===d4.text){let n1=al(C.textContent);C.textContent!==n1&&(Vs(t.removed,{element:C.cloneNode()}),C.textContent=n1)}return d5(c1.afterSanitizeElements,C,null),S9(C,R)},Fx=function(C,R,t1){if($1[R]||Mx(R,C)||p8&&(R==="id"||R==="name")&&(t1 in a||t1 in kG))return!1;let n1=Q1[R]||u0.attributeCheck instanceof Function&&u0.attributeCheck(R,C);return J0&&f3(x1,R)||P0&&f3(X0,R)?!0:n1?G4[R]||f3(l0,Ns(t1,I1,""))||(R==="src"||R==="xlink:href"||R==="href")&&C!=="script"&&RP(t1,"data:")===0&&z4[C]||q0&&!f3(o0,Ns(t1,I1,""))?!0:!t1:Tx(C)&&cl(b0.tagNameCheck,C)&&cl(b0.attributeNameCheck,R,C)||R==="is"&&b0.allowCustomizedBuiltInElements&&cl(b0.tagNameCheck,t1)},EG=S0({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Tx=function(C){return!EG[Is(C)]&&f3(c0,C)},VG=function(C,R,t1,n1){if(D&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!t1)switch(h.getAttributeType(C,R)){case"TrustedHTML":return V(n1);case"TrustedScriptURL":return j(n1)}return n1},NG=function(C,R,t1,n1){try{return t1?C.setAttributeNS(t1,R,n1):C.setAttribute(R,n1),sl(C)?($6(C),!1):!0}catch{return u8(R,C),!1}},Px=function(C,R){if(d5(c1.beforeSanitizeAttributes,C,null),S9(C,R))return;let t1=C.attributes;if(!t1||sl(C))return;Q1=Ax(c1.uponSanitizeAttribute,Q1,d2,q6);let n1={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q1,forceKeepAttr:void 0},R1=t1.length,m0=v2(C.nodeName);for(;R1--;){let x0=t1[R1],m2=x0.name,w4=x0.namespaceURI,a4=x0.value,L9=v2(m2),tm=a4,L3=m2==="value"?tm:x01(tm),Ex=!1;if(n1.attrName=L9,n1.attrValue=L3,n1.keepAttr=!0,n1.forceKeepAttr=void 0,d5(c1.uponSanitizeAttribute,C,n1),L3=n1.attrValue,m3&&(L9==="id"||L9==="name")&&RP(L3,C9)!==0&&(u8(m2,C,x0),L3=C9+L3,Ex=!0),t0&&f3(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,L3)){u8(m2,C,x0);continue}if(L9==="attributename"&&IP(L3,"href")){u8(m2,C,x0);continue}if(!n1.forceKeepAttr){if(!n1.keepAttr){u8(m2,C,x0);continue}if(!e1&&f3(R01,L3)){u8(m2,C,x0);continue}if(z1&&(L3=al(L3)),!Fx(m0,L9,L3)){u8(m2,C,x0);continue}L3=VG(m0,L9,w4,L3),L3!==tm&&NG(C,m2,w4,L3)&&Ex&&_P(t.removed)}}d5(c1.afterSanitizeAttributes,C,null),S9(C,R)},ll=function(C){let R=null,t1=Lx(C);for(d5(c1.beforeSanitizeShadowDOM,C,null);R=t1.nextNode();)if(d5(c1.uponSanitizeShadowNode,R,null),Hx(R,C),Px(R,C),M9(R.content)&&ll(R.content),I(R)===d4.element){let n1=w(R);M9(n1)&&(em(n1),ll(n1))}d5(c1.afterSanitizeShadowDOM,C,null)},em=function(C){let R=[{node:C,shadow:null}];for(;R.length>0;){let t1=R.pop();if(t1.shadow){ll(t1.shadow);continue}let n1=t1.node,R1=I(n1)===d4.element,m0=b(n1);if(m0)for(let x0=m0.length-1;x0>=0;--x0)R.push({node:m0[x0],shadow:null});if(R1){let x0=S?S(n1):null;if(typeof x0=="string"&&v2(x0)==="template"){let m2=n1.content;M9(m2)&&R.push({node:m2,shadow:null})}}if(R1){let x0=w(n1);M9(x0)&&R.push({node:null,shadow:x0},{node:x0,shadow:null})}}};return t.sanitize=function(r1){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=null,t1=null,n1=null,R1=null;if(g2=!r1,g2&&(r1="<!-->"),typeof r1!="string"&&!fa(r1)&&(r1=k01(r1),typeof r1!="string"))throw I7("dirty is not a string, aborting");if(!t.isSupported)return r1;M3?(X1=G6,Q1=q6):Jh(C),(c1.uponSanitizeElement.length>0||c1.uponSanitizeAttribute.length>0)&&(X1=g4(X1)),c1.uponSanitizeAttribute.length>0&&(Q1=g4(Q1)),t.removed=[];let m0=e4&&typeof r1!="string"&&fa(r1);if(m0){FG(r1);let w4=P(r1);if(typeof w4=="string"){let a4=v2(w4);if(!X1[a4]||d1[a4])throw el(r1),I7("root node is forbidden and cannot be sanitized in-place")}if(sl(r1))throw el(r1),I7("root node is clobbered and cannot be sanitized in-place");try{em(r1)}catch(a4){throw el(r1),a4}}else if(fa(r1))R=Sx("<!---->"),t1=R.ownerDocument.importNode(r1,!0),t1.nodeType===d4.element&&t1.nodeName==="BODY"||t1.nodeName==="HTML"?R=t1:R.appendChild(t1),em(R);else{if(!u5&&!z1&&!s2&&r1.indexOf("<")===-1)return D&&U6?V(r1):r1;if(R=Sx(r1),!R)return u5?null:U6?E:""}R&&W6&&$6(R.firstChild);let x0=m0?r1:R;try{let w4=Lx(x0);for(;n1=w4.nextNode();)Hx(n1,x0),Px(n1,x0),M9(n1.content)&&ll(n1.content)}catch(w4){throw m0&&(el(r1),Y8(t.removed,a4=>{a4.element&&tl(a4.element)})),w4}if(m0){let w4=!1;if(Y8(t.removed,a4=>{a4.element&&(a4.element===r1&&(w4=!0),tl(a4.element))}),w4)throw I7("a node selected for removal could not be safely returned; refusing to sanitize in place");return z1&&Qh(r1),r1}if(u5){if(z1&&Qh(R),V3)for(R1=i1.call(R.ownerDocument);R.firstChild;)R1.appendChild(R.firstChild);else R1=R;return(Q1.shadowroot||Q1.shadowrootmode)&&(R1=K.call(s,R1,!0)),R1}let m2=s2?R.outerHTML:R.innerHTML;return s2&&X1["!doctype"]&&R.ownerDocument&&R.ownerDocument.doctype&&R.ownerDocument.doctype.name&&f3(N01,R.ownerDocument.doctype.name)&&(m2="<!DOCTYPE "+R.ownerDocument.doctype.name+`>
|
|
3
3
|
`+m2),z1&&(m2=al(m2)),D&&U6?V(m2):m2},t.setConfig=function(){let r1=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Jh(r1),M3=!0,G6=X1,q6=Q1},t.clearConfig=function(){k9=null,M3=!1,G6=null,q6=null,D=F,E=""},t.isValidAttribute=function(r1,C,R){k9||Jh({});let t1=v2(r1),n1=v2(C);return Fx(t1,n1,R)},t.addHook=function(r1,C){typeof C=="function"&&Y3(c1,r1)&&Vs(c1[r1],C)},t.removeHook=function(r1,C){if(Y3(c1,r1)){if(C!==void 0){let R=f01(c1[r1],C);return R===-1?void 0:b01(c1[r1],R,1)[0]}return _P(c1[r1])}},t.removeHooks=function(r1){Y3(c1,r1)&&(c1[r1]=[])},t.removeAllHooks=function(){c1=KP()},t}var G01=JP();QP.exports=G01});import{readLockHolder as kq}from"efficient-easel/edit-lock";var Gm="/api/storefront/section-templates/",Om=e=>`${Gm}${encodeURIComponent(e)}/`,qm=e=>e.node!=null;function Mr(e){if(!qm(e))throw new Error(`Section template ${e.id} has no design`);return e}var Um=(e,t)=>e instanceof W4&&e.status===t;function RG(e){return{list:()=>pe(`${Gm}?no_page=true`,{token:e()}).then(t=>Array.isArray(t)?t:t.results??[]),get:t=>pe(Om(t),{token:e()}).catch(a=>{if(Um(a,404))return null;throw a}),create:t=>pe(Gm,{method:"POST",token:e(),body:JSON.stringify(t)}),patch:(t,a)=>pe(Om(t),{method:"PATCH",token:e(),body:JSON.stringify(a)}),remove:t=>pe(Om(t),{method:"DELETE",token:e()})}}var Wm="sf:section-templates",jC=`${Wm}.imported`,BG="Untitled section",ZG=160,Sr=e=>(typeof e=="string"?e.trim().slice(0,ZG):"")||BG;function DG(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 OG(e,t=t3){let a={created:0,seeded:0,left:0,skipped:0,kept:!1},s=t.getItem(Wm);if(s===null)return a;for(let c of DG(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:Sr(c.name),node:c.node}),a.created+=1}catch(r){if(!Um(r,400))throw r;a.skipped+=1}}catch{return{...a,kept:!0}}return t.setItem(jC,s),t.getItem(jC)===s&&t.removeItem(Wm),a}var Lr=class{constructor(t,a=t3){this.readToken=t;this.storage=a;this.imported=null;this.http=RG(t)}ready(){return this.imported?this.imported:this.readToken()?(this.imported=OG(this.http,this.storage).catch(()=>{}),this.imported):Promise.resolve()}async list(){return await this.ready(),(await this.http.list()).filter(qm)}async get(t){return await this.ready(),this.http.get(t)}async ensure(t,a,s){await this.ready();let c=async r=>r?qm(r)?r:Mr(await this.http.patch(t,{node:s})):null,l=await c(await this.http.get(t));if(l)return l;try{return Mr(await this.http.create({id:t,name:Sr(a),node:s}))}catch(r){if(Um(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(),Mr(await this.http.create({name:Sr(t),node:a}))}async update(t,a){return await this.ready(),Mr(await this.http.patch(t,{node:a}))}async rename(t,a){return await this.ready(),this.http.patch(t,{name:Sr(a)})}async remove(t){await this.ready(),await this.http.remove(t)}};var KC={"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 $C(e,t){let a=KC[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 Hr1}from"efficient-shell/markup";var m6=["width","profile","rim"],YC={width:"Width",profile:"Profile",rim:"Rim"},GG=/^\s*(\d{2,3})\s*\/\s*(\d{2,3})\s*[A-Za-z]*\s*(\d{2}(?:\.\d+)?)\s*$/,qG={width:[100,500],profile:[20,100],rim:[10,30]};function n4(e){let t=GG.exec(e??"");if(!t)return null;let a={width:Number(t[1]),profile:Number(t[2]),rim:Number(t[3])};return m6.every(c=>{let[l,r]=qG[c];return a[c]>=l&&a[c]<=r})?a:null}function U4(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 XC(e){return[U4({width:e.width}),U4({width:e.width,profile:e.profile}),U4(e)]}var D3=["alloy-wheel","tyre"],Ar=["alloy-wheel"],h4={"alloy-wheel":"Alloy wheels",tyre:"Tyres"},JC="All products",QC="All product types";function M5(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 we=D3.map(e=>({value:e,label:h4[e]}));function S5(e){return e==null?[...Ar]:Array.isArray(e)?D3.filter(t=>e.includes(t)):[...Ar]}var A3=e=>e;function B0(e){return A3(e).kind==="tyre"?"tyre":"alloy-wheel"}function ek(e,t){return e.filter(a=>t.includes(B0(a)))}function p7(e){return A3(e).slug??""}function jm(e){return A3(e).name??""}function Ce(e){return A3(e).brand??""}function tk(e){let t=new Set;for(let a of e)if(t.add(Ce(a)),t.size>1)return!0;return!1}function WG(e){return A3(e).process??""}function ak(e){let t=new Set;for(let a of e)if(t.add(WG(a)),t.size>1)return!0;return!1}function k8(e){return A3(e).prices??void 0}function Km(e){return A3(e).inStock!==!1}function sk(e){let t=A3(e),a=B0(e)==="tyre"?t.rimDiameters:t.sizes;return Array.isArray(a)?a.filter(s=>typeof s=="number"&&Number.isFinite(s)):[]}function $m(e){return B0(e)!=="tyre"&&A3(e).badge==="new"}function Ym(e){return B0(e)==="tyre"?[]:(A3(e).finishes??[]).filter(t=>typeof t?.family=="string").map(t=>({family:t.family,color:t.color??null}))}function ck(e){return Ym(e).map(t=>t.family)}function lk(e){if(B0(e)==="tyre")return[];let t=A3(e),a=t.categories;return a&&a.length>0?a:t.process?[t.process]:[]}function rk(e){return B0(e)==="tyre"?[]:A3(e).spec?.pcds??[]}function ok(e){return B0(e)!=="tyre"?[]:A3(e).tyreTypes??[]}function ik(e){return B0(e)!=="tyre"?[]:A3(e).speedRatings??[]}function ke(e){if(B0(e)!=="tyre")return[];let t=A3(e).sizes;return Array.isArray(t)?t.map(a=>n4(typeof a=="string"?a:null)).filter(a=>a!==null):[]}function j4(e,t){return e.length===0?e:e.filter(a=>a.kind===void 0||a.kind===t)}function Hr(e,t){if(t.length===0)return e;let a=Me(t);return u7(e.filter(s=>a(s.fieldKey)),s=>s.fieldKey,t,"cardOrder")}function nk(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 Xm(e){return Tr(e,"spec")}function hk(e){return Tr(e,"fitment")}function Jm(e,t){if(t.length===0)return e;let a=Xm(t),s=e.filter(c=>a(c.fieldKey));return u7(s,c=>c.fieldKey,t,"specOrder")}function u7(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 Me(e){return Tr(e,"card")}function Fr(e){return Tr(e,"filter")}var Se="collection";function Le(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":Se},pcds:{"alloy-wheel":"pcd"},tyreTypes:{tyre:"tire_type"},speedRatings:{tyre:"speed_rating"}}[e]?.[t]}function Tr(e,t){let a=new Set(e.filter(s=>s[t]===!1).map(s=>s.fieldKey));return s=>!s||!a.has(s)}function P2(e){return Number.isInteger(e)?String(e):String(Number(e.toFixed(2)))}function Qm(e,t,a){let s=a!=null?`${P2(t)}/${P2(a)}`:P2(t);return`${e}" \xD7 ${s}`}function Pr(e,t){return e===t?`ET ${e}`:`ET ${e}\u2013${t}`}function mk(e,t){return e===t?`${P2(e)}"`:`${P2(e)}"\u2013${P2(t)}"`}function ep(e){return e==="\u2014"?e:`${e}"`}var Ta={recommended:"Recommended","price-asc":"Price \xB7 low to high","price-desc":"Price \xB7 high to low",new:"Newest",name:"Name A\u2013Z"},pk=Object.keys(Ta);function Ae(e){return I2(pk,"recommended",e)}function tp(e){return pk.filter(t=>t!=="recommended"||e.length<=1)}function uk(e,t){let a=Ae(e);return tp(t).includes(a)?a:"name"}var Pa=["tyreSizes","brands","finishes","diameters","collections","pcds","tyreTypes","speedRatings"],UG={tyreSizes:["tyre"],brands:["alloy-wheel","tyre"],finishes:["alloy-wheel"],diameters:["alloy-wheel","tyre"],collections:["alloy-wheel"],pcds:["alloy-wheel"],tyreTypes:["tyre"],speedRatings:["tyre"]},jG={diameters:"tyreSizes"};function dk(e){if(e.length===0)return[];let t=Pa.filter(a=>e.every(s=>UG[a].includes(s)));return t.filter(a=>{let s=jG[a];return!s||!t.includes(s)})}function gk(e,t){return t&&e.includes(t)?[t]:[...e]}function vk(e){let t=new Set;for(let a of e)t.add(B0(a));return[...t]}var L5={tyreSizes:[],brands:[],finishes:[],diameters:[],collections:[],pcds:[],tyreTypes:[],speedRatings:[],priceMax:null,inStockOnly:!1,kind:null,sort:"recommended",page:1};function He(e){return`${KG(e.width)}\xD7${e.diameter}`}function fk(e){return[...new Set((e.sizePairs??[]).map(t=>Qm(t.diameter,t.width)))]}function KG(e){return P2(e)}function Ea(e,t,a,s=null){if(s!=="kind"&&t.kind&&B0(e)!==t.kind)return!1;for(let c of Pa){if(s===c)continue;let l=t[c];if(l.length===0)continue;let r=l.map(String);if(!zk(e,c).some(o=>r.includes(o)))return!1}return!(s!=="price"&&!xr(k8(e),a,null,t.priceMax)||s!=="inStock"&&t.inStockOnly&&!Km(e))}function bk(e,t,a){return e.filter(s=>Km(s)&&Ea(s,t,a,"inStock")).length}function $G(e,t,a){let s=[...e],c=(r,o)=>jm(r).localeCompare(jm(o)),l=vk(e).length>1;switch(t){case"price-asc":return s.sort((r,o)=>ge(k8(r),k8(o),a,"asc"));case"price-desc":return s.sort((r,o)=>ge(k8(r),k8(o),a,"desc"));case"name":return s.sort(c);case"new":return s.sort((r,o)=>{let i=($m(o)?1:0)-($m(r)?1:0);return i!==0||!l?i:c(r,o)});default:return s}}function xk(e,t,a){return $G(e.filter(s=>Ea(s,t,a)),t.sort,a)}function Er(e){return Pa.some(t=>e[t].length>0)||e.priceMax!=null||e.inStockOnly||e.kind!=null}var ap={tyreSizes:"Size",brands:"Brand",finishes:"Colour",diameters:"Size \xB7 diameter",collections:"Collection",pcds:"PCD \xB7 fitment",tyreTypes:"Tyre type",speedRatings:"Speed rating"};function zk(e,t){switch(t){case"tyreSizes":return[...new Set(ke(e).flatMap(XC))];case"brands":return Ce(e)?[Ce(e)]:[];case"finishes":return ck(e);case"diameters":return sk(e).map(String);case"collections":return lk(e);case"pcds":return rk(e);case"tyreTypes":return ok(e);case"speedRatings":return ik(e)}}function YG(e){let t=new Map;for(let a of e)for(let s of Ym(a))s.color&&!t.has(s.family)&&t.set(s.family,s.color);return t}function Vr(e,t,a,s=vk(e),c=[]){let l=n=>XG(n,s,c),r=YG(e),o=dk(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=zk(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(Ea(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:ap[n],options:v}}).filter(n=>n.options.length>Va),i=[];for(let n of o){let h=JG(n.key,s,c);h!==void 0&&i.push({fieldKey:n.key,filterOrder:h})}return[...u7(o,n=>n.key,i,"filterOrder")]}var Va=1;function Nr(e){return e.showCollection===!1?["collections"]:[]}function XG(e,t,a){return t.length===0||a.length===0?!0:t.some(s=>Fr(j4(a,s))(Le(e,s)))}function JG(e,t,a){if(a.length===0)return;let s;for(let c of t){let l=nk(j4(a,c),"filter")(Le(e,c));l!==void 0&&(s===void 0||l<s)&&(s=l)}return s}function QG(e){let t=new Set;for(let a of e)for(let s of ke(a))t.add(U4(s));return t.size}function yk(e,t){return dk(t).includes("tyreSizes")?QG(e)>Va:!1}function wk(e){let t=n4(e);if(t)return t;let[a,s]=e.split("/");return{width:a?Number(a):void 0,profile:s?Number(s):void 0}}function eq(e,t,a){return m6.slice(0,m6.indexOf(a)).every(s=>{let c=t[s];return c==null||e[s]===c})}function Ck(e,t,a){let s=wk(t.tyreSizes[0]??""),c=new Set(e.filter(l=>Ea(l,t,a,"tyreSizes")));return m6.map(l=>{let r=new Map;for(let i of e){let n=ke(i).filter(h=>eq(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:YC[l],value:s[l]??null,options:o}})}function kk(e,t,a,s){let c={...wk(t)},l=m6.indexOf(a);c[a]=s??void 0;for(let r of m6.slice(l+1))c[r]!=null&&e.some(n=>m6.slice(0,m6.indexOf(r)+1).every(h=>c[h]==null||n[h]===c[h]))||(c[r]=void 0);return U4(c)}function Mk(e,t,a,s){if(t.length<2)return[];let c=e.filter(l=>Ea(l,a,s,"kind"));return[{kind:null,label:JC,count:c.length,checked:a.kind===null},...t.map(l=>({kind:l,label:h4[l],count:c.filter(r=>B0(r)===l).length,checked:a.kind===l}))]}function Sk(e,t){if(e.length===0)return null;let a=e.map(l=>de(k8(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 Lk(e,t,a){let s=[];e.kind&&s.push({key:"kind",value:e.kind,label:h4[e.kind]}),e.inStockOnly&&s.push({key:"inStock",value:"",label:"In stock"});for(let c of Pa)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 M4={tyreSizes:"tyreSize",brands:"brand",finishes:"colour",diameters:"size",collections:"collection",pcds:"pcd",tyreTypes:"tyreType",speedRatings:"speed"},d7="type",Ak="maxPrice",Hk="inStock",Fk="sort",Tk="page";function Pk(e){let t=l=>e.getAll(l).flatMap(r=>r.split(",")).filter(Boolean),a=Number(e.get(Ak)),s=Number(e.get(Tk)),c=e.get(d7);return{tyreSizes:t(M4.tyreSizes),brands:t(M4.brands),finishes:t(M4.finishes),diameters:t(M4.diameters).map(Number).filter(Number.isFinite),collections:t(M4.collections),pcds:t(M4.pcds),tyreTypes:t(M4.tyreTypes),speedRatings:t(M4.speedRatings),priceMax:Number.isFinite(a)&&a>0?a:null,inStockOnly:e.get(Hk)==="1",kind:D3.find(l=>l===c)??null,sort:Ae(e.get(Fk)),page:Number.isFinite(s)&&s>=1?Math.floor(s):1}}function M8(e){let t=new URLSearchParams;for(let a of Pa){let s=e[a];s.length>0&&t.set(M4[a],s.join(","))}return e.priceMax!=null&&t.set(Ak,String(e.priceMax)),e.inStockOnly&&t.set(Hk,"1"),e.kind&&t.set(d7,e.kind),e.sort!=="recommended"&&t.set(Fk,e.sort),e.page>1&&t.set(Tk,String(e.page)),t}function Ek(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 Vk(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 g7="__all__",Nk="All products";function _r(e){return e?.slug===g7}var Fe="AlloyWheelsListing",tq="ProductGrid",_k="catalog",aq="CatalogFilterBar",Ir="fieldUsage";function Te(e){return e?.type===tq&&_r(e.props?.source)}function sp(e){return e?.type===aq}function sq(e){return e?.type===Fe||Te(e)||sp(e)}function cq(e){let t=e.content??[],a=e.zones??{};return[...t,...Object.values(a).flat()]}function fr1(e){return e?cq(e).some(t=>t?.type===Fe||Te(t)):!1}function br1(e,t){return rq(e,a=>Te(a)?{...a,props:{...cp(a).props,[_k]:lq(t,S5(a.props?.kinds))}}:{...a,props:{...lp(a).props,products:t}})}function xr1(e){return Rk(e,sq,t=>sp(t)?Ik(t):Te(t)?cp(t):lp(t))}function Ik(e){if(!e.props||!(Ir in e.props))return e;let{[Ir]:t,...a}=e.props;return{...e,props:a}}function cp(e){let{[_k]:t,[Ir]:a,...s}=e.props??{};return{...e,props:s}}function lq(e,t){let a=new Set(t);return e.filter(s=>{let c=s.kind??"alloy-wheel";return a.has(c)})}function zr1(e){return Te(e)?cp(e):sp(e)?Ik(e):e?.type===Fe?lp(e):e}function lp(e){let{wheels:t,products:a,[Ir]:s,...c}=e.props??{};return{...e,props:c}}function rq(e,t){return Rk(e,a=>a?.type===Fe||Te(a),t)}function Rk(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 Na="/wheels",rp="Products";function iq(e,t){return t>1?`${rp} \xB7 ${e}`:rp}function Bk(...e){for(let t of e){let a=(t?.content??[]).find(s=>s?.type===Fe);if(a)return a.props??{}}return null}function op(...e){return Bk(...e)!==null}function nq(e,t){let a=e.filter(s=>op(...s.docs)).map(s=>g8(s.slug));return a.length===0&&t.fallback?[Na]:a}var Zk=[d7,...Object.entries(M4).filter(([e])=>e!=="tyreSizes").map(([,e])=>e)];function Dk(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 hq(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return e}}function ip(e){let t=new URLSearchParams(Dk(e).query);for(let a of Zk){let s=t.get(a);if(s)return{param:a,value:s}}return null}function np(e,t){let{path:a,query:s,hash:c}=Dk(e),l=s.split("&").filter(r=>r&&!Zk.includes(hq(r.split("=")[0])));return t?.value&&l.push(`${encodeURIComponent(t.param)}=${encodeURIComponent(t.value)}`),`${a}${l.length?`?${l.join("&")}`:""}${c}`}function Nr1(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 mq="Product type",pq="AUD";function uq(e,t){let a=t.listing??{},s=S5(a.kinds),c=e.filter(i=>s.includes(B0(i))),l=Nr(a),r=Vr(c,L5,pq,s,t.fieldUsage).filter(i=>!l.includes(i.key)).map(i=>({param:M4[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=D3.filter(i=>s.includes(i)&&c.some(n=>B0(n)===i));return o.length>1&&r.unshift({param:d7,label:mq,values:o.map(i=>({value:i,label:h4[i]}))}),r}function _r1(e){return t=>{let a=nq(t,{fallback:e.offersCommerce}),s=t.filter(c=>op(...c.docs)).length;return{listingPaths:a,pageOptions:c=>{let l=c.map(r=>{let o=t.find(i=>g8(i.slug)===r.value);return o&&op(...o.docs)?{...r,label:iq(o.title,s)}:r});return s===0&&e.offersCommerce&&!l.some(r=>r.value===Na)&&l.push({value:Na,label:rp}),l},filtersFor:c=>{if(!a.includes(c))return null;let l=t.find(r=>g8(r.slug)===c);return uq(e.catalogue,{listing:l?Bk(...l.docs):null,fieldUsage:e.fieldUsage})},readFilter:ip,withFilter:np}}}var Pe="product",Rr="recordType",dq={key:Pe,label:"Product",fields:[]};var gq=new Map,vq=0;function hp(){return[dq,...gq.values()]}function mp(){return vq}function Br(e){let t=e?.[Rr];return typeof t!="string"?Pe:t.trim()||Pe}function pp(e){return Br(e)===Pe}var up="product",fq="tyre";var dp="productType",bq={[up]:"alloy-wheel",[fq]:"tyre"},xq=["alloy-wheel","tyre"];function Zr(e,t){return pp(t)?zq(t)??bq[e]??null:null}function zq(e){if(!pp(e))return null;let t=e?.[dp];return typeof t=="string"&&xq.includes(t)?t:null}var yq=["home","products","gallery","about","contact"],wq=e=>{let t=e.slug.trim().toLowerCase(),a=(e.title??"").trim().toLowerCase(),s=yq.findIndex(c=>c===t||c===a);return s===-1?Number.POSITIVE_INFINITY:s},Ok=e=>e.map((t,a)=>({page:t,idx:a,rank:wq(t)})).sort((t,a)=>t.rank-a.rank||t.idx-a.idx).map(t=>t.page);var Wk="Popups",Gk="Site";var Uk={[Iy]:{label:"Site popup",group:Wk},[G9]:{label:"Footer",group:Gk},[Fy]:{label:"Cart drawer",group:Gk}};function vp(e){return Uk[e.slug]?.label||e.title||e.slug}function gp(e){let t=e.group?.trim();return t||null}function qk(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 jk(e){let t=Ok(e),a=[],s=t.filter(o=>!Ca(o.slug)),c=s.filter(o=>!gp(o));c.length&&a.push({key:"top",group:null,pages:c});let l=s.filter(o=>gp(o));for(let[o,i]of qk(l,n=>gp(n)))a.push({key:`folder:${o}`,group:o,pages:i});let r=t.filter(o=>Ca(o.slug));for(let[o,i]of qk(r,n=>Uk[n.slug]?.group??Wk))a.push({key:`system:${o}`,group:o,pages:i});return a}import{isExpiredSession as co1,PAGE_CONFLICT_CODE as Kk,readEaselFailure as lo1}from"efficient-easel/screen/lib/failure";var Dr=e=>e.layout_updated_at??e.updated_at??null,Mq=["live","changed","never"],fp=e=>Mq.includes(e.live_state)?{live:e.live_state}:{};function Sq(e){if(!e||typeof e!="object")return null;let t=e;return t.code!==Kk?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 Lq(e){return e===401||e===403?"unauthorized":e===404?"not-found":e===CC||e>=500?"unavailable":"invalid"}function Aq(e){if(!(e instanceof W4))return e;if(e.status===409){let t=Sq(e.data);if(t)return new v8("changed-elsewhere",e.message,{conflict:t,cause:e});let a=kq(e.data);if(a)return new v8("lock-taken",e.message,{holder:a,cause:e})}return new v8(Lq(e.status),e.message,{cause:e})}var bp=new WeakMap;function Hq(e,t){let a=pr(),s=a?new URL(a).hostname:typeof window<"u"?window.location?.hostname??null:null,c=null,l=t.siteId(),r=t.token();if(pC(s)&&l&&r){let i=mC(r,l);bp.has(i)?c=bp.get(i)??null:i.then(n=>bp.set(i,n))}let o=uC({pageSlug:e,siteSlug:c,hostname:s});return a?`${a}${o}`:o}var Fq={group:"Template pages",groupKey:"template"},$k=e=>({id:e.id,slug:e.slug,label:e.title||e.slug,...Fq,draft:!1});function Yk(e){let t=async n=>{let h=e.token();if(!h)throw new v8("unauthorized","The editor has no sign-in yet.");try{return await n(h)}catch(m){throw Aq(m)}},a={list:n=>t(async h=>{let m=await J1.listPages(h,n?.siteId);return jk(m.filter(u=>u.slug!==G9)).flatMap(u=>u.pages.map(d=>({id:d.id,slug:d.slug,label:vp(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:Dr(u),...fp(u)}:null}),save:(n,h,m)=>{let{version:u}=m;return u?t(async d=>{let v=await J1.saveLayout(n,h.layout,d,u,m.clientId||void 0);return{version:Dr(v),...fp(v)}}):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(Dr)),linkTargets:n=>t(async h=>(await J1.listPages(h,n?.siteId)).map(m=>({id:m.id,slug:m.slug,label:vp(m),layout:m.layout??null}))),publish:(n,h)=>t(async m=>{let u=await J1.publishPage(n,m,h?.version);return{version:Dr(u),...fp(u)}})},s=n=>({list:()=>t(async h=>(await J1.listTemplatePages(n,h)).map($k)),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:cy,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=>$k(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 v8("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(tr.map(h=>[h,n[ar(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:qx,maxUploadBytes:$C("POST /api/storefront/media/","file").maxSizeBytes},sectionTemplates:new Lr(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(tr.filter(d=>d in n).map(d=>[ar(d),n[d]]));try{return r(await J1.updateSocialSettings(u,m,c(h)))}catch(d){if(d instanceof W4&&d.status===400){let v=d.data??{},g={};for(let b of tr){let f=v[ar(b)],w=Array.isArray(f)?f[0]:f;typeof w=="string"&&w.trim()&&(g[b]=w)}if(Object.keys(g).length>0)throw new v8("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?A9(m.cover_image)??"":"",publishedAt:m.published_at,href:gm(m.slug)})))},templates:{get:n=>t(async h=>{let m=await J1.getTemplate(n,h);return{id:m.id,name:m.name}}),pages:s},preview:{href:n=>Hq(n,e),draftLink:n=>t(async h=>({url:(await J1.createPagePreviewLink(n,h)).url??null}))}};return i[Vx]=!0,i}wy({read:e=>e instanceof W4?{status:e.status,data:e.data,message:e.message}:null,unreachableMessage:wC,loadRefusal:(e,{slug:t})=>e instanceof AC?`\u201C${t}\u201D exists on more than one website. Open it from the site you want to edit.`:null});_x(e=>Yk({token:()=>e.auth.token,siteId:()=>e.siteId()}));function Co1(e={}){return e.portalAudience!==void 0&&kC(e.portalAudience),e.language!==void 0&&MC(e.language),Yk({token:()=>ba().auth.token,siteId:()=>e.siteId??ba().siteId()})}import{jsx as Tq}from"react/jsx-runtime";import{createContext as Pq,useContext as Eq,useMemo as Vq}from"react";var Xk=Pq({originData:null,originSlug:null,exitFocus:()=>{}});function Lo1({children:e,originData:t,originSlug:a,exitFocus:s}){let c=Vq(()=>({originData:t,originSlug:a,exitFocus:s}),[t,a,s]);return Tq(Xk.Provider,{value:c,children:e})}var Jk=()=>Eq(Xk);import{useCallback as rW,useEffect as oW,useRef as iW,useState as kM}from"react";var Nq=[{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"}],_q=Object.fromEntries(Nq.map(e=>[e.code,e.name]));function Qk(e){return _q[e]??e}import{jsx as xp,jsxs as eM}from"react/jsx-runtime";function tM(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||Qk(c),currency:l?.currency,url:l?.url||a?.[c]||""}})}function Or(e){let{countries:t}=d0();return tM(t,e).length>0}function S8({urls:e,countries:t}={}){let{country:a,setCountry:s,countries:c}=d0(),l=tM(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=ze({items:i,value:a,onPick:o});if(!r)return null;let h=n.open;return eM("div",{ref:n.wrapRef,className:"relative",children:[eM("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:[xp("span",{children:r.name}),xp("span",{"aria-hidden":!0,className:`text-[11px] opacity-70 transition-transform ${h?"rotate-180":""}`,children:"\u25BE"})]}),h&&xp(ye,{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 Iq,useRef as aM}from"react";import{jsx as S4,jsxs as zp}from"react/jsx-runtime";var _a={search:"Search",account:"Account",cart:"Bag"},yp="whitespace-nowrap";function Rq(e){return e>99?"99+":String(e)}function Bq({count:e,ref:t}){return S4("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:S4("span",{style:{color:"var(--sf-header-ground, var(--bg))"},children:Rq(e)})})}function Gr({onClick:e,count:t,asText:a,className:s}){let c=aM(null),l=aM(t);return Iq(()=>{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]),S4("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?zp("span",{className:yp,children:[_a.cart,t>0?` ${t}`:""]}):zp("span",{className:"relative inline-flex",children:[S4("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:Vw}),t>0?S4(Bq,{count:t,ref:c}):null]})})}function sM({asText:e,className:t}){return S4(L1,{href:"/account","aria-label":"Account",className:`mono-eyebrow-ctl inline-flex items-center opacity-80 transition-opacity hover:opacity-100 ${t??""}`,children:e?S4("span",{className:yp,children:_a.account}):zp("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:[S4("circle",{cx:"12",cy:"8",r:"3.4"}),S4("path",{d:"M5 20a7 7 0 0 1 14 0"})]})})}function qr({onClick:e,asText:t,className:a}){return S4("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?S4("span",{className:yp,children:_a.search}):S4(r6,{name:"search",size:18,strokeWidth:1.6,rounded:!0})})}var cM="Menu Item",lM=6,wp=4,rM="Menu",oM="Link a menu in the inspector \u2192";function iM(){return p("This column isn't linked to a menu, so the preview shows placeholder links. Pick a menu above.")}function nM(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 Oo1(){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 Zq}from"react/jsx-runtime";function Ee(){return Zq("span",{className:"opacity-50",children:p(cM)})}import{jsx as Dq}from"react/jsx-runtime";import{createContext as Oq,useContext as Cp,useEffect as Gq,useState as qq,useSyncExternalStore as Wq}from"react";var mM=[];function Uq(){let e=mM,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 Wr=Oq(null);function pM({children:e}){let[t]=qq(Uq);return Dq(Wr.Provider,{value:t,children:e})}var Ur=()=>Cp(Wr)!==null;function kp(e){let t=Cp(Wr);Gq(()=>{if(!(!t||!e))return t.offer(e)},[t,e])}var jq=()=>()=>{},hM=()=>mM;function uM(){let e=Cp(Wr),t=Wq(e?.subscribe??jq,e?.offered??hM,hM);return e?{search:t.includes("search"),region:t.includes("region"),account:t.includes("account"),theme:t.includes("theme")}:null}import{createContext as Kq,useCallback as Mp,useContext as $q,useEffect as Yq,useMemo as Xq,useState as Jq}from"react";import{jsx as eW}from"react/jsx-runtime";var Qq={isOpen:!1,open:()=>{},close:()=>{},toggle:()=>{}},dM=Kq(Qq);function Jo1({children:e,shortcut:t=!0}){let[a,s]=Jq(!1),c=Mp(()=>s(!0),[]),l=Mp(()=>s(!1),[]),r=Mp(()=>s(i=>!i),[]);Yq(()=>{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=Xq(()=>({isOpen:a,open:c,close:l,toggle:r}),[a,c,l,r]);return eW(dM.Provider,{value:o,children:e})}function Ve(){return $q(dM)}import{useEffect as Sp}from"react";function L4({active:e,onDismiss:t,focusRef:a,lockScroll:s=!0,scopeRef:c}){Sp(()=>{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]),Sp(()=>{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]),Sp(()=>{e&&a?.current?.focus()},[e,a])}import{createContext as tW,useCallback as xM,useContext as aW,useMemo as sW,useState as cW}from"react";var Ia=new Map,gM=e=>e??"";function Lp(e,t,a){a&&Ia.clear();let s=gM(t),c=Ia.get(s);if(!c){let l=J1.listMenus(e,t);Ia.set(s,l),l.catch(()=>{Ia.get(s)===l&&Ia.delete(s)}),c=l}return c}var jr=new Map;function vM(e,t){let a=gM(t),s=jr.get(a);if(!s){let c=Lp(e,t,!0);jr.set(a,c);let l=()=>{jr.get(a)===c&&jr.delete(a)};c.then(l,l),s=c}return s}function Ap(e,t=!1){return Lp(e,i2(),t)}function fM(e){return vM(e,i2())}function li1(e,t=!1){return Lp(e,null,t)}function ri1(e){return vM(e,null)}var Hp={ids:new Set,handles:new Set};function oi1(e){return{ids:new Set(e.map(t=>t.id).filter(Boolean)),handles:new Set(e.map(t=>t.handle).filter(Boolean))}}function bM({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 Kr(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 lW}from"react/jsx-runtime";var zM=tW({live:Hp,ready:!1,primeLive:()=>{},setLive:()=>{}});function mi1({children:e}){let[t,a]=cW({live:Hp,ready:!1}),s=xM(r=>a(o=>o.ready?o:{live:r,ready:!0}),[]),c=xM(r=>a({live:r,ready:!0}),[]),l=sW(()=>({...t,primeLive:s,setLive:c}),[t,s,c]);return lW(zM.Provider,{value:l,children:e})}var yM=()=>aW(zM);function Ne(e){let t=(e??"").trim();return t===""||t==="#"}import{jsx as C0,jsxs as A5}from"react/jsx-runtime";var nW=e=>/^https?:\/\//i.test(e),MM="flex list-none flex-col gap-2.5 text-[13px]",Fp="mb-4 font-mono text-[13px] uppercase tracking-[0.2em] text-fg-dim",wM="text-[12px] italic text-fg-dim/70",SM=(e,t)=>e&&t>0?"border-t border-line pt-2.5":"";function hW({showDividers:e}){return C0("ul",{className:MM,children:Array.from({length:wp},(t,a)=>C0("li",{className:`text-fg ${SM(e,a)}`,children:C0(Ee,{})},a))})}function LM({item:e,label:t,link:a,onNavigate:s}){return Ne(e.url)?C0("span",{className:t,children:M(e.label)}):nW(e.url)?C0("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:a,onClick:s,children:M(e.label)}):C0(L1,{href:e.url,className:a,onClick:s,children:M(e.label)})}function CM({items:e,showDividers:t}){return C0("ul",{className:MM,children:e.map((a,s)=>C0("li",{className:SM(t,s),children:C0(LM,{item:a,label:"text-fg",link:"text-fg transition-colors hover:text-accent"})},`${a.label}-${s}`))})}var mW="opacity-80 transition-opacity hover:opacity-100";function pW({items:e,label:t,editing:a}){let[s,c]=kM(!1),l=iW(null),r=uM(),{open:o}=Ve(),i=t||"Menu",n=rW(()=>c(!1),[]);L4({active:s,onDismiss:n,scopeRef:l});let h=(u,d,v)=>e===null?Array.from({length:wp},(g,b)=>C0("li",{className:d,children:C0(Ee,{})},b)):e.map((g,b)=>C0("li",{className:d,children:C0(LM,{item:g,label:u,link:`${u} ${mW}`,onNavigate:v})},`${g.label}-${b}`)),m=r&&(r.search||r.region)?r:null;return A5("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?A5("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?A5("div",{className:"mt-auto flex flex-col gap-3.5 border-t border-line bg-surface p-5",children:[m.search?A5("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(r6,{name:"search",size:18,strokeWidth:1.6,rounded:!0}),_a.search]}):null,m.region?A5("div",{className:"flex items-center justify-between",children:[C0("span",{className:"mono-eyebrow text-fg-dim",children:"Region"}),C0(S8,{})]}):null]}):null]}):null]})}function Ra({menu:e,heading:t,accordionMobile:a=!1,showDividers:s=!1,editing:c=!1,layout:l="column"}){let{live:r,ready:o}=yM(),i=bM({id:e?.id,handle:e?.handle,editing:c,ready:o,live:r}),n=i?[]:e?.items??[],h=t||e?.name||"",[m,u]=kM(!1);return oW(()=>{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(pW,{items:i?null:n,label:h,editing:c}):i?A5("div",{className:"min-w-0",children:[C0("h4",{className:Fp,children:t?R0(t):p(rM)}),C0(hW,{showDividers:s}),C0("p",{className:`mt-3 ${wM}`,children:p(oM)})]}):n.length===0?A5("div",{className:"min-w-0",children:[h?C0("h4",{className:Fp,children:R0(h)}):null,c?C0("p",{className:wM,children:p("This menu has no links yet \u2014 add them in {place}.",{place:p("Storefront \u2192 Menus")})}):null]}):a&&m?A5("details",{className:"min-w-0 border-b border-line",children:[A5("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:[R0(h),C0("span",{"aria-hidden":!0,children:"\uFF0B"})]}),C0("div",{className:"pb-3",children:C0(CM,{items:n,showDividers:s})})]}):A5("div",{className:"min-w-0",children:[h?C0("h4",{className:Fp,children:R0(h)}):null,C0(CM,{items:n,showDividers:s})]})}import{createContext as yW,useCallback as O3,useContext as wW,useEffect as CW,useMemo as kW,useRef as jM,useState as Re}from"react";function Ba(e){return typeof e=="number"?String(e):""}function AM(e){let t=Ba(e);return t&&`${t} LUG`}function Tp(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=Tp(a);s!==null&&t.add(s)}return[...t].sort((a,s)=>a-s)}function uW(e){return e.length===0?null:{min:Math.min(...e),max:Math.max(...e)}}function $r(e){let t=uW(e);return t?mk(t.min,t.max):null}function FM(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 TM=5,VM=.2;function _e(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 Pp(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 NM(e){if(!e)return null;let t=_e(e.pcd||e.boltPattern);if(t.holes===null||t.circles.length===0)return null;let a=t.circles[0],s=Pp(e.etRange),c=s?[s[0]-TM,s[1]+TM]:null;return{holes:t.holes,circle:a,centreBore:typeof e.centreBore=="number"&&e.centreBore>0?e.centreBore:null,etRange:c}}function dW(e,t){return Math.abs(e-t)<=VM}function _M(e,t,a){let s=_e(e);return(s.holes??t)!==a.holes?!1:s.circles.some(l=>dW(l,a.circle))}function IM(e,t){return t.centreBore===null?!0:e+VM>=t.centreBore}function gW(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=>_M(s,e.lugs,t))?t.etRange!==null&&e.etRange!==null&&!gW(e.etRange,t.etRange)?{key:"et",wheel:Yr(e.etRange),vehicle:Yr(t.etRange)}:e.centreBores.length>0&&!e.centreBores.some(s=>IM(s,t))?{key:"bore",wheel:`${e.centreBores.join(" / ")} mm`,vehicle:`${t.centreBore} mm`}:null:{key:"pcd",wheel:e.pcds.join(" / "),vehicle:a}}function RM(e){return{pcds:e.spec?.pcds??[],lugs:e.spec?.lugs??null,etRange:Pp(e.spec?.etRange),centreBores:e.spec?.centreBores??[]}}function Xr(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 Jr(e,t){let a=L8(e,t);return a===null||a.key!=="et"?a:L8(e,{...t,etRange:null})}function Ep(e,t){return L8(RM(e),t)}function BM(e,t){return L8(Xr(e),t)}function vW(e,t){return Jr(Xr(e),t)===null}function ZM(e,t){return t?e.filter(a=>vW(a,t)):[...e]}function fW(e,t){return Jr(RM(e),t)===null}function Qr(e,t){return t?e.filter(a=>fW(a,t)):e}var PM=1;function bW(e,t){let a=e.spec?.pcds??[],s=e.spec?.centreBores??[],c=Pp(e.spec?.etRange);if(!t)return{pcds:a,etRange:c,centreBores:s};let l=e.spec?.lugs??null,r=a.filter(i=>_M(i,l,t)),o=s.filter(i=>IM(i,t));return{pcds:r.length>0?r:a,etRange:c,centreBores:o.length>0?o:s}}function Yr(e){return Pr(e[0],e[1])}function EM(e){let t=e.slice(0,PM).join(" / "),a=e.length-PM;return a>0?`${t} +${a}`:t}var DM="\xB7";function eo(e){return[{fieldKey:"diameter",text:$r(e.sizes)},{fieldKey:"holes",text:AM(e.spec?.lugs)}].filter(t=>!!t.text)}function OM(e,t){let{pcds:a,etRange:s,centreBores:c}=bW(e,t),l=[];return a.length>0&&l.push({fieldKey:"pcd",text:`PCD ${EM(a)}`}),s!==null&&l.push({fieldKey:"et",text:Yr(s)}),c.length>0&&l.push({fieldKey:"center_bore",text:`C/B ${EM(c)} mm`}),l}function Ie(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?Yr(e.etRange):null}]:[]}function GM(e){return Ie(e).map(t=>t.value).filter(t=>t!==null).join(" \xB7 ")}var Za={default:"Sort \xB7 Featured",new:"Newest","price-asc":"Price \xB7 Low","price-desc":"Price \xB7 High",name:"Name A\u2013Z"},to={process:null,size:null,lugs:null,finish:null,priceMin:null,priceMax:null,sort:"default"};function xW(e,t,a){return!(t.process&&e.process!==t.process||t.size&&!e.sizes.includes(t.size)||t.lugs!=null&&Tp(e)!==t.lugs||t.finish&&!e.finishes.some(s=>s.family===t.finish)||!xr(e.prices,a,t.priceMin,t.priceMax))}function zW(e,t,a){return[...e].sort((s,c)=>{switch(t){case"price-asc":return ge(s.prices,c.prices,a,"asc");case"price-desc":return ge(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 qM(e,t,a,s=null){let c=Qr(e,s);return zW(c.filter(l=>xW(l,t,a)),t.sort,a)}import{jsx as SW}from"react/jsx-runtime";var KM={fit:null,name:"",resolving:!1,unresolved:!1};function MW(e,t){return e.fit===t.fit&&e.name===t.name&&e.resolving===t.resolving&&e.unresolved===t.unresolved}var m4=()=>{},$M=yW({filters:to,setProcess:m4,setSize:m4,setLugs:m4,setFinish:m4,setPriceMin:m4,setPriceMax:m4,setSort:m4,clearAll:m4,reportCount:m4,total:0,reportLugs:m4,lugOptions:[],reportSizes:m4,sizeOptions:[],reportFinishes:m4,finishOptions:[],optionsReported:!1,scrollProcess:null,vehicle:KM,publishVehicle:m4}),ao="data-catalog-collection",WM=(e,t)=>e-t;function UM(e,t){return e.length===t.length&&e.every((a,s)=>a===t[s])}function Vp(e){let t=jM(new Map),[a,s]=Re([]),c=O3((l,r)=>{let o=t.current.get(l);if(o&&UM(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=>UM(h,n)?h:n)},[e]);return[a,c]}function YM({children:e}){let[t,a]=Re(to),s=O3(j=>a(N=>({...N,process:j})),[]),c=O3(j=>a(N=>({...N,size:j})),[]),l=O3(j=>a(N=>({...N,lugs:j})),[]),r=O3(j=>a(N=>({...N,finish:j})),[]),o=O3(j=>a(N=>({...N,priceMin:j})),[]),i=O3(j=>a(N=>({...N,priceMax:j})),[]),n=O3(j=>a(N=>({...N,sort:j})),[]),h=O3(()=>a(j=>({...to,sort:j.sort})),[]),[m,u]=Re(KM),d=O3(j=>{u(N=>MW(N,j)?N:j)},[]),v=jM(new Map),[g,b]=Re(0),f=O3((j,N)=>{if(v.current.get(j)===N)return;v.current.set(j,N);let W=0;for(let U of v.current.values())W+=U;b(W)},[]),[w,z]=Vp(WM),[k,S]=Vp(WM),[H,I]=Vp(qC),[P,D]=Re(!1),E=O3((j,N)=>{D(!0),z(j,N)},[z]),F=O3((j,N)=>{D(!0),S(j,N)},[S]),_=O3((j,N)=>{D(!0),I(j,N)},[I]),[Z,G]=Re(null);CW(()=>{let N=0,Q=()=>{N=0;let U=null,i1=document.querySelectorAll(`[${ao}]`);for(let y1 of i1){let K=y1.getBoundingClientRect();if(K.top<=140&&K.bottom>140){U=y1.getAttribute(ao)??null;break}}G(U)},W=()=>{N||(N=requestAnimationFrame(Q))};return Q(),window.addEventListener("scroll",W,{passive:!0}),window.addEventListener("resize",W),()=>{window.removeEventListener("scroll",W),window.removeEventListener("resize",W),N&&cancelAnimationFrame(N)}},[]);let V=kW(()=>({filters:t,setProcess:s,setSize:c,setLugs:l,setFinish:r,setPriceMin:o,setPriceMax:i,setSort:n,clearAll:h,reportCount:f,total:g,reportLugs:E,lugOptions:w,reportSizes:F,sizeOptions:k,reportFinishes:_,finishOptions:H,optionsReported:P,scrollProcess:Z,vehicle:m,publishVehicle:d}),[t,s,c,l,r,o,i,n,h,f,g,E,w,F,k,_,H,P,Z,m,d]);return SW($M.Provider,{value:V,children:e})}function so(){return wW($M)}import{useCallback as YW,useEffect as io,useRef as vS,useState as Oa}from"react";function XM({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 G3={popup:"shop_popup",subscribeSection:"subscribe_section",subscribeBlogsSection:"subscribe_blogs_section",footerSignup:"footer_signup",stockAlertOptIn:"stock_alert_optin"};var LW={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:900};function JM(e){let t={};for(let a of Nl){let s=e[a];if(!s)continue;let c=V9({role:s},LW);c.fontFamily&&(t[km[a].font]=c.fontFamily),c.fontSize&&(t[km[a].size]=c.fontSize)}return t}import{useEffect as FW}from"react";import{useEffect as tS,useState as A8}from"react";var Np=new Set,_p=new Set,Ip=new Set;function QM(e){return Np.add(e),()=>Np.delete(e)}function Ji1(){Np.forEach(e=>e())}function eS(e){return _p.add(e),()=>_p.delete(e)}function Qi1(){_p.forEach(e=>e())}function co(e){return Ip.add(e),()=>Ip.delete(e)}function en1(){Ip.forEach(e=>e())}import{jsx as Be,jsxs as HW}from"react/jsx-runtime";function H5(e,t){let[a,s]=A8(void 0),[c,l]=A8(0);return tS(()=>{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]),tS(()=>{if(t===void 0)return co(()=>l(r=>r+1))},[t]),t!==void 0?t:a}var AW="Something went wrong \u2014 your submission wasn't sent. Please try again.";function Ze(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function v7({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(AW)}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 De({value:e,onChange:t}){return Be("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:a=>t(a.target.value)})}function f7({field:e,value:t,onChange:a,className:s,rows:c=5,placeholder:l}){let r=l??e.placeholder;return e.type==="textarea"?Be("textarea",{required:e.required,rows:c,value:t,placeholder:r,onChange:o=>a(o.target.value),className:s}):e.type==="select"?HW("select",{required:e.required,value:t,onChange:o=>a(o.target.value),className:s,children:[Be("option",{value:"",children:r||"Select\u2026"}),e.options.map(o=>Be("option",{value:o,children:o},o))]}):e.type==="checkbox"?Be("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:o=>a(o.target.checked?"true":""),className:s}):Be("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 Da}from"react/jsx-runtime";var aS="font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim";function A4({size:e,children:t}){return e==="tall"?Da("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:Da("p",{className:aS,children:t})}):Da("section",{className:"relative z-[2] border-t border-line bg-surface",children:Da("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:Da("p",{className:aS,children:t})})})}import{jsx as a3,jsxs as lo}from"react/jsx-runtime";var sS="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 TW({field:e,value:t,onChange:a}){let s={field:e,value:t,onChange:a};return e.type==="checkbox"?lo("label",{className:"flex items-start gap-3",children:[a3(f7,{...s,className:"mt-1 size-4 accent-accent"}),lo("span",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.16em] text-fg",children:[e.label,e.required?a3("span",{className:"text-accent",children:" *"}):null]})]}):a3(Z2,{label:e.label,required:e.required,children:a3(f7,{...s,className:e.type==="textarea"?sS+" resize-y":sS})})}function Rp({formSlug:e,heading:t,intro:a,submitText:s,finePrint:c,form:l,editing:r=!1}={}){let o=H5(e,l);if(o===void 0)return a3(A4,{size:"short",children:p("Loading form\u2026")});if(o===null)return a3(A4,{size:"short",children:r?p("Choose a form in the inspector, under Form."):"This form is unavailable."});let i=(t??"").trim()||o.title;return a3("section",{className:"relative z-[2] border-t border-line bg-surface",children:lo("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&&a3("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()&&a3("p",{className:"mb-11 max-w-[640px] font-display text-[16px] leading-[1.6] text-fg-dim",children:a}),a3(Bp,{form:o,formSlug:e,submitText:s,finePrint:c,editing:r})]})})}function Bp({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}=v7({form:e,formSlug:t,editing:c});FW(()=>{m&&l?.()},[m]);let v=(a??"").trim()||e.submitButtonText?.trim()||"Submit";return m?a3("p",{role:"status",className:"max-w-[560px] font-serif text-[19px] italic leading-[1.6] text-fg-dim",children:Ze(e)}):lo("form",{className:"flex max-w-[720px] flex-col gap-5",onSubmit:d,children:[e.fields.map(g=>a3(TW,{field:g,value:r(g.key),onChange:b=>o(g.key,b)},g.key)),a3(De,{value:i,onChange:n}),u&&a3("p",{role:"alert",className:"font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:u}),a3("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()&&a3("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:e.consentText}),(s??"").trim()&&a3("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:s})]})}import{jsx as Zp,jsxs as EW}from"react/jsx-runtime";import{jsx as PW}from"react/jsx-runtime";function cS(){return PW("span",{className:"block h-px w-[30px] bg-current"})}function VW(e,t){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var NW="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",_W="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 V1({text:e,look:t="plain",size:a=13,scaled:s=!0,className:c="",classNameAfter:l=""}){if(t==="line")return EW("div",{className:[c,_W,l].filter(Boolean).join(" "),children:[Zp(cS,{}),Zp("span",{children:M(e)})]});let r=t==="filled"?NW:VW(a,s);return Zp("span",{className:[c,r,l].filter(Boolean).join(" "),children:M(e)})}import{useCallback as lS,useRef as IW,useState as rS}from"react";function ro({source:e,dryRun:t=!1}){let[a,s]=rS("idle"),[c,l]=rS(null),r=IW(!1),o=lS(()=>{r.current=!1,l(null),s("idle")},[]),i=lS(async n=>{if(!r.current){if(!be(n.email)){s("invalid");return}r.current=!0,l(null),s("sending");try{t||await v0.createNewsletterSubscription(XM(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 Oe(){return"/edit"}import{createContext as DW,useCallback as oo,useContext as OW,useEffect as GW,useMemo as qW,useRef as WW,useState as Gp}from"react";var oS="/edit";function iS(e){return e===oS||e.startsWith(`${oS}/`)}var hS="storefront-subscribe-seen",mS="storefront-popup-closed-at",RW=1440*60*1e3,BW=["/checkout","/cart"];function nS(e){let t=e.split(/[?#]/)[0]||"/",a=t.startsWith("/")?t:`/${t}`;return a.length>1?a.replace(/\/+$/,"")||"/":a}function Dp(e,t,a){let s=nS(e);return BW.some(c=>s===c||s.startsWith(`${c}/`))?!1:t==="all"?!0:a.some(c=>nS(c)===s)}function ZW(e,t,a,s){if(e==="never")return!1;if(a.session.getItem(hS)==="1")return!0;if(e==="visit")return!1;let c=Number(a.local.getItem(mS));return!Number.isFinite(c)||c<=0?!1:s-c<t*RW}function Op(e,t){e.session.setItem(hS,"1"),e.local.setItem(mS,String(t))}function pS(e,t){return e==="exit"&&!t?"delay":e}function uS(e,t,a){let s=a-t;return s<=0?100:Math.min(100,Math.max(0,e/s*100))}function dS(e,t,a){return!e.autoOpen||e.inEditor||!Dp(e.path,e.showOn,e.showOnPages)||e.hideAfter!=="never"&&!gC(t.session)?!1:!ZW(e.hideAfter,e.hideDays,t,a)}import{jsx as $W}from"react/jsx-runtime";var gS=DW(null),qp={session:vC,local:t3};function UW(){try{return window.matchMedia("(hover: hover) and (pointer: fine)").matches}catch{return!1}}var jW=15,KW=[];function In1({children:e,disableAutoTrigger:t,autoOpen:a=!1,autoOpenDelaySec:s=jW,trigger:c="delay",scrollPercent:l=50,showOn:r="all",showOnPages:o=KW,hideAfter:i="visit",hideDays:n=7}){let[h,m]=Gp(!1),[u,d]=Gp("chosen"),[v,g]=Gp({}),b=Oe()??"/",f=iS(b),w=Dp(b,r,o),z=WW(!1),k=oo(D=>{g(D??{}),d("newsletter"),m(!0)},[]),S=oo(()=>{z.current=!0,g({}),d("chosen"),m(!0)},[]),H=oo(()=>Op(qp,Date.now()),[]),I=oo(()=>{m(!1),Op(qp,Date.now())},[]);GW(()=>{if(t||z.current||!dS({autoOpen:a,inEditor:f,path:b,showOn:r,showOnPages:o,hideAfter:i,hideDays:n},qp,Date.now()))return;let E=pS(c,UW());if(E==="scroll"){let _=()=>{uS(window.scrollY,window.innerHeight,document.documentElement.scrollHeight)>=l&&(window.removeEventListener("scroll",_),S())};return window.addEventListener("scroll",_,{passive:!0}),()=>window.removeEventListener("scroll",_)}if(E==="exit"){let _=Z=>{Z.relatedTarget===null&&Z.clientY<=0&&(document.removeEventListener("mouseout",_),S())};return document.addEventListener("mouseout",_),()=>document.removeEventListener("mouseout",_)}let F=window.setTimeout(S,Math.max(0,s)*1e3);return()=>window.clearTimeout(F)},[t,a,f,w,c,s,l,i,n,S]);let P=qW(()=>({isOpen:h,mode:u,open:k,close:I,markSent:H,prefillEmail:v.email??"",signupSource:v.source??G3.popup}),[h,u,k,I,H,v]);return $W(gS.Provider,{value:P,children:e})}function Wp(){let e=OW(gS);if(!e)throw new Error("useSubscribePopup() must be called inside <SubscribePopupProvider>. Mount the provider in app/layout.tsx.");return e}import{Fragment as QW,jsx as a0,jsxs as C2}from"react/jsx-runtime";var XW=50,no="font-[family-name:var(--pp-fieldlabel-font,var(--font-mono))] text-[length:var(--pp-fieldlabel-size,12px)]";function JW(e){let t=I9({sectionAccent:f5(e.sectionAccent)}),a=yl(e.sectionCorners,e.sectionCornerSides);return{className:t?.className??"",style:{...t?.style??{},...a??{},...JM(e.textStyles)}}}function fS({content:e,open:t=!0,onClose:a,onSent:s,inline:c=!1,prefillEmail:l="",source:r=G3.popup,mode:o="chosen",form:i}){let n=o==="chosen"?e.formSlug:"",h=H5(n||void 0,c?void 0:i??null),m=!!n&&!!h,[u,d]=Oa(""),[v,g]=Oa(""),[b,f]=Oa(()=>new Set(e.interests.slice(0,1))),[w,z]=Oa(e.frequencies[0]??""),{status:k,error:S,submit:H,reset:I}=ro({source:r,dryRun:c}),P=k==="sending",D=k==="invalid"?e.emailInvalidText:k==="error"?S instanceof W4?S.message:e.submitErrorText:null,[E,F]=Oa(""),_=vS(null),Z=vS(null);io(()=>{t&&I()},[t,I]),io(()=>{k==="sent"&&!c&&s?.()},[k]);let G=YW(()=>a?.(),[a]);if(L4({active:!c&&t,onDismiss:G}),io(()=>{if(c||!t)return;let $=window.setTimeout(()=>Z.current?.focus(),XW);return()=>window.clearTimeout($)},[c,t]),io(()=>{!t||!l||g(l)},[t,l]),!c&&!t)return null;function V($){f(u1=>{let x1=new Set(u1);return x1.has($)?x1.delete($):x1.add($),x1})}function j($){$.target===_.current&&a?.()}function N($){$.preventDefault();let u1=v.trim().toLowerCase();F(u1),H({email:u1,firstName:u,interests:[...b],frequency:w})}let Q=e.successBody.replace(/\{email\}/g,E).replace(/\{issue\}/g,e.issueNumber),W=JW(e),U=e.formSide==="left",i1=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:[a0("span",{className:"block h-1.5 w-1.5 rounded-full bg-accent"}),M(e.finePrint)]}),!c&&a0("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:M(e.dismissText)})]}),y1=C2(QW,{children:[a0("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:a0(V1,{text:e.formLabel,scaled:!1,className:"mb-[18px]"})}),a0("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)}),a0("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:M(e.formIntro,!0)})]}),K="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 ${K}`,children:[y1,a0("div",{className:"mt-8",children:a0(Bp,{form:h,formSlug:n,editing:c,onSent:s})}),a0("div",{className:"mt-auto pt-7",children:i1})]}):k!=="sent"?c1=C2("form",{onSubmit:N,noValidate:!0,className:`relative flex min-h-[560px] flex-col max-[880px]:min-h-0 ${K}`,children:[y1,C2("div",{className:"mt-8 flex flex-col gap-[18px]",children:[a0(Z2,{label:M(e.firstNameLabel),required:!0,labelFace:no,children:a0("input",{type:"text",value:u,onChange:$=>d($.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"})}),a0(Z2,{label:M(e.emailLabel),required:!0,labelFace:no,children:a0("input",{type:"email",value:v,onChange:$=>g($.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:[a0(w8,{labelFace:no,children:M(e.interestsLabel)}),a0("div",{className:"flex flex-wrap gap-2",children:e.interests.map(($,u1)=>{let x1=b.has($);return a0("button",{type:"button",onClick:()=>V($),"aria-pressed":x1,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",x1?"border-accent bg-accent text-bg":"border-line text-fg-dim hover:text-fg"].join(" "),children:$},`${$}-${u1}`)})})]}),e.frequencies.length>0&&C2("div",{className:"mt-1.5 flex flex-col gap-2.5",children:[a0(w8,{labelFace:no,children:M(e.frequencyLabel)}),a0("div",{className:"flex border border-line",children:e.frequencies.map(($,u1)=>{let x1=w===$;return a0("button",{type:"button",onClick:()=>z($),"aria-pressed":x1,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":"",x1?"bg-accent text-bg":"text-fg-dim hover:text-fg"].join(" "),children:$},`${$}-${u1}`)})})]})]}),C2("div",{className:"mt-auto flex flex-col gap-3.5 pt-7",children:[D&&a0("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:D}),C2("button",{type:"submit",disabled:P,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:[a0("span",{children:e.submitText}),a0("span",{className:"transition-transform group-hover:translate-x-[4px]",children:P?"\u2026":"\u2192"})]}),i1]})]}):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:[a0("div",{className:"flex h-16 w-16 items-center justify-center border border-accent font-display text-[32px] text-accent",children:"\u2713"}),a0("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)}),a0("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:M(Q,!0)}),!c&&a0("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:M(e.keepBrowsingText)})]});let b1=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 ${W.className}`.trim(),style:{...W.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&&a0("button",{ref:Z,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",U?"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",U?"order-2 border-l max-[880px]:order-none":"border-r",e.valuePanelOnPhone?"":"max-[880px]:hidden"].join(" "),style:{background:"var(--subscribe-panel-bg)"},children:[a0("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:[a0("div",{className:"absolute inset-[60px] rounded-full border",style:{borderColor:"color-mix(in oklab, var(--accent) 18%, transparent)"}}),a0("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",U&&!c?"pr-[52px]":""].join(" "),children:[a0("span",{children:M(e.metaLabel)}),(e.issueLabel||e.issueNumber)&&C2("span",{children:[M(e.issueLabel)," ",a0("strong",{className:"font-normal text-accent",children:e.issueNumber})]})]}),C2("div",{className:"relative z-[2] flex flex-col gap-[18px] py-8",children:[a0("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:a0(V1,{text:e.kicker,size:12,scaled:!1})}),a0("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)}),a0("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:M(e.deck,!0)})]}),e.stats.length>0&&a0("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(($,u1)=>C2("div",{children:[a0("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:M($.label)}),a0("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:M($.value)})]},`${$.label}-${u1}`))})]}),c1]})]});return c?a0("div",{className:"flex w-full justify-center p-6","data-subscribe-preview":!0,children:b1}):C2("div",{ref:_,onClick:j,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:[b1,a0("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 Xp(){let{chromePlaceholder:e,themeFromDocument:t}=I3(),{chat:a,selected:s,select:c}=xw();return e||t||!a.enabled?null:gU("div",{className:"sf-preview-chat-pick","data-selected":s||void 0,onClick:l=>{l.stopPropagation(),c()},children:[Yp("style",{children:dU}),Yp(kS,{preview:!0,children:Yp($p,{title:a.title,subtitle:a.subtitle,greeting:a.greeting})})]})}import{lazy as vU,Suspense as fU}from"react";import{jsx as SS}from"react/jsx-runtime";function Jp(e,t={}){let a=vU(async()=>{let l=await e();return{default:"default"in l?l.default:l}}),s=t.loading?t.loading():null;function c(l){return SS(fU,{fallback:s,children:SS(a,{...l})})}return c}import{useEffect as WU,useRef as UU}from"react";import{jsx as Qp,jsxs as bU}from"react/jsx-runtime";import{useEffect as xU,useState as zU}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]=zU(!1),d=a||"";xU(()=>{u(!1)},[d]);let v=Wx(d),g=!d||m;return bU("div",{className:`relative h-full w-full overflow-hidden ${t??""}`,children:[Qp("div",{className:"absolute inset-0 flex items-center justify-center",style:n?{background:"var(--site-surface)"}:void 0,children:g?e:null}),d&&(v?Qp("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)}):Qp(ol,{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 AU}from"react";var yU=25.4,qa=400,mo=152,wU=58,LS=mo*Math.cos(wU*Math.PI/180),CU=14,kU=qa/2,MU={sectionWidth:225,aspectRatio:60,rimDiameter:17};function HS(e){let t=n4(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:MU}function FS(e){let t=e.rimDiameter*yU/2,a=t+e.sectionWidth*e.aspectRatio/100,s=mo*(e.sectionWidth/a),c=t/a;return{cy:kU,rx:LS,ry:mo,cxf:qa/2-s/2-CU,dx:s,rimRx:LS*c,rimRy:mo*c}}var y0=e=>e.toFixed(1);function po(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${y0(c)} ${y0(l)} A${y0(e.rx)} ${y0(e.ry)} 0 0 ${a} ${y0(c)} ${y0(r)}`}function eu(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${y0(s)} ${y0(l)} L${y0(c)} ${y0(l)} A${y0(e.rx)} ${y0(e.ry)} 0 0 1 ${y0(c)} ${y0(r)} L${y0(s)} ${y0(r)} A${y0(e.rx)} ${y0(e.ry)} 0 0 0 ${y0(s)} ${y0(l)} Z`}function ho(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 TS(e,t,a,s,c){let[l,r]=ho(e,t,s),[o,i]=ho(e,t,c),[n,h]=ho(e,a,c),[m,u]=ho(e,a,s);return`M${y0(l)} ${y0(r)} A${y0(e.rx)} ${y0(e.ry)} 0 0 1 ${y0(o)} ${y0(i)} L${y0(n)} ${y0(h)} A${y0(e.rx)} ${y0(e.ry)} 0 0 0 ${y0(m)} ${y0(u)} L${y0(l)} ${y0(r)} Z`}var AS=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],SU={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}}]},LU=[["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 PS(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return AS;for(let[a,s]of LU)if(t.includes(` ${a} `))return SU[s];return AS}var uo="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{Fragment as Wa,jsx as g0,jsxs as T5}from"react/jsx-runtime";var p4={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},HU=[.8,.52,.24],ES=.4,VS=.88,NS=.3,_S=5,IS=.3,RS=.84,FU=7,L0=e=>Math.round(e*10)/10;function tu({size:e,type:t,className:a}){let s=AU().replace(/[^a-zA-Z0-9]/g,""),c={tread:`${s}-tread`,wall:`${s}-wall`,rim:`${s}-rim`,shadow:`${s}-shadow`,crown:`${s}-crown`},l=FS(HS(e)),r=eu(l,0,1),o=e?`${e} tyre illustration`:"Tyre illustration";return T5("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${qa} ${qa}`,role:"img","aria-label":o,fill:"none",className:a??"block h-full w-full",children:[g0("title",{children:o}),T5("defs",{children:[g0(PU,{id:c}),g0("clipPath",{id:c.crown,children:g0("path",{d:r})})]}),g0("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})`}),g0(EU,{g:l,id:c}),g0(VU,{g:l,id:c}),g0("path",{d:r,fill:`url(#${c.tread})`}),g0("g",{clipPath:`url(#${c.crown})`,children:PS(t).map(i=>g0(TU,{g:l,column:i},i.f[0]))}),g0("path",{d:po(l,0,0,!0),stroke:"currentColor",strokeOpacity:p4.shoulder,strokeWidth:1.2}),g0("path",{d:po(l,1,1),stroke:"currentColor",strokeOpacity:p4.silhouette,strokeWidth:1.4})]})}function TU({g:e,column:t}){let[a,s]=t.f;if(!t.blocks)return T5(Wa,{children:[g0("path",{d:eu(e,a,s),fill:"currentColor",fillOpacity:p4.rib}),g0("path",{d:po(e,a,1),stroke:"currentColor",strokeOpacity:p4.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 g0(Wa,{children:i.map(([n,h])=>g0("path",{d:TS(e,a,s,n,h),fill:"currentColor",fillOpacity:p4.rib,stroke:"currentColor",strokeOpacity:p4.grooveWall,strokeWidth:1},n))})}function PU({id:e}){return T5(Wa,{children:[T5("linearGradient",{id:e.tread,x1:"0",y1:"0",x2:"1",y2:"0",children:[g0("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.07}),g0("stop",{offset:"0.14",stopColor:"currentColor",stopOpacity:.24}),g0("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.18}),g0("stop",{offset:"0.84",stopColor:"currentColor",stopOpacity:.1}),g0("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.05})]}),T5("linearGradient",{id:e.wall,x1:"0.15",y1:"0",x2:"0.9",y2:"1",children:[g0("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.28}),g0("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.17}),g0("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.08})]}),T5("linearGradient",{id:e.rim,x1:"0.1",y1:"0",x2:"0.9",y2:"1",children:[g0("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.46}),g0("stop",{offset:"0.5",stopColor:"currentColor",stopOpacity:.26}),g0("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.12})]}),T5("radialGradient",{id:e.shadow,children:[g0("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),g0("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function EU({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 T5(Wa,{children:[g0("ellipse",{cx:L0(e.cxf),cy:L0(e.cy),rx:L0(e.rx),ry:L0(e.ry),fill:`url(#${t.wall})`}),HU.map((l,r)=>{let o=s(l);return g0("ellipse",{cx:L0(e.cxf),cy:L0(e.cy),rx:L0(e.rx*o),ry:L0(e.ry*o),stroke:"currentColor",strokeOpacity:p4.relief[r],strokeWidth:1},l)}),g0("ellipse",{cx:L0(e.cxf),cy:L0(e.cy),rx:L0(e.rx*s(ES)),ry:L0(e.ry*s(ES)),stroke:"currentColor",strokeOpacity:p4.lettering,strokeWidth:L0(c)})]})}function VU({g:e,id:t}){let a=Array.from({length:_S},(s,c)=>{let l=(c*(360/_S)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*IS*Math.cos(l),y1:e.cy+e.rimRy*IS*Math.sin(l),x2:e.cxf+e.rimRx*RS*Math.cos(l),y2:e.cy+e.rimRy*RS*Math.sin(l)}});return T5(Wa,{children:[g0("ellipse",{cx:L0(e.cxf),cy:L0(e.cy),rx:L0(e.rimRx),ry:L0(e.rimRy),fill:`url(#${t.rim})`}),g0("ellipse",{cx:L0(e.cxf),cy:L0(e.cy),rx:L0(e.rimRx*VS),ry:L0(e.rimRy*VS),fill:"currentColor",fillOpacity:p4.dishFill,stroke:"currentColor",strokeOpacity:p4.dishEdge,strokeWidth:1}),a.map((s,c)=>g0("line",{x1:L0(s.x1),y1:L0(s.y1),x2:L0(s.x2),y2:L0(s.y2),stroke:"currentColor",strokeOpacity:p4.spoke,strokeWidth:FU,strokeLinecap:"round"},c)),g0("ellipse",{cx:L0(e.cxf),cy:L0(e.cy),rx:L0(e.rimRx*NS),ry:L0(e.rimRy*NS),fill:"currentColor",fillOpacity:p4.hubFill,stroke:"currentColor",strokeOpacity:p4.hubEdge,strokeWidth:1})]})}import{jsx as au}from"react/jsx-runtime";function p6({image:e,size:t,type:a,sizes:s,priority:c=!1,className:l="aspect-square",showBackground:r=!0}){return au("div",{className:`text-fg ${l}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:au(k0,{label:t||"Tyre",src:s4(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:s,priority:c,showBackground:r,fallback:au(tu,{size:t,type:a,className:"block h-full w-full p-3"})})})}function vo(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 NU(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 go(e,t=""){return{vehicle:{...e,region:t},status:"unknown",oemSizes:[],variants:[]}}function _U(e,t){if(typeof t!="object"||t===null)return go(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 go(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?go(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 BS(e,t){try{let a=await o7(NU(e,t),{baseUrl:LC});return _U(t,a)}catch{return go(t)}}function ZS(e){if(!e)return[];let t=[];for(let a of[...e.frontTyres,...e.rearTyres]){let s=n4(a);if(!s)continue;let c=U4(s);t.includes(c)||t.push(c)}return t}function DS(e,t){if(t.length===0)return null;for(let a of e){let s=n4(a);if(!s)continue;let c=U4(s);if(t.includes(c))return c}return null}function Ua(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 IU="/tyres";function Ge(e){return e?`${IU}/${e}`:null}function qe(e){let t=e.lastIndexOf(" ");return t===-1?{lead:"",accent:e}:{lead:e.slice(0,t+1),accent:e.slice(t+1)}}function su(e,t){return TC({partNumber:e.sku,prices:e.prices},t)}var RU="Tyre";function fo(e,t,a,s){return{id:`${e.slug}|${t.sku}|${a.unit}|${a.spares>0?"spare":"no-spare"}`,slug:e.slug,name:qe(e.name),process:e.brand||RU,positionNo:"01",config:[{label:t.size},{label:fr(a)}],finishName:"",size:t.size,components:su(t,a),qty:s,href:Ge(e.slug)??void 0,kind:"tyre",sku:t.sku,pack:a}}function bo(e){return e.kind==="tyre"}function OS(e,t){let a=e.prices?.[t];return typeof a!="number"||!Number.isFinite(a)||a<=0?!1:e.inStock}import{jsx as ja}from"react/jsx-runtime";function BU(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function cu({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??OC;return ja("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:bo(e)?ja(p6,{image:a?.coverImage,size:e.size,type:BU(a),sizes:"96px",className:"h-full w-full"}):l?.src?ja(_3,{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?ja("div",{className:"relative z-[2] block w-[72%]",style:{color:n,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:ja(C8,{spokes:r,mesh:o,className:"block w-full"})}):null})}import{jsx as lu,jsxs as DU}from"react/jsx-runtime";function GS(e,t){return Math.min(Rm,Math.max(1,e+t))}var qS="disabled:cursor-not-allowed disabled:opacity-40",ZU={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 ${qS}`,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 ${qS}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function Ka({value:e,onChange:t,size:a}){let s=ZU[a];return DU("div",{className:s.frame,children:[lu("button",{type:"button",onClick:()=>t(GS(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:s.button,children:"\u2212"}),lu("span",{className:s.value,children:e}),lu("button",{type:"button",onClick:()=>t(GS(e,1)),disabled:e>=Rm,"aria-label":"Increase quantity",className:s.button,children:"+"})]})}import{useEffect as OU,useState as GU}from"react";var qU=new Map;function WS(e){let[t,a]=GU(null);return OU(()=>{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??qU}import{Fragment as xo,jsx as N1,jsxs as p0}from"react/jsx-runtime";function $a({content:e=Vl}){let{isOpen:t,preview:a,close:s,items:c,remove:l,setQty:r,totals:o,coupon:i,bundles:n}=i4(),h=new Set(c.flatMap(z=>(z.components??[]).map(k=>k.partNumber))),m=new Set(o.appliedBundles.map(z=>z.slug)),u=n.filter(z=>!m.has(z.slug)).filter(z=>z.components.some(k=>h.has(k.partNumber))).slice(0,2),{formatMoney:d,activeCountry:v}=d0(),g=v?.name??e.shipsToFallback,b=1+(e.leadTimeValue?1:0)+(g?1:0),f=UU(null),w=WS(c.some(bo));return L4({active:t,onDismiss:s,lockScroll:!a}),WU(()=>{t&&f.current?.focus({preventScroll:!0})},[t]),t?p0(xo,{children:[N1("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"}),p0("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:[N1("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
|
-
`}),p0("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:[p0("div",{className:"flex items-center justify-between",children:[p0("span",{className:"flex items-center gap-2.5 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?N1("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]}),N1("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"})]}),p0("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",N1("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),N1("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:Ty(e,c.length)})]}),p0("div",{className:`grid flex-shrink-0 ${jU[b-1]} gap-px border-b border-line bg-line`,children:[N1(ru,{label:"Items",value:p0(xo,{children:[N1("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?N1(ru,{label:"Lead time",value:e.leadTimeValue}):null,g?N1(ru,{label:"Ships to",value:g}):null]}),p0("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[c.length===0?N1(JU,{content:e}):c.map(z=>N1(KU,{line:z,tyre:w.get(z.slug),onRemove:()=>l(z.id),onQtyChange:k=>r(z.id,k)},z.id)),u.length>0&&p0("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:[p0("div",{className:"mb-3.5 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[N1("span",{children:"You may also need"}),N1("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),N1("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:u.map(z=>N1($U,{href:`/bundles/${z.slug}`,title:z.name,sub:YU(z,o.currency,d)},z.slug))})]}),N1("section",{className:"border-b border-line px-8 py-[22px] max-[640px]:px-[22px]",children:N1(UC,{})}),e.promises.length>0&&N1("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=>N1(XU,{children:z},z))})]}),p0("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-[22px]",children:[N1(x7,{label:`Subtotal \xB7 ${o.sets} set${o.sets===1?"":"s"}`,value:d(o.subtotal,o.currency)}),o.appliedBundles.map(z=>N1(x7,{label:`Bundle \xB7 ${z.name}${z.multiples>1?` \xD7${z.multiples}`:""}`,value:p0("span",{style:{color:"var(--green)"},children:["\u2212 ",d(z.discount,o.currency)]})},z.slug)),o.discount>0&&i?.valid&&N1(x7,{label:`Coupon \xB7 ${i.code}`,value:p0("span",{style:{color:"var(--green)"},children:["\u2212 ",d(o.discount,o.currency)]})}),i?.deferred&&N1(x7,{label:`Coupon \xB7 ${i.code}`,value:HC}),i?.valid&&i.effects?.gift&&N1(x7,{label:`Free gift \xB7 ${i.effects.gift.partNumber}${i.effects.gift.quantity>1?` \xD7${i.effects.gift.quantity}`:""}`,value:N1("span",{style:{color:"var(--green)"},children:"Free"})}),N1(x7,{label:"Shipping",value:o.shippingStatus==="free"?N1("span",{style:{color:"var(--green)"},children:"Free"}):RC(o.shippingStatus)??d(o.shipping,o.currency)}),o.tax&&(o.tax.charged?N1(x7,{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?N1(x7,{label:o.tax.name,value:"Calculated at checkout"}):null),p0("div",{className:"mt-1.5 flex items-center justify-between border-t border-line pt-3.5 text-fg",children:[p0("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",N1("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),N1("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:o.repricing?"\u2026":d(o.grand,o.currency)})]})]}),p0("div",{className:"flex flex-shrink-0 flex-col gap-2.5 px-8 pb-[22px] pt-3.5 max-[640px]:px-[22px]",children:[p0(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",N1("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),N1("div",{className:"flex items-center justify-between px-1 py-1.5 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:N1(L1,{href:"/wheels",onClick:s,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})]})]}):null}var jU=["grid-cols-1","grid-cols-2","grid-cols-3"];function ru({label:e,value:t}){return p0("div",{className:"flex flex-col gap-[3px] bg-bg px-4 py-3.5",children:[N1("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),N1("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function KU({line:e,tyre:t,onRemove:a,onQtyChange:s}){let{catalog:c,totals:l}=i4(),r=(e.components??[]).reduce((n,h)=>n+(l.freeUnitsByPartNumber[h.partNumber]??0),0),{currency:o,formatMoney:i}=d0();return p0(xo,{children:[p0("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:[N1(cu,{line:e,catalog:c,tyre:t}),p0("div",{className:"flex min-w-0 flex-col gap-2",children:[p0("div",{className:"flex items-start justify-between gap-3",children:[p0("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:["N\xB0 ",e.positionNo," \xB7 ",e.process==="FusionForge\xAE"?p0(xo,{children:["FusionForge",N1(i6,{})]}):e.process]}),N1("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:Bm(e,o)===null?n7:i(Bm(e,o),o)})]}),p0("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,N1("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&p0("div",{className:"mt-1 flex flex-wrap gap-1.5",children:[e.config.map(n=>N1("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&&p0("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"]})]}),p0("div",{className:"mt-2.5 flex items-center justify-between gap-3",children:[N1(Ka,{value:e.qty,onChange:s,size:"small"}),p0("div",{className:"flex gap-3.5 font-mono text-[10px] uppercase tracking-[0.22em]",children:[N1(L1,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),N1("button",{type:"button",onClick:a,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&p0("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:[N1("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),p0("span",{children:["Verified for your ",N1("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function $U({title:e,sub:t,href:a}){return p0(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:[p0("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[N1("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),N1("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),N1("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 YU(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 XU({children:e}){return N1("span",{className:"inline-flex items-center gap-1.5 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function x7({label:e,value:t}){return p0("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[N1("span",{children:e}),N1("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function JU({content:e}){return p0("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[N1("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),N1("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),p0(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 ",N1("span",{className:"text-accent",children:"\u2192"})]})]})}var QU=[{key:"cart",label:"Cart",href:"/?cart=open"},{key:"checkout",label:"Checkout",href:"/checkout"}],ej=Object.fromEntries(QU.map(e=>[e.key,e]));function US(e){return ej[e]}import{Fragment as aj,jsx as H8,jsxs as zo}from"react/jsx-runtime";var tj=Jp(()=>import("./EditorPreviewCheckout-UGMEXAGV.js"),{ssr:!1});function ou(){let{chromePlaceholder:e,themeFromDocument:t}=I3(),{surface:a}=Cw();return e||t||!a||a!=="cart"&&a!=="checkout"?null:a==="checkout"?zo(aj,{children:[H8(tj,{}),H8(jS,{surface:a})]}):H8(wr,{children:zo(Cr,{preview:!0,children:[H8($a,{}),H8(jS,{surface:a})]})})}function jS({surface:e}){let{label:t,href:a}=US(e);return zo("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)})}),zo("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(r6,{name:"external-link",size:13,rounded:!0})]})]})}import{CategoryIcon as Al1,CheckIcon as zG,ClockIcon as bx,ColumnsIcon as Hl1,DirectionIcon as Fl1,EyeIcon as Tl1,ListIcon as Pl1,PageIcon as El1,PlacementIcon as Vl1,ScrollPointIcon as Nl1,TriggerIcon as _l1}from"efficient-easel/icons";import{useContext as rj,useEffect as QS,useRef as wo,useState as Co}from"react";import{Button as ko}from"efficient-shell/ui";var Ya=class extends Error{constructor(a){super("The storefront forms list could not be loaded.");this.cause=a;this.name="FormsUnavailableError"}},yo=null,iu=null,nu=null;function sj(){yo=null,iu=null,nu=null}function KS(e=!1){let t=R3(),a=i2();return(e||!yo||iu===null&&t!==null||nu!==a)&&(iu=t,nu=a,yo=(t?J1.listForms(t,{siteId:a}):Promise.reject(new Ya)).catch(s=>{throw sj(),s instanceof Ya?s:new Ya(s)})),yo}var hu=new Map,cj=9e5,$S=0;function lj(){return $S+=1,`fe-${typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():String($S)}`}function YS(e,t){e.connected&&e.send("storefront-editor:open-form",{mode:"edit",formId:t})}function XS(e,t){if(!e.connected)return Promise.resolve({status:"closed"});let a=lj();return new Promise(s=>{let c=setTimeout(()=>JS(a,{status:"timeout"}),t.timeoutMs??cj);hu.set(a,l=>{clearTimeout(c),s(l)}),e.send("storefront-editor:open-form",{requestId:a,mode:t.mode,...t.formId?{formId:t.formId}:{}})})}function JS(e,t){let a=hu.get(e);a&&(hu.delete(e),a(t))}function jm1(e,t){JS(e,t?{status:"saved",form:t}:{status:"closed"})}import{jsx as k2,jsxs as P5}from"react/jsx-runtime";var eL="__create-a-new-form__";function oj({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:eL,label:p("Create a new form")}];return[o,...i,...n,...h]}function ij(e){return e===eL?{action:"create"}:{action:"store",slug:e}}function nj({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 hj(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 mu({value:e,onChange:t,label:a="Form",emptyLabel:s}){let c=C4(),l=rj(Al),r=l?l.capabilities.hasForms:!0,[o,i]=Co(null),[n,h]=Co(!1),[m,u]=Co(!1),[d,v]=Co(!1),g=wo(!0),b=wo(e);b.current=e;let f=wo(t);f.current=t;let w=wo(null),z=(E=!1)=>KS(E).then(F=>{if(g.current){i(F),h(!1);let _=nj({value:b.current,pickedId:w.current,forms:F});_&&f.current(_)}return F},()=>(g.current&&h(!0),[]));QS(()=>(g.current=!0,r&&z(),()=>{g.current=!1}),[r]),QS(()=>r?co(()=>{z(!0)}):void 0,[r]);let S=e?(o??[]).find(E=>E.slug===e)??null:null;S?w.current=S.id:e||(w.current=null);let H=!!e&&!S&&o!==null&&!n,I=oj({value:e,forms:o,loadFailed:n,emptyLabel:s}),P=async()=>{u(!0),v(!1);try{let E=await XS(c,{mode:"create"}),F=await z(!0);if(!g.current)return;if(E.status==="timeout"){v(!0);return}if(E.status!=="saved")return;let{form:_}=E;_.slug!==b.current&&f.current(_.slug),F.some(Z=>Z.id===_.id)||z(!0)}finally{g.current&&u(!1)}},D=E=>{let F=ij(E);F.action==="create"?P():(v(!1),t(F.slug))};return r?P5("div",{className:"sf-formpicker",children:[k2(O9,{label:a,options:I,fallback:"",value:e??"",onChange:D,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?P5("div",{className:"sf-blogsource sf-formsummary",children:[P5("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((E,F)=>k2("li",{children:E.label},E.key||`${E.label}-${F}`))}):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.")})]}),P5("div",{children:[k2("div",{className:"sf-formsummary-caption",children:p("Where the answers go")}),k2("ul",{className:"sf-formsummary-fields",children:hj(S).map(E=>k2("li",{children:E},E))})]}),!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")})}),P5("div",{className:"sf-formsummary-actions",children:[k2(ko,{variant:"secondary",size:"sm",onClick:()=>YS(c,S.id),children:p("Edit form \u270E")}),k2(ko,{variant:"secondary",size:"sm",disabled:m,onClick:()=>{P()},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")})})]}):P5("div",{className:"sf-blogsource sf-formsummary",children:[n?P5("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??""})}),P5("div",{className:"sf-formsummary-actions",children:[n&&k2(ko,{variant:"secondary",size:"sm",disabled:m,onClick:()=>{z(!0)},children:p("Try again")}),k2(ko,{variant:"secondary",size:"sm",disabled:m,onClick:()=>{P()},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:P5("div",{children:[k2("div",{className:"sf-formsummary-caption",children:p(a)}),P5("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 mj}from"react/jsx-runtime";function E5(e,t){return{type:"custom",render:({value:a,onChange:s})=>mj(mu,{value:a,onChange:s,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}var Mo=null,tL=null;function pj(e,t){Mo=e,tL=t}function mp1(e){pj(e,null)}function aL(){return Mo}function M2(){return tL==="dynamic"||Mo===up}function sL(e){return Zr(Mo??"",e)??"alloy-wheel"}import{createContext as uj,useContext as dj}from"react";import{jsx as gj}from"react/jsx-runtime";var cL=uj(null);function lL({slug:e,children:t}){let a=typeof e=="string"&&e.trim()?e:null;return gj(cL.Provider,{value:a,children:t})}function rL(){return dj(cL)}import{createContext as vj,useContext as fj}from"react";import{jsx as bj}from"react/jsx-runtime";var oL=vj("alloy-wheel");function iL({kind:e,children:t}){return bj(oL.Provider,{value:e??"alloy-wheel",children:t})}function nL(){return fj(oL)}import{createContext as hL,useContext as So}from"react";import{jsx as wj}from"react/jsx-runtime";function xj(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 zj=/^\d{4}-\d{2}-\d{2}$/;function mL(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"?zj.test(a)?"date":"text":null;return s?[{key:t,label:xj(t),kind:s}]:[]}):[]}function Lo(e,{firstField:t=!1}={}){if(!e)return[];let a=mL(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 yj(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 pL(e){return e?mL(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"?yj(a):a}]}):[]}var z7="product",pu=hL(null);function uu(e){let t=e?.recordType;return typeof t=="string"&&t.trim()||z7}function Ao(e){let t=e?.appState?.data?.root;return uu(t?.props)!==z7}var uL=hL(z7);function dL({type:e,children:t}){return wj(uL.Provider,{value:e,children:t})}function Ho(e){let t=So(pu),a=So(uL);return t?t.type!==z7:e&&a!==z7}var Fo={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"}]}},gL=4;function To(){return So(pu)}function vL(e){let t=So(pu);return t!==null&&t.type===e?t:null}import{createContext as kj,useContext as Mj}from"react";var du="heroBullets",Xa="\xB7",Ja={bullets:[{label:"Free shipping",detail:"USA, UK, AUS"},{label:"Lifetime warranty",detail:"structural"}]};function fL(e){return e.detail?`${e.label} ${Xa} ${e.detail}`:e.label}function Cj(e){let t=e.trim();if(!t)return null;let a=t.indexOf(Xa);return a<0?{label:t,detail:""}:{label:t.slice(0,a).trim(),detail:t.slice(a+Xa.length).trim()}}function bL(e){let t=(e??{})[du];return Array.isArray(t)?{bullets:t.map(s=>Cj(typeof s=="string"?s:Hy(s?.text,""))).filter(s=>s!==null)}:Ja}import{jsx as Sj}from"react/jsx-runtime";var xL=kj(Ja);function zL({content:e,children:t}){return Sj(xL.Provider,{value:e,children:t})}function yL(){return Mj(xL)}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 s3={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:qy,Stats:void 0};import{jsx as d6}from"react/jsx-runtime";import{jsx as Aj}from"react/jsx-runtime";var Po="sf-card",E2={min:0,max:90,step:5,fallback:0,unit:"%"},y7=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],Lj="68%",q3={desktop:20,phone:20,side:40,sidePhone:24},wL="sf-box-sides",CL={min:0,max:200,step:10};function We(e){return typeof e=="string"&&e.trim()!==""}function Eo(e,t){let a=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(a)||a<=0)return null;let s=(Math.min(E2.max,Math.max(E2.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) ${Lj})`}}function Vo(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 No={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}},kL=new Set(Object.keys(No)),Hj=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),ML=new Set(["ProductGrid"]);function gu(e,t){let a=e.render;e.render=s=>{if(t?.(s))return a(s);let c=R9(s.sectionPaddingTop,s.sectionPaddingBottom,s.sectionPaddingTopPhone,s.sectionPaddingBottomPhone),l=a(s);return c?Aj("div",{className:c.className,style:c.style,children:l}):l}}var SL={name:"sectionPadding",applies:(e,t,a)=>t.isSection(e)&&!Hj.has(e)&&!!a&&typeof a.render=="function",panel(e,t,a){kL.has(t)||ML.has(t)||(e.fields={...e.fields,...a.spacingFields({phone:!0})})},draw(e,t){if(kL.has(t)){let a=e.render,s=No[t];e.render=c=>{let l=by(c,s);return a({...c,padTop:l.top,padBottom:l.bottom})};return}if(ML.has(t)){gu(e);return}gu(e,t==="Flex"?a=>We(a.bgImage):void 0)}},Fj=["Heading","Text"],LL={name:"blockPadding",applies:(e,t,a)=>Fj.includes(e)&&!!a&&typeof a.render=="function",panel(e,t,a){e.fields={...e.fields,...a.spacingFields({phone:!0})}},draw(e){gu(e)}};import{jsx as u6,Fragment as Tj,jsxs as Pj}from"react/jsx-runtime";import{useEasel as TL}from"efficient-easel/easel";import{LayersIcon as Ej}from"efficient-easel/icons";import{SettingsDrill as Vj,SettingsField as Nj}from"efficient-easel/panel";import{default as AL}from"efficient-easel/screen/components/AddBlockRow";import{default as HL}from"efficient-easel/screen/components/AddChildRow";import{SlotChildActionsProvider as Op1,useSlotChildActions as FL}from"efficient-easel/screen/components/SlotChildActionsContext";function _j({parent:e,parentType:t,label:a,rowName:s,onSelectChild:c,onAddChild:l,nestDepth:r=0}){let o=Aa(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=Pj(Tj,{children:[g?u6("p",{className:"sf-note",children:g}):null,d.map((f,w)=>u6(Vj,{name:s(f),onOpen:()=>c(u,w,String(f.props.id),t)},String(f.props.id??`${u}-${w}`))),n?u6(AL,{choices:n,onPick:f=>l(m,i,f,d.length,t)}):h.fixed?null:u6(HL,{label:h.addLabel,blocked:v,onAdd:()=>l(m,i,h.childType,d.length,t)})]});return u6("div",{className:"sf-slot-rows",children:a?u6(Nj,{label:p(a),icon:u6(Ej,{}),value:String(d.length),children:b}):b})}function Ij(e,t){return Aa(e)?.spec?.notice?.(t)??null}function PL({parentType:e}){let{selectedItem:t}=TL(l=>l);if(!t||t.type!==e)return null;let a=Aa(e)?.slot,s=a&&Array.isArray(t.props[a])?t.props[a]:[],c=Ij(e,s);return c?u6("p",{className:"sf-note",children:c}):null}function Rj(e,t){return Aa(t)?.source==="footer"?e.blockRowName:e.childRowName}function EL({parentType:e,label:t}){let{appState:a,selectedItem:s}=TL(r=>r),c=FL();if(!c||!s||s.type!==e)return null;let l=e===rz?il(a?.data,String(s.props.id)):0;return u6(_j,{parent:s,parentType:e,label:t,rowName:Rj(c,e),onSelectChild:c.selectChild,onAddChild:c.addChild,nestDepth:l})}var VL="grayscale(1) contrast(1.03)",NL="Black and white";function Bj(e){return e===!0?{filter:VL}:{}}function Zj(e){let{filter:t}=Bj(e);return t?{style:{filter:t}}:{}}var Qa="sf-photo-grayscale",Dj=`@media (hover:hover){.${Qa}{filter:${VL};transition:filter 160ms ease}.${Qa}:hover{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Qa}{transition:none}}`;function Ue(e,t){return typeof e=="boolean"?e?Zj(!0):{}:t===!0?{className:Qa}:{}}function _L(e){return e===!0?{[Qa]:Dj}:{}}import{AlignLeftIcon as qj,BlackAndWhiteIcon as Wj,ContrastIcon as Uj,HeightIcon as jj,TypeIcon as Kj}from"efficient-easel/icons";var Oj=["eyebrow","heading","title","body","intro","button","link","label","number","value","name","price","date","caption","note","quote","tag","meta"],Gj=new Set(Oj);function IL(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 g6=e=>Q2(e,s1("Height",d6(jj,{}),ie.min,ie.max,ie.step,ie.fallback,ie.unit)),H4={ctaText:T("Button",u2.text),ctaHref:H1("Button link")},V5=()=>v1("Alignment",d6(qj,{}),[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}],"left"),_o=()=>v1("Tone",d6(Uj,{}),[{label:"Default",value:"default"},{label:"Muted",value:"dim"}],"default"),u3=e=>x5({...No[e],keys:{top:"padTop",bottom:"padBottom"},group:!1}),N5=(e,t)=>({type:"custom",render:()=>d6(EL,{parentType:e,label:t})}),Io=e=>({type:"custom",render:()=>d6(PL,{parentType:e})});function $j(e){let{photographyGrayscale:t}=I3();return l1(NL,t===!0,d6(Wj,{})).render(e)}function je(){return{type:"custom",render:e=>d6($j,{...e})}}var U1=Object.keys(z5("full"));function Ke(e){let t=IL(e);return t?d6(c4,{noun:t}):d6(Kj,{})}import{createContext as Yj,useContext as Xj}from"react";import{jsx as w7,jsxs as vu}from"react/jsx-runtime";function fu(e){return A9(e)??void 0}var bu=Yj({}),RL=3;function xu({tag:e,name:t,desc:a,href:s,imageSrc:c,imageLabel:l,price:r}){let{showPrice:o,cardStyle:i,partStyles:n,editing:h}=Xj(bu),m=i==="bordered"?" border border-line":i==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",u=fu(c),d=g=>h?{[b8]:g}:{},v=g=>cr(n?.[x8(g)]?.role,Sw[g],pl);return vu(L1,{href:s||"#",className:`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${m}`,children:[w7("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:w7(k0,{label:l||"collection.jpg",src:u})}),w7("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"}}),vu("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&&w7("span",{...d("tag"),style:v("tag"),className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.25em] opacity-70",children:M(e)}),t&&w7("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&&z0(a).map((g,b)=>w7("p",{...d("body"),style:v("body"),className:"max-w-[420px] text-[length:var(--size-body,14px)] leading-[1.5] opacity-80",children:M(g)},b)),o&&r&&w7("span",{...d("price"),style:v("price"),className:"font-mono text-[length:var(--size-label,15px)] tracking-[0.05em] text-accent",children:M(r)}),vu("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",w7("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]})}import{createContext as hK,useCallback as mK,useContext as pK,useEffect as uK,useRef as dK,useState as wu}from"react";import{useState as Jj}from"react";function Ro(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 BL(e){return e==="below"}import{jsx as K4,jsxs as $e}from"react/jsx-runtime";function zu({build:e,hiddenMobile:t,alwaysShowOverlay:a,forceHover:s,index:c,total:l,ratio:r,captionPlace:o}){let[i,n]=Jj(!1),h=BL(o),m=$e("div",{className:["sf-card group relative overflow-hidden bg-surface-2",Ro(r),t?"max-[800px]:hidden":""].join(" "),children:[$e("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:[K4(k0,{label:e.imageLabel,src:e.imageSrc}),K4("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),K4("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&&K4(_3,{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&&$e("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&&K4("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:e0(e.process)}),$e("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&&K4("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&&K4("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&&K4("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:K4("span",{children:e0(e.finish)})})]})]});return h?$e("div",{className:t?"max-[800px]:hidden":"",children:[m,$e("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&K4("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)&&K4("div",{className:"mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim",children:e0(e.finish||e.car)})]})]}):m}import{createContext as Qj,useContext as eK,useEffect as tK,useLayoutEffect as aK,useRef as yu,useState as sK}from"react";import{createPortal as cK}from"react-dom";import{Fragment as iK,jsx as es,jsxs as nK}from"react/jsx-runtime";var lK=".sf-themed-content",ZL="sf-section-accent";function rK(e,t){let a={},s=!1,c=[];for(let l=e;l&&l!==t;l=l.parentElement)c.push(l);for(let l of c.reverse()){l.classList.contains(ZL)&&(s=!0);let r=l.style;if(r)for(let o=0;o<r.length;o+=1){let i=r.item(o);i.startsWith("--")&&(a[i]=r.getPropertyValue(i))}}return{className:s?`contents ${ZL}`:"contents",style:a}}function oK(e){let t=e.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])");return Array.from(t).filter(a=>!a.hasAttribute("hidden")&&a.getAttribute("aria-hidden")!=="true")}var DL=Qj(()=>{});function F8({open:e,onClose:t,label:a,onPrev:s,onNext:c,className:l="",style:r,children:o}){let i=yu(null),n=yu(null),[h,m]=sK(null);aK(()=>{if(!e){m(null);return}let v=i.current;if(!v)return;let g=v.closest(lK)??v.ownerDocument.body;m({host:g,theme:rK(v,g)})},[e]);let u=yu({onClose:t,onPrev:s,onNext:c});u.current={onClose:t,onPrev:s,onNext:c};let d=e&&h!==null;return tK(()=>{if(!d)return;let v=n.current,g=v?.ownerDocument??document,b=g.activeElement;v?.focus();let f=k=>{if(k.key==="Escape")u.current.onClose();else if(k.key==="ArrowLeft")u.current.onPrev?.();else if(k.key==="ArrowRight")u.current.onNext?.();else if(k.key==="Tab"&&v){let S=oK(v);if(S.length===0){k.preventDefault(),v.focus();return}let H=S[0],I=S[S.length-1],P=g.activeElement,D=!!P&&v.contains(P)&&P!==v;if(k.shiftKey&&(!D||P===H))k.preventDefault(),I.focus();else if(!k.shiftKey&&(!D||P===I))k.preventDefault(),H.focus();else{k.preventDefault();let E=S.indexOf(P);S[k.shiftKey?E-1:E+1]?.focus()}}},w=g.defaultView??window;w.addEventListener("keydown",f);let z=g.body.style.overflow;return g.body.style.overflow="hidden",()=>{w.removeEventListener("keydown",f),g.body.style.overflow=z,b&&b.isConnected&&b.focus()}},[d]),e?nK(iK,{children:[es("span",{ref:i,hidden:!0}),h&&cK(es("div",{className:h.theme.className,style:h.theme.style,children:es("div",{ref:n,role:"dialog","aria-modal":"true","aria-label":a,tabIndex:-1,onClick:t,className:`fixed inset-0 z-(--sf-layer-lightbox) outline-none ${l}`,style:r,children:es(DL.Provider,{value:t,children:o})})}),h.host)]}):null}function Ye({className:e="absolute right-5 top-5 flex h-10 w-10 cursor-pointer items-center justify-center border border-fg-dim/40 text-fg-dim transition-colors hover:border-accent hover:text-accent",style:t,label:a="Close",children:s="\xD7"}){let c=eK(DL);return es("button",{type:"button","aria-label":a,onClick:l=>{l.stopPropagation(),c()},className:e,style:t,children:s})}import{Fragment as Xe,jsx as Q0,jsxs as d3}from"react/jsx-runtime";var ts=hK({}),as="data-gallery-grid",Cu="data-gallery-tile";function gK(e,t){let[a,s]=wu(null);return uK(()=>{let c=e.current,l=c?.closest(`[${as}]`);if(!c||!l)return;let r=()=>{let i=Array.from(l.querySelectorAll(`[${Cu}]`)),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 OL=[{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 vK(e,t){return(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||t}function fK(e){let t=(e.photos??[]).map(l=>l?.src).filter(l=>!!l),a=e.image||t[0]||"",s=[a,...t].filter(l=>!!l),c=vK(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 ss({editing:e=!1,previewHover:t,ratio:a,captionPlace:s,...c}){let{galleryHref:l="/gallery",submitHref:r="/contact",previewHover:o}=pK(ts),i=fK(c),n=i.photos??(i.imageSrc?[i.imageSrc]:[]),h=dK(null),m=mK(H=>{h.current=H},[]),u=gK(h,e),d=e&&(!!t||!!o),[v,g]=wu(!1),[b,f]=wu(0),w=()=>f(H=>(H-1+n.length)%n.length),z=()=>f(H=>(H+1)%n.length),k=n[b]??i.imageSrc??"",S=Q0(zu,{build:i,forceHover:d,index:u?.index,total:u?.total,ratio:a,captionPlace:s});return d3(Xe,{children:[e?Q0("div",{ref:m,[Cu]:"",className:"block w-full text-left",children:S}):Q0("button",{ref:m,[Cu]:"",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:S}),Q0(F8,{open:v,onClose:()=>g(!1),label:`${i.car} on ${i.wheel}`,onPrev:n.length>1?w:void 0,onNext:n.length>1?z:void 0,className:"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(Ye,{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:[k&&Q0("img",{src:k,alt:`${i.car} \u2014 ${b+1} of ${n.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},k),n.length>1&&d3(Xe,{children:[Q0("button",{type:"button","aria-label":"Previous photo",onClick:w,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:z,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:M(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:M(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(Xe,{children:[Q0("dt",{className:"text-fg-dim",children:"Wheel"}),Q0("dd",{className:"text-fg",children:M(i.wheel)})]}),i.process&&d3(Xe,{children:[Q0("dt",{className:"text-fg-dim",children:"Process"}),Q0("dd",{className:"text-fg",children:M(i.process)})]}),i.finish&&d3(Xe,{children:[Q0("dt",{className:"text-fg-dim",children:"Finish"}),Q0("dd",{className:"text-fg",children:M(i.finish)})]}),i.car&&d3(Xe,{children:[Q0("dt",{className:"text-fg-dim",children:"Vehicle"}),Q0("dd",{className:"text-fg",children:M(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 yK,useContext as wK,useEffect as Bo,useId as CK,useMemo as kK,useState as V2}from"react";var bK=14,xK=3;function ku(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function zK(e,t){let a=new Date(`${e}T00:00:00`);return a.setDate(a.getDate()+t),ku(a)}async function GL(e,t,a={}){let s=a.days??bK,c=a.read??y8.getAvailability,l=0,r=0;for(let o=0;o<s;o++){if(a.signal?.aborted)return{outcome:"unreadable"};let i=zK(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>=xK)return{outcome:"unreadable"}}}return r===s?{outcome:"noneInWindow",days:s}:{outcome:"unreadable"}}import{jsx as LK}from"react/jsx-runtime";var qL=yK(null);function C7(){let e=wK(qL);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var Mu=[{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 MK(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 Su={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"2026-01-01T00:00:00.000Z",timezone:"UTC",customerTimezone:"",manageToken:"example"};function SK(e,t){return e&&t?.length===0}function WL({editing:e=!1,previewConfirmation:t=!1,children:a}){let s=CK(),c=kK(()=>ku(new Date),[]),[l,r]=V2(),[o,i]=V2(""),[n,h]=V2(""),[m,u]=V2(c),[d,v]=V2(c),[g,b]=V2(!1),[f,w]=V2(null),[z,k]=V2(),[S,H]=V2(""),[I,P]=V2(""),[D,E]=V2(""),[F,_]=V2(""),[Z,G]=V2(""),[V,j]=V2(()=>Dm()),[N,Q]=V2(null),[W,U]=V2(!1),[i1,y1]=V2(!1),[K,c1]=V2(null),[b1,$]=V2("");Bo(()=>{$(Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC")},[]),Bo(()=>{let c0=!1;return y8.listServices().then(l0=>{c0||(r(l0.results),i(l0.currency),h(X1=>X1||l0.results[0]?.id||""))}).catch(()=>{c0||r([])}),()=>{c0=!0}},[]),Bo(()=>{if(g||!n)return;let c0={aborted:!1};return H(""),k(void 0),c1(null),w(null),U(!0),GL(n,c,{signal:c0}).then(l0=>{if(!c0.aborted){if(l0.outcome==="found"){u(l0.date),v(l0.date),k(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||U(!1)}),()=>{c0.aborted=!0}},[g,n,c]),Bo(()=>{if(!g||!n||!m)return;let c0=!1;return H(""),k(void 0),c1(null),w(null),U(!0),y8.getAvailability(n,m).then(l0=>{c0||(k(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||U(!1)}),()=>{c0=!0}},[m,g,n]);let u1=l?.find(c0=>c0.id===n),x1=u1?.depositAmountDue!=null,X0=!!(!e&&!i1&&u1&&S&&I.trim()&&D.trim()&&!x1);async function o0(c0){if(c0.preventDefault(),!(!X0||!u1)){y1(!0),c1(null);try{let l0=await y8.create({serviceId:u1.id,start:S,customer:{name:I.trim(),email:D.trim(),phone:F.trim()},notes:Z.trim(),idempotencyKey:V,customerTimezone:b1});Q(l0),j(Dm())}catch(l0){c1(l0 instanceof W4&&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 W4&&l0.status===409&&(H(""),y8.getAvailability(u1.id,m).then(k).catch(()=>{}))}finally{y1(!1)}}}let I1=SK(e,l);return LK(qL.Provider,{value:{fieldPrefix:s,editing:e,services:I1?Mu:l,currency:I1?"AUD":o,serviceId:I1?Mu[0].id:n,setServiceId:h,service:I1?Mu[0]:u1,requiresPayment:I1?!1:x1,date:m,earliestDate:d,setDate:u,setDateTouched:b,availability:I1?MK(m):z,loadingSlots:I1?!1:W,noSlotsMessage:f,selectedStart:I1?`${m}T09:00:00.000Z`:S,setSelectedStart:H,customerTimezone:b1,name:I,setName:P,email:D,setEmail:E,phone:F,setPhone:_,notes:Z,setNotes:G,confirmation:N??(t?Su:null),submitting:i1,error:K,canSubmit:I1?!1:X0,handleSubmit:o0,sample:!!I1},children:a})}import{jsx as Zo,Fragment as UL,jsxs as jL}from"react/jsx-runtime";var AK="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",KL={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 c3(e){let{variant:t="primary",arrow:a,glyphBefore:s,className:c,style:l,children:r,href:o,newTab:i,...n}=e,h=`${AK} ${KL[t]??KL.primary} ${c??""}`,m=s?jL(UL,{children:[a!==null&&Zo("span",{"aria-hidden":!0,className:"inline-flex",children:a??"\u2192"}),r]}):jL(UL,{children:[r,a!==null&&Zo("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",children:a??"\u2192"})]});return o?Zo(r0,{href:o,className:h,style:l,...i?{target:"_blank",rel:"noopener noreferrer"}:{},children:m}):Zo("button",{type:"button",className:h,style:l,...n,children:m})}import{jsx as A0,jsxs as H3}from"react/jsx-runtime";var cs="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 HK(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 $L(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 YL(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 ls="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function Lu({number:e,children:t}){return H3("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 Do({eyebrow:e,heading:t,intro:a}){return H3("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 Oo({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}=C7();return a?H3("div",{className:"flex flex-col gap-9",style:e,children:[H3("div",{children:[A0(Lu,{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 H3("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}),H3("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 ",HK(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."})]}),H3("div",{children:[A0(Lu,{number:"02",children:"Choose a date and time"}),A0(Z2,{separate:!0,htmlFor:`${t}-date`,label:"Date",required:!0,labelFace:ls,children:A0("input",{id:`${t}-date`,type:"date",min:i,value:o,onChange:f=>{h(!0),n(f.target.value)},className:cs,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=>H3("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:$L(f.start,b||m.timezone)}),b&&b!==m.timezone&&H3("span",{className:"mt-0.5 block text-[9px] font-normal tracking-[0.08em] opacity-70",children:[$L(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&&H3("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 Go({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}=C7();return H3("div",{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-7",style:t,children:[A0(Lu,{number:"03",children:"Your details"}),H3("div",{className:"flex flex-col gap-4",children:[A0(Z2,{separate:!0,htmlFor:`${a}-name`,label:"Name",required:!0,labelFace:ls,children:A0("input",{id:`${a}-name`,type:"text",autoComplete:"name",value:c,onChange:g=>l(g.target.value),className:cs,required:!0})}),A0(Z2,{separate:!0,htmlFor:`${a}-email`,label:"Email",required:!0,labelFace:ls,children:A0("input",{id:`${a}-email`,type:"email",inputMode:"email",autoComplete:"email",value:r,onChange:g=>o(g.target.value),className:cs,required:!0})}),A0(Z2,{separate:!0,htmlFor:`${a}-phone`,label:"Phone",labelFace:ls,children:A0("input",{id:`${a}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:i,onChange:g=>n(g.target.value),className:cs})}),A0(Z2,{separate:!0,htmlFor:`${a}-notes`,label:"What would you like to cover?",labelFace:ls,children:A0("textarea",{id:`${a}-notes`,rows:4,value:h,onChange:g=>m(g.target.value),className:`${cs} 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(c3,{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 qo({successMessage:e}){let{confirmation:t,customerTimezone:a}=C7();return t?H3("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-9",role:"status",children:[H3("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:YL(t.startAt,t.customerTimezone||a||t.timezone)}),t.customerTimezone&&t.timezone!==t.customerTimezone&&H3("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",YL(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(c3,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:t!==Su,variant:"ghost",className:"mt-7",children:"Manage booking"})]}):null}var Wo=["step","name","value","note"],Au={step:"Step",name:"Name",value:"Value",note:"Note"},Uo={step:"styleStep",name:"styleName",value:"styleValue",note:"styleNote"},XL={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 FK(e){return typeof e=="string"&&v5.includes(e)?e:null}var TK={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:900};function JL(e){let t={};for(let a of Wo){let s=FK(e[Uo[a]]);if(!s)continue;let c=V9({role:s},TK);c.fontFamily&&(t[XL[a].font]=c.fontFamily),c.fontSize&&(t[XL[a].size]=c.fontSize)}return t}import{jsx as Je}from"react/jsx-runtime";var QL=["head","booking","details","confirm"],eA={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function Hu({region:e,eyebrow:t,heading:a,intro:s,buttonLabel:c,successMessage:l,...r}){let{confirmation:o,services:i}=C7(),n=JL(r);return e==="head"?Je("div",{className:"min-[960px]:col-span-2",style:n,children:Je(Do,{eyebrow:t,heading:a,intro:s})}):e==="confirm"?o?Je("div",{className:"min-[960px]:col-span-2",style:n,children:Je(qo,{successMessage:l})}):null:o||!i||i.length===0?null:e==="booking"?Je(Oo,{style:n}):e==="details"?Je(Go,{buttonLabel:c,style:n}):null}import{jsx as K0,Fragment as PK,jsxs as F4}from"react/jsx-runtime";var T8="solid",Fu=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function tA(e){return I2(Fu,T8,e)}var Tu="sf-secnum-outline",aA="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",sA=`@supports (-webkit-text-stroke: 1px currentColor){.${Tu}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var rs=(e,t=!1)=>typeof e=="string"?Y(e,t):e,Qe=(e,t=!1)=>typeof e=="string"?M(e,t):e;function s0({num:e,title:t,link:a,logo:s,description:c,accent:l,accentNum:r,numStyle:o=T8,look:i="standard",titleAccent:n,accentTracking:h="-0.02em",spaceBelow:m,rowGap:u,descriptionSize:d,className:v="",eyebrowLook:g=ur}){let b=m??(i==="editorial"?"mb-[60px]":"");if(i==="editorial"){let H=!!t||!!n;return F4("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"?K0(V1,{text:e,className:"pb-2"}):K0("span",{className:"pb-2",children:e})),H&&F4("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&&F4(PK,{children:[" ",K0("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:h},children:n})]})]}),c&&K0("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 F4("div",{className:H||void 0,children:[e&&(typeof e=="string"?K0(V1,{text:e,look:g,className:"mb-4 block"}):K0("span",{className:"mb-4 block",children:e})),t&&K0("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:rs(t)})]})}if(i==="statement"){let H=`${b} ${v}`.trim();return F4("div",{className:H||void 0,children:[e&&(typeof e=="string"?K0(V1,{text:e,look:g,className:"mb-4 block"}):K0("span",{className:"mb-4 block",children:e})),t&&K0("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:rs(t,!0)})]})}if(i==="natural"){let H=`flex max-w-[680px] flex-col ${u??"gap-5"} ${b} ${v}`.replace(/\s+/g," ").trim();return F4("div",{className:H,children:[e&&(typeof e=="string"?K0(V1,{text:e,look:g}):K0("span",{children:e})),t&&K0("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:rs(t)}),c&&K0("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 F4("div",{className:H||void 0,children:[e&&(typeof e=="string"?K0(V1,{text:e,look:g,className:"mb-4 block"}):K0("span",{className:"mb-4 block",children:e})),t&&K0("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:rs(t)})]})}let f=!!c||!!a,w=!!t,z=tA(o)==="outlined",k="font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.3em]",S=null;if(e)if(z)S=K0("span",{className:`${aA} text-fg-dim ${Tu}`,children:Qe(e)});else if(r&&!l&&typeof e=="string"){let H=e.indexOf("/"),I=H===-1?e:e.slice(0,H),P=H===-1?"":e.slice(H);S=F4("span",{className:k,children:[K0("span",{className:"text-accent",children:Qe(I)}),P&&K0("span",{className:"text-fg-dim",children:Qe(P)})]})}else S=K0("span",{className:`${k} ${l?"text-accent":"text-fg-dim"}`,children:Qe(e)});return F4("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&&K0("style",{children:sA}),F4("div",{className:"flex flex-col items-start gap-3",children:[s?.src&&K0("img",{src:H2(s.src),alt:s.alt,className:"h-8 w-auto object-contain"}),S]}),w&&K0("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:rs(t)}),f&&F4("div",{className:"flex flex-col items-end gap-3 max-[800px]:items-start",children:[c&&K0("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:Qe(c)}),a&&F4(r0,{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:[Qe(a.text),K0("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}import{jsx as T4,jsxs as os}from"react/jsx-runtime";function EK(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function cA({eyebrow:e,title:t}){return os("div",{className:"flex flex-col gap-4",children:[e&&T4(V1,{text:e,scaled:!1}),t&&T4("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 jo({body:e,buttonLabel:t,consent:a,form:s,submission:c,showForm:l,resolving:r,editing:o}){return os("div",{className:"flex flex-col gap-7",children:[e&&z0(e).map((i,n)=>T4("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:M(i)},n)),l&&(s?c.done?T4("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:Ze(s)}):os("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",EK(i)?"col-span-2":""].join(" ");return i.type==="checkbox"?os("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:[T4(f7,{field:i,value:c.valueOf(i.key),onChange:h=>c.set(i.key,h),className:"mt-0.5 size-4 accent-accent"}),os("span",{children:[i.label,i.required?T4("span",{className:"text-accent",children:" *"}):null]})]},i.key):T4(f7,{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)}),T4(De,{value:c.honeypot,onChange:c.setHoneypot}),c.error&&T4("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:c.error}),t&&T4("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":M(t)})]}):T4("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&&T4("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:M(a)})]})}var Ko=["field","tick","thanks"],Pu={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},$o={field:"styleField",tick:"styleTick",thanks:"styleThanks"},lA={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 VK(e){return typeof e=="string"&&v5.includes(e)?e:null}var NK={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:900};function rA(e){let t={};for(let a of Ko){let s=VK(e[$o[a]]);if(!s)continue;let c=V9({role:s},NK);c.fontFamily&&(t[lA[a].font]=c.fontFamily),c.fontSize&&(t[lA[a].size]=c.fontSize)}return t}import{jsx as Yo}from"react/jsx-runtime";var oA=["head","form"],iA={head:"Head",form:"Form"};function Eu({region:e,eyebrow:t,title:a,body:s,buttonText:c,consent:l,formSlug:r,form:o,editing:i=!1,...n}){let h=H5(r,o),m=v7({form:h,formSlug:r,editing:i}),u=rA(n);return e==="head"?Yo("div",{style:u,children:Yo(s0,{look:"statement",num:t,title:a})}):Yo("div",{style:u,children:Yo(jo,{body:s??"",buttonLabel:c??"",consent:l??"",form:h,submission:m,showForm:!!h||i,resolving:h===void 0,editing:i})})}var _K={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>QL.map(e=>({region:e,name:eA[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:()=>oA.map(e=>({region:e,name:iA[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:RL},()=>({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:()=>OL.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};iz(_K);function et(e,t){let a={};for(let s of Object.keys(e))a[s]={...e[s],...t[s]};return a}import{jsx as IK}from"react/jsx-runtime";import{OpacityIcon as RK}from"efficient-easel/icons";var nA={fields:{_gContent:x("Content"),eyebrow:T("Eyebrow","Limited release"),title:O("Heading","Banner headline"),body:O("Body","A line or two of supporting copy."),_gBackground:x("Background image"),imageSrc:q1("Image","image/*"),overlay:s1("Overlay",IK(RK,{}),0,100,5,60,"%"),_gButton:x("Button"),...H4,_gLayout:x("Layout")}};import{jsx as DK}from"react/jsx-runtime";import{jsx as is,jsxs as Vu,Fragment as BK}from"react/jsx-runtime";import{Fragment as ZK}from"react";function hA({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:Vu("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 Vu(ZK,{children:[r>0&&is("span",{className:"opacity-40",children:"/"}),l.href&&!o?is(r0,{href:l.href,className:"hover:text-fg",children:R0(l.label)}):is("span",{className:o?"text-fg":void 0,children:R0(l.label)})]},r)}),t&&Vu(BK,{children:[is("span",{className:"opacity-40",children:"\xB7"}),is("span",{children:M(t)})]})]})}function $4(e,t,a){return e||(a?.isEditing?p(t):void 0)}function C1(e,t,a){let s=Array.isArray(e)?e:[];return s.length?s:a?.isEditing?t:[]}function y(e,t,a){let s=F2(e);if(!s.hidden)return $4(s.text,t,a)}function e2(e,t,a){return F2(e).hidden?"":y(e,t,a)}function W3(e,t,a){return{text:y(e,u2.text,a),href:t||u2.href}}var Nu={meta:"Trailing note"},OK=()=>[{label:p("Home"),href:"/"},{label:p("Section"),href:""}],mA={label:"Breadcrumb",defaultProps:{items:[],meta:""},render:({items:e,meta:t,puck:a})=>DK(hA,{items:C1(e,OK(),a),meta:y(t,Nu.meta,a),editing:a?.isEditing})};var pA={fields:{_gContent:x("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:q("Label"),href:e3(q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:T("Trailing note",Nu.meta)}};import{jsx as g3,jsxs as GK}from"react/jsx-runtime";import{ButtonIcon as qK,ButtonIconIcon as WK,IconAfterTextIcon as UK,IconBeforeTextIcon as jK,StylesIcon as KK,WidthIcon as $K}from"efficient-easel/icons";import*as YK from"efficient-easel/icons";import{SettingsField as XK}from"efficient-easel/panel";import{useSelectedFields as gA}from"efficient-easel/easel";import{IconPicker as JK,Segmented as QK}from"efficient-shell/ui";function Xo(e){return typeof e=="boolean"?e:!0}var _u=["none","arrow-right","arrow-long-right","arrow-up-right","chevron-right","external","cart","bag","tag","email","location","play","download","search","car"];function Iu(e){return typeof e=="string"&&_u.includes(e)?e:void 0}function uA(e,t){return Iu(e)??(Xo(t)?"arrow-right":"none")}function Jo(e){return e==="before"?"before":"after"}function dA(e){return e==="fill"?"fill":"fit"}var Ru=e=>({...Fl({type:"custom",render:()=>g3(Tl,{})},"always"),reachedBy:e});function e$(e){let t=(e==="none"?"no-symbol":e).replace(/(^|-)([a-z])/g,(s,c,l)=>l.toUpperCase()),a=YK[`${t}Icon`];return a?g3(a,{size:16}):null}var t$=_u.map(e=>({value:e,icon:e$(e)}));function a$({value:e,onChange:t}){let a=gA(),s=a.values.href,c=typeof e=="string"?e:e&&typeof e=="object"&&"text"in e?String(e.text??""):"";return g3(By,{label:"Button",icon:g3(qK,{size:18}),text:c,onTextChange:t,link:typeof s=="string"?s:"",onLinkChange:l=>a.onChange("href",l)})}function s$({value:e,onChange:t}){let a=gA(),s=uA(e,a.values.arrow),c=Jo(a.values.iconPosition);return g3(XK,{label:p("Icon"),icon:g3(WK,{size:18}),children:GK("div",{className:"flex items-center gap-2",children:[g3(JK,{label:p("Icon"),value:s,emptyValue:"none",options:t$,onChange:t}),s!=="none"&&g3(QK,{label:p("Icon position"),value:c,onChange:l=>a.onChange("iconPosition",l),options:[{value:"before",icon:g3(jK,{size:16}),label:g3("span",{className:"sr-only",children:p("Icon before text")}),title:p("Icon before text")},{value:"after",icon:g3(UK,{size:16}),label:g3("span",{className:"sr-only",children:p("Icon after text")}),title:p("Icon after text")}]})]})})}var vA={fields:{label:Ky(q("Button"),e=>g3(a$,{value:e.value,onChange:e.onChange})),href:{...H1("Button link"),...Ru("label")},_dSize:Y1("Size"),widthFit:v1("Width",g3($K,{}),[{label:"Fit content",value:"fit"},{label:"Fill",value:"fill"}],"fit"),_gStyle:x("Style"),variant:v1("Style",g3(KK,{}),[{label:"Filled",value:"primary"},{label:"Outline",value:"ghost"}],"primary"),icon:{type:"custom",render:e=>g3(s$,{value:e.value,onChange:e.onChange})},iconPosition:Ru("icon"),arrow:Ru("icon"),_dLayout:Y1("Layout"),align:V5()}};import{jsx as xA}from"react/jsx-runtime";import{ColumnsIcon as n$,StylesIcon as h$}from"efficient-easel/icons";import{jsx as o$}from"react/jsx-runtime";import{jsx as tt,Fragment as c$,jsxs as Bu}from"react/jsx-runtime";var l$="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))]",r$="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 fA({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:tt("section",{className:"relative z-[2] bg-surface",children:Bu("div",{className:l?r$:l$,children:[l?null:Bu(c$,{children:[(t??"").trim()&&tt(V1,{text:t??"",look:e,className:"mb-4 block"}),(a??"").trim()&&tt("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&&tt("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)=>Bu("div",{className:"bg-bg p-8 max-[800px]:p-7",children:[tt("div",{className:"mb-3 font-heading3 text-[length:var(--size-headingSmall,20px)] font-medium uppercase tracking-[0.02em] text-fg",children:M((h.title??"").trim()||"Card title")}),tt("p",{className:"text-[length:var(--size-body,15px)] leading-[1.6] text-fg-dim",children:M((h.body??"").trim()||"A short line about this card.")})]},m))})]})})}var ns={eyebrow:"Label",title:"Section *heading.*"},i$=()=>[{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.")}],bA={label:"Cards",defaultProps:{eyebrow:"",title:"",items:[],columns:3},render:e=>{let t=O1(e.headPlacement)==="own-box",a=s=>t?void 0:s;return o$(fA,{look:o4(e.eyebrowLook,"Cards"),eyebrow:a(y(e.eyebrow,ns.eyebrow,e.puck)),title:a(y(e.title,ns.title,e.puck)),omitHead:t,items:C1(e.items,i$(),e.puck),columns:e.columns,editing:e.puck?.isEditing})}};var zA={fields:{_gContent:x("Content"),eyebrow:T("Eyebrow",ns.eyebrow),eyebrowLook:g1("Eyebrow style",xA(h$,{}),[...k4],l7("Cards")),title:O("Heading",ns.title),items:{type:"array",label:"Cards",arrayFields:{title:f1("Card title"),body:E1("Card body")},defaultItemProps:{title:"",body:""},getItemSummary:e=>e?.title||e?.body||"Card"},_gStyle:x("Style"),columns:s1("Columns",xA(n$,{}),2,4,1,3)},resolveFields:(e,{fields:t,parent:a})=>G1(W1(t,a,U1),e.props.headPlacement,Z1.Cards.headRows)};import{jsx as m$}from"react/jsx-runtime";import{StickyIcon as p$}from"efficient-easel/icons";var yA={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:e3(q("Active tab","All")),_gLinks:x("Links"),links:{type:"array",label:"Right links",arrayFields:{label:q("Label"),href:e3(q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:x("Style"),sticky:l1("Stick under header",!0,m$(p$,{}))}};import{jsx as b$}from"react/jsx-runtime";import{StylesIcon as x$}from"efficient-easel/icons";import{jsx as v$}from"react/jsx-runtime";import{jsx as r2,jsxs as Y4}from"react/jsx-runtime";function Zu(e){return Number.isInteger(e)?String(e):String(Math.round(e*10)/10)}var wA=[100,70,46,30,19,12];function CA(e){return`color-mix(in srgb, var(--accent) ${wA[e%wA.length]}%, var(--bg))`}function u$({data:e,suffix:t}){let a=Math.max(...e.map(s=>s.value),0)||1;return r2("div",{className:"flex w-full flex-col gap-6",children:e.map((s,c)=>Y4("div",{children:[Y4("div",{className:"mb-2 flex items-baseline justify-between gap-4",children:[r2("span",{className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg/60",children:M(s.label)}),Y4("span",{className:"font-display text-[length:var(--size-body,16px)] font-medium text-fg",children:[Zu(s.value),t]})]}),r2("div",{className:"h-[10px] border border-line bg-bg",children:r2("div",{className:"h-full bg-accent",style:{width:`${Math.max(s.value/a*100,s.value===0?0:2)}%`}})})]},c))})}function d$({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 Y4("svg",{viewBox:"0 0 640 300",className:"w-full",role:"img","aria-hidden":!0,children:[[.25,.5,.75,1].map(h=>r2("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)),r2("line",{x1:a.l,x2:640-a.r,y1:a.t+c,y2:a.t+c,stroke:"var(--site-line)",strokeWidth:"1.5"}),r2("path",{d:n,fill:"var(--accent)",opacity:"0.13"}),r2("path",{d:i,fill:"none",stroke:"var(--accent)",strokeWidth:"2.5"}),o.map((h,m)=>Y4("g",{children:[r2("circle",{cx:h.x,cy:h.y,r:"4",fill:"var(--accent)"}),Y4("text",{x:h.x,y:h.y-12,textAnchor:"middle",className:"font-display",fontSize:"14",fill:"var(--fg)",children:[Zu(e[m].value),t]}),r2("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 g$({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:CA(i)};return l+=n*c,h});return Y4("div",{className:"flex w-full flex-wrap items-center justify-center gap-10",children:[r2("svg",{viewBox:"0 0 200 200",className:"w-[220px] max-w-full -rotate-90",role:"img","aria-hidden":!0,children:r.map((o,i)=>r2("circle",{cx:"100",cy:"100",r:s,fill:"none",stroke:o.ink,strokeWidth:"34",strokeDasharray:`${o.dash} ${c-o.dash}`,strokeDashoffset:-o.off},i))}),r2("ul",{className:"flex min-w-[200px] flex-1 flex-col gap-3",children:e.map((o,i)=>Y4("li",{className:"flex items-baseline gap-3",children:[r2("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] flex-shrink-0 rotate-45",style:{background:CA(i)}}),r2("span",{className:"flex-1 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.12em] text-fg/60",children:M(o.label)}),r2("span",{className:"font-display text-[length:var(--size-body,15px)] font-medium text-fg",children:t?`${Zu(o.value)}${t}`:`${Math.round(o.value/a*100)}%`})]},i))})]})}function kA({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?r2(d$,{data:n,suffix:i}):m==="donut"?r2(g$,{data:n,suffix:i}):r2(u$,{data:n,suffix:i});return r2("section",{className:"relative z-[2] border-y border-line bg-surface",children:Y4("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:[Y4("div",{children:[(e??"").trim()&&r2("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:M(e??"")}),(t??"").trim()&&r2("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()&&r2("p",{className:"mt-5 max-w-[46ch] text-[length:var(--size-body,15px)] leading-relaxed text-fg/65",children:a})]}),Y4("div",{children:[u,(r??"").trim()&&r2("p",{className:"mt-4 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.14em] text-fg/40",children:r})]})]})})}var hs={eyebrow:"By the numbers",title:`A picture worth
|
|
22
|
+
`}),p0("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:[p0("div",{className:"flex items-center justify-between",children:[p0("span",{className:"flex items-center gap-2.5 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?N1("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]}),N1("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"})]}),p0("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",N1("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),N1("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:Ty(e,c.length)})]}),p0("div",{className:`grid flex-shrink-0 ${jU[b-1]} gap-px border-b border-line bg-line`,children:[N1(ru,{label:"Items",value:p0(xo,{children:[N1("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?N1(ru,{label:"Lead time",value:e.leadTimeValue}):null,g?N1(ru,{label:"Ships to",value:g}):null]}),p0("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[c.length===0?N1(JU,{content:e}):c.map(z=>N1(KU,{line:z,tyre:w.get(z.slug),onRemove:()=>l(z.id),onQtyChange:k=>r(z.id,k)},z.id)),u.length>0&&p0("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:[p0("div",{className:"mb-3.5 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[N1("span",{children:"You may also need"}),N1("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),N1("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:u.map(z=>N1($U,{href:`/bundles/${z.slug}`,title:z.name,sub:YU(z,o.currency,d)},z.slug))})]}),N1("section",{className:"border-b border-line px-8 py-[22px] max-[640px]:px-[22px]",children:N1(UC,{})}),e.promises.length>0&&N1("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=>N1(XU,{children:z},z))})]}),p0("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-[22px]",children:[N1(x7,{label:`Subtotal \xB7 ${o.sets} set${o.sets===1?"":"s"}`,value:d(o.subtotal,o.currency)}),o.appliedBundles.map(z=>N1(x7,{label:`Bundle \xB7 ${z.name}${z.multiples>1?` \xD7${z.multiples}`:""}`,value:p0("span",{style:{color:"var(--green)"},children:["\u2212 ",d(z.discount,o.currency)]})},z.slug)),o.discount>0&&i?.valid&&N1(x7,{label:`Coupon \xB7 ${i.code}`,value:p0("span",{style:{color:"var(--green)"},children:["\u2212 ",d(o.discount,o.currency)]})}),i?.deferred&&N1(x7,{label:`Coupon \xB7 ${i.code}`,value:HC}),i?.valid&&i.effects?.gift&&N1(x7,{label:`Free gift \xB7 ${i.effects.gift.partNumber}${i.effects.gift.quantity>1?` \xD7${i.effects.gift.quantity}`:""}`,value:N1("span",{style:{color:"var(--green)"},children:"Free"})}),N1(x7,{label:"Shipping",value:o.shippingStatus==="free"?N1("span",{style:{color:"var(--green)"},children:"Free"}):RC(o.shippingStatus)??d(o.shipping,o.currency)}),o.tax&&(o.tax.charged?N1(x7,{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?N1(x7,{label:o.tax.name,value:"Calculated at checkout"}):null),p0("div",{className:"mt-1.5 flex items-center justify-between border-t border-line pt-3.5 text-fg",children:[p0("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",N1("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),N1("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:o.repricing?"\u2026":d(o.grand,o.currency)})]})]}),p0("div",{className:"flex flex-shrink-0 flex-col gap-2.5 px-8 pb-[22px] pt-3.5 max-[640px]:px-[22px]",children:[p0(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",N1("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),N1("div",{className:"flex items-center justify-between px-1 py-1.5 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:N1(L1,{href:"/wheels",onClick:s,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})]})]}):null}var jU=["grid-cols-1","grid-cols-2","grid-cols-3"];function ru({label:e,value:t}){return p0("div",{className:"flex flex-col gap-[3px] bg-bg px-4 py-3.5",children:[N1("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),N1("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function KU({line:e,tyre:t,onRemove:a,onQtyChange:s}){let{catalog:c,totals:l}=i4(),r=(e.components??[]).reduce((n,h)=>n+(l.freeUnitsByPartNumber[h.partNumber]??0),0),{currency:o,formatMoney:i}=d0();return p0(xo,{children:[p0("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:[N1(cu,{line:e,catalog:c,tyre:t}),p0("div",{className:"flex min-w-0 flex-col gap-2",children:[p0("div",{className:"flex items-start justify-between gap-3",children:[p0("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:["N\xB0 ",e.positionNo," \xB7 ",e.process==="FusionForge\xAE"?p0(xo,{children:["FusionForge",N1(i6,{})]}):e.process]}),N1("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:Bm(e,o)===null?n7:i(Bm(e,o),o)})]}),p0("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,N1("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&p0("div",{className:"mt-1 flex flex-wrap gap-1.5",children:[e.config.map(n=>N1("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&&p0("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"]})]}),p0("div",{className:"mt-2.5 flex items-center justify-between gap-3",children:[N1(Ka,{value:e.qty,onChange:s,size:"small"}),p0("div",{className:"flex gap-3.5 font-mono text-[10px] uppercase tracking-[0.22em]",children:[N1(L1,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),N1("button",{type:"button",onClick:a,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&p0("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:[N1("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),p0("span",{children:["Verified for your ",N1("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function $U({title:e,sub:t,href:a}){return p0(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:[p0("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[N1("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),N1("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),N1("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 YU(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 XU({children:e}){return N1("span",{className:"inline-flex items-center gap-1.5 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function x7({label:e,value:t}){return p0("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[N1("span",{children:e}),N1("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function JU({content:e}){return p0("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[N1("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),N1("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),p0(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 ",N1("span",{className:"text-accent",children:"\u2192"})]})]})}var QU=[{key:"cart",label:"Cart",href:"/?cart=open"},{key:"checkout",label:"Checkout",href:"/checkout"}],ej=Object.fromEntries(QU.map(e=>[e.key,e]));function US(e){return ej[e]}import{Fragment as aj,jsx as H8,jsxs as zo}from"react/jsx-runtime";var tj=Jp(()=>import("./EditorPreviewCheckout-MP7HSXYA.js"),{ssr:!1});function ou(){let{chromePlaceholder:e,themeFromDocument:t}=I3(),{surface:a}=Cw();return e||t||!a||a!=="cart"&&a!=="checkout"?null:a==="checkout"?zo(aj,{children:[H8(tj,{}),H8(jS,{surface:a})]}):H8(wr,{children:zo(Cr,{preview:!0,children:[H8($a,{}),H8(jS,{surface:a})]})})}function jS({surface:e}){let{label:t,href:a}=US(e);return zo("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)})}),zo("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(r6,{name:"external-link",size:13,rounded:!0})]})]})}import{CategoryIcon as Al1,CheckIcon as zG,ClockIcon as bx,ColumnsIcon as Hl1,DirectionIcon as Fl1,EyeIcon as Tl1,ListIcon as Pl1,PageIcon as El1,PlacementIcon as Vl1,ScrollPointIcon as Nl1,TriggerIcon as _l1}from"efficient-easel/icons";import{useContext as rj,useEffect as QS,useRef as wo,useState as Co}from"react";import{Button as ko}from"efficient-shell/ui";var Ya=class extends Error{constructor(a){super("The storefront forms list could not be loaded.");this.cause=a;this.name="FormsUnavailableError"}},yo=null,iu=null,nu=null;function sj(){yo=null,iu=null,nu=null}function KS(e=!1){let t=R3(),a=i2();return(e||!yo||iu===null&&t!==null||nu!==a)&&(iu=t,nu=a,yo=(t?J1.listForms(t,{siteId:a}):Promise.reject(new Ya)).catch(s=>{throw sj(),s instanceof Ya?s:new Ya(s)})),yo}var hu=new Map,cj=9e5,$S=0;function lj(){return $S+=1,`fe-${typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():String($S)}`}function YS(e,t){e.connected&&e.send("storefront-editor:open-form",{mode:"edit",formId:t})}function XS(e,t){if(!e.connected)return Promise.resolve({status:"closed"});let a=lj();return new Promise(s=>{let c=setTimeout(()=>JS(a,{status:"timeout"}),t.timeoutMs??cj);hu.set(a,l=>{clearTimeout(c),s(l)}),e.send("storefront-editor:open-form",{requestId:a,mode:t.mode,...t.formId?{formId:t.formId}:{}})})}function JS(e,t){let a=hu.get(e);a&&(hu.delete(e),a(t))}function jm1(e,t){JS(e,t?{status:"saved",form:t}:{status:"closed"})}import{jsx as k2,jsxs as P5}from"react/jsx-runtime";var eL="__create-a-new-form__";function oj({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:eL,label:p("Create a new form")}];return[o,...i,...n,...h]}function ij(e){return e===eL?{action:"create"}:{action:"store",slug:e}}function nj({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 hj(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 mu({value:e,onChange:t,label:a="Form",emptyLabel:s}){let c=C4(),l=rj(Al),r=l?l.capabilities.hasForms:!0,[o,i]=Co(null),[n,h]=Co(!1),[m,u]=Co(!1),[d,v]=Co(!1),g=wo(!0),b=wo(e);b.current=e;let f=wo(t);f.current=t;let w=wo(null),z=(E=!1)=>KS(E).then(F=>{if(g.current){i(F),h(!1);let _=nj({value:b.current,pickedId:w.current,forms:F});_&&f.current(_)}return F},()=>(g.current&&h(!0),[]));QS(()=>(g.current=!0,r&&z(),()=>{g.current=!1}),[r]),QS(()=>r?co(()=>{z(!0)}):void 0,[r]);let S=e?(o??[]).find(E=>E.slug===e)??null:null;S?w.current=S.id:e||(w.current=null);let H=!!e&&!S&&o!==null&&!n,I=oj({value:e,forms:o,loadFailed:n,emptyLabel:s}),P=async()=>{u(!0),v(!1);try{let E=await XS(c,{mode:"create"}),F=await z(!0);if(!g.current)return;if(E.status==="timeout"){v(!0);return}if(E.status!=="saved")return;let{form:_}=E;_.slug!==b.current&&f.current(_.slug),F.some(Z=>Z.id===_.id)||z(!0)}finally{g.current&&u(!1)}},D=E=>{let F=ij(E);F.action==="create"?P():(v(!1),t(F.slug))};return r?P5("div",{className:"sf-formpicker",children:[k2(O9,{label:a,options:I,fallback:"",value:e??"",onChange:D,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?P5("div",{className:"sf-blogsource sf-formsummary",children:[P5("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((E,F)=>k2("li",{children:E.label},E.key||`${E.label}-${F}`))}):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.")})]}),P5("div",{children:[k2("div",{className:"sf-formsummary-caption",children:p("Where the answers go")}),k2("ul",{className:"sf-formsummary-fields",children:hj(S).map(E=>k2("li",{children:E},E))})]}),!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")})}),P5("div",{className:"sf-formsummary-actions",children:[k2(ko,{variant:"secondary",size:"sm",onClick:()=>YS(c,S.id),children:p("Edit form \u270E")}),k2(ko,{variant:"secondary",size:"sm",disabled:m,onClick:()=>{P()},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")})})]}):P5("div",{className:"sf-blogsource sf-formsummary",children:[n?P5("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??""})}),P5("div",{className:"sf-formsummary-actions",children:[n&&k2(ko,{variant:"secondary",size:"sm",disabled:m,onClick:()=>{z(!0)},children:p("Try again")}),k2(ko,{variant:"secondary",size:"sm",disabled:m,onClick:()=>{P()},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:P5("div",{children:[k2("div",{className:"sf-formsummary-caption",children:p(a)}),P5("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 mj}from"react/jsx-runtime";function E5(e,t){return{type:"custom",render:({value:a,onChange:s})=>mj(mu,{value:a,onChange:s,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}var Mo=null,tL=null;function pj(e,t){Mo=e,tL=t}function mp1(e){pj(e,null)}function aL(){return Mo}function M2(){return tL==="dynamic"||Mo===up}function sL(e){return Zr(Mo??"",e)??"alloy-wheel"}import{createContext as uj,useContext as dj}from"react";import{jsx as gj}from"react/jsx-runtime";var cL=uj(null);function lL({slug:e,children:t}){let a=typeof e=="string"&&e.trim()?e:null;return gj(cL.Provider,{value:a,children:t})}function rL(){return dj(cL)}import{createContext as vj,useContext as fj}from"react";import{jsx as bj}from"react/jsx-runtime";var oL=vj("alloy-wheel");function iL({kind:e,children:t}){return bj(oL.Provider,{value:e??"alloy-wheel",children:t})}function nL(){return fj(oL)}import{createContext as hL,useContext as So}from"react";import{jsx as wj}from"react/jsx-runtime";function xj(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 zj=/^\d{4}-\d{2}-\d{2}$/;function mL(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"?zj.test(a)?"date":"text":null;return s?[{key:t,label:xj(t),kind:s}]:[]}):[]}function Lo(e,{firstField:t=!1}={}){if(!e)return[];let a=mL(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 yj(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 pL(e){return e?mL(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"?yj(a):a}]}):[]}var z7="product",pu=hL(null);function uu(e){let t=e?.recordType;return typeof t=="string"&&t.trim()||z7}function Ao(e){let t=e?.appState?.data?.root;return uu(t?.props)!==z7}var uL=hL(z7);function dL({type:e,children:t}){return wj(uL.Provider,{value:e,children:t})}function Ho(e){let t=So(pu),a=So(uL);return t?t.type!==z7:e&&a!==z7}var Fo={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"}]}},gL=4;function To(){return So(pu)}function vL(e){let t=So(pu);return t!==null&&t.type===e?t:null}import{createContext as kj,useContext as Mj}from"react";var du="heroBullets",Xa="\xB7",Ja={bullets:[{label:"Free shipping",detail:"USA, UK, AUS"},{label:"Lifetime warranty",detail:"structural"}]};function fL(e){return e.detail?`${e.label} ${Xa} ${e.detail}`:e.label}function Cj(e){let t=e.trim();if(!t)return null;let a=t.indexOf(Xa);return a<0?{label:t,detail:""}:{label:t.slice(0,a).trim(),detail:t.slice(a+Xa.length).trim()}}function bL(e){let t=(e??{})[du];return Array.isArray(t)?{bullets:t.map(s=>Cj(typeof s=="string"?s:Hy(s?.text,""))).filter(s=>s!==null)}:Ja}import{jsx as Sj}from"react/jsx-runtime";var xL=kj(Ja);function zL({content:e,children:t}){return Sj(xL.Provider,{value:e,children:t})}function yL(){return Mj(xL)}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 s3={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:qy,Stats:void 0};import{jsx as d6}from"react/jsx-runtime";import{jsx as Aj}from"react/jsx-runtime";var Po="sf-card",E2={min:0,max:90,step:5,fallback:0,unit:"%"},y7=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],Lj="68%",q3={desktop:20,phone:20,side:40,sidePhone:24},wL="sf-box-sides",CL={min:0,max:200,step:10};function We(e){return typeof e=="string"&&e.trim()!==""}function Eo(e,t){let a=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(a)||a<=0)return null;let s=(Math.min(E2.max,Math.max(E2.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) ${Lj})`}}function Vo(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 No={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}},kL=new Set(Object.keys(No)),Hj=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),ML=new Set(["ProductGrid"]);function gu(e,t){let a=e.render;e.render=s=>{if(t?.(s))return a(s);let c=R9(s.sectionPaddingTop,s.sectionPaddingBottom,s.sectionPaddingTopPhone,s.sectionPaddingBottomPhone),l=a(s);return c?Aj("div",{className:c.className,style:c.style,children:l}):l}}var SL={name:"sectionPadding",applies:(e,t,a)=>t.isSection(e)&&!Hj.has(e)&&!!a&&typeof a.render=="function",panel(e,t,a){kL.has(t)||ML.has(t)||(e.fields={...e.fields,...a.spacingFields({phone:!0})})},draw(e,t){if(kL.has(t)){let a=e.render,s=No[t];e.render=c=>{let l=by(c,s);return a({...c,padTop:l.top,padBottom:l.bottom})};return}if(ML.has(t)){gu(e);return}gu(e,t==="Flex"?a=>We(a.bgImage):void 0)}},Fj=["Heading","Text"],LL={name:"blockPadding",applies:(e,t,a)=>Fj.includes(e)&&!!a&&typeof a.render=="function",panel(e,t,a){e.fields={...e.fields,...a.spacingFields({phone:!0})}},draw(e){gu(e)}};import{jsx as u6,Fragment as Tj,jsxs as Pj}from"react/jsx-runtime";import{useEasel as TL}from"efficient-easel/easel";import{LayersIcon as Ej}from"efficient-easel/icons";import{SettingsDrill as Vj,SettingsField as Nj}from"efficient-easel/panel";import{default as AL}from"efficient-easel/screen/components/AddBlockRow";import{default as HL}from"efficient-easel/screen/components/AddChildRow";import{SlotChildActionsProvider as Op1,useSlotChildActions as FL}from"efficient-easel/screen/components/SlotChildActionsContext";function _j({parent:e,parentType:t,label:a,rowName:s,onSelectChild:c,onAddChild:l,nestDepth:r=0}){let o=Aa(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=Pj(Tj,{children:[g?u6("p",{className:"sf-note",children:g}):null,d.map((f,w)=>u6(Vj,{name:s(f),onOpen:()=>c(u,w,String(f.props.id),t)},String(f.props.id??`${u}-${w}`))),n?u6(AL,{choices:n,onPick:f=>l(m,i,f,d.length,t)}):h.fixed?null:u6(HL,{label:h.addLabel,blocked:v,onAdd:()=>l(m,i,h.childType,d.length,t)})]});return u6("div",{className:"sf-slot-rows",children:a?u6(Nj,{label:p(a),icon:u6(Ej,{}),value:String(d.length),children:b}):b})}function Ij(e,t){return Aa(e)?.spec?.notice?.(t)??null}function PL({parentType:e}){let{selectedItem:t}=TL(l=>l);if(!t||t.type!==e)return null;let a=Aa(e)?.slot,s=a&&Array.isArray(t.props[a])?t.props[a]:[],c=Ij(e,s);return c?u6("p",{className:"sf-note",children:c}):null}function Rj(e,t){return Aa(t)?.source==="footer"?e.blockRowName:e.childRowName}function EL({parentType:e,label:t}){let{appState:a,selectedItem:s}=TL(r=>r),c=FL();if(!c||!s||s.type!==e)return null;let l=e===rz?il(a?.data,String(s.props.id)):0;return u6(_j,{parent:s,parentType:e,label:t,rowName:Rj(c,e),onSelectChild:c.selectChild,onAddChild:c.addChild,nestDepth:l})}var VL="grayscale(1) contrast(1.03)",NL="Black and white";function Bj(e){return e===!0?{filter:VL}:{}}function Zj(e){let{filter:t}=Bj(e);return t?{style:{filter:t}}:{}}var Qa="sf-photo-grayscale",Dj=`@media (hover:hover){.${Qa}{filter:${VL};transition:filter 160ms ease}.${Qa}:hover{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Qa}{transition:none}}`;function Ue(e,t){return typeof e=="boolean"?e?Zj(!0):{}:t===!0?{className:Qa}:{}}function _L(e){return e===!0?{[Qa]:Dj}:{}}import{AlignLeftIcon as qj,BlackAndWhiteIcon as Wj,ContrastIcon as Uj,HeightIcon as jj,TypeIcon as Kj}from"efficient-easel/icons";var Oj=["eyebrow","heading","title","body","intro","button","link","label","number","value","name","price","date","caption","note","quote","tag","meta"],Gj=new Set(Oj);function IL(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 g6=e=>Q2(e,s1("Height",d6(jj,{}),ie.min,ie.max,ie.step,ie.fallback,ie.unit)),H4={ctaText:T("Button",u2.text),ctaHref:H1("Button link")},V5=()=>v1("Alignment",d6(qj,{}),[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}],"left"),_o=()=>v1("Tone",d6(Uj,{}),[{label:"Default",value:"default"},{label:"Muted",value:"dim"}],"default"),u3=e=>x5({...No[e],keys:{top:"padTop",bottom:"padBottom"},group:!1}),N5=(e,t)=>({type:"custom",render:()=>d6(EL,{parentType:e,label:t})}),Io=e=>({type:"custom",render:()=>d6(PL,{parentType:e})});function $j(e){let{photographyGrayscale:t}=I3();return l1(NL,t===!0,d6(Wj,{})).render(e)}function je(){return{type:"custom",render:e=>d6($j,{...e})}}var U1=Object.keys(z5("full"));function Ke(e){let t=IL(e);return t?d6(c4,{noun:t}):d6(Kj,{})}import{createContext as Yj,useContext as Xj}from"react";import{jsx as w7,jsxs as vu}from"react/jsx-runtime";function fu(e){return A9(e)??void 0}var bu=Yj({}),RL=3;function xu({tag:e,name:t,desc:a,href:s,imageSrc:c,imageLabel:l,price:r}){let{showPrice:o,cardStyle:i,partStyles:n,editing:h}=Xj(bu),m=i==="bordered"?" border border-line":i==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",u=fu(c),d=g=>h?{[b8]:g}:{},v=g=>cr(n?.[x8(g)]?.role,Sw[g],pl);return vu(L1,{href:s||"#",className:`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${m}`,children:[w7("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:w7(k0,{label:l||"collection.jpg",src:u})}),w7("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"}}),vu("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&&w7("span",{...d("tag"),style:v("tag"),className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.25em] opacity-70",children:M(e)}),t&&w7("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&&z0(a).map((g,b)=>w7("p",{...d("body"),style:v("body"),className:"max-w-[420px] text-[length:var(--size-body,14px)] leading-[1.5] opacity-80",children:M(g)},b)),o&&r&&w7("span",{...d("price"),style:v("price"),className:"font-mono text-[length:var(--size-label,15px)] tracking-[0.05em] text-accent",children:M(r)}),vu("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",w7("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]})}import{createContext as hK,useCallback as mK,useContext as pK,useEffect as uK,useRef as dK,useState as wu}from"react";import{useState as Jj}from"react";function Ro(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 BL(e){return e==="below"}import{jsx as K4,jsxs as $e}from"react/jsx-runtime";function zu({build:e,hiddenMobile:t,alwaysShowOverlay:a,forceHover:s,index:c,total:l,ratio:r,captionPlace:o}){let[i,n]=Jj(!1),h=BL(o),m=$e("div",{className:["sf-card group relative overflow-hidden bg-surface-2",Ro(r),t?"max-[800px]:hidden":""].join(" "),children:[$e("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:[K4(k0,{label:e.imageLabel,src:e.imageSrc}),K4("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),K4("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&&K4(_3,{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&&$e("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&&K4("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:e0(e.process)}),$e("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&&K4("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&&K4("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&&K4("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:K4("span",{children:e0(e.finish)})})]})]});return h?$e("div",{className:t?"max-[800px]:hidden":"",children:[m,$e("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&K4("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)&&K4("div",{className:"mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim",children:e0(e.finish||e.car)})]})]}):m}import{createContext as Qj,useContext as eK,useEffect as tK,useLayoutEffect as aK,useRef as yu,useState as sK}from"react";import{createPortal as cK}from"react-dom";import{Fragment as iK,jsx as es,jsxs as nK}from"react/jsx-runtime";var lK=".sf-themed-content",ZL="sf-section-accent";function rK(e,t){let a={},s=!1,c=[];for(let l=e;l&&l!==t;l=l.parentElement)c.push(l);for(let l of c.reverse()){l.classList.contains(ZL)&&(s=!0);let r=l.style;if(r)for(let o=0;o<r.length;o+=1){let i=r.item(o);i.startsWith("--")&&(a[i]=r.getPropertyValue(i))}}return{className:s?`contents ${ZL}`:"contents",style:a}}function oK(e){let t=e.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])");return Array.from(t).filter(a=>!a.hasAttribute("hidden")&&a.getAttribute("aria-hidden")!=="true")}var DL=Qj(()=>{});function F8({open:e,onClose:t,label:a,onPrev:s,onNext:c,className:l="",style:r,children:o}){let i=yu(null),n=yu(null),[h,m]=sK(null);aK(()=>{if(!e){m(null);return}let v=i.current;if(!v)return;let g=v.closest(lK)??v.ownerDocument.body;m({host:g,theme:rK(v,g)})},[e]);let u=yu({onClose:t,onPrev:s,onNext:c});u.current={onClose:t,onPrev:s,onNext:c};let d=e&&h!==null;return tK(()=>{if(!d)return;let v=n.current,g=v?.ownerDocument??document,b=g.activeElement;v?.focus();let f=k=>{if(k.key==="Escape")u.current.onClose();else if(k.key==="ArrowLeft")u.current.onPrev?.();else if(k.key==="ArrowRight")u.current.onNext?.();else if(k.key==="Tab"&&v){let S=oK(v);if(S.length===0){k.preventDefault(),v.focus();return}let H=S[0],I=S[S.length-1],P=g.activeElement,D=!!P&&v.contains(P)&&P!==v;if(k.shiftKey&&(!D||P===H))k.preventDefault(),I.focus();else if(!k.shiftKey&&(!D||P===I))k.preventDefault(),H.focus();else{k.preventDefault();let E=S.indexOf(P);S[k.shiftKey?E-1:E+1]?.focus()}}},w=g.defaultView??window;w.addEventListener("keydown",f);let z=g.body.style.overflow;return g.body.style.overflow="hidden",()=>{w.removeEventListener("keydown",f),g.body.style.overflow=z,b&&b.isConnected&&b.focus()}},[d]),e?nK(iK,{children:[es("span",{ref:i,hidden:!0}),h&&cK(es("div",{className:h.theme.className,style:h.theme.style,children:es("div",{ref:n,role:"dialog","aria-modal":"true","aria-label":a,tabIndex:-1,onClick:t,className:`fixed inset-0 z-(--sf-layer-lightbox) outline-none ${l}`,style:r,children:es(DL.Provider,{value:t,children:o})})}),h.host)]}):null}function Ye({className:e="absolute right-5 top-5 flex h-10 w-10 cursor-pointer items-center justify-center border border-fg-dim/40 text-fg-dim transition-colors hover:border-accent hover:text-accent",style:t,label:a="Close",children:s="\xD7"}){let c=eK(DL);return es("button",{type:"button","aria-label":a,onClick:l=>{l.stopPropagation(),c()},className:e,style:t,children:s})}import{Fragment as Xe,jsx as Q0,jsxs as d3}from"react/jsx-runtime";var ts=hK({}),as="data-gallery-grid",Cu="data-gallery-tile";function gK(e,t){let[a,s]=wu(null);return uK(()=>{let c=e.current,l=c?.closest(`[${as}]`);if(!c||!l)return;let r=()=>{let i=Array.from(l.querySelectorAll(`[${Cu}]`)),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 OL=[{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 vK(e,t){return(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||t}function fK(e){let t=(e.photos??[]).map(l=>l?.src).filter(l=>!!l),a=e.image||t[0]||"",s=[a,...t].filter(l=>!!l),c=vK(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 ss({editing:e=!1,previewHover:t,ratio:a,captionPlace:s,...c}){let{galleryHref:l="/gallery",submitHref:r="/contact",previewHover:o}=pK(ts),i=fK(c),n=i.photos??(i.imageSrc?[i.imageSrc]:[]),h=dK(null),m=mK(H=>{h.current=H},[]),u=gK(h,e),d=e&&(!!t||!!o),[v,g]=wu(!1),[b,f]=wu(0),w=()=>f(H=>(H-1+n.length)%n.length),z=()=>f(H=>(H+1)%n.length),k=n[b]??i.imageSrc??"",S=Q0(zu,{build:i,forceHover:d,index:u?.index,total:u?.total,ratio:a,captionPlace:s});return d3(Xe,{children:[e?Q0("div",{ref:m,[Cu]:"",className:"block w-full text-left",children:S}):Q0("button",{ref:m,[Cu]:"",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:S}),Q0(F8,{open:v,onClose:()=>g(!1),label:`${i.car} on ${i.wheel}`,onPrev:n.length>1?w:void 0,onNext:n.length>1?z:void 0,className:"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(Ye,{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:[k&&Q0("img",{src:k,alt:`${i.car} \u2014 ${b+1} of ${n.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},k),n.length>1&&d3(Xe,{children:[Q0("button",{type:"button","aria-label":"Previous photo",onClick:w,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:z,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:M(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:M(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(Xe,{children:[Q0("dt",{className:"text-fg-dim",children:"Wheel"}),Q0("dd",{className:"text-fg",children:M(i.wheel)})]}),i.process&&d3(Xe,{children:[Q0("dt",{className:"text-fg-dim",children:"Process"}),Q0("dd",{className:"text-fg",children:M(i.process)})]}),i.finish&&d3(Xe,{children:[Q0("dt",{className:"text-fg-dim",children:"Finish"}),Q0("dd",{className:"text-fg",children:M(i.finish)})]}),i.car&&d3(Xe,{children:[Q0("dt",{className:"text-fg-dim",children:"Vehicle"}),Q0("dd",{className:"text-fg",children:M(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 yK,useContext as wK,useEffect as Bo,useId as CK,useMemo as kK,useState as V2}from"react";var bK=14,xK=3;function ku(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function zK(e,t){let a=new Date(`${e}T00:00:00`);return a.setDate(a.getDate()+t),ku(a)}async function GL(e,t,a={}){let s=a.days??bK,c=a.read??y8.getAvailability,l=0,r=0;for(let o=0;o<s;o++){if(a.signal?.aborted)return{outcome:"unreadable"};let i=zK(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>=xK)return{outcome:"unreadable"}}}return r===s?{outcome:"noneInWindow",days:s}:{outcome:"unreadable"}}import{jsx as LK}from"react/jsx-runtime";var qL=yK(null);function C7(){let e=wK(qL);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var Mu=[{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 MK(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 Su={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"2026-01-01T00:00:00.000Z",timezone:"UTC",customerTimezone:"",manageToken:"example"};function SK(e,t){return e&&t?.length===0}function WL({editing:e=!1,previewConfirmation:t=!1,children:a}){let s=CK(),c=kK(()=>ku(new Date),[]),[l,r]=V2(),[o,i]=V2(""),[n,h]=V2(""),[m,u]=V2(c),[d,v]=V2(c),[g,b]=V2(!1),[f,w]=V2(null),[z,k]=V2(),[S,H]=V2(""),[I,P]=V2(""),[D,E]=V2(""),[F,_]=V2(""),[Z,G]=V2(""),[V,j]=V2(()=>Dm()),[N,Q]=V2(null),[W,U]=V2(!1),[i1,y1]=V2(!1),[K,c1]=V2(null),[b1,$]=V2("");Bo(()=>{$(Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC")},[]),Bo(()=>{let c0=!1;return y8.listServices().then(l0=>{c0||(r(l0.results),i(l0.currency),h(X1=>X1||l0.results[0]?.id||""))}).catch(()=>{c0||r([])}),()=>{c0=!0}},[]),Bo(()=>{if(g||!n)return;let c0={aborted:!1};return H(""),k(void 0),c1(null),w(null),U(!0),GL(n,c,{signal:c0}).then(l0=>{if(!c0.aborted){if(l0.outcome==="found"){u(l0.date),v(l0.date),k(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||U(!1)}),()=>{c0.aborted=!0}},[g,n,c]),Bo(()=>{if(!g||!n||!m)return;let c0=!1;return H(""),k(void 0),c1(null),w(null),U(!0),y8.getAvailability(n,m).then(l0=>{c0||(k(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||U(!1)}),()=>{c0=!0}},[m,g,n]);let u1=l?.find(c0=>c0.id===n),x1=u1?.depositAmountDue!=null,X0=!!(!e&&!i1&&u1&&S&&I.trim()&&D.trim()&&!x1);async function o0(c0){if(c0.preventDefault(),!(!X0||!u1)){y1(!0),c1(null);try{let l0=await y8.create({serviceId:u1.id,start:S,customer:{name:I.trim(),email:D.trim(),phone:F.trim()},notes:Z.trim(),idempotencyKey:V,customerTimezone:b1});Q(l0),j(Dm())}catch(l0){c1(l0 instanceof W4&&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 W4&&l0.status===409&&(H(""),y8.getAvailability(u1.id,m).then(k).catch(()=>{}))}finally{y1(!1)}}}let I1=SK(e,l);return LK(qL.Provider,{value:{fieldPrefix:s,editing:e,services:I1?Mu:l,currency:I1?"AUD":o,serviceId:I1?Mu[0].id:n,setServiceId:h,service:I1?Mu[0]:u1,requiresPayment:I1?!1:x1,date:m,earliestDate:d,setDate:u,setDateTouched:b,availability:I1?MK(m):z,loadingSlots:I1?!1:W,noSlotsMessage:f,selectedStart:I1?`${m}T09:00:00.000Z`:S,setSelectedStart:H,customerTimezone:b1,name:I,setName:P,email:D,setEmail:E,phone:F,setPhone:_,notes:Z,setNotes:G,confirmation:N??(t?Su:null),submitting:i1,error:K,canSubmit:I1?!1:X0,handleSubmit:o0,sample:!!I1},children:a})}import{jsx as Zo,Fragment as UL,jsxs as jL}from"react/jsx-runtime";var AK="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",KL={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 c3(e){let{variant:t="primary",arrow:a,glyphBefore:s,className:c,style:l,children:r,href:o,newTab:i,...n}=e,h=`${AK} ${KL[t]??KL.primary} ${c??""}`,m=s?jL(UL,{children:[a!==null&&Zo("span",{"aria-hidden":!0,className:"inline-flex",children:a??"\u2192"}),r]}):jL(UL,{children:[r,a!==null&&Zo("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",children:a??"\u2192"})]});return o?Zo(r0,{href:o,className:h,style:l,...i?{target:"_blank",rel:"noopener noreferrer"}:{},children:m}):Zo("button",{type:"button",className:h,style:l,...n,children:m})}import{jsx as A0,jsxs as H3}from"react/jsx-runtime";var cs="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 HK(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 $L(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 YL(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 ls="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function Lu({number:e,children:t}){return H3("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 Do({eyebrow:e,heading:t,intro:a}){return H3("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 Oo({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}=C7();return a?H3("div",{className:"flex flex-col gap-9",style:e,children:[H3("div",{children:[A0(Lu,{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 H3("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}),H3("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 ",HK(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."})]}),H3("div",{children:[A0(Lu,{number:"02",children:"Choose a date and time"}),A0(Z2,{separate:!0,htmlFor:`${t}-date`,label:"Date",required:!0,labelFace:ls,children:A0("input",{id:`${t}-date`,type:"date",min:i,value:o,onChange:f=>{h(!0),n(f.target.value)},className:cs,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=>H3("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:$L(f.start,b||m.timezone)}),b&&b!==m.timezone&&H3("span",{className:"mt-0.5 block text-[9px] font-normal tracking-[0.08em] opacity-70",children:[$L(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&&H3("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 Go({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}=C7();return H3("div",{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-7",style:t,children:[A0(Lu,{number:"03",children:"Your details"}),H3("div",{className:"flex flex-col gap-4",children:[A0(Z2,{separate:!0,htmlFor:`${a}-name`,label:"Name",required:!0,labelFace:ls,children:A0("input",{id:`${a}-name`,type:"text",autoComplete:"name",value:c,onChange:g=>l(g.target.value),className:cs,required:!0})}),A0(Z2,{separate:!0,htmlFor:`${a}-email`,label:"Email",required:!0,labelFace:ls,children:A0("input",{id:`${a}-email`,type:"email",inputMode:"email",autoComplete:"email",value:r,onChange:g=>o(g.target.value),className:cs,required:!0})}),A0(Z2,{separate:!0,htmlFor:`${a}-phone`,label:"Phone",labelFace:ls,children:A0("input",{id:`${a}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:i,onChange:g=>n(g.target.value),className:cs})}),A0(Z2,{separate:!0,htmlFor:`${a}-notes`,label:"What would you like to cover?",labelFace:ls,children:A0("textarea",{id:`${a}-notes`,rows:4,value:h,onChange:g=>m(g.target.value),className:`${cs} 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(c3,{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 qo({successMessage:e}){let{confirmation:t,customerTimezone:a}=C7();return t?H3("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-9",role:"status",children:[H3("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:YL(t.startAt,t.customerTimezone||a||t.timezone)}),t.customerTimezone&&t.timezone!==t.customerTimezone&&H3("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",YL(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(c3,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:t!==Su,variant:"ghost",className:"mt-7",children:"Manage booking"})]}):null}var Wo=["step","name","value","note"],Au={step:"Step",name:"Name",value:"Value",note:"Note"},Uo={step:"styleStep",name:"styleName",value:"styleValue",note:"styleNote"},XL={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 FK(e){return typeof e=="string"&&v5.includes(e)?e:null}var TK={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:900};function JL(e){let t={};for(let a of Wo){let s=FK(e[Uo[a]]);if(!s)continue;let c=V9({role:s},TK);c.fontFamily&&(t[XL[a].font]=c.fontFamily),c.fontSize&&(t[XL[a].size]=c.fontSize)}return t}import{jsx as Je}from"react/jsx-runtime";var QL=["head","booking","details","confirm"],eA={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function Hu({region:e,eyebrow:t,heading:a,intro:s,buttonLabel:c,successMessage:l,...r}){let{confirmation:o,services:i}=C7(),n=JL(r);return e==="head"?Je("div",{className:"min-[960px]:col-span-2",style:n,children:Je(Do,{eyebrow:t,heading:a,intro:s})}):e==="confirm"?o?Je("div",{className:"min-[960px]:col-span-2",style:n,children:Je(qo,{successMessage:l})}):null:o||!i||i.length===0?null:e==="booking"?Je(Oo,{style:n}):e==="details"?Je(Go,{buttonLabel:c,style:n}):null}import{jsx as K0,Fragment as PK,jsxs as F4}from"react/jsx-runtime";var T8="solid",Fu=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function tA(e){return I2(Fu,T8,e)}var Tu="sf-secnum-outline",aA="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",sA=`@supports (-webkit-text-stroke: 1px currentColor){.${Tu}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var rs=(e,t=!1)=>typeof e=="string"?Y(e,t):e,Qe=(e,t=!1)=>typeof e=="string"?M(e,t):e;function s0({num:e,title:t,link:a,logo:s,description:c,accent:l,accentNum:r,numStyle:o=T8,look:i="standard",titleAccent:n,accentTracking:h="-0.02em",spaceBelow:m,rowGap:u,descriptionSize:d,className:v="",eyebrowLook:g=ur}){let b=m??(i==="editorial"?"mb-[60px]":"");if(i==="editorial"){let H=!!t||!!n;return F4("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"?K0(V1,{text:e,className:"pb-2"}):K0("span",{className:"pb-2",children:e})),H&&F4("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&&F4(PK,{children:[" ",K0("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:h},children:n})]})]}),c&&K0("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 F4("div",{className:H||void 0,children:[e&&(typeof e=="string"?K0(V1,{text:e,look:g,className:"mb-4 block"}):K0("span",{className:"mb-4 block",children:e})),t&&K0("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:rs(t)})]})}if(i==="statement"){let H=`${b} ${v}`.trim();return F4("div",{className:H||void 0,children:[e&&(typeof e=="string"?K0(V1,{text:e,look:g,className:"mb-4 block"}):K0("span",{className:"mb-4 block",children:e})),t&&K0("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:rs(t,!0)})]})}if(i==="natural"){let H=`flex max-w-[680px] flex-col ${u??"gap-5"} ${b} ${v}`.replace(/\s+/g," ").trim();return F4("div",{className:H,children:[e&&(typeof e=="string"?K0(V1,{text:e,look:g}):K0("span",{children:e})),t&&K0("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:rs(t)}),c&&K0("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 F4("div",{className:H||void 0,children:[e&&(typeof e=="string"?K0(V1,{text:e,look:g,className:"mb-4 block"}):K0("span",{className:"mb-4 block",children:e})),t&&K0("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:rs(t)})]})}let f=!!c||!!a,w=!!t,z=tA(o)==="outlined",k="font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.3em]",S=null;if(e)if(z)S=K0("span",{className:`${aA} text-fg-dim ${Tu}`,children:Qe(e)});else if(r&&!l&&typeof e=="string"){let H=e.indexOf("/"),I=H===-1?e:e.slice(0,H),P=H===-1?"":e.slice(H);S=F4("span",{className:k,children:[K0("span",{className:"text-accent",children:Qe(I)}),P&&K0("span",{className:"text-fg-dim",children:Qe(P)})]})}else S=K0("span",{className:`${k} ${l?"text-accent":"text-fg-dim"}`,children:Qe(e)});return F4("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&&K0("style",{children:sA}),F4("div",{className:"flex flex-col items-start gap-3",children:[s?.src&&K0("img",{src:H2(s.src),alt:s.alt,className:"h-8 w-auto object-contain"}),S]}),w&&K0("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:rs(t)}),f&&F4("div",{className:"flex flex-col items-end gap-3 max-[800px]:items-start",children:[c&&K0("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:Qe(c)}),a&&F4(r0,{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:[Qe(a.text),K0("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}import{jsx as T4,jsxs as os}from"react/jsx-runtime";function EK(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function cA({eyebrow:e,title:t}){return os("div",{className:"flex flex-col gap-4",children:[e&&T4(V1,{text:e,scaled:!1}),t&&T4("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 jo({body:e,buttonLabel:t,consent:a,form:s,submission:c,showForm:l,resolving:r,editing:o}){return os("div",{className:"flex flex-col gap-7",children:[e&&z0(e).map((i,n)=>T4("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:M(i)},n)),l&&(s?c.done?T4("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:Ze(s)}):os("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",EK(i)?"col-span-2":""].join(" ");return i.type==="checkbox"?os("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:[T4(f7,{field:i,value:c.valueOf(i.key),onChange:h=>c.set(i.key,h),className:"mt-0.5 size-4 accent-accent"}),os("span",{children:[i.label,i.required?T4("span",{className:"text-accent",children:" *"}):null]})]},i.key):T4(f7,{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)}),T4(De,{value:c.honeypot,onChange:c.setHoneypot}),c.error&&T4("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:c.error}),t&&T4("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":M(t)})]}):T4("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&&T4("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:M(a)})]})}var Ko=["field","tick","thanks"],Pu={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},$o={field:"styleField",tick:"styleTick",thanks:"styleThanks"},lA={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 VK(e){return typeof e=="string"&&v5.includes(e)?e:null}var NK={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:900};function rA(e){let t={};for(let a of Ko){let s=VK(e[$o[a]]);if(!s)continue;let c=V9({role:s},NK);c.fontFamily&&(t[lA[a].font]=c.fontFamily),c.fontSize&&(t[lA[a].size]=c.fontSize)}return t}import{jsx as Yo}from"react/jsx-runtime";var oA=["head","form"],iA={head:"Head",form:"Form"};function Eu({region:e,eyebrow:t,title:a,body:s,buttonText:c,consent:l,formSlug:r,form:o,editing:i=!1,...n}){let h=H5(r,o),m=v7({form:h,formSlug:r,editing:i}),u=rA(n);return e==="head"?Yo("div",{style:u,children:Yo(s0,{look:"statement",num:t,title:a})}):Yo("div",{style:u,children:Yo(jo,{body:s??"",buttonLabel:c??"",consent:l??"",form:h,submission:m,showForm:!!h||i,resolving:h===void 0,editing:i})})}var _K={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>QL.map(e=>({region:e,name:eA[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:()=>oA.map(e=>({region:e,name:iA[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:RL},()=>({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:()=>OL.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};iz(_K);function et(e,t){let a={};for(let s of Object.keys(e))a[s]={...e[s],...t[s]};return a}import{jsx as IK}from"react/jsx-runtime";import{OpacityIcon as RK}from"efficient-easel/icons";var nA={fields:{_gContent:x("Content"),eyebrow:T("Eyebrow","Limited release"),title:O("Heading","Banner headline"),body:O("Body","A line or two of supporting copy."),_gBackground:x("Background image"),imageSrc:q1("Image","image/*"),overlay:s1("Overlay",IK(RK,{}),0,100,5,60,"%"),_gButton:x("Button"),...H4,_gLayout:x("Layout")}};import{jsx as DK}from"react/jsx-runtime";import{jsx as is,jsxs as Vu,Fragment as BK}from"react/jsx-runtime";import{Fragment as ZK}from"react";function hA({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:Vu("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 Vu(ZK,{children:[r>0&&is("span",{className:"opacity-40",children:"/"}),l.href&&!o?is(r0,{href:l.href,className:"hover:text-fg",children:R0(l.label)}):is("span",{className:o?"text-fg":void 0,children:R0(l.label)})]},r)}),t&&Vu(BK,{children:[is("span",{className:"opacity-40",children:"\xB7"}),is("span",{children:M(t)})]})]})}function $4(e,t,a){return e||(a?.isEditing?p(t):void 0)}function C1(e,t,a){let s=Array.isArray(e)?e:[];return s.length?s:a?.isEditing?t:[]}function y(e,t,a){let s=F2(e);if(!s.hidden)return $4(s.text,t,a)}function e2(e,t,a){return F2(e).hidden?"":y(e,t,a)}function W3(e,t,a){return{text:y(e,u2.text,a),href:t||u2.href}}var Nu={meta:"Trailing note"},OK=()=>[{label:p("Home"),href:"/"},{label:p("Section"),href:""}],mA={label:"Breadcrumb",defaultProps:{items:[],meta:""},render:({items:e,meta:t,puck:a})=>DK(hA,{items:C1(e,OK(),a),meta:y(t,Nu.meta,a),editing:a?.isEditing})};var pA={fields:{_gContent:x("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:q("Label"),href:e3(q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:T("Trailing note",Nu.meta)}};import{jsx as g3,jsxs as GK}from"react/jsx-runtime";import{ButtonIcon as qK,ButtonIconIcon as WK,IconAfterTextIcon as UK,IconBeforeTextIcon as jK,StylesIcon as KK,WidthIcon as $K}from"efficient-easel/icons";import*as YK from"efficient-easel/icons";import{SettingsField as XK}from"efficient-easel/panel";import{useSelectedFields as gA}from"efficient-easel/easel";import{IconPicker as JK,Segmented as QK}from"efficient-shell/ui";function Xo(e){return typeof e=="boolean"?e:!0}var _u=["none","arrow-right","arrow-long-right","arrow-up-right","chevron-right","external","cart","bag","tag","email","location","play","download","search","car"];function Iu(e){return typeof e=="string"&&_u.includes(e)?e:void 0}function uA(e,t){return Iu(e)??(Xo(t)?"arrow-right":"none")}function Jo(e){return e==="before"?"before":"after"}function dA(e){return e==="fill"?"fill":"fit"}var Ru=e=>({...Fl({type:"custom",render:()=>g3(Tl,{})},"always"),reachedBy:e});function e$(e){let t=(e==="none"?"no-symbol":e).replace(/(^|-)([a-z])/g,(s,c,l)=>l.toUpperCase()),a=YK[`${t}Icon`];return a?g3(a,{size:16}):null}var t$=_u.map(e=>({value:e,icon:e$(e)}));function a$({value:e,onChange:t}){let a=gA(),s=a.values.href,c=typeof e=="string"?e:e&&typeof e=="object"&&"text"in e?String(e.text??""):"";return g3(By,{label:"Button",icon:g3(qK,{size:18}),text:c,onTextChange:t,link:typeof s=="string"?s:"",onLinkChange:l=>a.onChange("href",l)})}function s$({value:e,onChange:t}){let a=gA(),s=uA(e,a.values.arrow),c=Jo(a.values.iconPosition);return g3(XK,{label:p("Icon"),icon:g3(WK,{size:18}),children:GK("div",{className:"flex items-center gap-2",children:[g3(JK,{label:p("Icon"),value:s,emptyValue:"none",options:t$,onChange:t}),s!=="none"&&g3(QK,{label:p("Icon position"),value:c,onChange:l=>a.onChange("iconPosition",l),options:[{value:"before",icon:g3(jK,{size:16}),label:g3("span",{className:"sr-only",children:p("Icon before text")}),title:p("Icon before text")},{value:"after",icon:g3(UK,{size:16}),label:g3("span",{className:"sr-only",children:p("Icon after text")}),title:p("Icon after text")}]})]})})}var vA={fields:{label:Ky(q("Button"),e=>g3(a$,{value:e.value,onChange:e.onChange})),href:{...H1("Button link"),...Ru("label")},_dSize:Y1("Size"),widthFit:v1("Width",g3($K,{}),[{label:"Fit content",value:"fit"},{label:"Fill",value:"fill"}],"fit"),_gStyle:x("Style"),variant:v1("Style",g3(KK,{}),[{label:"Filled",value:"primary"},{label:"Outline",value:"ghost"}],"primary"),icon:{type:"custom",render:e=>g3(s$,{value:e.value,onChange:e.onChange})},iconPosition:Ru("icon"),arrow:Ru("icon"),_dLayout:Y1("Layout"),align:V5()}};import{jsx as xA}from"react/jsx-runtime";import{ColumnsIcon as n$,StylesIcon as h$}from"efficient-easel/icons";import{jsx as o$}from"react/jsx-runtime";import{jsx as tt,Fragment as c$,jsxs as Bu}from"react/jsx-runtime";var l$="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))]",r$="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 fA({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:tt("section",{className:"relative z-[2] bg-surface",children:Bu("div",{className:l?r$:l$,children:[l?null:Bu(c$,{children:[(t??"").trim()&&tt(V1,{text:t??"",look:e,className:"mb-4 block"}),(a??"").trim()&&tt("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&&tt("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)=>Bu("div",{className:"bg-bg p-8 max-[800px]:p-7",children:[tt("div",{className:"mb-3 font-heading3 text-[length:var(--size-headingSmall,20px)] font-medium uppercase tracking-[0.02em] text-fg",children:M((h.title??"").trim()||"Card title")}),tt("p",{className:"text-[length:var(--size-body,15px)] leading-[1.6] text-fg-dim",children:M((h.body??"").trim()||"A short line about this card.")})]},m))})]})})}var ns={eyebrow:"Label",title:"Section *heading.*"},i$=()=>[{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.")}],bA={label:"Cards",defaultProps:{eyebrow:"",title:"",items:[],columns:3},render:e=>{let t=O1(e.headPlacement)==="own-box",a=s=>t?void 0:s;return o$(fA,{look:o4(e.eyebrowLook,"Cards"),eyebrow:a(y(e.eyebrow,ns.eyebrow,e.puck)),title:a(y(e.title,ns.title,e.puck)),omitHead:t,items:C1(e.items,i$(),e.puck),columns:e.columns,editing:e.puck?.isEditing})}};var zA={fields:{_gContent:x("Content"),eyebrow:T("Eyebrow",ns.eyebrow),eyebrowLook:g1("Eyebrow style",xA(h$,{}),[...k4],l7("Cards")),title:O("Heading",ns.title),items:{type:"array",label:"Cards",arrayFields:{title:f1("Card title"),body:E1("Card body")},defaultItemProps:{title:"",body:""},getItemSummary:e=>e?.title||e?.body||"Card"},_gStyle:x("Style"),columns:s1("Columns",xA(n$,{}),2,4,1,3)},resolveFields:(e,{fields:t,parent:a})=>G1(W1(t,a,U1),e.props.headPlacement,Z1.Cards.headRows)};import{jsx as m$}from"react/jsx-runtime";import{StickyIcon as p$}from"efficient-easel/icons";var yA={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:e3(q("Active tab","All")),_gLinks:x("Links"),links:{type:"array",label:"Right links",arrayFields:{label:q("Label"),href:e3(q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:x("Style"),sticky:l1("Stick under header",!0,m$(p$,{}))}};import{jsx as b$}from"react/jsx-runtime";import{StylesIcon as x$}from"efficient-easel/icons";import{jsx as v$}from"react/jsx-runtime";import{jsx as r2,jsxs as Y4}from"react/jsx-runtime";function Zu(e){return Number.isInteger(e)?String(e):String(Math.round(e*10)/10)}var wA=[100,70,46,30,19,12];function CA(e){return`color-mix(in srgb, var(--accent) ${wA[e%wA.length]}%, var(--bg))`}function u$({data:e,suffix:t}){let a=Math.max(...e.map(s=>s.value),0)||1;return r2("div",{className:"flex w-full flex-col gap-6",children:e.map((s,c)=>Y4("div",{children:[Y4("div",{className:"mb-2 flex items-baseline justify-between gap-4",children:[r2("span",{className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg/60",children:M(s.label)}),Y4("span",{className:"font-display text-[length:var(--size-body,16px)] font-medium text-fg",children:[Zu(s.value),t]})]}),r2("div",{className:"h-[10px] border border-line bg-bg",children:r2("div",{className:"h-full bg-accent",style:{width:`${Math.max(s.value/a*100,s.value===0?0:2)}%`}})})]},c))})}function d$({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 Y4("svg",{viewBox:"0 0 640 300",className:"w-full",role:"img","aria-hidden":!0,children:[[.25,.5,.75,1].map(h=>r2("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)),r2("line",{x1:a.l,x2:640-a.r,y1:a.t+c,y2:a.t+c,stroke:"var(--site-line)",strokeWidth:"1.5"}),r2("path",{d:n,fill:"var(--accent)",opacity:"0.13"}),r2("path",{d:i,fill:"none",stroke:"var(--accent)",strokeWidth:"2.5"}),o.map((h,m)=>Y4("g",{children:[r2("circle",{cx:h.x,cy:h.y,r:"4",fill:"var(--accent)"}),Y4("text",{x:h.x,y:h.y-12,textAnchor:"middle",className:"font-display",fontSize:"14",fill:"var(--fg)",children:[Zu(e[m].value),t]}),r2("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 g$({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:CA(i)};return l+=n*c,h});return Y4("div",{className:"flex w-full flex-wrap items-center justify-center gap-10",children:[r2("svg",{viewBox:"0 0 200 200",className:"w-[220px] max-w-full -rotate-90",role:"img","aria-hidden":!0,children:r.map((o,i)=>r2("circle",{cx:"100",cy:"100",r:s,fill:"none",stroke:o.ink,strokeWidth:"34",strokeDasharray:`${o.dash} ${c-o.dash}`,strokeDashoffset:-o.off},i))}),r2("ul",{className:"flex min-w-[200px] flex-1 flex-col gap-3",children:e.map((o,i)=>Y4("li",{className:"flex items-baseline gap-3",children:[r2("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] flex-shrink-0 rotate-45",style:{background:CA(i)}}),r2("span",{className:"flex-1 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.12em] text-fg/60",children:M(o.label)}),r2("span",{className:"font-display text-[length:var(--size-body,15px)] font-medium text-fg",children:t?`${Zu(o.value)}${t}`:`${Math.round(o.value/a*100)}%`})]},i))})]})}function kA({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?r2(d$,{data:n,suffix:i}):m==="donut"?r2(g$,{data:n,suffix:i}):r2(u$,{data:n,suffix:i});return r2("section",{className:"relative z-[2] border-y border-line bg-surface",children:Y4("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:[Y4("div",{children:[(e??"").trim()&&r2("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:M(e??"")}),(t??"").trim()&&r2("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()&&r2("p",{className:"mt-5 max-w-[46ch] text-[length:var(--size-body,15px)] leading-relaxed text-fg/65",children:a})]}),Y4("div",{children:[u,(r??"").trim()&&r2("p",{className:"mt-4 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.14em] text-fg/40",children:r})]})]})})}var hs={eyebrow:"By the numbers",title:`A picture worth
|
|
23
23
|
*a thousand rows.*`},f$=()=>[{label:p("Before"),value:"9"},{label:p("After"),value:"3"},{label:p("With us"),value:"1"}],MA={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})=>v$(kA,{eyebrow:y(e,hs.eyebrow,o),title:y(t,hs.title,o),body:a,items:C1(s,f$(),o),chartStyle:l,valueSuffix:r,caption:c,editing:o?.isEditing})};var SA={fields:{_gContent:x("Content"),eyebrow:T("Chip label",hs.eyebrow),title:O("Heading",hs.title),body:O("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:T("Caption","Illustrative example"),_gStyle:x("Style"),chartStyle:g1("Chart style",b$(x$,{}),[{label:"Bars (comparison / funnel)",value:"bars"},{label:"Line (trend)",value:"line"},{label:"Donut (split of a whole)",value:"donut"}],"bars"),valueSuffix:T("Value suffix","%")}};import{jsx as I$}from"react/jsx-runtime";import{jsx as A1,Fragment as Gu,jsxs as X4}from"react/jsx-runtime";import{useId as w$,useState as C$}from"react";import{InspectorUpLevel as ps}from"efficient-easel/chrome";import{useEasel as k$}from"efficient-easel/easel";import{ListField as FA}from"efficient-easel/fields";import{SettingsField as TA}from"efficient-easel/panel";import{ClockIcon as LA,ContrastIcon as M$,GlobeIcon as S$,LinkIcon as L$,LocationIcon as A$,PhoneIcon as H$,SquareIcon as F$,TypeIcon as qu}from"efficient-easel/icons";var z$=["tall","square","wide"],y$="tall";function Qo(e){return z$.includes(String(e??""))?String(e):y$}var o2={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"},ms=[{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 ei(e){let t=String(e??"").split(" \xB7 ");return{state:(t[0]??"").trim(),country:(t[1]??"").trim()}}var P8="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 Du(e){return kl(e)}var Wu=(e,t)=>t||e?iC(e,t):p("Ungrouped");function T$(e){let t=[];return e.forEach((a,s)=>{let c=c7(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 Ou({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 PA={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"},P$={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent, #2563eb)",cursor:"pointer"},EA={...P$,color:"#d85a30"};function v6({label:e,value:t,placeholder:a,textarea:s,icon:c,onChange:l,onBlur:r,onKeyDown:o}){let i=w$();return A1(TA,{label:e,icon:c??A1(qu,{}),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 E$=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],V$=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function AA({label:e,icon:t,options:a,value:s,onChange:c}){return A1(TA,{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 HA({props:e,setSection:t,headOnly:a}){let s=r=>String(e[r]??""),c=e.mapTheme||o2.mapTheme,l=o2;return X4(Gu,{children:[!a&&A1(Ou,{children:p("Section")}),A1(v6,{label:p("Section number"),value:s("sectionNumber"),placeholder:l.sectionNumber,onChange:r=>t({sectionNumber:r})}),A1(v6,{label:p("Heading"),textarea:!0,value:s("heading"),placeholder:l.heading,onChange:r=>t({heading:r})}),A1(v6,{label:p("Body"),textarea:!0,value:s("tagline"),placeholder:l.tagline,onChange:r=>t({tagline:r})}),a?null:X4(Gu,{children:[A1(Ou,{children:p("City strip")}),A1(v6,{label:p("Eyebrow"),value:s("galleryKicker"),placeholder:l.galleryKicker,onChange:r=>t({galleryKicker:r})}),A1(v6,{label:p("Hint"),value:s("galleryHint"),placeholder:l.galleryHint,onChange:r=>t({galleryHint:r})}),A1(AA,{label:p("Shape"),icon:A1(F$,{}),options:V$,value:Qo(e.imageShape),onChange:r=>t({imageShape:r})}),A1(Ou,{children:p("Map & Theme")}),A1(AA,{label:p("Map theme"),icon:A1(M$,{}),options:E$,value:c,onChange:r=>t({mapTheme:r})})]})]})}function N$({cards:e,groupKey:t,onChange:a,onBack:s,onOpenCity:c,onNavigate:l}){let r=e.map((d,v)=>c7(d)===t?v:-1).filter(d=>d>=0),o=String(e[r[0]]?.groupName??""),i=new Set(e.map(c7).filter(d=>d!==t)),[n,h]=C$(t),m=d=>a(e.map(v=>c7(v)===t?{...v,...d}:v)),u=()=>{let d=n;if(d!==t){if(i.has(d)){h(t);return}a(e.map(v=>c7(v)===t?{...v,group:d}:v)),l(d)}};return X4("div",{className:"sf-locations-view",children:[A1(ps,{inline:!0,name:p("Section"),onSelect:s}),A1("div",{style:{fontSize:14,fontWeight:500,margin:"6px 0 10px"},children:Wu(t,o)}),A1(v6,{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(v6,{label:p("Group name"),value:o,placeholder:p("Shown beside the heading"),onChange:d=>m({groupName:d})}),A1(FA,{label:p("Cities in this group"),noun:p("city"),items:r.map(d=>e[d]),onChange:d=>a(nC(e,t,d)),newItem:()=>({..._m,group:t,groupName:o}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(d,v)=>X4("button",{type:"button",style:PA,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:EA,onClick:()=>{a(e.filter(d=>c7(d)!==t)),s()},children:p3("Delete group ({n} city)","Delete group ({n} cities)",r.length)})})]})}function VA({value:e,onChange:t}){let a=Array.isArray(e)?e:[],s=oC(),c=Mw(),l=T$(a),{appState:r,selectedItem:o}=k$(g=>g),i=ky(),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(oz,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 X4("div",{className:"sf-locations-view",children:[A1(ps,{inline:!0,name:p("Locations"),onSelect:()=>q4({level:"groups"})}),A1("div",{style:{fontSize:14,fontWeight:500,margin:"6px 0 10px"},children:p("Texts")}),A1(HA,{props:n,setSection:h,headOnly:!0})]});if(s.level==="image"){let g=a[s.index];return g?X4("div",{className:"sf-locations-view",children:[A1(ps,{inline:!0,name:String(g.name??"")||p("City"),onSelect:()=>q4({level:"city",index:s.index})}),A1("div",{style:{fontSize:14,fontWeight:500,margin:"6px 0 10px"},children:p("Image")}),A1(Ay,{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?X4("div",{className:"sf-locations-view",children:[A1(ps,{inline:!0,name:String(g.name??"")||p("City"),onSelect:()=>q4({level:"city",index:s.index})}),A1("div",{style:{fontSize:14,fontWeight:500,margin:"6px 0 10px"},children:p("Map")}),A1($l,{value:g.geocode,onChange:b=>m(s.index,{geocode:b}),label:"Coordinates"}),A1(v6,{label:p("Directions link"),icon:A1(L$,{}),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=c7(b),w=(k,S)=>m(g,{[k]:S}),z=(k,S,H,I=!1)=>A1(v6,{label:S,icon:H,textarea:I,value:String(b[k]??""),onChange:P=>w(k,P)});return X4("div",{className:"sf-locations-view",children:[A1(ps,{inline:!0,name:Wu(f,String(b.groupName??"")),onSelect:()=>q4({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(qu,{})),z("state",p("State / Province"),A1(qu,{})),z("country",p("Country"),A1(S$,{})),z("address",p("Address"),A1(A$,{}),!0),z("phone",p("Phone"),A1(H$,{})),z("hours",p("Opening hours"),A1(LA,{})),z("timezone",p("Timezone chip"),A1(LA,{})),A1("div",{style:{marginTop:12},children:A1("button",{type:"button",style:EA,onClick:()=>{t(a.filter((k,S)=>S!==g)),q4({level:"group",key:f})},children:p("Delete city")})})]})}if(s.level==="group")return l.some(g=>g.key===s.key)?A1(N$,{cards:a,groupKey:s.key,onChange:t,onBack:()=>q4({level:"groups"}),onOpenCity:g=>q4({level:"city",index:g}),onNavigate:g=>q4({level:"group",key:g})},s.key):d();function d(){return X4("div",{className:"sf-locations-view",children:[A1(HA,{props:n,setSection:h}),!c&&A1(Gu,{children:v()})]})}function v(){return A1(FA,{label:p("Locations"),noun:p("group"),items:l,onChange:g=>{let b=g.find(f=>!l.some(w=>w.key===f.key));t(hC(a,g.map(f=>f.key),f=>[{..._m,group:f,groupName:""}])),b&&q4({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=>X4("button",{type:"button",style:PA,onClick:()=>q4({level:"group",key:g.key}),children:[A1("span",{style:{fontWeight:500},children:Wu(g.key,g.name)}),X4("span",{style:{color:"var(--fg-dim, #999)"},children:[p3("{n} city","{n} cities",g.indices.length)," \u203A"]})]})})}return d()}var _$="/geocode.json";async function NA(e){let t=e.trim();if(!t)return null;if(!Nx())throw new Error("geocode_unavailable");let a=await fetch(`${pr()}${_$}?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 ti=e=>typeof e=="number"&&Number.isFinite(e);function ai(e){return e.some(t=>{let a=t?.geocode;return a?a.pending||a.manual&&a.lat===void 0&&a.lng===void 0?!0:ti(a.lat)&&a.lat!==t.lat||ti(a.lng)&&a.lng!==t.lng:!1})}async function si(e,t,{geocode:a=NA,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=ti(o.lat)&&o.lat!==r.lat?o.lat:r.lat,n=ti(o.lng)&&o.lng!==r.lng?o.lng:r.lng;return i!==r.lat||n!==r.lng?{...r,lat:i,lng:n}:r})}var _A={fields:{locations:{type:"custom",render:({value:e,onChange:t})=>I$(VA,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,a=t.locations??[];if(!ai(a))return e;let s=await si(a,c=>{let l=ei(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 DA}from"react/jsx-runtime";import{ClockIcon as j$,TagIcon as K$}from"efficient-easel/icons";import{jsx as U$}from"react/jsx-runtime";import{jsx as _5,jsxs as ci,Fragment as B$}from"react/jsx-runtime";import{useEffect as Z$,useState as RA}from"react";import{Fragment as R$,jsx as IA}from"react/jsx-runtime";function at({kind:e,children:t}){let a=Wz(e);return a?IA("span",{[Sz]:a.stamp,children:t}):IA(R$,{children:t})}var D$=24*3600*1e3,O$=[{key:"hours",label:"Hours"},{key:"minutes",label:"Minutes"},{key:"seconds",label:"Seconds"}];function G$(e,t){return Math.max(0,Math.ceil((e-t)/1e3))}function q$(e){let t=Date.parse((e??"").trim());return Number.isFinite(t)?t:null}var W$=e=>String(e).padStart(2,"0");function BA({title:e,zeroText:t,endsAt:a,showUnits:s=!0,editing:c=!1}={}){let l=q$(a),[r]=RA(()=>Date.now()+D$),o=l??(c?r:null),[i,n]=RA(()=>Date.now());if(Z$(()=>{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=G$(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 _5("section",{className:"relative z-[2] bg-bg",role:"timer","aria-live":"off",children:ci("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&&_5("p",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] text-fg-dim",children:M(u)}),h===0?d&&_5("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)}):ci(B$,{children:[_5("span",{className:"sr-only",children:v}),_5("div",{"aria-hidden":!0,className:"flex items-start gap-[clamp(8px,2vw,24px)]",children:O$.map((g,b)=>ci("div",{className:"contents",children:[b>0&&_5("span",{className:"font-mono text-[length:clamp(32px,7vw,80px)] leading-none text-accent",children:":"}),ci("div",{className:"flex min-w-0 flex-col items-center gap-2",children:[_5(at,{kind:um,children:_5("span",{"data-countdown-unit":g.key,...c?{[Y6]:um}:{},suppressHydrationWarning:!0,className:"font-mono text-[length:clamp(40px,8vw,96px)] font-medium leading-none tabular-nums text-fg",children:W$(m[b])})}),s&&_5(at,{kind:N9,children:_5("span",{...c?{[Y6]:N9}:{},className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.2em] text-fg-dim",children:g.label})})]})]},g.key))})]})]})})}var li={title:"Back online in",zeroText:"Almost done. Back very soon."},ZA={label:"Countdown",defaultProps:{...li,endsAt:"",showUnits:!0},render:({title:e,zeroText:t,endsAt:a,showUnits:s,puck:c})=>U$(BA,{title:e,zeroText:t,endsAt:a,showUnits:s,editing:c?.isEditing})};var OA={fields:{title:T("Heading",li.title),zeroText:T("At zero",li.zeroText),endsAt:ow("Ends",DA(j$,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:l1("Unit labels",!0,DA(K$,{}))}};var GA={fields:{html:{type:"textarea",label:"HTML"}}};import{jsx as Q$}from"react/jsx-runtime";import{StylesIcon as eY}from"efficient-easel/icons";var E8="line",Uu=[{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"}],$$={"stripes-fine":{ink:4,period:12},"stripes-medium":{ink:8,period:18},"stripes-bold":{ink:14,period:28}},qA=28,Y$="-45deg",X$="color-mix(in oklab, var(--accent) 50%, var(--bg))";function J$(e){return e!=="line"}function WA(e){return I2(Uu,E8,e)}function UA(e){if(!J$(e))return null;let{ink:t,period:a}=$$[e];return`repeating-linear-gradient(${Y$}, ${X$} 0 ${t}px, transparent ${t}px ${a}px)`}var jA={fields:{style:g1("Style",Q$(eY,{}),Uu,E8),spacing:{type:"select",options:[{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}]}}};import{jsx as lY}from"react/jsx-runtime";import{jsx as f6,jsxs as us}from"react/jsx-runtime";function tY(e,t){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||`section-${t+1}`}function aY(e){let t=[];for(let a of e.replace(/\r\n?/g,`
|
|
@@ -151,4 +151,4 @@ ${s}`:t.push({type:"p",text:s})});return t}var sY=()=>[{label:p("First section")
|
|
|
151
151
|
`;function LZ(){let{settings:e,selected:t,select:a,websiteName:s,templateChrome:c,templateName:l,chromePlaceholder:r,themeSwitchShown:o}=I3(),i=c?l?.trim()||p("Template"):s?.trim()||er,n=c||r;return $e1("div",{className:"sf-preview-header-pick sf-theme-surfaces","data-selected":t||void 0,onClick:h=>{h.stopPropagation(),a()},children:[SZ("style",{children:Ke1}),SZ(tb,{previewSettings:e??void 0,editorPreview:!0,showThemeToggle:o,wordmark:i,hideLogo:n,hideMenu:n})]})}import{Render as st1}from"efficient-easel/render";import{useEffect as Ye1,useState as Xe1}from"react";import{jsx as et1}from"react/jsx-runtime";var Je1=["none","always","on_scroll_up"],Qe1=e=>Je1.includes(e)?e:"always";function ab({sticky:e,topTextColor:t,heightPx:a,theme:s,children:c}){let l=Qe1(e),r=zZ(a),{headerRef:o,scrolled:i,navHidden:n}=vh({stickyMode:l,heightPx:r}),h=wh(t),m=h==="auto"?null:{[yh]:h},u=fh(s),d=bh(Oe()),[v,g]=Xe1(!1);Ye1(()=>{let w=o.current?.ownerDocument??document,z=()=>g(w.documentElement.getAttribute("data-theme")==="light");z();let k=new MutationObserver(z);return k.observe(w.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>k.disconnect()},[o]);let b=i||d,f=xh(v,d);return et1("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(${ir}, ${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 tt1={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"};function at1(e){return Array.isArray(e)&&e.length>0&&e.every(t=>!!t&&typeof t=="object"&&typeof t.type=="string")}function sb(e){let t=e.props,a=!1;if(e.type&&t)for(let[s,c]of Object.entries(tt1)){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(!at1(l))continue;let r=l.map(sb);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(sb);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(sb);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 rt1,jsx as cb}from"react/jsx-runtime";var ct1=null,lt1=()=>ct1??={...lb,root:{...lb.root,render:({children:e})=>cb(rt1,{children:e})}};function rb({group:e}){let t=AZ({root:{props:{}},content:[e],zones:{}}),a=e.props??{};return cb(ab,{sticky:a.sticky,topTextColor:a.topTextColor,heightPx:a.heightPx,theme:a.sectionAccent,children:cb(st1,{config:lt1(),data:t})})}import{jsx as HZ}from"react/jsx-runtime";function ob({editing:e=!1}){let{headerGroup:t}=bw();return e?t?HZ(rb,{group:t}):HZ(LZ,{}):null}import{jsx as ot1}from"react/jsx-runtime";var FZ={label:"Header",render:({puck:e})=>ot1(ob,{editing:e?.isEditing})};import{useEffect as It1,useState as lD}from"react";var TZ="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 db,useRef as St1,useState as sD}from"react";import{jsx as ib,jsxs as PZ}from"react/jsx-runtime";var it1="Please enter a valid email address.";function Vc({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 PZ("form",{className:[n,"flex flex-col gap-2"].filter(Boolean).join(" "),noValidate:!0,onSubmit:m=>{m.preventDefault(),c()},children:[PZ("div",{className:"flex items-stretch gap-2",children:[ib("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:"w-0 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"}),ib("button",{type:"submit",disabled:a==="sending",className:i,children:a==="sending"?"Sending\u2026":l})]}),(a==="error"||a==="invalid")&&ib("p",{role:"alert",className:"font-mono text-[11px] uppercase tracking-[0.18em]",style:{color:"var(--alert)"},children:a==="invalid"?it1:r})]})}import{jsx as t6,jsxs as ia}from"react/jsx-runtime";function Nc({vehicle:e,escape:t,override:a,verdict:s,showChangeCar:c,cascadeErrorNote:l,askNote:r}){let o=e.appliedName!=="";return ia("div",{className:"pb-2",children:[ia("div",{className:"mb-3 flex items-center justify-between gap-4 font-mono text-[13px] font-semibold uppercase tracking-[0.2em] text-fg",children:[t6("span",{children:"Vehicle Fitment"}),t]}),a?t6("div",{className:"flex flex-col gap-3",children:a}):o?ia("div",{className:"flex flex-col gap-3",children:[s,c&&t6("div",{children:t6("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"})})]}):ia("div",{className:"flex flex-col gap-3",children:[t6(X3,{cascade:e.cascade,compact:!0}),e.cascade.cascadeError&&t6("p",{className:"font-mono text-[12px] leading-relaxed tracking-[0.1em] text-fg-dim",children:l}),t6("span",{className:"font-mono text-[12px] tracking-[0.1em] text-fg-dim",children:r})]})]})}function nb({vehicle:e}){return e.appliedName?ia("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:[ia("span",{children:["Showing fitment for your"," ",t6("strong",{className:"font-semibold text-fg",children:e.appliedName})]}),t6("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 h5({tone:e,children:t}){return t6("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 nt1,useState as EZ}from"react";function kh(e,t){let[a,s]=EZ(null),[c,l]=EZ(!1),r=t?.make??"",o=t?.model??"",i=t?.year??null,n=t?.modification??"",h=t!==null;return nt1(()=>{if(!h||i===null){s(null),l(!1);return}let m=!0;return s(null),l(!0),BS(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 Mh(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 Sh={fits:"Fits",doesNotFit:"Not your size",unknown:"Unknown"};function ht1(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=>Ua(e,l.sku));return c.includes("fits")?"fits":c.every(l=>l==="doesNotFit")?"doesNotFit":"unknown"}var hb={fits:{color:"var(--accent)",dashed:!1},doesNotFit:{color:void 0,dashed:!1},unknown:{color:void 0,dashed:!0}};function VZ(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=>ht1(e,t,n)==="fits"),c=n=>{let h=n4(n);return h?U4(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 Z4,jsxs as B4}from"react/jsx-runtime";function mb({slug:e,variants:t,vehicle:a,manualMode:s,setManualMode:c}){let{answer:l,loading:r}=kh(e,s?null:vo(a.applied?.vehicle)),o=a.appliedName;return Z4(Nc,{vehicle:a,escape:Z4("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?B4(h5,{tone:"quiet",children:[Z4("strong",{className:"font-semibold text-fg",children:"You are choosing by size."}),B4("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."," ",Z4(L1,{href:"/contact",className:"text-accent hover:underline",children:"Ask us if you are unsure \u2192"})]})]}):null,verdict:Z4(mt1,{answer:l,loading:r,car:o,variants:t,onChange:a.clear}),showChangeCar:!1,cascadeErrorNote:B4(NZ,{children:["Vehicle data is unavailable right now. Pick your size above, or"," ",Z4(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 mt1({answer:e,loading:t,car:a,variants:s,onChange:c}){if(t||!e)return B4(h5,{tone:"quiet",children:[Z4("strong",{className:"font-semibold text-fg",children:"Checking your car\u2026"})," ",B4("span",{children:["Reading the factory tyre sizes for your ",a,"."]})]});let l=VZ(e,s),r=e.status==="doesNotFit"?"You can still order any size here \u2014 check it suits your car first.":"",o=l.length===0?Mh(e):"",i=o&&r?`${o} ${r}`:o||r;return B4(h5,{tone:e.status==="fits"?"good":"quiet",children:[B4("span",{className:"block",children:[e.status==="fits"?B4("strong",{className:"font-semibold text-accent",children:["\u2713 Made in a size your ",a," takes"]}):e.status==="doesNotFit"?B4("strong",{className:"font-semibold text-fg",children:["Not made in a size your ",a," takes"]}):B4("strong",{className:"font-semibold text-fg",children:["We cannot check this tyre against your ",a]}),B4("span",{className:"whitespace-nowrap",children:[" \xB7 ",Z4("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?Z4("span",{className:"mt-1.5 block",children:i}):null,l.length>0?B4(NZ,{children:[Z4("span",{className:"mt-1.5 block",children:"Your car takes:"}),Z4("ul",{className:"mt-2 flex flex-wrap gap-1.5",children:l.map(n=>{let h=n.made?hb.fits:hb.doesNotFit;return Z4("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 ${Sh.fits}`:n.size},n.size)})})]}):null]})}import{useEffect as _Z,useState as IZ}from"react";var Lh="(max-width: 720px) 88vw, (max-width: 1100px) 44vw, 700px";function RZ(e,t,a){return a<=1?0:((e+t)%a+a)%a}function BZ(e,t,a){return[{glyph:"\u25C1",label:"Previous angle",onClick:()=>a(RZ(e,-1,t))},{glyph:"\u27F3",label:"Reset to first angle",onClick:()=>a(0)},{glyph:"\u25B7",label:"Next angle",onClick:()=>a(RZ(e,1,t))}]}function pt1(e){let{props:t}=Gx({src:e,alt:"",fill:!0,sizes:Lh}),a=new window.Image;return t.sizes&&(a.sizes=t.sizes),t.srcSet&&(a.srcset=t.srcSet),a.src=t.src,a.decode()}function ZZ(e,t,a=pt1){let[s,c]=IZ(()=>new Set),[l,r]=IZ(t),o=e.join(`
|
|
152
152
|
`);_Z(()=>{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 _Z(()=>{i&&l!==t&&r(t)},[i,l,t]),i?t:l}import{Fragment as dt1,jsx as C3,jsxs as J3}from"react/jsx-runtime";function pb({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(yg),n=XI({wheel:s,applied:o,fit:a.fit,resolving:a.resolving});return C3(Nc,{vehicle:a,escape:C3("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?J3(h5,{tone:"quiet",children:[C3("strong",{className:"font-semibold text-fg",children:"You are choosing by the numbers."}),J3("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."," ",C3(L1,{href:"/fitment",className:"text-accent hover:underline",children:"Talk to an engineer \u2192"})]})]}):null,verdict:C3(ut1,{verdict:n,car:a.appliedName}),showChangeCar:n.state!=="fits"&&n.state!=="checking",cascadeErrorNote:J3(dt1,{children:["Vehicle data is unavailable right now. Pick your wheel by its specs instead, or"," ",C3(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 ut1({verdict:e,car:t}){switch(e.state){case"checking":return J3(h5,{tone:"quiet",children:[C3("strong",{className:"font-semibold text-fg",children:"Checking fitment\u2026"})," ",J3("span",{children:["Reading the factory wheel specs for your ",t,"."]})]});case"fits":return J3(h5,{tone:"good",children:[J3("strong",{className:"font-semibold text-accent",children:["\u2713 Fits your ",t]}),C3("ul",{className:"mt-2 flex flex-wrap gap-1.5",children:e.checks.map(a=>C3("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 J3(h5,{tone:"good",children:[J3("strong",{className:"font-semibold text-accent",children:["\u2713 Fits your ",t]}),C3("ul",{className:"mt-2 flex flex-wrap gap-1.5",children:e.checks.map(a=>C3("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))}),J3("span",{className:"mt-2 block border-l-2 border-alert pl-2.5",children:[C3("strong",{className:"font-semibold text-fg",children:"Check the offset. "}),p9(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."," ",C3(L1,{href:"/contact",className:"text-accent hover:underline",children:"Ask us if you are unsure \u2192"})]})]});case"no-fit":return J3(h5,{tone:"bad",children:[J3("strong",{className:"font-semibold",style:{color:"var(--alert)"},children:["\u2717 Does not fit your ",t]}),C3("span",{className:"mt-1.5 block",children:p9(e.failure)})]});case"unknown":return J3(h5,{tone:"quiet",children:[C3("strong",{className:"font-semibold text-fg",children:e.missing==="vehicle"?`We cannot check this wheel against your ${t}`:"We cannot check this wheel"}),J3("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."," ",C3(L1,{href:"/contact",className:"text-accent hover:underline",children:"Ask us before you order \u2192"})]})]});default:return null}}import{useState as qZ}from"react";import{useCallback as OZ,useRef as gt1,useState as vt1}from"react";function DZ(e,t,a){return{productSlug:e,email:a.trim(),size:t?He(t):""}}function GZ(){let[e,t]=vt1("idle"),a=gt1(!1),s=OZ(()=>{a.current=!1,t("idle")},[]),c=OZ(async({productSlug:l,size:r,email:o,dryRun:i=!1})=>{if(!a.current){if(!be(o)){t("invalid");return}a.current=!0,t("sending");try{i||await v0.createPreOrderIntent(DZ(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 na,jsxs as ha}from"react/jsx-runtime";function ub({wheel:e,editing:t=!1}){let a=e.sizePairs??[],[s,c]=qZ(a.length>0?0:-1),[l,r]=qZ(""),{status:o,submit:i,reset:n}=GZ(),h=s>=0?a[s]??null:null;function m(){i({productSlug:e.slug,size:h,email:l,dryRun:t})}return ha("div",{className:"flex flex-col gap-5 border-t border-line pt-[18px]",children:[ha("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:[na("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&&ha("div",{children:[ha("div",{className:"mb-3.5 font-mono text-[13px] font-semibold uppercase tracking-[0.22em] text-fg",children:["Size \xB7"," ",na("span",{className:"text-accent",children:h?He(h):"Select a size"})]}),na("div",{className:"flex flex-wrap gap-1.5",children:a.map((u,d)=>{let v=d===s;return ha("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&&na("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),na("span",{className:"block text-[14px] tracking-[0.18em]",children:He(u)})]},He(u))})})]}),o==="sent"?ha("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,"."]}):na(Vc,{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 ft1}from"react";import{Fragment as bt1,jsx as Ah}from"react/jsx-runtime";function Hh({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]=ft1(null),w=e||"";if(!(w!==""&&b!==w))return Ah(bt1,{children:a});let k=Ah(_3,{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?Ah("div",{className:u,children:k}):k;return d?Ah("button",{type:"button",onClick:d,"aria-label":g,className:v,children:S}):S}function WZ(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 jZ="Image for reference only. Actual product may vary.",UZ=e=>String(Number(e));function KZ(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=UZ(t.diameter);if(!(l.sizes.length===0||l.sizes.includes(`${r}x${UZ(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 $Z,jsx as D4,jsxs as zt1}from"react/jsx-runtime";function Fh(e,t){return e.captions[t]?.trim()||`Photo ${t+1}`}function Th({text:e}){return e==="FusionForge\xAE"?zt1($Z,{children:["FusionForge",D4(i6,{})]}):D4($Z,{children:e})}function YZ(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:cn(h.brand,h.name),photos:v.slice(0,1),tint:void 0,stageImage:()=>D4(p6,{image:u?.image??h.coverImage,size:m,type:d,sizes:Lh,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:D4(mb,{slug:h.slug,variants:h.variants,vehicle:t.vehicle,manualMode:t.manualMode,setManualMode:t.setManualMode}),vehicleMemory:t.manualMode?null:D4(nb,{vehicle:t.vehicle}),vehicleAnswersSpecs:!1,preOrder:null}}let s=e.source,c=LN(s,t.shown.finish),l=D7(s,t.part),r=En(t),o=Ag(c,r),i=o?[...o]:WZ(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})=>D4(Hh,{src:h,alt:m,fill:!0,sizes:Lh,className:v==="cover"?"object-cover":"object-contain",priority:!0,onImageClick:d,imageButtonClassName:"relative block h-[88%] w-[88%] cursor-zoom-in",imageButtonLabel:u,fallback:D4(C8,{spokes:s.spokes,mesh:s.mesh,className:"block h-[70%] w-[70%]"})}),thumbImage:({photo:h,alt:m})=>D4(Hh,{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:D4(C8,{spokes:s.spokes,mesh:s.mesh,className:"block h-[55%] w-[55%]"})}),captions:n.map(h=>c.captions?.[h]),thumbFallbackCells:4,galleryHint:xt1(n,c,r,t.manualMode),referenceNote:KZ(c,l,r,o!=null)?jZ:"",metaValue:c.name,specCaption:l?js(l):"",originCaption:s.process==="FusionForge\xAE"?"FusionForge\xAE \xB7 Hybrid":`${s.process} \xB7 1-piece`,unitLabel:"per wheel",vehicle:D4(pb,{selection:t,spec:l?js(l):"",vehicle:t.vehicle,wheel:s}),vehicleMemory:t.manualMode?null:D4(nb,{vehicle:t.vehicle}),vehicleAnswersSpecs:!0,preOrder:D4(ub,{wheel:s,editing:a})}}function xt1(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 yt1,useContext as wt1,useEffect as Ct1,useState as XZ}from"react";import{jsx as Mt1}from"react/jsx-runtime";var JZ="storefront-wishlist";function kt1(e){let t=JSON.parse(e);return Array.isArray(t)?t.filter(a=>typeof a=="string"):[]}var QZ=yt1(null);function oe0({children:e}){let[t,a]=XZ([]),[s,c]=XZ(!1);Ct1(()=>{let o=t3.getItem(JZ);try{o&&a(kt1(o))}catch{}c(!0)},[]);function l(o){let i=t.includes(o)?t.filter(n=>n!==o):[...t,o];a(i),t3.setItem(JZ,JSON.stringify(i))}let r={slugs:t,ready:s,has:o=>t.includes(o),toggle:l,count:t.length};return Mt1(QZ.Provider,{value:r,children:e})}function eD(){let e=wt1(QZ);if(!e)throw new Error("useWishlist must be used within a WishlistProvider");return e}var tD="data-option-row";import{Fragment as m5,jsx as w1,jsxs as K1}from"react/jsx-runtime";var Lt1=4e3;function At1(e){return e?[e.year,e.make,e.model,e.modification].join("-"):""}var Ht1=.72;function Ft1(e){let t=e.trim().split(/\s+/).filter(Boolean);if(t.length===0)return;let a=t.map((s,c)=>s.length+(t.length>1&&c===t.length-1?1:0));return`calc(100cqi / ${(Math.max(...a)*Ht1).toFixed(2)})`}function ma({product:e,selection:t,onLightbox:a,editing:s=!1,pricePlacement:c="top",showVehicleFitment:l=!0,heroLayout:r=e8,imageRatio:o=t8,textAlign:i=g9,showSpecTable:n=!0,showPriceQuote:h=!0,galleryMode:m=a8,imageFit:u=s8}){let d=Jt(r),v=eh(i),g=th(o),b=ah(m),f=lB(sh(u),bN(e)),w=d==="imageRight"?`${100-g}fr ${g}fr`:`${g}fr ${100-g}fr`,{picked:z,pick:k,qty:S,setQty:H,choice:I,setChoice:P,angleIdx:D,setAngleIdx:E,showValidation:F,setShowValidation:_,manualMode:Z,vehicle:G,rows:V,facts:j,part:N,outOfStock:Q,offer:W,preOrder:U,canAddToCart:i1,currency:y1,price:K,set:c1,msrpLabel:b1}=t,$=YZ(e,t,s),{bullets:u1}=yL(),x1=hN(e),X0=uN(e),o0=l?$.vehicle:null,I1=l?$.vehicleMemory:null,[c0,l0]=sD(!1);db(()=>{let e1=()=>{l0(document.documentElement.getAttribute("data-theme")==="light")};e1();let z1=new MutationObserver(e1);return z1.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>z1.disconnect()},[]);let{add:X1,open:X2,warmCatalog:Q1}=i4();db(()=>{s||Q1(e.kind)},[s,e.kind,Q1]);let d2=V.filter(e1=>!U||e1.values.length>0),b0=d2.filter(e1=>e1.role==="resolves"),d1=d2.filter(e1=>e1.role==="describes"&&!xN(X0,e1.key)),$1=d1.findIndex(e1=>e1.chosen===null),u0=(!o0||!$.vehicleAnswersSpecs||t.fitmentSet)&&Fn(V,U)?$1===-1?d1:d1.slice(0,$1+1):[],P0=[...b0,...u0],J0=K1("div",{className:"flex items-baseline gap-5 border-t border-line pt-[18px]",children:[b1&&w1("div",{className:"font-mono text-[length:var(--size-label,15px)] text-fg-dim line-through",children:b1}),w1("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:x1?_C(K,y1):fe(K,y1)}),K.priced&&w1("div",{className:"font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:$.unitLabel}),K.setTotal!=null&&K1("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:[W.quantityLabel,": ",B2(c1,y1)]})]}),q0=St1(null);return db(()=>{s||q0.current===e.slug||(q0.current=e.slug,IC({itemId:N?`${e.slug}|${N.id}`:e.slug,itemName:e.name,variant:$.metaValue,pricePerSet:K.setTotal??K.fromSetTotal??0,currency:y1}))},[s,e.slug,e.name,$.metaValue,N,K,y1]),K1(m5,{children:[w1("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((e1,z1)=>K1("span",{children:[z1>0&&K1(m5,{children:[w1("span",{className:"mx-3 text-accent",children:"/"}),w1("wbr",{})]}),e1.href?w1(L1,{href:e1.href,className:"hover:text-fg",children:w1(Th,{text:e1.label})}):w1("span",{className:"text-fg",children:w1(Th,{text:e1.label})})]},`${e1.label}-${z1}`))}),K1("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:minmax(0,1fr)]"].join(" "),style:{...c0?{}:{background:"var(--section-bg)"},...d==="stacked"?{}:{"--hero-cols":w}},children:[K1("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:[K1("div",{className:b==="tiled"?"min-w-0 flex-1":void 0,children:[w1(Et1,{name:e.name,view:$,angleIdx:D,onSelect:E,isLight:c0,onLightbox:a,fit:f}),$.referenceNote&&w1("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:$.referenceNote}),$.galleryHint&&w1("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:$.galleryHint})]}),b!=="main"&&w1(Vt1,{name:e.name,view:$,angleIdx:D,onSelect:E,isLight:c0,tiled:b==="tiled"})]}),K1("div",{className:["flex flex-col gap-7",v==="center"?"items-center text-center":""].filter(Boolean).join(" "),style:d==="imageRight"?{order:1}:void 0,children:[K1("div",{className:"w-full [container-type:inline-size]",children:[K1("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:[w1("span",{children:w1(Th,{text:e.eyebrow})}),e.badge&&K1(m5,{children:[w1("span",{children:"\xB7"}),w1("span",{children:e.badge})]})]}),w1("h1",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(48px,5.5vw,84px)),var(--sf-heading-max,9999px),var(--hero-name-fit,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] leading-[0.92] tracking-[-0.035em]",style:{"--hero-name-fit":Ft1($.heading)},children:(()=>{let e1=$.heading.lastIndexOf(" ");if(e1===-1)return $.heading;let z1=$.heading.slice(0,e1),t0=$.heading.slice(e1+1);return K1(m5,{children:[z1," ",K1("em",{className:"font-normal italic text-accent",children:[t0,"."]})]})})()})]}),c!=="belowSpecs"&&h&&J0,I1,b0.map(e1=>w1(aD,{row:e1,onPick:k},e1.key)),U&&$.preOrder?K1(m5,{children:[c==="belowSpecs"&&h&&J0,$.preOrder]}):K1(m5,{children:[o0,u0.map(e1=>w1(aD,{row:e1,onPick:k},e1.key)),n&&w1(Tt1,{facts:j}),(W.packs.length>0||W.extra||W.spareCounts.length>0)&&K1("div",{className:"border-b border-line pb-[26px]",children:[W.packs.length>0&&K1(m5,{children:[w1("div",{className:"mb-3.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:"How many"}),w1("div",{className:"flex flex-wrap gap-1.5",children:W.packs.map(e1=>K1("button",{type:"button",onClick:()=>P(z1=>({...z1,unit:e1.value})),"aria-pressed":I.unit===e1.value,className:["relative cursor-pointer border-2 px-4 py-3 text-left font-mono uppercase transition-colors",I.unit===e1.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===e1.value?{background:"color-mix(in oklab, var(--accent) 14%, transparent)"}:void 0,children:[I.unit===e1.value&&w1("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),w1("span",{className:"block text-[length:var(--size-label,14px)] tracking-[0.18em]",children:e1.label})]},e1.value))})]}),W.extra&&K1("label",{className:`${W.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:[w1("input",{type:"checkbox",checked:I.spares>0,onChange:e1=>P(z1=>({...z1,spares:e1.target.checked?vr:0})),className:"h-4 w-4 cursor-pointer accent-[var(--accent)]"}),W.extra.label]}),W.spareCounts.length>0&&K1(m5,{children:[w1("div",{className:"mb-3.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:a9.howMany}),w1("div",{className:"flex flex-col gap-1.5 sm:flex-row sm:flex-wrap",children:W.spareCounts.map(e1=>{let z1=e1.value-i7,t0=I.spares===z1;return K1("button",{type:"button",onClick:()=>P(s2=>({...s2,spares:z1})),"aria-pressed":t0,className:["relative cursor-pointer border-2 px-4 py-3 text-left font-mono uppercase transition-colors",t0?"border-accent text-fg outline outline-1 outline-accent -outline-offset-1":"border-fg-dim/50 text-fg hover:border-accent"].join(" "),style:t0?{background:"color-mix(in oklab, var(--accent) 14%, transparent)"}:void 0,children:[t0&&w1("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),K1("span",{className:"block text-[length:var(--size-label,14px)] tracking-[0.18em]",children:[e1.value," \xB7 ",e1.label]})]},e1.value)})})]}),W.spareSide&&K1(m5,{children:[w1("div",{className:"mb-3.5 mt-[26px] font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:W.spareSide.label}),w1("div",{className:"flex flex-wrap gap-1.5",children:W.spareSide.options.map(e1=>{let z1=I.spareSide===e1.value;return K1("button",{type:"button",onClick:()=>P(t0=>({...t0,spareSide:e1.value})),"aria-pressed":z1,className:["relative cursor-pointer border-2 px-4 py-3 text-left font-mono uppercase transition-colors",z1?"border-accent text-fg outline outline-1 outline-accent -outline-offset-1":"border-fg-dim/50 text-fg hover:border-accent"].join(" "),style:z1?{background:"color-mix(in oklab, var(--accent) 14%, transparent)"}:void 0,children:[z1&&w1("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),w1("span",{className:"block text-[length:var(--size-label,14px)] tracking-[0.18em]",children:e1.label})]},e1.value)})})]})]}),c==="belowSpecs"&&h&&J0,K1("div",{className:TZ,children:[!(x1&&!K.priced)&&w1(Ka,{value:S,onChange:H,size:"large"}),x1&&!K.priced?w1(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:br}):K.priced?Q?w1("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"}):K1("button",{type:"button",[ue]:"",onClick:()=>{if(!i1){_(!0),window.setTimeout(()=>_(!1),Lt1);return}if(_(!1),s)return;let e1=TN(e,N,z,{choice:I,qty:S},{fitmentLabel:Z?$.specCaption:G.appliedName?`For ${G.appliedName}`:"",fitmentKey:Z?`manual|${$.specCaption}`:`vehicle|${At1(G.applied?.vehicle)}`});e1&&(X1(e1),X2())},"aria-disabled":!i1,className:["flex-1 px-6 py-4 font-mono text-[length:var(--size-label,14px)] font-bold uppercase tracking-[0.32em] transition-colors",i1?"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:i1?void 0:{background:"color-mix(in oklab, var(--accent) 6%, transparent)"},children:["Add to Cart",K.setTotal!=null?` \xB7 ${B2(c1,y1)}`:""]}):w1("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:n7}),w1(Nt1,{slug:e.slug,name:e.name})]}),Q&&N&&w1(_t1,{partNumbers:N.components.map(e1=>e1.partNumber),productSlug:e.slug},N.id),F&&(()=>{let e1=P0.filter(t0=>t0.chosen===null).map(t0=>t0.prompt.replace(/^Select\s+/i,""));if(o0&&$.vehicleAnswersSpecs&&!t.fitmentSet&&e1.push("vehicle fitment"),e1.length===0)return null;let z1=e1.length===1?e1[0]:e1.length===2?`${e1[0]} and ${e1[1]}`:`${e1.slice(0,-1).join(", ")}, and ${e1.at(-1)}`;return K1("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 ",z1," first."]})})()]}),u1.length>0&&w1("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((e1,z1)=>K1("li",{children:[w1("strong",{className:"font-bold text-accent",children:e1.label}),e1.detail?` ${Xa} ${e1.detail}`:""]},`${e1.label}-${z1}`))})]})]})]})}function Tt1({facts:e}){return e.length===0?null:K1("div",{className:"border-b border-line pb-[26px]",children:[w1("dl",{className:"flex flex-col gap-2",children:e.map(t=>K1("div",{className:"flex flex-wrap items-baseline gap-x-2 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.22em]",children:[K1("dt",{className:"text-fg-dim",children:[t.label," \xB7"]}),w1("dd",{className:"font-semibold text-fg",children:t.value.label})]},t.key))}),w1("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 aD({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 K1("div",{className:"border-b border-line pb-[26px]",[tD]:e.key,children:[K1("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 ",w1("span",{className:"text-accent",children:s??e.prompt})]}),e.values.length===0?K1("p",{className:"font-mono text-[length:var(--size-body,12px)] leading-relaxed tracking-[0.1em] text-fg-dim",children:[e.empty.text," ",w1(L1,{href:e.empty.href,className:"text-accent hover:underline",children:e.empty.linkText})]}):e.display==="swatch"?w1("div",{className:"grid grid-cols-2 gap-2",children:e.values.map(c=>{let l=c.value===e.chosen;return K1("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&&w1("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),w1("span",{className:"block h-5 w-5 shrink-0 rounded-full border border-fg-dim",style:{background:c.swatch}}),w1("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)})}):w1("div",{className:"flex flex-wrap gap-1.5",children:e.values.map(c=>{let l=c.value===e.chosen;return K1("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&&w1("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),w1("span",{className:"block text-[length:var(--size-label,14px)] tracking-[0.18em]",children:c.label}),c.note&&w1("span",{className:"mt-1 block text-[length:var(--size-label,11px)] tracking-[0.12em] text-fg-dim",children:c.note})]},c.value)})})]})}function cD(e){return e.photos.length>0?e.photos.length:e.thumbFallbackCells}var Pt1=6;function Et1({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=ZZ(t.photos,o),n=cD(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]?Fh(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 K1("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:[K1("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&&K1(m5,{children:[K1("span",{className:"text-accent",children:[String(a+1).padStart(2,"0")," / ",m]}),w1("span",{className:"text-fg-dim",children:"\xB7"})]}),w1("span",{children:e}),t.metaValue&&K1(m5,{children:[w1("span",{className:"text-fg-dim",children:"\xB7"}),w1("span",{className:"text-accent",children:t.metaValue})]})]}),h&&w1("div",{className:`absolute right-5 top-5 z-10 flex gap-1 ${g}`,children:BZ(a,n,s).map(w=>w1("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))}),K1("div",{className:b,children:[["top-3 left-3","top-3 right-3","bottom-3 left-3","bottom-3 right-3"].map((w,z)=>w1("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})]}),K1("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:[w1("span",{children:t.specCaption}),w1("span",{children:t.originCaption})]})]})}function Vt1({name:e,view:t,angleIdx:a,onSelect:s,isLight:c,tiled:l=!1}){let r=cD(t);return r<2?null:w1("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,Pt1)}, minmax(0, 1fr))`}:void 0,children:Array.from({length:r}).map((o,i)=>{let n=t.photos[i];return K1("button",{type:"button",onClick:()=>s(i),"aria-label":`View ${Fh(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:[w1("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 ${Fh(t,i)}`})]},i)})})}function Nt1({slug:e,name:t}){let{has:a,toggle:s}=eD(),c=a(e);return w1("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 _t1({partNumbers:e,productSlug:t}){let[a,s]=sD(""),{status:c,submit:l,reset:r}=nn();function o(){l({partNumbers:e,email:a,productSlug:t})}return c==="sent"?w1("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."}):w1(Vc,{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 Bt1,jsx as _c,jsxs as Zt1}from"react/jsx-runtime";function gb({slug:e,kind:t="wheel",editing:a=!1,pricePlacement:s,showVehicleFitment:c=!0,...l}){let[r,o]=lD(null),[i,n]=lD(!1);return It1(()=>{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?_c(A4,{size:"tall",children:"Couldn\u2019t load this product."}):r?_c(Rt1,{record:r,editing:a,pricePlacement:s,showVehicleFitment:c,...l}):_c(A4,{size:"tall",children:"Loading product\u2026"})}function Rt1({record:e,editing:t=!1,pricePlacement:a,showVehicleFitment:s=!0,...c}){let l=e.kind==="tyre"?Vn(e.tyre):Ks(e.wheel),r=vc(l,{editing:t}),o=gc();return Zt1(Bt1,{children:[_c(ma,{product:l,selection:r,onLightbox:o.open,editing:t,pricePlacement:a,showVehicleFitment:s,...c}),_c(Bt,{item:o.item,onClose:o.close})]})}import{Fragment as qt1,jsx as o8,jsxs as Wt1}from"react/jsx-runtime";var Dt1=D3;function Ph({editing:e=!1,pricePlacement:t,showVehicleFitment:a=!0,...s}){let c=$0();return o8(z2,{kinds:Dt1,type:"ProductHero",editing:e,children:c?o8(ma,{product:c.product,selection:c.selection,onLightbox:c.openLightbox,editing:e,pricePlacement:t,showVehicleFitment:a,...s}):e?o8(Ot1,{pricePlacement:t,showVehicleFitment:a,...s}):o8(A4,{size:"tall",children:"Bound to the current product \u2014 preview on a product page."})})}function Ot1({pricePlacement:e,showVehicleFitment:t,...a}){let s=z3(!0);return s?o8(Gt1,{product:s,pricePlacement:e,showVehicleFitment:t,...a}):o8(A4,{size:"tall",children:p("Loading sample product\u2026")})}function Gt1({product:e,pricePlacement:t,showVehicleFitment:a,...s}){let c=vc(e,{editing:!0}),l=gc();return Wt1(qt1,{children:[o8(ma,{product:e,selection:c,onLightbox:l.open,editing:!0,pricePlacement:t,showVehicleFitment:a,...s}),o8(Bt,{item:l.item,onClose:l.close})]})}import{jsx as Ic}from"react/jsx-runtime";function Ut1({source:e,editing:t=!1,pricePlacement:a=Xt,showVehicleFitment:s=!0,heroLayout:c=e8,imageRatio:l=t8,textAlign:r=g9,showSpecTable:o=!0,showPriceQuote:i=!0,galleryMode:n=a8,imageFit:h=s8}){let m={heroLayout:c,imageRatio:l,textAlign:r,showSpecTable:o,showPriceQuote:i,galleryMode:n,imageFit:h};return $0()||t&&M2()?Ic(Ph,{editing:t,pricePlacement:a,showVehicleFitment:s,...m}):e?.slug?Ic(gb,{slug:e.slug,kind:e.kind??"wheel",editing:t,pricePlacement:a,showVehicleFitment:s,...m}):t?Ic(A4,{size:"tall",children:p("Pick a product in the panel to fill this hero.")}):Ic(Ph,{pricePlacement:a,showVehicleFitment:s,...m})}var rD={label:"Product Hero",defaultProps:{source:null,pricePlacement:Xt,showVehicleFitment:!0,heroLayout:e8,imageRatio:t8,textAlign:g9,showSpecTable:!0,showPriceQuote:!0,galleryMode:a8,imageFit:s8},render:e=>Ic(Ut1,{source:e.source,editing:e.puck?.isEditing,pricePlacement:sB(e.pricePlacement),showVehicleFitment:e.showVehicleFitment??!0,heroLayout:Jt(e.heroLayout),imageRatio:th(e.imageRatio),textAlign:eh(e.textAlign),showSpecTable:e.showSpecTable??!0,showPriceQuote:e.showPriceQuote??!0,galleryMode:ah(e.galleryMode),imageFit:sh(e.imageFit)})};import{jsx as jt1}from"react/jsx-runtime";var oD={label:"Product",defaultProps:{code:"",finish:""},render:e=>jt1(nf,{code:e.code||void 0,finish:e.finish||void 0,wheel:e.wheel})};import{jsx as Kt1}from"react/jsx-runtime";var iD={label:"Search",defaultProps:{style:"icon"},render:({style:e,puck:t})=>Kt1(UB,{style:e,editing:t?.isEditing})};import{useEffect as Yt1,useRef as Xt1}from"react";import{jsx as Rc,jsxs as nD}from"react/jsx-runtime";var $t1={fits:{className:"font-medium",style:{color:"var(--green)"}},doesNotFit:{className:"text-fg-dim"},unknown:{className:"text-fg-dim"}};function vb({variants:e,answer:t,loading:a=!1}){return t?nD("div",{className:"mt-9",children:[Rc("p",{className:"max-w-[68ch] font-serif text-[length:var(--size-body,18px)] italic leading-[1.55] text-fg-dim",children:Mh(t)}),Rc("ul",{className:"mt-6 grid gap-[2px] border border-line bg-line",children:e.map(s=>{let c=Ua(t,s.sku),l=$t1[c];return nD("li",{className:"flex items-baseline justify-between gap-6 bg-bg px-[18px] py-4",children:[Rc("span",{className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.14em] text-fg",children:s.size}),Rc("span",{className:`font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] ${l.className}`,style:l.style,children:Sh[c]})]},s.sku)})})]}):a?Rc("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 fb,jsxs as hD}from"react/jsx-runtime";var bb="Will it fit *your car?*",xb="Pick your vehicle and we\u2019ll tell you which of these sizes matches what it came on.",zb="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",yb="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 wb({num:e,title:t=bb,description:a=xb,escapeText:s,escapeHref:c,omitHead:l=!1,slug:r,variants:o,onAnswer:i}){let n=I4({autoApply:!0}),{answer:h,loading:m}=kh(r,vo(n.applied?.vehicle)),u=Xt1(i);return u.current=i,Yt1(()=>{u.current?.(h)},[h]),hD("section",{className:l?yb:zb,children:[l?null:fb(s0,{num:e,title:t,description:a,accent:!0}),fb(X3,{cascade:n.cascade}),s&&c?hD("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,fb(vb,{variants:o,answer:h,loading:m})]})}import{jsx as Bc,jsxs as ea1}from"react/jsx-runtime";var Jt1=["tyre"];function Cb(e){return Bc(z2,{kinds:Jt1,type:"TyreFitment",editing:e.editing,children:Bc(Qt1,{...e})})}function Qt1({num:e,title:t,description:a,escapeText:s,escapeHref:c,omitHead:l=!1,editing:r=!1}){let o=$0(),i=z3(r&&!o),n=o?.product??i,h=n?.kind==="tyre"?n.source:null;return!h||h.variants.length===0?r?ea1("section",{className:l?yb:zb,children:[l?null:Bc(s0,{num:e,title:t||bb,description:a||xb,accent:!0}),Bc("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:Bc(wb,{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 ta1}from"react/jsx-runtime";var mD={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 ta1(Cb,{num:a(y(e.num,U0.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 i8,jsxs as dD}from"react/jsx-runtime";var pD="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",uD="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",aa1=[],sa1=["tyre"];function kb(e){return i8(z2,{kinds:sa1,type:"TyreSizes",editing:e.editing,children:i8(ca1,{...e})})}function ca1({num:e,title:t,description:a,editing:s=!1,omitHead:c=!1}){let l=$0(),r=z3(s&&!l),o=l?.product??r,i=o?.kind==="tyre"?o.source.variants:[],n=c?null:i8(s0,{num:e?M(e):void 0,title:Y(t||"Available *sizes.*",!1),description:M(a||"Every size this tyre is made in, with its own price and stock."),accent:!0});if(i.length===0)return s?dD("section",{className:c?uD:pD,children:[n,i8("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 dD("section",{className:c?uD:pD,children:[n,i8(la1,{variants:i,fieldUsage:l?.fieldUsage??aa1}),i8(s5,{text:h?uo:""})]})}function la1({variants:e,fieldUsage:t}){let{currency:a,formatPrice:s}=d0();return i8("div",{className:"grid grid-cols-3 gap-2 max-[1100px]:grid-cols-2 max-[720px]:grid-cols-1",children:e.map(c=>i8(uc,{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 ra1}from"react/jsx-runtime";var gD={label:"Tyre Sizes",defaultProps:{num:"",title:"",description:""},render:e=>{let t=O1(e.headPlacement)==="own-box",a=s=>t?void 0:s;return ra1(kb,{num:a(y(e.num,U0.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 vD={AlloyWheelsListing:v_,BrandStrip:IB,BundleOffer:OB,CartBlock:$B,CatalogFilterBar:iZ,CheckoutCTA:__,CollectionCard:hZ,Collections:O_,CompatibleTyres:bI,CountrySwitchBlock:mZ,DeliveryOptions:wI,DetailRows:II,EuTyreLabel:pZ,FitmentFinder:qI,FitmentTable:hR,Gallery:bR,GalleryB:AR,GalleryItem:uZ,Header:FZ,ProductGrid:KR,ProductHero:rD,ProductRef:oD,RelatedProducts:uB,SearchBlock:iD,SpecTable:HB,TyreFitment:mD,TyreSizes:gD};var oa1={AlloyWheelsListing:x_,BrandStrip:k_,BundleOffer:M_,CartBlock:S_,CatalogFilterBar:V_,CheckoutCTA:I_,CollectionCard:Z_,Collections:q_,CompatibleTyres:xI,CountrySwitchBlock:zI,DeliveryOptions:kI,DetailRows:BI,EuTyreLabel:ZI,FitmentFinder:WI,FitmentTable:mR,Gallery:yR,GalleryB:HR,GalleryItem:IR,Header:RR,ProductGrid:YR,ProductHero:rB,ProductRef:pB,RelatedProducts:dB,SearchBlock:gB,SpecTable:TB,TyreFitment:PB,TyreSizes:EB},G0=et(vD,oa1);import{jsx as x4,jsxs as Eh}from"react/jsx-runtime";function Sb(e={}){let t=dC();return x4(WL,{editing:e.editing,previewConfirmation:!!e.nodeId&&t===e.nodeId,children:x4(ia1,{...e})})}var fD="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]",Mb="grid gap-8 min-[960px]:grid-cols-[minmax(0,1fr)_minmax(360px,0.8fr)] min-[960px]:gap-12";function ia1({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:k,selectedStart:S,setSelectedStart:H,customerTimezone:I,name:P,setName:D,email:E,setEmail:F,phone:_,setPhone:Z,notes:G,setNotes:V,confirmation:j,submitting:N,error:Q,canSubmit:W,handleSubmit:U,sample:i1}=C7(),y1=i1?x4("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,K=n===void 0?x4("p",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",children:"Loading appointments\u2026"}):n?.length===0?x4("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?x4("section",{className:"relative z-[2] border-t border-line bg-surface",children:Eh("div",{className:fD,children:[y1,j?x4(l,{className:`${Mb} items-start`}):Eh("form",{onSubmit:U,children:[x4(l,{className:`${Mb} items-start`}),K]})]})}):x4("section",{className:"relative z-[2] border-t border-line bg-surface",children:Eh("div",{className:fD,children:[y1,x4(Do,{eyebrow:e,heading:t,intro:a}),j?x4(qo,{successMessage:c}):K||Eh("form",{onSubmit:U,className:Mb,children:[x4(Oo,{}),x4(Go,{buttonLabel:s})]})]})})}import{jsx as na1}from"react/jsx-runtime";var Lb={boxes:{type:"slot",allow:["BookingBox"]}},bD={label:"Booking Form",fields:Lb,defaultProps:{eyebrow:"",heading:"",intro:"",buttonLabel:"",successMessage:""},render:e=>na1(Sb,{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 xD={fields:{_gContent:x("Content"),eyebrow:q("Eyebrow"),heading:E1("Heading"),intro:E1("Introduction"),buttonLabel:q("Submit button"),successMessage:E1("Confirmation message"),boxes:Lb.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 zD={fields:{_gTextStyle:x("Text style"),...Object.fromEntries(Wo.map(e=>[Uo[e],g1(Au[e],Ke(Au[e]),[{label:"Section's own",value:""},...v5.map(t=>({label:T9[t],value:t}))],"")])),_gContent:x("Content"),eyebrow:q("Eyebrow"),heading:E1("Heading"),intro:E1("Introduction"),buttonLabel:q("Submit button"),successMessage:E1("Confirmation message")},resolveFields:(e,{fields:t})=>{let a=e.props.region,s=t,c=Wo.map(r=>Uo[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 ha1,LinkIcon as yD,EyeOffIcon as ma1}from"efficient-easel/icons";import{jsx as Zc}from"react/jsx-runtime";var wD={fields:{_gTop:x("Routing groups"),routingNumber:T("Section number",f0.routingNumber),routingTagline:T("Eyebrow",f0.routingTagline),groups:{type:"array",label:"Groups",arrayFields:{eyebrow:q("Eyebrow"),title:E1("Title"),copy:E1("Body"),response:q("Response time")},getItemSummary:e=>e?.title||e?.eyebrow||p("Group")},_gForm:x("Message form"),formSlug:E5(),formNumber:T("Section number",f0.formNumber),formHeading:O("Heading",f0.formHeading),metaItems:T2("Meta lines",Zc(c4,{noun:"meta"}),"Encrypted in transit","verbatim"),_gOther:x("\u201COther\u201D reason"),showOther:l1("Show \u201COther\u201D reason",f0.showOther,Zc(ha1,{})),otherLabel:q("\u201COther\u201D chip label",f0.otherLabel),otherNoteTitle:T("\u201COther\u201D note title",f0.otherNoteTitle),otherNoteBody:O("\u201COther\u201D note body",f0.otherNoteBody),_gSubmit:x("Submit button"),buttonText:q("Submit button",f0.buttonText),consent:O("Consent line",f0.consent),_gChannels:x("Contact info"),channels:{type:"array",label:"Channels",arrayFields:{label:q("Label"),value:q("Value"),href:e3(q("Link")),sub:q("Sub line"),groupId:g1("Link to group",Zc(yD,{}),[{label:"\u2014 Not linked \u2014",value:""},...f0.groups.map(e=>({label:e.title,value:e.id}))],""),hidden:l1("Hidden",!1,Zc(ma1,{}))},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=Du(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||Du(r?.title)||`group-${o+1}`}))],c=t,l=c.channels;return l?.type==="array"&&l.arrayFields&&(c.channels={...l,arrayFields:{...l.arrayFields,groupId:g1("Link to group",Zc(yD,{}),s,"")}}),t}};import{useEffect as pa1,useRef as ua1,useState as da1}from"react";import{jsx as kD,jsxs as xa1}from"react/jsx-runtime";var ga1=12,Vh=null,CD=null;function va1(e=!1){let t=i2();if((e||CD!==t)&&(Vh=null),!Vh){let a=R3();CD=t,Vh=J1.listBlogPosts(a,{visibleOnly:!0,siteId:t}).catch(()=>null)}return Vh}function fa1(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 ba1(e){return{slug:e.slug,title:e.title,excerpt:e.excerpt,cover:e.cover_image?A9(e.cover_image)??"":"",meta:e.category||void 0,dateLabel:fa1(e.published_at)||void 0}}function b9({value:e,onChange:t,snapshotCount:a=ga1}){let[s,c]=da1("idle"),l=Array.isArray(e),r=l?e.length:0,o=ua1(!0),i=m=>{c("loading"),va1(m).then(u=>{if(!o.current)return;if(u===null){c("error");return}c("idle");let d=u.slice(0,a).map(ba1);b6(d,e??null)&&t(d)})};pa1(()=>(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 xa1("div",{children:[kD(Ol,{label:"Blog posts"}),kD(E4,{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 za1}from"react";import{jsx as _0,jsxs as n8}from"react/jsx-runtime";var MD=3,AD="featured",Nh="tabs",HD="portrait",pa="spread",_h="count",FD=[{label:"Even grid",value:"even"},{label:"Featured first",value:AD},{label:"Tabs",value:Nh},{label:"Photo cards",value:HD},{label:"Staggered spread",value:pa},{label:"Count",value:_h}],ya1=[HD,pa],TD="even",Z6={min:2,max:11,step:1,fallback:7,unit:"of 12"},wa1="bottom-left",Ca1=55,ka1="bottom";function Ma1(e){let t=typeof e=="number"?e:Number.parseFloat(String(e??"")),a=Number.isFinite(t)?Math.min(Z6.max,Math.max(Z6.min,Math.round(t))):Z6.fallback;return`${a}fr ${12-a}fr`}var SD={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"},LD={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"},Sa1="Find by name",La1="Nobody by that name.";function Aa1(e,t){let a=c=>c.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLocaleLowerCase().trim(),s=a(t);return s===""||a(e).includes(s)}function Ha1({card:e,scaffold:t,lower:a=!1}){return n8(r0,{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:[_0("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:_0(k0,{label:`card-${e.slug}`,src:e.cover||void 0,sizes:"(max-width: 800px) 50vw, 25vw"})}),_0("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&&_0("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:M(e.meta)}),n8("div",{className:"relative z-[1] mt-auto flex w-full flex-col gap-1 p-4 max-[800px]:p-3",children:[_0("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&&_0("p",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.16em] text-accent",children:M(e.dateLabel)}),e.excerpt&&_0("p",{className:"line-clamp-2 text-[length:var(--size-body,14px)] leading-[1.45] text-fg-dim",children:M(e.excerpt)})]})]})}function Fa1({cards:e,scaffold:t}){return _0("nav",{"aria-label":"Days",className:"-mx-1 overflow-x-auto",children:_0("ul",{className:"flex min-w-max gap-2 px-1 pb-1",children:e.map((a,s)=>{let c=!!a.meta;return _0("li",{children:n8(r0,{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:[_0("span",{className:"font-heading3 text-[length:var(--size-body,15px)] leading-[1.2]",children:Y(a.title,!1)}),a.excerpt&&_0("span",{className:`font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] ${c?"opacity-80":"text-fg-dim"}`,children:M(a.excerpt)})]})},`${a.slug}-${s}`)})})})}function Ta1({count:e,words:t,href:a}){let s=n8("span",{className:"inline-flex items-baseline gap-3",children:[_0("span",{className:"font-heading text-[length:var(--size-headingLarge,64px)] leading-none text-accent",children:e}),t!==void 0&&_0("span",{className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg",children:t})]});return a?_0(r0,{href:a,className:"inline-flex hover:opacity-85",children:s}):s}var Pa1="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]",Ea1="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]",Va1="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 Ab({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]=za1(""),z=s??[],k=r?z.length:typeof l=="number"&&l>0?l:MD,S=z.slice(0,k),H=o&&S.length===0;if(S.length===0&&!o)return null;let I=r?MD:k,P=H?g?.length?g.slice(0,r?g.length:I):Array.from({length:I},(N,Q)=>({slug:`placeholder-${Q}`,title:p("Blog post title"),excerpt:p("A short summary of the post appears here."),cover:"",meta:p("Journal"),dateLabel:p("Date")})):S,D=B3("Events",n,"both"),E=h===AD&&P.length>1,F=Ma1(m),_=h===Nh,Z=h===_h,G=ya1.includes(h??""),V=b&&!_&&!Z&&!E,j=V?P.filter(N=>Aa1(N.title,f)):P;return Z?_0("section",{className:Va1,children:_0(Ta1,{count:P.length,words:v||t===void 0?void 0:Y(t,!1),href:v?void 0:a?.href})}):n8("section",{className:v?Ea1:Pa1,style:J2(i),children:[v?null:_0(s0,{num:e!==void 0?M(e):void 0,title:t!==void 0?Y(t,!1):void 0,link:a?{text:M(a.text),href:a.href}:void 0}),V&&n8("div",{className:"mb-6 flex flex-col gap-2",children:[n8("label",{className:"flex max-w-[360px] flex-col gap-1.5",children:[_0("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-fg-dim",children:Sa1}),_0("input",{type:"search",value:f,onChange:N=>w(N.target.value),autoComplete:"off",className:"rounded-[var(--sf-button-radius,6px)] border border-line bg-bg px-4 py-2.5 text-[length:var(--size-body,15px)] text-fg outline-none focus:border-accent"})]}),j.length===0&&_0("p",{role:"status",className:"text-[length:var(--size-body,14px)] text-fg-dim",children:La1})]}),_?_0(Fa1,{cards:P,scaffold:H}):G?_0("div",{className:`sf-card-grid grid${D.className} ${h===pa?"grid-cols-3 max-[800px]:grid-cols-2":LD[Math.min(4,Math.max(2,c??3))]??LD[3]}`,style:D.style,children:j.map((N,Q)=>_0(Ha1,{card:N,scaffold:H,lower:h===pa&&Q%3===1},`${N.slug}-${Q}`))}):E?n8("div",{className:`sf-card-grid grid grid-cols-[var(--sf-events-split)] max-[800px]:grid-cols-1${D.className}`,style:{...D.style,"--sf-events-split":F},children:[_0(dt,{post:P[0],href:P[0].href,scaffold:H,layout:"cover",darken:d??Ca1,darkenStyle:ka1,placement:wa1},`${P[0].slug}-0`),_0("div",{className:`grid auto-rows-min${D.className}`,style:D.style,children:P.slice(1).map((N,Q)=>_0(dt,{post:N,href:N.href,scaffold:H,showCover:u},`${N.slug}-${Q+1}`))})]}):_0("div",{className:`sf-card-grid grid${D.className} ${SD[Math.min(4,Math.max(1,c??3))]??SD[3]}`,style:D.style,children:j.map((N,Q)=>_0(dt,{post:N,href:N.href,scaffold:H},`${N.slug}-${Q}`))})]})}import{LayoutIcon as Ia1,ColumnsIcon as Ra1,WidthIcon as Ba1,ImageIcon as Za1,OpacityIcon as Da1,ListIcon as Oa1,HashIcon as Ga1,SearchIcon as qa1}from"efficient-easel/icons";import{jsx as _a1}from"react/jsx-runtime";var x9={num:A.sectionNumber,title:"Section title",link:A.viewAll},Na1=()=>[{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.")}],PD=(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||"#"}),ED={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,x9.link,e.puck),l=G8(e)!==""?Li(e,!!e.puck?.isEditing,Na1()):null,r=l?l.sample?[]:l.rows.map(PD):e.posts;return _a1(Ab,{num:a(y(e.num,x9.num,e.puck)),title:a(y(e.title,x9.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(PD):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 h8}from"react/jsx-runtime";var Wa1=50,VD={fields:{_gContent:x("Content"),num:T("Number",x9.num),title:O("Heading",x9.title),linkText:T("Button",x9.link),linkHref:H1("Link"),dataSource:Ai("Cards from","Blog posts"),_gPosts:x("Blog posts"),posts:c2(b9,{snapshotCount:Wa1}),_gLayout:x("Layout"),layout:g1("Arrangement",h8(Ia1,{}),FD,TD),columns:s1("Columns",h8(Ra1,{}),2,4,1,3),featuredWidth:s1("Featured width",h8(Ba1,{}),Z6.min,Z6.max,Z6.step,Z6.fallback,Z6.unit),listCover:l1("Show cover image on the smaller cards",!0,h8(Za1,{})),featuredDarken:s1("Darken",h8(Da1,{}),E2.min,E2.max,E2.step,55,E2.unit),nameFilter:l1("Filter by name",!1,h8(qa1,{})),gap:Z3("Events"),showAll:l1("Show all blog posts",!1,h8(Oa1,{})),limit:s1("Posts to display",h8(Ga1,{}),1,20,1,3),cardImage:s7()},resolveFields:(e,{fields:t,parent:a})=>{let s=e.props,l={...Hi("Events",t,e.props,{hides:["_gPosts","posts"]})},r=o=>G1(W1(o,a,U1),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===Nh||s.layout===_h)for(let o of["columns","nameFilter","cardImage"])delete l[o];return s.layout===pa&&delete l.columns,s.layout==="featured"&&delete l.nameFilter,r(l)}};import{jsx as Ih}from"react/jsx-runtime";import{SettingsDefaultReset as Ua1,SettingsField as ja1,SettingsSegmented as Ka1}from"efficient-easel/panel";import{WidthIcon as $a1}from"efficient-easel/icons";function Rh({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 Ih(ja1,{label:n,labelId:c,icon:Ih($a1,{}),value:o?l:void 0,changed:!o,action:Ih(Ua1,{words:yy()?.panel,label:n,changed:!o,onReset:()=>a(void 0)}),hint:r,children:Ih(Ka1,{options:[{label:p(dm.page),id:"content"},{label:p(dm.full),id:"full"}],value:i,ariaLabel:n,onChange:a})})}import{SettingsField as Ya1,SettingsSwitch as Xa1}from"efficient-easel/panel";import{BlockColumnIcon as Ja1}from"efficient-easel/icons";import{Fragment as Qa1,jsx as Dc}from"react/jsx-runtime";function Hb({value:e,onChange:t}){let a=C5(),s={...q9,...e},c=s[a];return Dc(Ya1,{label:p("Logo fills its column"),icon:Dc(Ja1,{}),action:Dc(Xa1,{checked:c,onChange:l=>t({...s,[a]:l}),ariaLabel:p("Logo fills its column on {view}",{view:p(w5[a])})}),hint:Dc(Qa1,{children:R5(p("Sets the {view} view \u2014 switch views in the top bar to set each one."),{view:Dc("strong",{children:p(w5[a])})})})})}import{SettingsField as es1,SettingsSwitch as ts1}from"efficient-easel/panel";import{FullWidthIcon as as1}from"efficient-easel/icons";import{Fragment as ss1,jsx as Oc}from"react/jsx-runtime";function Fb({value:e,onChange:t}){let a=C5(),s={...W9,...e},c=s[a];return Oc(es1,{label:p("Logo fills its row"),icon:Oc(as1,{}),action:Oc(ts1,{checked:c,onChange:l=>t({...s,[a]:l}),ariaLabel:p("Logo fills its row on {view}",{view:p(w5[a])})}),hint:Oc(ss1,{children:R5(p("Sets the {view} view \u2014 switch views in the top bar to set each one."),{view:Oc("strong",{children:p(w5[a])})})})})}import{jsx as cs1}from"react/jsx-runtime";function Tb({value:e,onChange:t}){return cs1(Zs,{label:"Columns per line",unit:p("columns"),steps:Ny,value:_l(e),onChange:t})}import{useContext as ls1,useEffect as rs1,useRef as os1,useState as _D}from"react";import{jsx as ua,jsxs as ND}from"react/jsx-runtime";function Gc(){let e=WB();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:[ua("span",{children:e}),ND("span",{className:"flex flex-wrap items-center gap-3",children:[ua("span",{children:"Privacy"}),ua("span",{"aria-hidden":!0,children:"\xB7"}),ua("span",{children:"Terms"}),ua("span",{"aria-hidden":!0,children:"\xB7"}),ua("span",{children:"Cookies"})]})]})}import{jsx as Pb,jsxs as hs1}from"react/jsx-runtime";var ID={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6"},is1={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"},ns1={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 Eb({blocks:e,editing:t=!1,width:a,columns:s,logoFill:c,logoRowFill:l}){let r=ls1(wa),{desktop:o,tablet:i,mobile:n}=_l(s),{desktop:h,tablet:m,mobile:u}={...q9,...c},{desktop:d,tablet:v,mobile:g}={...W9,...l},b=C5(),w=t?ID[b==="desktop"?o:b==="tablet"?i:n]:`${ID[n]} ${is1[i]} ${ns1[o]}`,z=os1(null),[k,S]=_D(1),[H,I]=_D(!1);if(rs1(()=>{if(!t&&!r)return;let D=z.current;if(!D)return;let E=()=>{let j=D.querySelector(".footer-block-grid");if(!j)return;let N=t?b:Ew(window.innerWidth),Q=N==="desktop"?d:N==="tablet"?v:g;I(Q);let W=N==="desktop"?h:N==="tablet"?m:u,U=getComputedStyle(j).gridTemplateColumns.split(" ").filter(Boolean).length-1,i1=Math.max(j.childElementCount-1,0);S(!Q&&W&&U>=1?Math.max(Math.ceil(i1/U),1):1)},F,_=()=>{clearTimeout(F),F=setTimeout(E,0)},Z=[0,80,250,600].map(j=>setTimeout(E,j)),G=new MutationObserver(_);G.observe(D,{childList:!0,subtree:!0});let V=new ResizeObserver(_);return V.observe(D),()=>{clearTimeout(F),Z.forEach(clearTimeout),G.disconnect(),V.disconnect()}},[o,i,n,t,r,b,h,m,u,d,v,g]),!t&&!r)return null;let P=wl(Cl(a))??void 0;return Pb("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":k,"--footer-logo-col":H?"1 / -1":"1"},children:hs1("div",{style:P,children:[Pb(e,{className:`footer-block-grid mb-[60px] grid items-start gap-x-10 gap-y-12 ${w}`,minEmptyHeight:160}),Pb(Gc,{})]})})}import{jsx as ms1}from"react/jsx-runtime";var Vb={blocks:{type:"slot",allow:["FooterLogo","FooterMenu","FooterDivider","FooterGroup","FooterText","FooterEmailSignup","FooterSocial"]}},RD={label:"Footer",fields:Vb,defaultProps:{columns:_y,logoFill:q9,logoRowFill:W9},render:({blocks:e,width:t,columns:a,logoFill:s,logoRowFill:c,puck:l})=>ms1(Eb,{blocks:e,width:t,columns:a,logoFill:s,logoRowFill:c,editing:l?.isEditing})};import{jsx as Bh}from"react/jsx-runtime";var BD={fields:{_gLayout:x("Layout"),width:{type:"custom",render:({value:e,onChange:t})=>Bh(Rh,{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})=>Bh(Tb,{value:e,onChange:t})},logoFill:{type:"custom",render:({value:e,onChange:t})=>Bh(Hb,{value:e,onChange:t})},logoRowFill:{type:"custom",render:({value:e,onChange:t})=>Bh(Fb,{value:e,onChange:t})},_gBlocks:x("Blocks"),blockList:N5("Footer"),blocks:Vb.blocks}};import{WeightIcon as ps1,WidthIcon as us1,PhoneIcon as ds1}from"efficient-easel/icons";import{jsx as Nb}from"react/jsx-runtime";var ZD={fields:{_gStyle:x("Style"),thickness:s1("Thickness",Nb(ps1,{}),1,8,1,1,"px"),lengthPct:s1("Length",Nb(us1,{}),10,100,1,100,"%"),hideOnMobile:l1("Hide on mobile",!1,Nb(ds1,{}))}};var DD={fields:{_gContent:x("Content"),heading:E1("Heading","Join our email list"),placeholder:q("Field placeholder","Email address"),buttonLabel:q("Button","Subscribe")}};import{AlignLeftIcon as fs1}from"efficient-easel/icons";import{jsx as OD}from"react/jsx-runtime";var gs1={start:"items-start",center:"items-center",end:"items-end"};function _b({direction:e="vertical",gap:t,align:a="start",content:s}){let c=B3("FooterGroup",t,e==="horizontal"?"inline":"block");return OD("div",{className:"min-w-0",children:OD(s,{className:`flex ${e==="horizontal"?"flex-row flex-wrap":"flex-col"} ${gs1[a]}${c.className}`,style:c.style,minEmptyHeight:80})})}import{jsx as vs1}from"react/jsx-runtime";var Ib={blocks:{type:"slot",allow:["FooterText","FooterEmailSignup","FooterMenu","FooterDivider","FooterSocial"]}},GD={label:"Footer Box",fields:Ib,defaultProps:{direction:"vertical",align:"start"},render:({direction:e,gap:t,align:a,blocks:s})=>vs1(_b,{direction:e,gap:t,align:a,content:s})};import{jsx as bs1}from"react/jsx-runtime";var qD={fields:{_gLayout:x("Layout"),direction:v1("Direction",Zl("`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:Z3("FooterGroup"),align:v1("Alignment",bs1(fs1,{}),[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"End",value:"end"}],"start"),_gBlocks:x("Blocks"),blockList:N5("FooterGroup"),blocks:Ib.blocks}};import{WidthIcon as xs1,AlignLeftIcon as zs1,LogoIcon as ys1,PaddingTopIcon as ws1,PaddingRightIcon as Cs1,PaddingBottomIcon as ks1,PaddingLeftIcon as Ms1}from"efficient-easel/icons";import{jsx as z9}from"react/jsx-runtime";var WD={fields:{_gContent:x("Content"),tagline:E1("Body","Short brand tagline"),_gStyle:x("Style"),widthPct:s1("Width",z9(xs1,{}),40,400,1,100,"%"),align:v1("Alignment",z9(zs1,{}),[{label:"Start",value:"left"},{label:"Center",value:"center"},{label:"End",value:"right"}],"left"),reverse:v1("Logo color",z9(ys1,{}),[{label:"Auto contrast",value:"auto"},{label:"As uploaded",value:"off"}],"auto"),padTop:s1("Padding top",z9(ws1,{}),0,120,2,0,"px"),padRight:s1("Padding right",z9(Cs1,{}),0,120,2,0,"px"),padBottom:s1("Padding bottom",z9(ks1,{}),0,120,2,0,"px"),padLeft:s1("Padding left",z9(Ms1,{}),0,120,2,0,"px")}};import{Button as Ss1}from"efficient-shell/ui";import{SettingsField as Ls1}from"efficient-easel/panel";import{FieldSelect as As1}from"efficient-easel/fields";import{MenuIcon as Hs1}from"efficient-easel/icons";import{useCallback as Fs1,useEffect as UD,useState as Rb}from"react";import{jsx as y9,jsxs as jD}from"react/jsx-runtime";function Bb({value:e,onChange:t}){let[a,s]=Rb(null),[c,l]=Rb(!1),r=Fs1(f=>{s(f),l(!0)},[]);UD(()=>{let f=!1;return Ap(R3()).then(w=>{f||r(w)}).catch(()=>{f||s([])}),()=>{f=!0}},[r]),UD(()=>{let f=!1,w=eS(()=>{fM(R3()).then(z=>{f||r(z)}).catch(()=>{})});return()=>{f=!0,w()}},[r]);let o=a===null,i=!!(e?.id||e?.handle),n=c&&i&&!Kr(a??[],e),h=!i&&(e?.items?.length??0)>0,m=n?"":Kr(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]=Rb(!1),b=()=>{i&&(g(!0),Ap(R3(),!0).then(f=>{r(f);let w=Kr(f,e);w&&u(w)}).catch(()=>{}).finally(()=>g(!1)))};return jD("div",{children:[y9(Ls1,{label:p("Menu"),icon:y9(Hs1,{}),hint:!o&&a&&a.length===0?p("Create menus in {place}, then pick one here.",{place:p("Storefront \u2192 Menus")}):void 0,children:y9(As1,{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?y9("p",{className:"mt-1.5 text-[12px] text-[var(--sf-warning,#b45309)]",children:iM()}):null,n?y9("p",{className:"mt-1.5 text-[12px] text-[var(--sf-warning,#b45309)]",children:nM(e?.name??p("The linked menu"))}):null,i&&!n?jD("div",{className:"mt-1.5 flex items-center justify-between gap-2",children:[y9("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??""})}),y9(Ss1,{variant:"link",size:"sm",className:"shrink-0",onClick:b,disabled:v,children:v?p("Updating\u2026"):p("Update links")})]}):null]})}import{PhoneIcon as Ts1,LineBetweenIcon as Ps1}from"efficient-easel/icons";import{jsx as Zb}from"react/jsx-runtime";var KD={fields:{_gContent:x("Content"),menu:{type:"custom",render:({value:e,onChange:t})=>Zb(Bb,{value:e,onChange:t})},heading:q("Heading","Column heading"),_gStyle:x("Style"),accordionMobile:l1("Show as accordion on mobile",!1,Zb(Ts1,{})),showDividers:l1("Dividers between links",!1,Zb(Ps1,{}))}};import{jsx as qc}from"react/jsx-runtime";var $D={small:16,medium:20,large:24},Db=0,Ob=32,XD=2,Wc=0,YD={start:"justify-start",center:"justify-center",end:"justify-end"};function Gb({iconStyle:e=oe,iconSize:t="medium",align:a="start",gap:s=Wc,editing:c=!1}){let l=GB(),r=ww(yw(l));if(r.length===0)return c?qc("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=$D[t]??$D.medium,n={gap:Math.min(Ob,Math.max(Db,Number.isFinite(s)?s:0)),"--social-mark":`${o}px`};return qc("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)] ${YD[a]??YD.start}`,style:n,children:r.map(({platform:h,href:m,label:u})=>qc("li",{children:qc("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:qc(Nw,{platform:h,iconStyle:e,size:o})})},h))})}import{Button as Es1}from"efficient-shell/ui";import{Fragment as Vs1,jsx as qb,jsxs as Ns1}from"react/jsx-runtime";function Wb(){let{openPanel:e}=sr();return Ns1(Vs1,{children:[qb(Ol,{label:"Social links"}),qb("p",{className:"es-field-hint sf-hint-keep",children:p("The links are typed once for the whole website, in Site settings.")}),qb(Es1,{variant:"link",size:"sm",onClick:e,children:p("Edit social links \u2192")})]})}import{StylesIcon as _s1,TextSizeIcon as Is1,AlignLeftIcon as Rs1,GapIcon as Bs1}from"efficient-easel/icons";import{jsx as Uc}from"react/jsx-runtime";var JD={fields:{_gStyle:x("Style"),iconStyle:v1("Icon style",Uc(_s1,{}),[{label:"Outline",value:"outline"},{label:"Solid",value:"solid"}],oe),iconSize:v1("Icon size",Uc(Is1,{}),[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}],"medium"),_socialLinks:{type:"custom",render:()=>Uc(Wb,{})},_gLayout:x("Layout"),align:v1("Alignment",Uc(Rs1,{}),[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"End",value:"end"}],"start"),gap:s1("Gap",Uc(Bs1,{}),Db,Ob,XD,Wc,"px")}};import{TextSizeIcon as Zs1}from"efficient-easel/icons";import{jsx as Ds1}from"react/jsx-runtime";var QD={fields:{_gContent:x("Content"),text:E1("Body","Footer text"),_gStyle:x("Style"),size:v1("Size",Ds1(Zs1,{}),[{label:"S",value:"sm"},{label:"M",value:"md"},{label:"L",value:"lg"}],"md"),tone:_o()}};var eO={fields:{_gForm:x("Form"),formSlug:E5(),_gContent:x("Content"),heading:q("Heading override"),intro:E1("Intro"),submitText:q("Submit button"),finePrint:q("Fine print")}};var tO={fields:{}};var Zh="e.g. D00123 \xB7 blank = the whole store";import{useState as m8}from"react";import{Fragment as qs1,jsx as h3,jsxs as jc}from"react/jsx-runtime";var Dh="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",Os1="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))]",Gs1="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 Ub({eyebrow:e,title:t,designCode:a,omitHead:s=!1,editing:c=!1}={}){let[l,r]=m8(""),[o,i]=m8(""),[n,h]=m8(0),[m,u]=m8(""),[d,v]=m8(""),[g,b]=m8(!1),[f,w]=m8(!1),[z,k]=m8(null);async function S(H){if(H.preventDefault(),!(c||g)){if(n<1){k("Choose a star rating.");return}b(!0),k(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{k("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:jc("div",{className:s?Gs1:Os1,children:[s?null:jc(qs1,{children:[(e??"").trim()&&h3(V1,{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."}):jc("form",{className:"flex max-w-[720px] flex-col gap-5",onSubmit:S,children:[jc("div",{className:"grid grid-cols-2 gap-3 max-[640px]:grid-cols-1",children:[h3(Z2,{label:"Name",required:!0,children:h3("input",{type:"text",required:!0,value:l,onChange:H=>r(H.target.value),className:Dh})}),h3(Z2,{label:"Email \u2014 never shown publicly",children:h3("input",{type:"email",value:o,onChange:H=>i(H.target.value),className:Dh})})]}),jc("div",{className:"flex flex-col gap-2",children:[h3(w8,{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),k(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(Z2,{label:"Review title (optional)",children:h3("input",{type:"text",value:m,onChange:H=>u(H.target.value),className:Dh})}),h3(Z2,{label:"Your review",required:!0,children:h3("textarea",{required:!0,rows:5,value:d,onChange:H=>v(H.target.value),className:Dh+" 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 Ws1}from"react/jsx-runtime";var Kc={eyebrow:"Your turn",title:"Leave a *review.*"},aO={label:"Review Form",defaultProps:{eyebrow:"",title:"",designCode:""},render:e=>{let t=O1(e.headPlacement)==="own-box",a=s=>t?void 0:s;return Ws1(Ub,{eyebrow:a(y(e.eyebrow,Kc.eyebrow,e.puck)),title:a(y(e.title,Kc.title,e.puck)),omitHead:t,designCode:a1(e.designCode)||void 0,editing:e.puck?.isEditing})}};var sO={fields:{_gContent:x("Content"),eyebrow:T("Eyebrow",Kc.eyebrow),title:O("Heading",Kc.title),_gSource:x("Reviews"),designCode:e3(q("Design code",Zh))},resolveFields:(e,{fields:t,parent:a})=>G1(W1(t,a,U1),e.props.headPlacement,Z1.ReviewForm.headRows)};import{StylesIcon as tc1,HashIcon as ac1,ColumnsIcon as sc1}from"efficient-easel/icons";import{useEffect as Us1,useState as js1}from"react";function cO(e,t){let[a,s]=js1(null);return Us1(()=>{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 Qs1,jsx as O4,jsxs as Oh}from"react/jsx-runtime";var Ks1=()=>[{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 $s1(e){let t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString("en-US",{month:"long",year:"numeric"})}function Ys1({rating:e}){let t=Math.min(5,Math.max(0,Math.round(e)));return O4("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)=>O4("span",{"aria-hidden":!0,className:s<t?"text-accent":"text-fg-dim/30",children:"\u2605"},s))})}var Xs1="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))]",Js1="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 jb({look:e,eyebrow:t,title:a,columns:s,limit:c,designCode:l,omitHead:r=!1,editing:o=!1}={}){let i=cO(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?Ks1():[];return!o&&m.length===0?null:O4("section",{className:"relative z-[2] border-t border-line bg-surface",children:Oh("div",{className:r?Js1:Xs1,children:[r?null:Oh(Qs1,{children:[(t??"").trim()&&O4(V1,{text:t??"",look:e,className:"mb-4 block"}),(a??"").trim()&&O4("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)})]}),O4("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=>Oh("article",{className:["flex flex-col gap-4 bg-bg p-9 max-[800px]:p-7",h?"opacity-60":""].join(" "),children:[O4(Ys1,{rating:u.rating}),u.title.trim()&&O4("h3",{className:"font-display text-[length:var(--size-body,19px)] font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg",children:u.title}),O4("div",{className:"flex-1 font-serif text-[length:var(--size-body,15px)] leading-[1.65] text-fg-dim",children:z0(u.body).map((d,v)=>O4("p",{className:v?"mt-3":"",children:d},v))}),Oh("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-[18px]",children:[O4("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-fg",children:u.authorName}),O4("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-fg-dim",children:$s1(u.createdAt)})]})]},u.id))})]})})}import{jsx as ec1}from"react/jsx-runtime";var $c={eyebrow:"Reviews",title:"From our *customers.*"},lO={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 ec1(jb,{look:o4(e.eyebrowLook,"Reviews"),eyebrow:a(y(e.eyebrow,$c.eyebrow,e.puck)),title:a(y(e.title,$c.title,e.puck)),omitHead:t,columns:e.columns,limit:e.limit,designCode:a1(e.designCode)||void 0,editing:e.puck?.isEditing})}};import{jsx as Kb}from"react/jsx-runtime";var rO={fields:{_gContent:x("Content"),eyebrow:T("Eyebrow",$c.eyebrow),eyebrowLook:g1("Eyebrow style",Kb(tc1,{}),[...k4],l7("Reviews")),title:O("Heading",$c.title),_gSource:x("Reviews"),limit:s1("Reviews to display",Kb(ac1,{}),3,12,1,6),designCode:e3(q("Design code",Zh)),_gStyle:x("Style"),columns:s1("Columns",Kb(sc1,{}),1,3,1,3)},resolveFields:(e,{fields:t,parent:a})=>G1(W1(t,a,U1),e.props.headPlacement,Z1.Reviews.headRows)};import{FullWidthIcon as rc1}from"efficient-easel/icons";import{jsx as $b,jsxs as cc1}from"react/jsx-runtime";function Yc({place:e,sections:t,editing:a=!1,fullWidth:s=!1,navTextCase:c,menuRow:l}){let o=cc1(e==="footer"?"footer":"div",{"data-section-group":e,...e==="header"?{"data-header-nav-case":yZ(c),"data-header-menu-row":wZ(l)??"top"}:null,style:s===!0?{"--sf-site-width":"100vw"}:void 0,children:[a?$b("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,$b(t,{minEmptyHeight:120})]});return e==="header"?$b(pM,{children:o}):o}import{jsx as lc1}from"react/jsx-runtime";var Yb={sections:{type:"slot"}},oO={label:"Site Footer",fields:Yb,render:({sections:e,fullWidth:t,puck:a})=>lc1(Yc,{place:"footer",sections:e,fullWidth:t,editing:a?.isEditing})};import{jsx as oc1}from"react/jsx-runtime";var iO={fields:{fullWidth:l1("Full width",!1,oc1(rc1,{})),sections:Yb.sections}};import{CaseIcon as nc1,ContrastIcon as hc1,FullWidthIcon as mc1,HeightIcon as pc1,LayoutIcon as uc1,StickyIcon as dc1}from"efficient-easel/icons";import{jsx as ic1}from"react/jsx-runtime";var Xb={sections:{type:"slot"}},nO={label:"Site Header",fields:Xb,defaultProps:{sticky:"always",topTextColor:"auto",sections:[]},render:({sections:e,fullWidth:t,navTextCase:a,menuRow:s,puck:c})=>ic1(Yc,{place:"header",sections:e,fullWidth:t,navTextCase:a,menuRow:s,editing:c?.isEditing})};import{jsx as da}from"react/jsx-runtime";var{sectionAccent:gc1}=X9(e=>Qf(e)??xZ,"Follow the site theme"),hO={fields:{heightPx:s1("Height",da(pc1,{}),k5.min,k5.max,2,k5.default,"px"),fullWidth:l1("Full width",!1,da(mc1,{})),sectionAccent:gc1,topTextColor:v1("Text color at the top",da(hc1,{}),[{label:"Auto",value:"auto"},{label:"Light",value:"light"},{label:"Dark",value:"dark"}],"auto"),navTextCase:v1("Letters",da(nc1,{}),[{label:"Uppercase",value:"uppercase"},{label:"Capitalised",value:"capitalised"}],"uppercase"),menuRow:v1("Menu row",da(uc1,{}),[{label:"Own row",value:"top"},{label:"Same row",value:"inline"}],"top"),sticky:v1("Sticky header",da(dc1,{}),[{label:"None",value:"none"},{label:"Always",value:"always"},{label:"On scroll up",value:"on_scroll_up"}],"always"),sections:Xb.sections}};import{jsx as Gh,jsxs as vc1}from"react/jsx-runtime";var w0={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 Xc(e,t){return e===void 0?t:e}function Jb({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=Xc(e,w0.eyebrow),u=Xc(t,w0.title),d=Xc(a,w0.body),v=Xc(s,w0.buttonText),g=Xc(c,w0.consent),b=H5(l,r),f=v7({form:b,formSlug:l,editing:o}),w=b===void 0,z=!!b||o;return!z&&!m&&!u&&!d?null:n&&i?Gh("section",{className:E0(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:Gh(i,{className:"grid grid-cols-2 items-start gap-[60px] max-[1100px]:grid-cols-1 max-[1100px]:gap-9"})}):vc1("section",{className:E0(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:[Gh(cA,{eyebrow:m,title:u}),Gh(jo,{body:d,buttonLabel:v,consent:g,form:b,submission:f,showForm:z,resolving:w,editing:o})]})}var mO={fields:{_gTextStyle:x("Text style"),...Object.fromEntries(Ko.map(e=>[$o[e],g1(Pu[e],Ke(Pu[e]),[{label:"Section's own",value:""},...v5.map(t=>({label:T9[t],value:t}))],"")])),_gContent:x("Content"),eyebrow:T("Eyebrow",w0.eyebrow),title:O("Heading",w0.title),body:O("Body",w0.body),formSlug:E5(),buttonText:T("Button",w0.buttonText),consent:O("Consent line",w0.consent)},resolveFields:(e,{fields:t})=>{let a=e.props.region,s=t,c=["eyebrow","title"],l=["body","formSlug","buttonText","consent"],r=Ko.map(n=>$o[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 fc1}from"react/jsx-runtime";var Qb={boxes:{type:"slot",allow:["SubmitBox"]}},pO={label:"Photo Submission Form",fields:Qb,defaultProps:{eyebrow:w0.eyebrow,title:w0.title,body:w0.body,formSlug:"",buttonText:w0.buttonText,consent:w0.consent},render:e=>fc1(Jb,{boxes:e.boxes,inBoxes:e.layout==="boxes",eyebrow:e2(e.eyebrow,w0.eyebrow,e.puck),title:e2(e.title,w0.title,e.puck),body:e2(e.body,w0.body,e.puck),buttonText:e2(e.buttonText,w0.buttonText,e.puck),consent:e2(e.consent,w0.consent,e.puck),formSlug:a1(e.formSlug)||void 0,form:e.form,editing:e.puck?.isEditing})};var uO={fields:{_gContent:x("Content"),eyebrow:T("Eyebrow",w0.eyebrow),title:O("Heading",w0.title),body:O("Body",w0.body),_gForm:x("Form"),formSlug:E5(),_gButton:x("Button"),buttonText:T("Button",w0.buttonText),_gFootnote:x("Footnote"),consent:O("Consent line",w0.consent),boxes:Qb.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 bc1=["issues","posts"],dO=[{label:"Issues",value:"issues"},{label:"Blog posts",value:"posts"}],ex="issues";function tx(e){return bc1.includes(e)?e:ex}var xc1={issues:["issues"],_gPosts:["posts"],posts:["posts"],limit:["posts"]};function gO(e,t){let a=tx(t),s={...e};for(let[c,l]of Object.entries(xc1))l.includes(a)||delete s[c];return s}import{CategoryIcon as yc1,HashIcon as wc1}from"efficient-easel/icons";var I0={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},vO=()=>["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 zc1(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 qh(e,t){if(e==="issues")return C1(t.issues,vO(),t.puck);let a=t.posts,s=typeof t.limit=="number"&&t.limit>0?t.limit:4,c=Array.isArray(a)?zc1(a.slice(0,s)):[];return C1(c,vO(),t.puck)}import{jsx as fO}from"react/jsx-runtime";var bO={fields:{_sHead:Y1("Section header"),_gHeadCopy:x("Content"),headNum:T("Number",I0.headNum),headTitle:O("Heading",I0.headTitle),headDesc:O("Body",I0.headDesc),_sLeft:Y1("Newsletter panel"),_gLeftCopy:x("Content"),kicker:T("Eyebrow",I0.kicker),leadTitle:O("Heading",I0.leadTitle),intro:O("Intro",I0.intro),_gForm:x("Signup form"),emailPlaceholder:q("Email placeholder",I0.emailPlaceholder),submitText:q("Submit button",I0.submitText),subscribedText:q("Subscribed button",I0.subscribedText),finePrint:O("Fine print",I0.finePrint),_sRight:Y1("Recent issues"),_gRightCopy:x("Content"),contentType:v1("Type",fO(yc1,{}),[...dO],ex),issuesHeading:T("Panel heading",I0.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:c2(b9),limit:s1("Posts to display",fO(wc1,{}),1,6,1,4),_gArchive:x("Archive link"),archiveText:T("Archive button",I0.archiveText),archiveHref:H1("Archive link")},resolveFields:(e,{fields:t})=>gO(t,e.props.contentType)};import{HashIcon as Sc1}from"efficient-easel/icons";import{useState as Cc1}from"react";import{jsx as Q3,jsxs as w9}from"react/jsx-runtime";var kc1="That didn't go through \u2014 please try again.";function Jc({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=G3.subscribeSection,editing:g=!1,...b}){let[f,w]=Cc1(""),{status:z,submit:k}=ro({source:v,dryRun:g}),S=z==="sent",H=z==="sending",I=z==="error"||z==="invalid",P=(m??[]).filter(_=>(_?.n??"").trim()||(_?.title??"").trim()||(_?.date??"").trim()),D=P.length>0,E=S?i||"Subscribed \u2713":H?"Sending\u2026":o||"Subscribe \u2192";function F(_){_.preventDefault(),!S&&k({email:f})}return w9("section",{className:E0(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:[Q3(D2,{num:e,title:t?Y(t,!0):void 0,desc:a,accentTracking:"-0.025em"}),w9("div",{className:D?"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:[w9("div",{className:D?"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&&Q3(V1,{text:s}),c&&Q3("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&&Q3("p",{className:"max-w-[480px] font-serif text-[length:var(--size-body,19px)] italic leading-[1.5] text-fg-dim",children:M(l,!0)}),w9("form",{className:"mt-2 flex max-w-[520px]",onSubmit:F,children:[Q3("input",{type:"email",placeholder:r||"your@email.com",required:!0,value:f,onChange:_=>w(_.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"}),Q3("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:R0(E)})]}),I&&Q3("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:kc1}),n&&Q3("p",{className:"max-w-[480px] font-mono text-[length:var(--size-label,12px)] uppercase leading-[1.7] tracking-[0.18em] text-fg-dim",children:M(n)})]}),D&&w9("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&&Q3(V1,{text:h,size:12}),Q3("div",{className:"flex flex-col",children:P.map((_,Z)=>w9("div",{className:["grid grid-cols-[60px_1fr_auto] items-start gap-[18px] border-b border-line py-[18px]",Z===0?"border-t border-line":""].join(" "),children:[Q3("span",{className:"font-mono text-[length:var(--size-label,13px)] tracking-[0.22em] text-accent",children:_.n?M(_.n):""}),w9("span",{className:"font-display text-[length:var(--size-body,16px)] font-medium leading-[1.3] tracking-[-0.01em]",children:[_.title?M(_.title):"",_.small?.trim()&&Q3("small",{className:"mt-1 block font-serif text-[length:var(--size-body,13px)] font-normal italic text-fg-dim",children:M(_.small,!0)})]}),Q3("span",{className:"whitespace-nowrap pt-[3px] text-right font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-fg-dim",children:_.date?M(_.date):""})]},Z))}),u&&Q3(r0,{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:M(u)})]})]})]})}import{jsx as Mc1}from"react/jsx-runtime";var Y0={...I0,issuesHeading:"Recent posts",archiveText:"Read all posts \u2192"},xO={label:"Subscribe with Posts",defaultProps:{headNum:"",headTitle:"",headDesc:"",kicker:"",leadTitle:"",intro:"",emailPlaceholder:"",submitText:"",subscribedText:"",finePrint:"",issuesHeading:"",limit:4,archiveText:"",archiveHref:""},render:e=>{let t=qh("posts",e);return Mc1(Jc,{headNum:y(e.headNum,Y0.headNum,e.puck),headTitle:y(e.headTitle,Y0.headTitle,e.puck),headDesc:y(e.headDesc,Y0.headDesc,e.puck),kicker:y(e.kicker,Y0.kicker,e.puck),leadTitle:y(e.leadTitle,Y0.leadTitle,e.puck),intro:y(e.intro,Y0.intro,e.puck),emailPlaceholder:a1(e.emailPlaceholder)||Y0.emailPlaceholder,submitText:a1(e.submitText)||Y0.submitText,subscribedText:a1(e.subscribedText)||Y0.subscribedText,finePrint:y(e.finePrint,Y0.finePrint,e.puck),issuesHeading:y(e.issuesHeading,Y0.issuesHeading,e.puck),issues:t,source:G3.subscribeBlogsSection,editing:e.puck?.isEditing,archiveText:y(e.archiveText,Y0.archiveText,e.puck),archiveHref:a1(e.archiveHref)||Y0.archiveHref})}};import{jsx as Lc1}from"react/jsx-runtime";var zO={fields:{_sHead:Y1("Section header"),_gHeadCopy:x("Content"),headNum:T("Number",Y0.headNum),headTitle:O("Heading",Y0.headTitle),headDesc:O("Body",Y0.headDesc),_sLeft:Y1("Newsletter panel"),_gLeftCopy:x("Content"),kicker:T("Eyebrow",Y0.kicker),leadTitle:O("Heading",Y0.leadTitle),intro:O("Intro",Y0.intro),_gForm:x("Signup form"),emailPlaceholder:q("Email placeholder",Y0.emailPlaceholder),submitText:q("Submit button",Y0.submitText),subscribedText:q("Subscribed button",Y0.subscribedText),finePrint:O("Fine print",Y0.finePrint),_sRight:Y1("Recent posts"),_gRightCopy:x("Content"),issuesHeading:T("Panel heading",Y0.issuesHeading),_gPosts:x("Blog posts"),posts:c2(b9),limit:s1("Posts to display",Lc1(Sc1,{}),1,6,1,4),_gArchive:x("Archive link"),archiveText:T("Archive button",Y0.archiveText),archiveHref:H1("Archive link")}};import{jsx as Ac1}from"react/jsx-runtime";var yO={label:"Booking box",defaultProps:{},render:e=>Ac1(Hu,{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 ax,useState as sx}from"react";import{Fragment as Hc1,jsx as H0,jsxs as k3}from"react/jsx-runtime";var wO="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 cx({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 k=[...a.map(U=>U.id),...r?[P8]:[]],S=b&&k.includes(b)?b:k[0]??P8,[H,I]=sx(S);ax(()=>{k.includes(H)||I(k[0]??P8)},[k.join("|")]),ax(()=>{b&&k.includes(b)&&I(b)},[b]);let P=U=>{I(U),E(null),f?.(U)},[D,E]=sx(null),F=(u??[]).filter(U=>!U.hidden),_=F.find(U=>U.groupId===H)?.value??null,Z=D??_,G=H5(d,v),V=v7({form:G,formSlug:d,editing:g}),j=G===void 0,N=!!G||!!g,[Q,W]=sx(!1);return ax(()=>{let U=()=>W(document.documentElement.getAttribute("data-theme")==="light");U();let i1=new MutationObserver(U);return i1.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>i1.disconnect()},[]),k3(Hc1,{children:[k3("section",{className:E0(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:Q?void 0:{background:"var(--section-bg)"},children:[(e||t)&&k3("div",{className:"mb-6 flex items-center gap-6 border-b border-line pb-6",children:[e&&H0(V1,{text:e}),t&&H0("span",{className:"font-display text-[length:var(--size-body,14px)] uppercase tracking-[0.04em] text-fg-dim",children:M(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(U=>{let i1=H===U.id;return k3("button",{type:"button",onClick:()=>{P(U.id),typeof window<"u"&&window.matchMedia("(max-width: 1100px)").matches&&document.getElementById("contact-form")?.scrollIntoView({behavior:n6(),block:"start"})},className:["flex min-h-[240px] cursor-pointer flex-col gap-3.5 px-7 py-9 text-left transition-colors",i1?"bg-surface outline outline-2 -outline-offset-2 outline-accent":"bg-bg hover:bg-surface"].join(" "),children:[U.eyebrow&&H0("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent",children:U.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:U.title}),U.copy&&H0("p",{className:"mt-auto font-display text-[length:var(--size-body,14px)] leading-[1.5] text-fg-dim",children:U.copy}),U.response&&k3("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:U.response})]})]},U.id)})})]}),(N||F.length>0)&&k3("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]",N&&F.length>0?"grid-cols-[1.3fr_1fr]":"grid-cols-1"].join(" "),children:[N&&k3("div",{children:[k3("div",{className:"mb-7 flex items-end justify-between gap-6 border-b border-line pb-6",children:[k3("div",{children:[s&&H0("div",{className:"pb-2 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.3em] text-accent",children:M(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((U,i1)=>H0("div",{children:U},i1))})]}),G?V.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:Ze(G,"Thanks \u2014 we've received your message.")}):k3("form",{className:"grid grid-cols-2 gap-5 max-[700px]:grid-cols-1",onSubmit:V.handleSubmit,children:[G.fields.map(U=>H0(Z2,{label:U.label,required:U.required,className:U.type==="textarea"||U.type==="checkbox"?"col-span-2 max-[700px]:col-span-1":void 0,children:H0(f7,{field:U,value:V.valueOf(U.key),onChange:i1=>V.set(U.key,i1),className:U.type==="textarea"?`${wO} min-h-[140px] resize-y leading-[1.5]`:U.type==="checkbox"?"size-4 self-start accent-accent":wO})},U.key)),k3("div",{className:"col-span-2 flex flex-col gap-2 max-[700px]:col-span-1",children:[H0(w8,{required:!0,children:"Reason"}),k3("div",{className:"mt-1 flex flex-wrap gap-2",children:[a.map(U=>{let i1=H===U.id;return H0("button",{type:"button",onClick:()=>P(U.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",i1?"border-accent bg-accent text-bg":"border-line text-fg-dim hover:text-fg"].join(" "),children:U.title},U.id)}),r&&H0("button",{type:"button",onClick:()=>P(P8),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===P8?"border-accent bg-accent text-bg":"border-line text-fg-dim hover:text-fg"].join(" "),children:R0(o)})]})]}),w?.(H),H===P8&&(i||n)&&k3("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:M(i)}),n&&z0(n).map((U,i1)=>H0("p",{className:"font-display text-[length:var(--size-body,15px)] leading-[1.55] text-fg-dim",children:M(U)},i1))]}),H0(De,{value:V.honeypot,onChange:V.setHoneypot}),V.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:V.error}),k3("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:M(m)}),H0("button",{type:g?"button":"submit",disabled:V.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:V.submitting?"Sending\u2026":h?R0(h):"Send Message \u2192"})]})]}):H0("p",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-fg-dim",children:j?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.")})]}),F.length>0&&H0("aside",{className:"flex flex-col gap-0 max-[1100px]:hidden",children:F.map((U,i1)=>{let y1=Z===U.value,c1=!!!U.groupId;return k3("div",{onClick:c1?()=>E(U.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":"",y1?"border-l-accent pl-6":c1?"border-l-transparent hover:bg-accent/[0.04]":"border-l-transparent"].join(" "),style:y1?{background:"color-mix(in oklab, var(--accent) 8%, transparent)"}:void 0,children:[y1&&k3("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",y1?"text-fg":"text-accent"].join(" "),children:U.label}),c1?H0("a",{href:U.href,onClick:b1=>b1.stopPropagation(),className:["font-heading3 text-[length:var(--size-headingSmall,24px)] font-medium leading-[1.2] tracking-[-0.02em] transition-colors hover:text-accent",y1?"text-accent":"text-fg"].join(" "),children:U.value}):H0("span",{className:["font-heading3 text-[length:var(--size-headingSmall,24px)] font-medium leading-[1.2] tracking-[-0.02em]",y1?"text-accent":"text-fg"].join(" "),children:U.value}),U.sub&&H0("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] text-fg-dim",children:U.sub})]},`${U.value}-${i1}`)})})]})]})}import{jsx as Fc1}from"react/jsx-runtime";var CO={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=>Fc1(cx,{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 kO}from"react/jsx-runtime";function lx({thickness:e=1,lengthPct:t=100,hideOnMobile:a=!1}){return kO("div",{className:`col-span-full w-full basis-full ${a?"max-[800px]:hidden":""}`,"aria-hidden":"true",children:kO("div",{className:"bg-line",style:{height:`${e}px`,width:`${t}%`}})})}import{jsx as Tc1}from"react/jsx-runtime";var MO={label:"Divider",defaultProps:{thickness:1,lengthPct:100,hideOnMobile:!1},render:({thickness:e,lengthPct:t,hideOnMobile:a})=>Tc1(lx,{thickness:e,lengthPct:t,hideOnMobile:a})};import{useState as Pc1}from"react";import{jsx as rx,jsxs as SO}from"react/jsx-runtime";function ox({heading:e,placeholder:t="Email address",buttonLabel:a="Subscribe"}){let{open:s}=Wp(),[c,l]=Pc1("");return SO("div",{className:"w-full min-w-0",children:[e?rx("h4",{className:"mb-3 font-mono text-[13px] uppercase tracking-[0.2em] text-fg-dim",children:Y(e,!1)}):null,SO("form",{className:"flex max-w-[320px] flex-wrap items-stretch gap-2",onSubmit:r=>{r.preventDefault(),s({email:c.trim(),source:G3.footerSignup})},children:[rx("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"}),rx("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:R0(a)})]})]})}import{jsx as Ec1}from"react/jsx-runtime";var LO={label:"Email Form",defaultProps:{heading:"",placeholder:"Email address",buttonLabel:"Subscribe"},render:({heading:e,placeholder:t,buttonLabel:a,puck:s})=>Ec1(ox,{heading:$4(e,"Join our email list",s),placeholder:t||void 0,buttonLabel:a||void 0})};import{jsx as Wh,jsxs as Nc1}from"react/jsx-runtime";var Vc1={left:"items-start text-left",center:"items-center text-center",right:"items-end text-right"};function ix({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}=Ll(),v=Math.round(m7*(t/100)),g={...c?{paddingTop:c}:{},...l?{paddingRight:l}:{},...r?{paddingBottom:r}:{},...o?{paddingLeft:o}:{}};return Nc1("div",{className:`flex min-w-0 flex-col ${Vc1[a]} [container-type:inline-size]`,style:g,children:[Wh(L1,{href:"/","aria-label":d?`${d} home`:"Home",className:"inline-flex max-w-full overflow-x-clip",children:Wh(xe,{variant:"footer",sizePx:v,src:n,reverse:s,reversedSrc:h,inkIsDark:m,wordmark:u,siteName:d,fitWordmarkToContainer:!0,fitFloorPx:DC})}),e?Wh("p",{className:"mt-3.5 max-w-[280px] text-[13px] leading-[1.5] text-fg-dim",children:M(e)}):i?Wh("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 _c1}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})=>_c1(ix,{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 Ic1}from"react/jsx-runtime";var HO={label:"Menu",defaultProps:{accordionMobile:!1,showDividers:!1},render:({menu:e,heading:t,accordionMobile:a,showDividers:s,puck:c})=>Ic1(Ra,{menu:e,heading:t||void 0,accordionMobile:a,showDividers:s,editing:c?.isEditing})};import{jsx as Rc1}from"react/jsx-runtime";var FO={label:"Social Logos",defaultProps:{iconStyle:oe,iconSize:"medium",align:"start",gap:Wc},render:({iconStyle:e,iconSize:t,align:a,gap:s,puck:c})=>Rc1(Gb,{iconStyle:e,iconSize:t,align:a,gap:s,editing:c?.isEditing})};import{jsx as Zc1}from"react/jsx-runtime";var Bc1={sm:"text-[12px]",md:"text-[13px]",lg:"text-[15px]"};function nx({text:e,size:t="md",tone:a="default",editing:s=!1}){let c=e||(s?p("Add a line of footer text."):"");return c?Zc1("p",{className:`${Bc1[t]} leading-[1.5] ${a==="dim"?"text-fg-dim":"text-fg"}`,children:M(c)}):null}import{jsx as Dc1}from"react/jsx-runtime";var TO={label:"Text",defaultProps:{size:"md",tone:"default"},render:({text:e,size:t,tone:a,puck:s})=>Dc1(nx,{text:e||void 0,size:t,tone:a,editing:s?.isEditing})};import{jsx as Oc1}from"react/jsx-runtime";var PO={label:"Form",defaultProps:{formSlug:"",heading:"",intro:"",submitText:"",finePrint:""},render:e=>Oc1(Rp,{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 Gc1}from"react/jsx-runtime";var EO={label:"Legal Line",render:()=>Gc1(Gc,{})};import{jsx as qc1}from"react/jsx-runtime";var VO={label:"Submit box",defaultProps:{},render:e=>qc1(Eu,{region:typeof e.region=="string"?e.region:void 0,eyebrow:e2(e.eyebrow,w0.eyebrow,e.puck),title:e2(e.title,w0.title,e.puck),body:e2(e.body,w0.body,e.puck),buttonText:e2(e.buttonText,w0.buttonText,e.puck),consent:e2(e.consent,w0.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 Wc1}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})=>Wc1(Jc,{headNum:y(e,I0.headNum,f),headTitle:y(t,I0.headTitle,f),headDesc:y(a,I0.headDesc,f),kicker:y(s,I0.kicker,f),leadTitle:y(c,I0.leadTitle,f),intro:y(l,I0.intro,f),emailPlaceholder:a1(r)||I0.emailPlaceholder,submitText:a1(o)||I0.submitText,subscribedText:a1(i)||I0.subscribedText,finePrint:y(n,I0.finePrint,f),issuesHeading:y(h,I0.issuesHeading,f),issues:qh(tx(u),{issues:m,posts:d,limit:v,puck:f}),source:G3.subscribeSection,editing:f?.isEditing,archiveText:y(g,I0.archiveText,f),archiveHref:a1(b)||I0.archiveHref})};var _O={AppointmentBooking:bD,BookingBox:yO,ContactRouting:CO,Events:ED,Footer:RD,FooterDivider:MO,FooterEmailSignup:LO,FooterGroup:GD,FooterLogo:AO,FooterMenu:HO,FooterSocial:FO,FooterText:TO,Form:PO,LegalLineBlock:EO,ReviewForm:aO,Reviews:lO,[F9]:oO,[H9]:nO,SubmitBox:VO,SubmitBuild:pO,Subscribe:NO,SubscribeBlogs:xO};var Uc1={AppointmentBooking:xD,BookingBox:zD,ContactRouting:wD,Events:VD,Footer:BD,FooterDivider:ZD,FooterEmailSignup:DD,FooterGroup:qD,FooterLogo:WD,FooterMenu:KD,FooterSocial:JD,FooterText:QD,Form:eO,LegalLineBlock:tO,ReviewForm:sO,Reviews:rO,[F9]:iO,[H9]:hO,SubmitBox:mO,SubmitBuild:uO,Subscribe:bO,SubscribeBlogs:zO},h2=et(_O,Uc1);import{jsx as O6,jsxs as ZO}from"react/jsx-runtime";var hx=e=>e==="sentence"?"none":void 0,D6=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0,Qc=e=>typeof e=="string"&&e?e:void 0,jc1=["font","color","size","weight","italic","lineHeight","letterSpacing","paragraphSpacing","letterCase","largestSize"];function Uh(e){let t={};for(let a of jc1)e[a]!==void 0&&(t[a]=e[a]);return t}function Kc1(e){let t=e.fonts,a=e.sizes,s=e.typography,c=Dz(e.compression),l=(o,i)=>({id:`heading-${o}`,kind:"heading",name:`Heading ${o}`,values:Uh(i)}),r=(o,i={})=>({id:`body-${o}`,kind:"body",name:`Body ${o}`,values:Uh(i)});return[l(1,{font:Qc(t.heading),size:D6(a.headingLarge),weight:D6(s.weight),lineHeight:c.lineHeight,letterSpacing:c.letterSpacing,letterCase:hx(s.case),largestSize:D6(s.maxPx)}),l(2,{font:Qc(t.heading2),size:D6(a.headingMedium),weight:D6(s.weight2),lineHeight:c.lineHeight,letterSpacing:c.letterSpacing,letterCase:hx(s.case2)}),l(3,{font:Qc(t.heading3),size:D6(a.headingSmall),weight:D6(s.weight3),lineHeight:c.lineHeight,letterSpacing:c.letterSpacing,letterCase:hx(s.case3)}),r(1,{font:Qc(t.body),size:D6(a.body)}),r(2),r(3),r(4),r(5,{font:Qc(t.label),size:D6(a.label)})]}function IO(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:Uh(t.values??{})})):null}function RO(e){return IO(e)??[]}function Bm0(e,t){let a=Kc1(t),s=IO(e);return s?s.map(c=>({...c,values:Uh({...$c1(a,c.id),...c.values})})):a}var $c1=(e,t)=>e.find(a=>a.id===t)?.values??{};function Zm0(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 Yc1(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 Xc1(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 Jc1(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 BO(e){let t=[];for(let a of e){let s=a.values,c=`.${Yc1(a)}`,l=[],r=s.font!==void 0?xz.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?Xc1(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(...Jc1(c))}return t.join(`
|
|
154
|
-
`)}import{useEasel as Qc1}from"efficient-easel/easel";var el1="color-mix(in oklab, var(--bg) 40%, #ffffff)",tl1="12vh";function al1({style:e,frameClass:t,children:a}){let{appState:s}=Qc1(d=>d),c=s.data.content,l=s.data.root;if(tC(c))return O6("div",{className:`sf-themed-content${t?` ${t}`:""}`,style:{...e,background:el1,minHeight:"100vh",paddingBottom:tl1},children:O6("div",{style:{background:"var(--bg)"},children:a})});let r=Sa(c)&&hr(l,c),o=Sa(c)?cC(l,c):null,i=o?{[sC]:o}:null,n=sy(l?.widthChoice),h=n?{[ay]:n}:null,m=r?null:kZ(c),u=m?{[zh]:m}:null;return O6("div",{className:`sf-themed-content${r?` ${nr}`:""}${t?` ${t}`:""}`,style:e,...u,...i,...h,children:O6("div",{style:{background:"var(--bg)",minHeight:"100%"},children:a})})}function DO(e){return{frameClass:void 0,style:{"--sf-page-width":ya}}}function mx({w:e,children:t}){let{frameClass:a,style:s}=DO(e);return O6("div",{className:a,style:s,children:t})}function px({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:k,cardGap:S,hoverEffect:H,headingCompression:I,siteWidth:P,siteGutter:D,blockGap:E,headingTypography:F,heroBackgroundFollowsWidth:_,photographyGrayscale:Z,textStyles:G,themeFromDocument:V}=I3(),j=V?e:g,N=V?t:b,Q=V?void 0:f,W=V?s===void 0?Vz[Ez(a)]:Nz(s):w,U=V?c:I,i1=BO(RO(V?void 0:G)),y1=V?l:F,K=DO({widthMode:r,fullWidth:o,pageWidth:i}),c1={...za(j),...zl(Q),...Oz(y1),...K.style,...h?{}:zm(n)};return ZO("div",{className:"sf-theme-surfaces sf-theme-accent",style:{...ul(N),...vl(j),...fl(j),...bl(j),...xl(j),...mm(W),...Kz(mm(W)),...Bz(V?void 0:z,V?void 0:k,V?void 0:H),...Yz(V?void 0:P),...Xz(V?void 0:D),...Gy(V?void 0:E),...ty(V?void 0:_)},"data-sf-headings":Zz(U),"data-sf-card-shadow":V?void 0:_z(z),"data-sf-card-gap":V?void 0:Iz(S),"data-sf-card-hover":V?void 0:Rz(H),onClickCapture:m,children:[i1?O6("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:i1}}):null,ZO(BT,{grayscale:V?void 0:Z,children:[O6(al1,{style:c1,frameClass:K.frameClass,children:v}),u,d]})]})}var ux=e=>{e.target?.closest?.("a")&&e.preventDefault()};function OO({pageBackground:e,inheritBackground:t=!1,w:a,children:s}){return O6("div",{style:{...t?{}:zm(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:O6(mx,{w:a,children:s})})}import{jsx as gx}from"react/jsx-runtime";import{ListIcon as sl1,PaddingTopIcon as cl1}from"efficient-easel/icons";function ll1(){return{type:"custom",render:({value:e,onChange:t})=>gx(Rh,{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 rl1=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],WO={pageBackground:iw(),topSpace:g1("Top space",gx(cl1,{}),rl1,aC),widthChoice:ll1()},ol1="Record type",dx=new Map,GO=-1;function il1(e){GO!==mp()&&(dx.clear(),GO=mp());let t=hp(),a=t.some(c=>c.key===e)?"":e,s=dx.get(a);return s||(s=g1(ol1,gx(sl1,{}),[...t.map(c=>({label:c.label,value:c.key})),...a?[{label:a,value:a}]:[]],Pe),dx.set(a,s)),s}var qO=new WeakMap;function UO(e,t){if(!M2()||hp().length<2||Rr in e)return e;let a=il1(Br(t)),s=qO.get(e);if(s&&s.row===a)return s.fields;let c={[Rr]:a,...e};return qO.set(e,{row:a,fields:c}),c}function nl1(e,t){let a=ym(t),s=a?a.inner:t;if(rm(s))return!1;if(s?.type==="slot")return!0;let c=Ly(s);return c==="always"?!1:c==="authored-copy"?kz(e):!0}function jO(e){let t=ym(e),a=t?t.inner:e,s=rm(a);return s?Yy(a)?0:s.level:null}function hl1(e,t,a){return a?t===0&&e===Pm.Design||t===1&&e===pw.Content:!1}var ml1=new WeakMap,pl1=new WeakMap;function jh(e,t="section"){let a=t==="page"?pl1:ml1,s=a.get(e);if(s)return s;let c=Object.entries(e).map(([m,u])=>({key:m,field:u,level:jO(u),draws:nl1(m,u)||t==="page"&&jO(u)===null&&im(m,u)})),l=t==="section"&&c.some(m=>im(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&&!hl1(c[m].key,u,l)&&r.add(c[m].key)}let o=l&&fw(e),i=o&&!(Pm.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=re(o?vw(n):n);return a.set(e,h),h}var KO={name:"catalogueLabel",applies:e=>Object.prototype.hasOwnProperty.call(xa,e),draw(e,t){e.label=xa[t]}};import{jsx as ul1}from"react/jsx-runtime";var $O={name:"sectionGroupAllow",applies:e=>ml.includes(e),panel(e,t,a,s){let c=e.fields?.sections;c&&(c.allow=[...s.sectionGroupAllow])}},vx=new Set(Object.keys(Z1)),YO={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=>!vx.has(i)):c;r.disallow=Array.from(new Set([...r.disallow??[],...o]))}}};var dl1=Array.from(new Set([...Dx.map(e=>e.type),...vx,...rl,"GalleryItem"])),XO={name:"cellWidth",applies:(e,t,a)=>dl1.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=Pi(r.appState,l.props?.id);if(i===void 0||fz(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=gz(a.gridSpan),c=t(a);return s==null?c:ul1("div",{className:"sf-grid-cell",[vz]:String(s),children:c})}}};import{jsx as JO}from"react/jsx-runtime";var QO={name:"clickableParts",applies:(e,t,a)=>typeof a?.render=="function",draw(e,t){let a=e,s=a.render;a.render=c=>{let l=E9(c);return c.puck?.isEditing?JO(mH,{needles:om(a.fields,c),styles:l,type:t,children:s(c)}):Object.keys(l).length?JO(qz,{needles:om(a.fields,c),styles:l,type:t,children:s(c)}):s(c)}}};import{jsx as eG}from"react/jsx-runtime";var tG={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=yl(a.sectionCorners,a.sectionCornerSides),c=t(a),l=E0(a)?`sf-section-corners ${Uz}`:"sf-section-corners";return s?eG("div",{className:l,style:{display:"contents",...s},children:c}):c}}},gl1=["CollectionCard"],aG={name:"cardCorners",applies:(e,t,a)=>gl1.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=jz(a.cardCorners,a.cardCornerSides),c=t(a);return s?eG("div",{className:"sf-card-corners",style:{display:"contents",...s},children:c}):c}}};var sG={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 cG={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 lG,Fragment as vl1,jsxs as fl1}from"react/jsx-runtime";function bl1({anchor:e}){let t=vm(typeof e=="string"?e:"");return t?lG("span",{id:t,className:"sf-section-anchor","aria-hidden":"true"}):null}var rG={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=>fl1(vl1,{children:[lG(bl1,{anchor:a.anchor}),t(a)]})}};import{jsx as yl1}from"react/jsx-runtime";import{jsx as xl1}from"react/jsx-runtime";import{useEffect as zl1,useRef as oG}from"react";function iG({motion:e,editing:t,children:a}){let s=oG(null),c=oG(e);return zl1(()=>{let l=s.current;if(l){if(t){if(c.current===e)return;c.current=e,my(l);return}return hy(l)}},[e,t]),xl1("div",{ref:s,[ny]:e,children:a})}var nG={name:"sectionAnimation",applies:(e,t,a)=>t.isSection(e)&&!py.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=iy(s.sectionAnimation);return c?yl1(iG,{motion:c,editing:!!s.puck?.isEditing,children:a(s)}):a(s)}}};import{jsx as wl1}from"react/jsx-runtime";var pG={name:"sectionHeight",applies:(e,t,a)=>t.isSection(e)&&!dy.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=uy(i),h=gy(i)?vy(i):null;return o&&typeof o.then=="function"?o.then(m=>mG(hG(m,n),h)):mG(hG(o,n),h)}},draw(e){let t=e.render;e.render=a=>{let s=fy(a);return s?wl1("div",{className:s.className,style:s.style,children:t(a)}):t(a)}}};function hG(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 mG(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 Cl1}from"react/jsx-runtime";var uG={name:"sectionTheme",applies:(e,t,a)=>t.isSection(e)&&!ry.has(e)&&!!a&&typeof a.render=="function",panel(e,t,a){let{sectionThemeFields:s,SECTION_THEME_FOLLOW_LABEL:c}=a,l=bm.has(t);e.fields={...e.fields,...l?s(f5,c):s()}},draw(e,t){let a=bm.has(t),s=e.render;e.render=c=>{let l=I9(a?{...c,sectionAccent:f5(c.sectionAccent)}:c),r=s(c);return l?Cl1("div",{className:l.className,style:l.style,children:r}):r}}},dG={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(f5,c)})}};var kl1=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"]),gG={name:"sectionGroups",applies:(e,t)=>t.isSection(e)&&(kl1.has(e)||t.isHostBlock(e)),panel(e,t,a){let s=a.assignSectionGroups;e?.fields&&(e.fields=s(e.fields,t))}},Ml1=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"]),vG={name:"blockGroups",applies:e=>Ml1.has(e),panel(e,t,a){let s=a.assignSectionGroups;e?.fields&&(e.fields=s(e.fields,t))}};var Sl1=["Form","Stats"];function fx(e,t){let a=new Set(e),s=Rx.filter(i=>a.has(i)),c=s.filter(i=>i!=="Header"&&i!=="Footer"&&!ml.includes(i)),l=new Set([...t,...rl,...Sl1]),r=s.filter(i=>!l.has(i)),o=new Set(s);return{isSection:i=>o.has(i),isHostBlock:()=>!1,sectionGroupAllow:c,contentSectionKeys:r}}var Ll1=[$O,YO,SL,tG,aG,LL,XO,yT,wT,CT,kT,pG,rG,uG,nG,dG,gG,vG,sG,QO,cG,KO];function fG(e,t,a){let s=t;for(let c of Ll1)c.applies(e,a,s)&&(a.inspector&&c.panel?.(s,e,a.inspector,a),c.draw?.(s,e,a));return t}var bG={spacingFields:x5,sectionShapeFields:Gl,cardShapeFields:Qy,cellWidthFields:cw,widthField:z5,heightFields:lw,anchorFields:rw,sectionThemeFields:X9,sectionAnimationFields:Jy,slider:s1,assignSectionGroups:Ql,dropEmptyHeadings:jh,SECTION_THEME_FOLLOW_LABEL:Hl,BLOCK_THEME_FOLLOW_LABEL:Cy};function xG(e){let t={...fx(Object.keys(e.components),e.categories?.structure?.components??[]),inspector:bG};for(let[l,r]of Object.entries(e.components))fG(l,r,t);let a=e.root,s=a.resolveFields,c=(l,r)=>jh(UO(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 $l1,jsx as n0,jsxs as ga}from"react/jsx-runtime";var Il1="Newsletter (built in)";var Nd0=[{value:"00",label:A.label},{value:"00",label:A.label},{value:"00",label:A.label}],Rl1=am(()=>import("./PreviewFooter-PGJSJ4SM.js")),Bl1=am(()=>import("./render-client-KZKC5SLK.js")),Zl1={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 Dl1({propsTheme:e,propsFonts:t,widthMode:a,fullWidth:s,pageWidth:c,pageBackground:l,chromeInheritsSiteBackground:r,suppressPreviewNav:o,children:i}){let{originData:n,exitFocus:h}=Jk(),{theme:m,fonts:u,sizes:d,themeFromDocument:v}=I3();if(!n)return ga(px,{propsTheme:e,propsFonts:t,widthMode:a,fullWidth:s,pageWidth:c,pageBackground:l,chromeInheritsSiteBackground:r,suppressPreviewNav:o,footer:null,children:[n0("div",{style:Zl1,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=Sa(f)&&hr(w,f);return ga("div",{className:"sf-theme-accent",style:{...ul(b),...vl(g),...fl(g),...bl(g)},onClickCapture:o,children:[ga("div",{style:{position:"relative"},children:[n0("div",{className:z?nr:void 0,style:{...za(g),...zl(v?void 0:d),pointerEvents:"none",userSelect:"none"},"aria-hidden":"true",children:n0(Bl1,{data:n})}),n0("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}})]}),n0("div",{className:"sf-theme-surfaces",style:{...za(g),...xl(g)},children:n0(mx,{w:{widthMode:a,fullWidth:s,pageWidth:c},children:i})})]})}var F0=Hm,Ol1={formSlug:E5(void 0,Il1),_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:E1("Heading",F0.heading),deck:E1("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:E1("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:T2("Interest chips",n0(c4,{noun:"tag"}),"Chip label","verbatim"),frequencyLabel:q("Frequency label",F0.frequencyLabel),frequencies:T2("Frequency options",n0(Pl1,{}),"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:E1("Message",F0.successBody),keepBrowsingText:q("Dismiss button",F0.keepBrowsingText),...X9(f5,Hl),...Gl(),_gTextStyle:x("Text style"),...Object.fromEntries(Nl.map(e=>[Ey[e],g1(Cm[e],Ke(Cm[e]),[{label:"Popup's own",value:""},...v5.map(t=>({label:T9[t],value:t}))],"")])),_gBehaviour:x("Behavior"),autoOpen:l1("Show by itself",F0.autoOpen,n0(Tl1,{})),trigger:v1("Trigger",n0(_l1,{}),[{label:"Delay",value:"delay"},{label:"Scroll",value:"scroll"},{label:"Exit",value:"exit"}],F0.trigger),autoOpenDelaySec:s1("Delay",n0(bx,{}),Sm.min,Sm.max,1,F0.autoOpenDelaySec,"s"),scrollPercent:s1("Scroll",n0(Nl1,{}),Lm.min,Lm.max,5,F0.scrollPercent,"%"),showOn:v1("Pages",n0(El1,{}),[{label:"All",value:"all"},{label:"Chosen",value:"chosen"}],F0.showOn),showOnPages:Q9("Chosen pages",[],"None"),hideAfter:v1("After close",n0(bx,{}),[{label:"This visit",value:"visit"},{label:"Days",value:"days"},{label:"Never",value:"never"}],F0.hideAfter),hideDays:s1("Days",n0(bx,{}),Am.min,Am.max,1,F0.hideDays),_gArrangement:x("Arrangement"),formSide:v1("Form side",n0(Vl1,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],F0.formSide),_gPhone:x("On a phone"),valuePanelOnPhone:l1("Left panel",F0.valuePanelOnPhone,n0(Hl1,{}))},Gl1=Ql(Ol1,"SubscribePopup");async function ql1(){return(await Ry(i2()??"")).filter(t=>!Ca(t.slug)).map(t=>({label:t.label,value:g8(t.slug)}))}async function Wl1(e){let t=Fm(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(Gl1))a.has(c)||(s[c]=c==="showOnPages"?{...l,options:await ql1().catch(()=>[])}:l);return re(s)}var p5=Vl,Ul1={_gHeader:x("Header"),kickerBadge:q("Eyebrow badge",p5.kickerBadge),kickerText:q("Eyebrow text",p5.kickerText),titleLead:q("Heading",p5.titleLead),titleAccent:q("Heading accent",p5.titleAccent),subtitleEmpty:E1("Sub-line \xB7 empty",p5.subtitleEmpty),subtitleOne:E1("Sub-line \xB7 one set",p5.subtitleOne),subtitleMany:E1("Sub-line \xB7 several sets",p5.subtitleMany,"{count} becomes the number of sets"),_gStatus:x("Status rail"),leadTimeValue:q("Lead time",p5.leadTimeValue),shipsToFallback:q("Ships to \xB7 fallback",p5.shipsToFallback,"Shown only while the site serves no countries \u2014 otherwise the site's default country is stated"),_gPromises:x("Promise row"),promises:T2("Trust markers",n0(zG,{}),"Marker","verbatim"),_gEmpty:x("Empty basket"),emptyKicker:q("Eyebrow",p5.emptyKicker),emptyBody:E1("Message",p5.emptyBody)},Kh={root:{fields:{...WO},resolveFields:async(e,{fields:t})=>{if(e?.props?.kind===Mm)return Wl1(e.props);if(e?.props?.kind===wm)return Ul1;let a=t;return M2()?{[dp]:g1("Product type",n0(Al1,{}),we,"alloy-wheel"),...a,_gHeroBullets:x("Product hero"),_nHeroBullets:b5("The promises under Add to Cart. Text before the \xB7 is bold. Leave the list empty to show no promises at all."),[du]:T2("Trust bullets",n0(zG,{}),fL(Ja.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=Zr(typeof h=="string"?h:"",e);if(h===Mm){let f=Fm(e);return ga("div",{style:{background:"var(--bg)",minHeight:"100%"},children:[a?.isEditing?n0("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,n0(fS,{inline:!0,content:f})]})}if(h===wm){let f=Py(e);return ga("div",{style:{background:"var(--bg)",minHeight:"100%"},children:[a?.isEditing?n0("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,n0(wr,{children:n0(Cr,{preview:!0,children:n0($a,{content:f})})})]})}let d=!!a?.isEditing,v=n0(dL,{type:uu(e),children:n0(iL,{kind:u,children:n0(zL,{content:bL(e),children:n0(lL,{slug:d?m:null,children:n0(YM,{children:t})})})})}),g=h===Vy&&!Sy(r);return d?h===G9?n0(Dl1,{propsTheme:o,propsFonts:i,widthMode:s,fullWidth:c,pageWidth:l,pageBackground:typeof r=="string"?r:void 0,chromeInheritsSiteBackground:g,suppressPreviewNav:ux,children:v}):n0(px,{propsTheme:o,propsFonts:i,widthMode:s,fullWidth:c,pageWidth:l,pageBackground:typeof r=="string"?r:void 0,suppressPreviewNav:ux,footer:n0(Rl1,{}),overlay:ga($l1,{children:[n0(Xp,{}),n0(ou,{})]}),children:v}):n0(OO,{pageBackground:r,inheritBackground:g,w:{widthMode:s,fullWidth:c,pageWidth:l},children:v})}},categories:Ix(),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:G0.Collections,CollectionCard:G0.CollectionCard,Events:h2.Events,PostCard:B1.PostCard,DocMetaCards:B1.DocMetaCards,DocTabs:B1.DocTabs,DocMasthead:B1.DocMasthead,DocBody:B1.DocBody,FAQ:B1.FAQ,Gallery:G0.Gallery,GalleryB:G0.GalleryB,BrandStrip:G0.BrandStrip,SpecStrip:B1.SpecStrip,GalleryItem:G0.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:G0.CatalogFilterBar,AlloyWheelsListing:G0.AlloyWheelsListing,ProductGrid:G0.ProductGrid,ProductHero:G0.ProductHero,SpecTable:G0.SpecTable,ProcessSteps:B1.ProcessSteps,DetailRows:G0.DetailRows,FitmentTable:G0.FitmentTable,RelatedProducts:G0.RelatedProducts,BundleOffer:G0.BundleOffer,CompatibleTyres:G0.CompatibleTyres,TyreSizes:G0.TyreSizes,TyreFitment:G0.TyreFitment,EuTyreLabel:G0.EuTyreLabel,FitmentFinder:G0.FitmentFinder,OrderSummary:B1.OrderSummary,DeliveryOptions:G0.DeliveryOptions,PaymentBadges:B1.PaymentBadges,CheckoutCTA:G0.CheckoutCTA,ProductRef:G0.ProductRef,CustomHTML:B1.CustomHTML,Header:G0.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:G0.SearchBlock,CartBlock:G0.CartBlock,CountrySwitchBlock:G0.CountrySwitchBlock,[H9]:h2.SiteHeader,[F9]:h2.SiteFooter}},jl1={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial"};for(let[e,t]of Object.entries(jl1)){let a=Kh.components;a[e]={...a[t]}}{let e=Kh.components.MenuBlock;e.fields={...e.fields,direction:v1("Direction",n0(Fl1,{}),[{label:xm.column,value:"column"},{label:xm.row,value:"row"}],"column")},e.defaultProps={...e.defaultProps,direction:"column"},e.render=({menu:t,heading:a,accordionMobile:s,showDividers:c,direction:l,puck:r})=>n0(Ra,{menu:t,heading:a||void 0,accordionMobile:s,showDividers:c,layout:l==="row"?"row":"column",editing:r?.isEditing})}var Kl1=xG(Kh),_d0=Kl1.sectionGroupAllow,lb=Kh;export{sy1 as a,cy1 as b,ly1 as c,ry1 as d,oy1 as e,fx as f,fG as g,bG as h,pj as i,mp1 as j,Lo1 as k,AZ as l,Ji1 as m,eS as n,Qi1 as o,en1 as p,jm1 as q,Bm0 as r,Zm0 as s,mq1 as t,fr1 as u,br1 as v,xr1 as w,zr1 as x,Nr1 as y,_r1 as z,OU1 as A,Jo1 as B,In1 as C,oe0 as D,Jp as E,fR1 as F,Ap as G,fM as H,li1 as I,ri1 as J,oi1 as K,mi1 as L,yM as M,Oo1 as N,R5 as O,xZ as P,Qf as Q,wh as R,kt as S,i3 as T,QU as U,wZ as V,Co1 as W,jn as X,ef as Y,g81 as Z,gQ1 as _,WR as $,kc as aa,lb as ba};
|
|
154
|
+
`)}import{useEasel as Qc1}from"efficient-easel/easel";var el1="color-mix(in oklab, var(--bg) 40%, #ffffff)",tl1="12vh";function al1({style:e,frameClass:t,children:a}){let{appState:s}=Qc1(d=>d),c=s.data.content,l=s.data.root;if(tC(c))return O6("div",{className:`sf-themed-content${t?` ${t}`:""}`,style:{...e,background:el1,minHeight:"100vh",paddingBottom:tl1},children:O6("div",{style:{background:"var(--bg)"},children:a})});let r=Sa(c)&&hr(l,c),o=Sa(c)?cC(l,c):null,i=o?{[sC]:o}:null,n=sy(l?.widthChoice),h=n?{[ay]:n}:null,m=r?null:kZ(c),u=m?{[zh]:m}:null;return O6("div",{className:`sf-themed-content${r?` ${nr}`:""}${t?` ${t}`:""}`,style:e,...u,...i,...h,children:O6("div",{style:{background:"var(--bg)",minHeight:"100%"},children:a})})}function DO(e){return{frameClass:void 0,style:{"--sf-page-width":ya}}}function mx({w:e,children:t}){let{frameClass:a,style:s}=DO(e);return O6("div",{className:a,style:s,children:t})}function px({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:k,cardGap:S,hoverEffect:H,headingCompression:I,siteWidth:P,siteGutter:D,blockGap:E,headingTypography:F,heroBackgroundFollowsWidth:_,photographyGrayscale:Z,textStyles:G,themeFromDocument:V}=I3(),j=V?e:g,N=V?t:b,Q=V?void 0:f,W=V?s===void 0?Vz[Ez(a)]:Nz(s):w,U=V?c:I,i1=BO(RO(V?void 0:G)),y1=V?l:F,K=DO({widthMode:r,fullWidth:o,pageWidth:i}),c1={...za(j),...zl(Q),...Oz(y1),...K.style,...h?{}:zm(n)};return ZO("div",{className:"sf-theme-surfaces sf-theme-accent",style:{...ul(N),...vl(j),...fl(j),...bl(j),...xl(j),...mm(W),...Kz(mm(W)),...Bz(V?void 0:z,V?void 0:k,V?void 0:H),...Yz(V?void 0:P),...Xz(V?void 0:D),...Gy(V?void 0:E),...ty(V?void 0:_)},"data-sf-headings":Zz(U),"data-sf-card-shadow":V?void 0:_z(z),"data-sf-card-gap":V?void 0:Iz(S),"data-sf-card-hover":V?void 0:Rz(H),onClickCapture:m,children:[i1?O6("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:i1}}):null,ZO(BT,{grayscale:V?void 0:Z,children:[O6(al1,{style:c1,frameClass:K.frameClass,children:v}),u,d]})]})}var ux=e=>{e.target?.closest?.("a")&&e.preventDefault()};function OO({pageBackground:e,inheritBackground:t=!1,w:a,children:s}){return O6("div",{style:{...t?{}:zm(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:O6(mx,{w:a,children:s})})}import{jsx as gx}from"react/jsx-runtime";import{ListIcon as sl1,PaddingTopIcon as cl1}from"efficient-easel/icons";function ll1(){return{type:"custom",render:({value:e,onChange:t})=>gx(Rh,{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 rl1=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],WO={pageBackground:iw(),topSpace:g1("Top space",gx(cl1,{}),rl1,aC),widthChoice:ll1()},ol1="Record type",dx=new Map,GO=-1;function il1(e){GO!==mp()&&(dx.clear(),GO=mp());let t=hp(),a=t.some(c=>c.key===e)?"":e,s=dx.get(a);return s||(s=g1(ol1,gx(sl1,{}),[...t.map(c=>({label:c.label,value:c.key})),...a?[{label:a,value:a}]:[]],Pe),dx.set(a,s)),s}var qO=new WeakMap;function UO(e,t){if(!M2()||hp().length<2||Rr in e)return e;let a=il1(Br(t)),s=qO.get(e);if(s&&s.row===a)return s.fields;let c={[Rr]:a,...e};return qO.set(e,{row:a,fields:c}),c}function nl1(e,t){let a=ym(t),s=a?a.inner:t;if(rm(s))return!1;if(s?.type==="slot")return!0;let c=Ly(s);return c==="always"?!1:c==="authored-copy"?kz(e):!0}function jO(e){let t=ym(e),a=t?t.inner:e,s=rm(a);return s?Yy(a)?0:s.level:null}function hl1(e,t,a){return a?t===0&&e===Pm.Design||t===1&&e===pw.Content:!1}var ml1=new WeakMap,pl1=new WeakMap;function jh(e,t="section"){let a=t==="page"?pl1:ml1,s=a.get(e);if(s)return s;let c=Object.entries(e).map(([m,u])=>({key:m,field:u,level:jO(u),draws:nl1(m,u)||t==="page"&&jO(u)===null&&im(m,u)})),l=t==="section"&&c.some(m=>im(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&&!hl1(c[m].key,u,l)&&r.add(c[m].key)}let o=l&&fw(e),i=o&&!(Pm.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=re(o?vw(n):n);return a.set(e,h),h}var KO={name:"catalogueLabel",applies:e=>Object.prototype.hasOwnProperty.call(xa,e),draw(e,t){e.label=xa[t]}};import{jsx as ul1}from"react/jsx-runtime";var $O={name:"sectionGroupAllow",applies:e=>ml.includes(e),panel(e,t,a,s){let c=e.fields?.sections;c&&(c.allow=[...s.sectionGroupAllow])}},vx=new Set(Object.keys(Z1)),YO={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=>!vx.has(i)):c;r.disallow=Array.from(new Set([...r.disallow??[],...o]))}}};var dl1=Array.from(new Set([...Dx.map(e=>e.type),...vx,...rl,"GalleryItem"])),XO={name:"cellWidth",applies:(e,t,a)=>dl1.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=Pi(r.appState,l.props?.id);if(i===void 0||fz(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=gz(a.gridSpan),c=t(a);return s==null?c:ul1("div",{className:"sf-grid-cell",[vz]:String(s),children:c})}}};import{jsx as JO}from"react/jsx-runtime";var QO={name:"clickableParts",applies:(e,t,a)=>typeof a?.render=="function",draw(e,t){let a=e,s=a.render;a.render=c=>{let l=E9(c);return c.puck?.isEditing?JO(mH,{needles:om(a.fields,c),styles:l,type:t,children:s(c)}):Object.keys(l).length?JO(qz,{needles:om(a.fields,c),styles:l,type:t,children:s(c)}):s(c)}}};import{jsx as eG}from"react/jsx-runtime";var tG={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=yl(a.sectionCorners,a.sectionCornerSides),c=t(a),l=E0(a)?`sf-section-corners ${Uz}`:"sf-section-corners";return s?eG("div",{className:l,style:{display:"contents",...s},children:c}):c}}},gl1=["CollectionCard"],aG={name:"cardCorners",applies:(e,t,a)=>gl1.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=jz(a.cardCorners,a.cardCornerSides),c=t(a);return s?eG("div",{className:"sf-card-corners",style:{display:"contents",...s},children:c}):c}}};var sG={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 cG={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 lG,Fragment as vl1,jsxs as fl1}from"react/jsx-runtime";function bl1({anchor:e}){let t=vm(typeof e=="string"?e:"");return t?lG("span",{id:t,className:"sf-section-anchor","aria-hidden":"true"}):null}var rG={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=>fl1(vl1,{children:[lG(bl1,{anchor:a.anchor}),t(a)]})}};import{jsx as yl1}from"react/jsx-runtime";import{jsx as xl1}from"react/jsx-runtime";import{useEffect as zl1,useRef as oG}from"react";function iG({motion:e,editing:t,children:a}){let s=oG(null),c=oG(e);return zl1(()=>{let l=s.current;if(l){if(t){if(c.current===e)return;c.current=e,my(l);return}return hy(l)}},[e,t]),xl1("div",{ref:s,[ny]:e,children:a})}var nG={name:"sectionAnimation",applies:(e,t,a)=>t.isSection(e)&&!py.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=iy(s.sectionAnimation);return c?yl1(iG,{motion:c,editing:!!s.puck?.isEditing,children:a(s)}):a(s)}}};import{jsx as wl1}from"react/jsx-runtime";var pG={name:"sectionHeight",applies:(e,t,a)=>t.isSection(e)&&!dy.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=uy(i),h=gy(i)?vy(i):null;return o&&typeof o.then=="function"?o.then(m=>mG(hG(m,n),h)):mG(hG(o,n),h)}},draw(e){let t=e.render;e.render=a=>{let s=fy(a);return s?wl1("div",{className:s.className,style:s.style,children:t(a)}):t(a)}}};function hG(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 mG(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 Cl1}from"react/jsx-runtime";var uG={name:"sectionTheme",applies:(e,t,a)=>t.isSection(e)&&!ry.has(e)&&!!a&&typeof a.render=="function",panel(e,t,a){let{sectionThemeFields:s,SECTION_THEME_FOLLOW_LABEL:c}=a,l=bm.has(t);e.fields={...e.fields,...l?s(f5,c):s()}},draw(e,t){let a=bm.has(t),s=e.render;e.render=c=>{let l=I9(a?{...c,sectionAccent:f5(c.sectionAccent)}:c),r=s(c);return l?Cl1("div",{className:l.className,style:l.style,children:r}):r}}},dG={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(f5,c)})}};var kl1=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"]),gG={name:"sectionGroups",applies:(e,t)=>t.isSection(e)&&(kl1.has(e)||t.isHostBlock(e)),panel(e,t,a){let s=a.assignSectionGroups;e?.fields&&(e.fields=s(e.fields,t))}},Ml1=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"]),vG={name:"blockGroups",applies:e=>Ml1.has(e),panel(e,t,a){let s=a.assignSectionGroups;e?.fields&&(e.fields=s(e.fields,t))}};var Sl1=["Form","Stats"];function fx(e,t){let a=new Set(e),s=Rx.filter(i=>a.has(i)),c=s.filter(i=>i!=="Header"&&i!=="Footer"&&!ml.includes(i)),l=new Set([...t,...rl,...Sl1]),r=s.filter(i=>!l.has(i)),o=new Set(s);return{isSection:i=>o.has(i),isHostBlock:()=>!1,sectionGroupAllow:c,contentSectionKeys:r}}var Ll1=[$O,YO,SL,tG,aG,LL,XO,yT,wT,CT,kT,pG,rG,uG,nG,dG,gG,vG,sG,QO,cG,KO];function fG(e,t,a){let s=t;for(let c of Ll1)c.applies(e,a,s)&&(a.inspector&&c.panel?.(s,e,a.inspector,a),c.draw?.(s,e,a));return t}var bG={spacingFields:x5,sectionShapeFields:Gl,cardShapeFields:Qy,cellWidthFields:cw,widthField:z5,heightFields:lw,anchorFields:rw,sectionThemeFields:X9,sectionAnimationFields:Jy,slider:s1,assignSectionGroups:Ql,dropEmptyHeadings:jh,SECTION_THEME_FOLLOW_LABEL:Hl,BLOCK_THEME_FOLLOW_LABEL:Cy};function xG(e){let t={...fx(Object.keys(e.components),e.categories?.structure?.components??[]),inspector:bG};for(let[l,r]of Object.entries(e.components))fG(l,r,t);let a=e.root,s=a.resolveFields,c=(l,r)=>jh(UO(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 $l1,jsx as n0,jsxs as ga}from"react/jsx-runtime";var Il1="Newsletter (built in)";var Nd0=[{value:"00",label:A.label},{value:"00",label:A.label},{value:"00",label:A.label}],Rl1=am(()=>import("./PreviewFooter-Q36PUHMP.js")),Bl1=am(()=>import("./render-client-2S7YA55G.js")),Zl1={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 Dl1({propsTheme:e,propsFonts:t,widthMode:a,fullWidth:s,pageWidth:c,pageBackground:l,chromeInheritsSiteBackground:r,suppressPreviewNav:o,children:i}){let{originData:n,exitFocus:h}=Jk(),{theme:m,fonts:u,sizes:d,themeFromDocument:v}=I3();if(!n)return ga(px,{propsTheme:e,propsFonts:t,widthMode:a,fullWidth:s,pageWidth:c,pageBackground:l,chromeInheritsSiteBackground:r,suppressPreviewNav:o,footer:null,children:[n0("div",{style:Zl1,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=Sa(f)&&hr(w,f);return ga("div",{className:"sf-theme-accent",style:{...ul(b),...vl(g),...fl(g),...bl(g)},onClickCapture:o,children:[ga("div",{style:{position:"relative"},children:[n0("div",{className:z?nr:void 0,style:{...za(g),...zl(v?void 0:d),pointerEvents:"none",userSelect:"none"},"aria-hidden":"true",children:n0(Bl1,{data:n})}),n0("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}})]}),n0("div",{className:"sf-theme-surfaces",style:{...za(g),...xl(g)},children:n0(mx,{w:{widthMode:a,fullWidth:s,pageWidth:c},children:i})})]})}var F0=Hm,Ol1={formSlug:E5(void 0,Il1),_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:E1("Heading",F0.heading),deck:E1("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:E1("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:T2("Interest chips",n0(c4,{noun:"tag"}),"Chip label","verbatim"),frequencyLabel:q("Frequency label",F0.frequencyLabel),frequencies:T2("Frequency options",n0(Pl1,{}),"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:E1("Message",F0.successBody),keepBrowsingText:q("Dismiss button",F0.keepBrowsingText),...X9(f5,Hl),...Gl(),_gTextStyle:x("Text style"),...Object.fromEntries(Nl.map(e=>[Ey[e],g1(Cm[e],Ke(Cm[e]),[{label:"Popup's own",value:""},...v5.map(t=>({label:T9[t],value:t}))],"")])),_gBehaviour:x("Behavior"),autoOpen:l1("Show by itself",F0.autoOpen,n0(Tl1,{})),trigger:v1("Trigger",n0(_l1,{}),[{label:"Delay",value:"delay"},{label:"Scroll",value:"scroll"},{label:"Exit",value:"exit"}],F0.trigger),autoOpenDelaySec:s1("Delay",n0(bx,{}),Sm.min,Sm.max,1,F0.autoOpenDelaySec,"s"),scrollPercent:s1("Scroll",n0(Nl1,{}),Lm.min,Lm.max,5,F0.scrollPercent,"%"),showOn:v1("Pages",n0(El1,{}),[{label:"All",value:"all"},{label:"Chosen",value:"chosen"}],F0.showOn),showOnPages:Q9("Chosen pages",[],"None"),hideAfter:v1("After close",n0(bx,{}),[{label:"This visit",value:"visit"},{label:"Days",value:"days"},{label:"Never",value:"never"}],F0.hideAfter),hideDays:s1("Days",n0(bx,{}),Am.min,Am.max,1,F0.hideDays),_gArrangement:x("Arrangement"),formSide:v1("Form side",n0(Vl1,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],F0.formSide),_gPhone:x("On a phone"),valuePanelOnPhone:l1("Left panel",F0.valuePanelOnPhone,n0(Hl1,{}))},Gl1=Ql(Ol1,"SubscribePopup");async function ql1(){return(await Ry(i2()??"")).filter(t=>!Ca(t.slug)).map(t=>({label:t.label,value:g8(t.slug)}))}async function Wl1(e){let t=Fm(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(Gl1))a.has(c)||(s[c]=c==="showOnPages"?{...l,options:await ql1().catch(()=>[])}:l);return re(s)}var p5=Vl,Ul1={_gHeader:x("Header"),kickerBadge:q("Eyebrow badge",p5.kickerBadge),kickerText:q("Eyebrow text",p5.kickerText),titleLead:q("Heading",p5.titleLead),titleAccent:q("Heading accent",p5.titleAccent),subtitleEmpty:E1("Sub-line \xB7 empty",p5.subtitleEmpty),subtitleOne:E1("Sub-line \xB7 one set",p5.subtitleOne),subtitleMany:E1("Sub-line \xB7 several sets",p5.subtitleMany,"{count} becomes the number of sets"),_gStatus:x("Status rail"),leadTimeValue:q("Lead time",p5.leadTimeValue),shipsToFallback:q("Ships to \xB7 fallback",p5.shipsToFallback,"Shown only while the site serves no countries \u2014 otherwise the site's default country is stated"),_gPromises:x("Promise row"),promises:T2("Trust markers",n0(zG,{}),"Marker","verbatim"),_gEmpty:x("Empty basket"),emptyKicker:q("Eyebrow",p5.emptyKicker),emptyBody:E1("Message",p5.emptyBody)},Kh={root:{fields:{...WO},resolveFields:async(e,{fields:t})=>{if(e?.props?.kind===Mm)return Wl1(e.props);if(e?.props?.kind===wm)return Ul1;let a=t;return M2()?{[dp]:g1("Product type",n0(Al1,{}),we,"alloy-wheel"),...a,_gHeroBullets:x("Product hero"),_nHeroBullets:b5("The promises under Add to Cart. Text before the \xB7 is bold. Leave the list empty to show no promises at all."),[du]:T2("Trust bullets",n0(zG,{}),fL(Ja.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=Zr(typeof h=="string"?h:"",e);if(h===Mm){let f=Fm(e);return ga("div",{style:{background:"var(--bg)",minHeight:"100%"},children:[a?.isEditing?n0("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,n0(fS,{inline:!0,content:f})]})}if(h===wm){let f=Py(e);return ga("div",{style:{background:"var(--bg)",minHeight:"100%"},children:[a?.isEditing?n0("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,n0(wr,{children:n0(Cr,{preview:!0,children:n0($a,{content:f})})})]})}let d=!!a?.isEditing,v=n0(dL,{type:uu(e),children:n0(iL,{kind:u,children:n0(zL,{content:bL(e),children:n0(lL,{slug:d?m:null,children:n0(YM,{children:t})})})})}),g=h===Vy&&!Sy(r);return d?h===G9?n0(Dl1,{propsTheme:o,propsFonts:i,widthMode:s,fullWidth:c,pageWidth:l,pageBackground:typeof r=="string"?r:void 0,chromeInheritsSiteBackground:g,suppressPreviewNav:ux,children:v}):n0(px,{propsTheme:o,propsFonts:i,widthMode:s,fullWidth:c,pageWidth:l,pageBackground:typeof r=="string"?r:void 0,suppressPreviewNav:ux,footer:n0(Rl1,{}),overlay:ga($l1,{children:[n0(Xp,{}),n0(ou,{})]}),children:v}):n0(OO,{pageBackground:r,inheritBackground:g,w:{widthMode:s,fullWidth:c,pageWidth:l},children:v})}},categories:Ix(),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:G0.Collections,CollectionCard:G0.CollectionCard,Events:h2.Events,PostCard:B1.PostCard,DocMetaCards:B1.DocMetaCards,DocTabs:B1.DocTabs,DocMasthead:B1.DocMasthead,DocBody:B1.DocBody,FAQ:B1.FAQ,Gallery:G0.Gallery,GalleryB:G0.GalleryB,BrandStrip:G0.BrandStrip,SpecStrip:B1.SpecStrip,GalleryItem:G0.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:G0.CatalogFilterBar,AlloyWheelsListing:G0.AlloyWheelsListing,ProductGrid:G0.ProductGrid,ProductHero:G0.ProductHero,SpecTable:G0.SpecTable,ProcessSteps:B1.ProcessSteps,DetailRows:G0.DetailRows,FitmentTable:G0.FitmentTable,RelatedProducts:G0.RelatedProducts,BundleOffer:G0.BundleOffer,CompatibleTyres:G0.CompatibleTyres,TyreSizes:G0.TyreSizes,TyreFitment:G0.TyreFitment,EuTyreLabel:G0.EuTyreLabel,FitmentFinder:G0.FitmentFinder,OrderSummary:B1.OrderSummary,DeliveryOptions:G0.DeliveryOptions,PaymentBadges:B1.PaymentBadges,CheckoutCTA:G0.CheckoutCTA,ProductRef:G0.ProductRef,CustomHTML:B1.CustomHTML,Header:G0.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:G0.SearchBlock,CartBlock:G0.CartBlock,CountrySwitchBlock:G0.CountrySwitchBlock,[H9]:h2.SiteHeader,[F9]:h2.SiteFooter}},jl1={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial"};for(let[e,t]of Object.entries(jl1)){let a=Kh.components;a[e]={...a[t]}}{let e=Kh.components.MenuBlock;e.fields={...e.fields,direction:v1("Direction",n0(Fl1,{}),[{label:xm.column,value:"column"},{label:xm.row,value:"row"}],"column")},e.defaultProps={...e.defaultProps,direction:"column"},e.render=({menu:t,heading:a,accordionMobile:s,showDividers:c,direction:l,puck:r})=>n0(Ra,{menu:t,heading:a||void 0,accordionMobile:s,showDividers:c,layout:l==="row"?"row":"column",editing:r?.isEditing})}var Kl1=xG(Kh),_d0=Kl1.sectionGroupAllow,lb=Kh;export{sy1 as a,cy1 as b,ly1 as c,ry1 as d,oy1 as e,fx as f,fG as g,bG as h,pj as i,mp1 as j,Lo1 as k,AZ as l,Ji1 as m,eS as n,Qi1 as o,en1 as p,jm1 as q,Bm0 as r,Zm0 as s,mq1 as t,fr1 as u,br1 as v,xr1 as w,zr1 as x,Nr1 as y,_r1 as z,OU1 as A,Jo1 as B,In1 as C,oe0 as D,Jp as E,fR1 as F,Ap as G,fM as H,li1 as I,ri1 as J,oi1 as K,mi1 as L,yM as M,Oo1 as N,R5 as O,xZ as P,Qf as Q,wh as R,kt as S,i3 as T,QU as U,wZ as V,Co1 as W,jn as X,ef as Y,g81 as Z,gQ1 as _,WR as $,kc as aa,lb as ba};
|