efficient-storefront-blocks 0.125.18 → 0.125.19

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.
Files changed (25) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/chunks/{CustomHtmlCodeWindow-GU7XJD4P.js → CustomHtmlCodeWindow-LITJEQFG.js} +1 -1
  3. package/dist/chunks/{EditorPreviewCheckout-YNOXGBF3.js → EditorPreviewCheckout-WP23XRYO.js} +1 -1
  4. package/dist/chunks/SiteEditorProvider-FT3P5QZM.js +1 -0
  5. package/dist/chunks/{chunk-RCG52BYQ.js → chunk-EEHSAQWF.js} +2 -2
  6. package/dist/chunks/{chunk-SVVQDQP3.js → chunk-ESKHLPB5.js} +1 -1
  7. package/dist/chunks/{chunk-AKQZ7SOP.js → chunk-PVRWP47B.js} +1 -1
  8. package/dist/chunks/{chunk-NJMMRTE4.js → chunk-TMSNT2CP.js} +1 -1
  9. package/dist/chunks/{chunk-LHRUHC3R.js → chunk-TT3AZYTK.js} +1 -1
  10. package/dist/chunks/{chunk-QZV32ZUO.js → chunk-VUMZSQZ5.js} +1 -1
  11. package/dist/chunks/{chunk-4R75CGDP.js → chunk-YOF4KT5H.js} +1 -1
  12. package/dist/chunks/{chunk-4HZIV5UO.js → chunk-ZHEHF42C.js} +1 -1
  13. package/dist/chunks/{fitment-data-4BSUUSAX.js → fitment-data-FJ3MIJXK.js} +1 -1
  14. package/dist/chunks/{section-css-style-6XARTNKW.js → section-css-style-JQZMV74P.js} +1 -1
  15. package/dist/index.js +9 -3
  16. package/dist/render/built-with.json +1 -1
  17. package/dist/routine-index.json +1 -1
  18. package/dist/value-index.json +1 -1
  19. package/package.json +3 -3
  20. package/dist/chunks/SiteEditorProvider-2DLGUDDP.js +0 -1
  21. /package/dist/chunks/{chunk-E4ZWGCLS.js → chunk-DFYWYSOT.js} +0 -0
  22. /package/dist/chunks/{chunk-RCG52BYQ.js.LEGAL.txt → chunk-EEHSAQWF.js.LEGAL.txt} +0 -0
  23. /package/dist/chunks/{chunk-UIWK6VX2.js → chunk-G5LEO2F2.js} +0 -0
  24. /package/dist/chunks/{chunk-DET7LVPH.js → chunk-LY7GZJ6M.js} +0 -0
  25. /package/dist/chunks/{chunk-LHRUHC3R.js.LEGAL.txt → chunk-TT3AZYTK.js.LEGAL.txt} +0 -0
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import{$ as bp,$a as sJ,$b as $m,$c as RQ,$d as Pee,$e as HF,$f as r6,$g as zt,A as Lm,Aa as qZ,Ab as BJ,Ac as qP,Ad as XQ,Ae as td,Af as yC,Ag as d6,Ah as Pre,B as PX,Ba as K0,Bb as MJ,Bc as el,Bd as jm,Be as Dee,Bf as vC,Bg as m2,Bh as Cre,C as eZ,Ca as CP,Cb as zJ,Cc as gF,Cd as nc,Ce as Mee,Cf as fte,Cg as One,Ch as Rb,D as me,Da as iF,Db as BP,Dc as tb,Dd as ZQ,De as LF,Df as kC,Dg as i_,Dh as _re,E as tZ,Ea as V0,Eb as WJ,Ec as uQ,Ed as JQ,Ee as zee,Ef as hte,Eg as s_,Eh as Rre,F as Lv,Fa as JZ,Fb as ph,Fc as fQ,Fd as QQ,Fe as Wee,Ff as zF,Fg as Ane,Fh as Nre,G as sZ,Ga as _P,Gb as vo,Gc as hQ,Gd as eee,Ge as Uee,Gf as SC,Gg as Lne,Gh as rd,H as lZ,Ha as QZ,Hb as HP,Hc as gQ,Hd as tee,He as Gee,Hf as gte,Hg as l_,Hh as Ore,I as dZ,Ia as Hv,Ib as GJ,Ic as bQ,Id as oee,Ie as IF,If as WF,Ig as Ine,Ih as ou,J as cZ,Ja as Dv,Jb as DP,Jc as wQ,Jd as nee,Je as $ee,Jf as bte,Jg as Fne,Jh as Are,K as bP,Ka as RP,Kb as MP,Kc as bF,Kd as ree,Ke as Kee,Kf as wte,Kg as Bne,Kh as f6,L as pZ,La as eJ,Lb as VJ,Lc as xQ,Ld as aee,Le as Vee,Lf as xte,Lg as Hne,Lh as Lre,M as mZ,Ma as tJ,Mb as Pt,Mc as yQ,Md as iee,Me as BF,Mf as yte,Mg as Jne,Mh as Ire,N as uZ,Na as oJ,Nb as YJ,Nc as Vm,Nd as see,Ne as mC,Nf as nne,Ng as Qne,Nh as u_,O as fZ,Oa as nJ,Ob as N,Oc as vQ,Od as lee,Oe as uC,Of as rne,Og as ere,Oh as Fre,P as hZ,Pa as rJ,Pb as Ko,Pc as ec,Pd as hee,Pe as qee,Pf as ane,Pg as tre,Ph as Bre,Q as gZ,Qa as aJ,Qb as fF,Qc as kQ,Qd as gee,Qe as Xee,Qf as ine,Qg as ore,Qh as u2,R as bZ,Ra as Mv,Rb as ee,Rc as Ym,Rd as sC,Re as Zee,Rf as n6,Rg as Pb,Rh as Hre,S as Ze,Sa as zv,Sb as Bt,Sc as SQ,Sd as bee,Se as qm,Sf as sne,Sg as nre,Sh as Dre,T as rF,Ta as Wv,Tb as Zs,Tc as XP,Td as wee,Te as Io,Tf as lne,Tg as p_,U as Se,Ua as NP,Ub as jJ,Uc as TQ,Ud as xee,Ue as fC,Uf as e_,Ug as rre,V as AZ,Va as iJ,Vb as qJ,Vc as EQ,Vd as yee,Ve as Jee,Vf as eu,Vg as are,W as $o,Wa as Mm,Wb as Js,Wc as PQ,Wd as vee,We as Qee,Wf as t_,Wg as ire,X as BZ,Xa as OP,Xb as zP,Xc as CQ,Xd as kee,Xe as hC,Xf as xb,Xg as sre,Y as Fv,Ya as dh,Yb as XJ,Yc as kn,Yd as See,Ye as gC,Yf as yb,Yg as m6,Z as qd,Za as ch,Zb as Gm,Zc as _Q,Zd as Tee,Ze as ete,Zf as vb,Zg as lre,_ as kP,_a as Y0,_b as Qs,_c as yp,_d as Eee,_e as tte,_f as kb,_g as st,a as D4,aa as Xd,ab as lJ,ac as JJ,ad as NQ,ae as Cee,af as ab,ag as a6,ah as La,b as Gs,ba as Zd,bb as dJ,bc as GP,bd as Gv,be as rb,bf as fh,bg as o_,bh as ao,c as $s,ca as Dm,cb as cJ,cc as $P,cd as $v,ce as _ee,cf as ote,cg as dne,ch as dre,d as vn,da as lh,db as pJ,dc as hF,dd as ko,de as Ree,df as nte,dg as i6,dh as cre,e as Cv,ea as HZ,eb as tr,ec as Qd,ed as ZP,ee as Nee,ef as bC,eg as cne,eh as u6,f as Rm,fa as SP,fb as j0,fc as De,fd as IQ,fe as Oee,ff as rte,fg as pne,fh as pre,g as _v,ga as DZ,gb as mJ,gc as R,gd as vp,ge as _F,gf as Aa,gg as mne,gh as mre,h as _q,ha as TP,hb as uJ,hc as Jo,hd as FQ,he as RF,hf as ol,hg as fne,hh as ure,i as HE,ia as MZ,ib as fJ,ic as ln,id as Wt,ie as NF,if as $e,ig as hne,ih as fre,j as A0,ja as EP,jb as AP,jc as oi,jd as Oa,je as lC,jf as Xm,jg as gne,jh as ll,k as rh,ka as Bv,kb as hJ,kc as KP,kd as xF,ke as dC,kf as ate,kg as bne,kh as hre,l as DE,la as G0,lb as sF,lc as QJ,ld as QP,le as cC,lf as ite,lg as wne,lh as Cb,m as ME,ma as zZ,mb as gJ,mc as eQ,md as BQ,me as pC,mf as ste,mg as xne,mh as gre,n as zE,na as WZ,nb as Uv,nc as tQ,nd as HQ,ne as Aee,nf as lte,ng as yne,nh as bre,o as WE,oa as $0,ob as bJ,oc as oQ,od as eC,oe as Lee,of as Qv,og as vne,oh as m_,p as UE,pa as UZ,pb as wJ,pc as nQ,pd as tC,pe as Iee,pf as wC,pg as kne,ph as _b,q as GE,qa as GZ,qb as xJ,qc as rQ,qd as DQ,qe as Fee,qf as dte,qg as Sne,qh as wre,r as Rq,ra as $Z,rb as cF,rc as aQ,rd as MQ,re as qv,rf as e2,rg as s6,rh as xre,s as Oq,sa as qs,sb as IP,sc as iQ,sd as Vv,se as Xv,sf as hh,sg as Pne,sh as yre,t as Aq,ta as PP,tb as FP,tc as xp,td as Yv,te as Zv,tf as DF,tg as a_,th as Pp,u as YE,ua as wp,ub as IJ,uc as VP,ud as SF,ue as Jv,uf as cte,ug as Cne,uh as vh,v as jE,va as is,vb as FJ,vc as sQ,vd as TF,ve as Bee,vf as pte,vg as _ne,vh as vre,w as mX,wa as KZ,wb as Q0,wc as lQ,wd as nb,we as uh,wf as Lt,wg as Sb,wh as kre,x as uX,xa as VZ,xb as pF,xc as cQ,xd as rC,xe as OF,xf as mte,xg as l6,xh as Sre,y as nP,ya as YZ,yb as mF,yc as pQ,yd as EF,ye as Hee,yf as ute,yg as Rne,yh as Tre,z as J4,za as jZ,zb as uF,zc as mQ,zd as qQ,ze as AF,zf as MF,zg as Nne,zh as Ere}from"./chunks/chunk-RCG52BYQ.js";import{$ as Bb,$a as fie,A as Lae,B as Iae,C as x_,Ca as iie,D as Fb,Da as sie,E as y_,Ea as iu,F as Fae,Fa as Ot,G as v_,Ga as lie,H as k_,I as Bae,Ia as T6,J as Hae,Ja as Wb,K as Dae,Ka as Tn,L as Mae,La as A_,M as zae,Ma as w2,N as Wae,O as g2,Oa as su,P as Uae,Pa as dc,Q as S_,Qa as die,R as Gae,Ra as Th,S as T_,Sa as cie,T as $ae,Ta as E6,U as Kae,Ua as pie,V as Vae,Va as mie,W as Yae,Wa as L_,X as k6,Xa as uie,Y as jae,Ya as cs,Z as qae,Za as I_,_ as Xae,_a as Ub,a as ai,aa as Hb,ab as hie,b as vae,ba as E_,bb as Rp,ca as Zae,cb as P6,da as Jae,ea as P_,eb as C6,f as Cp,fa as ru,fb as Gb,g as b_,ga as C_,gb as $b,h as kae,ha as b2,hb as F_,i as y6,ia as Db,ib as Eh,j as Sae,ja as Qae,jb as zr,k as Tae,ka as Sh,l as Eae,la as eie,m as w_,ma as au,n as v6,na as Mb,o as Pae,oa as __,p as ca,pa as _p,q as Cae,qa as S6,r as _ae,ra as tie,s as nu,sa as oie,t as Rae,ta as R_,u as lc,ua as N_,v as h2,va as O_,w as Nae,wa as nie,x as Ib,xa as rie,y as Oae,ya as zb,z as Aae,za as aie}from"./chunks/chunk-QZV32ZUO.js";import{A as Xre,B as Zre,C as Jre,D as Qre,E as eae,F as tae,G as oae,H as nae,I as rae,J as b6,K as aae,L as w6,M as cn,N as iae,O as Oi,P as sae,Q as lae,R as g_,S as or,T as dae,U as cae,V as pae,W as mae,X as Ob,Y as uae,b as f_,ca as Ab,da as Fo,e as f2,ea as kh,f as Nb,fa as fae,ga as Lb,h as Sn,ha as Ne,i as sc,ia as hae,j as Mre,ja as x6,k as zre,ka as gae,l as Wre,la as bae,m as Ure,ma as wae,n as Gre,na as xae,o as h6,oa as yae,p as dl,q as $re,r as Kre,s as ot,t as Ni,u as Vre,v as Yre,w as g6,x as jre,y as h_,z as qre}from"./chunks/chunk-NJMMRTE4.js";import{$ as XX,A as UX,B as Nv,C as GX,F as z0,G as Im,H as VX,I as hp,L as YX,M as er,N as cP,O as mo,P as D,Q as tF,S as Bm,T as W0,U as jX,V as oF,W as qX,X as U0,aa as lF,b as fX,ba as Wm,c as hX,ca as TJ,da as Z0,ea as EJ,fa as Xs,g as gX,ga as UJ,ha as Le,i as CX,ia as yh,j as lP,k as dP,ka as Tne,l as _X,la as n_,m as RX,ma as Ene,n as NX,na as r_,o as OX,p as AX,q as LX,r as IX,s as FX,u as BX,v as HX,w as DX,x as MX,y as zX,z as WX}from"./chunks/chunk-4HZIV5UO.js";import{a as Ri,b as OQ,c as tc,e as ed,h as xC,j as da,k as Zne}from"./chunks/chunk-E4ZWGCLS.js";import{a as ZX,b as JX,e as QX}from"./chunks/chunk-LHRUHC3R.js";import{$b as nZ,$c as CZ,$d as X0,$e as ob,$f as FF,$g as sa,$h as eoe,$i as Ooe,$k as Tb,Ae as HJ,Af as nC,Ag as Cte,Ah as Kte,Ai as xh,Ak as p2,Bc as aF,Bf as jQ,Bg as _te,Bi as goe,Bj as XC,Bk as wb,C as pe,Cb as fp,Cc as xZ,Ce as DJ,Ch as Vte,Ci as boe,Cj as rc,Ck as Qoe,D as Pi,Db as Rv,Dc as yZ,De as Jd,Df as kF,Dh as mb,Di as UC,Dj as ZC,Dk as ene,E as Hq,Eb as sh,Eh as la,Ei as woe,Ek as tne,Fb as iP,Fc as wP,Fe as W,Fh as KF,Fi as GC,Fj as e6,Fk as one,G as Dq,Ga as cX,Gb as sP,Gc as xP,Ge as WP,Gh as Yte,Gi as xoe,Gj as ac,Hc as Hm,He as gn,Hf as dee,Hh as jte,Hi as yoe,Ia as pX,Ic as vZ,Ie as eb,If as aC,Ih as VF,Ii as i2,Ij as Foe,Jc as kZ,Je as ZJ,Jf as cee,Jh as YF,Ji as s2,Jj as Boe,K as Mq,Ke as UP,Kf as pee,Kh as jF,Ki as $C,Kj as Hoe,La as _a,Ld as LZ,Le as Um,Lf as tl,Lh as o2,Li as voe,Lj as Doe,M as zq,Ma as Ra,Md as jd,Me as Yt,Mf as mee,Mh as qF,Mi as koe,Mj as Moe,N as Wq,Na as bX,Nd as Iv,Nf as uee,Nh as n2,Ni as Soe,Oa as wX,Oe as Km,Of as iC,Oh as Zm,Oi as QF,Oj as zoe,Ok as Dne,Pa as xX,Pd as vP,Pe as YP,Pf as fee,Ph as qte,Pi as Toe,Pj as Woe,Qa as yX,Qd as IZ,Qe as jP,Qh as Xte,Qi as Eoe,Qj as ic,R as qE,Rb as Ov,Rd as FZ,Rg as rl,Rh as Jm,Ri as Poe,Rj as Uoe,Rk as Mne,S as XE,Sa as vX,Sb as pP,Se as dQ,Sg as Rte,Sh as BC,Si as l2,Sj as Goe,T as Uq,Tb as mP,Td as XZ,Te as AQ,Tg as Nte,Th as Zte,Ti as Coe,Tj as $oe,U as Gq,Ua as Q4,Ub as Ql,Uc as SZ,Ud as ZZ,Ue as ni,Ug as _C,Uh as Jte,Ui as _oe,Uj as d2,V as F0,Vb as Ci,Ve as oc,Vg as sb,Vh as Qm,Vi as br,W as $q,Wb as oZ,Wd as yJ,We as Kv,Wg as Tp,Wh as Qte,Wi as KC,Wj as Koe,Xb as Av,Xe as JP,Xf as PF,Xg as lb,Xh as r2,Xi as Roe,Yb as as,Yc as TZ,Yd as zm,Ye as wF,Yf as CF,Yg as RC,Yh as XF,Yi as VC,Z as Kq,Zc as EZ,Zd as vJ,Ze as LQ,Zf as jv,Zg as GF,Zh as ZF,Zi as Noe,Zj as c2,Zk as zne,_b as js,_c as PZ,_d as q0,_f as ls,_g as al,_h as HC,_k as Qt,a as Kd,aa as ZE,ac as gp,ae as kJ,ag as Yee,ah as Ote,ai as DC,aj as ri,al as Eb,b as dq,bc as uP,be as SJ,bg as jee,bj as YC,bl as sl,c as Nq,cc as rZ,ce as LP,ch as Ate,ci as MC,cj as Aoe,cl as eo,d as $E,dc as fP,de as PJ,dg as ib,dh as Lte,di as toe,dj as fb,dl as Wne,ec as Na,eg as TC,eh as NC,ei as ooe,ej as wr,ek as Voe,el as Une,fb as kX,fc as hP,fd as _i,fg as ae,fh as OC,fi as noe,fk as ne,fl as Gne,g as u,ga as $4,gc as aZ,gd as _Z,gg as le,gh as Hte,gi as bh,gj as dn,gk as ds,gl as $ne,h as Qn,hb as SX,hc as iZ,he as dF,hf as mh,hg as kp,hh as Dte,hi as zC,hk as Yoe,hl as Kne,ib as TX,ic as gP,if as zQ,ig as Te,ih as Mte,ii as wh,ij as hb,ik as joe,il as d_,j as Nm,ja as oX,jg as vte,ji as roe,jj as Loe,jk as Ep,jl as Vne,k as Yd,ka as D0,kd as RZ,kf as WQ,kg as EC,kh as IC,ki as aoe,kj as jC,kl as Yne,la as nX,le as CJ,lf as oC,lg as nl,lh as zte,lj as qC,lk as t6,ll as jne,m as Fq,ma as rX,mb as EX,me as _J,mg as PC,mh as $F,mi as ioe,mj as gb,mk as bb,na as aX,nb as eF,ne as RJ,nf as UQ,ng as CC,nh as db,ni as soe,nj as U,nk as zo,nl as qne,oa as iX,oe as Dr,of as GQ,og as gh,oh as cb,oi as loe,oj as j,ok as JC,ol as Xne,pa as sX,pb as M0,pd as NZ,pe as ss,pf as $Q,pg as od,ph as FC,pi as doe,pj as J,pk as qoe,pl as c6,q as G4,qa as Z4,qb as ah,qe as J0,qf as KQ,qg as kte,qh as Wte,qi as coe,qj as we,qk as et,ql as p6,ra as lX,rb as Ys,re as NJ,rg as Sp,rh as Ute,ri as JF,rj as Ve,rk as QC,rl as c_,sa as dX,sg as nd,sh as Gte,si as poe,sj as qe,sk as o6,ta as tP,tb as rP,tc as wZ,td as OZ,te as OJ,tf as VQ,tg as Ste,ti as moe,tk as Mr,ua as oP,ug as UF,ui as uoe,uj as il,v as Bq,ve as AJ,vg as Tte,vh as pb,vi as WC,vj as Ioe,w as Jl,wb as bo,wf as yF,wg as Ete,wi as ub,wk as Xoe,x as I0,xb as ih,xe as LJ,xf as vF,xg as wo,xh as $te,xi as foe,xk as Zoe,yb as aP,yf as YQ,yi as hoe,z as Om,zb as Hr,zd as yP,zf as gr,zg as Pte,zi as a2,zk as Joe}from"./chunks/chunk-4R75CGDP.js";import{d as nF}from"./chunks/chunk-SVVQDQP3.js";import{$b as xv,$c as pt,A as Fr,Ab as tj,Ad as zj,Af as uq,Ah as eP,B as Ea,Ba as qY,Bf as Pv,Bg as kq,Bh as Vs,C as hn,Ca as hr,Cb as gE,Cd as Wj,Cf as LE,Cg as Sq,Ch as q4,De as _m,Df as z4,Dg as Tq,Dh as Am,E as Dn,Ea as mE,Ec as vE,Ed as Ca,Ee as Jj,Ef as IE,Eg as Eq,Eh as X4,Fa as XY,Fb as oj,Fc as kE,Fd as ei,Fe as Qj,Ff as Vd,Ga as Zf,Gb as Qf,Gc as O4,Gd as He,Ge as eq,Gf as up,Gh as eX,H as E4,Ha as uE,Hb as $d,Hc as Ej,Hd as Ti,He as tq,Hh as H0,I as P4,Ib as k0,Ic as E0,Id as ht,Ie as N0,Ih as tX,Jb as Yl,Jc as P0,Jg as Pq,K as MY,Kb as eh,Kc as Pj,Lb as Tm,Lc as Cj,Ld as it,Mb as nj,Mc as A4,N as zY,Na as ZY,Nb as Br,Nc as _j,Nf as fq,Ng as Cq,Oa as JY,Ob as Jn,Oc as C0,Od as We,Oe as oq,Pa as QY,Pb as rj,Pc as Rj,Pf as FE,Qb as aj,Qc as yv,Qd as Ei,R as C4,Rb as ij,Rd as Uj,Sb as sj,Sc as Nj,Sd as nt,Se as Sv,Ta as ej,Tb as bE,Tc as Oj,Td as _0,Te as NE,Tf as hq,U as WY,Ub as wE,Uc as Aj,Ue as nq,Uf as BE,Ug as Ks,Vb as lj,Vc as Lj,Vd as TE,Ve as OE,Vg as Lq,Vh as $X,W as Ce,Wb as dj,Wc as Ij,Wd as EE,We as rq,Wg as KE,X as ce,Xb as cj,Xc as Ge,Xd as Xl,Xe as aq,Yb as pj,Yc as vt,Ye as Mn,Z as UY,Zb as mj,Zc as Ws,Ze as iq,_b as uj,_c as ze,_d as Gj,_e as Zo,aa as GY,ac as fj,ad as L4,ag as W4,ah as L0,ai as Fm,b as fr,bc as Em,bd as Fj,bf as sq,bh as Iq,bi as KX,c as gv,cc as hj,cd as po,ce as PE,ch as VE,ci as ti,da as v0,dc as gj,de as Cm,dh as JE,e as lE,ea as $Y,ec as bj,ed as ql,ef as Tv,eh as Vq,f as Gd,fa as KY,fd as Pm,fe as CE,ff as lq,fh as K4,g as bv,ga as pE,gb as Qa,gc as jl,gd as Pa,ge as vv,gh as V4,hc as S0,hd as Lo,hf as mp,hh as Y4,ic as T0,id as Bj,ie as F4,if as H4,ih as Yq,ii as t2,ja as VY,jc as wj,je as B4,jf as AE,jh as jq,ji as AC,kc as xj,ke as $j,kf as Zl,kg as gq,kh as qq,ki as LC,l as S4,lc as yj,le as Kj,lf as oh,lh as Xq,li as zn,m as y0,mb as R4,mc as N4,md as Hj,me as Vj,mh as Zq,mi as Ite,nc as vj,nd as Re,nf as Ev,ng as bq,nh as j4,ni as Fte,ob as Jf,oe as _E,of as Us,oh as Jq,oi as Bte,p as T4,pb as wv,pc as xE,pd as th,pe as Yj,pf as O0,qa as YY,qe as R0,qf as M4,qg as wq,qi as tu,r as dE,rg as xq,rh as Qq,ri as une,s as pp,sa as _4,sc as kj,t as cE,tb as zs,te as jj,tg as yq,u as lt,uc as rs,ue as qj,uf as cq,v as DY,vd as SE,ve as Xj,w as Vt,wa as jY,wc as Sj,wd as I4,wf as pq,wh as QE,x as Ds,xb as fE,xc as yE,xd as Dj,xe as kv,xf as nh,xg as vq,y as Go,yc as Tj,yd as Mj,ye as Zj,yf as mq,yg as U4,yh as ia,z as Et,za as yo,zb as hE,ze as RE,zh as B0}from"./chunks/chunk-AKQZ7SOP.js";import{a as Ms}from"./chunks/chunk-UIWK6VX2.js";import{a as $J,c as KJ}from"./chunks/chunk-DET7LVPH.js";import{a as fn,b as qFe}from"./chunks/chunk-Y6SLVHK3.js";var Kf=fn(d0=>{"use strict";var qK,k1t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];d0.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};d0.getSymbolTotalCodewords=function(t){return k1t[t]};d0.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};d0.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');qK=t};d0.isKanjiModeEnabled=function(){return typeof qK<"u"};d0.toSJIS=function(t){return qK(t)}});var A3=fn(Ul=>{"use strict";Ul.L={bit:1};Ul.M={bit:0};Ul.Q={bit:3};Ul.H={bit:2};function S1t(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return Ul.L;case"m":case"medium":return Ul.M;case"q":case"quartile":return Ul.Q;case"h":case"high":return Ul.H;default:throw new Error("Unknown EC Level: "+e)}}Ul.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};Ul.from=function(t,o){if(Ul.isValid(t))return t;try{return S1t(t)}catch{return o}}});var u3e=fn((hkn,m3e)=>{"use strict";function p3e(){this.buffer=[],this.length=0}p3e.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let o=0;o<t;o++)this.putBit((e>>>t-o-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};m3e.exports=p3e});var h3e=fn((gkn,f3e)=>{"use strict";function BT(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}BT.prototype.set=function(e,t,o,n){let r=e*this.size+t;this.data[r]=o,n&&(this.reservedBit[r]=!0)};BT.prototype.get=function(e,t){return this.data[e*this.size+t]};BT.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o};BT.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};f3e.exports=BT});var g3e=fn(L3=>{"use strict";var T1t=Kf().getSymbolSize;L3.getRowColCoords=function(t){if(t===1)return[];let o=Math.floor(t/7)+2,n=T1t(t),r=n===145?26:Math.ceil((n-13)/(2*o-2))*2,a=[n-7];for(let i=1;i<o-1;i++)a[i]=a[i-1]-r;return a.push(6),a.reverse()};L3.getPositions=function(t){let o=[],n=L3.getRowColCoords(t),r=n.length;for(let a=0;a<r;a++)for(let i=0;i<r;i++)a===0&&i===0||a===0&&i===r-1||a===r-1&&i===0||o.push([n[a],n[i]]);return o}});var x3e=fn(w3e=>{"use strict";var E1t=Kf().getSymbolSize,b3e=7;w3e.getPositions=function(t){let o=E1t(t);return[[0,0],[o-b3e,0],[0,o-b3e]]}});var y3e=fn(Xo=>{"use strict";Xo.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var c0={N1:3,N2:3,N3:40,N4:10};Xo.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};Xo.from=function(t){return Xo.isValid(t)?parseInt(t,10):void 0};Xo.getPenaltyN1=function(t){let o=t.size,n=0,r=0,a=0,i=null,s=null;for(let l=0;l<o;l++){r=a=0,i=s=null;for(let d=0;d<o;d++){let c=t.get(l,d);c===i?r++:(r>=5&&(n+=c0.N1+(r-5)),i=c,r=1),c=t.get(d,l),c===s?a++:(a>=5&&(n+=c0.N1+(a-5)),s=c,a=1)}r>=5&&(n+=c0.N1+(r-5)),a>=5&&(n+=c0.N1+(a-5))}return n};Xo.getPenaltyN2=function(t){let o=t.size,n=0;for(let r=0;r<o-1;r++)for(let a=0;a<o-1;a++){let i=t.get(r,a)+t.get(r,a+1)+t.get(r+1,a)+t.get(r+1,a+1);(i===4||i===0)&&n++}return n*c0.N2};Xo.getPenaltyN3=function(t){let o=t.size,n=0,r=0,a=0;for(let i=0;i<o;i++){r=a=0;for(let s=0;s<o;s++)r=r<<1&2047|t.get(i,s),s>=10&&(r===1488||r===93)&&n++,a=a<<1&2047|t.get(s,i),s>=10&&(a===1488||a===93)&&n++}return n*c0.N3};Xo.getPenaltyN4=function(t){let o=0,n=t.data.length;for(let a=0;a<n;a++)o+=t.data[a];return Math.abs(Math.ceil(o*100/n/5)-10)*c0.N4};function P1t(e,t,o){switch(e){case Xo.Patterns.PATTERN000:return(t+o)%2===0;case Xo.Patterns.PATTERN001:return t%2===0;case Xo.Patterns.PATTERN010:return o%3===0;case Xo.Patterns.PATTERN011:return(t+o)%3===0;case Xo.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2===0;case Xo.Patterns.PATTERN101:return t*o%2+t*o%3===0;case Xo.Patterns.PATTERN110:return(t*o%2+t*o%3)%2===0;case Xo.Patterns.PATTERN111:return(t*o%3+(t+o)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}Xo.applyMask=function(t,o){let n=o.size;for(let r=0;r<n;r++)for(let a=0;a<n;a++)o.isReserved(a,r)||o.xor(a,r,P1t(t,a,r))};Xo.getBestMask=function(t,o){let n=Object.keys(Xo.Patterns).length,r=0,a=1/0;for(let i=0;i<n;i++){o(i),Xo.applyMask(i,t);let s=Xo.getPenaltyN1(t)+Xo.getPenaltyN2(t)+Xo.getPenaltyN3(t)+Xo.getPenaltyN4(t);Xo.applyMask(i,t),s<a&&(a=s,r=i)}return r}});var ZK=fn(XK=>{"use strict";var Vf=A3(),I3=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F3=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];XK.getBlocksCount=function(t,o){switch(o){case Vf.L:return I3[(t-1)*4+0];case Vf.M:return I3[(t-1)*4+1];case Vf.Q:return I3[(t-1)*4+2];case Vf.H:return I3[(t-1)*4+3];default:return}};XK.getTotalCodewordsCount=function(t,o){switch(o){case Vf.L:return F3[(t-1)*4+0];case Vf.M:return F3[(t-1)*4+1];case Vf.Q:return F3[(t-1)*4+2];case Vf.H:return F3[(t-1)*4+3];default:return}}});var v3e=fn(H3=>{"use strict";var HT=new Uint8Array(512),B3=new Uint8Array(256);(function(){let t=1;for(let o=0;o<255;o++)HT[o]=t,B3[t]=o,t<<=1,t&256&&(t^=285);for(let o=255;o<512;o++)HT[o]=HT[o-255]})();H3.log=function(t){if(t<1)throw new Error("log("+t+")");return B3[t]};H3.exp=function(t){return HT[t]};H3.mul=function(t,o){return t===0||o===0?0:HT[B3[t]+B3[o]]}});var k3e=fn(DT=>{"use strict";var JK=v3e();DT.mul=function(t,o){let n=new Uint8Array(t.length+o.length-1);for(let r=0;r<t.length;r++)for(let a=0;a<o.length;a++)n[r+a]^=JK.mul(t[r],o[a]);return n};DT.mod=function(t,o){let n=new Uint8Array(t);for(;n.length-o.length>=0;){let r=n[0];for(let i=0;i<o.length;i++)n[i]^=JK.mul(o[i],r);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n};DT.generateECPolynomial=function(t){let o=new Uint8Array([1]);for(let n=0;n<t;n++)o=DT.mul(o,new Uint8Array([1,JK.exp(n)]));return o}});var E3e=fn((Skn,T3e)=>{"use strict";var S3e=k3e();function QK(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}QK.prototype.initialize=function(t){this.degree=t,this.genPoly=S3e.generateECPolynomial(this.degree)};QK.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let o=new Uint8Array(t.length+this.degree);o.set(t);let n=S3e.mod(o,this.genPoly),r=this.degree-n.length;if(r>0){let a=new Uint8Array(this.degree);return a.set(n,r),a}return n};T3e.exports=QK});var eV=fn(P3e=>{"use strict";P3e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var tV=fn(km=>{"use strict";var C3e="[0-9]+",C1t="[A-Z $%*+\\-./:]+",MT="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";MT=MT.replace(/u/g,"\\u");var _1t="(?:(?![A-Z0-9 $%*+\\-./:]|"+MT+`)(?:.|[\r
1
+ import{$ as bp,$a as sJ,$b as $m,$c as RQ,$d as Pee,$e as HF,$f as r6,$g as zt,A as Lm,Aa as qZ,Ab as BJ,Ac as qP,Ad as XQ,Ae as td,Af as yC,Ag as d6,Ah as Pre,B as PX,Ba as K0,Bb as MJ,Bc as el,Bd as jm,Be as Dee,Bf as vC,Bg as m2,Bh as Cre,C as eZ,Ca as CP,Cb as zJ,Cc as gF,Cd as nc,Ce as Mee,Cf as fte,Cg as One,Ch as Rb,D as me,Da as iF,Db as BP,Dc as tb,Dd as ZQ,De as LF,Df as kC,Dg as i_,Dh as _re,E as tZ,Ea as V0,Eb as WJ,Ec as uQ,Ed as JQ,Ee as zee,Ef as hte,Eg as s_,Eh as Rre,F as Lv,Fa as JZ,Fb as ph,Fc as fQ,Fd as QQ,Fe as Wee,Ff as zF,Fg as Ane,Fh as Nre,G as sZ,Ga as _P,Gb as vo,Gc as hQ,Gd as eee,Ge as Uee,Gf as SC,Gg as Lne,Gh as rd,H as lZ,Ha as QZ,Hb as HP,Hc as gQ,Hd as tee,He as Gee,Hf as gte,Hg as l_,Hh as Ore,I as dZ,Ia as Hv,Ib as GJ,Ic as bQ,Id as oee,Ie as IF,If as WF,Ig as Ine,Ih as ou,J as cZ,Ja as Dv,Jb as DP,Jc as wQ,Jd as nee,Je as $ee,Jf as bte,Jg as Fne,Jh as Are,K as bP,Ka as RP,Kb as MP,Kc as bF,Kd as ree,Ke as Kee,Kf as wte,Kg as Bne,Kh as f6,L as pZ,La as eJ,Lb as VJ,Lc as xQ,Ld as aee,Le as Vee,Lf as xte,Lg as Hne,Lh as Lre,M as mZ,Ma as tJ,Mb as Pt,Mc as yQ,Md as iee,Me as BF,Mf as yte,Mg as Jne,Mh as Ire,N as uZ,Na as oJ,Nb as YJ,Nc as Vm,Nd as see,Ne as mC,Nf as nne,Ng as Qne,Nh as u_,O as fZ,Oa as nJ,Ob as N,Oc as vQ,Od as lee,Oe as uC,Of as rne,Og as ere,Oh as Fre,P as hZ,Pa as rJ,Pb as Ko,Pc as ec,Pd as hee,Pe as qee,Pf as ane,Pg as tre,Ph as Bre,Q as gZ,Qa as aJ,Qb as fF,Qc as kQ,Qd as gee,Qe as Xee,Qf as ine,Qg as ore,Qh as u2,R as bZ,Ra as Mv,Rb as ee,Rc as Ym,Rd as sC,Re as Zee,Rf as n6,Rg as Pb,Rh as Hre,S as Ze,Sa as zv,Sb as Bt,Sc as SQ,Sd as bee,Se as qm,Sf as sne,Sg as nre,Sh as Dre,T as rF,Ta as Wv,Tb as Zs,Tc as XP,Td as wee,Te as Io,Tf as lne,Tg as p_,U as Se,Ua as NP,Ub as jJ,Uc as TQ,Ud as xee,Ue as fC,Uf as e_,Ug as rre,V as AZ,Va as iJ,Vb as qJ,Vc as EQ,Vd as yee,Ve as Jee,Vf as eu,Vg as are,W as $o,Wa as Mm,Wb as Js,Wc as PQ,Wd as vee,We as Qee,Wf as t_,Wg as ire,X as BZ,Xa as OP,Xb as zP,Xc as CQ,Xd as kee,Xe as hC,Xf as xb,Xg as sre,Y as Fv,Ya as dh,Yb as XJ,Yc as kn,Yd as See,Ye as gC,Yf as yb,Yg as m6,Z as qd,Za as ch,Zb as Gm,Zc as _Q,Zd as Tee,Ze as ete,Zf as vb,Zg as lre,_ as kP,_a as Y0,_b as Qs,_c as yp,_d as Eee,_e as tte,_f as kb,_g as st,a as D4,aa as Xd,ab as lJ,ac as JJ,ad as NQ,ae as Cee,af as ab,ag as a6,ah as La,b as Gs,ba as Zd,bb as dJ,bc as GP,bd as Gv,be as rb,bf as fh,bg as o_,bh as ao,c as $s,ca as Dm,cb as cJ,cc as $P,cd as $v,ce as _ee,cf as ote,cg as dne,ch as dre,d as vn,da as lh,db as pJ,dc as hF,dd as ko,de as Ree,df as nte,dg as i6,dh as cre,e as Cv,ea as HZ,eb as tr,ec as Qd,ed as ZP,ee as Nee,ef as bC,eg as cne,eh as u6,f as Rm,fa as SP,fb as j0,fc as De,fd as IQ,fe as Oee,ff as rte,fg as pne,fh as pre,g as _v,ga as DZ,gb as mJ,gc as R,gd as vp,ge as _F,gf as Aa,gg as mne,gh as mre,h as _q,ha as TP,hb as uJ,hc as Jo,hd as FQ,he as RF,hf as ol,hg as fne,hh as ure,i as HE,ia as MZ,ib as fJ,ic as ln,id as Wt,ie as NF,if as $e,ig as hne,ih as fre,j as A0,ja as EP,jb as AP,jc as oi,jd as Oa,je as lC,jf as Xm,jg as gne,jh as ll,k as rh,ka as Bv,kb as hJ,kc as KP,kd as xF,ke as dC,kf as ate,kg as bne,kh as hre,l as DE,la as G0,lb as sF,lc as QJ,ld as QP,le as cC,lf as ite,lg as wne,lh as Cb,m as ME,ma as zZ,mb as gJ,mc as eQ,md as BQ,me as pC,mf as ste,mg as xne,mh as gre,n as zE,na as WZ,nb as Uv,nc as tQ,nd as HQ,ne as Aee,nf as lte,ng as yne,nh as bre,o as WE,oa as $0,ob as bJ,oc as oQ,od as eC,oe as Lee,of as Qv,og as vne,oh as m_,p as UE,pa as UZ,pb as wJ,pc as nQ,pd as tC,pe as Iee,pf as wC,pg as kne,ph as _b,q as GE,qa as GZ,qb as xJ,qc as rQ,qd as DQ,qe as Fee,qf as dte,qg as Sne,qh as wre,r as Rq,ra as $Z,rb as cF,rc as aQ,rd as MQ,re as qv,rf as e2,rg as s6,rh as xre,s as Oq,sa as qs,sb as IP,sc as iQ,sd as Vv,se as Xv,sf as hh,sg as Pne,sh as yre,t as Aq,ta as PP,tb as FP,tc as xp,td as Yv,te as Zv,tf as DF,tg as a_,th as Pp,u as YE,ua as wp,ub as IJ,uc as VP,ud as SF,ue as Jv,uf as cte,ug as Cne,uh as vh,v as jE,va as is,vb as FJ,vc as sQ,vd as TF,ve as Bee,vf as pte,vg as _ne,vh as vre,w as mX,wa as KZ,wb as Q0,wc as lQ,wd as nb,we as uh,wf as Lt,wg as Sb,wh as kre,x as uX,xa as VZ,xb as pF,xc as cQ,xd as rC,xe as OF,xf as mte,xg as l6,xh as Sre,y as nP,ya as YZ,yb as mF,yc as pQ,yd as EF,ye as Hee,yf as ute,yg as Rne,yh as Tre,z as J4,za as jZ,zb as uF,zc as mQ,zd as qQ,ze as AF,zf as MF,zg as Nne,zh as Ere}from"./chunks/chunk-EEHSAQWF.js";import{$ as Bb,$a as fie,A as Lae,B as Iae,C as x_,Ca as iie,D as Fb,Da as sie,E as y_,Ea as iu,F as Fae,Fa as Ot,G as v_,Ga as lie,H as k_,I as Bae,Ia as T6,J as Hae,Ja as Wb,K as Dae,Ka as Tn,L as Mae,La as A_,M as zae,Ma as w2,N as Wae,O as g2,Oa as su,P as Uae,Pa as dc,Q as S_,Qa as die,R as Gae,Ra as Th,S as T_,Sa as cie,T as $ae,Ta as E6,U as Kae,Ua as pie,V as Vae,Va as mie,W as Yae,Wa as L_,X as k6,Xa as uie,Y as jae,Ya as cs,Z as qae,Za as I_,_ as Xae,_a as Ub,a as ai,aa as Hb,ab as hie,b as vae,ba as E_,bb as Rp,ca as Zae,cb as P6,da as Jae,ea as P_,eb as C6,f as Cp,fa as ru,fb as Gb,g as b_,ga as C_,gb as $b,h as kae,ha as b2,hb as F_,i as y6,ia as Db,ib as Eh,j as Sae,ja as Qae,jb as zr,k as Tae,ka as Sh,l as Eae,la as eie,m as w_,ma as au,n as v6,na as Mb,o as Pae,oa as __,p as ca,pa as _p,q as Cae,qa as S6,r as _ae,ra as tie,s as nu,sa as oie,t as Rae,ta as R_,u as lc,ua as N_,v as h2,va as O_,w as Nae,wa as nie,x as Ib,xa as rie,y as Oae,ya as zb,z as Aae,za as aie}from"./chunks/chunk-VUMZSQZ5.js";import{A as Xre,B as Zre,C as Jre,D as Qre,E as eae,F as tae,G as oae,H as nae,I as rae,J as b6,K as aae,L as w6,M as cn,N as iae,O as Oi,P as sae,Q as lae,R as g_,S as or,T as dae,U as cae,V as pae,W as mae,X as Ob,Y as uae,b as f_,ca as Ab,da as Fo,e as f2,ea as kh,f as Nb,fa as fae,ga as Lb,h as Sn,ha as Ne,i as sc,ia as hae,j as Mre,ja as x6,k as zre,ka as gae,l as Wre,la as bae,m as Ure,ma as wae,n as Gre,na as xae,o as h6,oa as yae,p as dl,q as $re,r as Kre,s as ot,t as Ni,u as Vre,v as Yre,w as g6,x as jre,y as h_,z as qre}from"./chunks/chunk-TMSNT2CP.js";import{$ as XX,A as UX,B as Nv,C as GX,F as z0,G as Im,H as VX,I as hp,L as YX,M as er,N as cP,O as mo,P as D,Q as tF,S as Bm,T as W0,U as jX,V as oF,W as qX,X as U0,aa as lF,b as fX,ba as Wm,c as hX,ca as TJ,da as Z0,ea as EJ,fa as Xs,g as gX,ga as UJ,ha as Le,i as CX,ia as yh,j as lP,k as dP,ka as Tne,l as _X,la as n_,m as RX,ma as Ene,n as NX,na as r_,o as OX,p as AX,q as LX,r as IX,s as FX,u as BX,v as HX,w as DX,x as MX,y as zX,z as WX}from"./chunks/chunk-ZHEHF42C.js";import{a as Ri,b as OQ,c as tc,e as ed,h as xC,j as da,k as Zne}from"./chunks/chunk-DFYWYSOT.js";import{a as ZX,b as JX,e as QX}from"./chunks/chunk-TT3AZYTK.js";import{$b as nZ,$c as CZ,$d as X0,$e as ob,$f as FF,$g as sa,$h as eoe,$i as Ooe,$k as Tb,Ae as HJ,Af as nC,Ag as Cte,Ah as Kte,Ai as xh,Ak as p2,Bc as aF,Bf as jQ,Bg as _te,Bi as goe,Bj as XC,Bk as wb,C as pe,Cb as fp,Cc as xZ,Ce as DJ,Ch as Vte,Ci as boe,Cj as rc,Ck as Qoe,D as Pi,Db as Rv,Dc as yZ,De as Jd,Df as kF,Dh as mb,Di as UC,Dj as ZC,Dk as ene,E as Hq,Eb as sh,Eh as la,Ei as woe,Ek as tne,Fb as iP,Fc as wP,Fe as W,Fh as KF,Fi as GC,Fj as e6,Fk as one,G as Dq,Ga as cX,Gb as sP,Gc as xP,Ge as WP,Gh as Yte,Gi as xoe,Gj as ac,Hc as Hm,He as gn,Hf as dee,Hh as jte,Hi as yoe,Ia as pX,Ic as vZ,Ie as eb,If as aC,Ih as VF,Ii as i2,Ij as Foe,Jc as kZ,Je as ZJ,Jf as cee,Jh as YF,Ji as s2,Jj as Boe,K as Mq,Ke as UP,Kf as pee,Kh as jF,Ki as $C,Kj as Hoe,La as _a,Ld as LZ,Le as Um,Lf as tl,Lh as o2,Li as voe,Lj as Doe,M as zq,Ma as Ra,Md as jd,Me as Yt,Mf as mee,Mh as qF,Mi as koe,Mj as Moe,N as Wq,Na as bX,Nd as Iv,Nf as uee,Nh as n2,Ni as Soe,Oa as wX,Oe as Km,Of as iC,Oh as Zm,Oi as QF,Oj as zoe,Ok as Dne,Pa as xX,Pd as vP,Pe as YP,Pf as fee,Ph as qte,Pi as Toe,Pj as Woe,Qa as yX,Qd as IZ,Qe as jP,Qh as Xte,Qi as Eoe,Qj as ic,R as qE,Rb as Ov,Rd as FZ,Rg as rl,Rh as Jm,Ri as Poe,Rj as Uoe,Rk as Mne,S as XE,Sa as vX,Sb as pP,Se as dQ,Sg as Rte,Sh as BC,Si as l2,Sj as Goe,T as Uq,Tb as mP,Td as XZ,Te as AQ,Tg as Nte,Th as Zte,Ti as Coe,Tj as $oe,U as Gq,Ua as Q4,Ub as Ql,Uc as SZ,Ud as ZZ,Ue as ni,Ug as _C,Uh as Jte,Ui as _oe,Uj as d2,V as F0,Vb as Ci,Ve as oc,Vg as sb,Vh as Qm,Vi as br,W as $q,Wb as oZ,Wd as yJ,We as Kv,Wg as Tp,Wh as Qte,Wi as KC,Wj as Koe,Xb as Av,Xe as JP,Xf as PF,Xg as lb,Xh as r2,Xi as Roe,Yb as as,Yc as TZ,Yd as zm,Ye as wF,Yf as CF,Yg as RC,Yh as XF,Yi as VC,Z as Kq,Zc as EZ,Zd as vJ,Ze as LQ,Zf as jv,Zg as GF,Zh as ZF,Zi as Noe,Zj as c2,Zk as zne,_b as js,_c as PZ,_d as q0,_f as ls,_g as al,_h as HC,_k as Qt,a as Kd,aa as ZE,ac as gp,ae as kJ,ag as Yee,ah as Ote,ai as DC,aj as ri,al as Eb,b as dq,bc as uP,be as SJ,bg as jee,bj as YC,bl as sl,c as Nq,cc as rZ,ce as LP,ch as Ate,ci as MC,cj as Aoe,cl as eo,d as $E,dc as fP,de as PJ,dg as ib,dh as Lte,di as toe,dj as fb,dl as Wne,ec as Na,eg as TC,eh as NC,ei as ooe,ej as wr,ek as Voe,el as Une,fb as kX,fc as hP,fd as _i,fg as ae,fh as OC,fi as noe,fk as ne,fl as Gne,g as u,ga as $4,gc as aZ,gd as _Z,gg as le,gh as Hte,gi as bh,gj as dn,gk as ds,gl as $ne,h as Qn,hb as SX,hc as iZ,he as dF,hf as mh,hg as kp,hh as Dte,hi as zC,hk as Yoe,hl as Kne,ib as TX,ic as gP,if as zQ,ig as Te,ih as Mte,ii as wh,ij as hb,ik as joe,il as d_,j as Nm,ja as oX,jg as vte,ji as roe,jj as Loe,jk as Ep,jl as Vne,k as Yd,ka as D0,kd as RZ,kf as WQ,kg as EC,kh as IC,ki as aoe,kj as jC,kl as Yne,la as nX,le as CJ,lf as oC,lg as nl,lh as zte,lj as qC,lk as t6,ll as jne,m as Fq,ma as rX,mb as EX,me as _J,mg as PC,mh as $F,mi as ioe,mj as gb,mk as bb,na as aX,nb as eF,ne as RJ,nf as UQ,ng as CC,nh as db,ni as soe,nj as U,nk as zo,nl as qne,oa as iX,oe as Dr,of as GQ,og as gh,oh as cb,oi as loe,oj as j,ok as JC,ol as Xne,pa as sX,pb as M0,pd as NZ,pe as ss,pf as $Q,pg as od,ph as FC,pi as doe,pj as J,pk as qoe,pl as c6,q as G4,qa as Z4,qb as ah,qe as J0,qf as KQ,qg as kte,qh as Wte,qi as coe,qj as we,qk as et,ql as p6,ra as lX,rb as Ys,re as NJ,rg as Sp,rh as Ute,ri as JF,rj as Ve,rk as QC,rl as c_,sa as dX,sg as nd,sh as Gte,si as poe,sj as qe,sk as o6,ta as tP,tb as rP,tc as wZ,td as OZ,te as OJ,tf as VQ,tg as Ste,ti as moe,tk as Mr,ua as oP,ug as UF,ui as uoe,uj as il,v as Bq,ve as AJ,vg as Tte,vh as pb,vi as WC,vj as Ioe,w as Jl,wb as bo,wf as yF,wg as Ete,wi as ub,wk as Xoe,x as I0,xb as ih,xe as LJ,xf as vF,xg as wo,xh as $te,xi as foe,xk as Zoe,yb as aP,yf as YQ,yi as hoe,z as Om,zb as Hr,zd as yP,zf as gr,zg as Pte,zi as a2,zk as Joe}from"./chunks/chunk-YOF4KT5H.js";import{d as nF}from"./chunks/chunk-ESKHLPB5.js";import{$b as xv,$c as pt,A as Fr,Ab as tj,Ad as zj,Af as uq,Ah as eP,B as Ea,Ba as qY,Bf as Pv,Bg as kq,Bh as Vs,C as hn,Ca as hr,Cb as gE,Cd as Wj,Cf as LE,Cg as Sq,Ch as q4,De as _m,Df as z4,Dg as Tq,Dh as Am,E as Dn,Ea as mE,Ec as vE,Ed as Ca,Ee as Jj,Ef as IE,Eg as Eq,Eh as X4,Fa as XY,Fb as oj,Fc as kE,Fd as ei,Fe as Qj,Ff as Vd,Ga as Zf,Gb as Qf,Gc as O4,Gd as He,Ge as eq,Gf as up,Gh as eX,H as E4,Ha as uE,Hb as $d,Hc as Ej,Hd as Ti,He as tq,Hh as H0,I as P4,Ib as k0,Ic as E0,Id as ht,Ie as N0,Ih as tX,Jb as Yl,Jc as P0,Jg as Pq,K as MY,Kb as eh,Kc as Pj,Lb as Tm,Lc as Cj,Ld as it,Mb as nj,Mc as A4,N as zY,Na as ZY,Nb as Br,Nc as _j,Nf as fq,Ng as Cq,Oa as JY,Ob as Jn,Oc as C0,Od as We,Oe as oq,Pa as QY,Pb as rj,Pc as Rj,Pf as FE,Qb as aj,Qc as yv,Qd as Ei,R as C4,Rb as ij,Rd as Uj,Sb as sj,Sc as Nj,Sd as nt,Se as Sv,Ta as ej,Tb as bE,Tc as Oj,Td as _0,Te as NE,Tf as hq,U as WY,Ub as wE,Uc as Aj,Ue as nq,Uf as BE,Ug as Ks,Vb as lj,Vc as Lj,Vd as TE,Ve as OE,Vg as Lq,Vh as $X,W as Ce,Wb as dj,Wc as Ij,Wd as EE,We as rq,Wg as KE,X as ce,Xb as cj,Xc as Ge,Xd as Xl,Xe as aq,Yb as pj,Yc as vt,Ye as Mn,Z as UY,Zb as mj,Zc as Ws,Ze as iq,_b as uj,_c as ze,_d as Gj,_e as Zo,aa as GY,ac as fj,ad as L4,ag as W4,ah as L0,ai as Fm,b as fr,bc as Em,bd as Fj,bf as sq,bh as Iq,bi as KX,c as gv,cc as hj,cd as po,ce as PE,ch as VE,ci as ti,da as v0,dc as gj,de as Cm,dh as JE,e as lE,ea as $Y,ec as bj,ed as ql,ef as Tv,eh as Vq,f as Gd,fa as KY,fd as Pm,fe as CE,ff as lq,fh as K4,g as bv,ga as pE,gb as Qa,gc as jl,gd as Pa,ge as vv,gh as V4,hc as S0,hd as Lo,hf as mp,hh as Y4,ic as T0,id as Bj,ie as F4,if as H4,ih as Yq,ii as t2,ja as VY,jc as wj,je as B4,jf as AE,jh as jq,ji as AC,kc as xj,ke as $j,kf as Zl,kg as gq,kh as qq,ki as LC,l as S4,lc as yj,le as Kj,lf as oh,lh as Xq,li as zn,m as y0,mb as R4,mc as N4,md as Hj,me as Vj,mh as Zq,mi as Ite,nc as vj,nd as Re,nf as Ev,ng as bq,nh as j4,ni as Fte,ob as Jf,oe as _E,of as Us,oh as Jq,oi as Bte,p as T4,pb as wv,pc as xE,pd as th,pe as Yj,pf as O0,qa as YY,qe as R0,qf as M4,qg as wq,qi as tu,r as dE,rg as xq,rh as Qq,ri as une,s as pp,sa as _4,sc as kj,t as cE,tb as zs,te as jj,tg as yq,u as lt,uc as rs,ue as qj,uf as cq,v as DY,vd as SE,ve as Xj,w as Vt,wa as jY,wc as Sj,wd as I4,wf as pq,wh as QE,x as Ds,xb as fE,xc as yE,xd as Dj,xe as kv,xf as nh,xg as vq,y as Go,yc as Tj,yd as Mj,ye as Zj,yf as mq,yg as U4,yh as ia,z as Et,za as yo,zb as hE,ze as RE,zh as B0}from"./chunks/chunk-PVRWP47B.js";import{a as Ms}from"./chunks/chunk-G5LEO2F2.js";import{a as $J,c as KJ}from"./chunks/chunk-LY7GZJ6M.js";import{a as fn,b as qFe}from"./chunks/chunk-Y6SLVHK3.js";var Kf=fn(d0=>{"use strict";var qK,k1t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];d0.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};d0.getSymbolTotalCodewords=function(t){return k1t[t]};d0.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};d0.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');qK=t};d0.isKanjiModeEnabled=function(){return typeof qK<"u"};d0.toSJIS=function(t){return qK(t)}});var A3=fn(Ul=>{"use strict";Ul.L={bit:1};Ul.M={bit:0};Ul.Q={bit:3};Ul.H={bit:2};function S1t(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return Ul.L;case"m":case"medium":return Ul.M;case"q":case"quartile":return Ul.Q;case"h":case"high":return Ul.H;default:throw new Error("Unknown EC Level: "+e)}}Ul.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};Ul.from=function(t,o){if(Ul.isValid(t))return t;try{return S1t(t)}catch{return o}}});var u3e=fn((hkn,m3e)=>{"use strict";function p3e(){this.buffer=[],this.length=0}p3e.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let o=0;o<t;o++)this.putBit((e>>>t-o-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};m3e.exports=p3e});var h3e=fn((gkn,f3e)=>{"use strict";function BT(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}BT.prototype.set=function(e,t,o,n){let r=e*this.size+t;this.data[r]=o,n&&(this.reservedBit[r]=!0)};BT.prototype.get=function(e,t){return this.data[e*this.size+t]};BT.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o};BT.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};f3e.exports=BT});var g3e=fn(L3=>{"use strict";var T1t=Kf().getSymbolSize;L3.getRowColCoords=function(t){if(t===1)return[];let o=Math.floor(t/7)+2,n=T1t(t),r=n===145?26:Math.ceil((n-13)/(2*o-2))*2,a=[n-7];for(let i=1;i<o-1;i++)a[i]=a[i-1]-r;return a.push(6),a.reverse()};L3.getPositions=function(t){let o=[],n=L3.getRowColCoords(t),r=n.length;for(let a=0;a<r;a++)for(let i=0;i<r;i++)a===0&&i===0||a===0&&i===r-1||a===r-1&&i===0||o.push([n[a],n[i]]);return o}});var x3e=fn(w3e=>{"use strict";var E1t=Kf().getSymbolSize,b3e=7;w3e.getPositions=function(t){let o=E1t(t);return[[0,0],[o-b3e,0],[0,o-b3e]]}});var y3e=fn(Xo=>{"use strict";Xo.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var c0={N1:3,N2:3,N3:40,N4:10};Xo.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};Xo.from=function(t){return Xo.isValid(t)?parseInt(t,10):void 0};Xo.getPenaltyN1=function(t){let o=t.size,n=0,r=0,a=0,i=null,s=null;for(let l=0;l<o;l++){r=a=0,i=s=null;for(let d=0;d<o;d++){let c=t.get(l,d);c===i?r++:(r>=5&&(n+=c0.N1+(r-5)),i=c,r=1),c=t.get(d,l),c===s?a++:(a>=5&&(n+=c0.N1+(a-5)),s=c,a=1)}r>=5&&(n+=c0.N1+(r-5)),a>=5&&(n+=c0.N1+(a-5))}return n};Xo.getPenaltyN2=function(t){let o=t.size,n=0;for(let r=0;r<o-1;r++)for(let a=0;a<o-1;a++){let i=t.get(r,a)+t.get(r,a+1)+t.get(r+1,a)+t.get(r+1,a+1);(i===4||i===0)&&n++}return n*c0.N2};Xo.getPenaltyN3=function(t){let o=t.size,n=0,r=0,a=0;for(let i=0;i<o;i++){r=a=0;for(let s=0;s<o;s++)r=r<<1&2047|t.get(i,s),s>=10&&(r===1488||r===93)&&n++,a=a<<1&2047|t.get(s,i),s>=10&&(a===1488||a===93)&&n++}return n*c0.N3};Xo.getPenaltyN4=function(t){let o=0,n=t.data.length;for(let a=0;a<n;a++)o+=t.data[a];return Math.abs(Math.ceil(o*100/n/5)-10)*c0.N4};function P1t(e,t,o){switch(e){case Xo.Patterns.PATTERN000:return(t+o)%2===0;case Xo.Patterns.PATTERN001:return t%2===0;case Xo.Patterns.PATTERN010:return o%3===0;case Xo.Patterns.PATTERN011:return(t+o)%3===0;case Xo.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2===0;case Xo.Patterns.PATTERN101:return t*o%2+t*o%3===0;case Xo.Patterns.PATTERN110:return(t*o%2+t*o%3)%2===0;case Xo.Patterns.PATTERN111:return(t*o%3+(t+o)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}Xo.applyMask=function(t,o){let n=o.size;for(let r=0;r<n;r++)for(let a=0;a<n;a++)o.isReserved(a,r)||o.xor(a,r,P1t(t,a,r))};Xo.getBestMask=function(t,o){let n=Object.keys(Xo.Patterns).length,r=0,a=1/0;for(let i=0;i<n;i++){o(i),Xo.applyMask(i,t);let s=Xo.getPenaltyN1(t)+Xo.getPenaltyN2(t)+Xo.getPenaltyN3(t)+Xo.getPenaltyN4(t);Xo.applyMask(i,t),s<a&&(a=s,r=i)}return r}});var ZK=fn(XK=>{"use strict";var Vf=A3(),I3=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F3=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];XK.getBlocksCount=function(t,o){switch(o){case Vf.L:return I3[(t-1)*4+0];case Vf.M:return I3[(t-1)*4+1];case Vf.Q:return I3[(t-1)*4+2];case Vf.H:return I3[(t-1)*4+3];default:return}};XK.getTotalCodewordsCount=function(t,o){switch(o){case Vf.L:return F3[(t-1)*4+0];case Vf.M:return F3[(t-1)*4+1];case Vf.Q:return F3[(t-1)*4+2];case Vf.H:return F3[(t-1)*4+3];default:return}}});var v3e=fn(H3=>{"use strict";var HT=new Uint8Array(512),B3=new Uint8Array(256);(function(){let t=1;for(let o=0;o<255;o++)HT[o]=t,B3[t]=o,t<<=1,t&256&&(t^=285);for(let o=255;o<512;o++)HT[o]=HT[o-255]})();H3.log=function(t){if(t<1)throw new Error("log("+t+")");return B3[t]};H3.exp=function(t){return HT[t]};H3.mul=function(t,o){return t===0||o===0?0:HT[B3[t]+B3[o]]}});var k3e=fn(DT=>{"use strict";var JK=v3e();DT.mul=function(t,o){let n=new Uint8Array(t.length+o.length-1);for(let r=0;r<t.length;r++)for(let a=0;a<o.length;a++)n[r+a]^=JK.mul(t[r],o[a]);return n};DT.mod=function(t,o){let n=new Uint8Array(t);for(;n.length-o.length>=0;){let r=n[0];for(let i=0;i<o.length;i++)n[i]^=JK.mul(o[i],r);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n};DT.generateECPolynomial=function(t){let o=new Uint8Array([1]);for(let n=0;n<t;n++)o=DT.mul(o,new Uint8Array([1,JK.exp(n)]));return o}});var E3e=fn((Skn,T3e)=>{"use strict";var S3e=k3e();function QK(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}QK.prototype.initialize=function(t){this.degree=t,this.genPoly=S3e.generateECPolynomial(this.degree)};QK.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let o=new Uint8Array(t.length+this.degree);o.set(t);let n=S3e.mod(o,this.genPoly),r=this.degree-n.length;if(r>0){let a=new Uint8Array(this.degree);return a.set(n,r),a}return n};T3e.exports=QK});var eV=fn(P3e=>{"use strict";P3e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var tV=fn(km=>{"use strict";var C3e="[0-9]+",C1t="[A-Z $%*+\\-./:]+",MT="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";MT=MT.replace(/u/g,"\\u");var _1t="(?:(?![A-Z0-9 $%*+\\-./:]|"+MT+`)(?:.|[\r
2
2
  ]))+`;km.KANJI=new RegExp(MT,"g");km.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");km.BYTE=new RegExp(_1t,"g");km.NUMERIC=new RegExp(C3e,"g");km.ALPHANUMERIC=new RegExp(C1t,"g");var R1t=new RegExp("^"+MT+"$"),N1t=new RegExp("^"+C3e+"$"),O1t=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");km.testKanji=function(t){return R1t.test(t)};km.testNumeric=function(t){return N1t.test(t)};km.testAlphanumeric=function(t){return O1t.test(t)}});var Yf=fn(mr=>{"use strict";var A1t=eV(),oV=tV();mr.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};mr.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};mr.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};mr.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};mr.MIXED={bit:-1};mr.getCharCountIndicator=function(t,o){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!A1t.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?t.ccBits[0]:o<27?t.ccBits[1]:t.ccBits[2]};mr.getBestModeForData=function(t){return oV.testNumeric(t)?mr.NUMERIC:oV.testAlphanumeric(t)?mr.ALPHANUMERIC:oV.testKanji(t)?mr.KANJI:mr.BYTE};mr.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};mr.isValid=function(t){return t&&t.bit&&t.ccBits};function L1t(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return mr.NUMERIC;case"alphanumeric":return mr.ALPHANUMERIC;case"kanji":return mr.KANJI;case"byte":return mr.BYTE;default:throw new Error("Unknown mode: "+e)}}mr.from=function(t,o){if(mr.isValid(t))return t;try{return L1t(t)}catch{return o}}});var A3e=fn(p0=>{"use strict";var D3=Kf(),I1t=ZK(),_3e=A3(),jf=Yf(),nV=eV(),N3e=7973,R3e=D3.getBCHDigit(N3e);function F1t(e,t,o){for(let n=1;n<=40;n++)if(t<=p0.getCapacity(n,o,e))return n}function O3e(e,t){return jf.getCharCountIndicator(e,t)+4}function B1t(e,t){let o=0;return e.forEach(function(n){let r=O3e(n.mode,t);o+=r+n.getBitsLength()}),o}function H1t(e,t){for(let o=1;o<=40;o++)if(B1t(e,o)<=p0.getCapacity(o,t,jf.MIXED))return o}p0.from=function(t,o){return nV.isValid(t)?parseInt(t,10):o};p0.getCapacity=function(t,o,n){if(!nV.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=jf.BYTE);let r=D3.getSymbolTotalCodewords(t),a=I1t.getTotalCodewordsCount(t,o),i=(r-a)*8;if(n===jf.MIXED)return i;let s=i-O3e(n,t);switch(n){case jf.NUMERIC:return Math.floor(s/10*3);case jf.ALPHANUMERIC:return Math.floor(s/11*2);case jf.KANJI:return Math.floor(s/13);case jf.BYTE:default:return Math.floor(s/8)}};p0.getBestVersionForData=function(t,o){let n,r=_3e.from(o,_3e.M);if(Array.isArray(t)){if(t.length>1)return H1t(t,r);if(t.length===0)return 1;n=t[0]}else n=t;return F1t(n.mode,n.getLength(),r)};p0.getEncodedBits=function(t){if(!nV.isValid(t)||t<7)throw new Error("Invalid QR Code version");let o=t<<12;for(;D3.getBCHDigit(o)-R3e>=0;)o^=N3e<<D3.getBCHDigit(o)-R3e;return t<<12|o}});var B3e=fn(F3e=>{"use strict";var rV=Kf(),I3e=1335,D1t=21522,L3e=rV.getBCHDigit(I3e);F3e.getEncodedBits=function(t,o){let n=t.bit<<3|o,r=n<<10;for(;rV.getBCHDigit(r)-L3e>=0;)r^=I3e<<rV.getBCHDigit(r)-L3e;return(n<<10|r)^D1t}});var D3e=fn((Rkn,H3e)=>{"use strict";var M1t=Yf();function qy(e){this.mode=M1t.NUMERIC,this.data=e.toString()}qy.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};qy.prototype.getLength=function(){return this.data.length};qy.prototype.getBitsLength=function(){return qy.getBitsLength(this.data.length)};qy.prototype.write=function(t){let o,n,r;for(o=0;o+3<=this.data.length;o+=3)n=this.data.substr(o,3),r=parseInt(n,10),t.put(r,10);let a=this.data.length-o;a>0&&(n=this.data.substr(o),r=parseInt(n,10),t.put(r,a*3+1))};H3e.exports=qy});var z3e=fn((Nkn,M3e)=>{"use strict";var z1t=Yf(),aV=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Xy(e){this.mode=z1t.ALPHANUMERIC,this.data=e}Xy.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Xy.prototype.getLength=function(){return this.data.length};Xy.prototype.getBitsLength=function(){return Xy.getBitsLength(this.data.length)};Xy.prototype.write=function(t){let o;for(o=0;o+2<=this.data.length;o+=2){let n=aV.indexOf(this.data[o])*45;n+=aV.indexOf(this.data[o+1]),t.put(n,11)}this.data.length%2&&t.put(aV.indexOf(this.data[o]),6)};M3e.exports=Xy});var U3e=fn((Okn,W3e)=>{"use strict";var W1t=Yf();function Zy(e){this.mode=W1t.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}Zy.getBitsLength=function(t){return t*8};Zy.prototype.getLength=function(){return this.data.length};Zy.prototype.getBitsLength=function(){return Zy.getBitsLength(this.data.length)};Zy.prototype.write=function(e){for(let t=0,o=this.data.length;t<o;t++)e.put(this.data[t],8)};W3e.exports=Zy});var $3e=fn((Akn,G3e)=>{"use strict";var U1t=Yf(),G1t=Kf();function Jy(e){this.mode=U1t.KANJI,this.data=e}Jy.getBitsLength=function(t){return t*13};Jy.prototype.getLength=function(){return this.data.length};Jy.prototype.getBitsLength=function(){return Jy.getBitsLength(this.data.length)};Jy.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let o=G1t.toSJIS(this.data[t]);if(o>=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
3
3
  Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),e.put(o,13)}};G3e.exports=Jy});var K3e=fn((Lkn,iV)=>{"use strict";var zT={single_source_shortest_paths:function(e,t,o){var n={},r={};r[t]=0;var a=zT.PriorityQueue.make();a.push(t,0);for(var i,s,l,d,c,p,m,f,g;!a.empty();){i=a.pop(),s=i.value,d=i.cost,c=e[s]||{};for(l in c)c.hasOwnProperty(l)&&(p=c[l],m=d+p,f=r[l],g=typeof r[l]>"u",(g||f>m)&&(r[l]=m,a.push(l,m),n[l]=s))}if(typeof o<"u"&&typeof r[o]>"u"){var h=["Could not find a path from ",t," to ",o,"."].join("");throw new Error(h)}return n},extract_shortest_path_from_predecessor_list:function(e,t){for(var o=[],n=t,r;n;)o.push(n),r=e[n],n=e[n];return o.reverse(),o},find_path:function(e,t,o){var n=zT.single_source_shortest_paths(e,t,o);return zT.extract_shortest_path_from_predecessor_list(n,o)},PriorityQueue:{make:function(e){var t=zT.PriorityQueue,o={},n;e=e||{};for(n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);return o.queue=[],o.sorter=e.sorter||t.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var o={value:e,cost:t};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof iV<"u"&&(iV.exports=zT)});var Q3e=fn(Qy=>{"use strict";var No=Yf(),j3e=D3e(),q3e=z3e(),X3e=U3e(),Z3e=$3e(),WT=tV(),M3=Kf(),$1t=K3e();function V3e(e){return unescape(encodeURIComponent(e)).length}function UT(e,t,o){let n=[],r;for(;(r=e.exec(o))!==null;)n.push({data:r[0],index:r.index,mode:t,length:r[0].length});return n}function J3e(e){let t=UT(WT.NUMERIC,No.NUMERIC,e),o=UT(WT.ALPHANUMERIC,No.ALPHANUMERIC,e),n,r;return M3.isKanjiModeEnabled()?(n=UT(WT.BYTE,No.BYTE,e),r=UT(WT.KANJI,No.KANJI,e)):(n=UT(WT.BYTE_KANJI,No.BYTE,e),r=[]),t.concat(o,n,r).sort(function(i,s){return i.index-s.index}).map(function(i){return{data:i.data,mode:i.mode,length:i.length}})}function sV(e,t){switch(t){case No.NUMERIC:return j3e.getBitsLength(e);case No.ALPHANUMERIC:return q3e.getBitsLength(e);case No.KANJI:return Z3e.getBitsLength(e);case No.BYTE:return X3e.getBitsLength(e)}}function K1t(e){return e.reduce(function(t,o){let n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===o.mode?(t[t.length-1].data+=o.data,t):(t.push(o),t)},[])}function V1t(e){let t=[];for(let o=0;o<e.length;o++){let n=e[o];switch(n.mode){case No.NUMERIC:t.push([n,{data:n.data,mode:No.ALPHANUMERIC,length:n.length},{data:n.data,mode:No.BYTE,length:n.length}]);break;case No.ALPHANUMERIC:t.push([n,{data:n.data,mode:No.BYTE,length:n.length}]);break;case No.KANJI:t.push([n,{data:n.data,mode:No.BYTE,length:V3e(n.data)}]);break;case No.BYTE:t.push([{data:n.data,mode:No.BYTE,length:V3e(n.data)}])}}return t}function Y1t(e,t){let o={},n={start:{}},r=["start"];for(let a=0;a<e.length;a++){let i=e[a],s=[];for(let l=0;l<i.length;l++){let d=i[l],c=""+a+l;s.push(c),o[c]={node:d,lastCount:0},n[c]={};for(let p=0;p<r.length;p++){let m=r[p];o[m]&&o[m].node.mode===d.mode?(n[m][c]=sV(o[m].lastCount+d.length,d.mode)-sV(o[m].lastCount,d.mode),o[m].lastCount+=d.length):(o[m]&&(o[m].lastCount=d.length),n[m][c]=sV(d.length,d.mode)+4+No.getCharCountIndicator(d.mode,t))}}r=s}for(let a=0;a<r.length;a++)n[r[a]].end=0;return{map:n,table:o}}function Y3e(e,t){let o,n=No.getBestModeForData(e);if(o=No.from(t,n),o!==No.BYTE&&o.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+No.toString(o)+`.
4
4
  Suggested mode is: `+No.toString(n));switch(o===No.KANJI&&!M3.isKanjiModeEnabled()&&(o=No.BYTE),o){case No.NUMERIC:return new j3e(e);case No.ALPHANUMERIC:return new q3e(e);case No.KANJI:return new Z3e(e);case No.BYTE:return new X3e(e)}}Qy.fromArray=function(t){return t.reduce(function(o,n){return typeof n=="string"?o.push(Y3e(n,null)):n.data&&o.push(Y3e(n.data,n.mode)),o},[])};Qy.fromString=function(t,o){let n=J3e(t,M3.isKanjiModeEnabled()),r=V1t(n),a=Y1t(r,o),i=$1t.find_path(a.map,"start","end"),s=[];for(let l=1;l<i.length-1;l++)s.push(a.table[i[l]].node);return Qy.fromArray(K1t(s))};Qy.rawSplit=function(t){return Qy.fromArray(J3e(t,M3.isKanjiModeEnabled()))}});var t4e=fn(e4e=>{"use strict";var W3=Kf(),lV=A3(),j1t=u3e(),q1t=h3e(),X1t=g3e(),Z1t=x3e(),pV=y3e(),mV=ZK(),J1t=E3e(),z3=A3e(),Q1t=B3e(),ekt=Yf(),dV=Q3e();function tkt(e,t){let o=e.size,n=Z1t.getPositions(t);for(let r=0;r<n.length;r++){let a=n[r][0],i=n[r][1];for(let s=-1;s<=7;s++)if(!(a+s<=-1||o<=a+s))for(let l=-1;l<=7;l++)i+l<=-1||o<=i+l||(s>=0&&s<=6&&(l===0||l===6)||l>=0&&l<=6&&(s===0||s===6)||s>=2&&s<=4&&l>=2&&l<=4?e.set(a+s,i+l,!0,!0):e.set(a+s,i+l,!1,!0))}}function okt(e){let t=e.size;for(let o=8;o<t-8;o++){let n=o%2===0;e.set(o,6,n,!0),e.set(6,o,n,!0)}}function nkt(e,t){let o=X1t.getPositions(t);for(let n=0;n<o.length;n++){let r=o[n][0],a=o[n][1];for(let i=-2;i<=2;i++)for(let s=-2;s<=2;s++)i===-2||i===2||s===-2||s===2||i===0&&s===0?e.set(r+i,a+s,!0,!0):e.set(r+i,a+s,!1,!0)}}function rkt(e,t){let o=e.size,n=z3.getEncodedBits(t),r,a,i;for(let s=0;s<18;s++)r=Math.floor(s/3),a=s%3+o-8-3,i=(n>>s&1)===1,e.set(r,a,i,!0),e.set(a,r,i,!0)}function cV(e,t,o){let n=e.size,r=Q1t.getEncodedBits(t,o),a,i;for(a=0;a<15;a++)i=(r>>a&1)===1,a<6?e.set(a,8,i,!0):a<8?e.set(a+1,8,i,!0):e.set(n-15+a,8,i,!0),a<8?e.set(8,n-a-1,i,!0):a<9?e.set(8,15-a-1+1,i,!0):e.set(8,15-a-1,i,!0);e.set(n-8,8,1,!0)}function akt(e,t){let o=e.size,n=-1,r=o-1,a=7,i=0;for(let s=o-1;s>0;s-=2)for(s===6&&s--;;){for(let l=0;l<2;l++)if(!e.isReserved(r,s-l)){let d=!1;i<t.length&&(d=(t[i]>>>a&1)===1),e.set(r,s-l,d),a--,a===-1&&(i++,a=7)}if(r+=n,r<0||o<=r){r-=n,n=-n;break}}}function ikt(e,t,o){let n=new j1t;o.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),ekt.getCharCountIndicator(l.mode,e)),l.write(n)});let r=W3.getSymbolTotalCodewords(e),a=mV.getTotalCodewordsCount(e,t),i=(r-a)*8;for(n.getLengthInBits()+4<=i&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let s=(i-n.getLengthInBits())/8;for(let l=0;l<s;l++)n.put(l%2?17:236,8);return skt(n,e,t)}function skt(e,t,o){let n=W3.getSymbolTotalCodewords(t),r=mV.getTotalCodewordsCount(t,o),a=n-r,i=mV.getBlocksCount(t,o),s=n%i,l=i-s,d=Math.floor(n/i),c=Math.floor(a/i),p=c+1,m=d-c,f=new J1t(m),g=0,h=new Array(i),b=new Array(i),w=0,y=new Uint8Array(e.buffer);for(let E=0;E<i;E++){let T=E<l?c:p;h[E]=y.slice(g,g+T),b[E]=f.encode(h[E]),g+=T,w=Math.max(w,T)}let x=new Uint8Array(n),k=0,v,S;for(v=0;v<w;v++)for(S=0;S<i;S++)v<h[S].length&&(x[k++]=h[S][v]);for(v=0;v<m;v++)for(S=0;S<i;S++)x[k++]=b[S][v];return x}function lkt(e,t,o,n){let r;if(Array.isArray(e))r=dV.fromArray(e);else if(typeof e=="string"){let d=t;if(!d){let c=dV.rawSplit(e);d=z3.getBestVersionForData(c,o)}r=dV.fromString(e,d||40)}else throw new Error("Invalid data");let a=z3.getBestVersionForData(r,o);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=a;else if(t<a)throw new Error(`
5
5
  The chosen QR Code version cannot contain this amount of data.
6
6
  Minimum version required to store current data is: `+a+`.
7
- `);let i=ikt(t,o,r),s=W3.getSymbolSize(t),l=new q1t(s);return tkt(l,t),okt(l),nkt(l,t),cV(l,o,0),t>=7&&rkt(l,t),akt(l,i),isNaN(n)&&(n=pV.getBestMask(l,cV.bind(null,l,o))),pV.applyMask(n,l),cV(l,o,n),{modules:l,version:t,errorCorrectionLevel:o,maskPattern:n,segments:r}}e4e.create=function(t,o){if(typeof t>"u"||t==="")throw new Error("No input text");let n=lV.M,r,a;return typeof o<"u"&&(n=lV.from(o.errorCorrectionLevel,lV.M),r=z3.from(o.version),a=pV.from(o.maskPattern),o.toSJISFunc&&W3.setToSJISFunction(o.toSJISFunc)),lkt(t,r,n,a)}});import{useEffect as dTt,useMemo as cTt,useState as uFe}from"react";import{useEaselStrings as pTt}from"efficient-easel/strings";import{jsx as Wr,jsxs as Fie}from"react/jsx-runtime";import{useCallback as qo,useEffect as Ph,useMemo as Bie,useRef as Kb,useState as Bo}from"react";import"efficient-easel/easel.css";import"efficient-easel/shell.css";import"efficient-easel/rail.css";import"efficient-easel/panel.css";import"efficient-easel/fields.css";import"efficient-easel/pick.css";import"efficient-easel/copy.css";import"efficient-easel/gold.css";import"efficient-easel/text-styles.css";import"efficient-easel/menu.css";import"efficient-easel/chrome.css";import"efficient-easel/tree.css";import"efficient-easel/drag.css";import"efficient-easel/screen.css";import{ChromeWrap as _6e}from"efficient-easel/screen/lib/host-chrome";import{useEaselSession as R6e}from"efficient-easel/screen/lib/session-context";function XFe(e){return!!e&&typeof e=="object"&&typeof e[PJ]=="string"}function ZFe(e,t,o){if(!e)return e;let n=null;for(let[r,a]of Object.entries(e))XFe(a)&&(n??={...e},n[r]={...a,siteGap:t,siteGapPhone:o});return n??e}function gie(e,t,o=null){let n=e,r=!1,a={};for(let[i,s]of Object.entries(n.components)){let l=ZFe(s.fields,t,o);if(l===s.fields){a[i]=s;continue}r=!0,a[i]={...s,fields:l}}return r?{...e,components:a}:e}var bie=xC.mediaFields,wie=xC.snapshotObjects,xie=xC.hydratedLists;function JFe(e){return typeof e=="string"||dee(e)?"":Array.isArray(e)?[]:e&&typeof e=="object"?null:e}function yie(e,t){if(Array.isArray(e))return e.map(r=>yie(r,t));if(!e||typeof e!="object")return e;let o=e,n={};for(let r of t)r in o&&(n[r]=o[r]);return n}function QFe(e,t){let o=t;for(let r of Ms(bie,e)??[])o=cee(o,r,JFe);let n=Ms(wie,e);if(n)for(let[r,a]of Object.entries(n))r in o&&(o={...o,[r]:yie(o[r],a.keep)});for(let r of Ms(xie,e)??[])Array.isArray(o[r])&&(o={...o,[r]:[]});return o}function e6e(e,t){return typeof t!="function"?t:o=>t(QFe(e,o))}function B_(e,t){if(!t)return e;let o=e,n={};for(let[r,a]of Object.entries(o.components)){let i=(Ms(bie,r)?.length??0)>0||Ms(wie,r)||Ms(xie,r);n[r]=i&&a.render?{...a,render:e6e(r,a.render)}:a}return{...o,components:n}}import{jsx as o6e}from"react/jsx-runtime";import{useMemo as n6e}from"react";import{useScreenDocument as r6e}from"efficient-easel/screen/components/ScreenDocumentContext";function t6e(e){return VQ(e)||ioe(e.layout)?!1:KQ(e.layout)===null}function vie(e){return UQ(e.slug)||wh(e.slug)?!1:t6e(e)}function kie({children:e}){let{currentSlug:t,currentKind:o,data:n}=r6e(),r=MP(),a=t&&n&&vie({slug:t,kind:o,layout:n})?Tp(t):null,i=n6e(()=>({...r,pagePath:a}),[r,a]);return o6e(DP,{runtime:i,children:e})}import N6e,{DocumentScreen as O6e}from"efficient-easel/screen/components/ScreenMount";import{jsx as a6e}from"react/jsx-runtime";import{useMemo as i6e}from"react";import{HintsProvider as s6e}from"efficient-easel/screen/lib/hints";import{useEaselSession as l6e}from"efficient-easel/screen/lib/session-context";function d6e(e){let t,o=new Set,n=()=>{for(let r of o)r()};return e.get().then(r=>{t===void 0&&typeof r.showHints=="boolean"&&(t=r.showHints,n())}).catch(()=>{}),{read:()=>t,save:r=>{t=r,n(),e.update({showHints:r}).catch(()=>{})},subscribe:r=>(o.add(r),()=>{o.delete(r)})}}function c6e(e){return i6e(()=>e?d6e(e):null,[e])}function H_({children:e}){let t=Kd(l6e()).preferences,o=c6e(t);return a6e(s6e,{store:o,children:e})}import{useScreenDocument as A6e}from"efficient-easel/screen/components/ScreenDocumentContext";import{useCallback as p6e,useEffect as m6e,useMemo as Sie,useRef as Tie,useState as u6e}from"react";import{useEaselSession as f6e}from"efficient-easel/screen/lib/session-context";import{WebsiteBackendError as h6e}from"efficient-easel/screen/lib/backend-error";var g6e="Could not save this link. Check your connection and try again.";function b6e(e,t){if(!(e instanceof h6e)||e.kind!=="invalid")return null;let o=e.fields?.[t];return typeof o=="string"&&o.trim()?o:null}function w6e(e){return Object.fromEntries(yh.map(t=>[t,{value:e[t]??"",error:null}]))}function Eie({token:e,siteId:t,enabled:o}){let[n,r]=u6e(s6),a=Tie(null),i=Tie(!1),s=f6e(),l=Kd(s).social,d=o&&!!e&&!!t&&!!l;m6e(()=>{if(!d||!e||!t||!l)return;a.current!==t&&(a.current=t,i.current=!1,r(s6));let m=!1;return l.get({siteId:t}).then(f=>{!m&&!i.current&&r(w6e(f))}).catch(()=>{}),()=>{m=!0}},[d,e,t,l]);let c=p6e(async(m,f)=>{if(!d||!e||!t||!l)return{ok:!1,error:"There is no website to save to."};try{let g=await l.update({[m]:f.trim()},{siteId:t});return i.current=!0,pb(),r(h=>({...h,[m]:{value:g[m]??"",error:null}})),{ok:!0}}catch(g){let h=b6e(g,m)??g6e;return r(b=>({...b,[m]:{...b[m],error:h}})),{ok:!1,error:h}}},[d,e,t,l]),p=Sie(()=>n_(Object.fromEntries(yh.map(m=>[m,n[m].value]))),[n]);return Sie(()=>({links:p,rows:n,canSave:d,saveLink:c}),[p,n,d,c])}var Pie={homeSlug:sb,entryMayBounce:e=>e.kind==="template"||e.kind==="page"&&e.slug===zm,entryBounce:(e,t)=>e.kind==="page"&&e.slug===zm?{kind:"page",slug:sb,siteId:e.siteId}:e.kind!=="template"||new URLSearchParams(t).get("editTemplate")==="1"?null:{kind:"page",slug:sb},onSwitch:()=>{},tellsHost:e=>e.kind==="page"&&e.slug!==zm,adapterFor:(e,t,o)=>e.kind==="template"?One(e.id,t,D4(o)):m2(e.siteId,t,D4(o),{editsPinnedInPlace:!0}),migrateRenamedProps:i_};import{PreviewPartsProvider as L6e}from"efficient-easel/draw/client";import{jsx as x6e}from"react/jsx-runtime";import{useMemo as y6e,useRef as v6e}from"react";import{CanvasPartsContext as k6e}from"efficient-easel/easel";import{usePreviewParts as S6e}from"efficient-easel/draw/client";import{BLOCK_ATTRIBUTE as T6e}from"efficient-easel/canvas";function D_({children:e}){let{selectedPartId:t,select:o}=S6e(),{selectedHeroPart:n,select:r}=Ane(),{selectedHeroId:a,select:i}=fte(),{selectedLocationPartId:s,select:l}=gte(),d=n??(a?hte(a):null)??s??t,c=v6e(d);c.current=d;let p=y6e(()=>({partAt:bte,selected:()=>c.current,selectedPart:m=>{let f=c.current,g=E6e(m,f);if(!f||!g)return null;let h=wte(g,f);return{id:f,element:g,whole:yte(g,f),...h?{label:u(h)}:{}}},select:m=>{if(m&&WF(m)){l(m);return}if(m&&EF(m)){r(m);return}let f=zF(m);if(f){i(f);return}if(m){o(m);return}let g=c.current?aF(c.current)?.nodeId:null;g&&o(xZ(g,null))}}),[o,r,i,l,d]);return x6e(k6e.Provider,{value:p,children:e})}function E6e(e,t){if(!t||!aF(t)?.propKey)return null;let o=d=>d.replace(/["\\]/g,"\\$&"),n=[...e.querySelectorAll(`[${yZ}="${o(t)}"]`)],r=n.find(d=>!n.some(c=>c!==d&&d.contains(c)));if(r)return r;let a=(d,c)=>[...e.querySelectorAll(`[${T6e}="${o(d)}"] ${c}`)][0]??null,i=WF(t);if(i)return a(i.nodeId,`[${xte}="${i.index}:${i.part}"]`);let s=EF(t);if(s)return a(s.nodeId,`[${qQ}="${s.part}"]`);let l=zF(t);return l?a(l,`[${kC}]`):null}import{pictureShadowColor as I6e}from"efficient-easel/screen/lib/document/shadow-values";var _6=new Set,R6=new Set,N6=new Set;function Cie(e){return _6.add(e),()=>_6.delete(e)}function _ie(){_6.forEach(e=>e())}function lu(e){return R6.add(e),()=>R6.delete(e)}function Rie(){R6.forEach(e=>e())}function M_(e){return N6.add(e),()=>N6.delete(e)}function O6(){N6.forEach(e=>e())}var A6=new Map,P6e=9e5,Nie=0;function C6e(){return Nie+=1,`fe-${typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():String(Nie)}`}function Oie(e,t){e.connected&&e.send("storefront-editor:open-form",{mode:"edit",formId:t})}function Aie(e,t){if(!e.connected)return Promise.resolve({status:"closed"});let o=C6e();return new Promise(n=>{let r=setTimeout(()=>Lie(o,{status:"timeout"}),t.timeoutMs??P6e);A6.set(o,a=>{clearTimeout(r),n(a)}),e.send("storefront-editor:open-form",{requestId:o,mode:t.mode,...t.formId?{formId:t.formId}:{}})})}function Lie(e,t){let o=A6.get(e);o&&(A6.delete(e),o(t))}function L6(e,t){Lie(e,t?{status:"saved",form:t}:{status:"closed"})}function z_(e){switch(e?.type){case"storefront-editor:category-updated":return _ie(),!0;case"storefront-editor:menus-updated":return Rie(),!0;case"storefront-editor:form-saved":{let t=e;return O6(),t.requestId&&L6(t.requestId,t.form??null),!0}case"storefront-editor:form-closed":{let t=e;return O6(),t.requestId&&L6(t.requestId,null),!0}default:return!1}}function Iie(e){let t=e?.site_fonts;return Array.isArray(t)?t.map(o=>({key:o.key,family:o.family,label:o.label,category:o.category,condensed:o.condensed===!0,weights:Array.isArray(o.weights)?[...o.weights]:[],italic:o.italic===!0,fallbackMetrics:o.fallback_metrics?{ascent:o.fallback_metrics.ascent,descent:o.fallback_metrics.descent,lineGap:o.fallback_metrics.line_gap,sizeAdjust:o.fallback_metrics.size_adjust}:null,files:(Array.isArray(o.files)?o.files:[]).map(n=>({id:n.id,weight:n.weight,style:n.style,subset:n.subset,unicodeRange:n.unicode_range,url:typeof n.url=="string"?n.url:""}))})):null}import{parseOption as F6e}from"efficient-shell/format";var B6e=()=>{if(typeof window>"u")return Vd;try{let e=window.localStorage.getItem(Pv);return F6e(IE,Vd,e)}catch{return Vd}},Hie=e=>{if(!(typeof window>"u"))try{window.localStorage.setItem(Pv,e)}catch{}},H6e=()=>{if(typeof window>"u")return up;try{return window.localStorage.getItem(LE)!==z4}catch{return up}},D6e=()=>{if(!(typeof window>"u"))try{window.localStorage.removeItem(uq)}catch{}},Die=e=>{if(!(typeof window>"u"))try{e?window.localStorage.removeItem(LE):window.localStorage.setItem(LE,z4)}catch{}};function M6e(){let{adapter:e,capabilities:t,templateId:o,ready:n,token:r,siteId:a,currentSlug:i,currentKind:s}=A6e();Ph(()=>(yF(i,s),()=>yF(null,null)),[i,s]);let l=hne(e?.pinnedChrome)?.rootProps??null,d=t.placeholderFrames,[c,p]=Bo(null),[m,f]=Bo("");Ph(()=>{let Pe=e.templateName;if(!n||!o||!Pe){f("");return}let Ao=!1;return Pe().then(Ir=>!Ao&&f(Ir??"")).catch(()=>{}),()=>{Ao=!0}},[n,r,o,e]);let[g,h]=Bo(Vd),[b,w]=Bo(up),[y,x]=Bo({value:{selected:0,themes:[]},readFor:null}),k=y.value,[v,S]=Bo(VY),[E,T]=Bo(gq),[C,P]=Bo(null),[B,M]=Bo(Pq),[I,A]=Bo(null),[_,F]=Bo(null),[K,V]=Bo(U4),[Z,Y]=Bo(null),[z,q]=Bo(null),[X,L]=Bo(null),[O,G]=Bo(null),[Q,$]=Bo(null),[oe,de]=Bo(null),[ge,Qe]=Bo({}),ve=qo(Pe=>Qe(Ao=>({...Ao,...Pe})),[]),be=R6e(),_e=pne(),Ie=Bie(()=>gie(B_(_e,d),Q,oe),[_e,d,Q,oe]),[te,Ee]=Bo(Cq),[Ft,Fe]=Bo(null),[Ct,fe]=Bo(null),[je,Tt]=Bo(null),[at,$t]=Bo(null),[xt,ho]=Bo(null),_t=Kb(null),rt=Kb(!1);Ph(()=>{h(B6e()),w(H6e())},[]);let Kn=qo(Pe=>{rt.current=!0,D6e(),Hie(Pe),h(Pe)},[]),go=qo(Pe=>{rt.current=!0,Die(Pe),w(Pe)},[]),Oe=qo(Pe=>{rt.current=!0,x(Ao=>Bte(Ao,Pe,a??""))},[a]),xo=qo(Pe=>{rt.current=!0,S(Pe)},[]),ro=qo(Pe=>{rt.current=!0,T(Pe)},[]),Kl=qo(Pe=>{rt.current=!0,P(Pe)},[]),Bn=qo(Pe=>{rt.current=!0,M(Pe)},[]),Hn=qo(Pe=>{rt.current=!0,A(Pe)},[]),yi=qo(Pe=>{rt.current=!0,F(Pe)},[]),Ue=qo(Pe=>{rt.current=!0,V(Pe)},[]),ft=qo(Pe=>{rt.current=!0,Y(Pe)},[]),Rt=qo(Pe=>{rt.current=!0,Ee(Pe)},[]),[Mt,Vn]=Bo(null),[At,Yn]=Bo(null),[jn,Oo]=Bo(null),aa=Bie(()=>(jn??[]).map(Pe=>Pe.key),[jn]),mn=qo(Pe=>{rt.current=!0,Vn(Pe)},[]),qn=qo(Pe=>{rt.current=!0,q(Pe)},[]),Ae=qo(Pe=>{rt.current=!0,L(Pe)},[]),Nt=qo(Pe=>{rt.current=!0,G(Pe)},[]),vi=qo(Pe=>{rt.current=!0,$(Pe)},[]),Xa=qo(Pe=>{rt.current=!0,de(Pe)},[]),Bs=qo(Pe=>{rt.current=!0,Fe(Pe)},[]),ki=qo(Pe=>{rt.current=!0,fe(Pe)},[]),Or=qo(Pe=>{rt.current=!0,Tt(Pe)},[]),Ar=qo(Pe=>{rt.current=!0,$t(Pe)},[]),ns=qo(Pe=>{rt.current=!0,ho(Pe)},[]);Ph(()=>{let Pe=Kd(be).theme;if(!r||!t.hasSiteTheme||!Pe)return;let Ao=a??"";_t.current!==Ao&&(_t.current=Ao,rt.current=!1);let Ir=!1;return Pe.get(a?{siteId:a}:void 0).then(Jt=>{if(Ir)return;let Ud=Iie(Jt);Oo(Ud);let f0=GY(Ud);if(rt.current)return;Hie(Jt.default_mode),Die(Jt.show_theme_switch),h(Jt.default_mode),w(Jt.show_theme_switch),x(Fte({selected:Jt.selected_preset,themes:Jt.theme_presets},Ao));let Vl=Mne(Jt,f0);S(Vl.fonts),T(Vl.sizes);let Za=pq(Jt);Qe(Za),P(Jt.corner_radius_px===void 0?wq[bq(Jt.corner_style)]:nh(Jt.corner_radius_px,Za.cornerRadiusUnit,xq)),M(Vl.compression),A(Jt.card_shadow==null?vq:Sq(Jt.card_shadow)),V(Jt.card_gap==null?U4:Tq(Jt.card_gap)),Y(Jt.hover_effect==null?kq:Eq(Jt.hover_effect)),F(I6e(Jt.shadow_color)),q(nh(Jt.site_width,Za.siteWidthUnit,Fq)),L(nh(Jt.site_gutter,Za.siteGutterUnit,Hq)),G(nh(Jt.site_gutter_phone,Za.siteGutterPhoneUnit,Dq)),$(nh(Jt.block_gap,Za.blockGapUnit,dF)),de(nh(Jt.block_gap_phone,Za.blockGapPhoneUnit,dF)),Ee(Vl.typography),Vn(Vl.textStyles),Yn(YY(Jt,f0)),Fe(Jt.hero_background_follows_width===!0),fe($4(Jt.section_background_width)),Tt($4(Jt.section_content_width)),$t(Jt.photography_grayscale===!0),ho(Jt.share_button_on_posts===!0)}).catch(()=>{}),()=>{Ir=!0}},[r,a,t.hasSiteTheme,be]);let Hs=Eie({token:r,siteId:a,enabled:t.hasSiteSettings}),[Be,sn]=Bo(yne),un=Kb(null),Xn=Kb(!1),yn=Kb(null),yt=Kb({}),Lr=qo(async()=>{yn.current&&clearTimeout(yn.current),yn.current=null;let Pe=yt.current;yt.current={};try{await Kd(be).chat?.update(Pe,a?{siteId:a}:void 0),pb()}catch(Ao){throw yt.current={...Pe,...yt.current},Ao}},[be,a]);Ph(()=>$te(()=>yn.current||Object.keys(yt.current).length>0?Lr():void 0),[Lr]);let t4=qo(Pe=>{Xn.current=!0,sn(Ao=>({...Ao,...Pe})),!(!t.hasSiteSettings||!r)&&(yt.current={...yt.current,...Pe},yn.current&&clearTimeout(yn.current),yn.current=setTimeout(()=>{Lr().catch(()=>{})},500))},[t.hasSiteSettings,r,Lr]);return Ph(()=>{if(!r||!t.hasSiteSettings)return;let Pe=a??"";un.current!==Pe&&(un.current=Pe,Xn.current=!1);let Ao=!1,Ir=Kd(be).chat;if(Ir)return Ir.get(a?{siteId:a}:void 0).then(Jt=>{Ao||Xn.current||sn(vne(Jt))}).catch(()=>{}),()=>{Ao=!0}},[r,a,t.hasSiteSettings,be]),Ph(()=>{let Pe=e.site;if(!n||!t.hasSiteRecord||!Pe){p(null);return}let Ao=!1;return Pe().then(Ir=>{Ao||p(une(Ir.name))}).catch(()=>{}),()=>{Ao=!0}},[n,r,t.hasSiteRecord,a,e]),Wr(O6e,{config:Ie,parts:Dre,wrap:(Pe,Ao)=>Fie(HJ,{siteFonts:jn,children:[Wr(DJ,{usedKeys:aa,preload:!1}),Wr(LC,{websiteName:c,templateChrome:d,templateName:m||null,themeMode:g,onThemeModeChange:Kn,themeSwitchShown:b,onThemeSwitchShownChange:go,theme:k,themeRow:Ite(t.hasSiteTheme,y.readFor,a??""),onThemeChange:Oe,fonts:v,onFontsChange:xo,cornerRadiusPx:C,onCornerRadiusPxChange:Kl,cardShadow:I,onCardShadowChange:Hn,shadowColor:_,onShadowColorChange:yi,cardGap:K,onCardGapChange:Ue,hoverEffect:Z,onHoverEffectChange:ft,headingCompression:B,onHeadingCompressionChange:Bn,headingTypography:te,onHeadingTypographyChange:Rt,textStyles:Mt,onTextStylesChange:mn,wordStyles:At,sizes:E,onSizesChange:ro,siteWidth:z,onSiteWidthChange:qn,siteGutter:X,onSiteGutterChange:Ae,siteGutterPhone:O,onSiteGutterPhoneChange:Nt,blockGap:Q,onBlockGapChange:vi,blockGapPhone:oe,onBlockGapPhoneChange:Xa,siteLengthUnits:ge,onSiteLengthUnitsChange:ve,heroBackgroundFollowsWidth:Ft,onHeroBackgroundFollowsWidthChange:Bs,sectionBackgroundWidth:Ct,onSectionBackgroundWidthChange:ki,sectionContentWidth:je,onSectionContentWidthChange:Or,photographyGrayscale:at,onPhotographyGrayscaleChange:Ar,shareButtonOnPosts:xt,onShareButtonOnPostsChange:ns,themeFromDocument:!t.hasSiteTheme,children:Wr(fne,{chromeRootProps:l,children:Wr(_6e,{wrap:be.chrome?.wrap,surface:"page",children:Wr(vC,{children:Wr(s_,{children:Wr(L6e,{children:Wr(SC,{children:Wr(D_,{children:Fie(yC,{children:[Wr(kne,{chat:Be,onChatChange:t4,children:Wr(Pne,{value:Hs,children:Wr(Cne,{children:Wr(kie,{children:Wr(H_,{children:Pe})})})})}),Ao]})})})})})})})})})]})})}function Mie({target:e,openAddPage:t}){return Wr(mne,{open:t,children:Wr(N6e,{target:e,addressing:Pie,onHostMessage:z_,children:Wr(M6e,{})})})}import{useMemo as FBe}from"react";import{createContext as W6e,useContext as U6e,useMemo as G6e}from"react";var z6e=["vehicle","process","size","lugs","finish","price"],ad={vehicle:"My Car",process:"Process",size:"Size",lugs:"Lugs",finish:"Finish",price:"Price"};function zie(e){if(!e)return ad;let t={...ad};for(let o of z6e){let n=e[o];if(typeof n!="string")continue;let r=n.trim();r&&(t[o]=r)}return t}import{jsx as $6e}from"react/jsx-runtime";var Wie=W6e(ad);function Uie({labels:e,children:t}){let o=G6e(()=>zie(e),[e]);return $6e(Wie.Provider,{value:o,children:t})}function x2(){return U6e(Wie)}import{createContext as sBe,useContext as lBe,useMemo as dBe}from"react";import{isSafeLinkHref as sCt}from"efficient-shell/markup";var Ai=["alloy-wheel","tyre"],W_=["alloy-wheel"],ps={"alloy-wheel":"Alloy wheels",tyre:"Tyres"},Gie="All products",$ie="All product types";function Ur(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 U_=Ai.map(e=>({value:e,label:ps[e]}));function id(e){return e==null?[...W_]:Array.isArray(e)?Ai.filter(t=>e.includes(t)):[...W_]}var ii=e=>e;function Ht(e){return ii(e).kind==="tyre"?"tyre":"alloy-wheel"}function G_(e,t){return e.filter(o=>t.includes(Ht(o)))}function Vb(e){return ii(e).slug??""}function I6(e){return ii(e).name??""}function Yb(e){return ii(e).brand??""}function Kie(e){let t=new Set;for(let o of e)if(t.add(Yb(o)),t.size>1)return!0;return!1}function K6e(e){return ii(e).process??""}function Vie(e){let t=new Set;for(let o of e)if(t.add(K6e(o)),t.size>1)return!0;return!1}function Ch(e){return ii(e).prices??void 0}function F6(e){return ii(e).inStock!==!1}function Yie(e){let t=ii(e),o=Ht(e)==="tyre"?t.rimDiameters:t.sizes;return Array.isArray(o)?o.filter(n=>typeof n=="number"&&Number.isFinite(n)):[]}function B6(e){return Ht(e)!=="tyre"&&ii(e).badge==="new"}function H6(e){return Ht(e)==="tyre"?[]:(ii(e).finishes??[]).filter(t=>typeof t?.family=="string").map(t=>({family:t.family,color:t.color??null}))}function jie(e){return H6(e).map(t=>t.family)}function cc(e){if(Ht(e)==="tyre")return[];let t=ii(e);return Array.isArray(t.categories)?t.categories:t.process?[t.process]:[]}function qie(e){return Ht(e)==="tyre"?[]:ii(e).spec?.pcds??[]}function Xie(e){return Ht(e)!=="tyre"?[]:ii(e).tyreTypes??[]}function Zie(e){return Ht(e)!=="tyre"?[]:ii(e).speedRatings??[]}function jb(e){if(Ht(e)!=="tyre")return[];let t=ii(e).sizes;return Array.isArray(t)?t.map(o=>lc(typeof o=="string"?o:null)).filter(o=>o!==null):[]}var En=Object.freeze([]);function sd(e,t){return e.length===0?e:e.filter(o=>o.kind===void 0||o.kind===t)}function Jie(e,t){if(t.length===0)return e;let o=cu(t);return du(e.filter(n=>o(n.fieldKey)),n=>n.fieldKey,t,"cardOrder")}function Qie(e,t){let o=t==="filter"?"filterOrder":"cardOrder",n=new Map;for(let r of e){let a=r[o];if(typeof a!="number"||!Number.isFinite(a))continue;let i=n.get(r.fieldKey);(i===void 0||a<i)&&n.set(r.fieldKey,a)}return r=>r?n.get(r):void 0}function D6(e){return z6(e,"spec")}function M6(e,t){if(t.length===0)return e;let o=D6(t),n=e.filter(r=>o(r.fieldKey));return du(n,r=>r.fieldKey,t,"specOrder")}function du(e,t,o,n){let r=new Map;for(let l of o){let d=l[n];typeof d=="number"&&r.set(l.fieldKey,d)}if(r.size===0)return e;let a=[],i=[];e.forEach((l,d)=>{let c=t(l);c&&(a.push(d),i.push({item:l,index:d,order:r.get(c)}))}),i.sort((l,d)=>l.order!==void 0&&d.order!==void 0?l.order-d.order||l.index-d.index:l.order!==void 0?-1:d.order!==void 0?1:l.index-d.index);let s=[...e];return a.forEach((l,d)=>{s[l]=i[d].item}),s.every((l,d)=>l===e[d])?e:s}function cu(e){return z6(e,"card")}function $_(e){return z6(e,"filter")}var qb="collection";function Xb(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":qb},pcds:{"alloy-wheel":"pcd"},tyreTypes:{tyre:"tire_type"},speedRatings:{tyre:"speed_rating"}}[e]?.[t]}function z6(e,t){let o=new Set(e.filter(n=>n[t]===!1).map(n=>n.fieldKey));return n=>!n||!o.has(n)}var pc={inStock:"In stock",outOfStock:"Out of stock",notInStockHere:"Not in stock here"};function ese(e){return e?pc.inStock:pc.outOfStock}import{parseOption as nse}from"efficient-shell/format";function Gr(e){return Number.isInteger(e)?String(e):String(Number(e.toFixed(2)))}var tse=" to ";function W6(e){return e<0?`\u2212${Gr(-e)}`:Gr(e)}function K_(e,t){return e===t?`ET ${W6(e)}`:`ET ${W6(e)}${tse}${W6(t)}`}function _h(e,t){return e===t?`${Gr(e)}"`:`${Gr(e)}"${tse}${Gr(t)}"`}function U6(e){return e==="\u2014"?e:`${e}"`}function y2(e){return typeof e=="number"?String(e):""}function ose(e){let t=y2(e);return t&&`${t} LUG`}function Rh(e){return`${e}-Lug`}function Nh(e){let t=e.spec?.lugs;return typeof t=="number"?t:null}function V_(e){let t=new Set;for(let o of e){let n=Nh(o);n!==null&&t.add(n)}return[...t].sort((o,n)=>o-n)}var ld={recommended:"Recommended","price-asc":"Price \xB7 low to high","price-desc":"Price \xB7 high to low",new:"Newest",name:"Name A\u2013Z"},rse=Object.keys(ld);function Oh(e){return nse(rse,"recommended",e)}function Ah(e){return rse.filter(t=>t!=="recommended"||e.length<=1)}function ase(e,t){let o=Oh(e);return nse(Ah(t),"name",o)}var Zb=["tyreSizes","brands","finishes","diameters","collections","pcds","tyreTypes","speedRatings"],G6={tyreSizes:["tyre"],brands:["alloy-wheel","tyre"],finishes:["alloy-wheel"],diameters:["alloy-wheel","tyre"],collections:["alloy-wheel"],pcds:["alloy-wheel"],tyreTypes:["tyre"],speedRatings:["tyre"]},Y6e={diameters:"tyreSizes"};function ise(e){if(e.length===0)return[];let t=Zb.filter(o=>e.every(n=>G6[o].includes(n)));return t.filter(o=>{let n=Y6e[o];return!n||!t.includes(n)})}function sse(e,t){return t&&e.includes(t)?[t]:[...e]}function lse(e){let t=new Set;for(let o of e)t.add(Ht(o));return[...t]}var nr={tyreSizes:[],brands:[],finishes:[],diameters:[],collections:[],pcds:[],tyreTypes:[],speedRatings:[],priceMax:null,priceMin:null,inStockOnly:!1,kind:null,sort:"recommended",page:1};function Jb(e){return`${j6e(e.width)}\xD7${e.diameter}`}function j6e(e){return Gr(e)}function mc(e,t,o,n=null,r="fail"){let a=Ht(e),i=s=>r==="fail"||(s==="lugs"?a==="alloy-wheel":G6[s].includes(a));if(n!=="kind"&&t.kind&&a!==t.kind)return!1;for(let s of Zb){if(n===s)continue;let l=t[s];if(l.length===0||!i(s))continue;let d=l.map(String);if(!mse(e,s).some(c=>d.includes(c)))return!1}if(n!=="lugs"&&t.lugs&&t.lugs.length>0&&i("lugs")){let s=Nh(e);if(s===null||!t.lugs.includes(s))return!1}return!(n!=="price"&&!__(Ch(e),o,t.priceMin??null,t.priceMax)||n!=="inStock"&&t.inStockOnly&&!F6(e))}function Y_(e,t,o){return e.filter(n=>F6(n)&&mc(n,t,o,"inStock")).length}function dse(e,t,o){let n=[...e],r=(i,s)=>I6(i).localeCompare(I6(s)),a=lse(e).length>1;switch(t){case"price-asc":return n.sort((i,s)=>Mb(Ch(i),Ch(s),o,"asc"));case"price-desc":return n.sort((i,s)=>Mb(Ch(i),Ch(s),o,"desc"));case"name":return n.sort(r);case"new":return n.sort((i,s)=>{let l=(B6(s)?1:0)-(B6(i)?1:0);return l!==0||!a?l:r(i,s)});default:return n}}function cse(e,t,o){return dse(e.filter(n=>mc(n,t,o)),t.sort,o)}function pse(e,t,o){return dse(e.filter(n=>mc(n,t,o,null,"pass")),t.sort,o)}function pu(e){return Zb.some(t=>e[t].length>0)||(e.lugs?.length??0)>0||e.priceMin!=null||e.priceMax!=null||e.inStockOnly||e.kind!=null}var Qb=e=>e.count===0&&!e.checked,$6={tyreSizes:"Size",brands:"Brand",finishes:"Colour",diameters:"Size \xB7 diameter",collections:"Collection",pcds:"PCD \xB7 fitment",tyreTypes:"Tyre type",speedRatings:"Speed rating"};function mse(e,t){switch(t){case"tyreSizes":return[...new Set(jb(e).flatMap(Nae))];case"brands":return Yb(e)?[Yb(e)]:[];case"finishes":return jie(e);case"diameters":return Yie(e).map(String);case"collections":return cc(e);case"pcds":return qie(e);case"tyreTypes":return Xie(e);case"speedRatings":return Zie(e)}}function q6e(e){let t=new Map;for(let o of e)for(let n of H6(o))n.color&&!t.has(n.family)&&t.set(n.family,n.color);return t}function ew(e,t,o,n=lse(e),r=En,a="fail"){let i=p=>X6e(p,n,r),s=q6e(e),d=(a==="pass"?Zb.filter(p=>n.some(m=>G6[p].includes(m))):ise(n)).filter(p=>p!=="tyreSizes").filter(i).map(p=>{let m=t[p].map(String),f=new Set,g=new Map,h=new Map;for(let w of e){let y=mse(w,p);for(let x of y)f.add(x);for(let x of new Set(y))h.set(x,(h.get(x)??0)+1);if(mc(w,t,o,p,a))for(let x of new Set(y))g.set(x,(g.get(x)??0)+1)}let b=[...f].map(w=>({value:w,label:p==="diameters"?`${w}\u2033`:w,count:g.get(w)??0,checked:m.includes(w),swatch:p==="finishes"?s.get(w)??null:null})).sort((w,y)=>{if(p==="diameters")return Number(w.value)-Number(y.value);let x=(h.get(y.value)??0)-(h.get(w.value)??0);return x!==0?x:w.value.localeCompare(y.value)});return{key:p,label:$6[p],options:b}}).filter(p=>p.options.length>Lh),c=[];for(let p of d){let m=Z6e(p.key,n,r);m!==void 0&&c.push({fieldKey:p.key,filterOrder:m})}return[...du(d,p=>p.key,c,"filterOrder")]}var Lh=1;function j_(e){return e.showCollection===!1?["collections"]:[]}function X6e(e,t,o){return t.length===0||o.length===0?!0:t.some(n=>$_(sd(o,n))(Xb(e,n)))}function Z6e(e,t,o){if(o.length===0)return;let n;for(let r of t){let a=Qie(sd(o,r),"filter")(Xb(e,r));a!==void 0&&(n===void 0||a<n)&&(n=a)}return n}function J6e(e){let t=new Set;for(let o of e)for(let n of jb(o))t.add(h2(n));return t.size}function use(e,t){return ise(t).includes("tyreSizes")?J6e(e)>Lh:!1}function fse(e){let t=lc(e);if(t)return t;let[o,n]=e.split("/");return{width:o?Number(o):void 0,profile:n?Number(n):void 0}}function Q6e(e,t,o){return nu.slice(0,nu.indexOf(o)).every(n=>{let r=t[n];return r==null||e[n]===r})}function hse(e,t,o){let n=fse(t.tyreSizes[0]??""),r=new Set(e.filter(a=>mc(a,t,o,"tyreSizes")));return nu.map(a=>{let i=new Map;for(let l of e){let d=jb(l).filter(c=>Q6e(c,n,a));for(let c of new Set(d.map(p=>p[a])))i.has(c)||i.set(c,0),r.has(l)&&i.set(c,(i.get(c)??0)+1)}let s=[...i.keys()].sort((l,d)=>l-d).map(l=>({value:l,label:a==="rim"?`R${l}`:String(l),count:i.get(l)??0}));return{part:a,label:Rae[a],value:n[a]??null,options:s}})}function gse(e,t,o,n){let r={...fse(t)},a=nu.indexOf(o);r[o]=n??void 0;for(let i of nu.slice(a+1))r[i]!=null&&e.some(d=>nu.slice(0,nu.indexOf(i)+1).every(c=>r[c]==null||d[c]===r[c]))||(r[i]=void 0);return h2(r)}function bse(e,t,o,n){if(t.length<2)return[];let r=e.filter(a=>mc(a,o,n,"kind"));return[{kind:null,label:Gie,count:r.length,checked:o.kind===null},...t.map(a=>({kind:a,label:ps[a],count:r.filter(i=>Ht(i)===a).length,checked:o.kind===a}))]}function v2(e,t){return e.map(o=>au(Ch(o),t)).filter(o=>o!==null)}function K6(e){if(e.length===0)return null;let t=Math.floor(Math.min(...e)),o=Math.ceil(Math.max(...e));return o>t?{min:t,max:o}:null}function q_(e,t){return K6(v2(e,t))}function tw(e,t,o){let n=[];e.kind&&n.push({key:"kind",value:e.kind,label:ps[e.kind]}),e.inStockOnly&&n.push({key:"inStock",value:"",label:pc.inStock});for(let r of Zb)for(let a of e[r]){let i=String(a);n.push({key:r,value:i,label:r==="diameters"?`${i}\u2033`:r==="pcds"?`PCD ${i}`:i})}for(let r of e.lugs??[])n.push({key:"lugs",value:String(r),label:Rh(r)});return e.priceMin!=null&&n.push({key:"priceMin",value:"",label:`${Db}${o(e.priceMin,t)}`}),e.priceMax!=null&&n.push({key:"price",value:"",label:`Up to ${o(e.priceMax,t)}`}),n}var Ia={tyreSizes:"tyreSize",brands:"brand",finishes:"colour",diameters:"size",collections:"collection",pcds:"pcd",tyreTypes:"tyreType",speedRatings:"speed"},mu="type",wse="maxPrice",xse="minPrice",yse="inStock",vse="sort",kse="page";function k2(e){let t=typeof e=="string"?new URLSearchParams(e):e,o=s=>t.getAll(s).flatMap(l=>l.split(",")).filter(Boolean),n=Number(t.get(wse)),r=Number(t.get(xse)),a=Number(t.get(kse)),i=t.get(mu);return{tyreSizes:o(Ia.tyreSizes),brands:o(Ia.brands),finishes:o(Ia.finishes),diameters:o(Ia.diameters).map(Number).filter(Number.isFinite),collections:o(Ia.collections),pcds:o(Ia.pcds),tyreTypes:o(Ia.tyreTypes),speedRatings:o(Ia.speedRatings),priceMax:Number.isFinite(n)&&n>0?n:null,priceMin:Number.isFinite(r)&&r>0?r:null,inStockOnly:t.get(yse)==="1",kind:Ai.find(s=>s===i)??null,sort:Oh(t.get(vse)),page:Number.isFinite(a)&&a>=1?Math.floor(a):1}}function cl(e){let t=new URLSearchParams;for(let o of Zb){let n=e[o];n.length>0&&t.set(Ia[o],n.join(","))}return e.priceMin!=null&&t.set(xse,String(e.priceMin)),e.priceMax!=null&&t.set(wse,String(e.priceMax)),e.inStockOnly&&t.set(yse,"1"),e.kind&&t.set(mu,e.kind),e.sort!=="recommended"&&t.set(vse,e.sort),e.page>1&&t.set(kse,String(e.page)),t}function S2(e){return cl(k2(e)).toString()}function Sse(e,t){if(e<=7)return Array.from({length:e},(a,i)=>i+1);let o=[1],n=Math.max(2,t-1),r=Math.min(e-1,t+1);n>2&&o.push(null);for(let a=n;a<=r;a++)o.push(a);return r<e-1&&o.push(null),o.push(e),o}function Tse(e,t,o){let n=e.length,r=Math.max(1,Math.floor(o)),a=Math.max(1,Math.ceil(n/r)),i=Math.min(Math.max(1,Math.floor(t)),a),s=(i-1)*r;return{items:e.slice(s,s+r),page:i,pageCount:a,total:n,from:n===0?0:s+1,to:Math.min(s+r,n)}}import{isNode as Ese}from"efficient-easel/data";var Li="FilterBlock",uu="FilterChipsBlock",pa="ProductGrid",xr="ProductHero",So="AlloyWheelsListing",yr="MenuBlock";function eBe(e){let t=e??{},o=[];Array.isArray(t.content)&&o.push(t.content);for(let n of Object.values(t.zones??{}))Array.isArray(n)&&o.push(n);return o}function T2(e){let t=[],o=(n,r)=>{let a=[n,...r];for(let i of n)Ese(i)&&(t.push({node:i,order:t.length,lists:a}),P4(i,s=>(o(s,a),s)))};for(let n of eBe(e))o(n,[]);return t}function uc(e){return T2(e).map(t=>t.node)}function Np(e,t){let o=a=>t(P4(a,i=>E4(i,n)),a),n=a=>o(a);return MY(e,a=>E4(a,i=>Ese(i)?o(i):i))}var dd="/wheels",V6="Products";function tBe(e,t){return t>1?`${V6} \xB7 ${e}`:V6}function Pse(...e){for(let t of[So,Li])for(let o of e){let n=uc({content:o?.content}).find(r=>r.type===t);if(n)return n.props??{}}return null}function Y6(...e){return Pse(...e)!==null}function oBe(e,t){let o=e.filter(n=>Y6(...n.docs)).map(n=>Tp(n.slug));return t.fallback&&!o.includes(dd)?[...o,dd]:o}var Cse=[mu,...Object.entries(Ia).filter(([e])=>e!=="tyreSizes").map(([,e])=>e)];function fu(e){let t=e.indexOf("#"),o=t===-1?"":e.slice(t),n=t===-1?e:e.slice(0,t),r=n.indexOf("?");return{path:r===-1?n:n.slice(0,r),query:r===-1?"":n.slice(r+1),hash:o}}function nBe(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return e}}function j6(e){let t=new URLSearchParams(fu(e).query);for(let o of Cse){let n=t.get(o);if(n)return{param:o,value:n}}return null}function Ih(e,t){let{path:o,query:n,hash:r}=fu(e),a=n.split("&").filter(i=>i&&!Cse.includes(nBe(i.split("=")[0])));return t?.value&&a.push(`${encodeURIComponent(t.param)}=${encodeURIComponent(t.value)}`),`${o}${a.length?`?${a.join("&")}`:""}${r}`}function _se(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 rBe="Product type",aBe="AUD";function iBe(e,t){let o=t.listing??{},n=id(o.kinds),r=e.filter(l=>n.includes(Ht(l))),a=j_(o),i=ew(r,nr,aBe,n,t.fieldUsage).filter(l=>!a.includes(l.key)).map(l=>({param:Ia[l.key],label:l.label,values:l.options.filter(d=>!d.value.includes(",")).map(d=>({value:d.value,label:d.label}))})).filter(l=>l.values.length>0),s=Ai.filter(l=>n.includes(l)&&r.some(d=>Ht(d)===l));return s.length>1&&i.unshift({param:mu,label:rBe,values:s.map(l=>({value:l,label:ps[l]}))}),i}function Rse(e){return t=>{let o=oBe(t,{fallback:e.offersCommerce}),n=t.filter(r=>Y6(...r.docs)).length;return{listingPaths:o,pageOptions:r=>{let a=r.map(i=>{let s=t.find(l=>Tp(l.slug)===i.value);return s&&Y6(...s.docs)?{...i,label:tBe(s.title,n)}:i});return n===0&&e.offersCommerce&&!a.some(i=>i.value===dd)&&a.push({value:dd,label:V6}),a},filtersFor:r=>{if(!o.includes(r))return null;let a=t.find(i=>Tp(i.slug)===r);return iBe(e.catalogue,{listing:a?Pse(...a.docs):null,fieldUsage:e.fieldUsage})},readFilter:j6,withFilter:Ih}}}function Nse(e,t=[]){let o=Ih(dd,{param:mu,value:e}),n=t.find(r=>{let a=(r?.url??"").trim();if(!a||a==="#")return!1;let i=j6(a);return i?.param!==mu||i.value!==e?!1:GF(a).startsWith("/")});return n?n.url:o}function Ose(e){let t=[];for(let o of e??[]){typeof o?.url=="string"&&t.push({url:o.url});for(let n of o?.dropdownItems??[])typeof n?.url=="string"&&t.push({url:n.url})}return t}import{jsx as cBe}from"react/jsx-runtime";var Ase=sBe([]);function Lse({items:e,children:t}){let o=dBe(()=>Ose(e),[e]);return cBe(Ase.Provider,{value:o,children:t})}function Ise(){return lBe(Ase)}import{createContext as hBe,useCallback as gBe,useContext as bBe}from"react";import{parseOption as pBe}from"efficient-shell/format";var mBe=["international","us"],Fse={tyre:"tire",tyres:"tires",colour:"color",colours:"colors",centre:"center",centres:"centers",catalogue:"catalog",catalogues:"catalogs",enquire:"inquire",enquiry:"inquiry",enquiries:"inquiries",aluminium:"aluminum",honour:"honor",honoured:"honored"},uBe=new RegExp(`\\b(${Object.keys(Fse).sort((e,t)=>t.length-e.length).join("|")})\\b`,"gi");function Bse(e){return pBe(mBe,"international",e)}function fBe(e,t){return e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t[0].toUpperCase()+t.slice(1):t}function Hse(e,t){return t!=="us"?e:e.replace(uBe,o=>fBe(o,Fse[o.toLowerCase()]))}import{jsx as wBe}from"react/jsx-runtime";var Dse=hBe("international");function Mse({variant:e,children:t}){return wBe(Dse.Provider,{value:e,children:t})}function ms(){let e=bBe(Dse);return gBe(t=>Hse(t,e),[e])}import{createContext as xBe,useCallback as q6,useContext as yBe,useEffect as vBe,useMemo as kBe,useState as SBe}from"react";import{jsx as EBe}from"react/jsx-runtime";var TBe={isOpen:!1,open:()=>{},close:()=>{},toggle:()=>{}},zse=xBe(TBe);function Wse({children:e,shortcut:t=!0}){let[o,n]=SBe(!1),r=q6(()=>n(!0),[]),a=q6(()=>n(!1),[]),i=q6(()=>n(l=>!l),[]);vBe(()=>{if(!t)return;let l=d=>{(d.metaKey||d.ctrlKey)&&(d.key==="k"||d.key==="K")&&(d.preventDefault(),n(c=>!c))};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[t]);let s=kBe(()=>({isOpen:o,open:r,close:a,toggle:i}),[o,r,a,i]);return EBe(zse.Provider,{value:s,children:e})}function ow(){return yBe(zse)}import{createContext as PBe,useCallback as Z_,useContext as CBe,useMemo as _Be,useState as J6}from"react";function Use({email:e,firstName:t,interests:o,frequency:n},r){return{email:e.trim(),firstName:t?.trim()||void 0,interests:o&&o.length?o:void 0,frequency:n||void 0,source:r}}var Ii={popup:"shop_popup",subscribeSection:"subscribe_section",subscribeBlogsSection:"subscribe_blogs_section",footerSignup:"footer_signup",stockAlertOptIn:"stock_alert_optin"};import{toDateKey as ICt}from"efficient-shell/format";var ACt=1440*60*1e3;function Gse(e){return e===bh?{seen:"storefront-subscribe-seen",closedAt:"storefront-popup-closed-at",sentAt:"storefront-popup-sent-at"}:{seen:`storefront-popup:${e}:seen`,closedAt:`storefront-popup:${e}:closed-at`,sentAt:`storefront-popup:${e}:sent-at`}}function X6(e){let t=e.split(/[?#]/)[0]||"/",o=t.startsWith("/")?t:`/${t}`;return o.length>1?o.replace(/\/+$/,"")||"/":o}function Z6(e,t,o){let n=Gse(e);t.session.setItem(n.seen,"1"),t.local.setItem(n.closedAt,String(o))}function $se(e,t,o){Z6(e,t,o),t.local.setItem(Gse(e).sentAt,String(o))}var X_={session:Zne,local:da};import{jsx as RBe}from"react/jsx-runtime";var Kse=PBe(null);function Vse({children:e}){let[t,o]=J6(!1),[n,r]=J6("chosen"),[a,i]=J6({}),s=Z_(m=>{i(m??{}),r("newsletter"),o(!0)},[]),l=Z_(()=>{i({}),r("chosen"),o(!0)},[]),d=Z_(()=>$se(bh,X_,Date.now()),[]),c=Z_(()=>{o(!1),Z6(bh,X_,Date.now())},[]),p=_Be(()=>({isOpen:t,mode:n,open:s,openByItself:l,close:c,markSent:d,prefillEmail:a.email??"",signupSource:a.source??Ii.popup}),[t,n,s,l,c,d,a]);return RBe(Kse.Provider,{value:p,children:e})}function J_(){let e=CBe(Kse);if(!e)throw new Error("useSubscribePopup() must be called inside <SubscribePopupProvider>. Mount the provider in app/layout.tsx.");return e}import{createContext as NBe,useContext as OBe,useEffect as ABe,useState as Yse}from"react";import{jsx as IBe}from"react/jsx-runtime";var jse="storefront-wishlist";function LBe(e){let t=JSON.parse(e);return Array.isArray(t)?t.filter(o=>typeof o=="string"):[]}var qse=NBe(null);function Xse({children:e}){let[t,o]=Yse([]),[n,r]=Yse(!1);ABe(()=>{let s=da.getItem(jse);try{s&&o(LBe(s))}catch{}r(!0)},[]);function a(s){let l=t.includes(s)?t.filter(d=>d!==s):[...t,s];o(l),da.setItem(jse,JSON.stringify(l))}let i={slugs:t,ready:n,has:s=>t.includes(s),toggle:a,count:t.length};return IBe(qse.Provider,{value:i,children:e})}function Zse(){let e=OBe(qse);if(!e)throw new Error("useWishlist must be used within a WishlistProvider");return e}import{jsx as Op}from"react/jsx-runtime";function Q6({catalogFilterLabels:e,englishVariant:t,menuItems:o,currency:n,searchShortcut:r=!0,children:a}){let i=MP(),s=ai(),l=i.pagePath!==void 0?i.pagePath:s??null,d=FBe(()=>({...i,pagePath:l}),[i,l]);return Op(DP,{runtime:d,children:Op(Mse,{variant:Bse(t),children:Op(Uie,{labels:e,children:Op(Lse,{items:o,children:Op(iu,{...n,children:Op(Vse,{children:Op(Xse,{children:Op(Wb,{children:Op(Wse,{shortcut:r,children:a})})})})})})})})})}import{jsx as Fi}from"react/jsx-runtime";import{useCallback as ele,useEffect as Q_,useMemo as E2,useRef as DBe,useState as P2}from"react";import{lazy as BBe,Suspense as HBe}from"react";import{jsx as Jse}from"react/jsx-runtime";function nw(e,t={}){let o=BBe(async()=>{let a=await e();return{default:"default"in a?a.default:a}}),n=t.loading?t.loading():null;function r(a){return Jse(HBe,{fallback:n,children:Jse(o,{...a})})}return r}import"efficient-easel/easel.css";import"efficient-easel/shell.css";import"efficient-easel/rail.css";import"efficient-easel/panel.css";import"efficient-easel/fields.css";import"efficient-easel/pick.css";import"efficient-easel/copy.css";import"efficient-easel/gold.css";import"efficient-easel/text-styles.css";import"efficient-easel/menu.css";import"efficient-easel/chrome.css";import"efficient-easel/tree.css";import"efficient-easel/screen.css";import{ScreenDocumentContext as MBe}from"efficient-easel/screen/components/ScreenDocumentContext";import{PreviewPartsProvider as zBe}from"efficient-easel/draw/client";import{sectionTemplates as eB}from"efficient-easel/screen/lib/section-templates";import{nodeToDoc as WBe,docToNode as tle}from"efficient-easel/screen/lib/document/section-doc";import{newNodeId as UBe}from"efficient-easel/draw";import{NO_BRIDGED_CAPABILITIES as GBe,useAdminBridge as $Be}from"efficient-easel/screen/lib/admin-bridge";import{useEaselHost as KBe}from"efficient-easel/screen/lib/host";import{ChromeWrap as VBe}from"efficient-easel/screen/lib/host-chrome";import{sessionRegistry as YBe}from"efficient-easel/screen/lib/session";import{useEaselSession as jBe}from"efficient-easel/screen/lib/session-context";async function Qse(e,t,o){let n=!1;try{n=await e()}catch{}return n?(t(),"switched"):(o(),"refused")}import{routeSharedHostMessage as qBe}from"efficient-easel/screen/lib/host-inbound";import{documentPermissions as XBe}from"efficient-easel/edit-lock";import{useAutosave as ZBe}from"efficient-easel/autosave";import{saveStatusOf as JBe}from"efficient-easel/screen/lib/document-switch";import{parseOption as QBe}from"efficient-shell/format";import{LoadingSpinner as eHe}from"efficient-shell/ui";var tHe=nw(()=>import("./chunks/SiteEditorProvider-2DLGUDDP.js"),{ssr:!1}),oHe=nw(()=>import("efficient-easel/screen/components/SectionScreenShell"),{ssr:!1}),nle="Hero",ole="Untitled section";function nHe(e,t){let o=t.components,n=o[e]?e:nle,r=o[n]?.defaultProps??{},a=Uee(n,s=>o[s]?.defaultProps??{}),i=n===Rre?{blocks:Nre()}:null;return{type:n,props:{id:UBe(n),...r,...a?{[a.slot]:a.children}:null,...i}}}function rHe(){if(typeof window>"u")return Vd;try{let e=window.localStorage.getItem(Pv);return QBe(IE,Vd,e)}catch{return Vd}}function rle({id:e,initialType:t,initialName:o=ole}){let[n,r]=P2(e),a=DBe(n);Q_(()=>{a.current=n},[n]);let i=KBe(),[s,l]=P2(t),[d,c]=P2(o),[p,m]=P2(void 0),[f,g]=P2(Vd),{token:h,tokenRef:b}=$Be({onMessage:_=>{if(z_(_)||qBe(_))return;let F=_;if(F?.type==="storefront-editor:navigate"&&F.target?.kind==="section"&&F.target.id){let K=F.target.id;if(K===a.current)return;let V=F.target.type,Z=F.target.name;Qse(k,()=>{l(V),c(Z||ole),r(K),i.address.show({kind:"section",id:K})},()=>i.send("storefront-editor:save-failed"))}}}),w=ZBe({save:_=>d6(eB,_.id,_.node).then(()=>{}),onFailure:(_,F)=>{F===0&&i.send("storefront-editor:save-failed")}}),{state:y,push:x,flush:k}=w;Q_(()=>g(rHe()),[]);let v=jBe(),S=v.usesBridgedToken?!!h:!0,E=E2(()=>cne(YBe(v),dq(v)),[v]);Q_(()=>{if(!S)return;let _=!1;return m(void 0),eB.ensure(n,d,nHe(s??nle,E)).then(F=>!_&&m(F.node)).catch(()=>!_&&m(null)),()=>{_=!0}},[n,s,d,S,E]);let T=ele(_=>{i.send("storefront-editor:dirty");let F=tle(_);F&&x({id:a.current,node:F})},[x,i]),C=i.send,P=ele(async _=>{try{return await _(b.current??""),!0}catch{return C("storefront-editor:save-failed"),!1}},[C]),B=E2(()=>B_(E,!0),[E]);Q_(()=>(vF(null),()=>vF(null)),[]);let M=E2(()=>p?i_(WBe(p)):null,[p]),I=E2(()=>({target:{kind:"page",slug:""},adapter:m2(void 0),capabilities:m2(void 0).capabilities,templateId:null,currentSlug:"",currentKind:null,siteId:null,ready:S,token:h,tokenRef:b,notifyParent:C,runAuthed:P,docId:n,data:M,getLiveData:()=>M,error:null,redirecting:!1,saveStatus:JBe(y),saveState:y,autoSaveEnabled:!0,autoSaveStoppedByConflict:!1,hasUnsavedEdits:y.pending,toggleAutoSave:()=>{},retrySave:()=>{w.retryNow()},onChange:T,flushSave:k,onPublish:async _=>{let F=tle(_);F&&await d6(eB,a.current,F)},bridgeCapabilities:GBe,access:{kind:"editing"},readOnly:!1,takeOverEditing:()=>{},viewReadOnly:()=>{},saveConflict:null,reloadFromServer:()=>{},navigate:()=>{},pendingNav:null,cancelPendingNav:()=>{},discardAndNavigate:()=>{},saveAndNavigate:async()=>{}}),[n,S,h,C,P,M,y,T,k,w.retryNow]),A=E2(()=>XBe(!I.readOnly),[I.readOnly]);return p===void 0?Fi(eHe,{label:u("Loading\u2026")}):p===null||!M?Fi("div",{className:"sf-msg sf-msg--error",children:u("Couldn\u2019t open this section.")}):Fi(MBe.Provider,{value:I,children:Fi(H_,{children:Fi(LC,{themeMode:f,chromePlaceholder:!0,children:Fi(VBe,{wrap:v.chrome?.wrap,surface:"section",children:Fi(vC,{children:Fi(s_,{children:Fi(zBe,{children:Fi(SC,{children:Fi(D_,{children:Fi(yC,{children:Fi(tHe,{config:B,data:M,onChange:T,permissions:A,children:Fi(oHe,{})},n)})})})})})})})})})})}import{EaselHostProvider as mTt}from"efficient-easel/screen/lib/host";import{MediaPanelProvider as uTt}from"efficient-easel/screen/lib/media-panel";import{useEffect as p8e}from"react";import{useEffect as xHe,useState as yHe}from"react";import{createContext as aHe,useCallback as ale,useContext as iHe,useEffect as sHe,useId as lHe,useMemo as dHe,useRef as cHe,useState as pHe}from"react";import{jsx as mHe}from"react/jsx-runtime";var ile=aHe(null);function sle({reason:e,children:t}){let[o,n]=pHe([]),r=cHe(null),a=ale(d=>{n(c=>c.includes(d)?c:[...c,d])},[]),i=ale(d=>{n(c=>c.filter(p=>p!==d))},[]),s=e==="none-configured",l=dHe(()=>({noCurrencyConfigured:s,live:o,firstRendered:r,join:a,leave:i}),[s,o,a,i]);return mHe(ile.Provider,{value:l,children:t})}function lle(e){let t=iHe(ile),o=lHe(),n=!!e&&!!t?.noCurrencyConfigured;n&&t&&t.firstRendered.current===null&&(t.firstRendered.current=o);let r=t?.join,a=t?.leave;return sHe(()=>{if(!(!n||!r||!a))return r(o),()=>a(o)},[n,r,a,o]),!n||!t?!1:(t.live.length>0?t.live[0]:t.firstRendered.current)===o}var _2={currencies:[],defaultCurrency:null},uHe={currencies:[],defaultCurrency:null,reason:"none-configured"},C2=new Map;function dle(e,t,o=!1){o&&C2.delete(t);let n=C2.get(t);return n||(n=fHe(e,t),C2.set(t,n),n.catch(()=>{C2.get(t)===n&&C2.delete(t)})),n}async function fHe(e,t){try{let o=await u_(e,t);if(!o)return _2;let n=await Fo.getSiteBySlug(o);return n.status!=="online"?await hHe(e,t):{currencies:n.currencies??[],defaultCurrency:n.defaultCurrency??null}}catch(o){return console.warn("[editor-currency-source] load failed; editor stays unpriced",o),_2}}async function hHe(e,t){let o=await Ne.listSiteCurrencies(t,e);if(!o.length)return uHe;let n=[...o].sort((r,a)=>r.display_order-a.display_order).map(r=>({code:r.currency_code,symbol:r.symbol||wHe(r.currency_code),decimalPlaces:typeof r.decimal_places=="number"?r.decimal_places:bHe(r.currency_code),isDefault:r.is_default}));return{currencies:n,defaultCurrency:n.find(r=>r.isDefault)?.code??n[0].code}}var gHe=0;function cle(e){try{return Pae(e)}catch{return null}}function bHe(e){return cle(e)?.resolvedOptions().maximumFractionDigits??gHe}function wHe(e){return cle(e)?.formatToParts(0).find(n=>n.type==="currency")?.value||e}import{jsx as ple}from"react/jsx-runtime";function tB({token:e,siteId:t,enabled:o,children:n}){let[r,a]=yHe(_2);return xHe(()=>{if(!e||!o||!t){a(_2);return}let i=!1;return dle(e,t).then(s=>{i||a(s)}).catch(()=>{}),()=>{i=!0}},[e,o,t]),ple(iu,{currencies:r.currencies,defaultCurrency:r.defaultCurrency,children:ple(sle,{reason:r.reason,children:n})})}var Fh=new Map,oB=e=>e??"";function Bh(e,t,o=!1){let n=oB(t);o&&Fh.delete(n);let r=Fh.get(n);return r||(r=Ne.getHeaderSettings(e,t??void 0),Fh.set(n,r),r.catch(()=>{Fh.get(n)===r&&Fh.delete(n)})),r}function mle(e,t){Fh.set(oB(t),Promise.resolve(e))}function ule(e){Fh.delete(oB(e))}function R2(e){return{logoUrl:tc(e.effective_logo_url),reverseLogo:e.reverse_logo,logoPosition:e.logo_position,logoSize:e.logo_size,logoSizePx:e.logo_size_px,logoSizeUnit:e.logo_size_unit??null,menuItems:e.menu_items??[],menuSplit:e.menu_split??3,menuPosition:e.menu_position,menuRow:e.menu_row,menuGapPx:e.menu_gap_px??null,menuGapUnit:e.menu_gap_unit??null,searchEnabled:e.search_enabled,searchPosition:e.search_position,searchRow:e.search_row,countrySelectorEnabled:e.country_selector_enabled,countrySelectorShowAs:e.country_selector_show_as,countryUrls:e.country_urls??{},accountEnabled:e.account_enabled??!0,cartEnabled:e.cart_enabled??!0,utilStyle:e.util_style,navTextCase:e.nav_text_case,lightReverseText:e.light_reverse_text,topTextColor:e.top_text_color,transparentTop:e.transparent_top,surface:e.surface,theme:e.theme,width:e.width,heightPx:e.height_px,sticky:e.sticky,callButton:e.call_button??!1}}import{useEffect as fle,useRef as nB}from"react";function eR({token:e,enabled:t=!0,deps:o=[],prime:n,onDisabled:r,refresh:a}){let i=nB(n);i.current=n;let s=nB(r);s.current=r;let l=nB(a);l.current=a,fle(()=>{if(!e||!t){s.current?.();return}let d=!1;return i.current.load().then(c=>{d||i.current.publish(c)}).catch(()=>{}),()=>{d=!0}},[e,t,...o]),fle(()=>{if(!e||!t||!l.current)return;let d=!1,c=l.current.subscribe(()=>{let p=l.current;p&&p.load().then(m=>{d||p.publish(m)}).catch(()=>{})});return()=>{d=!0,c()}},[e,t,...o])}function rB({token:e,siteId:t}){let{primeSettings:o,setSettings:n}=zn();return eR({token:e,deps:[t],prime:{load:()=>Bh(e,t),publish:r=>o(R2(r))},refresh:{subscribe:lu,load:()=>Bh(e,t,!0),publish:r=>n(R2(r))}}),null}import{createContext as vHe,useCallback as yle,useContext as kHe,useMemo as SHe,useState as THe}from"react";var N2=new Map,hle=e=>e??"";function aB(e,t,o){o&&N2.clear();let n=hle(t),r=N2.get(n);if(!r){let a=Ne.listMenus(e,t);N2.set(n,a),a.catch(()=>{N2.get(n)===a&&N2.delete(n)}),r=a}return r}var tR=new Map;function gle(e,t){let o=hle(t),n=tR.get(o);if(!n){let r=aB(e,t,!0);tR.set(o,r);let a=()=>{tR.get(o)===r&&tR.delete(o)};r.then(a,a),n=r}return n}function O2(e,t=!1){return aB(e,Sn(),t)}function oR(e){return gle(e,Sn())}function ble(e,t=!1){return aB(e,null,t)}function wle(e){return gle(e,null)}var iB={ids:new Set,handles:new Set};function sB(e){return{ids:new Set(e.map(t=>t.id).filter(Boolean)),handles:new Set(e.map(t=>t.handle).filter(Boolean))}}function xle({id:e,handle:t,editing:o,ready:n,live:r}){if(!o)return!1;let a=e??"",i=t??"";return!a&&!i?!0:n?a?!r.ids.has(a):!r.handles.has(i):!1}function nR(e,t){if(t){if(t.id)return e.find(o=>o.id===t.id);if(t.handle)return e.find(o=>o.handle===t.handle)}}import{jsx as EHe}from"react/jsx-runtime";var vle=vHe({live:iB,ready:!1,primeLive:()=>{},setLive:()=>{}});function lB({children:e}){let[t,o]=THe({live:iB,ready:!1}),n=yle(i=>o(s=>s.ready?s:{live:i,ready:!0}),[]),r=yle(i=>o({live:i,ready:!0}),[]),a=SHe(()=>({...t,primeLive:n,setLive:r}),[t,n,r]);return EHe(vle.Provider,{value:a,children:e})}var rR=()=>kHe(vle);function aR({token:e}){let{primeLive:t,setLive:o}=rR();return eR({token:e,prime:{load:()=>O2(e),publish:n=>t(sB(n))},refresh:{subscribe:lu,load:()=>oR(e),publish:n=>o(sB(n))}}),null}import{readLockHolder as YHe}from"efficient-easel/edit-lock";var cB="/api/storefront/section-templates/",dB=e=>`${cB}${encodeURIComponent(e)}/`,pB=e=>e.node!=null;function iR(e){if(!pB(e))throw new Error(`Section template ${e.id} has no design`);return e}var uB=(e,t)=>e instanceof or&&e.status===t;function PHe(e){return{list:()=>Lb(`${cB}?no_page=true`,{token:e()}).then(f_),get:t=>Lb(dB(t),{token:e()}).catch(o=>{if(uB(o,404))return null;throw o}),create:t=>Lb(cB,{method:"POST",token:e(),body:JSON.stringify(t)}),patch:(t,o)=>Lb(dB(t),{method:"PATCH",token:e(),body:JSON.stringify(o)}),remove:t=>Lb(dB(t),{method:"DELETE",token:e()})}}var mB="sf:section-templates",kle=`${mB}.imported`,CHe="Untitled section",_He=160,sR=e=>(typeof e=="string"?e.trim().slice(0,_He):"")||CHe;function RHe(e){try{let t=JSON.parse(e);return Array.isArray(t)?t.filter(o=>{let n=o?.node;return typeof o?.id=="string"&&typeof n?.type=="string"}):[]}catch{return[]}}async function NHe(e,t=da){let o={created:0,seeded:0,left:0,skipped:0,kept:!1},n=t.getItem(mB);if(n===null)return o;for(let r of RHe(n))try{let a=await e.get(r.id);if(a)a.node==null?(await e.patch(r.id,{node:r.node}),o.seeded+=1):o.left+=1;else try{await e.create({id:r.id,name:sR(r.name),node:r.node}),o.created+=1}catch(i){if(!uB(i,400))throw i;o.skipped+=1}}catch{return{...o,kept:!0}}return t.setItem(kle,n),t.getItem(kle)===n&&t.removeItem(mB),o}var lR=class{constructor(t,o=da){this.readToken=t;this.storage=o;this.imported=null;this.http=PHe(t)}ready(){return this.imported?this.imported:this.readToken()?(this.imported=NHe(this.http,this.storage).catch(()=>{}),this.imported):Promise.resolve()}async list(){return await this.ready(),(await this.http.list()).filter(pB)}async get(t){return await this.ready(),this.http.get(t)}async ensure(t,o,n){await this.ready();let r=async i=>i?pB(i)?i:iR(await this.http.patch(t,{node:n})):null,a=await r(await this.http.get(t));if(a)return a;try{return iR(await this.http.create({id:t,name:sR(o),node:n}))}catch(i){if(uB(i,400)){let s=await r(await this.http.get(t));if(s)return s}throw i}}async save(t,o){return await this.ready(),iR(await this.http.create({name:sR(t),node:o}))}async update(t,o){return await this.ready(),iR(await this.http.patch(t,{node:o}))}async rename(t,o){return await this.ready(),this.http.patch(t,{name:sR(o)})}async remove(t){await this.ready(),await this.http.remove(t)}};import{parseOption as WHe}from"efficient-shell/format";var gu={days:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],shortDays:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],closed:"Closed",openNow:"Open now",until:"until",opens:"opens",today:"today",am:"am",pm:"pm"},hu=1440,OHe=/^\s*(\d)\s*:\s*(\d{1,4})\s*-\s*(\d{1,4})\s*$/;function AHe(e){let t=Array.from({length:7},()=>[]),o=!1;for(let n of(e??"").split(";")){let r=OHe.exec(n);if(!r)continue;let a=Number(r[1]),i=Number(r[2]),s=Number(r[3]);a>6||i>hu-1||s<=i||s>2*hu-1||s-i>hu||(t[a].push({opens:i,closes:s}),o=!0)}if(!o)return null;for(let n of t)n.sort((r,a)=>r.opens-a.opens);return t}function Sle(e){let t=e[0];if(!t)return null;let o=AHe(t.week??"");return{week:o,zone:o?(t.zone??"").trim():"",hours:(t.hours??"").split(/\r?\n/).map(n=>n.trim()).filter(Boolean)}}function dR(e){let t=(e%hu+hu)%hu,o=Math.floor(t/60),n=t%60,r=o%12||12,a=o<12?gu.am:gu.pm;return n?`${r}:${String(n).padStart(2,"0")} ${a}`:`${r} ${a}`}var LHe=e=>`${dR(e.opens)} \u2013 ${dR(e.closes)}`,IHe={Mon:0,Tue:1,Wed:2,Thu:3,Fri:4,Sat:5,Sun:6};function FHe(e){let t=dl(e);return t?new Intl.DateTimeFormat("en-US",{weekday:"short",hour:"2-digit",minute:"2-digit",hourCycle:"h23",timeZone:t}):null}function Tle(e,t){let o=FHe(e);if(!o)return null;let n=o.formatToParts(t),r=i=>n.find(s=>s.type===i)?.value??"",a=Number(r("hour"))%24;return{day:IHe[r("weekday")]??0,minute:a*60+Number(r("minute"))}}function Ele(e,t){let{day:o,minute:n}=t,r=e[o]??[],a=r.find(d=>d.opens<=n&&n<d.closes);if(a)return{open:!0,until:a.closes};let s=(e[(o+6)%7]??[]).find(d=>d.closes>hu&&n+hu<d.closes);if(s)return{open:!0,until:s.closes};let l=r.find(d=>d.opens>n);if(l)return{open:!1,next:{inDays:0,day:o,opens:l.opens}};for(let d=1;d<=7;d+=1){let c=(o+d)%7,p=e[c]?.[0];if(p)return{open:!1,next:{inDays:d,day:c,opens:p.opens}}}return{open:!1,next:null}}function Ple(e){let t=gu;if(e.open)return`${t.openNow} \xB7 ${t.until} ${dR(e.until)}`;if(!e.next)return t.closed;let o=e.next.inDays===0?t.today:t.shortDays[e.next.day];return`${t.closed} \xB7 ${t.opens} ${o} ${dR(e.next.opens)}`}function Cle(e){return e.map((t,o)=>({day:o,name:gu.days[o],periods:t.map(LHe).join(", "),closed:t.length===0}))}var cR="0:600-1560;1:600-1560;2:600-1560;3:600-1560;4:600-1620;5:600-1620;6:600-1500",_le={day:0,minute:1200};var A2="pick";var pR="product-reviews";var hB="text-[13px]";var us=(e,t)=>typeof e.id=="string"&&e.id.trim()?e.id:t,si=(e,t)=>(o,n)=>n==="0"?`${e}~${t}`:`${e}~${t}.${n.slice(2)}`;function fs(e,t,o,n){return e[t]!==void 0?e:{...e,[t]:n(us(e,o))}}var Hh="MenuLinkBlock";function Rle(e){return Lo([{type:Hh}],()=>`${e}~link`)}var gB="blog-categories",rw="count",HHe={...ze,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,sharePhone:"content",wrapPhone:!1,name:"Card"},DHe="main",MHe={size:13,lineHeight:1,color:DHe};function Nle(e){let t={0:`${e}~card`,"0.0":`${e}~link`,"0.1":`${e}~count`};return Lo([{type:ce,props:HHe,slots:{[Ce]:[{type:Hh},Re(rw,{...Ge,tag:"p"},MHe)]}}],(o,n)=>t[n]??`${e}~${n}`)}var Ole=e=>us(e,"Menu"),Ale=e=>lt(e)===gB,Lle=e=>(Ale(e)?Nle:Rle)(Ole(e)),zHe=(e,t)=>Array.isArray(e)&&e.length===t.length&&JSON.stringify(e)===JSON.stringify(t);function bB(e){let t=e.template;if(!Array.isArray(t)||t.length!==1)return e;let o=t[0]?.type;if(o!==Hh&&o!==ce)return e;let n=Ole(e),a=Ale(e)?Rle(n):Nle(n);return zHe(t,a)?{...e,template:Lle(e)}:e}function Ile(e){return e.template!==void 0?bB(e):{...e,template:Lle(e)}}var UHe=[{key:"group-offices",label:"Group offices",blocks:["Footprint"]},{key:pR,label:"Product reviews",blocks:["Reviews"]}];T4(UHe);var wB="+00 000 0000",Fle={rooms:()=>[{key:"sample-1",title:u("First room"),excerpt:u("What this room has.")},{key:"sample-2",title:u("Second room"),excerpt:u("What this room has.")},{key:"sample-3",title:u("Third room"),excerpt:u("What this room has.")}],"location-contact":()=>[{key:"location",name:u("Location name"),address:u("Street address"),state:u("State"),country:u("Country"),phone:wB,hours:u("Opening hours")}],"location-cards":()=>[{key:"where",name:u("Address"),note:u("Street address")},{key:"hours",name:u("Opening hours"),note:u("A line about it appears here.")},{key:"call",name:u("Phone"),note:wB}],"location-footer":()=>[{text:u("Street address")},{text:wB},{text:u("Opening hours")}],"location-rate-table":()=>{let e=t=>JSON.stringify([{column:u("Standard"),amount:"$000",standard:!1},{column:u("VIP"),amount:"$000",standard:t}]);return[{group:u("In-house"),label:u("Session \xB7 60 min"),cells:e(!1)},{group:u("In-house"),label:u("Session \xB7 60 min \xB7 Night"),cells:e(!0)},{group:u("Away"),label:u("Session \xB7 60 min"),cells:e(!1)}]},"location-opening":()=>[{week:cR,zone:"Australia/Sydney",hours:""}],"site-messaging":()=>[{app:"wechat",name:"WeChat",handle:"yourvenue",href:"",qr:"https://u.wechat.com/yourvenue"},{app:"telegram",name:"Telegram",handle:"@yourvenue",href:"https://t.me/yourvenue",qr:"https://t.me/yourvenue"},{app:"whatsapp",name:"WhatsApp",handle:"0400 000 000",href:"https://wa.me/61400000000",qr:"https://wa.me/61400000000"},{app:"line",name:"LINE",handle:"yourvenue",href:"https://line.me/ti/p/~yourvenue",qr:"https://line.me/ti/p/~yourvenue"}],[gB]:()=>[{label:u("First category"),href:"/journal",[rw]:"12"},{label:u("Second category"),href:"/journal",[rw]:"8"},{label:u("Third category"),href:"/journal",[rw]:"3"}],"location-payment-methods":()=>[{label:u("Cash"),kind:"cash"},{label:u("Card"),kind:"card"}],"shop-payment-methods":()=>[{label:"Visa / Mastercard / American Express",kind:"card"},{label:"PayPal",kind:""},{label:u("Bank transfer"),kind:"wire"}]},xB=new Set(["Cards",yr]),Ble={[rw]:()=>u("Count"),name:()=>u("Name"),note:()=>u("Note"),price:()=>u("Price"),time:()=>u("Time")},GHe=e=>e.replace(/_([a-z0-9])/g,(t,o)=>o.toUpperCase());function $He(e){let t=Array.isArray(e.blocks)?e.blocks:[];if(!t.some(r=>xB.has(r))||t.some(r=>!xB.has(r)&&oq(r))||!Array.isArray(e.fields))return;let o=t.filter(r=>xB.has(r)).flatMap(r=>Sv(r)),n=[];for(let r of e.fields){if(typeof r!="string"||!r.trim())continue;let a=GHe(r.trim());if(a==="key"||n.some(l=>l.key===a))continue;let i=o.find(l=>l.key===a),s=WHe(["image","link"],"",i?.kind)||void 0;n.push({key:a,label:i?.label??(Object.hasOwn(Ble,a)?Ble[a]():void 0)??a,...s?{kind:s}:{}})}return n.length?n:void 0}function Hle(e){if(Array.isArray(e))for(let t of e){let o=typeof t?.key=="string"&&Object.hasOwn(Fle,t.key)?Fle[t.key]():void 0;try{let n=$He(t);T4([{key:t.key,label:t.label,blocks:t.blocks,...o?{sample:o}:{},...n?{fields:n}:{}}])}catch{}}}var Dle={"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 Mle(e,t){let o=Dle[e][t];return{maxSizeBytes:o.max_bytes,maxFiles:o.max_files,accept:o.accept==="*"||o.accept==="*/*"?void 0:o.accept,acceptHint:o.hint}}import{EFFICIENT_BACKEND as jHe,currentEaselSession as TB,provideDefaultBackend as qHe}from"efficient-easel/screen/lib/session";function L2(e){return{slug:e.slug,image:e.coverImage,title:e.title,dek:e.excerpt,publishedAt:e.publishedAt??"",date:"",href:e.href}}function mR(e){return{slug:e.slug,title:e.title,excerpt:e.excerpt,category:e.category,coverImage:e.cover_image?tc(e.cover_image)??"":"",publishedAt:e.published_at,href:lb(e.slug)}}function zle(e){let t=L2(e),o=e.category.trim();return{slug:t.slug,title:t.title,excerpt:t.dek,cover:t.image,meta:o||void 0,publishedAt:t.publishedAt}}var KHe=["home","products","gallery","about","contact"],VHe=e=>{let t=e.slug.trim().toLowerCase(),o=(e.title??"").trim().toLowerCase(),n=KHe.findIndex(r=>r===t||r===o);return n===-1?Number.POSITIVE_INFINITY:n},Wle=e=>e.map((t,o)=>({page:t,idx:o,rank:VHe(t)})).sort((t,o)=>t.rank-o.rank||t.idx-o.idx).map(t=>t.page);var vB="Popups",Ule="Site",Gle={[bh]:{label:"Site popup",group:vB},[zm]:{label:"Footer",group:Ule},[Xte]:{label:"Cart drawer",group:Ule},[Qte]:{label:"Cookie banner",group:vB}},Kle=e=>Object.hasOwn(Gle,e)?Gle[e]:void 0;function I2(e){return Kle(e.slug)?.label||e.title||e.slug}function yB(e){let t=e.group?.trim();return t||null}function $le(e,t){let o=new Map;for(let n of e){let r=t(n),a=o.get(r);a?a.push(n):o.set(r,[n])}return o}function Vle(e){let t=Wle(e),o=[],n=t.filter(s=>!wh(s.slug)),r=n.filter(s=>!yB(s));r.length&&o.push({key:"top",group:null,pages:r});let a=n.filter(s=>yB(s));for(let[s,l]of $le(a,d=>yB(d)))o.push({key:`folder:${s}`,group:s,pages:l});let i=t.filter(s=>wh(s.slug));for(let[s,l]of $le(i,d=>Kle(d.slug)?.group??vB))o.push({key:`system:${s}`,group:s,pages:l});return o}import{PAGE_CONFLICT_CODE as XHe}from"efficient-easel/screen/lib/failure";import{HINTS_PREFERENCE_KEY as Yle}from"efficient-easel/screen/lib/hints";import{WebsiteBackendError as Ap,provideHostFailures as ZHe}from"efficient-easel/screen/lib/backend-error";var kB=e=>e.layout_updated_at??e.updated_at??null,JHe=["live","changed","never"],jle=e=>JHe.includes(e.live_state)?{live:e.live_state}:{},qle=e=>e.video_frames?{videoFrames:e.video_frames}:{};function QHe(e){if(!e||typeof e!="object")return null;let t=e;return t.code!==XHe?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 e8e(e){return e===401||e===403?"unauthorized":e===404?"not-found":e===cae||e>=500?"unavailable":"invalid"}function t8e(e){if(!(e instanceof or))return e;if(e.status===409){let t=QHe(e.data);if(t)return new Ap("changed-elsewhere",e.message,{conflict:t,cause:e});let o=YHe(e.data);if(o)return new Ap("lock-taken",e.message,{holder:o,cause:e})}return new Ap(e8e(e.status),e.message,{cause:e})}function o8e(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t=o=>{if(typeof o=="string")return o.trim()||null;let n=Array.isArray(o)?o:o&&typeof o=="object"?Object.values(o):[];for(let r of n){let a=t(r);if(a)return a}return null};for(let[o,n]of Object.entries(e)){if(o==="detail")continue;let r=t(n);if(r)return`${o}: ${r}`}return null}var SB=new WeakMap;function n8e(e,t){let o=KJ(),n=o?new URL(o).hostname:typeof window<"u"?window.location?.hostname??null:null,r=null,a=t.siteId(),i=t.token();if(Fre(n)&&a&&i){let l=u_(i,a);SB.has(l)?r=SB.get(l)??null:l.then(d=>SB.set(l,d))}let s=Bre({pageSlug:e,siteSlug:r,hostname:n});return o?`${o}${s}`:s}var r8e={group:"Template pages",groupKey:"template"},Xle=e=>({id:e.id,slug:e.slug,label:e.title||e.slug,...r8e,draft:!1}),Zle="template-home:";async function a8e(e){let t=await Ne.getPageLibrary(e);return t?(await Ne.listTemplatePages(t.id,e)).map(o=>({id:o.id,source:"library",slug:o.slug,title:o.title,layout:o.layout})):[]}async function i8e(e,t){let{template:o,pages:n}=await Ne.getTemplateLibrary(e,t);if(!o)return[];let r=n.some(l=>l.template_page===null),[a,i]=await Promise.all([Ne.listTemplatePages(o.id,t),r?Ne.getTemplate(o.id,t):Promise.resolve(null)]),s=new Map(a.map(l=>[l.id,l.layout]));return n.flatMap(l=>{let d=l.template_page===null?i?.layout:s.get(l.template_page);return d?[{id:l.template_page??`${Zle}${o.id}`,source:"template",slug:l.slug,title:l.title,layout:d}]:[]})}function Jle(e){let t=async m=>{let f=e.token();if(!f)throw new Ap("unauthorized","The editor has no sign-in yet.");try{return await m(f)}catch(g){throw t8e(g)}},o={list:m=>t(async f=>{let g=await Ne.listPages(f,m?.siteId);return Vle(g.filter(h=>h.slug!==zm)).flatMap(h=>h.pages.map(b=>({id:b.id,slug:b.slug,label:I2(b),group:h.group,groupKey:h.key,draft:!b.is_published,kind:b.kind??null})))}),load:m=>t(async f=>{let g="id"in m?m.id:(await Ne.findPageBySlug(m.slug,f,m.siteId))?.id,h=g?await Ne.getPageById(g,f):null;return h?{id:h.id,layout:h.layout,kind:h.kind,version:kB(h),...jle(h),...qle(h)}:null}),save:(m,f,g)=>{let{version:h}=g;return h?t(async b=>{let w=await Ne.saveLayout(m,f.layout,b,h,g.clientId||void 0);return{version:kB(w),...jle(w),...qle(w)}}):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:m=>t(f=>Ne.getPageById(m,f).then(kB)),linkTargets:m=>t(async f=>(await Ne.listPages(f,m?.siteId)).map(g=>({id:g.id,slug:g.slug,label:I2(g),layout:g.layout??null}))),duplicate:(m,f)=>t(async g=>{let h=await Ne.duplicatePage(m,{title:f.title,slug:f.slug},g);return{id:h.id,slug:h.slug,label:I2(h),group:h.group||null,draft:!h.is_published,kind:h.kind??null}}),starters:m=>t(async f=>{let g=m?.siteId??e.siteId(),[h,b]=await Promise.all([a8e(f),g?i8e(g,f):Promise.resolve([])]);return[...h,...b]}),createFromStarter:(m,f)=>t(async g=>{let h=f.siteId??e.siteId();if(!h)throw new Ap("not-found","This editor is not connected to a website.");let b=await Ne.createPageFromTemplate({site:h,title:f.title,slug:f.slug,template_page:m.startsWith(Zle)?null:m},g);return{id:b.id,slug:b.slug,label:I2(b),group:b.group||null,draft:!b.is_published,kind:b.kind??null}})},n=m=>({list:()=>t(async f=>(await Ne.listTemplatePages(m,f)).map(Xle)),load:f=>t(async g=>{let h=x=>"id"in f?x.id===f.id:x.slug===f.slug,b=x=>({id:x.id,layout:x.layout,version:null}),w=await Ne.listTemplatePages(m,g);if(w.length)return b(w.find(h)??w[0]);let y=await Ne.getTemplate(m,g).catch(()=>null);try{return b(await Ne.createTemplatePage(m,{slug:sb,title:"Home",layout:y?.layout??{}},g))}catch{let x=await Ne.listTemplatePages(m,g),k=x.find(h)??x[0];return k?b(k):null}}),save:(f,g)=>t(async h=>(await Ne.saveTemplatePageLayout(f,g.layout,h),{version:null})),create:f=>t(async g=>Xle(await Ne.createTemplatePage(m,{slug:f.slug,title:f.title,layout:f.layout},g))),remove:(f,g)=>t(h=>Ne.deleteTemplatePage(f,h,g))}),r=m=>{let f=m?.siteId??e.siteId();if(!f)throw new Ap("not-found","This editor is not connected to a website.");return f},a=m=>({name:m.name,slug:m.slug}),i=m=>Object.fromEntries(yh.map(f=>[f,m[r_(f)]??""])),s={launcherColor:"launcher_color",launcherIcon:"launcher_icon",launcherPosition:"launcher_position",launcherLabel:"launcher_label",showOnPhones:"show_on_phones"},l=Object.keys(s),d=m=>{let f={enabled:m.enabled,title:m.title,subtitle:m.subtitle,greeting:m.greeting};for(let g of l){let h=m[s[g]];h!==void 0&&Object.assign(f,{[g]:h})}return f},c=m=>{let f={};for(let[g,h]of Object.entries(m))f[s[g]??g]=h;return f},p={pages:o,lock:{claim:(m,f,g)=>t(async h=>({heartbeatSeconds:(await Ne.claimPageEditLock(m,h,f,g)).heartbeat_seconds})),release:m=>t(f=>Ne.releasePageEditLock(m,f))},site:{get:m=>t(async f=>a(await Ne.getSite(r(m),f))),publish:m=>t(async f=>{try{let{state:g,published:h}=await Ne.publishSite(r(m),f);return{state:g,published:h}}catch(g){let h=g instanceof or&&g.status===400?o8e(g.data):null;throw h?new Ap("invalid",h,{cause:g}):g}}),liveState:m=>t(async f=>{let{state:g,changes:h}=await Ne.getSiteLiveState(r(m),f);return{state:g,changes:h}})},media:{resolve:OQ,maxUploadBytes:Mle("POST /api/storefront/media/","file").maxSizeBytes},sectionTemplates:new lR(e.token),social:{get:m=>t(async f=>i(await Ne.getSocialSettings(f,r(m)))),update:(m,f)=>t(async g=>{let h=Object.fromEntries(yh.filter(b=>b in m).map(b=>[r_(b),m[b]]));try{return i(await Ne.updateSocialSettings(h,g,r(f)))}catch(b){if(b instanceof or&&b.status===400){let w=b.data??{},y={};for(let x of yh){let k=w[r_(x)],v=Array.isArray(k)?k[0]:k;typeof v=="string"&&v.trim()&&(y[x]=v)}if(Object.keys(y).length>0)throw new Ap("invalid",b.message,{fields:y,cause:b})}throw b}})},theme:{get:m=>t(f=>Ne.getThemeSettings(f,m?.siteId)),update:(m,f)=>t(g=>Ne.updateThemeSettings(m,g,f?.siteId))},geocode:{locate:(m,f)=>t(async g=>{let h=await Ne.geocode(m,g,f?.country);if(h.status==="not_found")return null;if(h.status!=="found"||h.lat===null||h.lng===null)throw new Ap("unavailable","The geocoder could not answer just now.");return{lat:h.lat,lng:h.lng,label:h.label}})},preferences:{get:()=>t(async m=>{let f=(await Ne.getMyPreferences(m))[Yle];return typeof f=="boolean"?{showHints:f}:{}}),update:m=>t(async f=>{typeof m.showHints=="boolean"&&await Ne.updateMyPreferences({[Yle]:m.showHints},f)})},chat:{get:m=>t(async f=>d(await Ne.getChatSettings(f,m?.siteId))),update:(m,f)=>t(async g=>d(await Ne.updateChatSettings(c(m),g,f?.siteId)))},blog:{posts:m=>t(async f=>(await Ne.listBlogPosts(f,{visibleOnly:!0,siteId:m?.siteId})).map(mR))},templates:{get:m=>t(async f=>{let g=await Ne.getTemplate(m,f);return{id:g.id,name:g.name}}),pages:n},preview:{href:m=>n8e(m,e),draftLink:m=>t(async f=>({url:(await Ne.createPagePreviewLink(m,f)).url??null}))}};return p[jHe]=!0,p}var s8e=["text","date","images"],l8e=e=>e.replace(/_([a-z0-9])/g,(t,o)=>o.toUpperCase());function d8e(e){if(Array.isArray(e))for(let t of e){let n=(Array.isArray(t?.fields)?t.fields:[]).filter(r=>s8e.includes(r.kind)).map(r=>({key:l8e(r.key),label:r.label,kind:r.kind}));try{zQ([{key:t.key,label:t.label,fields:n}])}catch{}}}function Qle(e){return TB().cache("efficient:editor-offerings",()=>Promise.all([Ne.listBlockSources(e).then(Hle).catch(()=>{}),Ne.listRecordTypes(e).then(d8e).catch(()=>{})]).then(()=>{}))}ZHe({read:e=>e instanceof or?{status:e.status,data:e.data,message:e.message}:null,unreachableMessage:dae,loadRefusal:(e,{slug:t})=>e instanceof fae?`\u201C${t}\u201D exists on more than one website. Open it from the site you want to edit.`:null});qHe(e=>Jle({token:()=>e.auth.token,siteId:()=>e.siteId()}));function c8e(e={}){return e.portalAudience!==void 0&&pae(e.portalAudience),e.language!==void 0&&mae(e.language),Jle({token:()=>TB().auth.token,siteId:()=>e.siteId??TB().siteId()})}import{useScreenDocument as m8e}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as EB,jsxs as PB}from"react/jsx-runtime";function CB({surface:e,children:t}){let{token:o,siteId:n,capabilities:r}=m8e();if(p8e(()=>{o&&Qle(o)},[o]),e==="section")return PB(lB,{children:[o?EB(aR,{token:o}):null,t]});let a=o??"";return PB(tB,{token:a,siteId:n,enabled:r.hasSiteSettings,children:[r.hasSiteSettings&&EB(rB,{token:a,siteId:n}),PB(lB,{children:[r.hasSiteSettings&&EB(aR,{token:a}),t]})]})}import{ShowWhen as F9e}from"efficient-shell/ui";import{useCallback as xc,useEffect as Ew,useRef as l1,useState as Gp}from"react";import{requestMediaPick as DMe}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as Dpe}from"efficient-easel/screen/lib/host";import{Button as u8e,ListLoadError as f8e,Text as _B}from"efficient-shell/ui";import{SettingsField as h8e}from"efficient-easel/panel";import{FieldSelect as g8e}from"efficient-easel/fields";import{MenuIcon as b8e}from"efficient-easel/icons";import{useCallback as w8e,useEffect as cde,useState as iw}from"react";function fc(e){let t=(e??"").trim();return t===""||t==="#"}function uR(e){let t=(e??"").trim();return fc(t)?"none":/^(?:https?:)?\/\//i.test(t)?"off-site":/^[a-z][a-z0-9+.-]*:/i.test(t)?"app":"page"}function ede(e,t){let o=(e??"").replace(/[\t\r\n]/g,"").trim();if(!o)return null;try{let n=new URL(o,t);return n.protocol==="http:"||n.protocol==="https:"?n.href:null}catch{return null}}var Lp=e=>typeof e=="string"&&e.trim()!=="";function aw(e){return{label:e.label,url:e.url,...Lp(e.description)?{description:e.description}:{},...Lp(e.image)?{image:e.image}:{},...Lp(e.badge)?{badge:e.badge}:{}}}function Bi(e){if(!e||typeof e!="object")return null;let t=(Array.isArray(e.links)?e.links:[]).filter(n=>n&&Lp(n.label)).map(n=>({label:n.label,url:typeof n.url=="string"?n.url:""})),o={...Lp(e.eyebrow)?{eyebrow:e.eyebrow}:{},...Lp(e.title)?{title:e.title}:{},...Lp(e.text)?{text:e.text}:{},...t.length?{links:t}:{}};return Object.keys(o).length?o:null}function tde(e,t){let o=n=>Lp(n.description)||Lp(n.image);return Bi(t)!==null||e.some(o)}var ode="Menu Item",nde=6,rde=4,ade="Menu",ide="Link a menu in the inspector \u2192";function sde(){return u("This column isn't linked to a menu, so the preview shows placeholder links. Pick a menu above.")}function lde(e){return u("\u201C{name}\u201D no longer exists in {place}, so the preview shows placeholder links. Pick another menu.",{name:e,place:u("Storefront \u2192 Menus")})}function dde(){return u("The menu linked here no longer exists in {place}, so the header shows placeholder links. Pick another menu.",{place:u("Storefront \u2192 Menus")})}import{jsx as cd,jsxs as pde}from"react/jsx-runtime";function RB({value:e,onChange:t}){let[o,n]=iw(null),[r,a]=iw(!1),[i,s]=iw(!1),[l,d]=iw(0),c=w8e(C=>{n(C),a(!0),s(!1)},[]);cde(()=>{let C=!1;return O2(la(),l>0).then(P=>{C||c(P)}).catch(()=>{C||(n([]),s(!0))}),()=>{C=!0}},[c,l]);let p=()=>{n(null),s(!1),d(C=>C+1)};cde(()=>{let C=!1,P=lu(()=>{oR(la()).then(B=>{C||c(B)}).catch(()=>{})});return()=>{C=!0,P()}},[c]);let m=o===null,f=!m&&!i&&(o?.length??0)===0,g=!!(e?.id||e?.handle),h=r&&g&&!nR(o??[],e),b=!g&&(e?.items?.length??0)>0,w=h?"":nR(o??[],e)?.id??"",y=C=>t({id:C.id,handle:C.handle,name:C.name,items:C.items.map(P=>{let B=P.dropdown_items?.length?Bi(P.dropdown_aside):null;return{label:P.label,url:P.url,...P.dropdown_items?.length?{dropdown_items:P.dropdown_items.map(aw)}:{},...B?{dropdown_aside:B}:{}}})}),x=C=>{if(!C){t(null);return}let P=(o??[]).find(B=>B.id===C);P&&y(P)},[k,v]=iw(!1),[S,E]=iw(!1),T=()=>{g&&(v(!0),E(!1),O2(la(),!0).then(C=>{c(C);let P=nR(C,e);P&&y(P)}).catch(()=>E(!0)).finally(()=>v(!1)))};return pde("div",{children:[cd(h8e,{label:u("Menu"),icon:cd(b8e,{}),hint:f?u("Create menus in {place}, then pick one here.",{place:u("Storefront \u2192 Menus")}):void 0,children:cd(g8e,{value:w,ariaLabel:u("Menu"),onChange:x,readOnly:m||(o?.length??0)===0,options:[{label:m?u("Loading menus\u2026"):i?u("Couldn\u2019t load menus"):f?u("No menus found"):u("Select a menu\u2026"),value:""},...(o??[]).map(C=>({label:`${C.name} (${C.item_count??C.items.length})`,value:C.id}))]})}),i?cd(NB,{onRetry:p}):null,b?cd(_B,{as:"p",size:"xs",tone:"inherit",className:"mt-2 text-[var(--warning-text)]",children:sde()}):null,h?cd(_B,{as:"p",size:"xs",tone:"inherit",className:"mt-2 text-[var(--warning-text)]",children:lde(e?.name??u("The linked menu"))}):null,g&&!h?pde("div",{className:"mt-2 flex items-center justify-between gap-2",children:[cd("div",{role:S?"alert":void 0,children:cd(_B,{as:"p",size:"xs",tone:"inherit",className:S?"text-[var(--warning-text)]":"text-fg-dim",children:S?u("Couldn\u2019t update the links. Try again:"):Qn("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??""})})}),cd(u8e,{variant:"link",size:"sm",className:"shrink-0",onClick:T,disabled:k,children:k?u("Updating\u2026"):u("Update links")})]}):null]})}function NB({onRetry:e}){return cd("div",{role:"alert",className:"mt-2",children:cd(f8e,{variant:"none",title:u("Couldn\u2019t load menus"),message:u("Couldn\u2019t load this site\u2019s menus."),onRetry:e})})}import{Fragment as x8e}from"react";import{jsx as y8e}from"react/jsx-runtime";function Hi(e,t){return e.split(/\{([A-Za-z][A-Za-z0-9_]*)\}/g).map((o,n)=>n%2===1?y8e(x8e,{children:o in t?t[o]:`{${o}}`},n):o)}import{parseOption as mde}from"efficient-shell/format";function ude(e){return typeof e=="number"&&Number.isInteger(e)&&e>=ni.min&&e<=ni.max?e:ni.default}var fR="fixed inset-x-0 bottom-0 top-[var(--sf-header-h,88px)]",hR=e=>!!e&&e.startsWith("/wheels/")&&e!=="/wheels",gR=(e,t)=>!e&&t?"var(--section-bg)":"var(--bg)",F2=[{label:"Uppercase",value:"uppercase"},{label:"Capitalised",value:"capitalised"}],OB="uppercase",sw=e=>mde(F2,OB,e),B2=[{label:"Icon",value:"icon"},{label:"Text",value:"text"}],v8e="icon",lw=e=>mde(B2,v8e,e),bR=[{label:"Own row",value:"top"},{label:"Same row",value:"inline"}],wR="top",Ip=e=>e==="inline"?"inline":e==="top"||e==="bottom"?"top":null,xR="custom";function fde(e,t){return e!==xR||typeof t!="string"?null:t.trim()||null}var hde=80,AB=0,LB=100,gde="data-header-link-opacity",bde="--sf-header-link-opacity";function wde(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(LB,Math.max(AB,Math.round(e)))}var H2=KE,k8e="sf-header-theme";function D2(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}function yR(e){let t=D2(e);return t===null?null:{className:k8e,style:Iq(t)}}var dw=[{value:"name",label:"Country name"},{value:"code_currency",label:"Code and currency"},{value:"globe_code",label:"Globe and code"},{value:"currency",label:"Currency"},{value:"flag_code",label:"Flag and code"},{value:"flag",label:"Flag"},{value:"globe",label:"Globe"}],xde=dw.filter(e=>e.value!=="globe"),vR="Show as",M2="name";function hc(e){return dw.some(t=>t.value===e)?e:M2}var yde=e=>e==="flag_code"||e==="flag";var vde=[{label:"Card",value:"card"},{label:"Photo behind the words",value:"cover"}],kR="card",pl={min:200,max:700,step:10,fallback:330,unit:"px",length:{kind:"height"}};var SR="bottom-left";var z2="bottom";var FB="py-[120px]",ER="pb-[120px]",PR=70,BB="max-view-wide:py-[70px]",S8e="max-view-wide:pt-[70px]",CR="max-view-wide:pb-[70px]",W2="pt-0",U2="max-view-wide:pt-0",T8e=`${FB} ${BB}`,E8e=`${W2} ${ER} ${U2} ${CR}`,G2=`relative z-[2] bg-bg ${T8e}`,$2=`relative z-[2] bg-bg ${E8e}`,kde=`pt-[var(--pg-pt)] ${ER}`,Sde=`${S8e} ${CR}`,Tde="py-[32px] max-view-wide:py-[24px]",_R={top:100,bottom:100},RR={top:120,bottom:120},li={top:120,bottom:120},TR={top:ih.top,bottom:ih.bottom},P8e=[...aP.map(([e])=>e),TR.top,TR.bottom];function pd(e){let t={};for(let o of P8e)e[o]!==void 0&&(t[o]=e[o]);return t}function gc(e,t,o={}){let n=o.nonNegative?C8e(e??{}):e??{},r={top:hr(n[TR.top])===void 0?void 0:t.top,bottom:hr(n[TR.bottom])===void 0?void 0:t.bottom},a=o.noTop&&hr(n[rP.top])===void 0,i=bo(n,r,{noTop:a}),s=Object.fromEntries(Object.entries(i.style).filter(([l,d])=>d!==void 0&&!(a&&l==="paddingTop")));return{...i,style:s,attrs:i.className?gE:{}}}function C8e(e){let t={...e};for(let o of[rP.top,rP.bottom]){let n=hr(t[o]);n!==void 0&&n<0&&delete t[o]}return t}function ml(e,t){return t.className?`${e} ${t.className}`:e}function IB(e){return e==null||e===!1||typeof e=="string"&&!e.trim()}function cw(e,t,o){return IB(e)&&IB(t)&&IB(o)}var HB=104,Ede="group-hover:scale-[1.04]",Pde=40,Cde=30,_de="[background:rgba(0,0,0,0.4)] group-hover:[background:rgba(0,0,0,0.3)]",Rde={bottom:li.bottom,bottomPhone:PR};function K2(e){let t=/(?:^|\s)grid-cols-(\d+)(?=\s|$)/.exec(e);if(!t)throw new Error(`gridColumnsOf: no base grid-cols-N in "${e}"`);let o=[...e.matchAll(/(?:^|\s)(max-[\w[\]-]+):grid-cols-(\d+)(?=\s|$)/g)].flatMap(n=>{let r=tj(n[1]);return r?.max?[{below:r.px,columns:Number(n[2])}]:[]}).sort((n,r)=>r.below-n.below);return{base:Number(t[1]),steps:o}}function DB(e,t){return Math.max(1,Math.min(e,Math.floor(t)))}function Nde(e,t){return{base:DB(e.base,t),steps:e.steps.map(o=>({below:o.below,columns:DB(o.columns,t)}))}}var V2="sf-card-tracks",MB=e=>e.split(/\s+/).includes(V2),zB=(e,t=!1)=>t?`--sf-cols:${e}`:`grid-template-columns:repeat(${e},minmax(0,1fr))`;function bu(e,t,o={}){let n=MB(t);return Ode(e,t,o,(r,a,i)=>[`${r}{${zB(i,n)}}`])}function Ode(e,t,{limit:o,cards:n},r){let a=K2(t),i=typeof o=="number"&&o>0?o:void 0,s=Math.max(a.base,...a.steps.map(d=>d.columns));if(n!==void 0&&Math.min(n,i??1/0)>=s)return"";let l=[];for(let d of WB(a)){let c=i===void 0?d.columns:DB(d.columns,i),p=[];c<d.columns&&p.push(...r(`.${e}.${e}`,d.columns,c));for(let m=c-1;m>=1;m--)p.push(...r(`.${e}:not(:has(> :nth-child(${m+1})))`,d.columns,m));l.push(UB(d,p))}return l.join("")}function _8e(e,t,o){return[`${e}{grid-template-columns:repeat(${2*t},minmax(0,1fr))}`,`${e}>*{grid-column:span 2}`,`${e}>:first-child{grid-column:${t-o+1}/span 2}`]}function Ade(e,t,o={}){return Ode(e,t,o,_8e)}function WB({base:e,steps:t}){return[{min:t[0]?.below,max:void 0,columns:e},...t.map((o,n)=>({min:t[n+1]?.below,max:o.below,columns:o.columns}))]}function UB(e,t){if(t.length===0)return"";let o=e.min!==void 0&&e.max!==void 0?`(${e.min}px <= width < ${e.max}px)`:e.max!==void 0?`(width < ${e.max}px)`:e.min!==void 0?`(width >= ${e.min}px)`:void 0;return o?`@media ${o}{${t.join("")}}`:t.join("")}var R8e={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6"},N8e={1:"max-view-desktop:grid-cols-1",2:"max-view-desktop:grid-cols-2",3:"max-view-desktop:grid-cols-3",4:"max-view-desktop:grid-cols-4",5:"max-view-desktop:grid-cols-5",6:"max-view-desktop:grid-cols-6"},Lde={1:"max-view-wide:grid-cols-1",2:"max-view-wide:grid-cols-2",3:"max-view-wide:grid-cols-3"},wu={min:1,max:6,fallback:4},Y2={min:1,max:6},Dh={min:1,max:3};var GB=(e,t,o)=>typeof e=="number"&&Number.isFinite(e)?Math.min(o,Math.max(t,Math.round(e))):void 0;function $B(e){return GB(e,wu.min,wu.max)??wu.fallback}function KB(e){let t=$B(e);return t===6?3:t>=4?2:t}function NR(e,t,o){let n=$B(e),r=GB(o,Y2.min,Y2.max)??KB(n),a=GB(t,Dh.min,Dh.max),i=[V2,R8e[n]];return r!==n&&i.push(N8e[r]),a!==void 0?i.push(Lde[a]):n>1&&i.push(Lde[1]),i.join(" ")}function OR(e){return e.template!==void 0||e.columnsTablet!==void 0||$B(e.columns)!==3?e:{...e,columnsTablet:2}}function VB(e){return typeof e.columns=="number"?e.columns:3}function Ide(e){let t={dynamic:!0,relationship:"bundles"},o=[];for(let[r,a]of Object.entries(e))a!==void 0&&(t[r]=a,o.push(r));let n=VB(e);return t.columns=n,t.limit=n,{props:t,carried:o}}import{phoneKey as oH}from"efficient-easel/draw";import{HIDDEN_KEY as sce}from"efficient-easel/screen/lib/content/view-hide";import{isNode as Q8e}from"efficient-easel/data";var Di=(e,t)=>({type:Ev,props:{name:e,label:t}});import{REPEAT_ATTRIBUTE as Bde,phoneKey as O8e,tabletKey as A8e}from"efficient-easel/draw";var Fp="sharedColumns",Hde="shared",j2="own",Dde="scroll",YB="Row columns",Mde=[{value:j2,label:"Each row"},{value:Hde,label:"Shared"}],zde=[{value:j2,label:"Each row"},{value:Dde,label:"Shared, scroll"}],L8e="(width >= 800px)",I8e="(width < 800px)";function AR(e){let t={direction:e.direction,separator:e.separator,loop:_v(e.loop),line:e.line};return t.direction==="row"&&!Em(t.direction,t.separator)&&t.loop!=="scroll"&&t.line!==!0&&!as(e)&&P0({...t,columns:e.columns})===""&&E0({...t,columnsTablet:e[A8e("columns")]})===""}function Wde(e){return Array.isArray(e)?e.filter(t=>typeof t?.type=="string").length:hr(e?.blockCount)??0}function Bp(e){return AR(e)&&pw(Wde(e.content))>0?F8e(e[Fp],e[O8e(Fp)]):{desktop:!1,phone:!1}}var pw=e=>Number.isInteger(e)&&e>0?e:0,Ude=(e,t)=>`sf-shared-cols-${e}${t===void 0?"":`-from-${t}`}`,Gde=e=>`sf-shared-cols-phone-${e}`;function F8e(e,t){return{desktop:e===Hde,phone:t===Dde}}function $de(e,t,o){let n=pw(t);return n?`${e.desktop?` ${Ude(n,o)}`:""}${e.phone?` ${Gde(n)}`:""}`:""}function Kde(e){let t=`[${Bde}]`;return`:has(> ${t} ${e}):not(:has(> ${t} ${t} ${e}))`}function Fde(e,t,o=""){let n=Kde(e);return`${n}{display:grid;grid-template-columns:${t};column-gap:0${o}}${n}>:not(:has(${e})):not(${e}){grid-column:1/-1}${n} :has(${e}),${n} ${e}{display:grid;grid-template-columns:subgrid;grid-column:1/-1;min-width:0}`}var jB="data-sf-shared-plain";function B8e(e){let t=`[${Bde}]`,o=`[${jB}]`,n=Kde(e)+`:not(:has(> :not(${t}) > :not(${o}) ${e})):not(:has(> ${t} > * > :not(${o}) ${e})):not(:has(:not(${o}) > :not(${o}) > ${e})):not(:has(> ${t}[${aJ}]))`,r=`${n}>:not(style):not(:has(${e})):not(${e})`;return`${n}{display:table;width:100%;border-collapse:collapse}${n}>:has(${e}),${n}>${t}>:has(${e}),${n} ${o}:has(${e}),${n} ${o}>:has(${e}){display:contents}${n} ${e}{display:table-row}${n} ${e}>*{display:table-cell;width:auto;vertical-align:top}${n} ${e}.${jl.center}>*{vertical-align:middle}${n} ${e}.${jl.end}>*{vertical-align:bottom}${r}{display:table-caption;caption-side:bottom}${r}:has(~ ${t}){caption-side:top}`}function Vde(e,t,o){let n=pw(t);if(!n)return"";let r="";if(e.desktop){let a=`.${Ude(n,o)}`;r+=`@media ${o===void 0?L8e:`(width >= ${o}px)`}{${Fde(a,`repeat(${n},auto)`)}${B8e(a)}}`}return e.phone&&(r+=`@media ${I8e}{${Fde(`.${Gde(n)}`,`repeat(${n},minmax(max-content,auto))`,";overflow-x:auto")}}`),r}var qB="sharedRows",H8e="shared",q2="sf-shared-rows-list";function D8e(e){let t=e.direction;return(t===void 0||t==="column")&&_v(e.loop)!=="scroll"&&e.line!==!0&&!as(e)}function LR(e){return e[qB]===H8e&&D8e(e)&&pw(Wde(e.content))>0}var Yde=e=>`sf-shared-rows-${e}`;function jde(e,t){let o=pw(t);return e&&o?` ${Yde(o)}`:""}function qde(e,t){let o=pw(t);if(!e||!o)return"";let n=`.${Yde(o)}`,r=`.${q2}`,a=`display:grid;grid-template-rows:subgrid;grid-row:span ${o};min-height:0;grid-template-columns:minmax(0,1fr)`,i=["start","center","end"].map(s=>`${r} ${n}.${jl[s]}{justify-items:${s}}`).join("");return`${r} :has(${n}){${a};row-gap:0}${r} ${n}{${a};justify-content:normal;align-items:stretch}${i}`}var Xde={showCardSizes:!0,showCardBuy:!0,showCardPage:!0},Zde={showCardSizes:!0,showCardBuy:!1,showCardPage:!1};var Z2="ProductPicture",IR="ProductSpecs",FR="ProductBuy",bc="ProductPrice",BR="ProductColour",XB="ProductSize",xu="ProductEyebrow",Hp="ProductName",HR="ProductSku",Qde=[Z2,xu,Hp,IR,bc,BR,XB,FR],DR=[{key:"name",label:"Name"},{key:"eyebrow",label:"Eyebrow"},{key:"note",label:"Note"},{key:"href",label:"Product page",kind:"link"},{key:"colour",label:"Product colour",kind:"colour"},{key:"colourVaried",label:"Product colour, varied",kind:"colour"},{key:"colourRandom",label:"Random colour",kind:"colour"}],M8e={...ze,gap:0,gapPhone:0,...pt(32,32,32,32),[qB]:"shared"},ece=(e,t=pa)=>us(e,t),X2=(e,t)=>typeof e=="boolean"?e:t,z8e={type:"Text",props:{...vt,tag:"p",text:"",[Ds]:"note",_partStyles:{text:{...Hj,...po("body",14),lineHeight:1.375}}}};function ZB(e,t={}){let o=e.dynamic===!0,n={},r=o?t.legacyWellHonoured?e.imageBackground??WC:hoe(e.imageBackground):e.imageBackground;r!==void 0&&(n.imageBackground=r);for(let d of["cardImage","coverIndex","indexBadge","showBadge"])e[d]!==void 0&&(n[d]=e[d]);let a=t.showRest??Zde,i={price:X2(e.showCardPrice,!0),finishes:X2(e.showCardFinishes,!0),sizes:X2(e.showCardSizes,a.showCardSizes),buy:X2(e.showCardBuy,a.showCardBuy),page:X2(e.showCardPage,a.showCardPage)},s={...M8e,name:"Card"};e.outline==="hairline"&&(s.sectionBorder={width:1,style:"solid"});let l=[{type:Z2,props:n},{type:xu},{type:Hp},{type:IR,props:{sizes:i.sizes}},...i.price?[{type:bc}]:[],...i.finishes?[{type:BR}]:[],...i.buy||i.page?[{type:FR,props:{buy:i.buy,page:i.page}}]:[]];return{type:ce,props:s,slots:{[Ce]:l}}}var W8e={...ze,gap:0,gapPhone:0,...pt(0,0,0,0)},U8e={...ze,gap:8,gapPhone:8,...pt(16,20,16,20)},G8e={role:"heading",size:18,weight:500,case:"none",letterSpacing:-.015,lineHeight:1.2},Jde=24;function $8e(e){let t={frame:"full"};for(let n of["cardImage","showBadge"])e[n]!==void 0&&(t[n]=e[n]);let o={type:ce,props:{...U8e,name:"Copy"},slots:{[Ce]:[{type:Hp,props:{fixedHeight:!1,_partStyles:{"@name":G8e}}},z8e,{type:bc}]}};return{type:ce,props:{...W8e,name:"Card"},slots:{[Ce]:[{type:Z2,props:t},o]}}}function MR(e){if(e.template!==void 0)return e;let t=ece(e);return{...e,gap:e.gap??Jde,gapPhone:e.gapPhone??Jde,template:Lo([$8e(e)],(o,n)=>`${t}~card-${n}-${o}`)}}function K8e(e,t={}){let o=ece(e,t.section);return Lo([ZB(e,t)],(n,r)=>`${o}~card-${r}-${n}`)}function tce(e){return J2(e,{showRest:Xde,section:So})}function J2(e,t={}){return e.template!==void 0?e:{...e,template:K8e(e,t)}}import{parseOption as oce}from"efficient-shell/format";var zR=["split","imageRight","stacked"],wc="split";function yu(e){return oce(zR,wc,e)}var V8e=["left","center"],Dp="left";function Mh(e){return oce(V8e,Dp,e)}var JB=35,QB=70,Mp=50;function WR(e){let t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?Math.min(QB,Math.max(JB,Math.round(t))):Mp}import{parseOption as Y8e}from"efficient-shell/format";var j8e=["main","thumbs","tiled","stacked"],zp="thumbs";function mw(e){return Y8e(j8e,zp,e)}var q8e=["contain","cover"],Wp="contain";function uw(e){return dP(e,Wp)}function nce(){return q8e.map(e=>({label:CX[e],value:e}))}function rce(e,t){return t?"contain":e}import{parseOption as X8e}from"efficient-shell/format";var Z8e=["top","belowSpecs"],eH="top";function ace(e){return X8e(Z8e,eH,e)}var UR="trustBullets";import{parseOption as J8e}from"efficient-shell/format";var Mi="titleLook",fw=["card","headline"],vu="card",GR=e=>J8e(fw,vu,e),zh="accentLastWord",Wh="showBadge";var Q2="ProductGallery",lce=[Q2,xu,Hp,bc,HR],di={fitmentLine:"fitment-line",options:"options",facts:"facts",howMany:"how-many",buy:"buy",notify:"notify",reminder:"reminder"},eDe=28,dce="@price";function tDe(e){let{[dce]:t,...o}=e&&typeof e=="object"?e:{};return{price:t,others:o}}var oDe=Nj[0].value,tH=(e,t,o={})=>({...ze,name:e,gap:t,[oH("gap")]:t,...pt(0,0),blockSpacing:oDe,...o});function rH(e,t={}){let o=ace(e.pricePlacement),n={type:bc,props:cce(e)?{...t,[sce]:!0}:t},r={type:ce,props:tH("Stage",0),slots:{[Ce]:[{type:Q2,props:{galleryMode:mw(e.galleryMode),imageFit:uw(e.imageFit)}}]}},a={type:ce,props:tH("Buy column",eDe,Mh(e.textAlign)==="center"?{align:"center"}:{}),slots:{[Ce]:[{type:ce,props:tH("Title",0),slots:{[Ce]:[{type:xu,props:{[Mi]:"headline",[Wh]:!0}},{type:Hp,props:{[Mi]:"headline",[zh]:!0}}]}},...o==="top"?[n]:[],Di(di.fitmentLine,u("Remembered car")),Di(di.options,u("Options")),Di(di.facts,u("Settled facts")),Di(di.howMany,u("Quantity")),...o==="belowSpecs"?[n]:[],Di(di.buy,u("Buy row")),Di(di.notify,u("Notify me")),Di(di.reminder,u("Reminder"))]}};return yu(e.heroLayout)==="imageRight"?[a,r]:[r,a]}var cce=e=>e.showPriceQuote===!1,nDe={sectionBorder:{top:1,style:"solid"}},ice=20;function rDe(e){return $R(e).map((t,o)=>{if(o!==0)return t;let n={...t.props},r=i=>typeof i=="number"?i:void 0,a=r(t.props.sectionPaddingTop)??0;return n.sectionPaddingTop=ice+a,n[oH("sectionPaddingTop")]=ice+(r(t.props[oH("sectionPaddingTop")])??a),t.props.sectionBorder||Object.assign(n,nDe),{type:t.type,props:n}})}function $R(e){return Array.isArray(e)?e.filter(t=>Q8e(t)):[]}var hw="templateShape",gw="hero";function aDe(e){let t=e[Et];if(e[hw]===gw||!Array.isArray(t))return null;if(t.length===0)return[];let o=$R(t);return o.length===t.length&&o.every(n=>n.type!==ce)?o:null}function iDe(e,t={},o=[],n){let r=us(e,xr),a=Lo(rH(e,t),(s,l)=>`${r}~hero.${l}`);if(o.length===0&&!n)return a;let i=yu(e.heroLayout)==="imageRight"?0:1;return a.map((s,l)=>{if(l!==i)return s;let d=m=>({...m,props:{...m.props,[sce]:!0}}),c=n&&cce(e)?n.map(d):n,p=s.props[Ce].flatMap(m=>c&&m.type===bc?c.length>0?c:[d(m)]:[m]);return{...s,props:{...s.props,[Ce]:[...p,...o]}}})}function pce(e){let t=aDe(e);if(e[Et]!==void 0&&!t)return e;let o={...e,[hw]:gw},n={};for(let[r,a]of[[TZ,_i(e)],[uF,e[uF]]]){let{price:i,others:s}=tDe(a);i&&(n[r]={[dce]:i},Object.keys(s).length>0?o[r]=s:delete o[r])}return o[Et]=iDe(e,n,rDe(e[UR]),t??void 0),Array.isArray(e[UR])&&(o[UR]=[]),o}function nH(e){if(e.type===Q2)return!0;let t=e.props[Ce];return Array.isArray(t)&&$R(t).some(nH)}function mce(e,t){let o=e[Et];if(!t.heroLayout&&!t.textAlign||!Array.isArray(o)||o.length!==2)return e;let n=$R(o);if(n.length!==2||n.some(c=>c.type!==ce))return e;let r=n.findIndex(nH);if(r===-1||nH(n[1-r]))return e;let a=n[r],i=n[1-r],s=!1;if(t.textAlign){let c=Mh(e.textAlign)==="center";if(c&&i.props.align!=="center")i={...i,props:{...i.props,align:"center"}},s=!0;else if(!c&&i.props.align==="center"){let{align:p,...m}=i.props;i={...i,props:m},s=!0}}let l=yu(e.heroLayout)==="imageRight";if(t.heroLayout&&r===0===l&&(s=!0),!s)return e;let d=(t.heroLayout?l:r===1)?[i,a]:[a,i];return{...e,[Et]:d}}var hs="thanksTemplate",aH="After sending",KR=["Text","ImageBlock",ce,"ButtonBlock"],ku="showSent",VR=[{label:"Form",value:"form"},{label:"After sending",value:"sent"}];function YR(e,t){return!!t&&e==="sent"}var jR=(e,t={})=>{let{fillColor:o,...n}=Fj(e,void 0);return{...n,...t}},Su=(e,t={})=>jR(e,{sectionCorners:Math.ceil(e/2),...t});var Fa="facetTemplate",iH="Filter option template",e1=[{key:"facetLabel",label:"Filter option"},{key:"facetName",label:"Type name"},{key:"facetCount",label:"Option count"},{key:"facetColour",label:"Option colour",kind:"colour"},{key:"facetTickFill",label:"Tick box fill",kind:"colour"},{key:"facetTick",label:"Tick mark",kind:"image"},{key:"facetTickMark",label:"Tick box shown"},{key:"facetRadioMark",label:"Round mark shown"},{key:"facetDot",label:"Round mark dot",kind:"colour"}],sDe="sf-facet-tick-picture",sH="data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%271%200.75%2014%2014%27%20id%3D%27"+sDe+"%27%3E%3Cpath%20d%3D%27M3.2%208%206.4%2011.2%2012.8%203.2%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.56%27%2F%3E%3C%2Fsvg%3E",hce="--sf-facet-tick",gce="[&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[background-image:none]! [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[background-color:var(--accent-ink)]! [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[-webkit-mask:var(--sf-facet-tick)_center/cover_no-repeat] [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[mask:var(--sf-facet-tick)_center/cover_no-repeat]";function bce(e,t){return{facetLabel:e.label,facetName:"",facetCount:String(e.count),facetColour:e.swatch??"",facetTickFill:t?"main":"",facetTick:t?sH:"",facetTickMark:"tick",facetRadioMark:"",facetDot:""}}function wce(e,t){return{facetLabel:"",facetName:e.label,facetCount:String(e.count),facetColour:"",facetTickFill:t?"main":"",facetTick:"",facetTickMark:"",facetRadioMark:"radio",facetDot:t?"main":""}}var ww=["Text","ImageBlock",ce],bw={...Ws,direction:"row",align:"center",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap"},xce=13,qR=10,lDe=2,dDe=1;var cDe={size:xce,case:"capitalize",lineHeight:1.5},pDe={size:xce,case:"none",lineHeight:1.5},mDe={textStyle:"body-5",size:11,case:"none",letterSpacing:0,lineHeight:1.5},uce="muted",fce="surface",uDe=()=>({type:ce,props:{...bw,name:"Option",justify:"between",gap:qR,gapPhone:qR,...pt(4,12)},slots:{[Ce]:[{type:ce,props:{...bw,name:"Choice",gap:qR,gapPhone:qR,minWidth:0},slots:{[Ce]:[{type:ce,props:{...ze,name:"Tick mark",[Ea]:["facetTickMark"]},slots:{[Ce]:[{type:ce,props:{...jR(16,{sectionCorners:lDe,fillColor:uce,[Na]:"facetTickFill",...pt(1,1)}),name:"Tick box"},slots:{[Ce]:[{type:ce,props:{...jR(14,{sectionCorners:dDe,fillColor:fce,[Na]:"facetTickFill",[Jn]:"facetTick",...pt(0,0)}),name:"Tick"}}]}}]}},{type:ce,props:{...ze,name:"Round mark",[Ea]:["facetRadioMark"]},slots:{[Ce]:[{type:ce,props:{...Su(16,{fillColor:uce,[Na]:"facetTickFill",...pt(1,1)}),name:"Radio"},slots:{[Ce]:[{type:ce,props:{...Su(14,{fillColor:fce,...pt(3,3)}),name:"Radio ground"},slots:{[Ce]:[{type:ce,props:{...Su(8,{[Na]:"facetDot",...pt(0,0)}),name:"Dot"}}]}}]}}]}},{type:ce,props:{...ze,name:"Swatch",[Ea]:["facetColour"]},slots:{[Ce]:[{type:ce,props:{...Su(13,{sectionBorder:{width:1}}),name:"Ring"},slots:{[Ce]:[{type:ce,props:{...Su(11,{[Na]:"facetColour"}),name:"Colour"}}]}}]}},{type:ce,props:{...ze,name:"Label",[Ea]:["facetLabel"]},slots:{[Ce]:[Re("facetLabel",{...Ge,tag:"span",minWidth:0},cDe)]}},{type:ce,props:{...ze,name:"Name",[Ea]:["facetName"]},slots:{[Ce]:[Re("facetName",{...Ge,tag:"span",minWidth:0},pDe)]}}]}},Re("facetCount",{...vt,tag:"span"},mDe)]}});function fDe(e){return Lo([uDe()],si(e,"facet"))}function lH(e){return fs(e,Fa,So,fDe)}var gs="buyTemplate",vce="Buy template",dH="ProductBuyButton",cH="quantity",pH="save",kce=[ce,dH],yce=16,Sce="buy",hDe=e=>{let t=si(e,Sce);return{quantity:t(Ev,"0.0"),button:t(dH,"0.1"),save:t(Ev,"0.2")}},gDe=e=>{let t=hDe(e);return{type:ce,props:{...bw,name:"Buy row",align:"stretch",gap:yce,gapPhone:yce,wrapPhone:"wrap",orderPhone:[t.quantity,t.save,t.button]},slots:{[Ce]:[Di(cH,u("Quantity")),{type:dH,props:{widthFit:"fill",widthFitPhone:"fill"}},Di(pH,u("Save"))]}}};function bDe(e){return Lo([gDe(e)],si(e,Sce))}function Tce(e){return fs(e,gs,xr,bDe)}var ci="optionTemplate",Ece="Option template",uH=[{key:"swatch",label:"Finish colour",kind:"colour"},{key:"name",label:"Finish name"},{key:"label",label:"Option"},{key:"note",label:"Option note"}],Pce=["Text",ce],mH=(e,t,o={})=>({...Pa(e),letterSpacing:t,lineHeight:1.5,...o}),wDe={...Ws,direction:"row",align:"center",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap"},xDe=()=>({type:ce,props:{...Ws,direction:"column",name:"Option",...pt(12,12),sectionBorder:{width:2}},slots:{[Ce]:[{type:ce,props:{...wDe,name:"Finish",gap:12,gapPhone:12,[Ea]:["swatch"]},slots:{[Ce]:[{type:ce,props:{...ze,name:"Swatch"},slots:{[Ce]:[{type:ce,props:{...Su(20,{...pt(0,0),sectionBorder:{width:1},[Na]:"swatch"}),name:"Dot"}}]}},Re("name",{...Ge,tag:"span",minWidth:0},mH(12,.18,{weight:700}))]}},{type:ce,props:{...ze,name:"Words",gap:4,gapPhone:4,...pt(0,4),[Ea]:["label"]},slots:{[Ce]:[Re("label",{...Ge,tag:"span"},mH(14,.18)),Re("note",{...vt,tag:"span"},mH(11,.12))]}}]}});function yDe(e){return Lo([xDe()],si(e,"option"))}function Cce(e){return fs(e,ci,xr,yDe)}var fH="options",Nce=["Text","ImageBlock",ce,Fr],Oce=["Text","ImageBlock",ce],hH=(e,t)=>({...Pa(e),letterSpacing:t,lineHeight:1.2}),vDe=hH(12,.32),_ce=hH(12,.18),Rce={...hH(11,.14),color:"main"},gH=(e,t,o={})=>({...Ws,direction:"row",align:"center",gap:e,gapPhone:e,phoneRow:2,sharePhone:"content",...t?{wrapPhone:"nowrap"}:{},...o}),kDe=()=>({type:ce,props:{...gH(8,!0),name:"Option",...pt(8,12),sectionBorder:{width:1}},slots:{[Ce]:[Re("label",{...Ge,tag:"p"},_ce),Re("count",{...vt,tag:"p"},_ce)]}});function SDe(e){let t={type:ce,props:{...ze,name:"Group",gap:12,gapPhone:12},slots:{[Ce]:[Re("label",{...vt,tag:"p"},vDe),{type:ce,props:{...gH(8,!1,{align:"start",wrap:!0}),name:"Options"},slots:{[Ce]:[{type:Fr,props:{[Ds]:fH},slots:{template:[kDe()]}}]}}]}};return Lo([t],si(e,"group"))}function TDe(e){let t={type:ce,props:{...gH(8,!0),name:"Chip",...pt(4,8),sectionBorder:{width:1}},slots:{[Ce]:[Re("label",{...Ge,tag:"p"},Rce),Re("mark",{...Ge,tag:"p"},Rce)]}};return Lo([t],si(e,"chip"))}function Ace(e){return fs(e,Et,Li,SDe)}function Lce(e){return fs(e,Et,uu,TDe)}var Ba="railTemplate",Ice="Filter group template",Ha="railHeadTemplate",Fce="Filter head template",bH="railGroup",XR=[{key:bH,label:"Filter group"}],wH="options",xH="end",xw=ww,EDe={...ql,size:11,letterSpacing:.2,lineHeight:1.5},PDe={fontRole:"heading",size:18,weight:500,case:"upper",letterSpacing:-.01,lineHeight:1.5},CDe=()=>({type:ce,props:{...ze,name:"Group",gap:0,startsOpen:!0},slots:{rowTitle:[Re(bH,{...Ge,tag:"span"},EDe)],[Ce]:[{type:ce,props:{...ze,name:"Options",...pt(0,0),sectionPaddingBottom:12,sectionPaddingBottomPhone:12},slots:{[Ce]:[Di(wH,"Filter options")]}}]}}),_De=()=>({type:ce,props:{...bw,name:"Head",justify:"between",...pt(0,0),sectionPaddingBottom:8,sectionPaddingBottomPhone:8},slots:{[Ce]:[{type:"Text",props:{...Ge,tag:"h2",text:u("Filter"),_partStyles:{text:PDe}}},Di(xH,"Clear all")]}}),Bce=(e,t)=>{let o=0;return(n,r)=>r==="0"?`${e}~${t}`:`${e}~${t}.${o++}`};function RDe(e){return Lo([CDe()],Bce(e,"rail"))}function NDe(e){return Lo([_De()],Bce(e,"railhead"))}function yH(e){let t=e[Ba]===void 0,o=e[Ha]===void 0;if(!t&&!o)return e;let n=us(e,So);return{...e,...t?{[Ba]:RDe(n)}:{},...o?{[Ha]:NDe(n)}:{}}}var Hce=e=>({[bH]:e});var md="template",ud="reasonTemplate",ul="channelTemplate",Mce={key:"title",label:"Title",plain:!0},kH=[{key:"eyebrow",label:"Eyebrow",plain:!0},Mce,{key:"copy",label:"Body",multiline:!0},{key:"response",label:"Response time"}],zce=[Mce],SH=[{key:"label",label:"Label",plain:!0},{key:"value",label:"Value",plain:!0},{key:"sub",label:"Sub line",plain:!0},{key:"href",label:"Link",kind:"link"}],ZR=["Text","ImageBlock",ce],t1=(e,t)=>({...Pa(e),letterSpacing:t,lineHeight:1.5}),ODe={...t1(12,.24),color:"main"},ADe={textStyle:"heading-3",...po("headingSmall",26),weight:500,case:"upper",lineHeight:1.05,letterSpacing:-.02},LDe={textStyle:"heading-1",...po("body",14),weight:400,case:"none",lineHeight:1.5,letterSpacing:0,color:"muted"},Dce=t1(12,.22),IDe=t1(12,.2),FDe={...t1(12,.3),color:"main"},BDe={textStyle:"heading-3",...po("headingSmall",24),weight:500,case:"none",lineHeight:1.2,letterSpacing:-.02},HDe={...t1(12,.2),color:"muted"},yw=(e,t,o={})=>({...ze,name:e,gap:t,gapPhone:t,...o}),DDe=()=>({type:ce,props:yw("Topic",16,{justify:"between",...pt(40,32),sectionHeightMode:"fixed",sectionHeightValue:240,sectionHeightUnit:"px"}),slots:{[Ce]:[{type:ce,props:yw("Head",16),slots:{[Ce]:[Re("eyebrow",{...Ge,tag:"p",widthFit:"fill"},ODe),Re("title",{...Ge,tag:"h3",widthFit:"fill"},ADe)]}},{type:ce,props:yw("Foot",24),slots:{[Ce]:[Re("copy",{...vt,tag:"p",widthFit:"fill"},LDe),{type:ce,props:{...Ws,name:"Response",direction:"row",justify:"between",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",...pt(0,0),sectionPaddingTop:16,sectionPaddingTopPhone:16,sectionBorder:{top:1},[Ea]:["response"]},slots:{[Ce]:[{type:"Text",props:{...vt,tag:"p",text:"Response",_partStyles:{text:Dce}}},Re("response",{...Ge,tag:"p"},Dce)]}}]}}]}}),MDe=()=>({type:ce,props:{...yw("Reason",0),...pt(12,16),sectionBorder:{width:1}},slots:{[Ce]:[Re("title",{...vt,tag:"p"},IDe)]}}),zDe=()=>({type:ce,props:{...yw("Channel",12),...pt(32,20,20,20),sectionPaddingLeft:22,sectionPaddingTopTablet:20,sectionPaddingRightTablet:20,sectionPaddingBottomTablet:20,sectionPaddingLeftTablet:20,sectionBorder:{bottom:1}},slots:{[Ce]:[Re("label",{...Ge,tag:"p",widthFit:"fill"},FDe),{type:ce,props:{...yw("Value",0),[Go]:"href"},slots:{[Ce]:[Re("value",{...Ge,tag:"p",widthFit:"fill"},BDe)]}},Re("sub",{...vt,tag:"p",widthFit:"fill"},HDe)]}});function vH(e,t,o){return Lo([e],si(t,o))}var WDe=e=>us(e,"ContactRouting");function Wce(e){let t=e[md]===void 0,o=e[ud]===void 0,n=e[ul]===void 0;if(!t&&!o&&!n)return e;let r=WDe(e);return{...e,...t?{[md]:vH(DDe(),r,"topic")}:{},...o?{[ud]:vH(MDe(),r,"reason")}:{},...n?{[ul]:vH(zDe(),r,"channel")}:{}}}var UDe={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:900};function Tu(e,t){let o=$Y(e);if(!o)return{};let n=OZ({role:o},UDe),r={};return n.fontFamily&&(r[t.font]=n.fontFamily),n.fontSize&&(r[t.size]=n.fontSize),r}var JR=["step","name","value","note"],Uce={step:"Step",name:"Name",value:"Value",note:"Note"},vw={step:"styleStep",name:"styleName",value:"styleValue",note:"styleNote"},GDe={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 TH(e){return typeof e=="string"&&v0.includes(e)?e:null}function Gce(e){let t={};for(let o of JR){let n=TH(e[vw[o]]);n&&Object.assign(t,Tu(n,GDe[o]))}return t}var Uh="serviceTemplate",Gh="timeTemplate",Kce=[{key:"name",label:"Service"},{key:"meta",label:"Duration \xB7 price"},{key:"description",label:"Service description",multiline:!0}],Vce=[{key:"time",label:"Time"},{key:"businessTime",label:"Business time"}],Yce=[{slot:Uh,label:"Service template",fields:Kce},{slot:Gh,label:"Time template",fields:Vce}],jce=[...Kce,...Vce],$ce=["Text",ce],QR={[Uh]:{type:"slot",allow:[...$ce]},[Gh]:{type:"slot",allow:[...$ce]}},EH="BookingBox",PH="AppointmentBooking",o1=(e,t,o={})=>({fontRole:e,size:t,...o});function n1(e,t,o,n=!1){let r=TH(o[vw[t]]);if(!r)return e;let{fontRole:a,size:i,...s}=e;return{...s,role:r,...n?{size:i}:{}}}var r1={lineHeight:1.5};function $De(e){return{type:ce,props:{...Ws,direction:"column",name:"Service",justify:"center",gap:12,gapPhone:12,...pt(16,16),sectionBorder:{width:1}},slots:{[Ce]:[{type:ce,props:{...ze,name:"Words",gap:4,gapPhone:4},slots:{[Ce]:[Re("name",{...Ge,tag:"span"},n1(o1("heading",18,{weight:500,...r1}),"name",e)),Re("meta",{...vt,tag:"span"},n1(o1("label",11,{case:"upper",letterSpacing:.14,...r1}),"value",e))]}},{type:ce,props:{...ze,name:"Description",[Ea]:["description"]},slots:{[Ce]:[Re("description",{...vt,tag:"span"},n1(o1("heading",14,r1),"note",e))]}}]}}}function KDe(e){return{type:ce,props:{...Ws,direction:"column",name:"Time",align:"center",justify:"center",gap:2,gapPhone:2,...pt(8,12),sectionBorder:{width:1},sectionHeightMode:"fixed",sectionHeightValue:44,sectionHeightUnit:"px"},slots:{[Ce]:[Re("time",{...Ge,tag:"span"},n1(o1("label",12,{weight:600,case:"upper",letterSpacing:.12,align:"center",...r1}),"value",e)),{type:ce,props:{...ze,name:"Business time",align:"center",[Ea]:["businessTime"]},slots:{[Ce]:[Re("businessTime",{...vt,tag:"span"},n1(o1("label",9,{case:"upper",letterSpacing:.08,align:"center",...r1}),"value",e,!0))]}}]}}}function VDe(e,t={}){return Lo([$De(t)],si(e,"service"))}function YDe(e,t={}){return Lo([KDe(t)],si(e,"time"))}function jDe(e,t){return e===EH?t.region==="booking":e===PH?t.layout!=="boxes"||We(t.headPlacement)==="own-box":!1}function qce(e,t){if(!jDe(e,t))return t;let o=t[Uh]===void 0,n=t[Gh]===void 0;if(!o&&!n)return t;let r=us(t,e);return{...t,...o?{[Uh]:VDe(r,t)}:{},...n?{[Gh]:YDe(r,t)}:{}}}import{phoneKey as e5}from"efficient-easel/draw";function epe(e){return e.toUpperCase()==="US"?"lbs":"kg"}var Xce=.45359237,Zce=/\d[\d,]*(?:\.\d+)?/g,qDe=/(\d[\d,]*(?:\.\d+)?(?:\s*[–-]\s*\d[\d,]*(?:\.\d+)?)?)\s*(kgs?|lbs?)\b/gi,Jce=e=>Number(e.replace(/,/g,"")),Qce=e=>Math.round(e).toLocaleString("en-US");function XDe(e,t){let o={};for(let[,i,s]of e.matchAll(qDe)){let l=s.toLowerCase().startsWith("kg")?"kg":"lbs";o[l]??=i}let n=o[t];if(n!==void 0)return`${n.replace(Zce,i=>Qce(Jce(i))).replace(/\s*([–-])\s*/,"$1")} ${t}`;let r=o[t==="kg"?"lbs":"kg"];if(r===void 0)return e.trim();let a=t==="kg"?Xce:1/Xce;return`${r.replace(Zce,i=>Qce(Jce(i)*a)).replace(/\s*([–-])\s*/,"$1")} ${t}`}var ZDe=e=>e>0?`+${e}`:e<0?`\u2212${-e}`:"0",JDe=e=>{let t=/^(\d+)\s*[×x]\s*\d/.exec(e.boltPattern)?.[1];return t!==void 0&&Number(t)===e.holes?e.boltPattern:e.holes>0&&e.pcd?`${e.holes}\xD7${e.pcd}`:e.boltPattern},kw=[{fieldKey:"diameter",header:"Size",shownByDefault:!0,cell:e=>`${e.diameter} \xD7 ${e.width}`},{fieldKey:"bolt_pattern",header:"Bolt pattern",shownByDefault:!0,cell:JDe},{fieldKey:"et",header:"Offset",shownByDefault:!0,cell:e=>ZDe(e.et)},{fieldKey:"center_bore",header:"Centre bore",shownByDefault:!1,cell:e=>e.cb},{fieldKey:"cap_code",header:"Cap",shownByDefault:!1,cell:e=>e.cap},{fieldKey:"load_rating",header:"Load",shownByDefault:!0,cell:(e,t)=>XDe(e.loadRating,t)}];function QDe(e,t){let o=t.find(n=>n.fieldKey===e.fieldKey)?.fitment;return e.shownByDefault?o!==!1:o===!0}function tpe(e){let t=kw.filter(o=>QDe(o,e));return e.length===0?t:du(t,o=>o.fieldKey,e,"fitmentOrder")}var t5=Et,npe="Row template",Eu="headTemplate",rpe="Head template",CH=kw.map(e=>({key:e.fieldKey,label:e.header})),_H=e=>`head_${e.fieldKey}`,RH=kw.map(e=>({key:_H(e),label:`${e.header} heading`})),eMe="diameter",ope={textStyle:ql.textStyle,...po("label",14),letterSpacing:.06,lineHeight:1.5},tMe={...ql,...po("body",12),letterSpacing:.22,weight:400,lineHeight:1.5},ape=kw.filter(e=>e.shownByDefault),oMe={...ze,direction:"row",justify:"start",align:"start",share:"equal",phoneRow:2,[e5("share")]:"content",[e5("wrap")]:"nowrap",widthFit:"fill",gap:32,gapPhone:16,...pt(16,16)},ipe={[e5("widthFit")]:"fixed",[e5("width")]:120},spe=(e,t)=>({type:ce,props:{...oMe,name:e},slots:{[Ce]:t}}),lpe=()=>spe("Row",ape.map(e=>Re(e.fieldKey,{...Ge,name:e.header,tag:"p",...ipe},e.fieldKey===eMe?{...ope,color:"main"}:ope))),dpe=()=>spe("Head",ape.map(e=>Re(_H(e),{...vt,name:e.header,tag:"p",...ipe},tMe)));function cpe(e,t,o){let n=new Set(e.map(r=>r.fieldKey));return Object.fromEntries(kw.map(r=>[t(r),n.has(r.fieldKey)?o(r):""]))}function ppe(e,t,o,n){return{key:n,...cpe(t,r=>r.fieldKey,r=>String(r.cell(e,o)))}}function mpe(e,t){return{key:"head",...cpe(e,_H,o=>t(o.header))}}var wpe="tags",i1=Pm(12),xpe={textStyle:"heading-3",...po("headingSmall",20),weight:500,lineHeight:1.2,letterSpacing:-.02},ype={textStyle:"body-1",...po("body",14),lineHeight:1.55},nMe={...xpe,...po("headingSmall",30)},rMe={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},aMe=pl.fallback,iMe=480,sMe=70,lMe=()=>({type:ce,props:{...ze,name:"Featured",[Jn]:"cover",darken:55,darkenStyle:z2,darkenPhone:sMe,darkenStylePhone:z2,placement:SR,direction:"column",gap:8,gapPhone:8,...pt(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:aMe,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:iMe,sectionHeightUnitPhone:"px",[Go]:"href"},slots:{[Ce]:[Re("meta",{...Ge,tag:"p"},i1,!0),Re("title",{...Ge,tag:"h3",widthFit:"fill"},nMe),Re("excerpt",{...vt,tag:"p",widthFit:"fill",maxWidth:384},ype),Re("dateLabel",{...vt,tag:"p"},{...i1,color:"muted"})]}}),dMe=()=>({type:ce,props:{...ze,name:"Post",gap:0,gapPhone:0,...pt(0,0,0,0),...L4("surface"),shadow:!0},slots:{[Ce]:[{type:"ImageBlock",props:{[Ds]:"cover",aspect:"16/10",contained:!1}},{type:ce,props:{...ze,name:"Words",gap:12,gapPhone:12,...rMe},slots:{[Ce]:[{type:ce,props:{...ze,name:"Meta",direction:"row",wrap:!0,share:"content",sharePhone:"content",phoneRow:2,gap:12,gapPhone:12,...pt(0,0,0,0)},slots:{[Ce]:[Re("meta",{...Ge,tag:"p"},i1,!0),Re("dateLabel",{...vt,tag:"p"},{...i1,color:"muted"},!0)]}},Re("title",{...Ge,tag:"h3",widthFit:"fill"},xpe),Re("excerpt",{...vt,tag:"p",widthFit:"fill"},ype),{type:Fr,props:{[Ds]:wpe},slots:{template:[{type:ce,props:{...ze,name:"Chip",...pt(4,8,4,8),sectionBorder:{width:1}},slots:{[Ce]:[Re("label",{...vt,tag:"p"},i1)]}}]}},{type:"ButtonBlock",props:{variant:"ghost",label:"Read more",href:"",[Go]:"href",...Fv,icon:"arrow-right",iconPosition:"after",_partStyles:{label:Pa(12)}}}]}}]}}),OH=()=>[lMe(),dMe()];function cMe(e){let t=["featured","post"];return fs(e,Et,"Events",o=>Lo(OH(),(n,r)=>{let[a,...i]=r.split("."),s=t[Number(a)]??`card${a}`;return i.length?`${o}~${s}.${i.join(".")}`:`${o}~${s}`}))}var pMe={fields:[{key:"cover",label:"Cover",kind:"image",alt:"title"},{key:"meta",label:"Eyebrow"},{key:"dateLabel",label:"Date"},{key:"title",label:"Title"},{key:"excerpt",label:"Excerpt",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:wpe,label:"Tags",kind:"list",fields:[{key:"label",label:"Tag"}]}],blocks:[{type:Fr,label:"Card list"}],seedOnInsert:cMe},a1=e=>Number(/(\d+)px/.exec(e)?.[1]),s1={tag:a1(vh.tag.builtIn),name:a1(vh.name.builtIn),namePhone:a1(Pp.namePhone),body:a1(vh.body.builtIn),link:a1(vh.link.builtIn)},mMe={...Pm(s1.tag),letterSpacing:.25},uMe={textStyle:"heading-2",...po("headingMedium",s1.name,s1.namePhone),weight:500,lineHeight:1,letterSpacing:-.03},fMe={textStyle:"body-1",...po("body",s1.body),lineHeight:1.5,paragraphSpacing:12},upe=()=>[Re("tag",{...Ge,tag:"p"},mMe,!0),Re("name",{...Ge,tag:"h3",widthFit:"fill"},uMe),Re("desc",{...Ge,tag:"p",widthFit:"fill",maxWidth:420},fMe),{type:"ButtonBlock",props:{variant:"ghost",label:"Explore",href:"",[Go]:"href",...Fv,icon:"arrow-right",iconPosition:"after",_partStyles:{label:Pa(s1.link)}}}],fpe={_hidden:!0,_hiddenTablet:!0,_hiddenPhone:!1},AH=()=>({type:ce,props:{...ze,name:"Collection",gap:0,gapPhone:0,...pt(0,0,0,0),[Go]:"href"},slots:{[Ce]:[{type:ce,props:{...ze,name:"Picture",[Jn]:"image",boxShape:"portrait",darken:Pde,placement:"bottom-left",direction:"column",gap:12,gapPhone:12,...pt(32,32),hoverZoom:HB,hoverDarken:Cde,_hiddenPhone:!0},slots:{[Ce]:upe()}},{type:"ImageBlock",props:{[Ds]:"image",aspect:"4/5",contained:!1,hoverZoom:HB,...fpe}},{type:ce,props:{...ze,name:"Words",gap:12,gapPhone:12,...pt(24,24),...L4("surface"),...fpe},slots:{[Ce]:upe()}}]}});function hMe(e){return fs(e,Et,"Collections",t=>Lo([AH()],(o,n)=>`${t}~card${n?`.${n}`:""}`))}var gMe={fields:[{key:"tag",label:"Eyebrow"},{key:"name",label:"Title"},{key:"desc",label:"Description",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"name"},{key:"href",label:"Link",kind:"link"}],seedOnInsert:hMe},bMe=35,wMe=50,xMe=106,yMe=85,vMe="nextImage",kMe=FE,vpe="#c4c1ba",kpe={...ql,...Pm(11),letterSpacing:.24,color:"main"},SMe={...kpe,color:vpe},TMe={...ql,...Pm(12,11),color:"main"},EMe={textStyle:"heading-3",...po("headingSmall",22,16),weight:500,lineHeight:1.05,letterSpacing:-.02,color:kMe},PMe={...ql,...Pm(12),letterSpacing:.12,color:vpe},o5=pt(0,0,0,0),LH=()=>({type:ce,props:{...ze,name:"Tile",placement:"top-left",share:"content",gap:0,gapPhone:0,...o5,[Jn]:"image",boxShape:"square",darken:bMe,[Zf]:vMe,[R4.zoom]:xMe,[R4.darken]:wMe},slots:{[Ce]:[{type:ce,props:{...ze,name:"Top row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",widthFit:"fill",gap:8,gapPhone:8,...o5,sectionPaddingTop:12,sectionPaddingLeft:12,sectionPaddingRight:12,sectionPaddingTopPhone:10,sectionPaddingLeftPhone:10,sectionPaddingRightPhone:10},slots:{[Ce]:[{type:ce,props:{...ze,name:"Tag",direction:"row",share:"content",minWidth:0,...o5,[Jf]:wv},slots:{[Ce]:[Re("tag",{...Ge,tag:"p",textFit:"ellipsis"},kpe)]}},Re("number",{...Ge,tag:"p",textFit:"line"},SMe)]}},{type:ce,props:{...ze,name:"Words",justify:"end",align:"start",placement:"bottom-left",share:"content",widthFit:"fill",sectionHeightMode:"fill",gap:8,gapPhone:8,...pt(24,24,12,14),sectionPaddingTopPhone:4,darken:yMe,darkenStyle:"bottom",[Jf]:wv},slots:{[Ce]:[{type:ce,props:{...ze,name:"Heading",widthFit:"fill",gap:4,gapPhone:4,...o5},slots:{[Ce]:[Re("eyebrow",{...Ge,tag:"p",_hiddenPhone:!0},TMe),Re("name",{...Ge,tag:"h3"},EMe)]}},Re("meta",{...Ge,tag:"p"},PMe)]}}]}});function CMe(e){return fs(e,Et,"GalleryB",t=>Lo([LH()],(o,n)=>`${t}~tile${n?`.${n}`:""}`))}var _Me={fields:[{key:"image",label:"Image",kind:"image",alt:"name"},{key:"tag",label:"Tag"},{key:"number",label:"Card number"},{key:"eyebrow",label:"Eyebrow"},{key:"name",label:"Title"},{key:"meta",label:"Meta"},{key:"href",label:"Product link",kind:"link"}],seedOnInsert:CMe},RMe=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],NMe=e=>Object.fromEntries(Object.entries(e).filter(([t])=>!RMe.includes(t))),hpe={fields:[{key:"label",label:"Label"},{key:"href",label:"Link",kind:"link"}],blocks:[{type:Hh,label:"Menu link"}],seed:Ile},Sw=e=>e.dynamic===!0&&e.relationship==="bundles",Spe=(e={})=>ZB(e),n5={fields:DR,blocks:[{type:Z2,label:"Picture"},{type:xu,label:"Eyebrow"},{type:Hp,label:"Name"},{type:IR,label:"Specs"},{type:bc,label:"Price"},{type:BR,label:"Colour"},{type:XB,label:"Size"},{type:FR,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return J2(e);let t=OR(e);return Sw(e)?MR(t):J2(t)}},gpe=[{key:"label",label:"Filter name"},{key:fH,label:"Options",kind:"list",fields:[{key:"label",label:"Option"},{key:"count",label:"Count"}]}],bpe=[{slot:Ba,label:Ice,fields:XR},{slot:Ha,label:Fce,fields:[]}],OMe=[{block:"Reviews",fields:[{key:"quote",label:"Quote"},{key:"title",label:"Title"},{key:"name",label:"Name"},{key:"role",label:"Role \xB7 location"},{key:"rating",label:"Rating"},{key:"dateLabel",label:"Date"}],blocks:[{type:"RatingBlock",label:"Rating"}]},{block:"SpecTable",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]},{block:"DetailRows",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"}]},{block:"FooterMenu",...hpe},{block:yr,...hpe},{block:pa,...n5},{block:So,...n5,slots:[{slot:Et,fields:DR},{slot:Fa,label:iH,fields:e1},...bpe],fields:[...DR,...e1,...XR],seed:e=>yH(lH(tce(e)))},{block:"RelatedProducts",...n5,seed:e=>{let t=OR({...NMe(e),dynamic:!0});return Sw(t)?MR(t):J2(t,{legacyWellHonoured:!0})}},{block:"BundleOffer",...n5,seed:e=>MR(OR({...e,columns:VB(e),dynamic:!0}))},{block:xr,slots:[{slot:Et,fields:[]},{slot:ci,label:Ece,fields:uH},{slot:gs,label:vce,fields:[]}],fields:uH,blocks:[{type:Q2,label:"Product Gallery"},{type:xu,label:"Eyebrow"},{type:Hp,label:"Name"},{type:bc,label:"Price"},{type:HR,label:"SKU"}],seed:e=>Tce(Cce(pce(e)))},{block:Li,slots:[{slot:Et,fields:gpe},{slot:Fa,label:iH,fields:e1},...bpe],fields:[...gpe,...e1,...XR],blocks:[{type:Fr,label:"Card list"}],seed:e=>yH(lH(Ace(e)))},{block:uu,fields:[{key:"label",label:"Pick"},{key:"mark",label:"Remove mark"}],seed:Lce},{block:"ContactRouting",slots:[{slot:md,label:"Topic card",fields:kH},{slot:ud,label:"Reason chip",fields:zce},{slot:ul,label:"Channel row",fields:SH},{slot:hs,label:aH,fields:[]}],fields:[...kH,...SH],seed:Wce},{block:"Form",slots:[{slot:hs,label:aH,fields:[]}],fields:[]},{block:Mj,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:zj},...[EH,PH].map(e=>({block:e,slots:Yce,fields:jce,seed:t=>qce(e,t)})),{block:"Events",...pMe},{block:"Collections",...gMe},{block:"GalleryB",..._Me},{block:"FitmentTable",fields:[...RH,...CH],slots:[{slot:Eu,label:rpe,fields:RH},{slot:t5,label:npe,fields:CH}]}];eq(OMe);function IH(e,t){return e!=null&&O0(t)==="px"?e:null}var Tpe="Flex",Epe=10;function Ppe(e,t,o,{logoHeightPx:n}={}){let r=lw(e.util_style),a={...e.menu?{id:e.menu}:{},...e.menu_handle?{handle:e.menu_handle}:{},...e.menu_name?{name:e.menu_name}:{},items:(e.menu_items??[]).map(({label:E,url:T,dropdown_items:C,dropdown_aside:P})=>{let B=C?.length?Bi(P):null;return{label:E,url:T,...C?.length?{dropdown_items:C.map(aw)}:{},...B?{dropdown_aside:B}:{}}})},i=e.search_enabled?t("SearchBlock",{style:r}):null,s=e.search_position==="left",l=[s?i:null,e.country_selector_enabled?t("CountrySwitchBlock",{showAs:hc(e.country_selector_show_as)}):null,t("ThemeSwitchBlock"),e.account_enabled!==!1?t("AccountBlock",{style:r}):null,e.cart_enabled!==!1?t("CartBlock",{style:r}):null,s?null:i].filter(E=>E!==null),d=t("LogoBlock",{...n?{heightPx:n}:{},...e.reverse_logo!=null?{reverse:e.reverse_logo?"auto":"off"}:{}}),c=E=>{let T=t(yr,{menu:a,direction:"row",...E}),C=N0(yr,T.props);return C===T.props?T:{...T,props:C}},p=Ip(e.menu_row)==="inline"?32:20,m=E=>t(Tpe,{direction:"row",justify:"end",align:"center",share:"content",wrap:"nowrap",phoneRow:3,gap:p,content:E}),f=Math.min(Math.max(e.menu_split??3,1),4),g=e.logo_position==="center"&&a.items.length>f,h=e.menu_position==="center"?"center":e.menu_position==="beside"?"left":"right",b=oc.default,w=!g&&h==="left"?IH(e.menu_gap_px,e.menu_gap_unit)??b:b,y=g?[c({linkAlign:"left",linkRange:{from:1,to:f}}),d,m([c({linkAlign:"right",linkRange:{from:f+1}}),...l])]:[d,c({linkAlign:h}),...l.length?[m(l)]:[]],x=t(Tpe,{direction:"row",justify:"between",align:"center",share:"content",wrap:"nowrap",phoneRow:3,sectionPaddingTop:Epe,sectionPaddingBottom:Epe,gap:w,content:y}),k=AJ(ss,o,[x]),v=D2(e.theme),S=Ip(e.menu_row);return{...k,props:{...k.props,sticky:e.sticky??"always",topTextColor:e.top_text_color??"auto",...e.height_px!=null?{heightPx:e.height_px}:{},...e.width==="full"?{[Kq.content]:"full"}:{},...v!==null?{sectionAccent:v}:{},...e.nav_text_case?{navTextCase:e.nav_text_case}:{},...S?{menuRow:S}:{}}}}function r5(e){let t=IH(e.logo_size_px,e.logo_size_unit);return t??(e.logo_size!=null&&AMe(e.logo_size)?lF[e.logo_size]:void 0)}function AMe(e){return Object.hasOwn(lF,e)}async function FH(e,t,o,n){let r=await Bh(e,t),a=r5(r);return Ppe(r,o,n,{logoHeightPx:a})}var Cpe={siteHeader:async({make:e,id:t,siteId:o,token:n})=>n?FH(n,o,e,t):null};import{parseOption as MMe}from"efficient-shell/format";import{Banner as zMe,Button as MH,Drawer as WMe,InputNumber as UMe,LoadingSpinner as GMe,MediaUploadField as $Me,ShowWhen as s5,Slider as KMe,Tabs as VMe,Text as zH,tabButtonId as YMe,tabPanelId as jMe}from"efficient-shell/ui";import{PictureTiles as LMe}from"efficient-shell/ui";import{FlagUsIcon as IMe,GlobeIcon as FMe}from"efficient-shell/icons/efficient";import{GlobeAltIcon as BMe}from"efficient-shell/icons/efficient-looks";import{Fragment as BH,jsx as Up,jsxs as a5}from"react/jsx-runtime";var _pe=Up("span",{className:"inline-flex shrink-0 border border-current/20",children:Up(IMe,{size:15})}),Rpe={name:"UNITED STATES",code_currency:a5(BH,{children:["US",Up("span",{className:"opacity-50",children:"\xB7"}),"USD"]}),globe_code:a5(BH,{children:[Up(FMe,{size:12,className:"shrink-0"}),"US"]}),currency:"USD",flag_code:a5(BH,{children:[_pe,"US"]}),flag:_pe,globe:Up(BMe,{size:15,strokeWidth:"1.6"})};function HMe({kind:e}){return e==="globe"?Up("span",{"aria-hidden":!0,className:"inline-flex h-6 items-center",children:Rpe.globe}):a5("span",{"aria-hidden":!0,className:"inline-flex h-6 items-center gap-1 whitespace-nowrap rounded-xs border border-current px-2 font-mono text-(length:--text-3xs) font-medium tracking-wider",children:[Rpe[e],Up("span",{className:"opacity-70",children:"\u25BE"})]})}function i5({value:e,onChange:t,choices:o=dw}){return Up(LMe,{label:u(vR),columns:2,className:"w-full",captions:!0,value:hc(e),onChange:t,options:o.map(n=>({value:n.value,label:u(n.label),picture:Up(HMe,{kind:n.value})}))})}import{SettingsDefaultReset as HH,SettingsField as Pn,SettingsSwitch as Tw}from"efficient-easel/panel";import{FieldSelect as WH}from"efficient-easel/fields";import{useEaselStrings as QMe}from"efficient-easel/strings";import{AccountIcon as e9e,AlignLeftIcon as t9e,AlignSeparateIcon as o9e,BorderAllIcon as n9e,CartIcon as r9e,CaseIcon as a9e,FullWidthIcon as i9e,GapIcon as s9e,GlobeIcon as l9e,GridIcon as d9e,HeightIcon as Npe,LayoutIcon as c9e,ListIcon as p9e,LogoIcon as m9e,MenuIcon as u9e,PhoneIcon as f9e,PlacementIcon as Ope,SearchIcon as h9e,SettingsIcon as g9e,StickyIcon as b9e,StylesIcon as Mpe,SwapIcon as w9e,TextColorIcon as x9e}from"efficient-easel/icons";import{Fragment as $h,jsx as ie,jsxs as vr}from"react/jsx-runtime";var qMe={field:"country_selector_enabled",is:!0},d1={not:{context:"placeholderMode",is:!0}},XMe={field:"menu_position",is:"beside"},ZMe={all:[{field:"logo_position",is:"center"},{not:{field:"menu_position",is:"center"}}]},JMe={all:[d1,ei("country_selector_enabled")]},UH="sf-header",Ape="sf-header-size-label",Lpe="sf-header-gap-label",Ipe="sf-header-height-label",Fpe=[{id:"logo",label:"Logo",icon:ie(m9e,{})},{id:"menu",label:"Menu",icon:ie(p9e,{}),showWhen:d1},{id:"tools",label:"Tools",icon:ie(g9e,{})},{id:"look",label:"Look",icon:ie(Mpe,{})}];function GH({tokenRef:e,siteId:t,onClose:o,onAuthExpired:n,inline:r,placeholderMode:a,websiteName:i,onOpenWebsiteSettings:s}){let l=Dpe(),d=QMe(),[c,p]=Gp(null),[m,f]=Gp(null),[g,h]=Gp(!1),[b,w]=Gp(Fpe[0].id),y=c,x={placeholderMode:a},k=Object.values(kF(Object.fromEntries(Fpe.map(L=>[L.id,L])),y,x)),v=k.find(L=>L.id===b)??k[0],S="regions"in kF({regions:{showWhen:JMe}},y,x),[E,T]=Gp(0),{setSettings:C}=zn(),P=l1(null),B=l1(null),M=l1(null);Ew(()=>{let L=!1,O=null,G=null,Q=3,$=(de,ge=0)=>{L||f(null),Bh(de,t,ge>0).then(Qe=>{L||(I.current=Qe,p(Qe))}).catch(()=>{L||(ge+1<Q?G=setTimeout(()=>$(de,ge+1),600*(ge+1)):f(u("Could not load header settings.")))})},oe=e.current;if(oe)$(oe);else{let de=0;O=setInterval(()=>{let ge=e.current;if(ge){O&&clearInterval(O),O=null,L||f(null),$(ge);return}de+=250,de===5e3&&!L&&f(u("Waiting for editor authorization\u2026")),de>=3e4&&(O&&clearInterval(O),O=null,L||f(u("Not authorized yet \u2014 reopen once the editor has loaded.")))},250)}return()=>{L=!0,O&&clearInterval(O),G&&clearTimeout(G)}},[e,E,t]),Ew(()=>{c&&C(R2(c))},[c,C]),Ew(()=>()=>{P.current&&clearTimeout(P.current),B.current&&clearTimeout(B.current),M.current&&clearTimeout(M.current)},[]);let I=l1(null),A=xc(async(L,O)=>{let G=e.current;if(!G||!c)return;let Q=c;O&&p({...c,...O}),h(!0),f(null);try{let $=await L(G);I.current=$,p($),mle($,t),pb()}catch($){p(Q),$ instanceof or&&$.status===401?(ule(t),n?.(),f(u("Authorization expired \u2014 try again in a moment."))):f(u("Could not save. Please retry."))}finally{h(!1)}},[c,e,n,t]),_=xc(L=>A(O=>Ne.updateHeaderSettings(L,O,t??void 0),L),[A,t]),F=xc(L=>{A(O=>Ne.setHeaderLogoFromAsset(L,O,t??void 0))},[A,t]),K=xc(()=>{DMe(l,{accept:"image/svg+xml",title:u("Logo (SVG)")}).then(L=>{L&&F(L.id)})},[F]),V=xc((L,O=!0)=>{let G=Bpe("logo_size_unit",I.current?.logo_size_unit);p($=>$&&{...$,logo_size_px:L,...G}),P.current&&clearTimeout(P.current);let Q=()=>{A($=>Ne.updateHeaderSettings({logo_size_px:L,...G},$,t??void 0))};O?Q():P.current=setTimeout(Q,400)},[A,t]),Z=xc((L,O=!0)=>{p(Q=>Q&&{...Q,height_px:L}),B.current&&clearTimeout(B.current);let G=()=>{A(Q=>Ne.updateHeaderSettings({height_px:L},Q,t??void 0))};O?G():B.current=setTimeout(G,400)},[A,t]),Y=xc((L,O=!0)=>{let G=Bpe("menu_gap_unit",I.current?.menu_gap_unit);p($=>$&&{...$,menu_gap_px:L,...G}),M.current&&clearTimeout(M.current);let Q=()=>{A($=>Ne.updateHeaderSettings({menu_gap_px:L,...G},$,t??void 0))};O?Q():M.current=setTimeout(Q,400)},[A,t]),z=xc(()=>{A(async L=>{let O=await Ne.clearHeaderLogo(L,t??void 0);return O.reverse_logo?Ne.updateHeaderSettings({reverse_logo:!1},L,t??void 0):O})},[A,t]),q=xc(L=>{p(O=>O&&{...O,menu:L?.id??null,menu_handle:L?.handle??null,menu_name:L?.name??null,menu_items:L?L.items.map(G=>({label:G.label,url:G.url,dropdown_menu:G.dropdown_menu??null,dropdown_items:G.dropdown_items??[],dropdown_aside:G.dropdown_aside??null})):[]}),A(O=>Ne.updateHeaderSettings({menu:L?.id??null},O,t??void 0))},[A,t]),X=vr($h,{children:[m&&ie(zMe,{tone:"danger",className:"mx-4 mt-3",action:c?void 0:ie(MH,{variant:"secondary",size:"md",onClick:()=>T(L=>L+1),children:u("Retry")}),children:m}),c?vr($h,{children:[ie(C9e,{tabs:k,activeId:v.id,onSelect:w}),vr("div",{id:jMe(UH,v.id),role:"tabpanel","aria-labelledby":YMe(UH,v.id),className:"es-insp-body flex flex-col py-4 [&>*+*]:mt-3",children:[v.id==="logo"&&vr($h,{children:[vr(fl,{label:"Image",children:[ie(s5,{rule:d1,values:y,context:x,children:ie(y9e,{settings:c,websiteName:i,onPick:K,onClear:z})}),ie(Pn,{label:u("Reverse the Logo"),icon:ie(w9e,{}),hint:u("Keeps the logo readable on any header \u2014 flips just its black & white parts to contrast the bar behind it (in both light and dark themes). Any other colors are kept as-is."),action:ie(Tw,{checked:c.reverse_logo,onChange:L=>_({reverse_logo:L}),ariaLabel:u("Reverse the Logo")})})]}),vr(fl,{label:"Placement",children:[ie(Pn,{label:u("Position"),icon:ie(Ope,{}),value:(()=>{let L=io.logoPosition.options.find(O=>O.value===io.logoPosition.choose(c.logo_position))?.label;return L?u(L):void 0})(),children:ie(kp,{value:io.logoPosition.choose(c.logo_position),options:io.logoPosition.options,onChange:L=>_({logo_position:L}),ariaLabel:io.logoPosition.label})}),ie(Pn,{label:u("Size"),icon:ie(Npe,{}),labelId:Ape,value:c.logo_size_px!=null?Us(c.logo_size_px,c.logo_size_unit):`${r5(c)??Z0.min}px`,changed:c.logo_size_px!=null,action:ie(HH,{label:u("Size"),words:d.panel,changed:c.logo_size_px!=null,onReset:()=>V(null)}),hint:u("Sets the logo\u2019s height; the width follows the logo\u2019s own proportions."),children:ie(DH,{labelledBy:Ape,min:Z0.min,max:Z0.max,step:Z0.step,value:r5(c)??Z0.min,onCommit:L=>V(L,!0),onPreview:L=>V(L,!1)})})]})]}),v.id==="menu"&&ie($h,{children:vr(fl,{label:"Links",children:[ie(v9e,{token:e.current,menuId:c.menu,menuName:c.menu_name,itemCount:c.menu_items?.length??0,onPick:q}),ie(Pn,{label:u(io.menuAlign.label),icon:ie(t9e,{}),children:ie(kp,{value:io.menuAlign.choose(c.menu_position),options:io.menuAlign.options.filter(L=>L.value!=="beside"||c.logo_position!=="center"),onChange:L=>_({menu_position:L}),ariaLabel:io.menuAlign.label})}),ie(s5,{rule:XMe,values:y,children:ie(Pn,{label:u("Space from the logo"),icon:ie(s9e,{}),labelId:Lpe,value:c.menu_gap_px!=null?Us(c.menu_gap_px,c.menu_gap_unit):`${oc.default}px`,changed:c.menu_gap_px!=null,action:ie(HH,{label:u("Space from the logo"),words:d.panel,changed:c.menu_gap_px!=null,onReset:()=>Y(null)}),hint:u("How much room the menu leaves the logo. Only the logo moves away; the space between the menu words stays as it is."),children:ie(DH,{labelledBy:Lpe,min:oc.min,max:oc.max,step:oc.step,value:c.menu_gap_px??oc.default,onCommit:L=>Y(L,!0),onPreview:L=>Y(L,!1)})})}),ie(Pn,{label:u(io.menuRow.label),icon:ie(c9e,{}),children:ie(kp,{value:io.menuRow.choose(c.menu_row),options:io.menuRow.options,onChange:L=>_({menu_row:L}),ariaLabel:io.menuRow.label})}),ie(s5,{rule:ZMe,values:y,children:ie(Pn,{label:u("Left items"),icon:ie(o9e,{}),children:ie("div",{className:"w-16",children:ie(WH,{value:c.menu_split??3,ariaLabel:u("Left items"),onChange:L=>_({menu_split:L}),options:[1,2,3,4].map(L=>({label:String(L),value:L}))})})})}),ie(Pn,{label:u(io.navTextCase.label),icon:ie(a9e,{}),hint:Hi(u("{uppercase} draws SEARCH and BAG; {capitalised} draws Search and Bag. It covers the menu links and the Tools words together, and it leaves a name like FusionForge exactly as you typed it."),{uppercase:ie("strong",{children:u("Uppercase")}),capitalised:ie("strong",{children:u("Capitalised")})}),children:ie(kp,{value:io.navTextCase.choose(c.nav_text_case),options:io.navTextCase.options,onChange:L=>_({nav_text_case:L}),ariaLabel:io.navTextCase.label})})]})}),v.id==="tools"&&vr($h,{children:[ie(fl,{label:"Style",children:ie(Pn,{label:u(io.utilStyle.label),icon:ie(Mpe,{}),hint:Hi(u("{text} draws the words \u2014 Search, Account, Bag \u2014 instead of the little pictures. It changes how they look, not whether they are shown: that stays with the switches below."),{text:ie("strong",{children:u("Text")})}),children:ie(kp,{value:io.utilStyle.choose(c.util_style),options:io.utilStyle.options,onChange:L=>_({util_style:L}),ariaLabel:io.utilStyle.label})})}),vr(fl,{label:"Search",children:[ie(Pn,{label:u("Search"),icon:ie(h9e,{}),action:ie(Tw,{checked:c.search_enabled,onChange:L=>_({search_enabled:L}),ariaLabel:u("Search")})}),ie(Pn,{label:u(io.searchPosition.label),icon:ie(Ope,{}),children:ie(kp,{value:io.searchPosition.choose(c.search_position),options:io.searchPosition.options,onChange:L=>_({search_position:L}),ariaLabel:io.searchPosition.label})})]}),vr(fl,{label:"Country selector",children:[ie(Pn,{label:u("Show selector"),icon:ie(l9e,{}),action:ie(Tw,{checked:c.country_selector_enabled,onChange:L=>_({country_selector_enabled:L}),ariaLabel:u("Show selector")})}),ie(s5,{rule:qMe,values:{country_selector_enabled:c.country_selector_enabled},children:ie(Pn,{label:u("Show as"),icon:ie(d9e,{}),hint:S?Hi(u("Which countries this website serves \u2014 and each region's own URL \u2014 is set in the admin console under {place}. Whether the picker is SHOWN stays here: that is header chrome, but the served-country list has tax consequences and belongs with commerce configuration."),{place:ie("strong",{children:u("Storefront \u203A Settings \u203A Regions & currencies")})}):void 0,children:ie(i5,{value:c.country_selector_show_as,choices:xde,onChange:L=>L!=="globe"&&_({country_selector_show_as:L})})})})]}),vr(fl,{label:"Account and cart",children:[ie(Pn,{label:u("Account"),icon:ie(e9e,{}),action:ie(Tw,{checked:c.account_enabled??!0,onChange:L=>_({account_enabled:L}),ariaLabel:u("Account")})}),ie(Pn,{label:u("Cart"),icon:ie(r9e,{}),action:ie(Tw,{checked:c.cart_enabled??!0,onChange:L=>_({cart_enabled:L}),ariaLabel:u("Cart")})})]}),ie(fl,{label:"Call",children:ie(Pn,{label:u("Call button"),icon:ie(f9e,{}),hint:u("Calls the phone of the location this website shows, as its Set-up keeps it. With no phone there, the button is not shown."),action:ie(Tw,{checked:c.call_button??!1,onChange:L=>_({call_button:L}),ariaLabel:u("Call button")})})})]}),v.id==="look"&&vr($h,{children:[vr(fl,{label:"Dimensions",children:[ie(Pn,{label:u(io.width.label),icon:ie(i9e,{}),children:ie(kp,{value:io.width.choose(c.width),options:io.width.options,onChange:L=>_({width:L}),ariaLabel:io.width.label})}),ie(Pn,{label:u("Height"),icon:ie(Npe,{}),labelId:Ipe,value:`${c.height_px??ni.default}px`,changed:c.height_px!=null,action:ie(HH,{label:u("Height"),words:d.panel,changed:c.height_px!=null,onReset:()=>Z(null)}),hint:u("Sets how tall the header bar is; the content below it shifts down to match."),children:ie(DH,{labelledBy:Ipe,min:ni.min,max:ni.max,step:2,value:c.height_px??ni.default,onCommit:L=>Z(L,!0),onPreview:L=>Z(L,!1)})}),ie(Pn,{label:u("Border thickness"),icon:ie(n9e,{}),children:ie("div",{className:"w-24",children:ie(UMe,{value:c.border_thickness,min:0,max:20,precision:0,size:"md",suffix:"px","aria-label":u("Border thickness"),onChange:L=>_({border_thickness:Math.max(0,L??0)})})})})]}),vr(fl,{label:"Color",children:[ie(Vte,{value:c.theme??H2,onChange:L=>_({theme:L===H2?null:L}),followLabel:u("Follow the site theme"),hint:u("The color the bar paints once it is solid \u2014 after any scroll, and on every product page from the first paint. Follow the site theme keeps it on whatever palette the site is on.")}),ie(Pn,{label:u(io.topTextColor.label),icon:ie(x9e,{}),hint:u("Auto reads what the first section on each page says it is \u2014 dark, light or accent \u2014 and picks the text that can be read on it. Set Light or Dark to decide it yourself when Auto reads a page wrong."),children:ie(kp,{value:io.topTextColor.choose(c.top_text_color),options:io.topTextColor.options,onChange:L=>_({top_text_color:L}),ariaLabel:io.topTextColor.label})})]}),ie(fl,{label:"Behavior",children:ie(Pn,{label:u("Sticky header"),icon:ie(b9e,{}),children:ie("div",{className:"w-32",children:ie(WH,{value:c.sticky,ariaLabel:u("Sticky header"),onChange:L=>_({sticky:L}),options:[{label:u("None"),value:"none"},{label:u("Always"),value:"always"},{label:u("On scroll up"),value:"on_scroll_up"}]})})})}),s&&ie($h,{children:vr(fl,{label:"Display mode",children:[ie(zH,{as:"p",size:"xs",tone:"inherit",className:"text-[var(--ink-faint)]",children:u("Set the default Light / Dark / Auto mode and show or hide the light\u2194dark switch in Appearance.")}),ie(MH,{variant:"link",size:"sm",className:"self-start",onClick:s,children:u("Set up display mode \u2192")})]})})]})]})]}):m?null:ie(GMe,{size:"sm",padding:"p-4",label:u("Loading\u2026")})]});return r?vr("div",{className:"flex flex-col",children:[g&&ie("div",{className:"px-4 pt-2 text-[11px] text-[var(--ink-faintest)]",children:u("Saving\u2026")}),X]}):vr(WMe,{open:!0,onClose:o??(()=>{}),title:u("Header"),children:[g&&ie("div",{className:"pb-2 text-[11px] text-[var(--ink-faintest)]",children:u("Saving\u2026")}),X]})}function y9e({settings:e,websiteName:t,onPick:o,onClear:n}){let r=!!e.logo_url,a=!r&&!!e.default_logo_url,i=tc(e.effective_logo_url),s=t&&t.trim()?t.trim():tu;return vr("div",{children:[ie($Me,{value:i||"",onChange:l=>{l||n()},onPick:o,accept:"image/svg+xml,.svg",acceptHint:"SVG",fit:"contain",height:80,placeholder:u("No logo \u2014 \u201C{name}\u201D wordmark shown",{name:s}),replaceLabel:r?u("Replace SVG logo"):u("Upload SVG logo"),allowRemove:r,removeLabel:u("Use company default")}),ie(k9e,{children:r?u("Custom SVG logo uploaded for this store."):a?u("Using your company logo from the database."):u("No company logo on file \u2014 upload an SVG or the wordmark is used.")})]})}function v9e({token:e,menuId:t,menuName:o,itemCount:n,onPick:r}){let a=Dpe(),[i,s]=Gp(null),[l,d]=Gp(!1),[c,p]=Gp(!1),[m,f]=Gp(0),g=xc(k=>{s(k),d(!0),p(!1)},[]);Ew(()=>{let k=!1;return ble(e,m>0).then(v=>!k&&g(v)).catch(()=>{k||(s([]),p(!0))}),()=>{k=!0}},[e,g,m]),Ew(()=>{let k=!1,v=lu(()=>{wle(e).then(S=>!k&&g(S)).catch(()=>{})});return()=>{k=!0,v()}},[e,g]);let h=i===null,b=!h&&!c&&(i?.length??0)===0,w=!h&&(i??[]).some(k=>k.id===t),y=w?t:"",x=l&&!!t&&!w;return vr("div",{className:"flex flex-col gap-2",children:[ie(Pn,{label:u("Menu"),icon:ie(u9e,{}),children:ie("div",{className:"w-[170px] max-w-full",children:ie(WH,{value:y,ariaLabel:u("Menu"),readOnly:h||b||c,onChange:k=>{let v=k?(i??[]).find(S=>S.id===k):null;r(v?{...v,items:v.items.map(S=>{let E=(i??[]).find(T=>T.id===S.dropdown_menu);return{...S,dropdown_items:E?.items.map(aw)??[],dropdown_aside:Bi(E?.aside)}})}:null)},options:[{label:h?u("Loading\u2026"):c?u("Couldn\u2019t load menus"):b?u("No menus"):u("Default links"),value:""},...(i??[]).map(k=>({label:`${k.name} (${k.item_count??k.items.length})`,value:k.id}))]})})}),c?ie(NB,{onRetry:()=>{s(null),p(!1),f(k=>k+1)}}):x?ie(zH,{as:"p",size:"xs",tone:"inherit",className:"text-[var(--warning-text)]",children:dde()}):ie(zH,{as:"p",size:"xs",tone:"inherit",className:"text-[var(--ink-faint)]",children:y?Qn("Header shows \u201C{name}\u201D \u2014 {n} link.","Header shows \u201C{name}\u201D \u2014 {n} links.",n,{name:o??u("the linked menu")}):b?u("No menus yet. Create one in {place}, then pick it here.",{place:u("Storefront \u2192 Menus")}):u("Pick a menu to drive the header links, or keep the built-in default links.")}),ie(MH,{variant:"link",size:"sm",className:"self-start",onClick:()=>a.send("storefront-editor:open-menus",{menuId:y||null}),children:y?u("Edit menu \u2192"):u("Manage menus \u2192")})]})}function k9e({children:e}){return ie("p",{className:"es-field-hint",children:e})}function Bpe(e,t){return O0(t)==="px"?{}:{[e]:null}}function DH({labelledBy:e,value:t,min:o,max:n,step:r,onPreview:a,onCommit:i}){let s=`${e}-range`,l=l1(i);return l.current=i,Ew(()=>{let d=document.getElementById(s);if(!(d instanceof HTMLInputElement))return;let c=()=>l.current?.(Number(d.value)),p=m=>{/^(Arrow|Home|End|Page)/.test(m.key)&&c()};return d.addEventListener("pointerup",c),d.addEventListener("keyup",p),()=>{d.removeEventListener("pointerup",c),d.removeEventListener("keyup",p)}},[s]),ie(KMe,{id:s,value:t,min:o,max:n,step:r,showInput:!1,size:"sm",className:"sf-slider","aria-labelledby":e,valueText:d=>u("{n} pixels",{n:d}),onChange:d=>{d!=null&&a(d)}})}function fl({label:e,children:t}){return ie(XC,{title:u(e),children:ie("div",{className:"flex flex-col gap-3",children:t})})}var S9e=[{label:"Left",value:"left"},{label:"Center",value:"center"}],T9e=[{label:"Left",value:"left"},{label:"Right",value:"right"}],Hpe=[{label:"Right",value:"left"},{label:"Centered",value:"center"},{label:"Beside logo",value:"beside"}],E9e=Uq.map(e=>({label:Gq[e],value:e})),P9e=[{label:"Auto",value:"auto"},{label:"Light",value:"light"},{label:"Dark",value:"dark"}],io={logoPosition:{label:"Position",options:S9e,choose:e=>e==="right"?"center":e},menuAlign:{label:"Alignment",options:Hpe,choose:e=>MMe(Hpe,"left",e)},menuRow:{label:"Row",options:bR,choose:e=>Ip(e)??wR},searchPosition:{label:"Position",options:T9e,choose:e=>e},width:{label:"Width",options:E9e,choose:e=>e},navTextCase:{label:"Letters",options:F2,choose:e=>sw(e)},utilStyle:{label:"Show as",options:B2,choose:e=>lw(e)},topTextColor:{label:"Text color at the top",options:P9e,choose:e=>_b(e)}};function C9e({tabs:e,activeId:t,onSelect:o}){return ie("div",{className:"es-insp-tabs",children:ie(VMe,{variant:"underline",block:!0,labelsFit:!0,"aria-label":u("Header settings"),idPrefix:UH,value:t,onChange:o,items:e.map(n=>({id:n.id,icon:n.icon,label:u(n.label)}))})})}import{useState as $H}from"react";import{Banner as _9e,Button as KH}from"efficient-shell/ui";import{createNode as R9e,newId as N9e}from"efficient-easel/data";import{useEasel as O9e}from"efficient-easel/easel";import{useScreenDocument as A9e}from"efficient-easel/screen/components/ScreenDocumentContext";import{Fragment as L9e,jsx as l5,jsxs as I9e}from"react/jsx-runtime";function VH(){let{appState:e,dispatch:t,config:o}=O9e(h=>h),{readOnly:n,tokenRef:r,siteId:a}=A9e(),[i,s]=$H(!1),[l,d]=$H(!1),[c,p]=$H(!1),m=e.data.content;if(n||m.some(h=>h.type===ss))return null;let f=(h,b)=>R9e(o,h,b),g=async()=>{let h=r.current;if(!(!h||l)){d(!0),p(!1);try{let b=await FH(h,a,f,N9e(ss));t({type:"setData",data:w=>({...w,content:[...LJ(w.content,b)]}),recordHistory:!0}),s(!1)}catch{p(!0)}finally{d(!1)}}};return l5(_9e,{tone:c?"danger":"info",title:u("This header uses the old layout"),action:i?I9e(L9e,{children:[l5(KH,{variant:"primary",size:"sm",onClick:g,disabled:l,children:l?u("Switching\u2026"):u("Switch now")}),l5(KH,{variant:"secondary",size:"sm",onClick:()=>s(!1),disabled:l,children:u("Cancel")})]}):l5(KH,{variant:"secondary",size:"sm",onClick:()=>s(!0),children:u("Switch to Box header")}),children:c?u("The header settings could not be read. Try again."):u("Build it out of Boxes and blocks: the logo, menu, search, region and cart become blocks you can move. Your current header is kept.")})}import{Fragment as B9e,jsx as d5,jsxs as H9e}from"react/jsx-runtime";function YH({placeholderMode:e,tokenRef:t,siteId:o,websiteName:n,onOpenWebsiteSettings:r,onAuthExpired:a}){return H9e(B9e,{children:[d5(F9e,{rule:d1,values:null,context:{placeholderMode:e},children:d5("div",{className:"px-4 pt-3 pb-1",children:d5(VH,{})})}),d5(GH,{inline:!0,placeholderMode:e,tokenRef:t,siteId:o,websiteName:n??void 0,onOpenWebsiteSettings:r,onAuthExpired:a})]})}import{useEffect as M9e,useState as z9e}from"react";import{currentEaselSession as D9e}from"efficient-easel/screen/lib/session";function Pw({fetch:e,keyBy:t}){let o=null,n=null,r=null;return(a=!1)=>{let i=la(),s=t?t():null;return(a||!o||n===null&&i!==null||r!==s)&&(n=i,r=s,o=i||!D9e().usesBridgedToken?e(i??"",s).catch(()=>[]):Promise.resolve([])),o}}var yc=Pw({fetch:(e,t)=>Ne.listProducts(e,{siteId:t,kinds:["alloy-wheel","tyre"]}),keyBy:Sn}),Wn=(e=!1)=>yc(e).then(t=>t.filter(o=>o.kind==="alloy-wheel"));function zpe(e,t=!0){let[o,n]=z9e(null);return M9e(()=>{if(!t)return;let r=!1;return e().then(a=>{r||n(a)}),()=>{r=!0}},[e,t]),t?o:null}function Cw(){return zpe(Wn)}function c5(e=!0){return zpe(yc,e)}var Upe={list:async()=>(await Wn()).map(e=>({slug:e.slug,name:e.name,href:RC(e.slug)}))},Wpe=new Map;function W9e(e){let t=e??"",o=la(),n=Wpe.get(t);if(n&&!(n.token===null&&o!==null))return n.promise;let r=o&&e?Ne.listFieldUsage(o,e).then(_se).catch(()=>[]):Promise.resolve([]);return Wpe.set(t,{promise:r,token:o}),r}var Gpe={load:async e=>{let[t,o]=await Promise.all([yc().catch(()=>[]),W9e(e??void 0)]);return Rse({catalogue:t,fieldUsage:o,offersCommerce:!0})}};var jH=[{key:"cart",label:"Cart",href:"/?cart=open"},{key:"checkout",label:"Checkout",href:"/checkout"}],U9e=Object.fromEntries(jH.map(e=>[e.key,e]));function $pe(e){return U9e[e]}import{jsx as c1,jsxs as Kpe}from"react/jsx-runtime";var G9e={cart:Kpe("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c1("circle",{cx:"9",cy:"20",r:"1.4"}),c1("circle",{cx:"18",cy:"20",r:"1.4"}),c1("path",{d:"M2 3h2.2l2.1 12.3a1.6 1.6 0 0 0 1.6 1.3h8.6a1.6 1.6 0 0 0 1.6-1.2L21.5 7H5.3"})]}),checkout:Kpe("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c1("rect",{x:"2.5",y:"5",width:"19",height:"14",rx:"2"}),c1("path",{d:"M2.5 9.5h19"})]})},Vpe={get title(){return u("Shop")},get rows(){return jH.map(e=>({...e,label:u(e.label),icon:G9e[e.key]}))}};import{createEaselSession as sTt}from"efficient-easel/screen/lib/session";import{group as Q7e}from"efficient-easel/screen/lib/document/box-fields";import{jsx as Ru}from"react/jsx-runtime";import{jsx as Pu,Fragment as $9e,jsxs as K9e}from"react/jsx-runtime";import{useEasel as Ype}from"efficient-easel/easel";import{zoneKey as V9e}from"efficient-easel/data";import{LayersIcon as Y9e}from"efficient-easel/icons";import{SettingsDrill as j9e,SettingsField as q9e}from"efficient-easel/panel";import X9e from"efficient-easel/screen/components/AddChildRow";import{useSlotChildActions as Z9e}from"efficient-easel/screen/components/SlotChildActionsContext";function J9e({parent:e,parentType:t,label:o,rowName:n,onSelectChild:r,onAddChild:a,nestDepth:i=0}){let s=u2(t,i);if(!s)return null;let{slot:l,choices:d,spec:c}=s,p=String(e.props.id),m=V9e({parentId:p,slot:l}),f=Array.isArray(e.props[l])?e.props[l]:[],g=c?.addBlocked?.(f)??null,h=c?.notice?.(f)??null,b=K9e($9e,{children:[h?Pu("p",{className:"sf-note",children:h}):null,f.map((w,y)=>Pu(j9e,{name:n(w),onOpen:()=>r(m,y,String(w.props.id),t)},String(w.props.id??`${m}-${y}`))),d||c.fixed?null:Pu(X9e,{label:c.addLabel,blocked:g,onAdd:()=>a(p,l,c.childType,f.length,t)})]});return Pu("div",{className:"sf-slot-rows",children:o?Pu(q9e,{label:u(o),icon:Pu(Y9e,{}),value:String(f.length),children:b}):b})}function Q9e(e,t){return u2(e)?.spec?.notice?.(t)??null}function jpe({parentType:e}){let{selectedItem:t}=Ype(a=>a);if(!t||t.type!==e)return null;let o=u2(e)?.slot,n=o&&Array.isArray(t.props[o])?t.props[o]:[],r=Q9e(e,n);return r?Pu("p",{className:"sf-note",children:r}):null}function e7e(e,t){return u2(t)?.source==="footer"?e.blockRowName:e.childRowName}function qpe({parentType:e,label:t}){let{appState:o,selectedItem:n}=Ype(i=>i),r=Z9e();if(!r||!n||n.type!==e)return null;let a=e===Qq?QE(o?.data,String(n.props.id)):0;return Pu(J9e,{parent:n,parentType:e,label:t,rowName:e7e(r,e),onSelectChild:r.selectChild,onAddChild:r.addChild,nestDepth:a})}import{BlackAndWhiteIcon as V7e,ContrastIcon as Y7e,HeightIcon as j7e,TypeIcon as q7e}from"efficient-easel/icons";import{deviceField as X7e}from"efficient-easel/screen/lib/document/device-fields";var t7e=["eyebrow","heading","title","body","intro","button","link","label","number","value","name","price","date","caption","note","quote","tag","meta"],o7e=new Set(t7e);function Xpe(e){let t=e.toLowerCase().split(/[^a-z]+/).filter(Boolean);for(let o=t.length-1;o>=0;o-=1)if(o7e.has(t[o]))return t[o];return null}import{jsx as Wo,jsxs as m7e,Fragment as u7e}from"react/jsx-runtime";import{HeightIcon as f7e,ImageIcon as h7e,ImagesIcon as g7e,OpacityIcon as b7e,MediaLayoutSideBySideIcon as w7e,MediaLayoutStackedIcon as x7e,GapIcon as y7e,PaddingBottomIcon as ZH,PaddingTopIcon as JH,PlacementIcon as lme,PlayIcon as v7e,UploadIcon as k7e}from"efficient-easel/icons";import{useEasel as S7e,useSelectedHost as T7e}from"efficient-easel/easel";import{SettingsDefaultReset as E7e,SettingsField as P7e,SettingsSegmented as C7e}from"efficient-easel/panel";import{describedAs as _7e,FLAT_ACCESS as R7e,iconOf as N7e,onDesktopWords as O7e,phoneTwinFields as QH,useAccessPatch as A7e}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as XH}from"efficient-easel/screen/lib/document/style-fields";import{deviceField as Kh}from"efficient-easel/screen/lib/document/device-fields";import{jsx as hl,jsxs as qH,Fragment as n7e}from"react/jsx-runtime";import{createElement as p1,Fragment as r7e}from"react";import{IconPicker as a7e,InputNumber as i7e}from"efficient-shell/ui";import{SettingsField as s7e}from"efficient-easel/panel";var Qo=28,ma=1.5,p5=[3,2];function l7e(e){return Am(e)?Vs:e}function Jpe(e,t){return e===Vs?X4(p5[0],p5[1],t):e}var Zpe={min:.01,max:9999,step:1};function Qpe({value:e,follows:t,column:o,onChange:n,disabled:r}){let a=q4(e),i=a??q4(t)??p5,s=(d,c)=>{let p=c===null?0:Math.min(Zpe.max,Math.round(c*100)/100);if(!(p>0))return;let m=[i[0],i[1]];m[d]=p,n(X4(m[0],m[1],o))},l=(d,c)=>p1(i7e,{value:a?a[d]:null,...a?{}:{placeholder:String(i[d])},onChange:p=>s(d,p),...Zpe,prefix:u(c),disabled:r});return p1(s7e,{label:u("Custom W:H")},p1("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0}},l(0,"W"),l(1,"H")))}function d7e({ratio:e}){let[t,o]=e??[1,1],n=(Qo-ma*2)/Math.max(t,o),r=t*n,a=o*n;return hl("svg",{width:Qo,height:Qo,viewBox:`0 0 ${Qo} ${Qo}`,"aria-hidden":"true",children:hl("rect",{x:(Qo-r)/2,y:(Qo-a)/2,width:r,height:a,rx:2,fill:"none",stroke:"currentColor",strokeWidth:ma,strokeDasharray:e?void 0:"3 2"})})}function c7e(){let e=ma*2;return qH("svg",{width:Qo,height:Qo,viewBox:`0 0 ${Qo} ${Qo}`,"aria-hidden":"true",children:[hl("line",{x1:ma,y1:ma/2,x2:Qo-ma,y2:ma/2,stroke:"currentColor",strokeWidth:ma}),hl("line",{x1:ma,y1:Qo-ma/2,x2:Qo-ma,y2:Qo-ma/2,stroke:"currentColor",strokeWidth:ma}),hl("rect",{x:Qo/4,y:e,width:Qo/2,height:Qo-e*2,rx:2,fill:"none",stroke:"currentColor",strokeWidth:ma})]})}function eme(e){return{...e,picture:hl(c7e,{})}}var tme={width:"5.25rem",height:"3.5rem",words:!0},ome=3;function nme(e,t){return e.map(o=>({value:o[t],label:o.label,picture:o.shape===Vs?hl(p7e,{}):hl(d7e,{ratio:o.ratio})}))}function p7e(){let[e,t]=p5,o=(Qo-ma*2)/Math.max(e,t),n=e*o,r=t*o,a=(Qo-n)/2,i=(Qo-r)/2;return qH("svg",{width:Qo,height:Qo,viewBox:`0 0 ${Qo} ${Qo}`,"aria-hidden":"true",children:[hl("rect",{x:a,y:i,width:n,height:r,rx:2,fill:"none",stroke:"currentColor",strokeWidth:ma,strokeDasharray:"3 2"}),hl("path",{d:`M${a+4} ${i+r-4} L${a+n-4} ${i+4}`,stroke:"currentColor",strokeWidth:ma})]})}function rme({label:e,lines:t,column:o,value:n,onChange:r,disabled:a}){let i=hl(a7e,{label:u(e),value:l7e(n),options:Tte(nme(t,o)),onChange:s=>r(Jpe(s,o)),columns:ome,cell:tme,tooltips:!1,disabled:a});return Am(n)?qH(n7e,{children:[i,hl(Qpe,{value:n,column:o,onChange:r,disabled:a})]}):i}function _w(e,t,o,n,r,a={}){let i=[...nme(o,n),...a.more??[]],s=c=>i.some(p=>p.value===c),l=c=>Am(c)?Vs:c!==Vs&&s(c)?c:void 0,d=wo(e,t,i,r,{columns:ome,cell:tme,phoneRest:a.phoneRest,resolve:l});return{...d,render:c=>{let p=w=>c.onChange(w===void 0?w:Jpe(w,n)),m=d.render({...c,onChange:p}),f=c.value,g=f==null||f==="",h=c.field?.currentValue,b="follows"in c?c.follows:h;return!Am(f)&&!(g&&Am(b))?m:p1(r7e,null,m,p1(Qpe,{value:f,follows:b,column:n,onChange:c.onChange,disabled:c.readOnly===!0}))}}}function L7e(){return eP.filter(e=>e.ratio!==null||e.shape===Vs)}var e8={desktop:{number:"heightDesktop",fixed:"heightFixed"},tablet:{number:"heightTablet",fixed:"heightFixedTablet"},mobile:{number:"heightMobile",fixed:"heightFixedMobile"}},ame={read:e=>e.heightMobile,write:(e,t,o)=>({heightMobile:o}),fieldKey:()=>"heightMobile",ownField:!0,tablet:{read:e=>e.heightTablet,write:(e,t,o)=>({heightTablet:o}),fieldKey:()=>"heightTablet",ownField:!0}};function ime(e,{number:t,fixed:o}){let n=t===void 0?void 0:e[t];return HQ(e[o])??(typeof n=="number"?{unit:"vh",vh:n}:null)}var I7e="On Tablet, this hero uses the Desktop vh. Set vh in the Desktop view.";function F7e({view:e,keys:t,props:o}){let n=T7e(),r=A7e(R7e),{number:a}=t,i={...n?.values??{},...a?{[a]:o.value}:{}},s=ime(i,t),l=e==="tablet"?ime(i,e8.desktop):null,d=s??l??{unit:"vh",vh:Oa.fallback},c=o.readOnly===!0,p=L7e(),m=w=>{if(w===d.unit)return;if(w!=="vh"){r([[t.fixed,l?.unit===w?l.value:BQ[w]]]);return}let y=a!==void 0&&typeof i[a]!="number"&&l!==null&&l.unit!=="vh";r([[t.fixed,void 0],...y?[[a,Oa.fallback]]:[]])},f=s===null&&e!=="desktop",g=a===void 0,h=g&&l!==null&&l.unit!=="vh",b=l===null?`${Oa.fallback} ${Oa.unit}`:l.unit==="vh"?`${l.vh} ${Oa.unit}`:l.unit==="px"?l.value:p.find(w=>w.image===l.value)?.label??l.value;return Wo(P7e,{label:u("Height"),icon:N7e(Wo(f7e,{})),hint:g&&(d.unit==="vh"||h)?u(I7e):void 0,action:e==="desktop"?void 0:Wo(E7e,{words:$E()?.panel,label:u("Height"),changed:s!==null||!!i[t.fixed],detail:e==="tablet"?O7e(ib,b):b,disabled:c,onReset:()=>r([...a?[[a,void 0]]:[],[t.fixed,void 0]])}),children:m7e("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-8)",flex:"1 1 auto",minWidth:0},children:[Wo(C7e,{options:[{id:"vh",label:u("vh"),disabled:h},{id:"ratio",label:u("Ratio")},{id:"px",label:u("px")}],value:d.unit,onChange:m,ariaLabel:u("Unit"),disabled:c}),d.unit==="ratio"?Wo(rme,{label:"Height",lines:p,column:"image",value:d.value,disabled:c,onChange:w=>r([[t.fixed,w]])}):d.unit==="px"?e6({...QP,value:f?null:d.px,...f?{placeholder:d.px}:{},suffix:QP.unit,ariaLabel:"Height",disabled:c,onChange:w=>r([[t.fixed,`${w}${QP.unit}`]])}):e6({min:Oa.min,max:Oa.max,step:Oa.step,value:f?null:d.vh,...f?{placeholder:d.vh}:{},suffix:Oa.unit,ariaLabel:"Height",disabled:c||g,onChange:w=>o.onChange(w)})]})})}var m5=(e,t=e8[e])=>({type:"custom",..._7e({},{type:"number",label:"Height"}),render:o=>Wo(F7e,{view:e,keys:t,props:o})}),B7e={read:e=>e.heightFixedTablet,write:(e,t,o)=>({heightFixedTablet:o}),fieldKey:()=>"heightFixedTablet",ownField:!0};function u5({tabletNumber:e=!0}={}){let t=e?ame:{...ame,tablet:B7e},o=m5("tablet",e?void 0:{fixed:e8.tablet.fixed}),n=QH("heightDesktop",m5("desktop"),t,{phoneRow:o}),r=QH("heightDesktop",m5("desktop"),t,{phoneRow:m5("mobile")});return{heightDesktop:n.heightDesktop,...e?{heightTablet:n.heightTablet,heightFixedTablet:XH("heightTablet")}:{heightFixedTablet:n.heightFixedTablet},heightMobile:r.heightMobile,heightFixed:XH("heightDesktop"),heightFixedMobile:XH("heightMobile")}}var t8={overlayColor:ds("Overlay color",ls),overlayPosition:t6("Overlay position",OF,uh,"A corner would need a diagonal ramp, which this overlay does not draw.",Wo(lme,{}))},dme="Texture",cme=e=>t6("Overlay position",OF,e,"A corner would need a diagonal ramp, which this overlay does not draw.",Wo(lme,{}),void 0,dme);function H7e(){try{let{appState:e,selectedItem:t}=S7e(o=>o);return D7e(e,t?.props?.id)}catch{return}}function D7e(e,t){return fr(mC(e,t)?.props?.textureColor)}function M7e({value:e,onChange:t}){let[o]=ac("overlayPosition"),n=H7e(),r=fr(e)??"",a=AF({overlayColor:r,overlayPosition:o},n);return Wo(Mte,{label:u("Overlay color"),value:r,inherited:a.color,resetTo:u(dme),onChange:t,onReset:()=>t("")})}var z7e=cme(uh),W7e=cme("");function U7e(e){let[t]=ac("overlayColor"),o=AF({overlayColor:t,overlayPosition:e.value}).own?z7e:W7e;return Wo(u7e,{children:o.render(e)})}function G7e(e){if(!Array.isArray(e))return;let t=e.flatMap((o,n)=>fr(o?.props?.overlayColor)?[n+1]:[]);if(t.length!==0)return t.length===1?u("Slide {n}: own Overlay color.",{n:t[0]}):u("Slides {n}: own Overlay color.",{n:t.join(", ")})}function $7e({value:e,onChange:t}){let[o]=ac("slides");return Wo(Dte,{label:u("Texture color"),value:e||ls,onChange:t,hint:G7e(o)})}var pme={type:"custom",render:({value:e,onChange:t})=>Wo($7e,{value:e,onChange:t})},o8={overlayColor:{type:"custom",render:({value:e,onChange:t})=>Wo(M7e,{value:e,onChange:t})},overlayPosition:{type:"custom",render:({value:e,onChange:t})=>Wo(U7e,{value:e,onChange:t})}},K7e={one:Wo(h7e,{}),side:Wo(w7e,{}),stacked:Wo(x7e,{})},sme=e=>Te("Layout",Wo(g7e,{}),wX.map(t=>({label:yX[t],value:t,picture:K7e[t]})),xX,e?{phoneRest:t=>vX(void 0,t)}:void 0),Vh={mediaLayout:sme(),mediaLayoutPhone:QH("mediaLayout",sme(!0)).mediaLayoutPhone},m1=()=>ae("Tint",Wo(b7e,{}),0,100,5,0,"%"),mme=e=>Object.fromEntries(J4(e).map(t=>[t,Ep()])),ume=e=>et("Background image","image/*","Upload a background image",{focus:e}),u1=()=>ds("Tint color",ls),f5={mediaImage:ume(_a.image),...mme(_a.image)},f1={mediaImage2:ume(_a.image2),...mme(_a.image2),tintColor2:u1(),tintOpacity2:m1()},h5=Object.keys(Vh),Rw=Object.keys(f1),g5=["mediaImage",...J4(_a.image)],b5=e=>({mediaLayout:{all:[e,{not:{context:"device",is:"mobile"}}]},mediaLayoutPhone:{all:[e,{context:"device",is:"mobile"}]}}),Cu={videoSource:Te("Source",Wo(k7e,{}),pee.map(e=>({label:mee[e],value:e})),tl),youtubeUrl:J("YouTube link","https://youtu.be/\u2026"),videoPlayback:Te("Playback",Wo(v7e,{}),uee.map(e=>({label:fee[e],value:e})),iC)},_u={phoneWordsTop:Kh("mobile",ae(cC,Wo(JH,{}),lC,dC,1,_F,{kind:"spacing"},{clear:{hint:_F}})),phoneWordsBottom:Kh("mobile",ae(pC,Wo(ZH,{}),lC,dC,1,RF,{kind:"spacing"},{clear:{hint:RF}})),phoneBoxGap:Kh("mobile",ae(Aee,Wo(y7e,{}),lC,dC,1,NF,{kind:"spacing"},{clear:{hint:NF}}))},fme={wordsTop:Kh("desktop",ae(cC,Wo(JH,{}),Zv,Jv,1,qv,{kind:"spacing"},{clear:{hint:qv}})),wordsBottom:Kh("desktop",ae(pC,Wo(ZH,{}),Zv,Jv,1,Xv,{kind:"spacing"},{clear:{hint:Xv}})),wordsTopTablet:Kh("tablet",ae(cC,Wo(JH,{}),Zv,Jv,1,qv,{kind:"spacing"},{clear:{hint:qv}})),wordsBottomTablet:Kh("tablet",ae(pC,Wo(ZH,{}),Zv,Jv,1,Xv,{kind:"spacing"},{clear:{hint:Xv}}))};var Z7e=e=>ae("Height",Ru(j7e,{}),Oa.min,Oa.max,Oa.step,Oa.fallback,Oa.unit,e),n8=e=>X7e(e,Z7e()),gl={ctaText:U("Button",Jd.text),ctaHref:Ve("Button link")},w5=()=>Te("Tone",Ru(Y7e,{}),[{label:"Default",value:"default"},{label:"Muted",value:"dim"}],"default");var vc=(e,t)=>({type:"custom",render:()=>Ru(qpe,{parentType:e,label:t})}),x5=e=>({type:"custom",render:()=>Ru(jpe,{parentType:e})});function J7e(e){let{photographyGrayscale:t}=zn();return ne(XQ,t===!0,Ru(V7e,{})).render(e)}function Nw(){return{type:"custom",render:e=>Ru(J7e,{...e})}}function hme(e){let t=Xpe(e);return t?Ru(sa,{noun:t}):Ru(q7e,{})}function Nu(e,t,o,{unsetLabel:n}){return{_gTextStyle:Q7e("Text style"),...Object.fromEntries(e.map(r=>[t[r],le(o[r],hme(o[r]),[{label:n,value:""},...v0.map(a=>({label:KY[a],value:a}))],"")]))}}import{Inline as eze,InputNumber as xme}from"efficient-shell/ui";import{SettingsField as tze}from"efficient-easel/panel";import{ListIcon as oze}from"efficient-easel/icons";var gme=e=>typeof e=="number"&&Number.isInteger(e)&&e>=1?e:void 0;function h1(e){if(!e||typeof e!="object")return null;let t=gme(e.from)??1,o=gme(e.to);return o!==void 0&&o<t||t===1&&o===void 0?null:o===void 0?{from:t}:{from:t,to:o}}var wme=(e,t)=>t>=e.from&&(e.to===void 0||t<=e.to),g1="plain",Ou="tabs",$p="button",bme=e=>e===void 0||e===""||e===null,Yh=(e,t,o,n="")=>({list:e,button:t,drawsButton:o,listHead:e,listTail:"",buttonHead:t,buttonTail:"",strip:n});function r8(e,t){let o=bme(t)||t===$p;if(e===Ou){let r="hidden view-tablet:block";return bme(t)||t===Ou?Yh("","",!1):t===$p?Yh("hidden","flex view-tablet:hidden",!0,r):Yh("flex view-tablet:hidden","",!1,r)}let n=e===$p;return!n&&!o?Yh("flex","",!1):n?o?Yh("hidden","flex",!0):Yh("flex view-tablet:hidden","hidden view-tablet:flex",!0):{...Yh("hidden view-tablet:flex","flex view-tablet:hidden",!0),listHead:"hidden",listTail:" view-tablet:flex",buttonHead:"flex",buttonTail:" view-tablet:hidden"}}var y5=420,v5=60;import{jsx as k5,jsxs as nze}from"react/jsx-runtime";function a8({value:e,onChange:t}){let o=h1(e),n=o?.from??1,r=o?.to??null,a=(i,s)=>t(h1({from:i??1,to:s??void 0}));return k5(tze,{label:u("Show links"),icon:k5(oze,{}),changed:o!==null,hint:u("The links this menu shows on a computer. Empty To means to the end."),children:nze(eze,{gap:2,wrap:!1,children:[k5(xme,{size:"md",prefix:u("From"),min:1,precision:0,value:n,"aria-label":u("Show links from"),onChange:i=>a(i,r)}),k5(xme,{size:"md",prefix:u("To"),min:1,precision:0,placeholder:u("End"),value:r,"aria-label":u("Show links to"),onChange:i=>a(n,i)})]})})}import{createContext as rze,useCallback as Ow,useContext as aze,useEffect as s8,useMemo as ize,useRef as l8,useState as Au}from"react";function yme(e,t){return`${(g_||(typeof window<"u"?window.location.origin:"")).replace(/^http/,"ws")}/ws/chat/?conversation=${e}&token=${encodeURIComponent(t)}`}var i8="/api/chat/public";function vme(e){let t=f2.getAccess();return t?{token:t}:e?{headers:{"X-Chat-Token":e}}:{}}async function kme(e){let t=f2.getAccess();return Ob(`${i8}/conversations/`,{method:"POST",token:t??void 0,body:JSON.stringify({subject:e.subject??"",body:e.body,guest_name:e.guestName??"",guest_email:e.guestEmail??"",guest_key:e.guestKey??""})})}async function Sme(e,t){return Ob(`${i8}/conversations/${e}/thread/`,vme(t))}async function Tme(e,t,o){return Ob(`${i8}/conversations/${e}/thread/`,{method:"POST",body:JSON.stringify({body:o}),...vme(t)})}import{jsx as dze}from"react/jsx-runtime";var sze="sf:aid",Eme="sf:chat",Pme=rze(null);function lze(){let e=da.getItem(Eme);if(!e)return null;try{return JSON.parse(e)}catch{return null}}function Cme({children:e,preview:t=!1}){let[o,n]=Au(!1),[r,a]=Au(null),[i,s]=Au([]),[l,d]=Au(!1),[c,p]=Au(null),[m,f]=Au(0),[g,h]=Au(!1),[b,w]=Au(!1),y=l8(o);y.current=o;let x=l8(null),k=l8(r);k.current=r,s8(()=>{t||a(lze())},[t]);let v=Ow(async M=>{try{let I=await Sme(M.id,M.token);s(I.messages)}catch{}},[]),S=Ow(()=>(t||x.current||(x.current=uae.restoreSession().then(()=>{h(!0),k.current&&v(k.current)},()=>h(!1))),x.current),[t,v]);s8(()=>{t||r&&v(r)},[t,r,v]),s8(()=>{if(t||!r)return;let M=f2.getAccess()??r.token,I=!1,A=null,_,F=3e3,K=()=>{I||(A=new WebSocket(yme(r.id,M)),A.onmessage=V=>{try{let Z=JSON.parse(V.data);Z.type==="chat_event"&&Z.event==="message"&&(v(r),!y.current&&Z.payload?.sender_role==="employee"&&f(Y=>Y+1))}catch{}},A.onclose=()=>{I||(_=setTimeout(K,F),F=Math.min(F*2,3e4))},A.onerror=()=>A?.close())};return K(),()=>{I=!0,_&&clearTimeout(_),A?.close()}},[t,r,v]);let E=Ow(()=>{n(!0),f(0),S()},[S]),T=Ow(()=>n(!1),[]),C=Ow(()=>{y.current||S(),n(M=>(M||f(0),!M))},[S]),P=Ow(async(M,I)=>{let A=M.trim();if(!A)return!1;if(t)return s(_=>[..._,{id:`preview-${_.length}`,sender_role:"customer",sender_name:I?.name||"You",body:A,image_url:null,created_at:""}]),w(!0),!0;d(!0),p(null),await S();try{if(r){let _=await Tme(r.id,r.token,A);s(F=>[...F,_])}else{let _=da.getItem(sze)||"",F=await kme({body:A,guestName:I?.name,guestEmail:I?.email,guestKey:_}),K={id:F.id,token:F.guest_token};da.setItem(Eme,JSON.stringify(K)),a(K),s(F.messages)}return!0}catch{return p("Could not send your message. Please try again shortly."),!1}finally{d(!1)}},[r,t,S]),B=ize(()=>({isOpen:o,open:E,close:T,toggle:C,messages:i,sending:l,error:c,unread:m,hasConversation:t?b:!!r,isSignedIn:g,send:P}),[o,E,T,C,i,l,c,m,r,g,P,t,b]);return dze(Pme.Provider,{value:B,children:e})}function _me(){let e=aze(Pme);if(!e)throw new Error("useChat must be used within <ChatProvider>");return e}import{useEffect as Pze,useRef as Cze,useState as m8}from"react";import{ChatBubbleLeftRightIcon as cze,ChatBubbleOvalLeftEllipsisIcon as pze,ChatIcon as mze,MegaphoneIcon as uze,PhoneIcon as fze,SparklesIcon as hze}from"efficient-shell/icons/efficient-glyphs";import{Fragment as Sze,jsx as S5,jsxs as Rme}from"react/jsx-runtime";var gze={"chat-bubble-left-right":cze,"chat-bubble-oval-left-ellipsis":pze,chat:mze,megaphone:uze,phone:fze,sparkles:hze};function bze(e){let t=wne(e?.launcherColor)||"var(--btn)";return{"--assistant-launcher-bg":t,"--assistant-launcher-ink":t==="var(--btn)"?"var(--btn-ink)":hq(t),"--assistant-launcher-bg-hover":`color-mix(in oklab, ${t} 85%, black)`}}function wze(e){return e?.launcherLabel?.trim()??""}function d8(e){return bne(e?.launcherPosition)==="left"}var xze={position:"fixed",bottom:16,minWidth:48,height:48,padding:0,display:"flex",alignItems:"center",border:0,borderRadius:9999,cursor:"pointer",background:"var(--assistant-launcher-bg)",color:"var(--assistant-launcher-ink)",boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"},yze={width:48,height:48,flex:"none",display:"flex",alignItems:"center",justifyContent:"center"},vze="[data-chat-launcher-label]{max-width:0;opacity:0;overflow:hidden;white-space:nowrap;font-size:14px;font-weight:500;line-height:1;transition:max-width 120ms ease-out,opacity 120ms ease-out,padding 120ms ease-out}[data-chat-launcher]:hover [data-chat-launcher-label],[data-chat-launcher]:focus-visible [data-chat-launcher-label]{max-width:16em;opacity:1;padding-inline-end:16px}@media (prefers-reduced-motion:reduce){[data-chat-launcher-label]{transition:none}}",kze=`@media ${SZ}{[data-chat-launcher][data-hide-on-phones]{display:none!important}}`;function c8({label:e,onOpen:t,onWarm:o,zIndex:n=1e3,badge:r,look:a}){let i=gne(a?.launcherIcon),s=gze[i],l=wze(a),d=d8(a),c=a?.showOnPhones===!1,p=(l?vze:"")+(c?kze:"");return Rme(Sze,{children:[p&&S5("style",{children:p}),Rme("button",{type:"button","aria-label":e,onClick:t,onPointerEnter:o,onFocus:o,"data-sf-floating":"","data-chat-launcher":"","data-side":d?"left":"right","data-hide-on-phones":c?"":void 0,style:{...bze(a),...xze,...d?{left:16}:{right:16},zIndex:n},children:[S5("span",{style:yze,children:S5(s,{size:22,"data-icon":i})}),l&&S5("span",{"data-chat-launcher-label":"",children:l}),r]})]})}import{useEffect as Tze,useState as Eze}from"react";var Nme="(prefers-reduced-motion: reduce)";function p8(){return globalThis.window?.matchMedia?.(Nme)?.matches??!1}function fd(){return p8()?"auto":"smooth"}function Ome(){let[e,t]=Eze(!1);return Tze(()=>{let o=globalThis.window?.matchMedia?.(Nme);if(!o||(t(o.matches),typeof o.addEventListener!="function"))return;let n=r=>t(r.matches);return o.addEventListener("change",n),()=>o.removeEventListener("change",n)},[]),e}import{jsx as pn,jsxs as Kp}from"react/jsx-runtime";var _ze="Chat with us",Rze="We usually reply within a few minutes",Nze="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Oze({m:e}){if(e.sender_role==="system")return pn("div",{className:"text-center text-[11px] text-fg/50 py-1",children:e.body});let t=e.sender_role==="bot",o=e.sender_role==="employee"||t;return pn("div",{className:`flex ${o?"justify-start":"justify-end"}`,children:Kp("div",{className:`max-w-[80%] rounded-2xl px-3 py-2 text-sm ${o?"bg-fg/5 text-fg":"bg-accent text-accent-ink"}`,children:[o&&Kp("div",{className:"mb-0.5 flex items-center gap-1 text-[10px] font-semibold uppercase tracking-wide text-fg/50",children:[t&&pn("span",{"aria-hidden":"true",children:"\u2726"}),pn("span",{children:t?e.sender_name||"Assistant":e.sender_name||"Support"}),t&&pn("span",{className:"font-normal normal-case tracking-normal",children:"\xB7 automated"})]}),e.body&&pn("p",{className:"whitespace-pre-wrap",children:e.body}),e.image_url&&pn("a",{href:e.image_url,target:"_blank",rel:"noopener noreferrer",children:pn("img",{...ko(e.image_url,{fallbackWidth:640,maxWidth:1280}),sizes:"(max-width: 640px) 80vw, 320px",alt:"Attachment",className:"mt-2 max-h-48 w-auto rounded-lg"})})]})})}function u8({title:e,subtitle:t,greeting:o,look:n}={}){let{isOpen:r,toggle:a,close:i,messages:s,sending:l,error:d,unread:c,hasConversation:p,isSignedIn:m,send:f}=_me(),g=e?.trim()||_ze,h=t?.trim()||Rze,b=o?.trim()||Nze,[w,y]=m8(""),[x,k]=m8(""),[v,S]=m8(""),E=Cze(null),T=!m&&!p;Pze(()=>{r&&E.current?.scrollIntoView({behavior:fd(),block:"nearest"})},[s.length,r]);let C=/.+@.+/.test(v),P=w.trim().length>0&&(!T||x.trim()&&C),B=T&&v.trim().length>0&&!C,M=async()=>{if(!P||l)return;let I=w;await f(I,T?{name:x.trim(),email:v.trim()}:void 0)&&y(_=>_===I?"":_)};return r?Kp("aside",{role:"dialog","aria-label":"Chat with us","data-sf-floating":"",className:`fixed bottom-5 ${d8(n)?"left-5":"right-5"} z-[61] flex h-[min(560px,80vh)] w-[min(380px,calc(100vw-2.5rem))] flex-col overflow-hidden rounded-2xl border border-line bg-bg shadow-[0_20px_60px_rgba(0,0,0,.45)]`,style:{color:"var(--fg)"},children:[Kp("div",{className:"flex items-center justify-between border-b border-line px-4 py-3",children:[Kp("div",{children:[pn("div",{className:"text-sm font-semibold text-fg",children:g}),pn("div",{className:"text-[11px] text-fg/50",children:h})]}),pn("button",{type:"button",onClick:i,"aria-label":"Close chat",className:"rounded-md p-1 text-fg/60 hover:bg-fg/5",children:pn("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:pn("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),Kp("div",{className:"flex-1 space-y-2 overflow-y-auto px-3 py-3",children:[s.length===0&&pn("p",{className:"px-2 py-4 text-center text-sm text-fg/50",children:b}),s.map(I=>pn(Oze,{m:I},I.id)),pn("div",{ref:E})]}),Kp("div",{className:"border-t border-line p-3",children:[T&&Kp("div",{className:"mb-2 grid grid-cols-2 gap-2",children:[pn("input",{value:x,onChange:I=>k(I.target.value),placeholder:"Your name","aria-label":"Your name",className:"rounded-lg border border-line bg-transparent px-3 py-2 text-sm outline-none focus:border-accent"}),pn("input",{value:v,onChange:I=>S(I.target.value),type:"email",placeholder:"Email","aria-label":"Email","aria-invalid":B||void 0,"aria-describedby":B?"sf-chat-email-hint":void 0,className:"rounded-lg border border-line bg-transparent px-3 py-2 text-sm outline-none focus:border-accent"})]}),B&&pn("p",{id:"sf-chat-email-hint",className:"mb-2 text-xs text-fg/60",children:"Enter your full email address to send."}),d&&pn("p",{role:"alert",className:"mb-2 text-xs text-alert",children:d}),Kp("div",{className:"flex items-end gap-2",children:[pn("textarea",{value:w,onChange:I=>y(I.target.value),onKeyDown:I=>{I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),M())},rows:1,placeholder:"Type a message\u2026","aria-label":"Message",className:`${dc} max-h-28 resize-none rounded-lg border border-line bg-transparent px-3 py-2 text-sm outline-none focus:border-accent`}),pn("button",{type:"button",onClick:()=>{M()},disabled:!P||l,className:"rounded-lg bg-btn px-3 py-2 text-sm font-semibold text-btn-ink disabled:opacity-40",children:l?"\u2026":"Send"})]})]})]}):pn(c8,{label:yo(g),onOpen:a,zIndex:60,look:n,badge:c>0&&pn("span",{className:"absolute -top-1 -right-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-red-600 px-1 text-[11px] font-bold text-white",children:c})})}import{CHROME_ATTR as Aze}from"efficient-easel/easel";import{jsx as f8}from"react/jsx-runtime";function h8(){let{chromePlaceholder:e,themeFromDocument:t}=zn(),{chat:o}=Sne();return e||t||!o.enabled?null:f8("div",{[Aze]:xne,children:f8(Cme,{preview:!0,children:f8(u8,{title:o.title,subtitle:o.subtitle,greeting:o.greeting,look:o})})})}import{useEffect as yWe,useRef as vWe}from"react";import{useEffect as Ize,useState as Fze}from"react";import{useEffect as Lze,useState as Ame}from"react";var g8=new Map;function b8(e){let t=g8.get(e);if(t)return t;let o=Fo.getTyre(e).catch(n=>{throw g8.delete(e),n});return g8.set(e,o),o}function Lme(e,t){let[o,n]=Ame("idle"),[r,a]=Ame(null);return Lze(()=>{if(!t||!e)return;let i=!1;return n("loading"),b8(e).then(s=>{i||(a(s),n("ready"))}).catch(()=>{i||n("error")}),()=>{i=!0}},[e,t]),{state:o,tyre:r}}var Bze=new Map,Ime=new WeakMap;function Hze(e){let t=e.variants.map(o=>o.specs?.tireType).filter(o=>!!o);return{coverImage:e.coverImage,tyreTypes:[...new Set(t)]}}function Dze(e){let t=Ime.get(e);return t||Ime.set(e,t=Hze(e)),t}function Mze(e){return b8(e).then(Dze)}function Fme(e){let[t,o]=Fze(Bze),n=[...new Set(e)].sort().join(`
7
+ `);let i=ikt(t,o,r),s=W3.getSymbolSize(t),l=new q1t(s);return tkt(l,t),okt(l),nkt(l,t),cV(l,o,0),t>=7&&rkt(l,t),akt(l,i),isNaN(n)&&(n=pV.getBestMask(l,cV.bind(null,l,o))),pV.applyMask(n,l),cV(l,o,n),{modules:l,version:t,errorCorrectionLevel:o,maskPattern:n,segments:r}}e4e.create=function(t,o){if(typeof t>"u"||t==="")throw new Error("No input text");let n=lV.M,r,a;return typeof o<"u"&&(n=lV.from(o.errorCorrectionLevel,lV.M),r=z3.from(o.version),a=pV.from(o.maskPattern),o.toSJISFunc&&W3.setToSJISFunction(o.toSJISFunc)),lkt(t,r,n,a)}});import{useEffect as dTt,useMemo as cTt,useState as uFe}from"react";import{useEaselStrings as pTt}from"efficient-easel/strings";import{jsx as Wr,jsxs as Fie}from"react/jsx-runtime";import{useCallback as qo,useEffect as Ph,useMemo as Bie,useRef as Kb,useState as Bo}from"react";import"efficient-easel/easel.css";import"efficient-easel/shell.css";import"efficient-easel/rail.css";import"efficient-easel/panel.css";import"efficient-easel/fields.css";import"efficient-easel/pick.css";import"efficient-easel/copy.css";import"efficient-easel/gold.css";import"efficient-easel/text-styles.css";import"efficient-easel/menu.css";import"efficient-easel/chrome.css";import"efficient-easel/tree.css";import"efficient-easel/drag.css";import"efficient-easel/screen.css";import{ChromeWrap as _6e}from"efficient-easel/screen/lib/host-chrome";import{useEaselSession as R6e}from"efficient-easel/screen/lib/session-context";function XFe(e){return!!e&&typeof e=="object"&&typeof e[PJ]=="string"}function ZFe(e,t,o){if(!e)return e;let n=null;for(let[r,a]of Object.entries(e))XFe(a)&&(n??={...e},n[r]={...a,siteGap:t,siteGapPhone:o});return n??e}function gie(e,t,o=null){let n=e,r=!1,a={};for(let[i,s]of Object.entries(n.components)){let l=ZFe(s.fields,t,o);if(l===s.fields){a[i]=s;continue}r=!0,a[i]={...s,fields:l}}return r?{...e,components:a}:e}var bie=xC.mediaFields,wie=xC.snapshotObjects,xie=xC.hydratedLists;function JFe(e){return typeof e=="string"||dee(e)?"":Array.isArray(e)?[]:e&&typeof e=="object"?null:e}function yie(e,t){if(Array.isArray(e))return e.map(r=>yie(r,t));if(!e||typeof e!="object")return e;let o=e,n={};for(let r of t)r in o&&(n[r]=o[r]);return n}function QFe(e,t){let o=t;for(let r of Ms(bie,e)??[])o=cee(o,r,JFe);let n=Ms(wie,e);if(n)for(let[r,a]of Object.entries(n))r in o&&(o={...o,[r]:yie(o[r],a.keep)});for(let r of Ms(xie,e)??[])Array.isArray(o[r])&&(o={...o,[r]:[]});return o}function e6e(e,t){return typeof t!="function"?t:o=>t(QFe(e,o))}function B_(e,t){if(!t)return e;let o=e,n={};for(let[r,a]of Object.entries(o.components)){let i=(Ms(bie,r)?.length??0)>0||Ms(wie,r)||Ms(xie,r);n[r]=i&&a.render?{...a,render:e6e(r,a.render)}:a}return{...o,components:n}}import{jsx as o6e}from"react/jsx-runtime";import{useMemo as n6e}from"react";import{useScreenDocument as r6e}from"efficient-easel/screen/components/ScreenDocumentContext";function t6e(e){return VQ(e)||ioe(e.layout)?!1:KQ(e.layout)===null}function vie(e){return UQ(e.slug)||wh(e.slug)?!1:t6e(e)}function kie({children:e}){let{currentSlug:t,currentKind:o,data:n}=r6e(),r=MP(),a=t&&n&&vie({slug:t,kind:o,layout:n})?Tp(t):null,i=n6e(()=>({...r,pagePath:a}),[r,a]);return o6e(DP,{runtime:i,children:e})}import N6e,{DocumentScreen as O6e}from"efficient-easel/screen/components/ScreenMount";import{jsx as a6e}from"react/jsx-runtime";import{useMemo as i6e}from"react";import{HintsProvider as s6e}from"efficient-easel/screen/lib/hints";import{useEaselSession as l6e}from"efficient-easel/screen/lib/session-context";function d6e(e){let t,o=new Set,n=()=>{for(let r of o)r()};return e.get().then(r=>{t===void 0&&typeof r.showHints=="boolean"&&(t=r.showHints,n())}).catch(()=>{}),{read:()=>t,save:r=>{t=r,n(),e.update({showHints:r}).catch(()=>{})},subscribe:r=>(o.add(r),()=>{o.delete(r)})}}function c6e(e){return i6e(()=>e?d6e(e):null,[e])}function H_({children:e}){let t=Kd(l6e()).preferences,o=c6e(t);return a6e(s6e,{store:o,children:e})}import{useScreenDocument as A6e}from"efficient-easel/screen/components/ScreenDocumentContext";import{useCallback as p6e,useEffect as m6e,useMemo as Sie,useRef as Tie,useState as u6e}from"react";import{useEaselSession as f6e}from"efficient-easel/screen/lib/session-context";import{WebsiteBackendError as h6e}from"efficient-easel/screen/lib/backend-error";var g6e="Could not save this link. Check your connection and try again.";function b6e(e,t){if(!(e instanceof h6e)||e.kind!=="invalid")return null;let o=e.fields?.[t];return typeof o=="string"&&o.trim()?o:null}function w6e(e){return Object.fromEntries(yh.map(t=>[t,{value:e[t]??"",error:null}]))}function Eie({token:e,siteId:t,enabled:o}){let[n,r]=u6e(s6),a=Tie(null),i=Tie(!1),s=f6e(),l=Kd(s).social,d=o&&!!e&&!!t&&!!l;m6e(()=>{if(!d||!e||!t||!l)return;a.current!==t&&(a.current=t,i.current=!1,r(s6));let m=!1;return l.get({siteId:t}).then(f=>{!m&&!i.current&&r(w6e(f))}).catch(()=>{}),()=>{m=!0}},[d,e,t,l]);let c=p6e(async(m,f)=>{if(!d||!e||!t||!l)return{ok:!1,error:"There is no website to save to."};try{let g=await l.update({[m]:f.trim()},{siteId:t});return i.current=!0,pb(),r(h=>({...h,[m]:{value:g[m]??"",error:null}})),{ok:!0}}catch(g){let h=b6e(g,m)??g6e;return r(b=>({...b,[m]:{...b[m],error:h}})),{ok:!1,error:h}}},[d,e,t,l]),p=Sie(()=>n_(Object.fromEntries(yh.map(m=>[m,n[m].value]))),[n]);return Sie(()=>({links:p,rows:n,canSave:d,saveLink:c}),[p,n,d,c])}var Pie={homeSlug:sb,entryMayBounce:e=>e.kind==="template"||e.kind==="page"&&e.slug===zm,entryBounce:(e,t)=>e.kind==="page"&&e.slug===zm?{kind:"page",slug:sb,siteId:e.siteId}:e.kind!=="template"||new URLSearchParams(t).get("editTemplate")==="1"?null:{kind:"page",slug:sb},onSwitch:()=>{},tellsHost:e=>e.kind==="page"&&e.slug!==zm,adapterFor:(e,t,o)=>e.kind==="template"?One(e.id,t,D4(o)):m2(e.siteId,t,D4(o),{editsPinnedInPlace:!0}),migrateRenamedProps:i_};import{PreviewPartsProvider as L6e}from"efficient-easel/draw/client";import{jsx as x6e}from"react/jsx-runtime";import{useMemo as y6e,useRef as v6e}from"react";import{CanvasPartsContext as k6e}from"efficient-easel/easel";import{usePreviewParts as S6e}from"efficient-easel/draw/client";import{BLOCK_ATTRIBUTE as T6e}from"efficient-easel/canvas";function D_({children:e}){let{selectedPartId:t,select:o}=S6e(),{selectedHeroPart:n,select:r}=Ane(),{selectedHeroId:a,select:i}=fte(),{selectedLocationPartId:s,select:l}=gte(),d=n??(a?hte(a):null)??s??t,c=v6e(d);c.current=d;let p=y6e(()=>({partAt:bte,selected:()=>c.current,selectedPart:m=>{let f=c.current,g=E6e(m,f);if(!f||!g)return null;let h=wte(g,f);return{id:f,element:g,whole:yte(g,f),...h?{label:u(h)}:{}}},select:m=>{if(m&&WF(m)){l(m);return}if(m&&EF(m)){r(m);return}let f=zF(m);if(f){i(f);return}if(m){o(m);return}let g=c.current?aF(c.current)?.nodeId:null;g&&o(xZ(g,null))}}),[o,r,i,l,d]);return x6e(k6e.Provider,{value:p,children:e})}function E6e(e,t){if(!t||!aF(t)?.propKey)return null;let o=d=>d.replace(/["\\]/g,"\\$&"),n=[...e.querySelectorAll(`[${yZ}="${o(t)}"]`)],r=n.find(d=>!n.some(c=>c!==d&&d.contains(c)));if(r)return r;let a=(d,c)=>[...e.querySelectorAll(`[${T6e}="${o(d)}"] ${c}`)][0]??null,i=WF(t);if(i)return a(i.nodeId,`[${xte}="${i.index}:${i.part}"]`);let s=EF(t);if(s)return a(s.nodeId,`[${qQ}="${s.part}"]`);let l=zF(t);return l?a(l,`[${kC}]`):null}import{pictureShadowColor as I6e}from"efficient-easel/screen/lib/document/shadow-values";var _6=new Set,R6=new Set,N6=new Set;function Cie(e){return _6.add(e),()=>_6.delete(e)}function _ie(){_6.forEach(e=>e())}function lu(e){return R6.add(e),()=>R6.delete(e)}function Rie(){R6.forEach(e=>e())}function M_(e){return N6.add(e),()=>N6.delete(e)}function O6(){N6.forEach(e=>e())}var A6=new Map,P6e=9e5,Nie=0;function C6e(){return Nie+=1,`fe-${typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():String(Nie)}`}function Oie(e,t){e.connected&&e.send("storefront-editor:open-form",{mode:"edit",formId:t})}function Aie(e,t){if(!e.connected)return Promise.resolve({status:"closed"});let o=C6e();return new Promise(n=>{let r=setTimeout(()=>Lie(o,{status:"timeout"}),t.timeoutMs??P6e);A6.set(o,a=>{clearTimeout(r),n(a)}),e.send("storefront-editor:open-form",{requestId:o,mode:t.mode,...t.formId?{formId:t.formId}:{}})})}function Lie(e,t){let o=A6.get(e);o&&(A6.delete(e),o(t))}function L6(e,t){Lie(e,t?{status:"saved",form:t}:{status:"closed"})}function z_(e){switch(e?.type){case"storefront-editor:category-updated":return _ie(),!0;case"storefront-editor:menus-updated":return Rie(),!0;case"storefront-editor:form-saved":{let t=e;return O6(),t.requestId&&L6(t.requestId,t.form??null),!0}case"storefront-editor:form-closed":{let t=e;return O6(),t.requestId&&L6(t.requestId,null),!0}default:return!1}}function Iie(e){let t=e?.site_fonts;return Array.isArray(t)?t.map(o=>({key:o.key,family:o.family,label:o.label,category:o.category,condensed:o.condensed===!0,weights:Array.isArray(o.weights)?[...o.weights]:[],italic:o.italic===!0,fallbackMetrics:o.fallback_metrics?{ascent:o.fallback_metrics.ascent,descent:o.fallback_metrics.descent,lineGap:o.fallback_metrics.line_gap,sizeAdjust:o.fallback_metrics.size_adjust}:null,files:(Array.isArray(o.files)?o.files:[]).map(n=>({id:n.id,weight:n.weight,style:n.style,subset:n.subset,unicodeRange:n.unicode_range,url:typeof n.url=="string"?n.url:""}))})):null}import{parseOption as F6e}from"efficient-shell/format";var B6e=()=>{if(typeof window>"u")return Vd;try{let e=window.localStorage.getItem(Pv);return F6e(IE,Vd,e)}catch{return Vd}},Hie=e=>{if(!(typeof window>"u"))try{window.localStorage.setItem(Pv,e)}catch{}},H6e=()=>{if(typeof window>"u")return up;try{return window.localStorage.getItem(LE)!==z4}catch{return up}},D6e=()=>{if(!(typeof window>"u"))try{window.localStorage.removeItem(uq)}catch{}},Die=e=>{if(!(typeof window>"u"))try{e?window.localStorage.removeItem(LE):window.localStorage.setItem(LE,z4)}catch{}};function M6e(){let{adapter:e,capabilities:t,templateId:o,ready:n,token:r,siteId:a,currentSlug:i,currentKind:s}=A6e();Ph(()=>(yF(i,s),()=>yF(null,null)),[i,s]);let l=hne(e?.pinnedChrome)?.rootProps??null,d=t.placeholderFrames,[c,p]=Bo(null),[m,f]=Bo("");Ph(()=>{let Pe=e.templateName;if(!n||!o||!Pe){f("");return}let Ao=!1;return Pe().then(Ir=>!Ao&&f(Ir??"")).catch(()=>{}),()=>{Ao=!0}},[n,r,o,e]);let[g,h]=Bo(Vd),[b,w]=Bo(up),[y,x]=Bo({value:{selected:0,themes:[]},readFor:null}),k=y.value,[v,S]=Bo(VY),[E,T]=Bo(gq),[C,P]=Bo(null),[B,M]=Bo(Pq),[I,A]=Bo(null),[_,F]=Bo(null),[K,V]=Bo(U4),[Z,Y]=Bo(null),[z,q]=Bo(null),[X,L]=Bo(null),[O,G]=Bo(null),[Q,$]=Bo(null),[oe,de]=Bo(null),[ge,Qe]=Bo({}),ve=qo(Pe=>Qe(Ao=>({...Ao,...Pe})),[]),be=R6e(),_e=pne(),Ie=Bie(()=>gie(B_(_e,d),Q,oe),[_e,d,Q,oe]),[te,Ee]=Bo(Cq),[Ft,Fe]=Bo(null),[Ct,fe]=Bo(null),[je,Tt]=Bo(null),[at,$t]=Bo(null),[xt,ho]=Bo(null),_t=Kb(null),rt=Kb(!1);Ph(()=>{h(B6e()),w(H6e())},[]);let Kn=qo(Pe=>{rt.current=!0,D6e(),Hie(Pe),h(Pe)},[]),go=qo(Pe=>{rt.current=!0,Die(Pe),w(Pe)},[]),Oe=qo(Pe=>{rt.current=!0,x(Ao=>Bte(Ao,Pe,a??""))},[a]),xo=qo(Pe=>{rt.current=!0,S(Pe)},[]),ro=qo(Pe=>{rt.current=!0,T(Pe)},[]),Kl=qo(Pe=>{rt.current=!0,P(Pe)},[]),Bn=qo(Pe=>{rt.current=!0,M(Pe)},[]),Hn=qo(Pe=>{rt.current=!0,A(Pe)},[]),yi=qo(Pe=>{rt.current=!0,F(Pe)},[]),Ue=qo(Pe=>{rt.current=!0,V(Pe)},[]),ft=qo(Pe=>{rt.current=!0,Y(Pe)},[]),Rt=qo(Pe=>{rt.current=!0,Ee(Pe)},[]),[Mt,Vn]=Bo(null),[At,Yn]=Bo(null),[jn,Oo]=Bo(null),aa=Bie(()=>(jn??[]).map(Pe=>Pe.key),[jn]),mn=qo(Pe=>{rt.current=!0,Vn(Pe)},[]),qn=qo(Pe=>{rt.current=!0,q(Pe)},[]),Ae=qo(Pe=>{rt.current=!0,L(Pe)},[]),Nt=qo(Pe=>{rt.current=!0,G(Pe)},[]),vi=qo(Pe=>{rt.current=!0,$(Pe)},[]),Xa=qo(Pe=>{rt.current=!0,de(Pe)},[]),Bs=qo(Pe=>{rt.current=!0,Fe(Pe)},[]),ki=qo(Pe=>{rt.current=!0,fe(Pe)},[]),Or=qo(Pe=>{rt.current=!0,Tt(Pe)},[]),Ar=qo(Pe=>{rt.current=!0,$t(Pe)},[]),ns=qo(Pe=>{rt.current=!0,ho(Pe)},[]);Ph(()=>{let Pe=Kd(be).theme;if(!r||!t.hasSiteTheme||!Pe)return;let Ao=a??"";_t.current!==Ao&&(_t.current=Ao,rt.current=!1);let Ir=!1;return Pe.get(a?{siteId:a}:void 0).then(Jt=>{if(Ir)return;let Ud=Iie(Jt);Oo(Ud);let f0=GY(Ud);if(rt.current)return;Hie(Jt.default_mode),Die(Jt.show_theme_switch),h(Jt.default_mode),w(Jt.show_theme_switch),x(Fte({selected:Jt.selected_preset,themes:Jt.theme_presets},Ao));let Vl=Mne(Jt,f0);S(Vl.fonts),T(Vl.sizes);let Za=pq(Jt);Qe(Za),P(Jt.corner_radius_px===void 0?wq[bq(Jt.corner_style)]:nh(Jt.corner_radius_px,Za.cornerRadiusUnit,xq)),M(Vl.compression),A(Jt.card_shadow==null?vq:Sq(Jt.card_shadow)),V(Jt.card_gap==null?U4:Tq(Jt.card_gap)),Y(Jt.hover_effect==null?kq:Eq(Jt.hover_effect)),F(I6e(Jt.shadow_color)),q(nh(Jt.site_width,Za.siteWidthUnit,Fq)),L(nh(Jt.site_gutter,Za.siteGutterUnit,Hq)),G(nh(Jt.site_gutter_phone,Za.siteGutterPhoneUnit,Dq)),$(nh(Jt.block_gap,Za.blockGapUnit,dF)),de(nh(Jt.block_gap_phone,Za.blockGapPhoneUnit,dF)),Ee(Vl.typography),Vn(Vl.textStyles),Yn(YY(Jt,f0)),Fe(Jt.hero_background_follows_width===!0),fe($4(Jt.section_background_width)),Tt($4(Jt.section_content_width)),$t(Jt.photography_grayscale===!0),ho(Jt.share_button_on_posts===!0)}).catch(()=>{}),()=>{Ir=!0}},[r,a,t.hasSiteTheme,be]);let Hs=Eie({token:r,siteId:a,enabled:t.hasSiteSettings}),[Be,sn]=Bo(yne),un=Kb(null),Xn=Kb(!1),yn=Kb(null),yt=Kb({}),Lr=qo(async()=>{yn.current&&clearTimeout(yn.current),yn.current=null;let Pe=yt.current;yt.current={};try{await Kd(be).chat?.update(Pe,a?{siteId:a}:void 0),pb()}catch(Ao){throw yt.current={...Pe,...yt.current},Ao}},[be,a]);Ph(()=>$te(()=>yn.current||Object.keys(yt.current).length>0?Lr():void 0),[Lr]);let t4=qo(Pe=>{Xn.current=!0,sn(Ao=>({...Ao,...Pe})),!(!t.hasSiteSettings||!r)&&(yt.current={...yt.current,...Pe},yn.current&&clearTimeout(yn.current),yn.current=setTimeout(()=>{Lr().catch(()=>{})},500))},[t.hasSiteSettings,r,Lr]);return Ph(()=>{if(!r||!t.hasSiteSettings)return;let Pe=a??"";un.current!==Pe&&(un.current=Pe,Xn.current=!1);let Ao=!1,Ir=Kd(be).chat;if(Ir)return Ir.get(a?{siteId:a}:void 0).then(Jt=>{Ao||Xn.current||sn(vne(Jt))}).catch(()=>{}),()=>{Ao=!0}},[r,a,t.hasSiteSettings,be]),Ph(()=>{let Pe=e.site;if(!n||!t.hasSiteRecord||!Pe){p(null);return}let Ao=!1;return Pe().then(Ir=>{Ao||p(une(Ir.name))}).catch(()=>{}),()=>{Ao=!0}},[n,r,t.hasSiteRecord,a,e]),Wr(O6e,{config:Ie,parts:Dre,wrap:(Pe,Ao)=>Fie(HJ,{siteFonts:jn,children:[Wr(DJ,{usedKeys:aa,preload:!1}),Wr(LC,{websiteName:c,templateChrome:d,templateName:m||null,themeMode:g,onThemeModeChange:Kn,themeSwitchShown:b,onThemeSwitchShownChange:go,theme:k,themeRow:Ite(t.hasSiteTheme,y.readFor,a??""),onThemeChange:Oe,fonts:v,onFontsChange:xo,cornerRadiusPx:C,onCornerRadiusPxChange:Kl,cardShadow:I,onCardShadowChange:Hn,shadowColor:_,onShadowColorChange:yi,cardGap:K,onCardGapChange:Ue,hoverEffect:Z,onHoverEffectChange:ft,headingCompression:B,onHeadingCompressionChange:Bn,headingTypography:te,onHeadingTypographyChange:Rt,textStyles:Mt,onTextStylesChange:mn,wordStyles:At,sizes:E,onSizesChange:ro,siteWidth:z,onSiteWidthChange:qn,siteGutter:X,onSiteGutterChange:Ae,siteGutterPhone:O,onSiteGutterPhoneChange:Nt,blockGap:Q,onBlockGapChange:vi,blockGapPhone:oe,onBlockGapPhoneChange:Xa,siteLengthUnits:ge,onSiteLengthUnitsChange:ve,heroBackgroundFollowsWidth:Ft,onHeroBackgroundFollowsWidthChange:Bs,sectionBackgroundWidth:Ct,onSectionBackgroundWidthChange:ki,sectionContentWidth:je,onSectionContentWidthChange:Or,photographyGrayscale:at,onPhotographyGrayscaleChange:Ar,shareButtonOnPosts:xt,onShareButtonOnPostsChange:ns,themeFromDocument:!t.hasSiteTheme,children:Wr(fne,{chromeRootProps:l,children:Wr(_6e,{wrap:be.chrome?.wrap,surface:"page",children:Wr(vC,{children:Wr(s_,{children:Wr(L6e,{children:Wr(SC,{children:Wr(D_,{children:Fie(yC,{children:[Wr(kne,{chat:Be,onChatChange:t4,children:Wr(Pne,{value:Hs,children:Wr(Cne,{children:Wr(kie,{children:Wr(H_,{children:Pe})})})})}),Ao]})})})})})})})})})]})})}function Mie({target:e,openAddPage:t}){return Wr(mne,{open:t,children:Wr(N6e,{target:e,addressing:Pie,onHostMessage:z_,children:Wr(M6e,{})})})}import{useMemo as FBe}from"react";import{createContext as W6e,useContext as U6e,useMemo as G6e}from"react";var z6e=["vehicle","process","size","lugs","finish","price"],ad={vehicle:"My Car",process:"Process",size:"Size",lugs:"Lugs",finish:"Finish",price:"Price"};function zie(e){if(!e)return ad;let t={...ad};for(let o of z6e){let n=e[o];if(typeof n!="string")continue;let r=n.trim();r&&(t[o]=r)}return t}import{jsx as $6e}from"react/jsx-runtime";var Wie=W6e(ad);function Uie({labels:e,children:t}){let o=G6e(()=>zie(e),[e]);return $6e(Wie.Provider,{value:o,children:t})}function x2(){return U6e(Wie)}import{createContext as sBe,useContext as lBe,useMemo as dBe}from"react";import{isSafeLinkHref as sCt}from"efficient-shell/markup";var Ai=["alloy-wheel","tyre"],W_=["alloy-wheel"],ps={"alloy-wheel":"Alloy wheels",tyre:"Tyres"},Gie="All products",$ie="All product types";function Ur(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 U_=Ai.map(e=>({value:e,label:ps[e]}));function id(e){return e==null?[...W_]:Array.isArray(e)?Ai.filter(t=>e.includes(t)):[...W_]}var ii=e=>e;function Ht(e){return ii(e).kind==="tyre"?"tyre":"alloy-wheel"}function G_(e,t){return e.filter(o=>t.includes(Ht(o)))}function Vb(e){return ii(e).slug??""}function I6(e){return ii(e).name??""}function Yb(e){return ii(e).brand??""}function Kie(e){let t=new Set;for(let o of e)if(t.add(Yb(o)),t.size>1)return!0;return!1}function K6e(e){return ii(e).process??""}function Vie(e){let t=new Set;for(let o of e)if(t.add(K6e(o)),t.size>1)return!0;return!1}function Ch(e){return ii(e).prices??void 0}function F6(e){return ii(e).inStock!==!1}function Yie(e){let t=ii(e),o=Ht(e)==="tyre"?t.rimDiameters:t.sizes;return Array.isArray(o)?o.filter(n=>typeof n=="number"&&Number.isFinite(n)):[]}function B6(e){return Ht(e)!=="tyre"&&ii(e).badge==="new"}function H6(e){return Ht(e)==="tyre"?[]:(ii(e).finishes??[]).filter(t=>typeof t?.family=="string").map(t=>({family:t.family,color:t.color??null}))}function jie(e){return H6(e).map(t=>t.family)}function cc(e){if(Ht(e)==="tyre")return[];let t=ii(e);return Array.isArray(t.categories)?t.categories:t.process?[t.process]:[]}function qie(e){return Ht(e)==="tyre"?[]:ii(e).spec?.pcds??[]}function Xie(e){return Ht(e)!=="tyre"?[]:ii(e).tyreTypes??[]}function Zie(e){return Ht(e)!=="tyre"?[]:ii(e).speedRatings??[]}function jb(e){if(Ht(e)!=="tyre")return[];let t=ii(e).sizes;return Array.isArray(t)?t.map(o=>lc(typeof o=="string"?o:null)).filter(o=>o!==null):[]}var En=Object.freeze([]);function sd(e,t){return e.length===0?e:e.filter(o=>o.kind===void 0||o.kind===t)}function Jie(e,t){if(t.length===0)return e;let o=cu(t);return du(e.filter(n=>o(n.fieldKey)),n=>n.fieldKey,t,"cardOrder")}function Qie(e,t){let o=t==="filter"?"filterOrder":"cardOrder",n=new Map;for(let r of e){let a=r[o];if(typeof a!="number"||!Number.isFinite(a))continue;let i=n.get(r.fieldKey);(i===void 0||a<i)&&n.set(r.fieldKey,a)}return r=>r?n.get(r):void 0}function D6(e){return z6(e,"spec")}function M6(e,t){if(t.length===0)return e;let o=D6(t),n=e.filter(r=>o(r.fieldKey));return du(n,r=>r.fieldKey,t,"specOrder")}function du(e,t,o,n){let r=new Map;for(let l of o){let d=l[n];typeof d=="number"&&r.set(l.fieldKey,d)}if(r.size===0)return e;let a=[],i=[];e.forEach((l,d)=>{let c=t(l);c&&(a.push(d),i.push({item:l,index:d,order:r.get(c)}))}),i.sort((l,d)=>l.order!==void 0&&d.order!==void 0?l.order-d.order||l.index-d.index:l.order!==void 0?-1:d.order!==void 0?1:l.index-d.index);let s=[...e];return a.forEach((l,d)=>{s[l]=i[d].item}),s.every((l,d)=>l===e[d])?e:s}function cu(e){return z6(e,"card")}function $_(e){return z6(e,"filter")}var qb="collection";function Xb(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":qb},pcds:{"alloy-wheel":"pcd"},tyreTypes:{tyre:"tire_type"},speedRatings:{tyre:"speed_rating"}}[e]?.[t]}function z6(e,t){let o=new Set(e.filter(n=>n[t]===!1).map(n=>n.fieldKey));return n=>!n||!o.has(n)}var pc={inStock:"In stock",outOfStock:"Out of stock",notInStockHere:"Not in stock here"};function ese(e){return e?pc.inStock:pc.outOfStock}import{parseOption as nse}from"efficient-shell/format";function Gr(e){return Number.isInteger(e)?String(e):String(Number(e.toFixed(2)))}var tse=" to ";function W6(e){return e<0?`\u2212${Gr(-e)}`:Gr(e)}function K_(e,t){return e===t?`ET ${W6(e)}`:`ET ${W6(e)}${tse}${W6(t)}`}function _h(e,t){return e===t?`${Gr(e)}"`:`${Gr(e)}"${tse}${Gr(t)}"`}function U6(e){return e==="\u2014"?e:`${e}"`}function y2(e){return typeof e=="number"?String(e):""}function ose(e){let t=y2(e);return t&&`${t} LUG`}function Rh(e){return`${e}-Lug`}function Nh(e){let t=e.spec?.lugs;return typeof t=="number"?t:null}function V_(e){let t=new Set;for(let o of e){let n=Nh(o);n!==null&&t.add(n)}return[...t].sort((o,n)=>o-n)}var ld={recommended:"Recommended","price-asc":"Price \xB7 low to high","price-desc":"Price \xB7 high to low",new:"Newest",name:"Name A\u2013Z"},rse=Object.keys(ld);function Oh(e){return nse(rse,"recommended",e)}function Ah(e){return rse.filter(t=>t!=="recommended"||e.length<=1)}function ase(e,t){let o=Oh(e);return nse(Ah(t),"name",o)}var Zb=["tyreSizes","brands","finishes","diameters","collections","pcds","tyreTypes","speedRatings"],G6={tyreSizes:["tyre"],brands:["alloy-wheel","tyre"],finishes:["alloy-wheel"],diameters:["alloy-wheel","tyre"],collections:["alloy-wheel"],pcds:["alloy-wheel"],tyreTypes:["tyre"],speedRatings:["tyre"]},Y6e={diameters:"tyreSizes"};function ise(e){if(e.length===0)return[];let t=Zb.filter(o=>e.every(n=>G6[o].includes(n)));return t.filter(o=>{let n=Y6e[o];return!n||!t.includes(n)})}function sse(e,t){return t&&e.includes(t)?[t]:[...e]}function lse(e){let t=new Set;for(let o of e)t.add(Ht(o));return[...t]}var nr={tyreSizes:[],brands:[],finishes:[],diameters:[],collections:[],pcds:[],tyreTypes:[],speedRatings:[],priceMax:null,priceMin:null,inStockOnly:!1,kind:null,sort:"recommended",page:1};function Jb(e){return`${j6e(e.width)}\xD7${e.diameter}`}function j6e(e){return Gr(e)}function mc(e,t,o,n=null,r="fail"){let a=Ht(e),i=s=>r==="fail"||(s==="lugs"?a==="alloy-wheel":G6[s].includes(a));if(n!=="kind"&&t.kind&&a!==t.kind)return!1;for(let s of Zb){if(n===s)continue;let l=t[s];if(l.length===0||!i(s))continue;let d=l.map(String);if(!mse(e,s).some(c=>d.includes(c)))return!1}if(n!=="lugs"&&t.lugs&&t.lugs.length>0&&i("lugs")){let s=Nh(e);if(s===null||!t.lugs.includes(s))return!1}return!(n!=="price"&&!__(Ch(e),o,t.priceMin??null,t.priceMax)||n!=="inStock"&&t.inStockOnly&&!F6(e))}function Y_(e,t,o){return e.filter(n=>F6(n)&&mc(n,t,o,"inStock")).length}function dse(e,t,o){let n=[...e],r=(i,s)=>I6(i).localeCompare(I6(s)),a=lse(e).length>1;switch(t){case"price-asc":return n.sort((i,s)=>Mb(Ch(i),Ch(s),o,"asc"));case"price-desc":return n.sort((i,s)=>Mb(Ch(i),Ch(s),o,"desc"));case"name":return n.sort(r);case"new":return n.sort((i,s)=>{let l=(B6(s)?1:0)-(B6(i)?1:0);return l!==0||!a?l:r(i,s)});default:return n}}function cse(e,t,o){return dse(e.filter(n=>mc(n,t,o)),t.sort,o)}function pse(e,t,o){return dse(e.filter(n=>mc(n,t,o,null,"pass")),t.sort,o)}function pu(e){return Zb.some(t=>e[t].length>0)||(e.lugs?.length??0)>0||e.priceMin!=null||e.priceMax!=null||e.inStockOnly||e.kind!=null}var Qb=e=>e.count===0&&!e.checked,$6={tyreSizes:"Size",brands:"Brand",finishes:"Colour",diameters:"Size \xB7 diameter",collections:"Collection",pcds:"PCD \xB7 fitment",tyreTypes:"Tyre type",speedRatings:"Speed rating"};function mse(e,t){switch(t){case"tyreSizes":return[...new Set(jb(e).flatMap(Nae))];case"brands":return Yb(e)?[Yb(e)]:[];case"finishes":return jie(e);case"diameters":return Yie(e).map(String);case"collections":return cc(e);case"pcds":return qie(e);case"tyreTypes":return Xie(e);case"speedRatings":return Zie(e)}}function q6e(e){let t=new Map;for(let o of e)for(let n of H6(o))n.color&&!t.has(n.family)&&t.set(n.family,n.color);return t}function ew(e,t,o,n=lse(e),r=En,a="fail"){let i=p=>X6e(p,n,r),s=q6e(e),d=(a==="pass"?Zb.filter(p=>n.some(m=>G6[p].includes(m))):ise(n)).filter(p=>p!=="tyreSizes").filter(i).map(p=>{let m=t[p].map(String),f=new Set,g=new Map,h=new Map;for(let w of e){let y=mse(w,p);for(let x of y)f.add(x);for(let x of new Set(y))h.set(x,(h.get(x)??0)+1);if(mc(w,t,o,p,a))for(let x of new Set(y))g.set(x,(g.get(x)??0)+1)}let b=[...f].map(w=>({value:w,label:p==="diameters"?`${w}\u2033`:w,count:g.get(w)??0,checked:m.includes(w),swatch:p==="finishes"?s.get(w)??null:null})).sort((w,y)=>{if(p==="diameters")return Number(w.value)-Number(y.value);let x=(h.get(y.value)??0)-(h.get(w.value)??0);return x!==0?x:w.value.localeCompare(y.value)});return{key:p,label:$6[p],options:b}}).filter(p=>p.options.length>Lh),c=[];for(let p of d){let m=Z6e(p.key,n,r);m!==void 0&&c.push({fieldKey:p.key,filterOrder:m})}return[...du(d,p=>p.key,c,"filterOrder")]}var Lh=1;function j_(e){return e.showCollection===!1?["collections"]:[]}function X6e(e,t,o){return t.length===0||o.length===0?!0:t.some(n=>$_(sd(o,n))(Xb(e,n)))}function Z6e(e,t,o){if(o.length===0)return;let n;for(let r of t){let a=Qie(sd(o,r),"filter")(Xb(e,r));a!==void 0&&(n===void 0||a<n)&&(n=a)}return n}function J6e(e){let t=new Set;for(let o of e)for(let n of jb(o))t.add(h2(n));return t.size}function use(e,t){return ise(t).includes("tyreSizes")?J6e(e)>Lh:!1}function fse(e){let t=lc(e);if(t)return t;let[o,n]=e.split("/");return{width:o?Number(o):void 0,profile:n?Number(n):void 0}}function Q6e(e,t,o){return nu.slice(0,nu.indexOf(o)).every(n=>{let r=t[n];return r==null||e[n]===r})}function hse(e,t,o){let n=fse(t.tyreSizes[0]??""),r=new Set(e.filter(a=>mc(a,t,o,"tyreSizes")));return nu.map(a=>{let i=new Map;for(let l of e){let d=jb(l).filter(c=>Q6e(c,n,a));for(let c of new Set(d.map(p=>p[a])))i.has(c)||i.set(c,0),r.has(l)&&i.set(c,(i.get(c)??0)+1)}let s=[...i.keys()].sort((l,d)=>l-d).map(l=>({value:l,label:a==="rim"?`R${l}`:String(l),count:i.get(l)??0}));return{part:a,label:Rae[a],value:n[a]??null,options:s}})}function gse(e,t,o,n){let r={...fse(t)},a=nu.indexOf(o);r[o]=n??void 0;for(let i of nu.slice(a+1))r[i]!=null&&e.some(d=>nu.slice(0,nu.indexOf(i)+1).every(c=>r[c]==null||d[c]===r[c]))||(r[i]=void 0);return h2(r)}function bse(e,t,o,n){if(t.length<2)return[];let r=e.filter(a=>mc(a,o,n,"kind"));return[{kind:null,label:Gie,count:r.length,checked:o.kind===null},...t.map(a=>({kind:a,label:ps[a],count:r.filter(i=>Ht(i)===a).length,checked:o.kind===a}))]}function v2(e,t){return e.map(o=>au(Ch(o),t)).filter(o=>o!==null)}function K6(e){if(e.length===0)return null;let t=Math.floor(Math.min(...e)),o=Math.ceil(Math.max(...e));return o>t?{min:t,max:o}:null}function q_(e,t){return K6(v2(e,t))}function tw(e,t,o){let n=[];e.kind&&n.push({key:"kind",value:e.kind,label:ps[e.kind]}),e.inStockOnly&&n.push({key:"inStock",value:"",label:pc.inStock});for(let r of Zb)for(let a of e[r]){let i=String(a);n.push({key:r,value:i,label:r==="diameters"?`${i}\u2033`:r==="pcds"?`PCD ${i}`:i})}for(let r of e.lugs??[])n.push({key:"lugs",value:String(r),label:Rh(r)});return e.priceMin!=null&&n.push({key:"priceMin",value:"",label:`${Db}${o(e.priceMin,t)}`}),e.priceMax!=null&&n.push({key:"price",value:"",label:`Up to ${o(e.priceMax,t)}`}),n}var Ia={tyreSizes:"tyreSize",brands:"brand",finishes:"colour",diameters:"size",collections:"collection",pcds:"pcd",tyreTypes:"tyreType",speedRatings:"speed"},mu="type",wse="maxPrice",xse="minPrice",yse="inStock",vse="sort",kse="page";function k2(e){let t=typeof e=="string"?new URLSearchParams(e):e,o=s=>t.getAll(s).flatMap(l=>l.split(",")).filter(Boolean),n=Number(t.get(wse)),r=Number(t.get(xse)),a=Number(t.get(kse)),i=t.get(mu);return{tyreSizes:o(Ia.tyreSizes),brands:o(Ia.brands),finishes:o(Ia.finishes),diameters:o(Ia.diameters).map(Number).filter(Number.isFinite),collections:o(Ia.collections),pcds:o(Ia.pcds),tyreTypes:o(Ia.tyreTypes),speedRatings:o(Ia.speedRatings),priceMax:Number.isFinite(n)&&n>0?n:null,priceMin:Number.isFinite(r)&&r>0?r:null,inStockOnly:t.get(yse)==="1",kind:Ai.find(s=>s===i)??null,sort:Oh(t.get(vse)),page:Number.isFinite(a)&&a>=1?Math.floor(a):1}}function cl(e){let t=new URLSearchParams;for(let o of Zb){let n=e[o];n.length>0&&t.set(Ia[o],n.join(","))}return e.priceMin!=null&&t.set(xse,String(e.priceMin)),e.priceMax!=null&&t.set(wse,String(e.priceMax)),e.inStockOnly&&t.set(yse,"1"),e.kind&&t.set(mu,e.kind),e.sort!=="recommended"&&t.set(vse,e.sort),e.page>1&&t.set(kse,String(e.page)),t}function S2(e){return cl(k2(e)).toString()}function Sse(e,t){if(e<=7)return Array.from({length:e},(a,i)=>i+1);let o=[1],n=Math.max(2,t-1),r=Math.min(e-1,t+1);n>2&&o.push(null);for(let a=n;a<=r;a++)o.push(a);return r<e-1&&o.push(null),o.push(e),o}function Tse(e,t,o){let n=e.length,r=Math.max(1,Math.floor(o)),a=Math.max(1,Math.ceil(n/r)),i=Math.min(Math.max(1,Math.floor(t)),a),s=(i-1)*r;return{items:e.slice(s,s+r),page:i,pageCount:a,total:n,from:n===0?0:s+1,to:Math.min(s+r,n)}}import{isNode as Ese}from"efficient-easel/data";var Li="FilterBlock",uu="FilterChipsBlock",pa="ProductGrid",xr="ProductHero",So="AlloyWheelsListing",yr="MenuBlock";function eBe(e){let t=e??{},o=[];Array.isArray(t.content)&&o.push(t.content);for(let n of Object.values(t.zones??{}))Array.isArray(n)&&o.push(n);return o}function T2(e){let t=[],o=(n,r)=>{let a=[n,...r];for(let i of n)Ese(i)&&(t.push({node:i,order:t.length,lists:a}),P4(i,s=>(o(s,a),s)))};for(let n of eBe(e))o(n,[]);return t}function uc(e){return T2(e).map(t=>t.node)}function Np(e,t){let o=a=>t(P4(a,i=>E4(i,n)),a),n=a=>o(a);return MY(e,a=>E4(a,i=>Ese(i)?o(i):i))}var dd="/wheels",V6="Products";function tBe(e,t){return t>1?`${V6} \xB7 ${e}`:V6}function Pse(...e){for(let t of[So,Li])for(let o of e){let n=uc({content:o?.content}).find(r=>r.type===t);if(n)return n.props??{}}return null}function Y6(...e){return Pse(...e)!==null}function oBe(e,t){let o=e.filter(n=>Y6(...n.docs)).map(n=>Tp(n.slug));return t.fallback&&!o.includes(dd)?[...o,dd]:o}var Cse=[mu,...Object.entries(Ia).filter(([e])=>e!=="tyreSizes").map(([,e])=>e)];function fu(e){let t=e.indexOf("#"),o=t===-1?"":e.slice(t),n=t===-1?e:e.slice(0,t),r=n.indexOf("?");return{path:r===-1?n:n.slice(0,r),query:r===-1?"":n.slice(r+1),hash:o}}function nBe(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return e}}function j6(e){let t=new URLSearchParams(fu(e).query);for(let o of Cse){let n=t.get(o);if(n)return{param:o,value:n}}return null}function Ih(e,t){let{path:o,query:n,hash:r}=fu(e),a=n.split("&").filter(i=>i&&!Cse.includes(nBe(i.split("=")[0])));return t?.value&&a.push(`${encodeURIComponent(t.param)}=${encodeURIComponent(t.value)}`),`${o}${a.length?`?${a.join("&")}`:""}${r}`}function _se(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 rBe="Product type",aBe="AUD";function iBe(e,t){let o=t.listing??{},n=id(o.kinds),r=e.filter(l=>n.includes(Ht(l))),a=j_(o),i=ew(r,nr,aBe,n,t.fieldUsage).filter(l=>!a.includes(l.key)).map(l=>({param:Ia[l.key],label:l.label,values:l.options.filter(d=>!d.value.includes(",")).map(d=>({value:d.value,label:d.label}))})).filter(l=>l.values.length>0),s=Ai.filter(l=>n.includes(l)&&r.some(d=>Ht(d)===l));return s.length>1&&i.unshift({param:mu,label:rBe,values:s.map(l=>({value:l,label:ps[l]}))}),i}function Rse(e){return t=>{let o=oBe(t,{fallback:e.offersCommerce}),n=t.filter(r=>Y6(...r.docs)).length;return{listingPaths:o,pageOptions:r=>{let a=r.map(i=>{let s=t.find(l=>Tp(l.slug)===i.value);return s&&Y6(...s.docs)?{...i,label:tBe(s.title,n)}:i});return n===0&&e.offersCommerce&&!a.some(i=>i.value===dd)&&a.push({value:dd,label:V6}),a},filtersFor:r=>{if(!o.includes(r))return null;let a=t.find(i=>Tp(i.slug)===r);return iBe(e.catalogue,{listing:a?Pse(...a.docs):null,fieldUsage:e.fieldUsage})},readFilter:j6,withFilter:Ih}}}function Nse(e,t=[]){let o=Ih(dd,{param:mu,value:e}),n=t.find(r=>{let a=(r?.url??"").trim();if(!a||a==="#")return!1;let i=j6(a);return i?.param!==mu||i.value!==e?!1:GF(a).startsWith("/")});return n?n.url:o}function Ose(e){let t=[];for(let o of e??[]){typeof o?.url=="string"&&t.push({url:o.url});for(let n of o?.dropdownItems??[])typeof n?.url=="string"&&t.push({url:n.url})}return t}import{jsx as cBe}from"react/jsx-runtime";var Ase=sBe([]);function Lse({items:e,children:t}){let o=dBe(()=>Ose(e),[e]);return cBe(Ase.Provider,{value:o,children:t})}function Ise(){return lBe(Ase)}import{createContext as hBe,useCallback as gBe,useContext as bBe}from"react";import{parseOption as pBe}from"efficient-shell/format";var mBe=["international","us"],Fse={tyre:"tire",tyres:"tires",colour:"color",colours:"colors",centre:"center",centres:"centers",catalogue:"catalog",catalogues:"catalogs",enquire:"inquire",enquiry:"inquiry",enquiries:"inquiries",aluminium:"aluminum",honour:"honor",honoured:"honored"},uBe=new RegExp(`\\b(${Object.keys(Fse).sort((e,t)=>t.length-e.length).join("|")})\\b`,"gi");function Bse(e){return pBe(mBe,"international",e)}function fBe(e,t){return e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t[0].toUpperCase()+t.slice(1):t}function Hse(e,t){return t!=="us"?e:e.replace(uBe,o=>fBe(o,Fse[o.toLowerCase()]))}import{jsx as wBe}from"react/jsx-runtime";var Dse=hBe("international");function Mse({variant:e,children:t}){return wBe(Dse.Provider,{value:e,children:t})}function ms(){let e=bBe(Dse);return gBe(t=>Hse(t,e),[e])}import{createContext as xBe,useCallback as q6,useContext as yBe,useEffect as vBe,useMemo as kBe,useState as SBe}from"react";import{jsx as EBe}from"react/jsx-runtime";var TBe={isOpen:!1,open:()=>{},close:()=>{},toggle:()=>{}},zse=xBe(TBe);function Wse({children:e,shortcut:t=!0}){let[o,n]=SBe(!1),r=q6(()=>n(!0),[]),a=q6(()=>n(!1),[]),i=q6(()=>n(l=>!l),[]);vBe(()=>{if(!t)return;let l=d=>{(d.metaKey||d.ctrlKey)&&(d.key==="k"||d.key==="K")&&(d.preventDefault(),n(c=>!c))};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[t]);let s=kBe(()=>({isOpen:o,open:r,close:a,toggle:i}),[o,r,a,i]);return EBe(zse.Provider,{value:s,children:e})}function ow(){return yBe(zse)}import{createContext as PBe,useCallback as Z_,useContext as CBe,useMemo as _Be,useState as J6}from"react";function Use({email:e,firstName:t,interests:o,frequency:n},r){return{email:e.trim(),firstName:t?.trim()||void 0,interests:o&&o.length?o:void 0,frequency:n||void 0,source:r}}var Ii={popup:"shop_popup",subscribeSection:"subscribe_section",subscribeBlogsSection:"subscribe_blogs_section",footerSignup:"footer_signup",stockAlertOptIn:"stock_alert_optin"};import{toDateKey as ICt}from"efficient-shell/format";var ACt=1440*60*1e3;function Gse(e){return e===bh?{seen:"storefront-subscribe-seen",closedAt:"storefront-popup-closed-at",sentAt:"storefront-popup-sent-at"}:{seen:`storefront-popup:${e}:seen`,closedAt:`storefront-popup:${e}:closed-at`,sentAt:`storefront-popup:${e}:sent-at`}}function X6(e){let t=e.split(/[?#]/)[0]||"/",o=t.startsWith("/")?t:`/${t}`;return o.length>1?o.replace(/\/+$/,"")||"/":o}function Z6(e,t,o){let n=Gse(e);t.session.setItem(n.seen,"1"),t.local.setItem(n.closedAt,String(o))}function $se(e,t,o){Z6(e,t,o),t.local.setItem(Gse(e).sentAt,String(o))}var X_={session:Zne,local:da};import{jsx as RBe}from"react/jsx-runtime";var Kse=PBe(null);function Vse({children:e}){let[t,o]=J6(!1),[n,r]=J6("chosen"),[a,i]=J6({}),s=Z_(m=>{i(m??{}),r("newsletter"),o(!0)},[]),l=Z_(()=>{i({}),r("chosen"),o(!0)},[]),d=Z_(()=>$se(bh,X_,Date.now()),[]),c=Z_(()=>{o(!1),Z6(bh,X_,Date.now())},[]),p=_Be(()=>({isOpen:t,mode:n,open:s,openByItself:l,close:c,markSent:d,prefillEmail:a.email??"",signupSource:a.source??Ii.popup}),[t,n,s,l,c,d,a]);return RBe(Kse.Provider,{value:p,children:e})}function J_(){let e=CBe(Kse);if(!e)throw new Error("useSubscribePopup() must be called inside <SubscribePopupProvider>. Mount the provider in app/layout.tsx.");return e}import{createContext as NBe,useContext as OBe,useEffect as ABe,useState as Yse}from"react";import{jsx as IBe}from"react/jsx-runtime";var jse="storefront-wishlist";function LBe(e){let t=JSON.parse(e);return Array.isArray(t)?t.filter(o=>typeof o=="string"):[]}var qse=NBe(null);function Xse({children:e}){let[t,o]=Yse([]),[n,r]=Yse(!1);ABe(()=>{let s=da.getItem(jse);try{s&&o(LBe(s))}catch{}r(!0)},[]);function a(s){let l=t.includes(s)?t.filter(d=>d!==s):[...t,s];o(l),da.setItem(jse,JSON.stringify(l))}let i={slugs:t,ready:n,has:s=>t.includes(s),toggle:a,count:t.length};return IBe(qse.Provider,{value:i,children:e})}function Zse(){let e=OBe(qse);if(!e)throw new Error("useWishlist must be used within a WishlistProvider");return e}import{jsx as Op}from"react/jsx-runtime";function Q6({catalogFilterLabels:e,englishVariant:t,menuItems:o,currency:n,searchShortcut:r=!0,children:a}){let i=MP(),s=ai(),l=i.pagePath!==void 0?i.pagePath:s??null,d=FBe(()=>({...i,pagePath:l}),[i,l]);return Op(DP,{runtime:d,children:Op(Mse,{variant:Bse(t),children:Op(Uie,{labels:e,children:Op(Lse,{items:o,children:Op(iu,{...n,children:Op(Vse,{children:Op(Xse,{children:Op(Wb,{children:Op(Wse,{shortcut:r,children:a})})})})})})})})})}import{jsx as Fi}from"react/jsx-runtime";import{useCallback as ele,useEffect as Q_,useMemo as E2,useRef as DBe,useState as P2}from"react";import{lazy as BBe,Suspense as HBe}from"react";import{jsx as Jse}from"react/jsx-runtime";function nw(e,t={}){let o=BBe(async()=>{let a=await e();return{default:"default"in a?a.default:a}}),n=t.loading?t.loading():null;function r(a){return Jse(HBe,{fallback:n,children:Jse(o,{...a})})}return r}import"efficient-easel/easel.css";import"efficient-easel/shell.css";import"efficient-easel/rail.css";import"efficient-easel/panel.css";import"efficient-easel/fields.css";import"efficient-easel/pick.css";import"efficient-easel/copy.css";import"efficient-easel/gold.css";import"efficient-easel/text-styles.css";import"efficient-easel/menu.css";import"efficient-easel/chrome.css";import"efficient-easel/tree.css";import"efficient-easel/screen.css";import{ScreenDocumentContext as MBe}from"efficient-easel/screen/components/ScreenDocumentContext";import{PreviewPartsProvider as zBe}from"efficient-easel/draw/client";import{sectionTemplates as eB}from"efficient-easel/screen/lib/section-templates";import{nodeToDoc as WBe,docToNode as tle}from"efficient-easel/screen/lib/document/section-doc";import{newNodeId as UBe}from"efficient-easel/draw";import{NO_BRIDGED_CAPABILITIES as GBe,useAdminBridge as $Be}from"efficient-easel/screen/lib/admin-bridge";import{useEaselHost as KBe}from"efficient-easel/screen/lib/host";import{ChromeWrap as VBe}from"efficient-easel/screen/lib/host-chrome";import{sessionRegistry as YBe}from"efficient-easel/screen/lib/session";import{useEaselSession as jBe}from"efficient-easel/screen/lib/session-context";async function Qse(e,t,o){let n=!1;try{n=await e()}catch{}return n?(t(),"switched"):(o(),"refused")}import{routeSharedHostMessage as qBe}from"efficient-easel/screen/lib/host-inbound";import{documentPermissions as XBe}from"efficient-easel/edit-lock";import{useAutosave as ZBe}from"efficient-easel/autosave";import{saveStatusOf as JBe}from"efficient-easel/screen/lib/document-switch";import{parseOption as QBe}from"efficient-shell/format";import{LoadingSpinner as eHe}from"efficient-shell/ui";var tHe=nw(()=>import("./chunks/SiteEditorProvider-FT3P5QZM.js"),{ssr:!1}),oHe=nw(()=>import("efficient-easel/screen/components/SectionScreenShell"),{ssr:!1}),nle="Hero",ole="Untitled section";function nHe(e,t){let o=t.components,n=o[e]?e:nle,r=o[n]?.defaultProps??{},a=Uee(n,s=>o[s]?.defaultProps??{}),i=n===Rre?{blocks:Nre()}:null;return{type:n,props:{id:UBe(n),...r,...a?{[a.slot]:a.children}:null,...i}}}function rHe(){if(typeof window>"u")return Vd;try{let e=window.localStorage.getItem(Pv);return QBe(IE,Vd,e)}catch{return Vd}}function rle({id:e,initialType:t,initialName:o=ole}){let[n,r]=P2(e),a=DBe(n);Q_(()=>{a.current=n},[n]);let i=KBe(),[s,l]=P2(t),[d,c]=P2(o),[p,m]=P2(void 0),[f,g]=P2(Vd),{token:h,tokenRef:b}=$Be({onMessage:_=>{if(z_(_)||qBe(_))return;let F=_;if(F?.type==="storefront-editor:navigate"&&F.target?.kind==="section"&&F.target.id){let K=F.target.id;if(K===a.current)return;let V=F.target.type,Z=F.target.name;Qse(k,()=>{l(V),c(Z||ole),r(K),i.address.show({kind:"section",id:K})},()=>i.send("storefront-editor:save-failed"))}}}),w=ZBe({save:_=>d6(eB,_.id,_.node).then(()=>{}),onFailure:(_,F)=>{F===0&&i.send("storefront-editor:save-failed")}}),{state:y,push:x,flush:k}=w;Q_(()=>g(rHe()),[]);let v=jBe(),S=v.usesBridgedToken?!!h:!0,E=E2(()=>cne(YBe(v),dq(v)),[v]);Q_(()=>{if(!S)return;let _=!1;return m(void 0),eB.ensure(n,d,nHe(s??nle,E)).then(F=>!_&&m(F.node)).catch(()=>!_&&m(null)),()=>{_=!0}},[n,s,d,S,E]);let T=ele(_=>{i.send("storefront-editor:dirty");let F=tle(_);F&&x({id:a.current,node:F})},[x,i]),C=i.send,P=ele(async _=>{try{return await _(b.current??""),!0}catch{return C("storefront-editor:save-failed"),!1}},[C]),B=E2(()=>B_(E,!0),[E]);Q_(()=>(vF(null),()=>vF(null)),[]);let M=E2(()=>p?i_(WBe(p)):null,[p]),I=E2(()=>({target:{kind:"page",slug:""},adapter:m2(void 0),capabilities:m2(void 0).capabilities,templateId:null,currentSlug:"",currentKind:null,siteId:null,ready:S,token:h,tokenRef:b,notifyParent:C,runAuthed:P,docId:n,data:M,getLiveData:()=>M,error:null,redirecting:!1,saveStatus:JBe(y),saveState:y,autoSaveEnabled:!0,autoSaveStoppedByConflict:!1,hasUnsavedEdits:y.pending,toggleAutoSave:()=>{},retrySave:()=>{w.retryNow()},onChange:T,flushSave:k,onPublish:async _=>{let F=tle(_);F&&await d6(eB,a.current,F)},bridgeCapabilities:GBe,access:{kind:"editing"},readOnly:!1,takeOverEditing:()=>{},viewReadOnly:()=>{},saveConflict:null,reloadFromServer:()=>{},navigate:()=>{},pendingNav:null,cancelPendingNav:()=>{},discardAndNavigate:()=>{},saveAndNavigate:async()=>{}}),[n,S,h,C,P,M,y,T,k,w.retryNow]),A=E2(()=>XBe(!I.readOnly),[I.readOnly]);return p===void 0?Fi(eHe,{label:u("Loading\u2026")}):p===null||!M?Fi("div",{className:"sf-msg sf-msg--error",children:u("Couldn\u2019t open this section.")}):Fi(MBe.Provider,{value:I,children:Fi(H_,{children:Fi(LC,{themeMode:f,chromePlaceholder:!0,children:Fi(VBe,{wrap:v.chrome?.wrap,surface:"section",children:Fi(vC,{children:Fi(s_,{children:Fi(zBe,{children:Fi(SC,{children:Fi(D_,{children:Fi(yC,{children:Fi(tHe,{config:B,data:M,onChange:T,permissions:A,children:Fi(oHe,{})},n)})})})})})})})})})})}import{EaselHostProvider as mTt}from"efficient-easel/screen/lib/host";import{MediaPanelProvider as uTt}from"efficient-easel/screen/lib/media-panel";import{useEffect as p8e}from"react";import{useEffect as xHe,useState as yHe}from"react";import{createContext as aHe,useCallback as ale,useContext as iHe,useEffect as sHe,useId as lHe,useMemo as dHe,useRef as cHe,useState as pHe}from"react";import{jsx as mHe}from"react/jsx-runtime";var ile=aHe(null);function sle({reason:e,children:t}){let[o,n]=pHe([]),r=cHe(null),a=ale(d=>{n(c=>c.includes(d)?c:[...c,d])},[]),i=ale(d=>{n(c=>c.filter(p=>p!==d))},[]),s=e==="none-configured",l=dHe(()=>({noCurrencyConfigured:s,live:o,firstRendered:r,join:a,leave:i}),[s,o,a,i]);return mHe(ile.Provider,{value:l,children:t})}function lle(e){let t=iHe(ile),o=lHe(),n=!!e&&!!t?.noCurrencyConfigured;n&&t&&t.firstRendered.current===null&&(t.firstRendered.current=o);let r=t?.join,a=t?.leave;return sHe(()=>{if(!(!n||!r||!a))return r(o),()=>a(o)},[n,r,a,o]),!n||!t?!1:(t.live.length>0?t.live[0]:t.firstRendered.current)===o}var _2={currencies:[],defaultCurrency:null},uHe={currencies:[],defaultCurrency:null,reason:"none-configured"},C2=new Map;function dle(e,t,o=!1){o&&C2.delete(t);let n=C2.get(t);return n||(n=fHe(e,t),C2.set(t,n),n.catch(()=>{C2.get(t)===n&&C2.delete(t)})),n}async function fHe(e,t){try{let o=await u_(e,t);if(!o)return _2;let n=await Fo.getSiteBySlug(o);return n.status!=="online"?await hHe(e,t):{currencies:n.currencies??[],defaultCurrency:n.defaultCurrency??null}}catch(o){return console.warn("[editor-currency-source] load failed; editor stays unpriced",o),_2}}async function hHe(e,t){let o=await Ne.listSiteCurrencies(t,e);if(!o.length)return uHe;let n=[...o].sort((r,a)=>r.display_order-a.display_order).map(r=>({code:r.currency_code,symbol:r.symbol||wHe(r.currency_code),decimalPlaces:typeof r.decimal_places=="number"?r.decimal_places:bHe(r.currency_code),isDefault:r.is_default}));return{currencies:n,defaultCurrency:n.find(r=>r.isDefault)?.code??n[0].code}}var gHe=0;function cle(e){try{return Pae(e)}catch{return null}}function bHe(e){return cle(e)?.resolvedOptions().maximumFractionDigits??gHe}function wHe(e){return cle(e)?.formatToParts(0).find(n=>n.type==="currency")?.value||e}import{jsx as ple}from"react/jsx-runtime";function tB({token:e,siteId:t,enabled:o,children:n}){let[r,a]=yHe(_2);return xHe(()=>{if(!e||!o||!t){a(_2);return}let i=!1;return dle(e,t).then(s=>{i||a(s)}).catch(()=>{}),()=>{i=!0}},[e,o,t]),ple(iu,{currencies:r.currencies,defaultCurrency:r.defaultCurrency,children:ple(sle,{reason:r.reason,children:n})})}var Fh=new Map,oB=e=>e??"";function Bh(e,t,o=!1){let n=oB(t);o&&Fh.delete(n);let r=Fh.get(n);return r||(r=Ne.getHeaderSettings(e,t??void 0),Fh.set(n,r),r.catch(()=>{Fh.get(n)===r&&Fh.delete(n)})),r}function mle(e,t){Fh.set(oB(t),Promise.resolve(e))}function ule(e){Fh.delete(oB(e))}function R2(e){return{logoUrl:tc(e.effective_logo_url),reverseLogo:e.reverse_logo,logoPosition:e.logo_position,logoSize:e.logo_size,logoSizePx:e.logo_size_px,logoSizeUnit:e.logo_size_unit??null,menuItems:e.menu_items??[],menuSplit:e.menu_split??3,menuPosition:e.menu_position,menuRow:e.menu_row,menuGapPx:e.menu_gap_px??null,menuGapUnit:e.menu_gap_unit??null,searchEnabled:e.search_enabled,searchPosition:e.search_position,searchRow:e.search_row,countrySelectorEnabled:e.country_selector_enabled,countrySelectorShowAs:e.country_selector_show_as,countryUrls:e.country_urls??{},accountEnabled:e.account_enabled??!0,cartEnabled:e.cart_enabled??!0,utilStyle:e.util_style,navTextCase:e.nav_text_case,lightReverseText:e.light_reverse_text,topTextColor:e.top_text_color,transparentTop:e.transparent_top,surface:e.surface,theme:e.theme,width:e.width,heightPx:e.height_px,sticky:e.sticky,callButton:e.call_button??!1}}import{useEffect as fle,useRef as nB}from"react";function eR({token:e,enabled:t=!0,deps:o=[],prime:n,onDisabled:r,refresh:a}){let i=nB(n);i.current=n;let s=nB(r);s.current=r;let l=nB(a);l.current=a,fle(()=>{if(!e||!t){s.current?.();return}let d=!1;return i.current.load().then(c=>{d||i.current.publish(c)}).catch(()=>{}),()=>{d=!0}},[e,t,...o]),fle(()=>{if(!e||!t||!l.current)return;let d=!1,c=l.current.subscribe(()=>{let p=l.current;p&&p.load().then(m=>{d||p.publish(m)}).catch(()=>{})});return()=>{d=!0,c()}},[e,t,...o])}function rB({token:e,siteId:t}){let{primeSettings:o,setSettings:n}=zn();return eR({token:e,deps:[t],prime:{load:()=>Bh(e,t),publish:r=>o(R2(r))},refresh:{subscribe:lu,load:()=>Bh(e,t,!0),publish:r=>n(R2(r))}}),null}import{createContext as vHe,useCallback as yle,useContext as kHe,useMemo as SHe,useState as THe}from"react";var N2=new Map,hle=e=>e??"";function aB(e,t,o){o&&N2.clear();let n=hle(t),r=N2.get(n);if(!r){let a=Ne.listMenus(e,t);N2.set(n,a),a.catch(()=>{N2.get(n)===a&&N2.delete(n)}),r=a}return r}var tR=new Map;function gle(e,t){let o=hle(t),n=tR.get(o);if(!n){let r=aB(e,t,!0);tR.set(o,r);let a=()=>{tR.get(o)===r&&tR.delete(o)};r.then(a,a),n=r}return n}function O2(e,t=!1){return aB(e,Sn(),t)}function oR(e){return gle(e,Sn())}function ble(e,t=!1){return aB(e,null,t)}function wle(e){return gle(e,null)}var iB={ids:new Set,handles:new Set};function sB(e){return{ids:new Set(e.map(t=>t.id).filter(Boolean)),handles:new Set(e.map(t=>t.handle).filter(Boolean))}}function xle({id:e,handle:t,editing:o,ready:n,live:r}){if(!o)return!1;let a=e??"",i=t??"";return!a&&!i?!0:n?a?!r.ids.has(a):!r.handles.has(i):!1}function nR(e,t){if(t){if(t.id)return e.find(o=>o.id===t.id);if(t.handle)return e.find(o=>o.handle===t.handle)}}import{jsx as EHe}from"react/jsx-runtime";var vle=vHe({live:iB,ready:!1,primeLive:()=>{},setLive:()=>{}});function lB({children:e}){let[t,o]=THe({live:iB,ready:!1}),n=yle(i=>o(s=>s.ready?s:{live:i,ready:!0}),[]),r=yle(i=>o({live:i,ready:!0}),[]),a=SHe(()=>({...t,primeLive:n,setLive:r}),[t,n,r]);return EHe(vle.Provider,{value:a,children:e})}var rR=()=>kHe(vle);function aR({token:e}){let{primeLive:t,setLive:o}=rR();return eR({token:e,prime:{load:()=>O2(e),publish:n=>t(sB(n))},refresh:{subscribe:lu,load:()=>oR(e),publish:n=>o(sB(n))}}),null}import{readLockHolder as YHe}from"efficient-easel/edit-lock";var cB="/api/storefront/section-templates/",dB=e=>`${cB}${encodeURIComponent(e)}/`,pB=e=>e.node!=null;function iR(e){if(!pB(e))throw new Error(`Section template ${e.id} has no design`);return e}var uB=(e,t)=>e instanceof or&&e.status===t;function PHe(e){return{list:()=>Lb(`${cB}?no_page=true`,{token:e()}).then(f_),get:t=>Lb(dB(t),{token:e()}).catch(o=>{if(uB(o,404))return null;throw o}),create:t=>Lb(cB,{method:"POST",token:e(),body:JSON.stringify(t)}),patch:(t,o)=>Lb(dB(t),{method:"PATCH",token:e(),body:JSON.stringify(o)}),remove:t=>Lb(dB(t),{method:"DELETE",token:e()})}}var mB="sf:section-templates",kle=`${mB}.imported`,CHe="Untitled section",_He=160,sR=e=>(typeof e=="string"?e.trim().slice(0,_He):"")||CHe;function RHe(e){try{let t=JSON.parse(e);return Array.isArray(t)?t.filter(o=>{let n=o?.node;return typeof o?.id=="string"&&typeof n?.type=="string"}):[]}catch{return[]}}async function NHe(e,t=da){let o={created:0,seeded:0,left:0,skipped:0,kept:!1},n=t.getItem(mB);if(n===null)return o;for(let r of RHe(n))try{let a=await e.get(r.id);if(a)a.node==null?(await e.patch(r.id,{node:r.node}),o.seeded+=1):o.left+=1;else try{await e.create({id:r.id,name:sR(r.name),node:r.node}),o.created+=1}catch(i){if(!uB(i,400))throw i;o.skipped+=1}}catch{return{...o,kept:!0}}return t.setItem(kle,n),t.getItem(kle)===n&&t.removeItem(mB),o}var lR=class{constructor(t,o=da){this.readToken=t;this.storage=o;this.imported=null;this.http=PHe(t)}ready(){return this.imported?this.imported:this.readToken()?(this.imported=NHe(this.http,this.storage).catch(()=>{}),this.imported):Promise.resolve()}async list(){return await this.ready(),(await this.http.list()).filter(pB)}async get(t){return await this.ready(),this.http.get(t)}async ensure(t,o,n){await this.ready();let r=async i=>i?pB(i)?i:iR(await this.http.patch(t,{node:n})):null,a=await r(await this.http.get(t));if(a)return a;try{return iR(await this.http.create({id:t,name:sR(o),node:n}))}catch(i){if(uB(i,400)){let s=await r(await this.http.get(t));if(s)return s}throw i}}async save(t,o){return await this.ready(),iR(await this.http.create({name:sR(t),node:o}))}async update(t,o){return await this.ready(),iR(await this.http.patch(t,{node:o}))}async rename(t,o){return await this.ready(),this.http.patch(t,{name:sR(o)})}async remove(t){await this.ready(),await this.http.remove(t)}};import{parseOption as WHe}from"efficient-shell/format";var gu={days:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],shortDays:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],closed:"Closed",openNow:"Open now",until:"until",opens:"opens",today:"today",am:"am",pm:"pm"},hu=1440,OHe=/^\s*(\d)\s*:\s*(\d{1,4})\s*-\s*(\d{1,4})\s*$/;function AHe(e){let t=Array.from({length:7},()=>[]),o=!1;for(let n of(e??"").split(";")){let r=OHe.exec(n);if(!r)continue;let a=Number(r[1]),i=Number(r[2]),s=Number(r[3]);a>6||i>hu-1||s<=i||s>2*hu-1||s-i>hu||(t[a].push({opens:i,closes:s}),o=!0)}if(!o)return null;for(let n of t)n.sort((r,a)=>r.opens-a.opens);return t}function Sle(e){let t=e[0];if(!t)return null;let o=AHe(t.week??"");return{week:o,zone:o?(t.zone??"").trim():"",hours:(t.hours??"").split(/\r?\n/).map(n=>n.trim()).filter(Boolean)}}function dR(e){let t=(e%hu+hu)%hu,o=Math.floor(t/60),n=t%60,r=o%12||12,a=o<12?gu.am:gu.pm;return n?`${r}:${String(n).padStart(2,"0")} ${a}`:`${r} ${a}`}var LHe=e=>`${dR(e.opens)} \u2013 ${dR(e.closes)}`,IHe={Mon:0,Tue:1,Wed:2,Thu:3,Fri:4,Sat:5,Sun:6};function FHe(e){let t=dl(e);return t?new Intl.DateTimeFormat("en-US",{weekday:"short",hour:"2-digit",minute:"2-digit",hourCycle:"h23",timeZone:t}):null}function Tle(e,t){let o=FHe(e);if(!o)return null;let n=o.formatToParts(t),r=i=>n.find(s=>s.type===i)?.value??"",a=Number(r("hour"))%24;return{day:IHe[r("weekday")]??0,minute:a*60+Number(r("minute"))}}function Ele(e,t){let{day:o,minute:n}=t,r=e[o]??[],a=r.find(d=>d.opens<=n&&n<d.closes);if(a)return{open:!0,until:a.closes};let s=(e[(o+6)%7]??[]).find(d=>d.closes>hu&&n+hu<d.closes);if(s)return{open:!0,until:s.closes};let l=r.find(d=>d.opens>n);if(l)return{open:!1,next:{inDays:0,day:o,opens:l.opens}};for(let d=1;d<=7;d+=1){let c=(o+d)%7,p=e[c]?.[0];if(p)return{open:!1,next:{inDays:d,day:c,opens:p.opens}}}return{open:!1,next:null}}function Ple(e){let t=gu;if(e.open)return`${t.openNow} \xB7 ${t.until} ${dR(e.until)}`;if(!e.next)return t.closed;let o=e.next.inDays===0?t.today:t.shortDays[e.next.day];return`${t.closed} \xB7 ${t.opens} ${o} ${dR(e.next.opens)}`}function Cle(e){return e.map((t,o)=>({day:o,name:gu.days[o],periods:t.map(LHe).join(", "),closed:t.length===0}))}var cR="0:600-1560;1:600-1560;2:600-1560;3:600-1560;4:600-1620;5:600-1620;6:600-1500",_le={day:0,minute:1200};var A2="pick";var pR="product-reviews";var hB="text-[13px]";var us=(e,t)=>typeof e.id=="string"&&e.id.trim()?e.id:t,si=(e,t)=>(o,n)=>n==="0"?`${e}~${t}`:`${e}~${t}.${n.slice(2)}`;function fs(e,t,o,n){return e[t]!==void 0?e:{...e,[t]:n(us(e,o))}}var Hh="MenuLinkBlock";function Rle(e){return Lo([{type:Hh}],()=>`${e}~link`)}var gB="blog-categories",rw="count",HHe={...ze,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,sharePhone:"content",wrapPhone:!1,name:"Card"},DHe="main",MHe={size:13,lineHeight:1,color:DHe};function Nle(e){let t={0:`${e}~card`,"0.0":`${e}~link`,"0.1":`${e}~count`};return Lo([{type:ce,props:HHe,slots:{[Ce]:[{type:Hh},Re(rw,{...Ge,tag:"p"},MHe)]}}],(o,n)=>t[n]??`${e}~${n}`)}var Ole=e=>us(e,"Menu"),Ale=e=>lt(e)===gB,Lle=e=>(Ale(e)?Nle:Rle)(Ole(e)),zHe=(e,t)=>Array.isArray(e)&&e.length===t.length&&JSON.stringify(e)===JSON.stringify(t);function bB(e){let t=e.template;if(!Array.isArray(t)||t.length!==1)return e;let o=t[0]?.type;if(o!==Hh&&o!==ce)return e;let n=Ole(e),a=Ale(e)?Rle(n):Nle(n);return zHe(t,a)?{...e,template:Lle(e)}:e}function Ile(e){return e.template!==void 0?bB(e):{...e,template:Lle(e)}}var UHe=[{key:"group-offices",label:"Group offices",blocks:["Footprint"]},{key:pR,label:"Product reviews",blocks:["Reviews"]}];T4(UHe);var wB="+00 000 0000",Fle={rooms:()=>[{key:"sample-1",title:u("First room"),excerpt:u("What this room has.")},{key:"sample-2",title:u("Second room"),excerpt:u("What this room has.")},{key:"sample-3",title:u("Third room"),excerpt:u("What this room has.")}],"location-contact":()=>[{key:"location",name:u("Location name"),address:u("Street address"),state:u("State"),country:u("Country"),phone:wB,hours:u("Opening hours")}],"location-cards":()=>[{key:"where",name:u("Address"),note:u("Street address")},{key:"hours",name:u("Opening hours"),note:u("A line about it appears here.")},{key:"call",name:u("Phone"),note:wB}],"location-footer":()=>[{text:u("Street address")},{text:wB},{text:u("Opening hours")}],"location-rate-table":()=>{let e=t=>JSON.stringify([{column:u("Standard"),amount:"$000",standard:!1},{column:u("VIP"),amount:"$000",standard:t}]);return[{group:u("In-house"),label:u("Session \xB7 60 min"),cells:e(!1)},{group:u("In-house"),label:u("Session \xB7 60 min \xB7 Night"),cells:e(!0)},{group:u("Away"),label:u("Session \xB7 60 min"),cells:e(!1)}]},"location-opening":()=>[{week:cR,zone:"Australia/Sydney",hours:""}],"site-messaging":()=>[{app:"wechat",name:"WeChat",handle:"yourvenue",href:"",qr:"https://u.wechat.com/yourvenue"},{app:"telegram",name:"Telegram",handle:"@yourvenue",href:"https://t.me/yourvenue",qr:"https://t.me/yourvenue"},{app:"whatsapp",name:"WhatsApp",handle:"0400 000 000",href:"https://wa.me/61400000000",qr:"https://wa.me/61400000000"},{app:"line",name:"LINE",handle:"yourvenue",href:"https://line.me/ti/p/~yourvenue",qr:"https://line.me/ti/p/~yourvenue"}],[gB]:()=>[{label:u("First category"),href:"/journal",[rw]:"12"},{label:u("Second category"),href:"/journal",[rw]:"8"},{label:u("Third category"),href:"/journal",[rw]:"3"}],"location-payment-methods":()=>[{label:u("Cash"),kind:"cash"},{label:u("Card"),kind:"card"}],"shop-payment-methods":()=>[{label:"Visa / Mastercard / American Express",kind:"card"},{label:"PayPal",kind:""},{label:u("Bank transfer"),kind:"wire"}]},xB=new Set(["Cards",yr]),Ble={[rw]:()=>u("Count"),name:()=>u("Name"),note:()=>u("Note"),price:()=>u("Price"),time:()=>u("Time")},GHe=e=>e.replace(/_([a-z0-9])/g,(t,o)=>o.toUpperCase());function $He(e){let t=Array.isArray(e.blocks)?e.blocks:[];if(!t.some(r=>xB.has(r))||t.some(r=>!xB.has(r)&&oq(r))||!Array.isArray(e.fields))return;let o=t.filter(r=>xB.has(r)).flatMap(r=>Sv(r)),n=[];for(let r of e.fields){if(typeof r!="string"||!r.trim())continue;let a=GHe(r.trim());if(a==="key"||n.some(l=>l.key===a))continue;let i=o.find(l=>l.key===a),s=WHe(["image","link"],"",i?.kind)||void 0;n.push({key:a,label:i?.label??(Object.hasOwn(Ble,a)?Ble[a]():void 0)??a,...s?{kind:s}:{}})}return n.length?n:void 0}function Hle(e){if(Array.isArray(e))for(let t of e){let o=typeof t?.key=="string"&&Object.hasOwn(Fle,t.key)?Fle[t.key]():void 0;try{let n=$He(t);T4([{key:t.key,label:t.label,blocks:t.blocks,...o?{sample:o}:{},...n?{fields:n}:{}}])}catch{}}}var Dle={"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 Mle(e,t){let o=Dle[e][t];return{maxSizeBytes:o.max_bytes,maxFiles:o.max_files,accept:o.accept==="*"||o.accept==="*/*"?void 0:o.accept,acceptHint:o.hint}}import{EFFICIENT_BACKEND as jHe,currentEaselSession as TB,provideDefaultBackend as qHe}from"efficient-easel/screen/lib/session";function L2(e){return{slug:e.slug,image:e.coverImage,title:e.title,dek:e.excerpt,publishedAt:e.publishedAt??"",date:"",href:e.href}}function mR(e){return{slug:e.slug,title:e.title,excerpt:e.excerpt,category:e.category,coverImage:e.cover_image?tc(e.cover_image)??"":"",publishedAt:e.published_at,href:lb(e.slug)}}function zle(e){let t=L2(e),o=e.category.trim();return{slug:t.slug,title:t.title,excerpt:t.dek,cover:t.image,meta:o||void 0,publishedAt:t.publishedAt}}var KHe=["home","products","gallery","about","contact"],VHe=e=>{let t=e.slug.trim().toLowerCase(),o=(e.title??"").trim().toLowerCase(),n=KHe.findIndex(r=>r===t||r===o);return n===-1?Number.POSITIVE_INFINITY:n},Wle=e=>e.map((t,o)=>({page:t,idx:o,rank:VHe(t)})).sort((t,o)=>t.rank-o.rank||t.idx-o.idx).map(t=>t.page);var vB="Popups",Ule="Site",Gle={[bh]:{label:"Site popup",group:vB},[zm]:{label:"Footer",group:Ule},[Xte]:{label:"Cart drawer",group:Ule},[Qte]:{label:"Cookie banner",group:vB}},Kle=e=>Object.hasOwn(Gle,e)?Gle[e]:void 0;function I2(e){return Kle(e.slug)?.label||e.title||e.slug}function yB(e){let t=e.group?.trim();return t||null}function $le(e,t){let o=new Map;for(let n of e){let r=t(n),a=o.get(r);a?a.push(n):o.set(r,[n])}return o}function Vle(e){let t=Wle(e),o=[],n=t.filter(s=>!wh(s.slug)),r=n.filter(s=>!yB(s));r.length&&o.push({key:"top",group:null,pages:r});let a=n.filter(s=>yB(s));for(let[s,l]of $le(a,d=>yB(d)))o.push({key:`folder:${s}`,group:s,pages:l});let i=t.filter(s=>wh(s.slug));for(let[s,l]of $le(i,d=>Kle(d.slug)?.group??vB))o.push({key:`system:${s}`,group:s,pages:l});return o}import{PAGE_CONFLICT_CODE as XHe}from"efficient-easel/screen/lib/failure";import{HINTS_PREFERENCE_KEY as Yle}from"efficient-easel/screen/lib/hints";import{WebsiteBackendError as Ap,provideHostFailures as ZHe}from"efficient-easel/screen/lib/backend-error";var kB=e=>e.layout_updated_at??e.updated_at??null,JHe=["live","changed","never"],jle=e=>JHe.includes(e.live_state)?{live:e.live_state}:{},qle=e=>e.video_frames?{videoFrames:e.video_frames}:{};function QHe(e){if(!e||typeof e!="object")return null;let t=e;return t.code!==XHe?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 e8e(e){return e===401||e===403?"unauthorized":e===404?"not-found":e===cae||e>=500?"unavailable":"invalid"}function t8e(e){if(!(e instanceof or))return e;if(e.status===409){let t=QHe(e.data);if(t)return new Ap("changed-elsewhere",e.message,{conflict:t,cause:e});let o=YHe(e.data);if(o)return new Ap("lock-taken",e.message,{holder:o,cause:e})}return new Ap(e8e(e.status),e.message,{cause:e})}function o8e(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t=o=>{if(typeof o=="string")return o.trim()||null;let n=Array.isArray(o)?o:o&&typeof o=="object"?Object.values(o):[];for(let r of n){let a=t(r);if(a)return a}return null};for(let[o,n]of Object.entries(e)){if(o==="detail")continue;let r=t(n);if(r)return`${o}: ${r}`}return null}var SB=new WeakMap;function n8e(e,t){let o=KJ(),n=o?new URL(o).hostname:typeof window<"u"?window.location?.hostname??null:null,r=null,a=t.siteId(),i=t.token();if(Fre(n)&&a&&i){let l=u_(i,a);SB.has(l)?r=SB.get(l)??null:l.then(d=>SB.set(l,d))}let s=Bre({pageSlug:e,siteSlug:r,hostname:n});return o?`${o}${s}`:s}var r8e={group:"Template pages",groupKey:"template"},Xle=e=>({id:e.id,slug:e.slug,label:e.title||e.slug,...r8e,draft:!1}),Zle="template-home:";async function a8e(e){let t=await Ne.getPageLibrary(e);return t?(await Ne.listTemplatePages(t.id,e)).map(o=>({id:o.id,source:"library",slug:o.slug,title:o.title,layout:o.layout})):[]}async function i8e(e,t){let{template:o,pages:n}=await Ne.getTemplateLibrary(e,t);if(!o)return[];let r=n.some(l=>l.template_page===null),[a,i]=await Promise.all([Ne.listTemplatePages(o.id,t),r?Ne.getTemplate(o.id,t):Promise.resolve(null)]),s=new Map(a.map(l=>[l.id,l.layout]));return n.flatMap(l=>{let d=l.template_page===null?i?.layout:s.get(l.template_page);return d?[{id:l.template_page??`${Zle}${o.id}`,source:"template",slug:l.slug,title:l.title,layout:d}]:[]})}function Jle(e){let t=async m=>{let f=e.token();if(!f)throw new Ap("unauthorized","The editor has no sign-in yet.");try{return await m(f)}catch(g){throw t8e(g)}},o={list:m=>t(async f=>{let g=await Ne.listPages(f,m?.siteId);return Vle(g.filter(h=>h.slug!==zm)).flatMap(h=>h.pages.map(b=>({id:b.id,slug:b.slug,label:I2(b),group:h.group,groupKey:h.key,draft:!b.is_published,kind:b.kind??null})))}),load:m=>t(async f=>{let g="id"in m?m.id:(await Ne.findPageBySlug(m.slug,f,m.siteId))?.id,h=g?await Ne.getPageById(g,f):null;return h?{id:h.id,layout:h.layout,kind:h.kind,version:kB(h),...jle(h),...qle(h)}:null}),save:(m,f,g)=>{let{version:h}=g;return h?t(async b=>{let w=await Ne.saveLayout(m,f.layout,b,h,g.clientId||void 0);return{version:kB(w),...jle(w),...qle(w)}}):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:m=>t(f=>Ne.getPageById(m,f).then(kB)),linkTargets:m=>t(async f=>(await Ne.listPages(f,m?.siteId)).map(g=>({id:g.id,slug:g.slug,label:I2(g),layout:g.layout??null}))),duplicate:(m,f)=>t(async g=>{let h=await Ne.duplicatePage(m,{title:f.title,slug:f.slug},g);return{id:h.id,slug:h.slug,label:I2(h),group:h.group||null,draft:!h.is_published,kind:h.kind??null}}),starters:m=>t(async f=>{let g=m?.siteId??e.siteId(),[h,b]=await Promise.all([a8e(f),g?i8e(g,f):Promise.resolve([])]);return[...h,...b]}),createFromStarter:(m,f)=>t(async g=>{let h=f.siteId??e.siteId();if(!h)throw new Ap("not-found","This editor is not connected to a website.");let b=await Ne.createPageFromTemplate({site:h,title:f.title,slug:f.slug,template_page:m.startsWith(Zle)?null:m},g);return{id:b.id,slug:b.slug,label:I2(b),group:b.group||null,draft:!b.is_published,kind:b.kind??null}})},n=m=>({list:()=>t(async f=>(await Ne.listTemplatePages(m,f)).map(Xle)),load:f=>t(async g=>{let h=x=>"id"in f?x.id===f.id:x.slug===f.slug,b=x=>({id:x.id,layout:x.layout,version:null}),w=await Ne.listTemplatePages(m,g);if(w.length)return b(w.find(h)??w[0]);let y=await Ne.getTemplate(m,g).catch(()=>null);try{return b(await Ne.createTemplatePage(m,{slug:sb,title:"Home",layout:y?.layout??{}},g))}catch{let x=await Ne.listTemplatePages(m,g),k=x.find(h)??x[0];return k?b(k):null}}),save:(f,g)=>t(async h=>(await Ne.saveTemplatePageLayout(f,g.layout,h),{version:null})),create:f=>t(async g=>Xle(await Ne.createTemplatePage(m,{slug:f.slug,title:f.title,layout:f.layout},g))),remove:(f,g)=>t(h=>Ne.deleteTemplatePage(f,h,g))}),r=m=>{let f=m?.siteId??e.siteId();if(!f)throw new Ap("not-found","This editor is not connected to a website.");return f},a=m=>({name:m.name,slug:m.slug}),i=m=>Object.fromEntries(yh.map(f=>[f,m[r_(f)]??""])),s={launcherColor:"launcher_color",launcherIcon:"launcher_icon",launcherPosition:"launcher_position",launcherLabel:"launcher_label",showOnPhones:"show_on_phones"},l=Object.keys(s),d=m=>{let f={enabled:m.enabled,title:m.title,subtitle:m.subtitle,greeting:m.greeting};for(let g of l){let h=m[s[g]];h!==void 0&&Object.assign(f,{[g]:h})}return f},c=m=>{let f={};for(let[g,h]of Object.entries(m))f[s[g]??g]=h;return f},p={pages:o,lock:{claim:(m,f,g)=>t(async h=>({heartbeatSeconds:(await Ne.claimPageEditLock(m,h,f,g)).heartbeat_seconds})),release:m=>t(f=>Ne.releasePageEditLock(m,f))},site:{get:m=>t(async f=>a(await Ne.getSite(r(m),f))),publish:m=>t(async f=>{try{let{state:g,published:h}=await Ne.publishSite(r(m),f);return{state:g,published:h}}catch(g){let h=g instanceof or&&g.status===400?o8e(g.data):null;throw h?new Ap("invalid",h,{cause:g}):g}}),liveState:m=>t(async f=>{let{state:g,changes:h}=await Ne.getSiteLiveState(r(m),f);return{state:g,changes:h}})},media:{resolve:OQ,maxUploadBytes:Mle("POST /api/storefront/media/","file").maxSizeBytes},sectionTemplates:new lR(e.token),social:{get:m=>t(async f=>i(await Ne.getSocialSettings(f,r(m)))),update:(m,f)=>t(async g=>{let h=Object.fromEntries(yh.filter(b=>b in m).map(b=>[r_(b),m[b]]));try{return i(await Ne.updateSocialSettings(h,g,r(f)))}catch(b){if(b instanceof or&&b.status===400){let w=b.data??{},y={};for(let x of yh){let k=w[r_(x)],v=Array.isArray(k)?k[0]:k;typeof v=="string"&&v.trim()&&(y[x]=v)}if(Object.keys(y).length>0)throw new Ap("invalid",b.message,{fields:y,cause:b})}throw b}})},theme:{get:m=>t(f=>Ne.getThemeSettings(f,m?.siteId)),update:(m,f)=>t(g=>Ne.updateThemeSettings(m,g,f?.siteId))},geocode:{locate:(m,f)=>t(async g=>{let h=await Ne.geocode(m,g,f?.country);if(h.status==="not_found")return null;if(h.status!=="found"||h.lat===null||h.lng===null)throw new Ap("unavailable","The geocoder could not answer just now.");return{lat:h.lat,lng:h.lng,label:h.label}})},preferences:{get:()=>t(async m=>{let f=(await Ne.getMyPreferences(m))[Yle];return typeof f=="boolean"?{showHints:f}:{}}),update:m=>t(async f=>{typeof m.showHints=="boolean"&&await Ne.updateMyPreferences({[Yle]:m.showHints},f)})},chat:{get:m=>t(async f=>d(await Ne.getChatSettings(f,m?.siteId))),update:(m,f)=>t(async g=>d(await Ne.updateChatSettings(c(m),g,f?.siteId)))},blog:{posts:m=>t(async f=>(await Ne.listBlogPosts(f,{visibleOnly:!0,siteId:m?.siteId})).map(mR))},templates:{get:m=>t(async f=>{let g=await Ne.getTemplate(m,f);return{id:g.id,name:g.name}}),pages:n},preview:{href:m=>n8e(m,e),draftLink:m=>t(async f=>({url:(await Ne.createPagePreviewLink(m,f)).url??null}))}};return p[jHe]=!0,p}var s8e=["text","date","images"],l8e=e=>e.replace(/_([a-z0-9])/g,(t,o)=>o.toUpperCase());function d8e(e){if(Array.isArray(e))for(let t of e){let n=(Array.isArray(t?.fields)?t.fields:[]).filter(r=>s8e.includes(r.kind)).map(r=>({key:l8e(r.key),label:r.label,kind:r.kind}));try{zQ([{key:t.key,label:t.label,fields:n}])}catch{}}}function Qle(e){return TB().cache("efficient:editor-offerings",()=>Promise.all([Ne.listBlockSources(e).then(Hle).catch(()=>{}),Ne.listRecordTypes(e).then(d8e).catch(()=>{})]).then(()=>{}))}ZHe({read:e=>e instanceof or?{status:e.status,data:e.data,message:e.message}:null,unreachableMessage:dae,loadRefusal:(e,{slug:t})=>e instanceof fae?`\u201C${t}\u201D exists on more than one website. Open it from the site you want to edit.`:null});qHe(e=>Jle({token:()=>e.auth.token,siteId:()=>e.siteId()}));function c8e(e={}){return e.portalAudience!==void 0&&pae(e.portalAudience),e.language!==void 0&&mae(e.language),Jle({token:()=>TB().auth.token,siteId:()=>e.siteId??TB().siteId()})}import{useScreenDocument as m8e}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as EB,jsxs as PB}from"react/jsx-runtime";function CB({surface:e,children:t}){let{token:o,siteId:n,capabilities:r}=m8e();if(p8e(()=>{o&&Qle(o)},[o]),e==="section")return PB(lB,{children:[o?EB(aR,{token:o}):null,t]});let a=o??"";return PB(tB,{token:a,siteId:n,enabled:r.hasSiteSettings,children:[r.hasSiteSettings&&EB(rB,{token:a,siteId:n}),PB(lB,{children:[r.hasSiteSettings&&EB(aR,{token:a}),t]})]})}import{ShowWhen as F9e}from"efficient-shell/ui";import{useCallback as xc,useEffect as Ew,useRef as l1,useState as Gp}from"react";import{requestMediaPick as DMe}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as Dpe}from"efficient-easel/screen/lib/host";import{Button as u8e,ListLoadError as f8e,Text as _B}from"efficient-shell/ui";import{SettingsField as h8e}from"efficient-easel/panel";import{FieldSelect as g8e}from"efficient-easel/fields";import{MenuIcon as b8e}from"efficient-easel/icons";import{useCallback as w8e,useEffect as cde,useState as iw}from"react";function fc(e){let t=(e??"").trim();return t===""||t==="#"}function uR(e){let t=(e??"").trim();return fc(t)?"none":/^(?:https?:)?\/\//i.test(t)?"off-site":/^[a-z][a-z0-9+.-]*:/i.test(t)?"app":"page"}function ede(e,t){let o=(e??"").replace(/[\t\r\n]/g,"").trim();if(!o)return null;try{let n=new URL(o,t);return n.protocol==="http:"||n.protocol==="https:"?n.href:null}catch{return null}}var Lp=e=>typeof e=="string"&&e.trim()!=="";function aw(e){return{label:e.label,url:e.url,...Lp(e.description)?{description:e.description}:{},...Lp(e.image)?{image:e.image}:{},...Lp(e.badge)?{badge:e.badge}:{}}}function Bi(e){if(!e||typeof e!="object")return null;let t=(Array.isArray(e.links)?e.links:[]).filter(n=>n&&Lp(n.label)).map(n=>({label:n.label,url:typeof n.url=="string"?n.url:""})),o={...Lp(e.eyebrow)?{eyebrow:e.eyebrow}:{},...Lp(e.title)?{title:e.title}:{},...Lp(e.text)?{text:e.text}:{},...t.length?{links:t}:{}};return Object.keys(o).length?o:null}function tde(e,t){let o=n=>Lp(n.description)||Lp(n.image);return Bi(t)!==null||e.some(o)}var ode="Menu Item",nde=6,rde=4,ade="Menu",ide="Link a menu in the inspector \u2192";function sde(){return u("This column isn't linked to a menu, so the preview shows placeholder links. Pick a menu above.")}function lde(e){return u("\u201C{name}\u201D no longer exists in {place}, so the preview shows placeholder links. Pick another menu.",{name:e,place:u("Storefront \u2192 Menus")})}function dde(){return u("The menu linked here no longer exists in {place}, so the header shows placeholder links. Pick another menu.",{place:u("Storefront \u2192 Menus")})}import{jsx as cd,jsxs as pde}from"react/jsx-runtime";function RB({value:e,onChange:t}){let[o,n]=iw(null),[r,a]=iw(!1),[i,s]=iw(!1),[l,d]=iw(0),c=w8e(C=>{n(C),a(!0),s(!1)},[]);cde(()=>{let C=!1;return O2(la(),l>0).then(P=>{C||c(P)}).catch(()=>{C||(n([]),s(!0))}),()=>{C=!0}},[c,l]);let p=()=>{n(null),s(!1),d(C=>C+1)};cde(()=>{let C=!1,P=lu(()=>{oR(la()).then(B=>{C||c(B)}).catch(()=>{})});return()=>{C=!0,P()}},[c]);let m=o===null,f=!m&&!i&&(o?.length??0)===0,g=!!(e?.id||e?.handle),h=r&&g&&!nR(o??[],e),b=!g&&(e?.items?.length??0)>0,w=h?"":nR(o??[],e)?.id??"",y=C=>t({id:C.id,handle:C.handle,name:C.name,items:C.items.map(P=>{let B=P.dropdown_items?.length?Bi(P.dropdown_aside):null;return{label:P.label,url:P.url,...P.dropdown_items?.length?{dropdown_items:P.dropdown_items.map(aw)}:{},...B?{dropdown_aside:B}:{}}})}),x=C=>{if(!C){t(null);return}let P=(o??[]).find(B=>B.id===C);P&&y(P)},[k,v]=iw(!1),[S,E]=iw(!1),T=()=>{g&&(v(!0),E(!1),O2(la(),!0).then(C=>{c(C);let P=nR(C,e);P&&y(P)}).catch(()=>E(!0)).finally(()=>v(!1)))};return pde("div",{children:[cd(h8e,{label:u("Menu"),icon:cd(b8e,{}),hint:f?u("Create menus in {place}, then pick one here.",{place:u("Storefront \u2192 Menus")}):void 0,children:cd(g8e,{value:w,ariaLabel:u("Menu"),onChange:x,readOnly:m||(o?.length??0)===0,options:[{label:m?u("Loading menus\u2026"):i?u("Couldn\u2019t load menus"):f?u("No menus found"):u("Select a menu\u2026"),value:""},...(o??[]).map(C=>({label:`${C.name} (${C.item_count??C.items.length})`,value:C.id}))]})}),i?cd(NB,{onRetry:p}):null,b?cd(_B,{as:"p",size:"xs",tone:"inherit",className:"mt-2 text-[var(--warning-text)]",children:sde()}):null,h?cd(_B,{as:"p",size:"xs",tone:"inherit",className:"mt-2 text-[var(--warning-text)]",children:lde(e?.name??u("The linked menu"))}):null,g&&!h?pde("div",{className:"mt-2 flex items-center justify-between gap-2",children:[cd("div",{role:S?"alert":void 0,children:cd(_B,{as:"p",size:"xs",tone:"inherit",className:S?"text-[var(--warning-text)]":"text-fg-dim",children:S?u("Couldn\u2019t update the links. Try again:"):Qn("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??""})})}),cd(u8e,{variant:"link",size:"sm",className:"shrink-0",onClick:T,disabled:k,children:k?u("Updating\u2026"):u("Update links")})]}):null]})}function NB({onRetry:e}){return cd("div",{role:"alert",className:"mt-2",children:cd(f8e,{variant:"none",title:u("Couldn\u2019t load menus"),message:u("Couldn\u2019t load this site\u2019s menus."),onRetry:e})})}import{Fragment as x8e}from"react";import{jsx as y8e}from"react/jsx-runtime";function Hi(e,t){return e.split(/\{([A-Za-z][A-Za-z0-9_]*)\}/g).map((o,n)=>n%2===1?y8e(x8e,{children:o in t?t[o]:`{${o}}`},n):o)}import{parseOption as mde}from"efficient-shell/format";function ude(e){return typeof e=="number"&&Number.isInteger(e)&&e>=ni.min&&e<=ni.max?e:ni.default}var fR="fixed inset-x-0 bottom-0 top-[var(--sf-header-h,88px)]",hR=e=>!!e&&e.startsWith("/wheels/")&&e!=="/wheels",gR=(e,t)=>!e&&t?"var(--section-bg)":"var(--bg)",F2=[{label:"Uppercase",value:"uppercase"},{label:"Capitalised",value:"capitalised"}],OB="uppercase",sw=e=>mde(F2,OB,e),B2=[{label:"Icon",value:"icon"},{label:"Text",value:"text"}],v8e="icon",lw=e=>mde(B2,v8e,e),bR=[{label:"Own row",value:"top"},{label:"Same row",value:"inline"}],wR="top",Ip=e=>e==="inline"?"inline":e==="top"||e==="bottom"?"top":null,xR="custom";function fde(e,t){return e!==xR||typeof t!="string"?null:t.trim()||null}var hde=80,AB=0,LB=100,gde="data-header-link-opacity",bde="--sf-header-link-opacity";function wde(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(LB,Math.max(AB,Math.round(e)))}var H2=KE,k8e="sf-header-theme";function D2(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}function yR(e){let t=D2(e);return t===null?null:{className:k8e,style:Iq(t)}}var dw=[{value:"name",label:"Country name"},{value:"code_currency",label:"Code and currency"},{value:"globe_code",label:"Globe and code"},{value:"currency",label:"Currency"},{value:"flag_code",label:"Flag and code"},{value:"flag",label:"Flag"},{value:"globe",label:"Globe"}],xde=dw.filter(e=>e.value!=="globe"),vR="Show as",M2="name";function hc(e){return dw.some(t=>t.value===e)?e:M2}var yde=e=>e==="flag_code"||e==="flag";var vde=[{label:"Card",value:"card"},{label:"Photo behind the words",value:"cover"}],kR="card",pl={min:200,max:700,step:10,fallback:330,unit:"px",length:{kind:"height"}};var SR="bottom-left";var z2="bottom";var FB="py-[120px]",ER="pb-[120px]",PR=70,BB="max-view-wide:py-[70px]",S8e="max-view-wide:pt-[70px]",CR="max-view-wide:pb-[70px]",W2="pt-0",U2="max-view-wide:pt-0",T8e=`${FB} ${BB}`,E8e=`${W2} ${ER} ${U2} ${CR}`,G2=`relative z-[2] bg-bg ${T8e}`,$2=`relative z-[2] bg-bg ${E8e}`,kde=`pt-[var(--pg-pt)] ${ER}`,Sde=`${S8e} ${CR}`,Tde="py-[32px] max-view-wide:py-[24px]",_R={top:100,bottom:100},RR={top:120,bottom:120},li={top:120,bottom:120},TR={top:ih.top,bottom:ih.bottom},P8e=[...aP.map(([e])=>e),TR.top,TR.bottom];function pd(e){let t={};for(let o of P8e)e[o]!==void 0&&(t[o]=e[o]);return t}function gc(e,t,o={}){let n=o.nonNegative?C8e(e??{}):e??{},r={top:hr(n[TR.top])===void 0?void 0:t.top,bottom:hr(n[TR.bottom])===void 0?void 0:t.bottom},a=o.noTop&&hr(n[rP.top])===void 0,i=bo(n,r,{noTop:a}),s=Object.fromEntries(Object.entries(i.style).filter(([l,d])=>d!==void 0&&!(a&&l==="paddingTop")));return{...i,style:s,attrs:i.className?gE:{}}}function C8e(e){let t={...e};for(let o of[rP.top,rP.bottom]){let n=hr(t[o]);n!==void 0&&n<0&&delete t[o]}return t}function ml(e,t){return t.className?`${e} ${t.className}`:e}function IB(e){return e==null||e===!1||typeof e=="string"&&!e.trim()}function cw(e,t,o){return IB(e)&&IB(t)&&IB(o)}var HB=104,Ede="group-hover:scale-[1.04]",Pde=40,Cde=30,_de="[background:rgba(0,0,0,0.4)] group-hover:[background:rgba(0,0,0,0.3)]",Rde={bottom:li.bottom,bottomPhone:PR};function K2(e){let t=/(?:^|\s)grid-cols-(\d+)(?=\s|$)/.exec(e);if(!t)throw new Error(`gridColumnsOf: no base grid-cols-N in "${e}"`);let o=[...e.matchAll(/(?:^|\s)(max-[\w[\]-]+):grid-cols-(\d+)(?=\s|$)/g)].flatMap(n=>{let r=tj(n[1]);return r?.max?[{below:r.px,columns:Number(n[2])}]:[]}).sort((n,r)=>r.below-n.below);return{base:Number(t[1]),steps:o}}function DB(e,t){return Math.max(1,Math.min(e,Math.floor(t)))}function Nde(e,t){return{base:DB(e.base,t),steps:e.steps.map(o=>({below:o.below,columns:DB(o.columns,t)}))}}var V2="sf-card-tracks",MB=e=>e.split(/\s+/).includes(V2),zB=(e,t=!1)=>t?`--sf-cols:${e}`:`grid-template-columns:repeat(${e},minmax(0,1fr))`;function bu(e,t,o={}){let n=MB(t);return Ode(e,t,o,(r,a,i)=>[`${r}{${zB(i,n)}}`])}function Ode(e,t,{limit:o,cards:n},r){let a=K2(t),i=typeof o=="number"&&o>0?o:void 0,s=Math.max(a.base,...a.steps.map(d=>d.columns));if(n!==void 0&&Math.min(n,i??1/0)>=s)return"";let l=[];for(let d of WB(a)){let c=i===void 0?d.columns:DB(d.columns,i),p=[];c<d.columns&&p.push(...r(`.${e}.${e}`,d.columns,c));for(let m=c-1;m>=1;m--)p.push(...r(`.${e}:not(:has(> :nth-child(${m+1})))`,d.columns,m));l.push(UB(d,p))}return l.join("")}function _8e(e,t,o){return[`${e}{grid-template-columns:repeat(${2*t},minmax(0,1fr))}`,`${e}>*{grid-column:span 2}`,`${e}>:first-child{grid-column:${t-o+1}/span 2}`]}function Ade(e,t,o={}){return Ode(e,t,o,_8e)}function WB({base:e,steps:t}){return[{min:t[0]?.below,max:void 0,columns:e},...t.map((o,n)=>({min:t[n+1]?.below,max:o.below,columns:o.columns}))]}function UB(e,t){if(t.length===0)return"";let o=e.min!==void 0&&e.max!==void 0?`(${e.min}px <= width < ${e.max}px)`:e.max!==void 0?`(width < ${e.max}px)`:e.min!==void 0?`(width >= ${e.min}px)`:void 0;return o?`@media ${o}{${t.join("")}}`:t.join("")}var R8e={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6"},N8e={1:"max-view-desktop:grid-cols-1",2:"max-view-desktop:grid-cols-2",3:"max-view-desktop:grid-cols-3",4:"max-view-desktop:grid-cols-4",5:"max-view-desktop:grid-cols-5",6:"max-view-desktop:grid-cols-6"},Lde={1:"max-view-wide:grid-cols-1",2:"max-view-wide:grid-cols-2",3:"max-view-wide:grid-cols-3"},wu={min:1,max:6,fallback:4},Y2={min:1,max:6},Dh={min:1,max:3};var GB=(e,t,o)=>typeof e=="number"&&Number.isFinite(e)?Math.min(o,Math.max(t,Math.round(e))):void 0;function $B(e){return GB(e,wu.min,wu.max)??wu.fallback}function KB(e){let t=$B(e);return t===6?3:t>=4?2:t}function NR(e,t,o){let n=$B(e),r=GB(o,Y2.min,Y2.max)??KB(n),a=GB(t,Dh.min,Dh.max),i=[V2,R8e[n]];return r!==n&&i.push(N8e[r]),a!==void 0?i.push(Lde[a]):n>1&&i.push(Lde[1]),i.join(" ")}function OR(e){return e.template!==void 0||e.columnsTablet!==void 0||$B(e.columns)!==3?e:{...e,columnsTablet:2}}function VB(e){return typeof e.columns=="number"?e.columns:3}function Ide(e){let t={dynamic:!0,relationship:"bundles"},o=[];for(let[r,a]of Object.entries(e))a!==void 0&&(t[r]=a,o.push(r));let n=VB(e);return t.columns=n,t.limit=n,{props:t,carried:o}}import{phoneKey as oH}from"efficient-easel/draw";import{HIDDEN_KEY as sce}from"efficient-easel/screen/lib/content/view-hide";import{isNode as Q8e}from"efficient-easel/data";var Di=(e,t)=>({type:Ev,props:{name:e,label:t}});import{REPEAT_ATTRIBUTE as Bde,phoneKey as O8e,tabletKey as A8e}from"efficient-easel/draw";var Fp="sharedColumns",Hde="shared",j2="own",Dde="scroll",YB="Row columns",Mde=[{value:j2,label:"Each row"},{value:Hde,label:"Shared"}],zde=[{value:j2,label:"Each row"},{value:Dde,label:"Shared, scroll"}],L8e="(width >= 800px)",I8e="(width < 800px)";function AR(e){let t={direction:e.direction,separator:e.separator,loop:_v(e.loop),line:e.line};return t.direction==="row"&&!Em(t.direction,t.separator)&&t.loop!=="scroll"&&t.line!==!0&&!as(e)&&P0({...t,columns:e.columns})===""&&E0({...t,columnsTablet:e[A8e("columns")]})===""}function Wde(e){return Array.isArray(e)?e.filter(t=>typeof t?.type=="string").length:hr(e?.blockCount)??0}function Bp(e){return AR(e)&&pw(Wde(e.content))>0?F8e(e[Fp],e[O8e(Fp)]):{desktop:!1,phone:!1}}var pw=e=>Number.isInteger(e)&&e>0?e:0,Ude=(e,t)=>`sf-shared-cols-${e}${t===void 0?"":`-from-${t}`}`,Gde=e=>`sf-shared-cols-phone-${e}`;function F8e(e,t){return{desktop:e===Hde,phone:t===Dde}}function $de(e,t,o){let n=pw(t);return n?`${e.desktop?` ${Ude(n,o)}`:""}${e.phone?` ${Gde(n)}`:""}`:""}function Kde(e){let t=`[${Bde}]`;return`:has(> ${t} ${e}):not(:has(> ${t} ${t} ${e}))`}function Fde(e,t,o=""){let n=Kde(e);return`${n}{display:grid;grid-template-columns:${t};column-gap:0${o}}${n}>:not(:has(${e})):not(${e}){grid-column:1/-1}${n} :has(${e}),${n} ${e}{display:grid;grid-template-columns:subgrid;grid-column:1/-1;min-width:0}`}var jB="data-sf-shared-plain";function B8e(e){let t=`[${Bde}]`,o=`[${jB}]`,n=Kde(e)+`:not(:has(> :not(${t}) > :not(${o}) ${e})):not(:has(> ${t} > * > :not(${o}) ${e})):not(:has(:not(${o}) > :not(${o}) > ${e})):not(:has(> ${t}[${aJ}]))`,r=`${n}>:not(style):not(:has(${e})):not(${e})`;return`${n}{display:table;width:100%;border-collapse:collapse}${n}>:has(${e}),${n}>${t}>:has(${e}),${n} ${o}:has(${e}),${n} ${o}>:has(${e}){display:contents}${n} ${e}{display:table-row}${n} ${e}>*{display:table-cell;width:auto;vertical-align:top}${n} ${e}.${jl.center}>*{vertical-align:middle}${n} ${e}.${jl.end}>*{vertical-align:bottom}${r}{display:table-caption;caption-side:bottom}${r}:has(~ ${t}){caption-side:top}`}function Vde(e,t,o){let n=pw(t);if(!n)return"";let r="";if(e.desktop){let a=`.${Ude(n,o)}`;r+=`@media ${o===void 0?L8e:`(width >= ${o}px)`}{${Fde(a,`repeat(${n},auto)`)}${B8e(a)}}`}return e.phone&&(r+=`@media ${I8e}{${Fde(`.${Gde(n)}`,`repeat(${n},minmax(max-content,auto))`,";overflow-x:auto")}}`),r}var qB="sharedRows",H8e="shared",q2="sf-shared-rows-list";function D8e(e){let t=e.direction;return(t===void 0||t==="column")&&_v(e.loop)!=="scroll"&&e.line!==!0&&!as(e)}function LR(e){return e[qB]===H8e&&D8e(e)&&pw(Wde(e.content))>0}var Yde=e=>`sf-shared-rows-${e}`;function jde(e,t){let o=pw(t);return e&&o?` ${Yde(o)}`:""}function qde(e,t){let o=pw(t);if(!e||!o)return"";let n=`.${Yde(o)}`,r=`.${q2}`,a=`display:grid;grid-template-rows:subgrid;grid-row:span ${o};min-height:0;grid-template-columns:minmax(0,1fr)`,i=["start","center","end"].map(s=>`${r} ${n}.${jl[s]}{justify-items:${s}}`).join("");return`${r} :has(${n}){${a};row-gap:0}${r} ${n}{${a};justify-content:normal;align-items:stretch}${i}`}var Xde={showCardSizes:!0,showCardBuy:!0,showCardPage:!0},Zde={showCardSizes:!0,showCardBuy:!1,showCardPage:!1};var Z2="ProductPicture",IR="ProductSpecs",FR="ProductBuy",bc="ProductPrice",BR="ProductColour",XB="ProductSize",xu="ProductEyebrow",Hp="ProductName",HR="ProductSku",Qde=[Z2,xu,Hp,IR,bc,BR,XB,FR],DR=[{key:"name",label:"Name"},{key:"eyebrow",label:"Eyebrow"},{key:"note",label:"Note"},{key:"href",label:"Product page",kind:"link"},{key:"colour",label:"Product colour",kind:"colour"},{key:"colourVaried",label:"Product colour, varied",kind:"colour"},{key:"colourRandom",label:"Random colour",kind:"colour"}],M8e={...ze,gap:0,gapPhone:0,...pt(32,32,32,32),[qB]:"shared"},ece=(e,t=pa)=>us(e,t),X2=(e,t)=>typeof e=="boolean"?e:t,z8e={type:"Text",props:{...vt,tag:"p",text:"",[Ds]:"note",_partStyles:{text:{...Hj,...po("body",14),lineHeight:1.375}}}};function ZB(e,t={}){let o=e.dynamic===!0,n={},r=o?t.legacyWellHonoured?e.imageBackground??WC:hoe(e.imageBackground):e.imageBackground;r!==void 0&&(n.imageBackground=r);for(let d of["cardImage","coverIndex","indexBadge","showBadge"])e[d]!==void 0&&(n[d]=e[d]);let a=t.showRest??Zde,i={price:X2(e.showCardPrice,!0),finishes:X2(e.showCardFinishes,!0),sizes:X2(e.showCardSizes,a.showCardSizes),buy:X2(e.showCardBuy,a.showCardBuy),page:X2(e.showCardPage,a.showCardPage)},s={...M8e,name:"Card"};e.outline==="hairline"&&(s.sectionBorder={width:1,style:"solid"});let l=[{type:Z2,props:n},{type:xu},{type:Hp},{type:IR,props:{sizes:i.sizes}},...i.price?[{type:bc}]:[],...i.finishes?[{type:BR}]:[],...i.buy||i.page?[{type:FR,props:{buy:i.buy,page:i.page}}]:[]];return{type:ce,props:s,slots:{[Ce]:l}}}var W8e={...ze,gap:0,gapPhone:0,...pt(0,0,0,0)},U8e={...ze,gap:8,gapPhone:8,...pt(16,20,16,20)},G8e={role:"heading",size:18,weight:500,case:"none",letterSpacing:-.015,lineHeight:1.2},Jde=24;function $8e(e){let t={frame:"full"};for(let n of["cardImage","showBadge"])e[n]!==void 0&&(t[n]=e[n]);let o={type:ce,props:{...U8e,name:"Copy"},slots:{[Ce]:[{type:Hp,props:{fixedHeight:!1,_partStyles:{"@name":G8e}}},z8e,{type:bc}]}};return{type:ce,props:{...W8e,name:"Card"},slots:{[Ce]:[{type:Z2,props:t},o]}}}function MR(e){if(e.template!==void 0)return e;let t=ece(e);return{...e,gap:e.gap??Jde,gapPhone:e.gapPhone??Jde,template:Lo([$8e(e)],(o,n)=>`${t}~card-${n}-${o}`)}}function K8e(e,t={}){let o=ece(e,t.section);return Lo([ZB(e,t)],(n,r)=>`${o}~card-${r}-${n}`)}function tce(e){return J2(e,{showRest:Xde,section:So})}function J2(e,t={}){return e.template!==void 0?e:{...e,template:K8e(e,t)}}import{parseOption as oce}from"efficient-shell/format";var zR=["split","imageRight","stacked"],wc="split";function yu(e){return oce(zR,wc,e)}var V8e=["left","center"],Dp="left";function Mh(e){return oce(V8e,Dp,e)}var JB=35,QB=70,Mp=50;function WR(e){let t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?Math.min(QB,Math.max(JB,Math.round(t))):Mp}import{parseOption as Y8e}from"efficient-shell/format";var j8e=["main","thumbs","tiled","stacked"],zp="thumbs";function mw(e){return Y8e(j8e,zp,e)}var q8e=["contain","cover"],Wp="contain";function uw(e){return dP(e,Wp)}function nce(){return q8e.map(e=>({label:CX[e],value:e}))}function rce(e,t){return t?"contain":e}import{parseOption as X8e}from"efficient-shell/format";var Z8e=["top","belowSpecs"],eH="top";function ace(e){return X8e(Z8e,eH,e)}var UR="trustBullets";import{parseOption as J8e}from"efficient-shell/format";var Mi="titleLook",fw=["card","headline"],vu="card",GR=e=>J8e(fw,vu,e),zh="accentLastWord",Wh="showBadge";var Q2="ProductGallery",lce=[Q2,xu,Hp,bc,HR],di={fitmentLine:"fitment-line",options:"options",facts:"facts",howMany:"how-many",buy:"buy",notify:"notify",reminder:"reminder"},eDe=28,dce="@price";function tDe(e){let{[dce]:t,...o}=e&&typeof e=="object"?e:{};return{price:t,others:o}}var oDe=Nj[0].value,tH=(e,t,o={})=>({...ze,name:e,gap:t,[oH("gap")]:t,...pt(0,0),blockSpacing:oDe,...o});function rH(e,t={}){let o=ace(e.pricePlacement),n={type:bc,props:cce(e)?{...t,[sce]:!0}:t},r={type:ce,props:tH("Stage",0),slots:{[Ce]:[{type:Q2,props:{galleryMode:mw(e.galleryMode),imageFit:uw(e.imageFit)}}]}},a={type:ce,props:tH("Buy column",eDe,Mh(e.textAlign)==="center"?{align:"center"}:{}),slots:{[Ce]:[{type:ce,props:tH("Title",0),slots:{[Ce]:[{type:xu,props:{[Mi]:"headline",[Wh]:!0}},{type:Hp,props:{[Mi]:"headline",[zh]:!0}}]}},...o==="top"?[n]:[],Di(di.fitmentLine,u("Remembered car")),Di(di.options,u("Options")),Di(di.facts,u("Settled facts")),Di(di.howMany,u("Quantity")),...o==="belowSpecs"?[n]:[],Di(di.buy,u("Buy row")),Di(di.notify,u("Notify me")),Di(di.reminder,u("Reminder"))]}};return yu(e.heroLayout)==="imageRight"?[a,r]:[r,a]}var cce=e=>e.showPriceQuote===!1,nDe={sectionBorder:{top:1,style:"solid"}},ice=20;function rDe(e){return $R(e).map((t,o)=>{if(o!==0)return t;let n={...t.props},r=i=>typeof i=="number"?i:void 0,a=r(t.props.sectionPaddingTop)??0;return n.sectionPaddingTop=ice+a,n[oH("sectionPaddingTop")]=ice+(r(t.props[oH("sectionPaddingTop")])??a),t.props.sectionBorder||Object.assign(n,nDe),{type:t.type,props:n}})}function $R(e){return Array.isArray(e)?e.filter(t=>Q8e(t)):[]}var hw="templateShape",gw="hero";function aDe(e){let t=e[Et];if(e[hw]===gw||!Array.isArray(t))return null;if(t.length===0)return[];let o=$R(t);return o.length===t.length&&o.every(n=>n.type!==ce)?o:null}function iDe(e,t={},o=[],n){let r=us(e,xr),a=Lo(rH(e,t),(s,l)=>`${r}~hero.${l}`);if(o.length===0&&!n)return a;let i=yu(e.heroLayout)==="imageRight"?0:1;return a.map((s,l)=>{if(l!==i)return s;let d=m=>({...m,props:{...m.props,[sce]:!0}}),c=n&&cce(e)?n.map(d):n,p=s.props[Ce].flatMap(m=>c&&m.type===bc?c.length>0?c:[d(m)]:[m]);return{...s,props:{...s.props,[Ce]:[...p,...o]}}})}function pce(e){let t=aDe(e);if(e[Et]!==void 0&&!t)return e;let o={...e,[hw]:gw},n={};for(let[r,a]of[[TZ,_i(e)],[uF,e[uF]]]){let{price:i,others:s}=tDe(a);i&&(n[r]={[dce]:i},Object.keys(s).length>0?o[r]=s:delete o[r])}return o[Et]=iDe(e,n,rDe(e[UR]),t??void 0),Array.isArray(e[UR])&&(o[UR]=[]),o}function nH(e){if(e.type===Q2)return!0;let t=e.props[Ce];return Array.isArray(t)&&$R(t).some(nH)}function mce(e,t){let o=e[Et];if(!t.heroLayout&&!t.textAlign||!Array.isArray(o)||o.length!==2)return e;let n=$R(o);if(n.length!==2||n.some(c=>c.type!==ce))return e;let r=n.findIndex(nH);if(r===-1||nH(n[1-r]))return e;let a=n[r],i=n[1-r],s=!1;if(t.textAlign){let c=Mh(e.textAlign)==="center";if(c&&i.props.align!=="center")i={...i,props:{...i.props,align:"center"}},s=!0;else if(!c&&i.props.align==="center"){let{align:p,...m}=i.props;i={...i,props:m},s=!0}}let l=yu(e.heroLayout)==="imageRight";if(t.heroLayout&&r===0===l&&(s=!0),!s)return e;let d=(t.heroLayout?l:r===1)?[i,a]:[a,i];return{...e,[Et]:d}}var hs="thanksTemplate",aH="After sending",KR=["Text","ImageBlock",ce,"ButtonBlock"],ku="showSent",VR=[{label:"Form",value:"form"},{label:"After sending",value:"sent"}];function YR(e,t){return!!t&&e==="sent"}var jR=(e,t={})=>{let{fillColor:o,...n}=Fj(e,void 0);return{...n,...t}},Su=(e,t={})=>jR(e,{sectionCorners:Math.ceil(e/2),...t});var Fa="facetTemplate",iH="Filter option template",e1=[{key:"facetLabel",label:"Filter option"},{key:"facetName",label:"Type name"},{key:"facetCount",label:"Option count"},{key:"facetColour",label:"Option colour",kind:"colour"},{key:"facetTickFill",label:"Tick box fill",kind:"colour"},{key:"facetTick",label:"Tick mark",kind:"image"},{key:"facetTickMark",label:"Tick box shown"},{key:"facetRadioMark",label:"Round mark shown"},{key:"facetDot",label:"Round mark dot",kind:"colour"}],sDe="sf-facet-tick-picture",sH="data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%271%200.75%2014%2014%27%20id%3D%27"+sDe+"%27%3E%3Cpath%20d%3D%27M3.2%208%206.4%2011.2%2012.8%203.2%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.56%27%2F%3E%3C%2Fsvg%3E",hce="--sf-facet-tick",gce="[&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[background-image:none]! [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[background-color:var(--accent-ink)]! [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[-webkit-mask:var(--sf-facet-tick)_center/cover_no-repeat] [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[mask:var(--sf-facet-tick)_center/cover_no-repeat]";function bce(e,t){return{facetLabel:e.label,facetName:"",facetCount:String(e.count),facetColour:e.swatch??"",facetTickFill:t?"main":"",facetTick:t?sH:"",facetTickMark:"tick",facetRadioMark:"",facetDot:""}}function wce(e,t){return{facetLabel:"",facetName:e.label,facetCount:String(e.count),facetColour:"",facetTickFill:t?"main":"",facetTick:"",facetTickMark:"",facetRadioMark:"radio",facetDot:t?"main":""}}var ww=["Text","ImageBlock",ce],bw={...Ws,direction:"row",align:"center",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap"},xce=13,qR=10,lDe=2,dDe=1;var cDe={size:xce,case:"capitalize",lineHeight:1.5},pDe={size:xce,case:"none",lineHeight:1.5},mDe={textStyle:"body-5",size:11,case:"none",letterSpacing:0,lineHeight:1.5},uce="muted",fce="surface",uDe=()=>({type:ce,props:{...bw,name:"Option",justify:"between",gap:qR,gapPhone:qR,...pt(4,12)},slots:{[Ce]:[{type:ce,props:{...bw,name:"Choice",gap:qR,gapPhone:qR,minWidth:0},slots:{[Ce]:[{type:ce,props:{...ze,name:"Tick mark",[Ea]:["facetTickMark"]},slots:{[Ce]:[{type:ce,props:{...jR(16,{sectionCorners:lDe,fillColor:uce,[Na]:"facetTickFill",...pt(1,1)}),name:"Tick box"},slots:{[Ce]:[{type:ce,props:{...jR(14,{sectionCorners:dDe,fillColor:fce,[Na]:"facetTickFill",[Jn]:"facetTick",...pt(0,0)}),name:"Tick"}}]}}]}},{type:ce,props:{...ze,name:"Round mark",[Ea]:["facetRadioMark"]},slots:{[Ce]:[{type:ce,props:{...Su(16,{fillColor:uce,[Na]:"facetTickFill",...pt(1,1)}),name:"Radio"},slots:{[Ce]:[{type:ce,props:{...Su(14,{fillColor:fce,...pt(3,3)}),name:"Radio ground"},slots:{[Ce]:[{type:ce,props:{...Su(8,{[Na]:"facetDot",...pt(0,0)}),name:"Dot"}}]}}]}}]}},{type:ce,props:{...ze,name:"Swatch",[Ea]:["facetColour"]},slots:{[Ce]:[{type:ce,props:{...Su(13,{sectionBorder:{width:1}}),name:"Ring"},slots:{[Ce]:[{type:ce,props:{...Su(11,{[Na]:"facetColour"}),name:"Colour"}}]}}]}},{type:ce,props:{...ze,name:"Label",[Ea]:["facetLabel"]},slots:{[Ce]:[Re("facetLabel",{...Ge,tag:"span",minWidth:0},cDe)]}},{type:ce,props:{...ze,name:"Name",[Ea]:["facetName"]},slots:{[Ce]:[Re("facetName",{...Ge,tag:"span",minWidth:0},pDe)]}}]}},Re("facetCount",{...vt,tag:"span"},mDe)]}});function fDe(e){return Lo([uDe()],si(e,"facet"))}function lH(e){return fs(e,Fa,So,fDe)}var gs="buyTemplate",vce="Buy template",dH="ProductBuyButton",cH="quantity",pH="save",kce=[ce,dH],yce=16,Sce="buy",hDe=e=>{let t=si(e,Sce);return{quantity:t(Ev,"0.0"),button:t(dH,"0.1"),save:t(Ev,"0.2")}},gDe=e=>{let t=hDe(e);return{type:ce,props:{...bw,name:"Buy row",align:"stretch",gap:yce,gapPhone:yce,wrapPhone:"wrap",orderPhone:[t.quantity,t.save,t.button]},slots:{[Ce]:[Di(cH,u("Quantity")),{type:dH,props:{widthFit:"fill",widthFitPhone:"fill"}},Di(pH,u("Save"))]}}};function bDe(e){return Lo([gDe(e)],si(e,Sce))}function Tce(e){return fs(e,gs,xr,bDe)}var ci="optionTemplate",Ece="Option template",uH=[{key:"swatch",label:"Finish colour",kind:"colour"},{key:"name",label:"Finish name"},{key:"label",label:"Option"},{key:"note",label:"Option note"}],Pce=["Text",ce],mH=(e,t,o={})=>({...Pa(e),letterSpacing:t,lineHeight:1.5,...o}),wDe={...Ws,direction:"row",align:"center",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap"},xDe=()=>({type:ce,props:{...Ws,direction:"column",name:"Option",...pt(12,12),sectionBorder:{width:2}},slots:{[Ce]:[{type:ce,props:{...wDe,name:"Finish",gap:12,gapPhone:12,[Ea]:["swatch"]},slots:{[Ce]:[{type:ce,props:{...ze,name:"Swatch"},slots:{[Ce]:[{type:ce,props:{...Su(20,{...pt(0,0),sectionBorder:{width:1},[Na]:"swatch"}),name:"Dot"}}]}},Re("name",{...Ge,tag:"span",minWidth:0},mH(12,.18,{weight:700}))]}},{type:ce,props:{...ze,name:"Words",gap:4,gapPhone:4,...pt(0,4),[Ea]:["label"]},slots:{[Ce]:[Re("label",{...Ge,tag:"span"},mH(14,.18)),Re("note",{...vt,tag:"span"},mH(11,.12))]}}]}});function yDe(e){return Lo([xDe()],si(e,"option"))}function Cce(e){return fs(e,ci,xr,yDe)}var fH="options",Nce=["Text","ImageBlock",ce,Fr],Oce=["Text","ImageBlock",ce],hH=(e,t)=>({...Pa(e),letterSpacing:t,lineHeight:1.2}),vDe=hH(12,.32),_ce=hH(12,.18),Rce={...hH(11,.14),color:"main"},gH=(e,t,o={})=>({...Ws,direction:"row",align:"center",gap:e,gapPhone:e,phoneRow:2,sharePhone:"content",...t?{wrapPhone:"nowrap"}:{},...o}),kDe=()=>({type:ce,props:{...gH(8,!0),name:"Option",...pt(8,12),sectionBorder:{width:1}},slots:{[Ce]:[Re("label",{...Ge,tag:"p"},_ce),Re("count",{...vt,tag:"p"},_ce)]}});function SDe(e){let t={type:ce,props:{...ze,name:"Group",gap:12,gapPhone:12},slots:{[Ce]:[Re("label",{...vt,tag:"p"},vDe),{type:ce,props:{...gH(8,!1,{align:"start",wrap:!0}),name:"Options"},slots:{[Ce]:[{type:Fr,props:{[Ds]:fH},slots:{template:[kDe()]}}]}}]}};return Lo([t],si(e,"group"))}function TDe(e){let t={type:ce,props:{...gH(8,!0),name:"Chip",...pt(4,8),sectionBorder:{width:1}},slots:{[Ce]:[Re("label",{...Ge,tag:"p"},Rce),Re("mark",{...Ge,tag:"p"},Rce)]}};return Lo([t],si(e,"chip"))}function Ace(e){return fs(e,Et,Li,SDe)}function Lce(e){return fs(e,Et,uu,TDe)}var Ba="railTemplate",Ice="Filter group template",Ha="railHeadTemplate",Fce="Filter head template",bH="railGroup",XR=[{key:bH,label:"Filter group"}],wH="options",xH="end",xw=ww,EDe={...ql,size:11,letterSpacing:.2,lineHeight:1.5},PDe={fontRole:"heading",size:18,weight:500,case:"upper",letterSpacing:-.01,lineHeight:1.5},CDe=()=>({type:ce,props:{...ze,name:"Group",gap:0,startsOpen:!0},slots:{rowTitle:[Re(bH,{...Ge,tag:"span"},EDe)],[Ce]:[{type:ce,props:{...ze,name:"Options",...pt(0,0),sectionPaddingBottom:12,sectionPaddingBottomPhone:12},slots:{[Ce]:[Di(wH,"Filter options")]}}]}}),_De=()=>({type:ce,props:{...bw,name:"Head",justify:"between",...pt(0,0),sectionPaddingBottom:8,sectionPaddingBottomPhone:8},slots:{[Ce]:[{type:"Text",props:{...Ge,tag:"h2",text:u("Filter"),_partStyles:{text:PDe}}},Di(xH,"Clear all")]}}),Bce=(e,t)=>{let o=0;return(n,r)=>r==="0"?`${e}~${t}`:`${e}~${t}.${o++}`};function RDe(e){return Lo([CDe()],Bce(e,"rail"))}function NDe(e){return Lo([_De()],Bce(e,"railhead"))}function yH(e){let t=e[Ba]===void 0,o=e[Ha]===void 0;if(!t&&!o)return e;let n=us(e,So);return{...e,...t?{[Ba]:RDe(n)}:{},...o?{[Ha]:NDe(n)}:{}}}var Hce=e=>({[bH]:e});var md="template",ud="reasonTemplate",ul="channelTemplate",Mce={key:"title",label:"Title",plain:!0},kH=[{key:"eyebrow",label:"Eyebrow",plain:!0},Mce,{key:"copy",label:"Body",multiline:!0},{key:"response",label:"Response time"}],zce=[Mce],SH=[{key:"label",label:"Label",plain:!0},{key:"value",label:"Value",plain:!0},{key:"sub",label:"Sub line",plain:!0},{key:"href",label:"Link",kind:"link"}],ZR=["Text","ImageBlock",ce],t1=(e,t)=>({...Pa(e),letterSpacing:t,lineHeight:1.5}),ODe={...t1(12,.24),color:"main"},ADe={textStyle:"heading-3",...po("headingSmall",26),weight:500,case:"upper",lineHeight:1.05,letterSpacing:-.02},LDe={textStyle:"heading-1",...po("body",14),weight:400,case:"none",lineHeight:1.5,letterSpacing:0,color:"muted"},Dce=t1(12,.22),IDe=t1(12,.2),FDe={...t1(12,.3),color:"main"},BDe={textStyle:"heading-3",...po("headingSmall",24),weight:500,case:"none",lineHeight:1.2,letterSpacing:-.02},HDe={...t1(12,.2),color:"muted"},yw=(e,t,o={})=>({...ze,name:e,gap:t,gapPhone:t,...o}),DDe=()=>({type:ce,props:yw("Topic",16,{justify:"between",...pt(40,32),sectionHeightMode:"fixed",sectionHeightValue:240,sectionHeightUnit:"px"}),slots:{[Ce]:[{type:ce,props:yw("Head",16),slots:{[Ce]:[Re("eyebrow",{...Ge,tag:"p",widthFit:"fill"},ODe),Re("title",{...Ge,tag:"h3",widthFit:"fill"},ADe)]}},{type:ce,props:yw("Foot",24),slots:{[Ce]:[Re("copy",{...vt,tag:"p",widthFit:"fill"},LDe),{type:ce,props:{...Ws,name:"Response",direction:"row",justify:"between",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",...pt(0,0),sectionPaddingTop:16,sectionPaddingTopPhone:16,sectionBorder:{top:1},[Ea]:["response"]},slots:{[Ce]:[{type:"Text",props:{...vt,tag:"p",text:"Response",_partStyles:{text:Dce}}},Re("response",{...Ge,tag:"p"},Dce)]}}]}}]}}),MDe=()=>({type:ce,props:{...yw("Reason",0),...pt(12,16),sectionBorder:{width:1}},slots:{[Ce]:[Re("title",{...vt,tag:"p"},IDe)]}}),zDe=()=>({type:ce,props:{...yw("Channel",12),...pt(32,20,20,20),sectionPaddingLeft:22,sectionPaddingTopTablet:20,sectionPaddingRightTablet:20,sectionPaddingBottomTablet:20,sectionPaddingLeftTablet:20,sectionBorder:{bottom:1}},slots:{[Ce]:[Re("label",{...Ge,tag:"p",widthFit:"fill"},FDe),{type:ce,props:{...yw("Value",0),[Go]:"href"},slots:{[Ce]:[Re("value",{...Ge,tag:"p",widthFit:"fill"},BDe)]}},Re("sub",{...vt,tag:"p",widthFit:"fill"},HDe)]}});function vH(e,t,o){return Lo([e],si(t,o))}var WDe=e=>us(e,"ContactRouting");function Wce(e){let t=e[md]===void 0,o=e[ud]===void 0,n=e[ul]===void 0;if(!t&&!o&&!n)return e;let r=WDe(e);return{...e,...t?{[md]:vH(DDe(),r,"topic")}:{},...o?{[ud]:vH(MDe(),r,"reason")}:{},...n?{[ul]:vH(zDe(),r,"channel")}:{}}}var UDe={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:900};function Tu(e,t){let o=$Y(e);if(!o)return{};let n=OZ({role:o},UDe),r={};return n.fontFamily&&(r[t.font]=n.fontFamily),n.fontSize&&(r[t.size]=n.fontSize),r}var JR=["step","name","value","note"],Uce={step:"Step",name:"Name",value:"Value",note:"Note"},vw={step:"styleStep",name:"styleName",value:"styleValue",note:"styleNote"},GDe={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 TH(e){return typeof e=="string"&&v0.includes(e)?e:null}function Gce(e){let t={};for(let o of JR){let n=TH(e[vw[o]]);n&&Object.assign(t,Tu(n,GDe[o]))}return t}var Uh="serviceTemplate",Gh="timeTemplate",Kce=[{key:"name",label:"Service"},{key:"meta",label:"Duration \xB7 price"},{key:"description",label:"Service description",multiline:!0}],Vce=[{key:"time",label:"Time"},{key:"businessTime",label:"Business time"}],Yce=[{slot:Uh,label:"Service template",fields:Kce},{slot:Gh,label:"Time template",fields:Vce}],jce=[...Kce,...Vce],$ce=["Text",ce],QR={[Uh]:{type:"slot",allow:[...$ce]},[Gh]:{type:"slot",allow:[...$ce]}},EH="BookingBox",PH="AppointmentBooking",o1=(e,t,o={})=>({fontRole:e,size:t,...o});function n1(e,t,o,n=!1){let r=TH(o[vw[t]]);if(!r)return e;let{fontRole:a,size:i,...s}=e;return{...s,role:r,...n?{size:i}:{}}}var r1={lineHeight:1.5};function $De(e){return{type:ce,props:{...Ws,direction:"column",name:"Service",justify:"center",gap:12,gapPhone:12,...pt(16,16),sectionBorder:{width:1}},slots:{[Ce]:[{type:ce,props:{...ze,name:"Words",gap:4,gapPhone:4},slots:{[Ce]:[Re("name",{...Ge,tag:"span"},n1(o1("heading",18,{weight:500,...r1}),"name",e)),Re("meta",{...vt,tag:"span"},n1(o1("label",11,{case:"upper",letterSpacing:.14,...r1}),"value",e))]}},{type:ce,props:{...ze,name:"Description",[Ea]:["description"]},slots:{[Ce]:[Re("description",{...vt,tag:"span"},n1(o1("heading",14,r1),"note",e))]}}]}}}function KDe(e){return{type:ce,props:{...Ws,direction:"column",name:"Time",align:"center",justify:"center",gap:2,gapPhone:2,...pt(8,12),sectionBorder:{width:1},sectionHeightMode:"fixed",sectionHeightValue:44,sectionHeightUnit:"px"},slots:{[Ce]:[Re("time",{...Ge,tag:"span"},n1(o1("label",12,{weight:600,case:"upper",letterSpacing:.12,align:"center",...r1}),"value",e)),{type:ce,props:{...ze,name:"Business time",align:"center",[Ea]:["businessTime"]},slots:{[Ce]:[Re("businessTime",{...vt,tag:"span"},n1(o1("label",9,{case:"upper",letterSpacing:.08,align:"center",...r1}),"value",e,!0))]}}]}}}function VDe(e,t={}){return Lo([$De(t)],si(e,"service"))}function YDe(e,t={}){return Lo([KDe(t)],si(e,"time"))}function jDe(e,t){return e===EH?t.region==="booking":e===PH?t.layout!=="boxes"||We(t.headPlacement)==="own-box":!1}function qce(e,t){if(!jDe(e,t))return t;let o=t[Uh]===void 0,n=t[Gh]===void 0;if(!o&&!n)return t;let r=us(t,e);return{...t,...o?{[Uh]:VDe(r,t)}:{},...n?{[Gh]:YDe(r,t)}:{}}}import{phoneKey as e5}from"efficient-easel/draw";function epe(e){return e.toUpperCase()==="US"?"lbs":"kg"}var Xce=.45359237,Zce=/\d[\d,]*(?:\.\d+)?/g,qDe=/(\d[\d,]*(?:\.\d+)?(?:\s*[–-]\s*\d[\d,]*(?:\.\d+)?)?)\s*(kgs?|lbs?)\b/gi,Jce=e=>Number(e.replace(/,/g,"")),Qce=e=>Math.round(e).toLocaleString("en-US");function XDe(e,t){let o={};for(let[,i,s]of e.matchAll(qDe)){let l=s.toLowerCase().startsWith("kg")?"kg":"lbs";o[l]??=i}let n=o[t];if(n!==void 0)return`${n.replace(Zce,i=>Qce(Jce(i))).replace(/\s*([–-])\s*/,"$1")} ${t}`;let r=o[t==="kg"?"lbs":"kg"];if(r===void 0)return e.trim();let a=t==="kg"?Xce:1/Xce;return`${r.replace(Zce,i=>Qce(Jce(i)*a)).replace(/\s*([–-])\s*/,"$1")} ${t}`}var ZDe=e=>e>0?`+${e}`:e<0?`\u2212${-e}`:"0",JDe=e=>{let t=/^(\d+)\s*[×x]\s*\d/.exec(e.boltPattern)?.[1];return t!==void 0&&Number(t)===e.holes?e.boltPattern:e.holes>0&&e.pcd?`${e.holes}\xD7${e.pcd}`:e.boltPattern},kw=[{fieldKey:"diameter",header:"Size",shownByDefault:!0,cell:e=>`${e.diameter} \xD7 ${e.width}`},{fieldKey:"bolt_pattern",header:"Bolt pattern",shownByDefault:!0,cell:JDe},{fieldKey:"et",header:"Offset",shownByDefault:!0,cell:e=>ZDe(e.et)},{fieldKey:"center_bore",header:"Centre bore",shownByDefault:!1,cell:e=>e.cb},{fieldKey:"cap_code",header:"Cap",shownByDefault:!1,cell:e=>e.cap},{fieldKey:"load_rating",header:"Load",shownByDefault:!0,cell:(e,t)=>XDe(e.loadRating,t)}];function QDe(e,t){let o=t.find(n=>n.fieldKey===e.fieldKey)?.fitment;return e.shownByDefault?o!==!1:o===!0}function tpe(e){let t=kw.filter(o=>QDe(o,e));return e.length===0?t:du(t,o=>o.fieldKey,e,"fitmentOrder")}var t5=Et,npe="Row template",Eu="headTemplate",rpe="Head template",CH=kw.map(e=>({key:e.fieldKey,label:e.header})),_H=e=>`head_${e.fieldKey}`,RH=kw.map(e=>({key:_H(e),label:`${e.header} heading`})),eMe="diameter",ope={textStyle:ql.textStyle,...po("label",14),letterSpacing:.06,lineHeight:1.5},tMe={...ql,...po("body",12),letterSpacing:.22,weight:400,lineHeight:1.5},ape=kw.filter(e=>e.shownByDefault),oMe={...ze,direction:"row",justify:"start",align:"start",share:"equal",phoneRow:2,[e5("share")]:"content",[e5("wrap")]:"nowrap",widthFit:"fill",gap:32,gapPhone:16,...pt(16,16)},ipe={[e5("widthFit")]:"fixed",[e5("width")]:120},spe=(e,t)=>({type:ce,props:{...oMe,name:e},slots:{[Ce]:t}}),lpe=()=>spe("Row",ape.map(e=>Re(e.fieldKey,{...Ge,name:e.header,tag:"p",...ipe},e.fieldKey===eMe?{...ope,color:"main"}:ope))),dpe=()=>spe("Head",ape.map(e=>Re(_H(e),{...vt,name:e.header,tag:"p",...ipe},tMe)));function cpe(e,t,o){let n=new Set(e.map(r=>r.fieldKey));return Object.fromEntries(kw.map(r=>[t(r),n.has(r.fieldKey)?o(r):""]))}function ppe(e,t,o,n){return{key:n,...cpe(t,r=>r.fieldKey,r=>String(r.cell(e,o)))}}function mpe(e,t){return{key:"head",...cpe(e,_H,o=>t(o.header))}}var wpe="tags",i1=Pm(12),xpe={textStyle:"heading-3",...po("headingSmall",20),weight:500,lineHeight:1.2,letterSpacing:-.02},ype={textStyle:"body-1",...po("body",14),lineHeight:1.55},nMe={...xpe,...po("headingSmall",30)},rMe={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},aMe=pl.fallback,iMe=480,sMe=70,lMe=()=>({type:ce,props:{...ze,name:"Featured",[Jn]:"cover",darken:55,darkenStyle:z2,darkenPhone:sMe,darkenStylePhone:z2,placement:SR,direction:"column",gap:8,gapPhone:8,...pt(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:aMe,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:iMe,sectionHeightUnitPhone:"px",[Go]:"href"},slots:{[Ce]:[Re("meta",{...Ge,tag:"p"},i1,!0),Re("title",{...Ge,tag:"h3",widthFit:"fill"},nMe),Re("excerpt",{...vt,tag:"p",widthFit:"fill",maxWidth:384},ype),Re("dateLabel",{...vt,tag:"p"},{...i1,color:"muted"})]}}),dMe=()=>({type:ce,props:{...ze,name:"Post",gap:0,gapPhone:0,...pt(0,0,0,0),...L4("surface"),shadow:!0},slots:{[Ce]:[{type:"ImageBlock",props:{[Ds]:"cover",aspect:"16/10",contained:!1}},{type:ce,props:{...ze,name:"Words",gap:12,gapPhone:12,...rMe},slots:{[Ce]:[{type:ce,props:{...ze,name:"Meta",direction:"row",wrap:!0,share:"content",sharePhone:"content",phoneRow:2,gap:12,gapPhone:12,...pt(0,0,0,0)},slots:{[Ce]:[Re("meta",{...Ge,tag:"p"},i1,!0),Re("dateLabel",{...vt,tag:"p"},{...i1,color:"muted"},!0)]}},Re("title",{...Ge,tag:"h3",widthFit:"fill"},xpe),Re("excerpt",{...vt,tag:"p",widthFit:"fill"},ype),{type:Fr,props:{[Ds]:wpe},slots:{template:[{type:ce,props:{...ze,name:"Chip",...pt(4,8,4,8),sectionBorder:{width:1}},slots:{[Ce]:[Re("label",{...vt,tag:"p"},i1)]}}]}},{type:"ButtonBlock",props:{variant:"ghost",label:"Read more",href:"",[Go]:"href",...Fv,icon:"arrow-right",iconPosition:"after",_partStyles:{label:Pa(12)}}}]}}]}}),OH=()=>[lMe(),dMe()];function cMe(e){let t=["featured","post"];return fs(e,Et,"Events",o=>Lo(OH(),(n,r)=>{let[a,...i]=r.split("."),s=t[Number(a)]??`card${a}`;return i.length?`${o}~${s}.${i.join(".")}`:`${o}~${s}`}))}var pMe={fields:[{key:"cover",label:"Cover",kind:"image",alt:"title"},{key:"meta",label:"Eyebrow"},{key:"dateLabel",label:"Date"},{key:"title",label:"Title"},{key:"excerpt",label:"Excerpt",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:wpe,label:"Tags",kind:"list",fields:[{key:"label",label:"Tag"}]}],blocks:[{type:Fr,label:"Card list"}],seedOnInsert:cMe},a1=e=>Number(/(\d+)px/.exec(e)?.[1]),s1={tag:a1(vh.tag.builtIn),name:a1(vh.name.builtIn),namePhone:a1(Pp.namePhone),body:a1(vh.body.builtIn),link:a1(vh.link.builtIn)},mMe={...Pm(s1.tag),letterSpacing:.25},uMe={textStyle:"heading-2",...po("headingMedium",s1.name,s1.namePhone),weight:500,lineHeight:1,letterSpacing:-.03},fMe={textStyle:"body-1",...po("body",s1.body),lineHeight:1.5,paragraphSpacing:12},upe=()=>[Re("tag",{...Ge,tag:"p"},mMe,!0),Re("name",{...Ge,tag:"h3",widthFit:"fill"},uMe),Re("desc",{...Ge,tag:"p",widthFit:"fill",maxWidth:420},fMe),{type:"ButtonBlock",props:{variant:"ghost",label:"Explore",href:"",[Go]:"href",...Fv,icon:"arrow-right",iconPosition:"after",_partStyles:{label:Pa(s1.link)}}}],fpe={_hidden:!0,_hiddenTablet:!0,_hiddenPhone:!1},AH=()=>({type:ce,props:{...ze,name:"Collection",gap:0,gapPhone:0,...pt(0,0,0,0),[Go]:"href"},slots:{[Ce]:[{type:ce,props:{...ze,name:"Picture",[Jn]:"image",boxShape:"portrait",darken:Pde,placement:"bottom-left",direction:"column",gap:12,gapPhone:12,...pt(32,32),hoverZoom:HB,hoverDarken:Cde,_hiddenPhone:!0},slots:{[Ce]:upe()}},{type:"ImageBlock",props:{[Ds]:"image",aspect:"4/5",contained:!1,hoverZoom:HB,...fpe}},{type:ce,props:{...ze,name:"Words",gap:12,gapPhone:12,...pt(24,24),...L4("surface"),...fpe},slots:{[Ce]:upe()}}]}});function hMe(e){return fs(e,Et,"Collections",t=>Lo([AH()],(o,n)=>`${t}~card${n?`.${n}`:""}`))}var gMe={fields:[{key:"tag",label:"Eyebrow"},{key:"name",label:"Title"},{key:"desc",label:"Description",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"name"},{key:"href",label:"Link",kind:"link"}],seedOnInsert:hMe},bMe=35,wMe=50,xMe=106,yMe=85,vMe="nextImage",kMe=FE,vpe="#c4c1ba",kpe={...ql,...Pm(11),letterSpacing:.24,color:"main"},SMe={...kpe,color:vpe},TMe={...ql,...Pm(12,11),color:"main"},EMe={textStyle:"heading-3",...po("headingSmall",22,16),weight:500,lineHeight:1.05,letterSpacing:-.02,color:kMe},PMe={...ql,...Pm(12),letterSpacing:.12,color:vpe},o5=pt(0,0,0,0),LH=()=>({type:ce,props:{...ze,name:"Tile",placement:"top-left",share:"content",gap:0,gapPhone:0,...o5,[Jn]:"image",boxShape:"square",darken:bMe,[Zf]:vMe,[R4.zoom]:xMe,[R4.darken]:wMe},slots:{[Ce]:[{type:ce,props:{...ze,name:"Top row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",widthFit:"fill",gap:8,gapPhone:8,...o5,sectionPaddingTop:12,sectionPaddingLeft:12,sectionPaddingRight:12,sectionPaddingTopPhone:10,sectionPaddingLeftPhone:10,sectionPaddingRightPhone:10},slots:{[Ce]:[{type:ce,props:{...ze,name:"Tag",direction:"row",share:"content",minWidth:0,...o5,[Jf]:wv},slots:{[Ce]:[Re("tag",{...Ge,tag:"p",textFit:"ellipsis"},kpe)]}},Re("number",{...Ge,tag:"p",textFit:"line"},SMe)]}},{type:ce,props:{...ze,name:"Words",justify:"end",align:"start",placement:"bottom-left",share:"content",widthFit:"fill",sectionHeightMode:"fill",gap:8,gapPhone:8,...pt(24,24,12,14),sectionPaddingTopPhone:4,darken:yMe,darkenStyle:"bottom",[Jf]:wv},slots:{[Ce]:[{type:ce,props:{...ze,name:"Heading",widthFit:"fill",gap:4,gapPhone:4,...o5},slots:{[Ce]:[Re("eyebrow",{...Ge,tag:"p",_hiddenPhone:!0},TMe),Re("name",{...Ge,tag:"h3"},EMe)]}},Re("meta",{...Ge,tag:"p"},PMe)]}}]}});function CMe(e){return fs(e,Et,"GalleryB",t=>Lo([LH()],(o,n)=>`${t}~tile${n?`.${n}`:""}`))}var _Me={fields:[{key:"image",label:"Image",kind:"image",alt:"name"},{key:"tag",label:"Tag"},{key:"number",label:"Card number"},{key:"eyebrow",label:"Eyebrow"},{key:"name",label:"Title"},{key:"meta",label:"Meta"},{key:"href",label:"Product link",kind:"link"}],seedOnInsert:CMe},RMe=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],NMe=e=>Object.fromEntries(Object.entries(e).filter(([t])=>!RMe.includes(t))),hpe={fields:[{key:"label",label:"Label"},{key:"href",label:"Link",kind:"link"}],blocks:[{type:Hh,label:"Menu link"}],seed:Ile},Sw=e=>e.dynamic===!0&&e.relationship==="bundles",Spe=(e={})=>ZB(e),n5={fields:DR,blocks:[{type:Z2,label:"Picture"},{type:xu,label:"Eyebrow"},{type:Hp,label:"Name"},{type:IR,label:"Specs"},{type:bc,label:"Price"},{type:BR,label:"Colour"},{type:XB,label:"Size"},{type:FR,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return J2(e);let t=OR(e);return Sw(e)?MR(t):J2(t)}},gpe=[{key:"label",label:"Filter name"},{key:fH,label:"Options",kind:"list",fields:[{key:"label",label:"Option"},{key:"count",label:"Count"}]}],bpe=[{slot:Ba,label:Ice,fields:XR},{slot:Ha,label:Fce,fields:[]}],OMe=[{block:"Reviews",fields:[{key:"quote",label:"Quote"},{key:"title",label:"Title"},{key:"name",label:"Name"},{key:"role",label:"Role \xB7 location"},{key:"rating",label:"Rating"},{key:"dateLabel",label:"Date"}],blocks:[{type:"RatingBlock",label:"Rating"}]},{block:"SpecTable",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]},{block:"DetailRows",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"}]},{block:"FooterMenu",...hpe},{block:yr,...hpe},{block:pa,...n5},{block:So,...n5,slots:[{slot:Et,fields:DR},{slot:Fa,label:iH,fields:e1},...bpe],fields:[...DR,...e1,...XR],seed:e=>yH(lH(tce(e)))},{block:"RelatedProducts",...n5,seed:e=>{let t=OR({...NMe(e),dynamic:!0});return Sw(t)?MR(t):J2(t,{legacyWellHonoured:!0})}},{block:"BundleOffer",...n5,seed:e=>MR(OR({...e,columns:VB(e),dynamic:!0}))},{block:xr,slots:[{slot:Et,fields:[]},{slot:ci,label:Ece,fields:uH},{slot:gs,label:vce,fields:[]}],fields:uH,blocks:[{type:Q2,label:"Product Gallery"},{type:xu,label:"Eyebrow"},{type:Hp,label:"Name"},{type:bc,label:"Price"},{type:HR,label:"SKU"}],seed:e=>Tce(Cce(pce(e)))},{block:Li,slots:[{slot:Et,fields:gpe},{slot:Fa,label:iH,fields:e1},...bpe],fields:[...gpe,...e1,...XR],blocks:[{type:Fr,label:"Card list"}],seed:e=>yH(lH(Ace(e)))},{block:uu,fields:[{key:"label",label:"Pick"},{key:"mark",label:"Remove mark"}],seed:Lce},{block:"ContactRouting",slots:[{slot:md,label:"Topic card",fields:kH},{slot:ud,label:"Reason chip",fields:zce},{slot:ul,label:"Channel row",fields:SH},{slot:hs,label:aH,fields:[]}],fields:[...kH,...SH],seed:Wce},{block:"Form",slots:[{slot:hs,label:aH,fields:[]}],fields:[]},{block:Mj,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:zj},...[EH,PH].map(e=>({block:e,slots:Yce,fields:jce,seed:t=>qce(e,t)})),{block:"Events",...pMe},{block:"Collections",...gMe},{block:"GalleryB",..._Me},{block:"FitmentTable",fields:[...RH,...CH],slots:[{slot:Eu,label:rpe,fields:RH},{slot:t5,label:npe,fields:CH}]}];eq(OMe);function IH(e,t){return e!=null&&O0(t)==="px"?e:null}var Tpe="Flex",Epe=10;function Ppe(e,t,o,{logoHeightPx:n}={}){let r=lw(e.util_style),a={...e.menu?{id:e.menu}:{},...e.menu_handle?{handle:e.menu_handle}:{},...e.menu_name?{name:e.menu_name}:{},items:(e.menu_items??[]).map(({label:E,url:T,dropdown_items:C,dropdown_aside:P})=>{let B=C?.length?Bi(P):null;return{label:E,url:T,...C?.length?{dropdown_items:C.map(aw)}:{},...B?{dropdown_aside:B}:{}}})},i=e.search_enabled?t("SearchBlock",{style:r}):null,s=e.search_position==="left",l=[s?i:null,e.country_selector_enabled?t("CountrySwitchBlock",{showAs:hc(e.country_selector_show_as)}):null,t("ThemeSwitchBlock"),e.account_enabled!==!1?t("AccountBlock",{style:r}):null,e.cart_enabled!==!1?t("CartBlock",{style:r}):null,s?null:i].filter(E=>E!==null),d=t("LogoBlock",{...n?{heightPx:n}:{},...e.reverse_logo!=null?{reverse:e.reverse_logo?"auto":"off"}:{}}),c=E=>{let T=t(yr,{menu:a,direction:"row",...E}),C=N0(yr,T.props);return C===T.props?T:{...T,props:C}},p=Ip(e.menu_row)==="inline"?32:20,m=E=>t(Tpe,{direction:"row",justify:"end",align:"center",share:"content",wrap:"nowrap",phoneRow:3,gap:p,content:E}),f=Math.min(Math.max(e.menu_split??3,1),4),g=e.logo_position==="center"&&a.items.length>f,h=e.menu_position==="center"?"center":e.menu_position==="beside"?"left":"right",b=oc.default,w=!g&&h==="left"?IH(e.menu_gap_px,e.menu_gap_unit)??b:b,y=g?[c({linkAlign:"left",linkRange:{from:1,to:f}}),d,m([c({linkAlign:"right",linkRange:{from:f+1}}),...l])]:[d,c({linkAlign:h}),...l.length?[m(l)]:[]],x=t(Tpe,{direction:"row",justify:"between",align:"center",share:"content",wrap:"nowrap",phoneRow:3,sectionPaddingTop:Epe,sectionPaddingBottom:Epe,gap:w,content:y}),k=AJ(ss,o,[x]),v=D2(e.theme),S=Ip(e.menu_row);return{...k,props:{...k.props,sticky:e.sticky??"always",topTextColor:e.top_text_color??"auto",...e.height_px!=null?{heightPx:e.height_px}:{},...e.width==="full"?{[Kq.content]:"full"}:{},...v!==null?{sectionAccent:v}:{},...e.nav_text_case?{navTextCase:e.nav_text_case}:{},...S?{menuRow:S}:{}}}}function r5(e){let t=IH(e.logo_size_px,e.logo_size_unit);return t??(e.logo_size!=null&&AMe(e.logo_size)?lF[e.logo_size]:void 0)}function AMe(e){return Object.hasOwn(lF,e)}async function FH(e,t,o,n){let r=await Bh(e,t),a=r5(r);return Ppe(r,o,n,{logoHeightPx:a})}var Cpe={siteHeader:async({make:e,id:t,siteId:o,token:n})=>n?FH(n,o,e,t):null};import{parseOption as MMe}from"efficient-shell/format";import{Banner as zMe,Button as MH,Drawer as WMe,InputNumber as UMe,LoadingSpinner as GMe,MediaUploadField as $Me,ShowWhen as s5,Slider as KMe,Tabs as VMe,Text as zH,tabButtonId as YMe,tabPanelId as jMe}from"efficient-shell/ui";import{PictureTiles as LMe}from"efficient-shell/ui";import{FlagUsIcon as IMe,GlobeIcon as FMe}from"efficient-shell/icons/efficient";import{GlobeAltIcon as BMe}from"efficient-shell/icons/efficient-looks";import{Fragment as BH,jsx as Up,jsxs as a5}from"react/jsx-runtime";var _pe=Up("span",{className:"inline-flex shrink-0 border border-current/20",children:Up(IMe,{size:15})}),Rpe={name:"UNITED STATES",code_currency:a5(BH,{children:["US",Up("span",{className:"opacity-50",children:"\xB7"}),"USD"]}),globe_code:a5(BH,{children:[Up(FMe,{size:12,className:"shrink-0"}),"US"]}),currency:"USD",flag_code:a5(BH,{children:[_pe,"US"]}),flag:_pe,globe:Up(BMe,{size:15,strokeWidth:"1.6"})};function HMe({kind:e}){return e==="globe"?Up("span",{"aria-hidden":!0,className:"inline-flex h-6 items-center",children:Rpe.globe}):a5("span",{"aria-hidden":!0,className:"inline-flex h-6 items-center gap-1 whitespace-nowrap rounded-xs border border-current px-2 font-mono text-(length:--text-3xs) font-medium tracking-wider",children:[Rpe[e],Up("span",{className:"opacity-70",children:"\u25BE"})]})}function i5({value:e,onChange:t,choices:o=dw}){return Up(LMe,{label:u(vR),columns:2,className:"w-full",captions:!0,value:hc(e),onChange:t,options:o.map(n=>({value:n.value,label:u(n.label),picture:Up(HMe,{kind:n.value})}))})}import{SettingsDefaultReset as HH,SettingsField as Pn,SettingsSwitch as Tw}from"efficient-easel/panel";import{FieldSelect as WH}from"efficient-easel/fields";import{useEaselStrings as QMe}from"efficient-easel/strings";import{AccountIcon as e9e,AlignLeftIcon as t9e,AlignSeparateIcon as o9e,BorderAllIcon as n9e,CartIcon as r9e,CaseIcon as a9e,FullWidthIcon as i9e,GapIcon as s9e,GlobeIcon as l9e,GridIcon as d9e,HeightIcon as Npe,LayoutIcon as c9e,ListIcon as p9e,LogoIcon as m9e,MenuIcon as u9e,PhoneIcon as f9e,PlacementIcon as Ope,SearchIcon as h9e,SettingsIcon as g9e,StickyIcon as b9e,StylesIcon as Mpe,SwapIcon as w9e,TextColorIcon as x9e}from"efficient-easel/icons";import{Fragment as $h,jsx as ie,jsxs as vr}from"react/jsx-runtime";var qMe={field:"country_selector_enabled",is:!0},d1={not:{context:"placeholderMode",is:!0}},XMe={field:"menu_position",is:"beside"},ZMe={all:[{field:"logo_position",is:"center"},{not:{field:"menu_position",is:"center"}}]},JMe={all:[d1,ei("country_selector_enabled")]},UH="sf-header",Ape="sf-header-size-label",Lpe="sf-header-gap-label",Ipe="sf-header-height-label",Fpe=[{id:"logo",label:"Logo",icon:ie(m9e,{})},{id:"menu",label:"Menu",icon:ie(p9e,{}),showWhen:d1},{id:"tools",label:"Tools",icon:ie(g9e,{})},{id:"look",label:"Look",icon:ie(Mpe,{})}];function GH({tokenRef:e,siteId:t,onClose:o,onAuthExpired:n,inline:r,placeholderMode:a,websiteName:i,onOpenWebsiteSettings:s}){let l=Dpe(),d=QMe(),[c,p]=Gp(null),[m,f]=Gp(null),[g,h]=Gp(!1),[b,w]=Gp(Fpe[0].id),y=c,x={placeholderMode:a},k=Object.values(kF(Object.fromEntries(Fpe.map(L=>[L.id,L])),y,x)),v=k.find(L=>L.id===b)??k[0],S="regions"in kF({regions:{showWhen:JMe}},y,x),[E,T]=Gp(0),{setSettings:C}=zn(),P=l1(null),B=l1(null),M=l1(null);Ew(()=>{let L=!1,O=null,G=null,Q=3,$=(de,ge=0)=>{L||f(null),Bh(de,t,ge>0).then(Qe=>{L||(I.current=Qe,p(Qe))}).catch(()=>{L||(ge+1<Q?G=setTimeout(()=>$(de,ge+1),600*(ge+1)):f(u("Could not load header settings.")))})},oe=e.current;if(oe)$(oe);else{let de=0;O=setInterval(()=>{let ge=e.current;if(ge){O&&clearInterval(O),O=null,L||f(null),$(ge);return}de+=250,de===5e3&&!L&&f(u("Waiting for editor authorization\u2026")),de>=3e4&&(O&&clearInterval(O),O=null,L||f(u("Not authorized yet \u2014 reopen once the editor has loaded.")))},250)}return()=>{L=!0,O&&clearInterval(O),G&&clearTimeout(G)}},[e,E,t]),Ew(()=>{c&&C(R2(c))},[c,C]),Ew(()=>()=>{P.current&&clearTimeout(P.current),B.current&&clearTimeout(B.current),M.current&&clearTimeout(M.current)},[]);let I=l1(null),A=xc(async(L,O)=>{let G=e.current;if(!G||!c)return;let Q=c;O&&p({...c,...O}),h(!0),f(null);try{let $=await L(G);I.current=$,p($),mle($,t),pb()}catch($){p(Q),$ instanceof or&&$.status===401?(ule(t),n?.(),f(u("Authorization expired \u2014 try again in a moment."))):f(u("Could not save. Please retry."))}finally{h(!1)}},[c,e,n,t]),_=xc(L=>A(O=>Ne.updateHeaderSettings(L,O,t??void 0),L),[A,t]),F=xc(L=>{A(O=>Ne.setHeaderLogoFromAsset(L,O,t??void 0))},[A,t]),K=xc(()=>{DMe(l,{accept:"image/svg+xml",title:u("Logo (SVG)")}).then(L=>{L&&F(L.id)})},[F]),V=xc((L,O=!0)=>{let G=Bpe("logo_size_unit",I.current?.logo_size_unit);p($=>$&&{...$,logo_size_px:L,...G}),P.current&&clearTimeout(P.current);let Q=()=>{A($=>Ne.updateHeaderSettings({logo_size_px:L,...G},$,t??void 0))};O?Q():P.current=setTimeout(Q,400)},[A,t]),Z=xc((L,O=!0)=>{p(Q=>Q&&{...Q,height_px:L}),B.current&&clearTimeout(B.current);let G=()=>{A(Q=>Ne.updateHeaderSettings({height_px:L},Q,t??void 0))};O?G():B.current=setTimeout(G,400)},[A,t]),Y=xc((L,O=!0)=>{let G=Bpe("menu_gap_unit",I.current?.menu_gap_unit);p($=>$&&{...$,menu_gap_px:L,...G}),M.current&&clearTimeout(M.current);let Q=()=>{A($=>Ne.updateHeaderSettings({menu_gap_px:L,...G},$,t??void 0))};O?Q():M.current=setTimeout(Q,400)},[A,t]),z=xc(()=>{A(async L=>{let O=await Ne.clearHeaderLogo(L,t??void 0);return O.reverse_logo?Ne.updateHeaderSettings({reverse_logo:!1},L,t??void 0):O})},[A,t]),q=xc(L=>{p(O=>O&&{...O,menu:L?.id??null,menu_handle:L?.handle??null,menu_name:L?.name??null,menu_items:L?L.items.map(G=>({label:G.label,url:G.url,dropdown_menu:G.dropdown_menu??null,dropdown_items:G.dropdown_items??[],dropdown_aside:G.dropdown_aside??null})):[]}),A(O=>Ne.updateHeaderSettings({menu:L?.id??null},O,t??void 0))},[A,t]),X=vr($h,{children:[m&&ie(zMe,{tone:"danger",className:"mx-4 mt-3",action:c?void 0:ie(MH,{variant:"secondary",size:"md",onClick:()=>T(L=>L+1),children:u("Retry")}),children:m}),c?vr($h,{children:[ie(C9e,{tabs:k,activeId:v.id,onSelect:w}),vr("div",{id:jMe(UH,v.id),role:"tabpanel","aria-labelledby":YMe(UH,v.id),className:"es-insp-body flex flex-col py-4 [&>*+*]:mt-3",children:[v.id==="logo"&&vr($h,{children:[vr(fl,{label:"Image",children:[ie(s5,{rule:d1,values:y,context:x,children:ie(y9e,{settings:c,websiteName:i,onPick:K,onClear:z})}),ie(Pn,{label:u("Reverse the Logo"),icon:ie(w9e,{}),hint:u("Keeps the logo readable on any header \u2014 flips just its black & white parts to contrast the bar behind it (in both light and dark themes). Any other colors are kept as-is."),action:ie(Tw,{checked:c.reverse_logo,onChange:L=>_({reverse_logo:L}),ariaLabel:u("Reverse the Logo")})})]}),vr(fl,{label:"Placement",children:[ie(Pn,{label:u("Position"),icon:ie(Ope,{}),value:(()=>{let L=io.logoPosition.options.find(O=>O.value===io.logoPosition.choose(c.logo_position))?.label;return L?u(L):void 0})(),children:ie(kp,{value:io.logoPosition.choose(c.logo_position),options:io.logoPosition.options,onChange:L=>_({logo_position:L}),ariaLabel:io.logoPosition.label})}),ie(Pn,{label:u("Size"),icon:ie(Npe,{}),labelId:Ape,value:c.logo_size_px!=null?Us(c.logo_size_px,c.logo_size_unit):`${r5(c)??Z0.min}px`,changed:c.logo_size_px!=null,action:ie(HH,{label:u("Size"),words:d.panel,changed:c.logo_size_px!=null,onReset:()=>V(null)}),hint:u("Sets the logo\u2019s height; the width follows the logo\u2019s own proportions."),children:ie(DH,{labelledBy:Ape,min:Z0.min,max:Z0.max,step:Z0.step,value:r5(c)??Z0.min,onCommit:L=>V(L,!0),onPreview:L=>V(L,!1)})})]})]}),v.id==="menu"&&ie($h,{children:vr(fl,{label:"Links",children:[ie(v9e,{token:e.current,menuId:c.menu,menuName:c.menu_name,itemCount:c.menu_items?.length??0,onPick:q}),ie(Pn,{label:u(io.menuAlign.label),icon:ie(t9e,{}),children:ie(kp,{value:io.menuAlign.choose(c.menu_position),options:io.menuAlign.options.filter(L=>L.value!=="beside"||c.logo_position!=="center"),onChange:L=>_({menu_position:L}),ariaLabel:io.menuAlign.label})}),ie(s5,{rule:XMe,values:y,children:ie(Pn,{label:u("Space from the logo"),icon:ie(s9e,{}),labelId:Lpe,value:c.menu_gap_px!=null?Us(c.menu_gap_px,c.menu_gap_unit):`${oc.default}px`,changed:c.menu_gap_px!=null,action:ie(HH,{label:u("Space from the logo"),words:d.panel,changed:c.menu_gap_px!=null,onReset:()=>Y(null)}),hint:u("How much room the menu leaves the logo. Only the logo moves away; the space between the menu words stays as it is."),children:ie(DH,{labelledBy:Lpe,min:oc.min,max:oc.max,step:oc.step,value:c.menu_gap_px??oc.default,onCommit:L=>Y(L,!0),onPreview:L=>Y(L,!1)})})}),ie(Pn,{label:u(io.menuRow.label),icon:ie(c9e,{}),children:ie(kp,{value:io.menuRow.choose(c.menu_row),options:io.menuRow.options,onChange:L=>_({menu_row:L}),ariaLabel:io.menuRow.label})}),ie(s5,{rule:ZMe,values:y,children:ie(Pn,{label:u("Left items"),icon:ie(o9e,{}),children:ie("div",{className:"w-16",children:ie(WH,{value:c.menu_split??3,ariaLabel:u("Left items"),onChange:L=>_({menu_split:L}),options:[1,2,3,4].map(L=>({label:String(L),value:L}))})})})}),ie(Pn,{label:u(io.navTextCase.label),icon:ie(a9e,{}),hint:Hi(u("{uppercase} draws SEARCH and BAG; {capitalised} draws Search and Bag. It covers the menu links and the Tools words together, and it leaves a name like FusionForge exactly as you typed it."),{uppercase:ie("strong",{children:u("Uppercase")}),capitalised:ie("strong",{children:u("Capitalised")})}),children:ie(kp,{value:io.navTextCase.choose(c.nav_text_case),options:io.navTextCase.options,onChange:L=>_({nav_text_case:L}),ariaLabel:io.navTextCase.label})})]})}),v.id==="tools"&&vr($h,{children:[ie(fl,{label:"Style",children:ie(Pn,{label:u(io.utilStyle.label),icon:ie(Mpe,{}),hint:Hi(u("{text} draws the words \u2014 Search, Account, Bag \u2014 instead of the little pictures. It changes how they look, not whether they are shown: that stays with the switches below."),{text:ie("strong",{children:u("Text")})}),children:ie(kp,{value:io.utilStyle.choose(c.util_style),options:io.utilStyle.options,onChange:L=>_({util_style:L}),ariaLabel:io.utilStyle.label})})}),vr(fl,{label:"Search",children:[ie(Pn,{label:u("Search"),icon:ie(h9e,{}),action:ie(Tw,{checked:c.search_enabled,onChange:L=>_({search_enabled:L}),ariaLabel:u("Search")})}),ie(Pn,{label:u(io.searchPosition.label),icon:ie(Ope,{}),children:ie(kp,{value:io.searchPosition.choose(c.search_position),options:io.searchPosition.options,onChange:L=>_({search_position:L}),ariaLabel:io.searchPosition.label})})]}),vr(fl,{label:"Country selector",children:[ie(Pn,{label:u("Show selector"),icon:ie(l9e,{}),action:ie(Tw,{checked:c.country_selector_enabled,onChange:L=>_({country_selector_enabled:L}),ariaLabel:u("Show selector")})}),ie(s5,{rule:qMe,values:{country_selector_enabled:c.country_selector_enabled},children:ie(Pn,{label:u("Show as"),icon:ie(d9e,{}),hint:S?Hi(u("Which countries this website serves \u2014 and each region's own URL \u2014 is set in the admin console under {place}. Whether the picker is SHOWN stays here: that is header chrome, but the served-country list has tax consequences and belongs with commerce configuration."),{place:ie("strong",{children:u("Storefront \u203A Settings \u203A Regions & currencies")})}):void 0,children:ie(i5,{value:c.country_selector_show_as,choices:xde,onChange:L=>L!=="globe"&&_({country_selector_show_as:L})})})})]}),vr(fl,{label:"Account and cart",children:[ie(Pn,{label:u("Account"),icon:ie(e9e,{}),action:ie(Tw,{checked:c.account_enabled??!0,onChange:L=>_({account_enabled:L}),ariaLabel:u("Account")})}),ie(Pn,{label:u("Cart"),icon:ie(r9e,{}),action:ie(Tw,{checked:c.cart_enabled??!0,onChange:L=>_({cart_enabled:L}),ariaLabel:u("Cart")})})]}),ie(fl,{label:"Call",children:ie(Pn,{label:u("Call button"),icon:ie(f9e,{}),hint:u("Calls the phone of the location this website shows, as its Set-up keeps it. With no phone there, the button is not shown."),action:ie(Tw,{checked:c.call_button??!1,onChange:L=>_({call_button:L}),ariaLabel:u("Call button")})})})]}),v.id==="look"&&vr($h,{children:[vr(fl,{label:"Dimensions",children:[ie(Pn,{label:u(io.width.label),icon:ie(i9e,{}),children:ie(kp,{value:io.width.choose(c.width),options:io.width.options,onChange:L=>_({width:L}),ariaLabel:io.width.label})}),ie(Pn,{label:u("Height"),icon:ie(Npe,{}),labelId:Ipe,value:`${c.height_px??ni.default}px`,changed:c.height_px!=null,action:ie(HH,{label:u("Height"),words:d.panel,changed:c.height_px!=null,onReset:()=>Z(null)}),hint:u("Sets how tall the header bar is; the content below it shifts down to match."),children:ie(DH,{labelledBy:Ipe,min:ni.min,max:ni.max,step:2,value:c.height_px??ni.default,onCommit:L=>Z(L,!0),onPreview:L=>Z(L,!1)})}),ie(Pn,{label:u("Border thickness"),icon:ie(n9e,{}),children:ie("div",{className:"w-24",children:ie(UMe,{value:c.border_thickness,min:0,max:20,precision:0,size:"md",suffix:"px","aria-label":u("Border thickness"),onChange:L=>_({border_thickness:Math.max(0,L??0)})})})})]}),vr(fl,{label:"Color",children:[ie(Vte,{value:c.theme??H2,onChange:L=>_({theme:L===H2?null:L}),followLabel:u("Follow the site theme"),hint:u("The color the bar paints once it is solid \u2014 after any scroll, and on every product page from the first paint. Follow the site theme keeps it on whatever palette the site is on.")}),ie(Pn,{label:u(io.topTextColor.label),icon:ie(x9e,{}),hint:u("Auto reads what the first section on each page says it is \u2014 dark, light or accent \u2014 and picks the text that can be read on it. Set Light or Dark to decide it yourself when Auto reads a page wrong."),children:ie(kp,{value:io.topTextColor.choose(c.top_text_color),options:io.topTextColor.options,onChange:L=>_({top_text_color:L}),ariaLabel:io.topTextColor.label})})]}),ie(fl,{label:"Behavior",children:ie(Pn,{label:u("Sticky header"),icon:ie(b9e,{}),children:ie("div",{className:"w-32",children:ie(WH,{value:c.sticky,ariaLabel:u("Sticky header"),onChange:L=>_({sticky:L}),options:[{label:u("None"),value:"none"},{label:u("Always"),value:"always"},{label:u("On scroll up"),value:"on_scroll_up"}]})})})}),s&&ie($h,{children:vr(fl,{label:"Display mode",children:[ie(zH,{as:"p",size:"xs",tone:"inherit",className:"text-[var(--ink-faint)]",children:u("Set the default Light / Dark / Auto mode and show or hide the light\u2194dark switch in Appearance.")}),ie(MH,{variant:"link",size:"sm",className:"self-start",onClick:s,children:u("Set up display mode \u2192")})]})})]})]})]}):m?null:ie(GMe,{size:"sm",padding:"p-4",label:u("Loading\u2026")})]});return r?vr("div",{className:"flex flex-col",children:[g&&ie("div",{className:"px-4 pt-2 text-[11px] text-[var(--ink-faintest)]",children:u("Saving\u2026")}),X]}):vr(WMe,{open:!0,onClose:o??(()=>{}),title:u("Header"),children:[g&&ie("div",{className:"pb-2 text-[11px] text-[var(--ink-faintest)]",children:u("Saving\u2026")}),X]})}function y9e({settings:e,websiteName:t,onPick:o,onClear:n}){let r=!!e.logo_url,a=!r&&!!e.default_logo_url,i=tc(e.effective_logo_url),s=t&&t.trim()?t.trim():tu;return vr("div",{children:[ie($Me,{value:i||"",onChange:l=>{l||n()},onPick:o,accept:"image/svg+xml,.svg",acceptHint:"SVG",fit:"contain",height:80,placeholder:u("No logo \u2014 \u201C{name}\u201D wordmark shown",{name:s}),replaceLabel:r?u("Replace SVG logo"):u("Upload SVG logo"),allowRemove:r,removeLabel:u("Use company default")}),ie(k9e,{children:r?u("Custom SVG logo uploaded for this store."):a?u("Using your company logo from the database."):u("No company logo on file \u2014 upload an SVG or the wordmark is used.")})]})}function v9e({token:e,menuId:t,menuName:o,itemCount:n,onPick:r}){let a=Dpe(),[i,s]=Gp(null),[l,d]=Gp(!1),[c,p]=Gp(!1),[m,f]=Gp(0),g=xc(k=>{s(k),d(!0),p(!1)},[]);Ew(()=>{let k=!1;return ble(e,m>0).then(v=>!k&&g(v)).catch(()=>{k||(s([]),p(!0))}),()=>{k=!0}},[e,g,m]),Ew(()=>{let k=!1,v=lu(()=>{wle(e).then(S=>!k&&g(S)).catch(()=>{})});return()=>{k=!0,v()}},[e,g]);let h=i===null,b=!h&&!c&&(i?.length??0)===0,w=!h&&(i??[]).some(k=>k.id===t),y=w?t:"",x=l&&!!t&&!w;return vr("div",{className:"flex flex-col gap-2",children:[ie(Pn,{label:u("Menu"),icon:ie(u9e,{}),children:ie("div",{className:"w-[170px] max-w-full",children:ie(WH,{value:y,ariaLabel:u("Menu"),readOnly:h||b||c,onChange:k=>{let v=k?(i??[]).find(S=>S.id===k):null;r(v?{...v,items:v.items.map(S=>{let E=(i??[]).find(T=>T.id===S.dropdown_menu);return{...S,dropdown_items:E?.items.map(aw)??[],dropdown_aside:Bi(E?.aside)}})}:null)},options:[{label:h?u("Loading\u2026"):c?u("Couldn\u2019t load menus"):b?u("No menus"):u("Default links"),value:""},...(i??[]).map(k=>({label:`${k.name} (${k.item_count??k.items.length})`,value:k.id}))]})})}),c?ie(NB,{onRetry:()=>{s(null),p(!1),f(k=>k+1)}}):x?ie(zH,{as:"p",size:"xs",tone:"inherit",className:"text-[var(--warning-text)]",children:dde()}):ie(zH,{as:"p",size:"xs",tone:"inherit",className:"text-[var(--ink-faint)]",children:y?Qn("Header shows \u201C{name}\u201D \u2014 {n} link.","Header shows \u201C{name}\u201D \u2014 {n} links.",n,{name:o??u("the linked menu")}):b?u("No menus yet. Create one in {place}, then pick it here.",{place:u("Storefront \u2192 Menus")}):u("Pick a menu to drive the header links, or keep the built-in default links.")}),ie(MH,{variant:"link",size:"sm",className:"self-start",onClick:()=>a.send("storefront-editor:open-menus",{menuId:y||null}),children:y?u("Edit menu \u2192"):u("Manage menus \u2192")})]})}function k9e({children:e}){return ie("p",{className:"es-field-hint",children:e})}function Bpe(e,t){return O0(t)==="px"?{}:{[e]:null}}function DH({labelledBy:e,value:t,min:o,max:n,step:r,onPreview:a,onCommit:i}){let s=`${e}-range`,l=l1(i);return l.current=i,Ew(()=>{let d=document.getElementById(s);if(!(d instanceof HTMLInputElement))return;let c=()=>l.current?.(Number(d.value)),p=m=>{/^(Arrow|Home|End|Page)/.test(m.key)&&c()};return d.addEventListener("pointerup",c),d.addEventListener("keyup",p),()=>{d.removeEventListener("pointerup",c),d.removeEventListener("keyup",p)}},[s]),ie(KMe,{id:s,value:t,min:o,max:n,step:r,showInput:!1,size:"sm",className:"sf-slider","aria-labelledby":e,valueText:d=>u("{n} pixels",{n:d}),onChange:d=>{d!=null&&a(d)}})}function fl({label:e,children:t}){return ie(XC,{title:u(e),children:ie("div",{className:"flex flex-col gap-3",children:t})})}var S9e=[{label:"Left",value:"left"},{label:"Center",value:"center"}],T9e=[{label:"Left",value:"left"},{label:"Right",value:"right"}],Hpe=[{label:"Right",value:"left"},{label:"Centered",value:"center"},{label:"Beside logo",value:"beside"}],E9e=Uq.map(e=>({label:Gq[e],value:e})),P9e=[{label:"Auto",value:"auto"},{label:"Light",value:"light"},{label:"Dark",value:"dark"}],io={logoPosition:{label:"Position",options:S9e,choose:e=>e==="right"?"center":e},menuAlign:{label:"Alignment",options:Hpe,choose:e=>MMe(Hpe,"left",e)},menuRow:{label:"Row",options:bR,choose:e=>Ip(e)??wR},searchPosition:{label:"Position",options:T9e,choose:e=>e},width:{label:"Width",options:E9e,choose:e=>e},navTextCase:{label:"Letters",options:F2,choose:e=>sw(e)},utilStyle:{label:"Show as",options:B2,choose:e=>lw(e)},topTextColor:{label:"Text color at the top",options:P9e,choose:e=>_b(e)}};function C9e({tabs:e,activeId:t,onSelect:o}){return ie("div",{className:"es-insp-tabs",children:ie(VMe,{variant:"underline",block:!0,labelsFit:!0,"aria-label":u("Header settings"),idPrefix:UH,value:t,onChange:o,items:e.map(n=>({id:n.id,icon:n.icon,label:u(n.label)}))})})}import{useState as $H}from"react";import{Banner as _9e,Button as KH}from"efficient-shell/ui";import{createNode as R9e,newId as N9e}from"efficient-easel/data";import{useEasel as O9e}from"efficient-easel/easel";import{useScreenDocument as A9e}from"efficient-easel/screen/components/ScreenDocumentContext";import{Fragment as L9e,jsx as l5,jsxs as I9e}from"react/jsx-runtime";function VH(){let{appState:e,dispatch:t,config:o}=O9e(h=>h),{readOnly:n,tokenRef:r,siteId:a}=A9e(),[i,s]=$H(!1),[l,d]=$H(!1),[c,p]=$H(!1),m=e.data.content;if(n||m.some(h=>h.type===ss))return null;let f=(h,b)=>R9e(o,h,b),g=async()=>{let h=r.current;if(!(!h||l)){d(!0),p(!1);try{let b=await FH(h,a,f,N9e(ss));t({type:"setData",data:w=>({...w,content:[...LJ(w.content,b)]}),recordHistory:!0}),s(!1)}catch{p(!0)}finally{d(!1)}}};return l5(_9e,{tone:c?"danger":"info",title:u("This header uses the old layout"),action:i?I9e(L9e,{children:[l5(KH,{variant:"primary",size:"sm",onClick:g,disabled:l,children:l?u("Switching\u2026"):u("Switch now")}),l5(KH,{variant:"secondary",size:"sm",onClick:()=>s(!1),disabled:l,children:u("Cancel")})]}):l5(KH,{variant:"secondary",size:"sm",onClick:()=>s(!0),children:u("Switch to Box header")}),children:c?u("The header settings could not be read. Try again."):u("Build it out of Boxes and blocks: the logo, menu, search, region and cart become blocks you can move. Your current header is kept.")})}import{Fragment as B9e,jsx as d5,jsxs as H9e}from"react/jsx-runtime";function YH({placeholderMode:e,tokenRef:t,siteId:o,websiteName:n,onOpenWebsiteSettings:r,onAuthExpired:a}){return H9e(B9e,{children:[d5(F9e,{rule:d1,values:null,context:{placeholderMode:e},children:d5("div",{className:"px-4 pt-3 pb-1",children:d5(VH,{})})}),d5(GH,{inline:!0,placeholderMode:e,tokenRef:t,siteId:o,websiteName:n??void 0,onOpenWebsiteSettings:r,onAuthExpired:a})]})}import{useEffect as M9e,useState as z9e}from"react";import{currentEaselSession as D9e}from"efficient-easel/screen/lib/session";function Pw({fetch:e,keyBy:t}){let o=null,n=null,r=null;return(a=!1)=>{let i=la(),s=t?t():null;return(a||!o||n===null&&i!==null||r!==s)&&(n=i,r=s,o=i||!D9e().usesBridgedToken?e(i??"",s).catch(()=>[]):Promise.resolve([])),o}}var yc=Pw({fetch:(e,t)=>Ne.listProducts(e,{siteId:t,kinds:["alloy-wheel","tyre"]}),keyBy:Sn}),Wn=(e=!1)=>yc(e).then(t=>t.filter(o=>o.kind==="alloy-wheel"));function zpe(e,t=!0){let[o,n]=z9e(null);return M9e(()=>{if(!t)return;let r=!1;return e().then(a=>{r||n(a)}),()=>{r=!0}},[e,t]),t?o:null}function Cw(){return zpe(Wn)}function c5(e=!0){return zpe(yc,e)}var Upe={list:async()=>(await Wn()).map(e=>({slug:e.slug,name:e.name,href:RC(e.slug)}))},Wpe=new Map;function W9e(e){let t=e??"",o=la(),n=Wpe.get(t);if(n&&!(n.token===null&&o!==null))return n.promise;let r=o&&e?Ne.listFieldUsage(o,e).then(_se).catch(()=>[]):Promise.resolve([]);return Wpe.set(t,{promise:r,token:o}),r}var Gpe={load:async e=>{let[t,o]=await Promise.all([yc().catch(()=>[]),W9e(e??void 0)]);return Rse({catalogue:t,fieldUsage:o,offersCommerce:!0})}};var jH=[{key:"cart",label:"Cart",href:"/?cart=open"},{key:"checkout",label:"Checkout",href:"/checkout"}],U9e=Object.fromEntries(jH.map(e=>[e.key,e]));function $pe(e){return U9e[e]}import{jsx as c1,jsxs as Kpe}from"react/jsx-runtime";var G9e={cart:Kpe("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c1("circle",{cx:"9",cy:"20",r:"1.4"}),c1("circle",{cx:"18",cy:"20",r:"1.4"}),c1("path",{d:"M2 3h2.2l2.1 12.3a1.6 1.6 0 0 0 1.6 1.3h8.6a1.6 1.6 0 0 0 1.6-1.2L21.5 7H5.3"})]}),checkout:Kpe("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c1("rect",{x:"2.5",y:"5",width:"19",height:"14",rx:"2"}),c1("path",{d:"M2.5 9.5h19"})]})},Vpe={get title(){return u("Shop")},get rows(){return jH.map(e=>({...e,label:u(e.label),icon:G9e[e.key]}))}};import{createEaselSession as sTt}from"efficient-easel/screen/lib/session";import{group as Q7e}from"efficient-easel/screen/lib/document/box-fields";import{jsx as Ru}from"react/jsx-runtime";import{jsx as Pu,Fragment as $9e,jsxs as K9e}from"react/jsx-runtime";import{useEasel as Ype}from"efficient-easel/easel";import{zoneKey as V9e}from"efficient-easel/data";import{LayersIcon as Y9e}from"efficient-easel/icons";import{SettingsDrill as j9e,SettingsField as q9e}from"efficient-easel/panel";import X9e from"efficient-easel/screen/components/AddChildRow";import{useSlotChildActions as Z9e}from"efficient-easel/screen/components/SlotChildActionsContext";function J9e({parent:e,parentType:t,label:o,rowName:n,onSelectChild:r,onAddChild:a,nestDepth:i=0}){let s=u2(t,i);if(!s)return null;let{slot:l,choices:d,spec:c}=s,p=String(e.props.id),m=V9e({parentId:p,slot:l}),f=Array.isArray(e.props[l])?e.props[l]:[],g=c?.addBlocked?.(f)??null,h=c?.notice?.(f)??null,b=K9e($9e,{children:[h?Pu("p",{className:"sf-note",children:h}):null,f.map((w,y)=>Pu(j9e,{name:n(w),onOpen:()=>r(m,y,String(w.props.id),t)},String(w.props.id??`${m}-${y}`))),d||c.fixed?null:Pu(X9e,{label:c.addLabel,blocked:g,onAdd:()=>a(p,l,c.childType,f.length,t)})]});return Pu("div",{className:"sf-slot-rows",children:o?Pu(q9e,{label:u(o),icon:Pu(Y9e,{}),value:String(f.length),children:b}):b})}function Q9e(e,t){return u2(e)?.spec?.notice?.(t)??null}function jpe({parentType:e}){let{selectedItem:t}=Ype(a=>a);if(!t||t.type!==e)return null;let o=u2(e)?.slot,n=o&&Array.isArray(t.props[o])?t.props[o]:[],r=Q9e(e,n);return r?Pu("p",{className:"sf-note",children:r}):null}function e7e(e,t){return u2(t)?.source==="footer"?e.blockRowName:e.childRowName}function qpe({parentType:e,label:t}){let{appState:o,selectedItem:n}=Ype(i=>i),r=Z9e();if(!r||!n||n.type!==e)return null;let a=e===Qq?QE(o?.data,String(n.props.id)):0;return Pu(J9e,{parent:n,parentType:e,label:t,rowName:e7e(r,e),onSelectChild:r.selectChild,onAddChild:r.addChild,nestDepth:a})}import{BlackAndWhiteIcon as V7e,ContrastIcon as Y7e,HeightIcon as j7e,TypeIcon as q7e}from"efficient-easel/icons";import{deviceField as X7e}from"efficient-easel/screen/lib/document/device-fields";var t7e=["eyebrow","heading","title","body","intro","button","link","label","number","value","name","price","date","caption","note","quote","tag","meta"],o7e=new Set(t7e);function Xpe(e){let t=e.toLowerCase().split(/[^a-z]+/).filter(Boolean);for(let o=t.length-1;o>=0;o-=1)if(o7e.has(t[o]))return t[o];return null}import{jsx as Wo,jsxs as m7e,Fragment as u7e}from"react/jsx-runtime";import{HeightIcon as f7e,ImageIcon as h7e,ImagesIcon as g7e,OpacityIcon as b7e,MediaLayoutSideBySideIcon as w7e,MediaLayoutStackedIcon as x7e,GapIcon as y7e,PaddingBottomIcon as ZH,PaddingTopIcon as JH,PlacementIcon as lme,PlayIcon as v7e,UploadIcon as k7e}from"efficient-easel/icons";import{useEasel as S7e,useSelectedHost as T7e}from"efficient-easel/easel";import{SettingsDefaultReset as E7e,SettingsField as P7e,SettingsSegmented as C7e}from"efficient-easel/panel";import{describedAs as _7e,FLAT_ACCESS as R7e,iconOf as N7e,onDesktopWords as O7e,phoneTwinFields as QH,useAccessPatch as A7e}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as XH}from"efficient-easel/screen/lib/document/style-fields";import{deviceField as Kh}from"efficient-easel/screen/lib/document/device-fields";import{jsx as hl,jsxs as qH,Fragment as n7e}from"react/jsx-runtime";import{createElement as p1,Fragment as r7e}from"react";import{IconPicker as a7e,InputNumber as i7e}from"efficient-shell/ui";import{SettingsField as s7e}from"efficient-easel/panel";var Qo=28,ma=1.5,p5=[3,2];function l7e(e){return Am(e)?Vs:e}function Jpe(e,t){return e===Vs?X4(p5[0],p5[1],t):e}var Zpe={min:.01,max:9999,step:1};function Qpe({value:e,follows:t,column:o,onChange:n,disabled:r}){let a=q4(e),i=a??q4(t)??p5,s=(d,c)=>{let p=c===null?0:Math.min(Zpe.max,Math.round(c*100)/100);if(!(p>0))return;let m=[i[0],i[1]];m[d]=p,n(X4(m[0],m[1],o))},l=(d,c)=>p1(i7e,{value:a?a[d]:null,...a?{}:{placeholder:String(i[d])},onChange:p=>s(d,p),...Zpe,prefix:u(c),disabled:r});return p1(s7e,{label:u("Custom W:H")},p1("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0}},l(0,"W"),l(1,"H")))}function d7e({ratio:e}){let[t,o]=e??[1,1],n=(Qo-ma*2)/Math.max(t,o),r=t*n,a=o*n;return hl("svg",{width:Qo,height:Qo,viewBox:`0 0 ${Qo} ${Qo}`,"aria-hidden":"true",children:hl("rect",{x:(Qo-r)/2,y:(Qo-a)/2,width:r,height:a,rx:2,fill:"none",stroke:"currentColor",strokeWidth:ma,strokeDasharray:e?void 0:"3 2"})})}function c7e(){let e=ma*2;return qH("svg",{width:Qo,height:Qo,viewBox:`0 0 ${Qo} ${Qo}`,"aria-hidden":"true",children:[hl("line",{x1:ma,y1:ma/2,x2:Qo-ma,y2:ma/2,stroke:"currentColor",strokeWidth:ma}),hl("line",{x1:ma,y1:Qo-ma/2,x2:Qo-ma,y2:Qo-ma/2,stroke:"currentColor",strokeWidth:ma}),hl("rect",{x:Qo/4,y:e,width:Qo/2,height:Qo-e*2,rx:2,fill:"none",stroke:"currentColor",strokeWidth:ma})]})}function eme(e){return{...e,picture:hl(c7e,{})}}var tme={width:"5.25rem",height:"3.5rem",words:!0},ome=3;function nme(e,t){return e.map(o=>({value:o[t],label:o.label,picture:o.shape===Vs?hl(p7e,{}):hl(d7e,{ratio:o.ratio})}))}function p7e(){let[e,t]=p5,o=(Qo-ma*2)/Math.max(e,t),n=e*o,r=t*o,a=(Qo-n)/2,i=(Qo-r)/2;return qH("svg",{width:Qo,height:Qo,viewBox:`0 0 ${Qo} ${Qo}`,"aria-hidden":"true",children:[hl("rect",{x:a,y:i,width:n,height:r,rx:2,fill:"none",stroke:"currentColor",strokeWidth:ma,strokeDasharray:"3 2"}),hl("path",{d:`M${a+4} ${i+r-4} L${a+n-4} ${i+4}`,stroke:"currentColor",strokeWidth:ma})]})}function rme({label:e,lines:t,column:o,value:n,onChange:r,disabled:a}){let i=hl(a7e,{label:u(e),value:l7e(n),options:Tte(nme(t,o)),onChange:s=>r(Jpe(s,o)),columns:ome,cell:tme,tooltips:!1,disabled:a});return Am(n)?qH(n7e,{children:[i,hl(Qpe,{value:n,column:o,onChange:r,disabled:a})]}):i}function _w(e,t,o,n,r,a={}){let i=[...nme(o,n),...a.more??[]],s=c=>i.some(p=>p.value===c),l=c=>Am(c)?Vs:c!==Vs&&s(c)?c:void 0,d=wo(e,t,i,r,{columns:ome,cell:tme,phoneRest:a.phoneRest,resolve:l});return{...d,render:c=>{let p=w=>c.onChange(w===void 0?w:Jpe(w,n)),m=d.render({...c,onChange:p}),f=c.value,g=f==null||f==="",h=c.field?.currentValue,b="follows"in c?c.follows:h;return!Am(f)&&!(g&&Am(b))?m:p1(r7e,null,m,p1(Qpe,{value:f,follows:b,column:n,onChange:c.onChange,disabled:c.readOnly===!0}))}}}function L7e(){return eP.filter(e=>e.ratio!==null||e.shape===Vs)}var e8={desktop:{number:"heightDesktop",fixed:"heightFixed"},tablet:{number:"heightTablet",fixed:"heightFixedTablet"},mobile:{number:"heightMobile",fixed:"heightFixedMobile"}},ame={read:e=>e.heightMobile,write:(e,t,o)=>({heightMobile:o}),fieldKey:()=>"heightMobile",ownField:!0,tablet:{read:e=>e.heightTablet,write:(e,t,o)=>({heightTablet:o}),fieldKey:()=>"heightTablet",ownField:!0}};function ime(e,{number:t,fixed:o}){let n=t===void 0?void 0:e[t];return HQ(e[o])??(typeof n=="number"?{unit:"vh",vh:n}:null)}var I7e="On Tablet, this hero uses the Desktop vh. Set vh in the Desktop view.";function F7e({view:e,keys:t,props:o}){let n=T7e(),r=A7e(R7e),{number:a}=t,i={...n?.values??{},...a?{[a]:o.value}:{}},s=ime(i,t),l=e==="tablet"?ime(i,e8.desktop):null,d=s??l??{unit:"vh",vh:Oa.fallback},c=o.readOnly===!0,p=L7e(),m=w=>{if(w===d.unit)return;if(w!=="vh"){r([[t.fixed,l?.unit===w?l.value:BQ[w]]]);return}let y=a!==void 0&&typeof i[a]!="number"&&l!==null&&l.unit!=="vh";r([[t.fixed,void 0],...y?[[a,Oa.fallback]]:[]])},f=s===null&&e!=="desktop",g=a===void 0,h=g&&l!==null&&l.unit!=="vh",b=l===null?`${Oa.fallback} ${Oa.unit}`:l.unit==="vh"?`${l.vh} ${Oa.unit}`:l.unit==="px"?l.value:p.find(w=>w.image===l.value)?.label??l.value;return Wo(P7e,{label:u("Height"),icon:N7e(Wo(f7e,{})),hint:g&&(d.unit==="vh"||h)?u(I7e):void 0,action:e==="desktop"?void 0:Wo(E7e,{words:$E()?.panel,label:u("Height"),changed:s!==null||!!i[t.fixed],detail:e==="tablet"?O7e(ib,b):b,disabled:c,onReset:()=>r([...a?[[a,void 0]]:[],[t.fixed,void 0]])}),children:m7e("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-8)",flex:"1 1 auto",minWidth:0},children:[Wo(C7e,{options:[{id:"vh",label:u("vh"),disabled:h},{id:"ratio",label:u("Ratio")},{id:"px",label:u("px")}],value:d.unit,onChange:m,ariaLabel:u("Unit"),disabled:c}),d.unit==="ratio"?Wo(rme,{label:"Height",lines:p,column:"image",value:d.value,disabled:c,onChange:w=>r([[t.fixed,w]])}):d.unit==="px"?e6({...QP,value:f?null:d.px,...f?{placeholder:d.px}:{},suffix:QP.unit,ariaLabel:"Height",disabled:c,onChange:w=>r([[t.fixed,`${w}${QP.unit}`]])}):e6({min:Oa.min,max:Oa.max,step:Oa.step,value:f?null:d.vh,...f?{placeholder:d.vh}:{},suffix:Oa.unit,ariaLabel:"Height",disabled:c||g,onChange:w=>o.onChange(w)})]})})}var m5=(e,t=e8[e])=>({type:"custom",..._7e({},{type:"number",label:"Height"}),render:o=>Wo(F7e,{view:e,keys:t,props:o})}),B7e={read:e=>e.heightFixedTablet,write:(e,t,o)=>({heightFixedTablet:o}),fieldKey:()=>"heightFixedTablet",ownField:!0};function u5({tabletNumber:e=!0}={}){let t=e?ame:{...ame,tablet:B7e},o=m5("tablet",e?void 0:{fixed:e8.tablet.fixed}),n=QH("heightDesktop",m5("desktop"),t,{phoneRow:o}),r=QH("heightDesktop",m5("desktop"),t,{phoneRow:m5("mobile")});return{heightDesktop:n.heightDesktop,...e?{heightTablet:n.heightTablet,heightFixedTablet:XH("heightTablet")}:{heightFixedTablet:n.heightFixedTablet},heightMobile:r.heightMobile,heightFixed:XH("heightDesktop"),heightFixedMobile:XH("heightMobile")}}var t8={overlayColor:ds("Overlay color",ls),overlayPosition:t6("Overlay position",OF,uh,"A corner would need a diagonal ramp, which this overlay does not draw.",Wo(lme,{}))},dme="Texture",cme=e=>t6("Overlay position",OF,e,"A corner would need a diagonal ramp, which this overlay does not draw.",Wo(lme,{}),void 0,dme);function H7e(){try{let{appState:e,selectedItem:t}=S7e(o=>o);return D7e(e,t?.props?.id)}catch{return}}function D7e(e,t){return fr(mC(e,t)?.props?.textureColor)}function M7e({value:e,onChange:t}){let[o]=ac("overlayPosition"),n=H7e(),r=fr(e)??"",a=AF({overlayColor:r,overlayPosition:o},n);return Wo(Mte,{label:u("Overlay color"),value:r,inherited:a.color,resetTo:u(dme),onChange:t,onReset:()=>t("")})}var z7e=cme(uh),W7e=cme("");function U7e(e){let[t]=ac("overlayColor"),o=AF({overlayColor:t,overlayPosition:e.value}).own?z7e:W7e;return Wo(u7e,{children:o.render(e)})}function G7e(e){if(!Array.isArray(e))return;let t=e.flatMap((o,n)=>fr(o?.props?.overlayColor)?[n+1]:[]);if(t.length!==0)return t.length===1?u("Slide {n}: own Overlay color.",{n:t[0]}):u("Slides {n}: own Overlay color.",{n:t.join(", ")})}function $7e({value:e,onChange:t}){let[o]=ac("slides");return Wo(Dte,{label:u("Texture color"),value:e||ls,onChange:t,hint:G7e(o)})}var pme={type:"custom",render:({value:e,onChange:t})=>Wo($7e,{value:e,onChange:t})},o8={overlayColor:{type:"custom",render:({value:e,onChange:t})=>Wo(M7e,{value:e,onChange:t})},overlayPosition:{type:"custom",render:({value:e,onChange:t})=>Wo(U7e,{value:e,onChange:t})}},K7e={one:Wo(h7e,{}),side:Wo(w7e,{}),stacked:Wo(x7e,{})},sme=e=>Te("Layout",Wo(g7e,{}),wX.map(t=>({label:yX[t],value:t,picture:K7e[t]})),xX,e?{phoneRest:t=>vX(void 0,t)}:void 0),Vh={mediaLayout:sme(),mediaLayoutPhone:QH("mediaLayout",sme(!0)).mediaLayoutPhone},m1=()=>ae("Tint",Wo(b7e,{}),0,100,5,0,"%"),mme=e=>Object.fromEntries(J4(e).map(t=>[t,Ep()])),ume=e=>et("Background image","image/*","Upload a background image",{focus:e}),u1=()=>ds("Tint color",ls),f5={mediaImage:ume(_a.image),...mme(_a.image)},f1={mediaImage2:ume(_a.image2),...mme(_a.image2),tintColor2:u1(),tintOpacity2:m1()},h5=Object.keys(Vh),Rw=Object.keys(f1),g5=["mediaImage",...J4(_a.image)],b5=e=>({mediaLayout:{all:[e,{not:{context:"device",is:"mobile"}}]},mediaLayoutPhone:{all:[e,{context:"device",is:"mobile"}]}}),Cu={videoSource:Te("Source",Wo(k7e,{}),pee.map(e=>({label:mee[e],value:e})),tl),youtubeUrl:J("YouTube link","https://youtu.be/\u2026"),videoPlayback:Te("Playback",Wo(v7e,{}),uee.map(e=>({label:fee[e],value:e})),iC)},_u={phoneWordsTop:Kh("mobile",ae(cC,Wo(JH,{}),lC,dC,1,_F,{kind:"spacing"},{clear:{hint:_F}})),phoneWordsBottom:Kh("mobile",ae(pC,Wo(ZH,{}),lC,dC,1,RF,{kind:"spacing"},{clear:{hint:RF}})),phoneBoxGap:Kh("mobile",ae(Aee,Wo(y7e,{}),lC,dC,1,NF,{kind:"spacing"},{clear:{hint:NF}}))},fme={wordsTop:Kh("desktop",ae(cC,Wo(JH,{}),Zv,Jv,1,qv,{kind:"spacing"},{clear:{hint:qv}})),wordsBottom:Kh("desktop",ae(pC,Wo(ZH,{}),Zv,Jv,1,Xv,{kind:"spacing"},{clear:{hint:Xv}})),wordsTopTablet:Kh("tablet",ae(cC,Wo(JH,{}),Zv,Jv,1,qv,{kind:"spacing"},{clear:{hint:qv}})),wordsBottomTablet:Kh("tablet",ae(pC,Wo(ZH,{}),Zv,Jv,1,Xv,{kind:"spacing"},{clear:{hint:Xv}}))};var Z7e=e=>ae("Height",Ru(j7e,{}),Oa.min,Oa.max,Oa.step,Oa.fallback,Oa.unit,e),n8=e=>X7e(e,Z7e()),gl={ctaText:U("Button",Jd.text),ctaHref:Ve("Button link")},w5=()=>Te("Tone",Ru(Y7e,{}),[{label:"Default",value:"default"},{label:"Muted",value:"dim"}],"default");var vc=(e,t)=>({type:"custom",render:()=>Ru(qpe,{parentType:e,label:t})}),x5=e=>({type:"custom",render:()=>Ru(jpe,{parentType:e})});function J7e(e){let{photographyGrayscale:t}=zn();return ne(XQ,t===!0,Ru(V7e,{})).render(e)}function Nw(){return{type:"custom",render:e=>Ru(J7e,{...e})}}function hme(e){let t=Xpe(e);return t?Ru(sa,{noun:t}):Ru(q7e,{})}function Nu(e,t,o,{unsetLabel:n}){return{_gTextStyle:Q7e("Text style"),...Object.fromEntries(e.map(r=>[t[r],le(o[r],hme(o[r]),[{label:n,value:""},...v0.map(a=>({label:KY[a],value:a}))],"")]))}}import{Inline as eze,InputNumber as xme}from"efficient-shell/ui";import{SettingsField as tze}from"efficient-easel/panel";import{ListIcon as oze}from"efficient-easel/icons";var gme=e=>typeof e=="number"&&Number.isInteger(e)&&e>=1?e:void 0;function h1(e){if(!e||typeof e!="object")return null;let t=gme(e.from)??1,o=gme(e.to);return o!==void 0&&o<t||t===1&&o===void 0?null:o===void 0?{from:t}:{from:t,to:o}}var wme=(e,t)=>t>=e.from&&(e.to===void 0||t<=e.to),g1="plain",Ou="tabs",$p="button",bme=e=>e===void 0||e===""||e===null,Yh=(e,t,o,n="")=>({list:e,button:t,drawsButton:o,listHead:e,listTail:"",buttonHead:t,buttonTail:"",strip:n});function r8(e,t){let o=bme(t)||t===$p;if(e===Ou){let r="hidden view-tablet:block";return bme(t)||t===Ou?Yh("","",!1):t===$p?Yh("hidden","flex view-tablet:hidden",!0,r):Yh("flex view-tablet:hidden","",!1,r)}let n=e===$p;return!n&&!o?Yh("flex","",!1):n?o?Yh("hidden","flex",!0):Yh("flex view-tablet:hidden","hidden view-tablet:flex",!0):{...Yh("hidden view-tablet:flex","flex view-tablet:hidden",!0),listHead:"hidden",listTail:" view-tablet:flex",buttonHead:"flex",buttonTail:" view-tablet:hidden"}}var y5=420,v5=60;import{jsx as k5,jsxs as nze}from"react/jsx-runtime";function a8({value:e,onChange:t}){let o=h1(e),n=o?.from??1,r=o?.to??null,a=(i,s)=>t(h1({from:i??1,to:s??void 0}));return k5(tze,{label:u("Show links"),icon:k5(oze,{}),changed:o!==null,hint:u("The links this menu shows on a computer. Empty To means to the end."),children:nze(eze,{gap:2,wrap:!1,children:[k5(xme,{size:"md",prefix:u("From"),min:1,precision:0,value:n,"aria-label":u("Show links from"),onChange:i=>a(i,r)}),k5(xme,{size:"md",prefix:u("To"),min:1,precision:0,placeholder:u("End"),value:r,"aria-label":u("Show links to"),onChange:i=>a(n,i)})]})})}import{createContext as rze,useCallback as Ow,useContext as aze,useEffect as s8,useMemo as ize,useRef as l8,useState as Au}from"react";function yme(e,t){return`${(g_||(typeof window<"u"?window.location.origin:"")).replace(/^http/,"ws")}/ws/chat/?conversation=${e}&token=${encodeURIComponent(t)}`}var i8="/api/chat/public";function vme(e){let t=f2.getAccess();return t?{token:t}:e?{headers:{"X-Chat-Token":e}}:{}}async function kme(e){let t=f2.getAccess();return Ob(`${i8}/conversations/`,{method:"POST",token:t??void 0,body:JSON.stringify({subject:e.subject??"",body:e.body,guest_name:e.guestName??"",guest_email:e.guestEmail??"",guest_key:e.guestKey??""})})}async function Sme(e,t){return Ob(`${i8}/conversations/${e}/thread/`,vme(t))}async function Tme(e,t,o){return Ob(`${i8}/conversations/${e}/thread/`,{method:"POST",body:JSON.stringify({body:o}),...vme(t)})}import{jsx as dze}from"react/jsx-runtime";var sze="sf:aid",Eme="sf:chat",Pme=rze(null);function lze(){let e=da.getItem(Eme);if(!e)return null;try{return JSON.parse(e)}catch{return null}}function Cme({children:e,preview:t=!1}){let[o,n]=Au(!1),[r,a]=Au(null),[i,s]=Au([]),[l,d]=Au(!1),[c,p]=Au(null),[m,f]=Au(0),[g,h]=Au(!1),[b,w]=Au(!1),y=l8(o);y.current=o;let x=l8(null),k=l8(r);k.current=r,s8(()=>{t||a(lze())},[t]);let v=Ow(async M=>{try{let I=await Sme(M.id,M.token);s(I.messages)}catch{}},[]),S=Ow(()=>(t||x.current||(x.current=uae.restoreSession().then(()=>{h(!0),k.current&&v(k.current)},()=>h(!1))),x.current),[t,v]);s8(()=>{t||r&&v(r)},[t,r,v]),s8(()=>{if(t||!r)return;let M=f2.getAccess()??r.token,I=!1,A=null,_,F=3e3,K=()=>{I||(A=new WebSocket(yme(r.id,M)),A.onmessage=V=>{try{let Z=JSON.parse(V.data);Z.type==="chat_event"&&Z.event==="message"&&(v(r),!y.current&&Z.payload?.sender_role==="employee"&&f(Y=>Y+1))}catch{}},A.onclose=()=>{I||(_=setTimeout(K,F),F=Math.min(F*2,3e4))},A.onerror=()=>A?.close())};return K(),()=>{I=!0,_&&clearTimeout(_),A?.close()}},[t,r,v]);let E=Ow(()=>{n(!0),f(0),S()},[S]),T=Ow(()=>n(!1),[]),C=Ow(()=>{y.current||S(),n(M=>(M||f(0),!M))},[S]),P=Ow(async(M,I)=>{let A=M.trim();if(!A)return!1;if(t)return s(_=>[..._,{id:`preview-${_.length}`,sender_role:"customer",sender_name:I?.name||"You",body:A,image_url:null,created_at:""}]),w(!0),!0;d(!0),p(null),await S();try{if(r){let _=await Tme(r.id,r.token,A);s(F=>[...F,_])}else{let _=da.getItem(sze)||"",F=await kme({body:A,guestName:I?.name,guestEmail:I?.email,guestKey:_}),K={id:F.id,token:F.guest_token};da.setItem(Eme,JSON.stringify(K)),a(K),s(F.messages)}return!0}catch{return p("Could not send your message. Please try again shortly."),!1}finally{d(!1)}},[r,t,S]),B=ize(()=>({isOpen:o,open:E,close:T,toggle:C,messages:i,sending:l,error:c,unread:m,hasConversation:t?b:!!r,isSignedIn:g,send:P}),[o,E,T,C,i,l,c,m,r,g,P,t,b]);return dze(Pme.Provider,{value:B,children:e})}function _me(){let e=aze(Pme);if(!e)throw new Error("useChat must be used within <ChatProvider>");return e}import{useEffect as Pze,useRef as Cze,useState as m8}from"react";import{ChatBubbleLeftRightIcon as cze,ChatBubbleOvalLeftEllipsisIcon as pze,ChatIcon as mze,MegaphoneIcon as uze,PhoneIcon as fze,SparklesIcon as hze}from"efficient-shell/icons/efficient-glyphs";import{Fragment as Sze,jsx as S5,jsxs as Rme}from"react/jsx-runtime";var gze={"chat-bubble-left-right":cze,"chat-bubble-oval-left-ellipsis":pze,chat:mze,megaphone:uze,phone:fze,sparkles:hze};function bze(e){let t=wne(e?.launcherColor)||"var(--btn)";return{"--assistant-launcher-bg":t,"--assistant-launcher-ink":t==="var(--btn)"?"var(--btn-ink)":hq(t),"--assistant-launcher-bg-hover":`color-mix(in oklab, ${t} 85%, black)`}}function wze(e){return e?.launcherLabel?.trim()??""}function d8(e){return bne(e?.launcherPosition)==="left"}var xze={position:"fixed",bottom:16,minWidth:48,height:48,padding:0,display:"flex",alignItems:"center",border:0,borderRadius:9999,cursor:"pointer",background:"var(--assistant-launcher-bg)",color:"var(--assistant-launcher-ink)",boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"},yze={width:48,height:48,flex:"none",display:"flex",alignItems:"center",justifyContent:"center"},vze="[data-chat-launcher-label]{max-width:0;opacity:0;overflow:hidden;white-space:nowrap;font-size:14px;font-weight:500;line-height:1;transition:max-width 120ms ease-out,opacity 120ms ease-out,padding 120ms ease-out}[data-chat-launcher]:hover [data-chat-launcher-label],[data-chat-launcher]:focus-visible [data-chat-launcher-label]{max-width:16em;opacity:1;padding-inline-end:16px}@media (prefers-reduced-motion:reduce){[data-chat-launcher-label]{transition:none}}",kze=`@media ${SZ}{[data-chat-launcher][data-hide-on-phones]{display:none!important}}`;function c8({label:e,onOpen:t,onWarm:o,zIndex:n=1e3,badge:r,look:a}){let i=gne(a?.launcherIcon),s=gze[i],l=wze(a),d=d8(a),c=a?.showOnPhones===!1,p=(l?vze:"")+(c?kze:"");return Rme(Sze,{children:[p&&S5("style",{children:p}),Rme("button",{type:"button","aria-label":e,onClick:t,onPointerEnter:o,onFocus:o,"data-sf-floating":"","data-chat-launcher":"","data-side":d?"left":"right","data-hide-on-phones":c?"":void 0,style:{...bze(a),...xze,...d?{left:16}:{right:16},zIndex:n},children:[S5("span",{style:yze,children:S5(s,{size:22,"data-icon":i})}),l&&S5("span",{"data-chat-launcher-label":"",children:l}),r]})]})}import{useEffect as Tze,useState as Eze}from"react";var Nme="(prefers-reduced-motion: reduce)";function p8(){return globalThis.window?.matchMedia?.(Nme)?.matches??!1}function fd(){return p8()?"auto":"smooth"}function Ome(){let[e,t]=Eze(!1);return Tze(()=>{let o=globalThis.window?.matchMedia?.(Nme);if(!o||(t(o.matches),typeof o.addEventListener!="function"))return;let n=r=>t(r.matches);return o.addEventListener("change",n),()=>o.removeEventListener("change",n)},[]),e}import{jsx as pn,jsxs as Kp}from"react/jsx-runtime";var _ze="Chat with us",Rze="We usually reply within a few minutes",Nze="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Oze({m:e}){if(e.sender_role==="system")return pn("div",{className:"text-center text-[11px] text-fg/50 py-1",children:e.body});let t=e.sender_role==="bot",o=e.sender_role==="employee"||t;return pn("div",{className:`flex ${o?"justify-start":"justify-end"}`,children:Kp("div",{className:`max-w-[80%] rounded-2xl px-3 py-2 text-sm ${o?"bg-fg/5 text-fg":"bg-accent text-accent-ink"}`,children:[o&&Kp("div",{className:"mb-0.5 flex items-center gap-1 text-[10px] font-semibold uppercase tracking-wide text-fg/50",children:[t&&pn("span",{"aria-hidden":"true",children:"\u2726"}),pn("span",{children:t?e.sender_name||"Assistant":e.sender_name||"Support"}),t&&pn("span",{className:"font-normal normal-case tracking-normal",children:"\xB7 automated"})]}),e.body&&pn("p",{className:"whitespace-pre-wrap",children:e.body}),e.image_url&&pn("a",{href:e.image_url,target:"_blank",rel:"noopener noreferrer",children:pn("img",{...ko(e.image_url,{fallbackWidth:640,maxWidth:1280}),sizes:"(max-width: 640px) 80vw, 320px",alt:"Attachment",className:"mt-2 max-h-48 w-auto rounded-lg"})})]})})}function u8({title:e,subtitle:t,greeting:o,look:n}={}){let{isOpen:r,toggle:a,close:i,messages:s,sending:l,error:d,unread:c,hasConversation:p,isSignedIn:m,send:f}=_me(),g=e?.trim()||_ze,h=t?.trim()||Rze,b=o?.trim()||Nze,[w,y]=m8(""),[x,k]=m8(""),[v,S]=m8(""),E=Cze(null),T=!m&&!p;Pze(()=>{r&&E.current?.scrollIntoView({behavior:fd(),block:"nearest"})},[s.length,r]);let C=/.+@.+/.test(v),P=w.trim().length>0&&(!T||x.trim()&&C),B=T&&v.trim().length>0&&!C,M=async()=>{if(!P||l)return;let I=w;await f(I,T?{name:x.trim(),email:v.trim()}:void 0)&&y(_=>_===I?"":_)};return r?Kp("aside",{role:"dialog","aria-label":"Chat with us","data-sf-floating":"",className:`fixed bottom-5 ${d8(n)?"left-5":"right-5"} z-[61] flex h-[min(560px,80vh)] w-[min(380px,calc(100vw-2.5rem))] flex-col overflow-hidden rounded-2xl border border-line bg-bg shadow-[0_20px_60px_rgba(0,0,0,.45)]`,style:{color:"var(--fg)"},children:[Kp("div",{className:"flex items-center justify-between border-b border-line px-4 py-3",children:[Kp("div",{children:[pn("div",{className:"text-sm font-semibold text-fg",children:g}),pn("div",{className:"text-[11px] text-fg/50",children:h})]}),pn("button",{type:"button",onClick:i,"aria-label":"Close chat",className:"rounded-md p-1 text-fg/60 hover:bg-fg/5",children:pn("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:pn("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),Kp("div",{className:"flex-1 space-y-2 overflow-y-auto px-3 py-3",children:[s.length===0&&pn("p",{className:"px-2 py-4 text-center text-sm text-fg/50",children:b}),s.map(I=>pn(Oze,{m:I},I.id)),pn("div",{ref:E})]}),Kp("div",{className:"border-t border-line p-3",children:[T&&Kp("div",{className:"mb-2 grid grid-cols-2 gap-2",children:[pn("input",{value:x,onChange:I=>k(I.target.value),placeholder:"Your name","aria-label":"Your name",className:"rounded-lg border border-line bg-transparent px-3 py-2 text-sm outline-none focus:border-accent"}),pn("input",{value:v,onChange:I=>S(I.target.value),type:"email",placeholder:"Email","aria-label":"Email","aria-invalid":B||void 0,"aria-describedby":B?"sf-chat-email-hint":void 0,className:"rounded-lg border border-line bg-transparent px-3 py-2 text-sm outline-none focus:border-accent"})]}),B&&pn("p",{id:"sf-chat-email-hint",className:"mb-2 text-xs text-fg/60",children:"Enter your full email address to send."}),d&&pn("p",{role:"alert",className:"mb-2 text-xs text-alert",children:d}),Kp("div",{className:"flex items-end gap-2",children:[pn("textarea",{value:w,onChange:I=>y(I.target.value),onKeyDown:I=>{I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),M())},rows:1,placeholder:"Type a message\u2026","aria-label":"Message",className:`${dc} max-h-28 resize-none rounded-lg border border-line bg-transparent px-3 py-2 text-sm outline-none focus:border-accent`}),pn("button",{type:"button",onClick:()=>{M()},disabled:!P||l,className:"rounded-lg bg-btn px-3 py-2 text-sm font-semibold text-btn-ink disabled:opacity-40",children:l?"\u2026":"Send"})]})]})]}):pn(c8,{label:yo(g),onOpen:a,zIndex:60,look:n,badge:c>0&&pn("span",{className:"absolute -top-1 -right-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-red-600 px-1 text-[11px] font-bold text-white",children:c})})}import{CHROME_ATTR as Aze}from"efficient-easel/easel";import{jsx as f8}from"react/jsx-runtime";function h8(){let{chromePlaceholder:e,themeFromDocument:t}=zn(),{chat:o}=Sne();return e||t||!o.enabled?null:f8("div",{[Aze]:xne,children:f8(Cme,{preview:!0,children:f8(u8,{title:o.title,subtitle:o.subtitle,greeting:o.greeting,look:o})})})}import{useEffect as yWe,useRef as vWe}from"react";import{useEffect as Ize,useState as Fze}from"react";import{useEffect as Lze,useState as Ame}from"react";var g8=new Map;function b8(e){let t=g8.get(e);if(t)return t;let o=Fo.getTyre(e).catch(n=>{throw g8.delete(e),n});return g8.set(e,o),o}function Lme(e,t){let[o,n]=Ame("idle"),[r,a]=Ame(null);return Lze(()=>{if(!t||!e)return;let i=!1;return n("loading"),b8(e).then(s=>{i||(a(s),n("ready"))}).catch(()=>{i||n("error")}),()=>{i=!0}},[e,t]),{state:o,tyre:r}}var Bze=new Map,Ime=new WeakMap;function Hze(e){let t=e.variants.map(o=>o.specs?.tireType).filter(o=>!!o);return{coverImage:e.coverImage,tyreTypes:[...new Set(t)]}}function Dze(e){let t=Ime.get(e);return t||Ime.set(e,t=Hze(e)),t}function Mze(e){return b8(e).then(Dze)}function Fme(e){let[t,o]=Fze(Bze),n=[...new Set(e)].sort().join(`
8
8
  `);return Ize(()=>{if(!n)return;let r=!0;for(let a of n.split(`
9
9
  `))Mze(a).then(i=>{r&&o(s=>s.get(a)===i?s:new Map(s).set(a,i))}).catch(i=>{r&&console.error("[useTyreCatalog] tyre read failed",a,i)});return()=>{r=!1}},[n]),t}import{useCallback as Wze,useEffect as Uze,useRef as Gze}from"react";import{useEffect as b1}from"react";function kc({active:e,onDismiss:t,focusRef:o,lockScroll:n=!0,scopeRef:r,trapRef:a}){b1(()=>{if(!e)return;let i=r?.current?.ownerDocument??document,s=l=>{l.key==="Escape"&&t()};return i.addEventListener("keydown",s),()=>i.removeEventListener("keydown",s)},[e,t,r]),b1(()=>{if(!e||!n)return;let i=(r?.current?.ownerDocument??document).body,s=i.style.overflow;return i.style.overflow="hidden",()=>{i.style.overflow=s}},[e,n,r]),b1(()=>{if(!e)return;let i=(r?.current?.ownerDocument??document).documentElement,s=l=>{let d=Number(i.getAttribute(w8)||0)+l;d>0?i.setAttribute(w8,String(d)):i.removeAttribute(w8)};return s(1),()=>s(-1)},[e,r]),b1(()=>{if(!e||!a)return;let i=a.current?.ownerDocument??r?.current?.ownerDocument??document,s=i.activeElement,l=d=>{let c=a.current;if(d.key!=="Tab"||!c)return;let p=Array.from(c.querySelectorAll(zze)).filter(b=>!b.hasAttribute("hidden")&&b.getAttribute("aria-hidden")!=="true");if(p.length===0){d.preventDefault(),c.focus();return}let m=p[0],f=p[p.length-1],g=i.activeElement;(!(g&&c.contains(g)&&g!==c)||g===(d.shiftKey?m:f))&&(d.preventDefault(),(d.shiftKey?f:m).focus())};return i.addEventListener("keydown",l),()=>{i.removeEventListener("keydown",l),s&&s!==i.body&&s.isConnected&&s.focus()}},[e,a,r]),b1(()=>{e&&o?.current?.focus()},[e,o])}var zze="a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])",w8="data-sf-overlay";import{Fragment as Xze,jsx as jh,jsxs as x8}from"react/jsx-runtime";var v8="color-mix(in oklab, var(--bg) 78%, transparent)",k8={6:"backdrop-blur-[6px]",8:"backdrop-blur-[8px]"},$ze={popup:"z-[90]",consent:"z-[95]"},Kze=Qm(void 0).width,Vze="rgba(0,0,0,.5)",Yze={"top-left":{justifyContent:"flex-start",alignItems:"flex-start"},"top-center":{justifyContent:"center",alignItems:"flex-start"},"top-right":{justifyContent:"flex-end",alignItems:"flex-start"},left:{justifyContent:"flex-start",alignItems:"center"},center:{justifyContent:"center",alignItems:"center"},right:{justifyContent:"flex-end",alignItems:"center"},"bottom-left":{justifyContent:"flex-start",alignItems:"flex-end"},"bottom-center":{justifyContent:"center",alignItems:"flex-end"},"bottom-right":{justifyContent:"flex-end",alignItems:"flex-end"}};function Bme(e,t){let o=Number.parseInt(e.slice(1),16),n=o>>16&255,r=o>>8&255,a=o&255;return`rgba(${n}, ${r}, ${a}, ${Math.round(t)/100})`}function Hme(e,t){let o=t||e.closeButton!=="none";return e.outsideClick||!o}var y8=48,jze=46;function qze(e){let t=e.height==="full";return e.closeButton==="inside"||!t&&!e.fullWidth?{place:e.closeButton}:e.closeButton==="outside"?{place:"inside"}:t&&e.fullWidth?{place:"inside"}:t?{place:"inside",until:e.width+y8}:{place:"none"}}function zi({look:e,site:t,drawer:o,open:n=!0,inline:r=!1,modal:a=!0,onClose:i,label:s,labelledBy:l,children:d}){let c=Gze(null),p=Wze(()=>i?.(),[i]),m=a&&!r;kc({active:m&&n,onDismiss:p,focusRef:t?t.focusRef:o?void 0:c,trapRef:t?t.trapRef:o?c:void 0,lockScroll:o?.lockScroll});let f=o?.closeRef;if(Uze(()=>{!f||!m||!n||f.current?.focus({preventScroll:!0})},[f,m,n]),!r&&!n)return null;if(t){let x=["fixed inset-0",$ze[t.layer??"popup"],"flex items-center justify-center",t.scroll?"overflow-y-auto":"","p-6",k8[t.blur],t.sheetOnPhone?"max-[880px]:items-end max-[880px]:p-0":""].filter(Boolean).join(" ");return jh("div",{role:"dialog","aria-modal":"true","aria-label":s,"aria-labelledby":l,"data-popup-frame":"site",onClick:k=>{k.target===k.currentTarget&&p()},className:x,style:{background:v8,animation:t.animation},children:d})}if(!e)return null;if(o){let x=e.placement==="left",k=e.width!==Kze;return x8(Xze,{children:[jh("div",{onClick:m&&Hme(e,!0)?p:void 0,className:"fixed inset-0 z-[60] backdrop-blur-[4px]",style:{background:Bme(e.tintColor,e.tintOpacity).replaceAll(" ",""),animation:"storefront-cart-fade 350ms ease both"},"aria-hidden":"true"}),x8("aside",{ref:c,role:"dialog","aria-label":s,"aria-modal":"true",className:`fixed inset-y-0 ${x?"left-0":"right-0"} z-[61] flex ${k?"w-[var(--sf-cart-drawer-width)]":"w-[520px]"} max-w-[100vw] flex-col ${x?"border-r":"border-l"} border-line bg-bg max-[640px]:w-screen ${x?"max-[640px]:border-r-0":"max-[640px]:border-l-0"}`,style:{...k?{"--sf-cart-drawer-width":`${e.width}px`}:null,animation:`${x?"storefront-cart-slide-left":"storefront-cart-slide"} 450ms cubic-bezier(.2,.7,.2,1) both`,boxShadow:`${x?"":"-"}30px 0 80px ${Vze}`},onClick:v=>v.stopPropagation(),children:[jh("style",{children:`
10
10
  @keyframes storefront-cart-fade { from { opacity: 0 } to { opacity: 1 } }
11
11
  @keyframes storefront-cart-slide { from { transform: translateX(40px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
12
12
  ${x?` @keyframes storefront-cart-slide-left { from { transform: translateX(-40px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
13
- `:""}`}),d]})]})}let g=x=>{!m||!Hme(e,!1)||x.target===x.currentTarget&&p()},h=e.height==="full",b=e.fullWidth||h,w=qze(e),y=x8("div",{ref:c,tabIndex:-1,"data-popup-panel":"",className:"relative flex flex-col bg-bg text-fg outline-none",style:{width:e.fullWidth?"100%":`min(${e.width}px, 100%)`,height:h?"100%":void 0,maxHeight:e.fullWidth&&!h||w.place==="outside"?`calc(100% - ${y8}px)`:"100%",borderRadius:b?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[w.place!=="none"?jh("button",{type:"button","aria-label":"Close",onClick:r?void 0:p,"data-popup-close":w.place,"data-popup-close-until":w.until,className:"absolute z-[5] flex h-[38px] w-[38px] items-center justify-center border border-line bg-bg font-mono text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-fg",style:w.place==="outside"?{top:-jze,right:0}:{top:12,right:12},children:"\xD7"}):null,w.until?jh("style",{children:`@container popup-frame (min-width: ${w.until+1}px){[data-popup-close-until="${w.until}"]{display:none}}`}):null,jh("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return jh("div",{role:a||r?"dialog":"region","aria-modal":m?!0:void 0,"aria-label":s,"data-popup-frame":r?"inline":"live",onClick:g,className:r?"relative flex min-h-[100vh] w-full":"fixed inset-0 z-[90] flex",style:{...Yze[e.placement],background:Bme(e.tintColor,e.tintOpacity),padding:b?0:w.place==="outside"&&e.placement.startsWith("top")?`${24+y8}px 24px 24px`:24,...w.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:y})}var Zze=25.4,w1=400,E5=152,Jze=58,Dme=E5*Math.cos(Jze*Math.PI/180),Qze=14,eWe=w1/2,tWe={sectionWidth:225,aspectRatio:60,rimDiameter:17};function zme(e){let t=lc(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:tWe}function Wme(e){let t=e.rimDiameter*Zze/2,o=t+e.sectionWidth*e.aspectRatio/100,n=E5*(e.sectionWidth/o),r=t/o;return{cy:eWe,rx:Dme,ry:E5,cxf:w1/2-n/2-Qze,dx:n,rimRx:Dme*r,rimRy:E5*r}}var to=e=>e.toFixed(1);function P5(e,t,o,n=!1){let r=e.cxf+t*e.dx,[a,i]=n?[e.cy+e.ry,e.cy-e.ry]:[e.cy-e.ry,e.cy+e.ry];return`M${to(r)} ${to(a)} A${to(e.rx)} ${to(e.ry)} 0 0 ${o} ${to(r)} ${to(i)}`}function S8(e,t,o){let n=e.cxf+t*e.dx,r=e.cxf+o*e.dx,a=e.cy-e.ry,i=e.cy+e.ry;return`M${to(n)} ${to(a)} L${to(r)} ${to(a)} A${to(e.rx)} ${to(e.ry)} 0 0 1 ${to(r)} ${to(i)} L${to(n)} ${to(i)} A${to(e.rx)} ${to(e.ry)} 0 0 0 ${to(n)} ${to(a)} Z`}function T5(e,t,o){let n=o*Math.PI;return[e.cxf+t*e.dx+e.rx*Math.sin(n),e.cy-e.ry*Math.cos(n)]}function Ume(e,t,o,n,r){let[a,i]=T5(e,t,n),[s,l]=T5(e,t,r),[d,c]=T5(e,o,r),[p,m]=T5(e,o,n);return`M${to(a)} ${to(i)} A${to(e.rx)} ${to(e.ry)} 0 0 1 ${to(s)} ${to(l)} L${to(d)} ${to(c)} A${to(e.rx)} ${to(e.ry)} 0 0 0 ${to(p)} ${to(m)} L${to(a)} ${to(i)} Z`}var Mme=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],oWe={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}}]},nWe=[["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 Gme(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return Mme;for(let[o,n]of nWe)if(t.includes(` ${o} `))return oWe[n];return Mme}var C5="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as rWe}from"react";function Da(e,t=/:/g){let o=rWe().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as x1,jsx as jt,jsxs as Sc}from"react/jsx-runtime";var bs={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},aWe=[.8,.52,.24],$me=.4,Kme=.88,Vme=.3,Yme=5,jme=.3,qme=.84,iWe=7,uo=e=>Math.round(e*10)/10;function T8({size:e,type:t,className:o}){let n=Da("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=Wme(zme(e)),i=S8(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Sc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${w1} ${w1}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[jt("title",{children:s}),Sc("defs",{children:[jt(lWe,{id:r}),jt("clipPath",{id:r.crown,children:jt("path",{d:i})})]}),jt("ellipse",{cx:uo(a.cxf+a.dx/2),cy:uo(a.cy+a.ry-4),rx:uo(a.dx*1.5),ry:16,fill:`url(#${r.shadow})`}),jt(dWe,{g:a,id:r}),jt(cWe,{g:a,id:r}),jt("path",{d:i,fill:`url(#${r.tread})`}),jt("g",{clipPath:`url(#${r.crown})`,children:Gme(t).map(l=>jt(sWe,{g:a,column:l},l.f[0]))}),jt("path",{d:P5(a,0,0,!0),stroke:"currentColor",strokeOpacity:bs.shoulder,strokeWidth:1.2}),jt("path",{d:P5(a,1,1),stroke:"currentColor",strokeOpacity:bs.silhouette,strokeWidth:1.4})]})}function sWe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Sc(x1,{children:[jt("path",{d:S8(e,o,n),fill:"currentColor",fillOpacity:bs.rib}),jt("path",{d:P5(e,o,1),stroke:"currentColor",strokeOpacity:bs.grooveWall,strokeWidth:1})]});let{count:r,gap:a,phase:i=0}=t.blocks,s=1/r,l=[];for(let d=-1;d<=r;d+=1){let c=Math.max((d+i+a/2)*s,0),p=Math.min((d+i+1-a/2)*s,1);p-c>s*.15&&l.push([c,p])}return jt(x1,{children:l.map(([d,c])=>jt("path",{d:Ume(e,o,n,d,c),fill:"currentColor",fillOpacity:bs.rib,stroke:"currentColor",strokeOpacity:bs.grooveWall,strokeWidth:1},d))})}function lWe({id:e}){return Sc(x1,{children:[Sc("linearGradient",{id:e.tread,x1:"0",y1:"0",x2:"1",y2:"0",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.07}),jt("stop",{offset:"0.14",stopColor:"currentColor",stopOpacity:.24}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.18}),jt("stop",{offset:"0.84",stopColor:"currentColor",stopOpacity:.1}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.05})]}),Sc("linearGradient",{id:e.wall,x1:"0.15",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.28}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.17}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.08})]}),Sc("linearGradient",{id:e.rim,x1:"0.1",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.46}),jt("stop",{offset:"0.5",stopColor:"currentColor",stopOpacity:.26}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.12})]}),Sc("radialGradient",{id:e.shadow,children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function dWe({g:e,id:t}){let o=e.rimRy/e.ry,n=a=>o+(1-o)*a,r=Math.max(6,(e.ry-e.rimRy)*.3);return Sc(x1,{children:[jt("ellipse",{cx:uo(e.cxf),cy:uo(e.cy),rx:uo(e.rx),ry:uo(e.ry),fill:`url(#${t.wall})`}),aWe.map((a,i)=>{let s=n(a);return jt("ellipse",{cx:uo(e.cxf),cy:uo(e.cy),rx:uo(e.rx*s),ry:uo(e.ry*s),stroke:"currentColor",strokeOpacity:bs.relief[i],strokeWidth:1},a)}),jt("ellipse",{cx:uo(e.cxf),cy:uo(e.cy),rx:uo(e.rx*n($me)),ry:uo(e.ry*n($me)),stroke:"currentColor",strokeOpacity:bs.lettering,strokeWidth:uo(r)})]})}function cWe({g:e,id:t}){let o=Array.from({length:Yme},(n,r)=>{let a=(r*(360/Yme)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*jme*Math.cos(a),y1:e.cy+e.rimRy*jme*Math.sin(a),x2:e.cxf+e.rimRx*qme*Math.cos(a),y2:e.cy+e.rimRy*qme*Math.sin(a)}});return Sc(x1,{children:[jt("ellipse",{cx:uo(e.cxf),cy:uo(e.cy),rx:uo(e.rimRx),ry:uo(e.rimRy),fill:`url(#${t.rim})`}),jt("ellipse",{cx:uo(e.cxf),cy:uo(e.cy),rx:uo(e.rimRx*Kme),ry:uo(e.rimRy*Kme),fill:"currentColor",fillOpacity:bs.dishFill,stroke:"currentColor",strokeOpacity:bs.dishEdge,strokeWidth:1}),o.map((n,r)=>jt("line",{x1:uo(n.x1),y1:uo(n.y1),x2:uo(n.x2),y2:uo(n.y2),stroke:"currentColor",strokeOpacity:bs.spoke,strokeWidth:iWe,strokeLinecap:"round"},r)),jt("ellipse",{cx:uo(e.cxf),cy:uo(e.cy),rx:uo(e.rimRx*Vme),ry:uo(e.rimRy*Vme),fill:"currentColor",fillOpacity:bs.hubFill,stroke:"currentColor",strokeOpacity:bs.hubEdge,strokeWidth:1})]})}import{jsx as E8}from"react/jsx-runtime";function Vp({image:e,size:t,type:o,sizes:n,priority:r=!1,className:a="aspect-square",showBackground:i=!0}){return E8("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:E8(ao,{label:t||"Tyre",src:ed(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:E8(T8,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as y1}from"react/jsx-runtime";function pWe(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function P8({line:e,catalog:t,tyre:o}){let n=t.find(c=>c.slug===e.slug),r=e.config.find(c=>c.gold)?.label,a=n?.finishes.find(c=>c.name===r&&c.src)??n?.finishes.find(c=>c.src),i=n?.spokes??5,s=n?.mesh??!1,d=(n?.finishes.find(c=>c.name===r)??n?.finishes[0])?.color??cie;return y1("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:k_(e)?y1(Vp,{image:o?.coverImage,size:e.size,type:pWe(o),sizes:"96px",className:"h-full w-full"}):a?.src?y1(Xs,{src:a.src,alt:`${n?.name??e.slug} \u2014 ${a.name}`,width:120,height:120,sizes:"96px",className:"relative z-[2] block w-[88%] object-contain",style:{filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"}}):n||t.length===0?y1("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:y1(Th,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as C8,jsxs as uWe}from"react/jsx-runtime";var Xme={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function Zme(e,t){return Math.min(v6,Math.max(1,e+t))}var Jme="disabled:cursor-not-allowed disabled:opacity-40",mWe={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${Xme.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${Jme}`,value:`w-11 text-center font-mono ${Xme.labelSmall} font-bold tracking-[0.1em] text-fg`},small:{frame:"flex items-center border border-line",button:`h-[30px] w-[30px] cursor-pointer font-mono text-fg-dim transition-colors enabled:hover:text-accent ${Jme}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function v1({value:e,onChange:t,size:o}){let n=mWe[o];return uWe("div",{className:n.frame,children:[C8("button",{type:"button",onClick:()=>t(Zme(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),C8("span",{className:n.value,children:e}),C8("button",{type:"button",onClick:()=>t(Zme(e,1)),disabled:e>=v6,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as Tc,jsx as Ke,jsxs as oo}from"react/jsx-runtime";function Qme({content:e,closeRef:t}){let{close:o,items:n}=Tn(),r=t;return oo("header",{className:"flex flex-shrink-0 flex-col gap-4 border-b border-line px-8 pb-6 pt-8 max-[640px]:px-6 max-[640px]:pt-6 max-[640px]:pb-5",children:[oo("div",{className:"flex items-center justify-between",children:[oo("span",{className:"flex items-center gap-3 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?Ke("span",{className:"border px-2 py-1 text-[10px]",style:{background:"color-mix(in oklab, var(--accent) 12%, transparent)",borderColor:"color-mix(in oklab, var(--accent) 50%, transparent)"},children:e.kickerBadge}):null,(e.kickerBadge?"\xB7 ":"")+e.kickerText]}),Ke("button",{ref:r,type:"button",onClick:o,"aria-label":"Close cart",className:"flex h-8 w-8 items-center justify-center border border-line text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u2715"})]}),oo("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",Ke("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),Ke("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:Zte(e,n.length)})]})}function eue({content:e}){let{totals:t}=Tn(),{activeCountry:o}=Ot(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return Ke(Tc,{children:oo("div",{className:`grid flex-shrink-0 ${fWe[r-1]} gap-px border-b border-line bg-line`,children:[Ke(_8,{label:"Items",value:oo(Tc,{children:[Ke("em",{className:"font-serif font-normal italic text-accent",children:t.sets})," set",t.sets===1?"":"s"," \xB7 ",t.units," item",t.units===1?"":"s"]})}),e.leadTimeValue?Ke(_8,{label:"Lead time",value:e.leadTimeValue}):null,n?Ke(_8,{label:"Ships to",value:n}):null]})})}function tue({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=Tn();return Ke(Tc,{children:o.length===0?Ke(xWe,{content:e}):o.map(a=>Ke(hWe,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function oue(){let{items:e,totals:t,bundles:o}=Tn(),{formatMoney:n}=Ot(),r=new Set(e.flatMap(s=>(s.components??[]).map(l=>l.partNumber))),a=new Set(t.appliedBundles.map(s=>s.slug)),i=o.filter(s=>!a.has(s.slug)).filter(s=>s.components.some(l=>r.has(l.partNumber))).slice(0,2);return Ke(Tc,{children:i.length>0&&oo("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",style:{background:"color-mix(in oklab, var(--site-surface) 60%, transparent)"},children:[oo("div",{className:"mb-4 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[Ke("span",{children:"You may also need"}),Ke("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),Ke("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:i.map(s=>Ke(gWe,{href:`/bundles/${s.slug}`,title:s.name,sub:bWe(s,t.currency,n)},s.slug))})]})})}function nue(){return Ke(Tc,{children:Ke("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:Ke(uie,{})})})}function rue({content:e}){return Ke(Tc,{children:e.promises.length>0&&Ke("div",{className:"flex flex-wrap justify-center gap-5 border-b border-line px-8 pt-6 pb-8 font-mono text-[9px] uppercase tracking-[0.24em] text-fg-dim max-[640px]:px-6",children:e.promises.map(t=>Ke(wWe,{children:t},t))})})}function aue(){let{totals:e,coupon:t}=Tn(),{formatMoney:o}=Ot();return Ke(Tc,{children:oo("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[Ke(Lu,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>Ke(Lu,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:oo("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),e.discount>0&&t?.valid&&Ke(Lu,{label:`Coupon \xB7 ${t.code}`,value:oo("span",{style:{color:"var(--green)"},children:["\u2212 ",o(e.discount,e.currency)]})}),t?.deferred&&Ke(Lu,{label:`Coupon \xB7 ${t.code}`,value:vae}),t?.valid&&t.effects?.gift&&Ke(Lu,{label:`Free gift \xB7 ${t.effects.gift.partNumber}${t.effects.gift.quantity>1?` \xD7${t.effects.gift.quantity}`:""}`,value:Ke("span",{style:{color:"var(--green)"},children:Sh})}),Ke(Lu,{label:"Shipping",value:e.shippingStatus==="free"?Ke("span",{style:{color:"var(--green)"},children:Sh}):sie(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?Ke(Lu,{label:e.tax.inclusive?`${e.tax.name} included \xB7 ${e.tax.rate}%`:e.tax.name,value:o(e.tax.amount,e.currency)}):e.tax.name?Ke(Lu,{label:e.tax.name,value:iie}):null),oo("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[oo("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",Ke("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),Ke("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:e.repricing?eie:o(e.grand,e.currency)})]})]})})}function iue(){let{items:e,close:t}=Tn();return Ke(Tc,{children:oo("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[oo(Le,{href:"/checkout",onClick:t,"aria-disabled":e.length===0,className:["group flex items-center justify-between border px-5 py-5 font-mono text-[12px] uppercase tracking-[0.3em] transition-colors",e.length===0?"pointer-events-none cursor-not-allowed border-line bg-surface text-fg-dim":"border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg"].join(" "),children:["Begin checkout",Ke("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),Ke("div",{className:"flex items-center justify-between px-1 py-2 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:Ke(Le,{href:"/wheels",onClick:t,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})})}var fWe=["grid-cols-1","grid-cols-2","grid-cols-3"];function _8({label:e,value:t}){return oo("div",{className:"flex flex-col gap-1 bg-bg px-4 py-4",children:[Ke("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),Ke("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function hWe({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=Tn(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=Ot();return oo(Tc,{children:[oo("article",{className:"grid grid-cols-[96px_1fr] gap-5 border-b border-line px-8 py-6 transition-colors hover:bg-[color-mix(in_oklab,var(--site-surface)_60%,transparent)] max-[640px]:grid-cols-[78px_1fr] max-[640px]:px-6 max-[640px]:py-5",children:[Ke(P8,{line:e,catalog:r,tyre:t}),oo("div",{className:"flex min-w-0 flex-col gap-2",children:[oo("div",{className:"flex items-start justify-between gap-3",children:[oo("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:["N\xB0 ",e.positionNo," \xB7 ",e.process==="FusionForge\xAE"?oo(Tc,{children:["FusionForge",Ke(HP,{})]}):e.process]}),Ke("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:T6(e,s)===null?ru:l(T6(e,s),s)})]}),oo("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,Ke("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&oo("div",{className:"mt-1 flex flex-wrap gap-2",children:[e.config.map(d=>Ke("span",{className:["border px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em]",d.gold?"border-[color-mix(in_oklab,var(--accent)_45%,var(--site-line))] text-accent":"border-line text-fg-dim"].join(" "),children:d.label},d.label)),i>0&&oo("span",{className:"border border-accent bg-accent px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em] text-bg",children:[i,"\xD7 free"]})]}),oo("div",{className:"mt-3 flex items-center justify-between gap-3",children:[Ke(v1,{value:e.qty,onChange:n,size:"small"}),oo("div",{className:"flex gap-4 font-mono text-[10px] uppercase tracking-[0.22em]",children:[Ke(Le,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),Ke("button",{type:"button",onClick:o,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&oo("div",{className:"mx-8 -mt-px flex items-start gap-3 border-t-0 px-4 py-4 font-display text-[13px] leading-[1.45] text-fg max-[640px]:mx-6",style:{background:"color-mix(in oklab, var(--accent) 8%, transparent)",border:"1px solid color-mix(in oklab, var(--accent) 35%, var(--site-line))",borderTop:"0"},children:[Ke("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),oo("span",{children:["Verified for your ",Ke("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function gWe({title:e,sub:t,href:o}){return oo(Le,{href:o,className:"flex items-center justify-between border border-line bg-bg px-4 py-3 text-left transition-colors hover:border-accent",children:[oo("span",{className:"flex min-w-0 flex-col gap-1",children:[Ke("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),Ke("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),Ke("span",{className:"ml-2 flex h-6 w-6 flex-shrink-0 items-center justify-center font-mono text-[13px] text-accent",style:{borderColor:"color-mix(in oklab, var(--accent) 45%, var(--site-line))",borderWidth:1,borderStyle:"solid"},children:"+"})]})}function bWe(e,t,o){let n=e.savings[t];if(n===void 0)return"Buy together";let r=o(n,t);return e.savingIsFrom?`Save from ${r}`:`Save ${r}`}function wWe({children:e}){return Ke("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function Lu({label:e,value:t}){return oo("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[Ke("span",{children:e}),Ke("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function xWe({content:e}){return oo("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[Ke("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),Ke("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),oo(Le,{href:"/wheels",className:"mt-3 inline-flex items-center gap-3 border border-line px-5 py-3 font-mono text-[11px] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:["Browse the catalog ",Ke("span",{className:"text-accent",children:"\u2192"})]})]})}import{jsx as Iu,jsxs as sue}from"react/jsx-runtime";var kWe=Qm(void 0);function k1({content:e=BC,look:t=kWe}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=Tn(),s=vWe(null),l=Fme(a.filter(k_).map(d=>d.slug));return yWe(()=>{i(t.autoOpen)},[t.autoOpen,i]),sue(zi,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:"Your cart",children:[Iu(Qme,{content:e,closeRef:s}),Iu(eue,{content:e}),sue("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[Iu(tue,{content:e,tyres:l}),Iu(oue,{}),Iu(nue,{}),Iu(rue,{content:e})]}),Iu(aue,{}),Iu(iue,{})]})}import SWe from"efficient-easel/screen/components/UiIcon";import{Fragment as EWe,jsx as qh,jsxs as _5}from"react/jsx-runtime";var TWe=nw(()=>import("./chunks/EditorPreviewCheckout-YNOXGBF3.js"),{ssr:!1});function R8(){let{chromePlaceholder:e,themeFromDocument:t}=zn(),{surface:o}=_ne();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?_5(EWe,{children:[qh(TWe,{}),qh(lue,{surface:o})]}):qh(iu,{children:_5(Wb,{preview:!0,children:[qh(k1,{}),qh(lue,{surface:o})]})})}function lue({surface:e}){let{label:t,href:o}=$pe(e);return _5("div",{className:"rounded-full py-1 pr-2 pl-3",style:{position:"fixed",bottom:14,left:"50%",transform:"translateX(-50%)",zIndex:2147483e3,display:"flex",alignItems:"center",gap:8,maxWidth:"calc(100% - 24px)",fontSize:12,fontWeight:600,fontFamily:"system-ui, sans-serif",color:"#334155",background:"rgba(255,255,255,0.94)",border:"1px solid rgba(15,23,42,0.12)",boxShadow:"0 6px 24px rgba(15,23,42,0.18)",pointerEvents:"none"},children:[qh("span",{style:{whiteSpace:"nowrap"},children:u("{name} \xB7 preview only",{name:u(t)})}),_5("a",{className:"rounded-(--radius-control) px-3 py-1",href:o,target:"_blank",rel:"noopener noreferrer",style:{pointerEvents:"auto",flex:"none",display:"inline-flex",alignItems:"center",gap:5,color:"#fff",background:"#2563eb",textDecoration:"none"},children:[u("Open live"),qh(SWe,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as PWe,CursorClickIcon as CWe,EyeIcon as _We,FullWidthIcon as RWe,HeightIcon as NWe,OpacityIcon as pue,PlacementIcon as OWe,WidthIcon as AWe}from"efficient-easel/icons";import{group as Aw}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as LWe}from"efficient-easel/screen/lib/document/device-fields";import{jsx as Yp}from"react/jsx-runtime";var IWe={label:"Inside",value:"inside"},FWe={label:"None",value:"none"};function N8(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,LWe("desktop",o)]))}function due(e,t){return{_gDesign:Aw("Color"),tintColor:ds("Tint color",e),tintOpacity:ae("Tint opacity",Yp(pue,{}),n2.min,n2.max,5,t,"%")}}function cue(e,t){return{_gBehavior:Aw("Behavior"),outsideClick:ne("Outside click",e,Yp(CWe,{})),...t}}var BWe=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function O8(e){return ae("Width",Yp(AWe,{}),qF.min,qF.max,4,e,"px")}function mue(e){if(e===Jm){let o=Qm(void 0);return N8({_gSize:Aw("Width"),width:O8(o.width),_gPosition:Aw("Placement"),placement:le("Placement",Yp(OWe,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...due(o.tintColor,o.tintOpacity),...cue(o.outsideClick,{autoOpen:ne("Auto open",o.autoOpen,Yp(_We,{}))})})}let t=Zm;return He(N8({_gSize:Aw("Width"),width:O8(t.width),height:le("Height",Yp(NWe,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:Aw("Placement"),placement:od("Placement",{fallback:t.placement}),fullWidth:ne("Full width",t.fullWidth,Yp(RWe,{})),...due(t.tintColor,t.tintOpacity),...cue(t.outsideClick,{closeButton:le("Close button",Yp(PWe,{}),[IWe,{label:"Outside",value:"outside"},FWe],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],BWe])}function uue(e,t){return N8({menuPanelWidth:O8(e),menuPanelTintColor:ds("Tint color",Zm.tintColor),menuPanelTintOpacity:ae("Tint opacity",Yp(pue,{}),n2.min,n2.max,5,t,"%")})}import{PictureTiles as HWe}from"efficient-shell/ui";import{SettingsField as DWe}from"efficient-easel/panel";import{GridIcon as MWe}from"efficient-easel/icons";import{jsx as Xh}from"react/jsx-runtime";function zWe({layout:e}){return Xh("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?Xh("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):Xh("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var fue={type:"custom",render:({value:e,onChange:t})=>{let o=HC({layout:e}).layout,n=XF.find(r=>r.value===o);return Xh(DWe,{label:u(ZF),icon:Xh(MWe,{}),value:n?u(n.label):void 0,children:Xh(HWe,{className:"sf-gallery-layouts",label:u(ZF),value:o,onChange:t,options:XF.map(r=>({value:r.value,label:u(r.label),picture:Xh(zWe,{layout:r.value})}))})})}};import{CategoryIcon as vSt,CheckIcon as kSt,ClockIcon as OV,ColumnsIcon as SSt,DirectionIcon as TSt,EyeIcon as ESt,ListIcon as PSt,PageIcon as CSt,PlacementIcon as _St,ScrollPointIcon as RSt,TabsIcon as NSt,TriggerIcon as OSt}from"efficient-easel/icons";import{deviceField as q4e}from"efficient-easel/screen/lib/document/device-fields";import{group as $l,phoneTwinFields as ASt}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as WWe}from"efficient-easel/screen/lib/document/box-fields";function Lw(e){let t=WWe(e);return{...t,render:o=>t.render({...o,value:Tm(o.value)??o.value})}}import{useContext as GWe,useEffect as gue,useRef as N5,useState as O5}from"react";import{Button as A5}from"efficient-shell/ui";import{ScreenDocumentContext as $We}from"efficient-easel/screen/components/ScreenDocumentContext";var S1=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},R5=null,A8=null,L8=null;function UWe(){R5=null,A8=null,L8=null}function hue(e=!1){let t=la(),o=Sn();return(e||!R5||A8===null&&t!==null||L8!==o)&&(A8=t,L8=o,R5=(t?Ne.listForms(t,{siteId:o}):Promise.reject(new S1)).catch(n=>{throw UWe(),n instanceof S1?n:new S1(n)})),R5}import{useEaselHost as KWe}from"efficient-easel/screen/lib/host";import{InertHint as I8}from"efficient-easel/panel";import{jsx as rr,jsxs as Ec}from"react/jsx-runtime";var bue="__create-a-new-form__";function VWe({value:e,forms:t,loadFailed:o,emptyLabel:n}){let r=t??[],a=e?r.some(p=>p.slug===e):!0,i=t===null&&!o,s={value:"",label:i?u("Loading\u2026"):o?u("Forms couldn\u2019t be loaded"):n===void 0?u("No form yet"):u(n)},l=e&&!a?[{value:e,label:i||o?e:u("{slug} \u2014 no form with this name",{slug:e})}]:[],d=r.map(p=>({value:p.slug,label:p.is_active?p.title:u("{title} (switched off)",{title:p.title})})),c=i?[]:[{value:bue,label:u("Create a new form")}];return[s,...l,...d,...c]}function YWe(e){return e===bue?{action:"create"}:{action:"store",slug:e}}function jWe({value:e,pickedId:t,forms:o}){if(!e||!t||o.some(r=>r.slug===e))return null;let n=o.find(r=>r.id===t);return n&&n.slug&&n.slug!==e?n.slug:null}function qWe(e){let t=[u("Goes to {place}",{place:u("Storefront \u2192 Forms")})],o=(e.notify_email??"").trim();return o&&t.push(u("Emails a copy to {email}",{email:o})),e.mailing_list_name&&t.push(e.subscribe_mode==="checkbox"?u("Joins the \u201C{audience}\u201D audience, but only when the consent box is ticked",{audience:e.mailing_list_name}):u("Joins the \u201C{audience}\u201D audience",{audience:e.mailing_list_name})),e.kind==="account_signup"&&t.push(e.signup_customer_type==="importer"?u("Creates a wholesale account"):u("Creates a retail account")),t}function F8({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=KWe(),a=GWe($We),i=a?a.capabilities.hasForms:!0,[s,l]=O5(null),[d,c]=O5(!1),[p,m]=O5(!1),[f,g]=O5(!1),h=N5(!0),b=N5(e);b.current=e;let w=N5(t);w.current=t;let y=N5(null),x=(P=!1)=>hue(P).then(B=>{if(h.current){l(B),c(!1);let M=jWe({value:b.current,pickedId:y.current,forms:B});M&&w.current(M)}return B},()=>(h.current&&c(!0),[]));gue(()=>(h.current=!0,i&&x(),()=>{h.current=!1}),[i]),gue(()=>i?M_(()=>{x(!0)}):void 0,[i]);let v=e?(s??[]).find(P=>P.slug===e)??null:null;v?y.current=v.id:e||(y.current=null);let S=!!e&&!v&&s!==null&&!d,E=VWe({value:e,forms:s,loadFailed:d,emptyLabel:n}),T=async()=>{m(!0),g(!1);try{let P=await Aie(r,{mode:"create"}),B=await x(!0);if(!h.current)return;if(P.status==="timeout"){g(!0);return}if(P.status!=="saved")return;let{form:M}=P;M.slug!==b.current&&w.current(M.slug),B.some(I=>I.id===M.id)||x(!0)}finally{h.current&&m(!1)}},C=P=>{let B=YWe(P);B.action==="create"?T():(g(!1),t(B.slug))};return i?Ec("div",{className:"sf-formpicker",children:[rr(mb,{label:o,options:E,fallback:"",value:e??"",onChange:C,placeholder:u("Search forms\u2026")}),f&&rr("p",{className:"sf-formsummary-warn",children:u("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),v?Ec("div",{className:"sf-blogsource sf-formsummary",children:[Ec("div",{children:[rr("div",{className:"sf-formsummary-caption",children:Qn("{n} field","{n} fields",v.fields.length)}),v.fields.length?rr("ol",{className:"sf-formsummary-fields",children:v.fields.map((P,B)=>rr("li",{children:P.label},P.key||`${P.label}-${B}`))}):rr(I8,{children:u("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),Ec("div",{children:[rr("div",{className:"sf-formsummary-caption",children:u("Where the answers go")}),rr("ul",{className:"sf-formsummary-fields",children:qWe(v).map(P=>rr("li",{children:P},P))})]}),!v.is_active&&rr("p",{className:"sf-formsummary-warn",children:u("This form is switched off, so it won\u2019t appear on the published page. Turn it back on in {place}.",{place:u("Storefront \u2192 Forms")})}),Ec("div",{className:"sf-formsummary-actions",children:[rr(A5,{variant:"secondary",size:"md",onClick:()=>Oie(r,v.id),children:u("Edit form \u270E")}),rr(A5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:u("New form +")})]}),rr("p",{className:"es-field-hint",children:u("The questions, the button text and the thank-you message all come from {place}. Edit them there \u2014 this section updates to match.",{place:u("Storefront \u2192 Forms")})})]}):Ec("div",{className:"sf-blogsource sf-formsummary",children:[d?Ec(I8,{children:[u("This website\u2019s forms couldn\u2019t be loaded, so there is nothing to choose from yet."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]}):S&&rr("p",{className:"sf-formsummary-warn",children:u("This section points at \u201C{slug}\u201D, and this website has no form with that name. Pick one from the list above, or leave it \u2014 nothing has been changed.",{slug:e??""})}),Ec("div",{className:"sf-formsummary-actions",children:[d&&rr(A5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{x(!0)},children:u("Try again")}),rr(A5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:u("New form +")})]}),!d&&rr("p",{className:"es-field-hint",children:u("Pick a form to show here, or build a new one. Forms are made once in {place} and can be shown on any number of pages.",{place:u("Storefront \u2192 Forms")})})]})]}):rr("div",{className:"sf-formpicker",children:rr("div",{className:"sf-blogsource sf-formsummary",children:Ec("div",{children:[rr("div",{className:"sf-formsummary-caption",children:u(o)}),Ec(I8,{children:[u("Forms aren\u2019t available in this editor, so there is nothing to choose here."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]})]})})})}import{jsx as XWe}from"react/jsx-runtime";function Pc(e,t){return{type:"custom",render:({value:o,onChange:n})=>XWe(F8,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{createContext as ZWe,useContext as JWe}from"react";import{jsx as Cc,jsxs as B8}from"react/jsx-runtime";function H8(e){return tc(e)??void 0}var D8=ZWe({}),wue=3;function M8({tag:e,name:t,desc:o,href:n,imageSrc:r,imageLabel:a,price:i}){let s=me(),{showPrice:l,cardStyle:d,partStyles:c,editing:p,ownerId:m,Template:f}=JWe(D8),g=d==="bordered"?" border border-line":d==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",h=H8(r),b=er();if(f){let x={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:h??"",tag:e??"",href:n||"#"};return b.scope(Cc("div",{className:mo(`block w-full min-w-0 ${I0}${s?` ${Om}`:""}`,b.className),...b.attrs,children:Cc($e,{ownerId:m??"Collections",ownerType:"Collections",Template:f,rows:[x],fallback:null,children:k=>k})}))}let w=x=>p?{[_0]:x}:{},y=x=>TE(c?.[Xl(x)]?.role,vh[x],pE);return b.scope(B8(Le,{href:n||"#",className:mo(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${g}`,b.className),...b.attrs,children:[Cc("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${Ede}`,children:Cc(ao,{label:a||"collection.jpg",src:h})}),Cc("div",{className:`pointer-events-none absolute inset-0 z-[1] ${_de} max-view-wide:hidden`,style:{transition:"none"}}),B8("div",{className:"absolute inset-x-8 bottom-8 z-[2] flex flex-col gap-3 text-overlay-fg max-view-wide:relative max-view-wide:inset-auto max-view-wide:p-6 max-view-wide:gap-3 max-view-wide:text-fg",children:[e&&Cc("span",{...w("tag"),style:y("tag"),className:`font-mono ${Pp.tag} uppercase tracking-[0.25em] opacity-70`,children:N(e)}),t&&Cc("h3",{...w("name"),style:y("name"),className:`font-heading2 ${Pp.name} font-medium leading-none tracking-[-0.03em] ${Pp.namePhone}`,children:typeof t=="string"?ee(t,!1):t}),o&&Bt(o).map((x,k)=>Cc("p",{...w("body"),style:y("body"),className:`max-w-[420px] ${Pp.body} leading-[1.5] opacity-80`,children:N(x)},k)),l&&i&&Cc("span",{...w("price"),style:y("price"),className:`font-mono ${Pp.price} tracking-[0.05em] text-accent`,children:N(i)}),B8("span",{...w("link"),style:y("link"),className:`mt-2 inline-flex items-center gap-3 font-mono ${Pp.link} uppercase tracking-[0.2em]`,children:["Explore",Cc("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as Pue,useCallback as hUe,useContext as Tue,useEffect as Cue,useRef as gUe,useState as $8}from"react";import{slugify as bUe}from"efficient-shell/format";import{useState as eUe}from"react";import{jsx as z8,Fragment as QWe}from"react/jsx-runtime";function bl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=zJ(e),a=WJ(e),i=t?a:r,s=MJ(i);return o&&!i?z8("span",{[Hm]:e,children:n}):i?z8("span",{ref:s,[EZ]:i.stamp,...i.textStyle?{[PZ]:i.textStyle}:{},children:n}):z8(QWe,{children:n})}import{jsx as Wi,jsxs as Iw}from"react/jsx-runtime";var W8=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function U8({build:e,hiddenMobile:t,alwaysShowOverlay:o,forceHover:n,index:r,total:a,ratio:i,captionPlace:s,display:l,displayPhone:d,styleOwner:c,editing:p=!1}){let m=x=>Lte(l,d,x),f=x=>p&&c?{[vZ]:c,[kZ]:`@${x}`}:{},g=(x,k)=>!p&&c?Wi(bl,{kind:`@${x}`,shared:!0,children:k}):k,[h,b]=eUe(!1),w=tX(s),y=Iw("div",{className:["sf-card group relative overflow-hidden bg-surface-2",B0(i),t?"max-view-wide:hidden":""].join(" "),children:[Iw("div",{className:["absolute inset-0 z-[1] flex items-center justify-center transition-[transform,filter,opacity] duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)]",n?"scale-[1.06] opacity-0 [filter:brightness(0.5)]":"group-hover:scale-[1.06] group-hover:opacity-0 group-hover:[filter:brightness(0.5)]"].join(" "),children:[Wi(ao,{label:e.imageLabel,src:e.imageSrc}),!o&&Wi("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),Wi("div",{className:["absolute inset-0 z-[1] flex items-center justify-center transition-[transform,filter,opacity] duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)]",n?"opacity-100 scale-[1.06] [filter:brightness(0.5)]":"opacity-0 group-hover:scale-[1.06] group-hover:opacity-100 group-hover:[filter:brightness(0.5)]"].join(" "),style:{background:"var(--site-surface)"},children:e.detailSrc&&Wi(Xs,{src:e.detailSrc,alt:"",fill:!0,sizes:"(max-width: 800px) 100vw, (max-width: 1500px) 33vw, 25vw",loading:"lazy",className:"absolute inset-0 z-[3] object-cover",style:{display:h?"none":"block"},onError:()=>b(!0)})}),(e.process||r!=null&&a!=null)&&Iw("div",{className:"pointer-events-none absolute top-3 left-3 right-3 z-[3] flex items-baseline gap-2 max-view-wide:top-2.5 max-view-wide:left-2.5 max-view-wide:right-2.5",children:[e.process&&Wi("span",{...f("tag"),className:["min-w-0 truncate font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-accent",m("tag"),"transition-opacity duration-300 ease-out",o||n?"opacity-100":"opacity-0 group-hover:opacity-100 max-view-wide:opacity-100"].join(" "),children:g("tag",vo(e.process))}),r!=null&&a!=null&&Wi("span",{...f("number"),className:`ml-auto shrink-0 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] ${m("number")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:g("number",W8(r,a))})]}),Wi("div",{className:["absolute inset-0 z-[2]","transition-[opacity,transform] duration-300 ease-out",o||n?"opacity-100 translate-y-0":"opacity-0 translate-y-2 group-hover:opacity-100 group-hover:translate-y-0 max-view-wide:opacity-100 max-view-wide:translate-y-0"].join(" "),style:{color:"var(--overlay-fg)",background:o?"linear-gradient(180deg, rgba(10,10,10,.55) 0%, transparent 35%, transparent 55%, rgba(10,10,10,.92) 100%)":"linear-gradient(180deg, transparent 40%, rgba(10,10,10,.85) 100%)"},children:Iw("div",{className:"absolute inset-x-0 bottom-0 top-9 flex flex-col justify-end gap-1 overflow-hidden p-6 max-view-wide:top-8 max-view-wide:p-3.5",children:[e.car&&Wi("div",{...f("eyebrow"),className:`truncate font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] text-accent max-view-wide:text-[length:var(--size-label,11px)] max-view-wide:tracking-[0.15em] ${m("eyebrow")}`.trim(),children:g("eyebrow",e.car)}),e.wheel&&Wi("div",{...f("title"),className:`font-heading3 text-[length:var(--size-headingSmall,22px)] font-medium leading-[1.05] tracking-[-0.02em] max-view-wide:text-[length:var(--size-body,16px)] ${o?"uppercase ":""}${m("title")}`.trim(),children:g("title",e.wheel)}),e.finish&&Wi("div",{...f("meta"),className:`mt-1.5 flex gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.12em] ${m("meta")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:Wi("span",{children:g("meta",vo(e.finish))})})]})})]});return w?Iw("div",{className:t?"max-view-wide:hidden":"",children:[y,Iw("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&Wi("div",{...f("title"),className:`font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg ${m("title")}`.trim(),children:g("title",e.wheel)}),(e.finish||e.car)&&Wi("div",{...f(e.finish?"meta":"eyebrow"),className:`mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim ${m(e.finish?"meta":"eyebrow")}`.trim(),children:g(e.finish?"meta":"eyebrow",vo(e.finish||e.car))})]})]}):y}import{createContext as tUe,useCallback as oUe,useContext as nUe,useEffect as rUe,useLayoutEffect as aUe,useRef as G8,useState as iUe}from"react";import{createPortal as sUe}from"react-dom";import{Fragment as pUe,jsx as T1,jsxs as mUe}from"react/jsx-runtime";var lUe=".sf-themed-content",xue="sf-section-accent";function dUe(e,t){let o={},n=!1,r=[];for(let a=e;a&&a!==t;a=a.parentElement)r.push(a);for(let a of r.reverse()){a.classList.contains(xue)&&(n=!0);let i=a.style;if(i)for(let s=0;s<i.length;s+=1){let l=i.item(s);l.startsWith("--")&&(o[l]=i.getPropertyValue(l))}}return{className:n?`contents ${xue}`:"contents",style:o}}function cUe(e){let t=e.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])");return Array.from(t).filter(o=>!o.hasAttribute("hidden")&&o.getAttribute("aria-hidden")!=="true")}var yue=tUe(()=>{});function jp({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=G8(null),l=G8(null),[d,c]=iUe(null);aUe(()=>{if(!e){c(null);return}let g=s.current;if(!g)return;let h=g.closest(lUe)??g.ownerDocument.body;c({host:h,theme:dUe(g,h)})},[e]);let p=G8({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let m=e&&d!==null,f=oUe(()=>p.current.onClose(),[]);return kc({active:m,onDismiss:f,scopeRef:l}),rUe(()=>{if(!m)return;let g=l.current,h=g?.ownerDocument??document,b=h.activeElement;g?.focus();let w=x=>{if(x.key==="ArrowLeft")p.current.onPrev?.();else if(x.key==="ArrowRight")p.current.onNext?.();else if(x.key==="Tab"&&g){let k=cUe(g);if(k.length===0){x.preventDefault(),g.focus();return}let v=k[0],S=k[k.length-1],E=h.activeElement,T=!!E&&g.contains(E)&&E!==g;if(x.shiftKey&&(!T||E===v))x.preventDefault(),S.focus();else if(!x.shiftKey&&(!T||E===S))x.preventDefault(),v.focus();else{x.preventDefault();let C=k.indexOf(E);k[x.shiftKey?C-1:C+1]?.focus()}}},y=h.defaultView??window;return y.addEventListener("keydown",w),()=>{y.removeEventListener("keydown",w),b&&b.isConnected&&b.focus()}},[m]),e?mUe(pUe,{children:[T1("span",{ref:s,hidden:!0}),d&&sUe(T1("div",{className:d.theme.className,style:d.theme.style,children:T1("div",{ref:l,role:"dialog","aria-modal":"true","aria-label":o,tabIndex:-1,onClick:t,className:`fixed inset-0 z-(--sf-layer-lightbox) outline-none ${k8[8]} ${a}`,style:{background:v8},children:T1(yue.Provider,{value:t,children:i})})}),d.host)]}):null}var L5="color-mix(in oklab, var(--bg) 70%, transparent)";function Fu({className:e="absolute right-5 top-5 flex h-10 w-10 cursor-pointer items-center justify-center border border-fg-dim/40 text-fg-dim transition-colors hover:border-accent hover:text-accent",style:t,label:o="Close",children:n="\xD7"}){let r=nUe(yue);return T1("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as uUe,useContext as Zh}from"react";var E1=uUe(null);function vue(){let e=Zh(t2),t=Zh(E1),o=a_();return e?e.socialLinks??Tne:t?t.socialLinks:o.links}function Bu(){return Zh(E1)?.commerceEnabled??!0}function fUe(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function Fw(){return fUe(Zh(E1))}function kue(){let e=Zh(E1),t=zn();return e?e.showThemeSwitch??up:t.themeSwitchShown??up}function Sue(){let e=Zh(t2),t=Zh(E1),o=zn();return e?A_({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?A_({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):A_({siteName:o.websiteName?.trim()||tu})}import{useBrowserLayoutEffect as wUe}from"efficient-shell/hooks";import{Fragment as Bw,jsx as To,jsxs as ua}from"react/jsx-runtime";var xUe="(max-width: 1100px) 100vw, min(59vw, 1050px)",P1=Pue({}),_ue=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],V8=Pue(null),Hu="data-gallery-grid",K8="data-gallery-tile";function yUe(e,t){let[o,n]=$8(null);return Cue(()=>{let r=e.current,a=r?.closest(`[${Hu}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${K8}]`)),d=l.indexOf(r),c=d>=0?{index:d+1,total:l.length}:null;n(p=>p?.index===c?.index&&p?.total===c?.total?p:c)};if(i(),!t)return;let s=new MutationObserver(i);return s.observe(a,{childList:!0,subtree:!0}),()=>s.disconnect()},[e,t]),o}var hd={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},vUe=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),Rue=Array.from({length:6},vUe);function kUe(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=bUe(e.name)||"gallery-item";return{car:e.eyebrow??"",wheel:e.name??"",process:e.process??"",finish:e.meta??"",imageLabel:`${r}.jpg`,detailLabel:`${r}-detail.jpg`,imageSrc:o||void 0,detailSrc:t[0]||o||void 0,photos:n,href:e.href}}function Jh({editing:e=!1,previewHover:t,ratio:o,captionPlace:n,tile:r,...a}){let i=me(),{galleryHref:s="/gallery",submitHref:l="/contact",previewHover:d,display:c,displayPhone:p,styleOwner:m,photosOnly:f=!1,wordsAtRest:g=!1,Template:h,ownerId:b}=Tue(P1),w=kUe(a),x=Bu()&&!f,k=!x&&!SUe(w),v=w.photos??(w.imageSrc?[w.imageSrc]:[]),S=gUe(null),E=hUe(oe=>{S.current=oe},[]),T=yUe(S,e),C=Tue(V8),P=C?.report,B=r?.id,M=r?.tag??"",I=r?.name??"";wUe(()=>{if(!P||!B)return;let oe={id:B,tag:M,name:I};return P(oe),()=>P(oe,!0)},[P,B,M,I]);let A=(B?C?.positionOf(B):null)??T,_=e&&(!!t||!!d),[F,K]=$8(!1),[V,Z]=$8(0),Y=!!B&&!!C&&C.walkCount>1,z=oe=>{let de=V+oe;if(Y&&(de<0||de>=v.length)){K(!1),C.walk(B,oe);return}Z((de+v.length)%v.length)},q=()=>z(-1),X=()=>z(1),L=v.length>1||Y,O=C?.opening;Cue(()=>{!O||O.id!==B||(Z(O.at==="last"?Math.max(0,v.length-1):0),K(!0))},[O,B]);let G=v[V]??w.imageSrc??"",Q=v.slice(1),$=h?To("div",{className:`block w-full min-w-0 ${I0}${i?` ${Om}`:""}`,children:To($e,{ownerId:b??"GalleryB",ownerType:"GalleryB",Template:h,rows:[{key:B??w.imageSrc??"tile",image:w.imageSrc??"",tag:w.process,number:A?W8(A.index,A.total):"",eyebrow:w.car,name:w.wheel,meta:w.finish,href:w.href??""}],items:[{hoverMedia:Q.length?{photos:[{finish:"",items:Q.map(oe=>({url:oe,kind:"image"}))}]}:null}],previewHover:_,fallback:null,children:oe=>oe})}):To(U8,{build:w,forceHover:_,alwaysShowOverlay:g,index:A?.index,total:A?.total,ratio:o,captionPlace:n,display:c,displayPhone:p,styleOwner:m,editing:e});return ua(Bw,{children:[e?To(D,{as:"div",ref:E,[K8]:"",className:"block w-full text-left",children:$}):To(D,{as:"button",ref:E,[K8]:"",type:"button","aria-label":x?`Open ${w.car||"build"} on ${w.wheel||"wheel"}`:Eue(w),onClick:()=>{Z(0),K(!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:$}),To(jp,{open:F,onClose:()=>K(!1),label:x?`${w.car} on ${w.wheel}`:Eue(w),onPrev:L?q:void 0,onNext:L?X:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:ua("div",{onClick:oe=>oe.stopPropagation(),className:`relative grid w-[min(1800px,100%)] max-h-[calc(100vh-48px)] ${k?"grid-cols-1":"grid-cols-[1.4fr_1fr]"} overflow-hidden border border-line bg-bg max-view-desktop:grid-cols-1 max-view-desktop:overflow-auto`,style:{boxShadow:"0 60px 120px -20px color-mix(in srgb, var(--sf-shadow-color, #141416) 70%, transparent)"},children:[To(Fu,{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:L5},children:"\u2715"}),ua("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[G&&To("img",{...ko(G,{fallbackWidth:1280}),sizes:xUe,alt:`${(x?w.car:w.wheel||w.car)||"Photo"} \u2014 ${V+1} of ${v.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},G),L&&ua(Bw,{children:[To("button",{type:"button","aria-label":"Previous photo",onClick:q,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"}),To("button",{type:"button","aria-label":"Next photo",onClick:X,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"}),v.length>1&&ua("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:[V+1," / ",v.length]})]})]}),x?ua("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[w.process&&To("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:N(w.process)}),w.wheel&&To("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:ee(w.wheel,!1)}),w.car&&ua("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",To("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:N(w.car,!0)})]}),ua("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:[w.wheel&&ua(Bw,{children:[To("dt",{className:"text-fg-dim",children:"Wheel"}),To("dd",{className:"text-fg",children:N(w.wheel)})]}),w.process&&ua(Bw,{children:[To("dt",{className:"text-fg-dim",children:"Process"}),To("dd",{className:"text-fg",children:N(w.process)})]}),w.finish&&ua(Bw,{children:[To("dt",{className:"text-fg-dim",children:"Finish"}),To("dd",{className:"text-fg",children:N(w.finish)})]}),w.car&&ua(Bw,{children:[To("dt",{className:"text-fg-dim",children:"Vehicle"}),To("dd",{className:"text-fg",children:N(w.car)})]})]}),ua("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[ua(Le,{href:w.href||"/wheels",onClick:()=>K(!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:[To("span",{children:"View product"}),To("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),ua(Le,{href:s,onClick:()=>K(!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:[To("span",{children:"See more builds"}),To("span",{children:"\u2192"})]}),ua(Le,{href:l,onClick:()=>K(!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:[To("span",{children:"Submit your build"}),To("span",{children:"\u2192"})]})]})]}):!k&&To(TUe,{build:w})]})})]})}function Nue(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function SUe(e){return!!e.wheel||Nue(e).length>0}function Eue(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function TUe({build:e}){let t=e.wheel,o=Nue(e);return ua("div",{className:"flex flex-col gap-[24px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[t&&To("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:ee(t,!1)}),o.map(n=>To("p",{className:"text-[length:var(--size-body,18px)] leading-[1.5] text-fg",children:N(n)},n))]})}import{createContext as NUe,useContext as OUe,useEffect as C1,useId as AUe,useState as kr,useSyncExternalStore as LUe}from"react";var EUe=14,PUe=3;function CUe(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function _Ue(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),CUe(o)}async function Oue(e,t,o={}){let n=o.days??EUe,r=o.read??kh.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=_Ue(t,s);try{let d=await r(e,l);if(a=0,i++,d.slots.length>0)return{outcome:"found",date:l,availability:d}}catch{if(a++,a>=PUe)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as Aue,formatDateTime as Y8,formatTime as Fue}from"efficient-shell/format";var RUe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},Lue={weekday:"long",day:"numeric",month:"long",year:"numeric"},Bue={hour:"numeric",minute:"2-digit"},Iue={...Bue,timeZoneName:"short"};function j8(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function q8(e,...t){let o=dl(...t);return!o||!j8(e)?"":Fue(e,{locale:h6(),timeZone:o})}function X8(e,...t){let o=typeof e=="string"?{start:e}:e,n=dl(...t),r=j8(o.start);if(!n||!r)return"";let a=h6(),i=o.end?j8(o.end):null;if(!i||i.getTime()<=r.getTime())return Y8(o.start,{locale:a,timeZone:n,style:RUe,zoneName:"short"});let s=Y8(o.start,{locale:a,timeZone:n,style:Lue,clock:Bue}),d=Aue(o.start,n)===Aue(o.end,n)?Fue(o.end,{locale:a,timeZone:n,clock:Iue}):Y8(o.end,{locale:a,timeZone:n,style:Lue,clock:Iue});return`${s} \u2013 ${d}`}function I5(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as IUe,userToday as FUe,userZone as BUe}from"efficient-shell/format";import{jsx as GUe}from"react/jsx-runtime";var Due=NUe(null);function Du(){let e=OUe(Due);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var Z8=[{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:""}],HUe=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function Hue(e,t){return{timezone:"",slots:t?HUe.flatMap(({hour:n,minute:r})=>IUe(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var J8={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function DUe(e){let t=String(e?.slots[0]?.start??"");return t?{...J8,startAt:t}:J8}function Mue(e){return e.bookingNumber===J8.bookingNumber}function MUe(e,t){return e&&t?.length===0}function zUe(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!I5(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function WUe(){return()=>{}}function UUe(){return null}function zue({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=AUe(),r=LUe(WUe,FUe,UUe)??"",[a,i]=kr(),[s,l]=kr(""),[d,c]=kr(""),[p,m]=kr(r),[f,g]=kr(r),[h,b]=kr(!1),[w,y]=kr(null),[x,k]=kr(),[v,S]=kr(""),[E,T]=kr(""),[C,P]=kr(""),[B,M]=kr(""),[I,A]=kr(""),[_,F]=kr(()=>C6()),[K,V]=kr(null),[Z,Y]=kr(!1),[z,q]=kr(!1),[X,L]=kr(null),[O,G]=kr("");C1(()=>{G(BUe()??"")},[]),C1(()=>{let be=!1;return kh.listServices().then(_e=>{if(be)return;let Ie=f_(_e);i(Ie),l(_e.currency),c(te=>te||Ie[0]?.id||"")}).catch(()=>{be||i([])}),()=>{be=!0}},[]),C1(()=>{r&&(m(be=>be||r),g(be=>be||r))},[r]),C1(()=>{if(h||!d||!r)return;let be={aborted:!1};return S(""),k(void 0),L(null),y(null),Y(!0),Oue(d,r,{signal:be}).then(_e=>{if(!be.aborted){if(_e.outcome==="found"){m(_e.date),g(_e.date),k(_e.availability);return}y(_e.outcome==="noneInWindow"?`No times are available in the next ${_e.days} days.`:"We couldn't load available times. Please try again.")}}).finally(()=>{be.aborted||Y(!1)}),()=>{be.aborted=!0}},[h,d,r]),C1(()=>{if(!h||!d||!p)return;let be=!1;return S(""),k(void 0),L(null),y(null),Y(!0),kh.getAvailability(d,p).then(_e=>{be||(k(_e),_e.slots.length===0&&y("No times are available on this date."))}).catch(()=>{be||y("We couldn't load available times. Please try again.")}).finally(()=>{be||Y(!1)}),()=>{be=!0}},[p,h,d]);let Q=a?.find(be=>be.id===d),$=Q?.depositAmountDue!=null,oe=zUe({editing:e,submitting:z,hasService:!!Q,hasDay:!!p,selectedStart:v,name:E,email:C,requiresPayment:$},Date.now());async function de(be){if(be.preventDefault(),!(!oe||!Q)){q(!0),L(null);try{let _e=await kh.create({serviceId:Q.id,start:v,customer:{name:E.trim(),email:C.trim(),phone:B.trim()},notes:I.trim(),idempotencyKey:_,customerTimezone:O});V(_e),F(C6())}catch(_e){L(_e instanceof or&&_e.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),_e instanceof or&&_e.status===409&&(S(""),kh.getAvailability(Q.id,p).then(k).catch(()=>{}))}finally{q(!1)}}}let ge=MUe(e,a),Qe=ge?Hue(p,O):void 0,ve=t&&!K?DUe(Qe??Hue(p,O)):null;return GUe(Due.Provider,{value:{fieldPrefix:n,editing:e,services:ge?Z8:a,currency:ge?"AUD":s,serviceId:ge?Z8[0].id:d,setServiceId:c,service:ge?Z8[0]:Q,requiresPayment:ge?!1:$,date:p,earliestDate:f,setDate:m,setDateTouched:b,availability:Qe??x,loadingSlots:ge?!1:Z,noSlotsMessage:w,selectedStart:Qe?Qe.slots[0]?.start??"":v,setSelectedStart:S,customerTimezone:O,name:E,setName:T,email:C,setEmail:P,phone:B,setPhone:M,notes:I,setNotes:A,confirmation:K??ve,submitting:z,error:X,canSubmit:ge?!1:oe,handleSubmit:de,sample:!!ge},children:o})}import{jsx as F5,Fragment as Wue,jsxs as Uue}from"react/jsx-runtime";var Gue=`sf-button group inline-flex items-center justify-center gap-2.5 border ${doe} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,$ue={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 fa(e){let{variant:t="primary",arrow:o,glyphBefore:n,spread:r,className:a,style:i,part:s,glyphPart:l,children:d,href:c,newTab:p,hrefRewrite:m,...f}=e,g=`${r?Gue.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):Gue} ${$ue[t]??$ue.primary} ${a??""}`,h=n?Uue(Wue,{children:[o!==null&&F5("span",{"aria-hidden":!0,className:"inline-flex",...l,children:o??"\u2192"}),d]}):Uue(Wue,{children:[d,o!==null&&F5("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",...l,children:o??"\u2192"})]});return c?F5(Pt,{href:c,className:g,style:i,newTab:p?!0:"auto",...m?{hrefRewrite:m}:{},...s,children:h}):F5("button",{type:"button",className:g,style:i,...f,children:h})}import{jsx as $Ue}from"react/jsx-runtime";var _1=e=>$Ue("div",{className:"grid bg-bg",children:e});import{jsx as so,jsxs as gd}from"react/jsx-runtime";var R1="w-full border-2 border-line bg-bg px-4 py-4 font-[family-name:var(--bk-value-font,var(--font-display))] text-[length:var(--bk-value-size,17px)] text-fg outline-none transition-colors placeholder:text-fg-dim hover:border-fg-dim focus:border-accent";function KUe(e,t){let o=Number(e);if(o===0)return Sh;try{return Cae(o,t)}catch{return`${t} ${e}`}}var Kue={selected:!0};function Vue(e,t){return({index:o})=>t?{[wP]:xP(e,o)}:{}}var N1="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function Q8({number:e,children:t}){return gd("div",{className:"mb-4 flex items-center gap-3",children:[so("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}),so("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 B5({eyebrow:e,heading:t,intro:o}){return gd("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&so("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&so("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.98] tracking-[-0.025em] text-fg max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:t}),(o??"").trim()&&so("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function H5({style:e,owner:t}){let{fieldPrefix:o,services:n,currency:r,serviceId:a,setServiceId:i,requiresPayment:s,date:l,earliestDate:d,setDate:c,setDateTouched:p,availability:m,loadingSlots:f,noSlotsMessage:g,selectedStart:h,setSelectedStart:b,customerTimezone:w,editing:y}=Du();if(!n)return null;let x=Date.now(),k=dl(w,m?.timezone??""),v=dl(m?.timezone??""),S=v&&v!==k?v:"",E=(m?.slots??[]).map(T=>({start:T.start,time:q8(T.start,k),businessTime:S?`${q8(T.start,S)} business`:"",passed:!y&&I5(T.start,x)}));return gd(D,{className:"flex flex-col gap-10",style:e,children:[gd("div",{children:[so(Q8,{number:"01",children:"Choose a service"}),so("div",{className:"grid gap-3 sm:grid-cols-2",children:so($e,{ownerId:t.id,ownerType:t.type,slot:Uh,Template:t.serviceTemplate,rows:n.map(T=>({name:T.name,meta:`${T.durationMinutes} min \xB7 ${KUe(T.price,r)}`,description:T.description??""})),states:n.map(T=>T.id===a?Kue:void 0),actions:y?void 0:n.map(T=>({press:()=>i(T.id),label:T.name})),copyAttrs:Vue(Uh,y),fallback:null,wrapCopy:_1,children:T=>so(Io,{children:T})})}),s&&so("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."})]}),gd("div",{children:[so(Q8,{number:"02",children:"Choose a date and time"}),so(zr,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:N1,children:so("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:T=>{p(!0),c(T.target.value)},className:R1,required:!0})}),so("div",{className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-3 min-[1200px]:grid-cols-4",role:"group","aria-label":"Available appointment times",children:f?so("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?so($e,{ownerId:t.id,ownerType:t.type,slot:Gh,Template:t.timeTemplate,rows:E.map(T=>({time:T.time,businessTime:T.businessTime})),states:E.map(T=>T.start===h&&!T.passed?Kue:void 0),actions:y?void 0:E.map(T=>({press:()=>b(T.start),label:T.time,disabled:T.passed})),copyAttrs:Vue(Gh,y),fallback:null,wrapCopy:_1,children:T=>so(Io,{children:T})}):g?so("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",role:"status",children:g}):null}),k&&!f&&!!m?.slots.length&&gd("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 ",k,S?` \xB7 business timezone ${S}`:""]})]})]})}function D5({buttonLabel:e,style:t}){let{fieldPrefix:o,editing:n,name:r,setName:a,email:i,setEmail:s,phone:l,setPhone:d,notes:c,setNotes:p,submitting:m,error:f,canSubmit:g}=Du();return gd(D,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[so(Q8,{number:"03",children:"Your details"}),gd("div",{className:"flex flex-col gap-4",children:[so(zr,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:N1,children:so("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:h=>a(h.target.value),className:R1,required:!0})}),so(zr,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:N1,children:so("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:h=>s(h.target.value),className:R1,required:!0})}),so(zr,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:N1,children:so("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:h=>d(h.target.value),className:R1})}),so(zr,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:N1,children:so("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:h=>p(h.target.value),className:`${R1} resize-y`})})]}),f&&so("p",{className:"mt-4 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.16em] text-alert",role:"alert",children:f}),so(fa,{type:n?"button":"submit",disabled:!g,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:m?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function M5({successMessage:e}){let{confirmation:t,customerTimezone:o}=Du();if(!t)return null;let n=dl(t.customerTimezone,o,t.timezone),r=dl(t.timezone),a=r&&r!==n?r:"";return gd("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[gd("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),so("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),so("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:X8(t.startAt,n)}),a&&gd("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",X8(t.startAt,a)]}),(e??"").trim()&&so("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),so(fa,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!Mue(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as Hw}from"react/jsx-runtime";var Yue=["head","booking","details","confirm"],jue={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function eD({region:e,nodeId:t="BookingBox",serviceTemplate:o,timeTemplate:n,eyebrow:r,heading:a,intro:i,buttonLabel:s,successMessage:l,...d}){let{confirmation:c,services:p}=Du(),m=Gce(d);return e==="head"?Hw(D,{className:"min-[960px]:col-span-2",style:m,children:Hw(B5,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?Hw(D,{className:"min-[960px]:col-span-2",style:m,children:Hw(M5,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?Hw(H5,{style:m,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?Hw(D5,{buttonLabel:s,style:m}):null}import{useEffect as que,useState as Mu}from"react";import{jsx as Dw,jsxs as YUe}from"react/jsx-runtime";function _c(e,t){let[o,n]=Mu(void 0),[r,a]=Mu(0);return que(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return Fo.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),que(()=>{if(t===void 0)return M_(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var VUe="Something went wrong \u2014 your submission wasn't sent. Please try again.";function Mw(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function zu({form:e,formSlug:t,editing:o=!1}){let[n,r]=Mu({}),[a,i]=Mu(""),[s,l]=Mu(!1),[d,c]=Mu(!1),[p,m]=Mu(null),[f,g]=Mu(null);async function h(b){if(b.preventDefault(),!(o||s||!e||!t)){l(!0),g(null);try{let w=e.fields.map(x=>({fieldKey:x.key,value:n[x.key]??""})),y=await Fo.submitForm(t,{answers:w,...a?{company:a}:{}});m(y?.account??null),c(!0)}catch{g(VUe)}finally{l(!1)}}}return{valueOf:b=>n[b]??"",set:(b,w)=>r(y=>({...y,[b]:w})),honeypot:a,setHoneypot:i,submitting:s,done:d,account:p,error:f,handleSubmit:h}}function zw({value:e,onChange:t}){return Dw("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:o=>t(o.target.value)})}function Wu({field:e,value:t,onChange:o,className:n,rows:r=5,placeholder:a,ariaLabel:i}){let s=a??e.placeholder,l=i?.trim()?{"aria-label":i.trim()}:{};return e.type==="textarea"?Dw("textarea",{required:e.required,rows:r,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l}):e.type==="select"?YUe("select",{required:e.required,value:t,onChange:d=>o(d.target.value),className:n,...l,children:[Dw("option",{value:"",children:s||"Select\u2026"}),e.options.map(d=>Dw("option",{value:d,children:d},d))]}):e.type==="checkbox"?Dw("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:d=>o(d.target.checked?"true":""),className:n}):Dw("input",{type:e.type==="email"?"email":e.type==="tel"?"tel":"text",required:e.required,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l})}var Ut={eyebrow:"Section number",title:"Show *us yours.*",body:"Tell people what they get for submitting, and what you do with what they send.",buttonText:"Submit \u2192",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties."};import{jsx as wl,jsxs as O1}from"react/jsx-runtime";function jUe(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function Xue({eyebrow:e,title:t}){return O1("div",{className:"flex flex-col gap-4",children:[e&&wl(st,{text:e,scaled:!1}),t&&wl("h2",{className:"font-display text-[min(clamp(40px,5vw,72px),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:ee(t,!0)})]})}function z5({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return O1("div",{className:"flex flex-col gap-8",children:[e&&Bt(e).map((l,d)=>wl("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:N(l)},d)),a&&(n?r.done?wl("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:Mw(n)}):O1("form",{className:"grid grid-cols-2 gap-2",onSubmit:r.handleSubmit,children:[n.fields.map(l=>{let d=["border border-line bg-transparent px-4 py-4 font-[family-name:var(--sb-field-font,var(--font-mono))] text-[length:var(--sb-field-size,14px)] tracking-[0.1em] text-fg outline-none focus:border-accent",jUe(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?O1("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:[wl(Wu,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),O1("span",{children:[l.label,l.required?wl("span",{className:"text-accent",children:" *"}):null]})]},l.key):wl(Wu,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),rows:4,placeholder:l.placeholder||l.label,ariaLabel:l.label,className:l.type==="textarea"?`${d} resize-y`:d},l.key)}),wl(zw,{value:r.honeypot,onChange:r.setHoneypot}),r.error&&wl("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:r.error}),wl("button",{type:s?"button":"submit",disabled:r.submitting,className:"col-span-2 cursor-pointer bg-btn px-6 py-4 font-mono text-[14px] uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg hover:text-bg disabled:cursor-wait disabled:opacity-60",children:r.submitting?"Sending\u2026":N(t||Ut.buttonText)})]}):wl("p",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:i?u("Loading form\u2026"):u("Choose a form in the inspector, under Form \u2014 until then this form is hidden on the live page and nothing can be submitted.")})),a&&o&&wl("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:N(o)})]})}var W5=["field","tick","thanks"],Zue={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},U5={field:"styleField",tick:"styleTick",thanks:"styleThanks"},qUe={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 XUe(e){return typeof e=="string"&&v0.includes(e)?e:null}function Jue(e){let t={};for(let o of W5){let n=XUe(e[U5[o]]);n&&Object.assign(t,Tu(n,qUe[o]))}return t}import{jsx as G5}from"react/jsx-runtime";var Que=["head","form"],efe={head:"Head",form:"Form"};function tD({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=_c(i,s),p=zu({form:c,formSlug:i,editing:l}),m=Jue(d);return e==="head"?G5(D,{as:"div",style:m,children:G5(zt,{look:"statement",num:t,title:o})}):G5(D,{as:"div",style:m,children:G5(z5,{body:n??"",buttonLabel:r??"",consent:a??"",form:c,submission:p,showForm:!!c||l,resolving:c===void 0,editing:l})})}var ZUe={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>Yue.map(e=>({region:e,name:jue[e]})),addBlocked:()=>u("A Booking Form is these three boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},SubmitBuild:{slot:"boxes",childType:"SubmitBox",addLabel:"Add box",fixed:!0,seeds:()=>Que.map(e=>({region:e,name:efe[e]})),addBlocked:()=>u("A Submit-a-build section is these two boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},Collections:{slot:"cards",childType:"CollectionCard",addLabel:"Add card",seeds:()=>Array.from({length:wue},()=>({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:()=>Rue.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};Wee(ZUe);import{jsx as tfe}from"react/jsx-runtime";var JUe={body:"text-[length:var(--size-body,17px)]"},qp=5;function Ww({rating:e}){let t=Math.min(qp,Math.max(0,Math.round(e)));return tfe(D,{role:"img","aria-label":`${t} out of ${qp} stars`,className:`flex gap-1 ${JUe.body} leading-none`,children:Array.from({length:qp}).map((o,n)=>tfe("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var oD="mx-auto max-w-[var(--sf-site-width,1600px)]",QUe=[/^border(-[tblrxy])?$/,/^border-line$/,/^bg-/,/^mx-auto$/,/^max-w-\[var\(--sf-site-width/,/--sf-site-gutter/,/^p[xytblr]?-(\d+(\.\d+)?|px|\[\d+(\.\d+)?px\])$/];function ofe(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function nD(e){return e.split(/\s+/).filter(t=>t&&!QUe.some(o=>o.test(ofe(t)))).join(" ")}var eGe=new Set(["max-view-desktop","max-view-wide"]);function tGe(e){let t=/^\[(\d+(?:\.\d+)?)px\]$/.exec(e);return t?Number(t[1]):e==="px"?1:/^\d+(\.\d+)?$/.test(e)?Number(e)*4:void 0}function Uw(e){let t=0,o,n=!1;for(let r of e.split(/\s+/)){if(!r)continue;let a=r.lastIndexOf(":"),i=a<0?"":r.slice(0,a),s=ofe(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?tGe(l[1]):void 0;d!==void 0&&(i?eGe.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as oGe,jsx as nGe}from"react/jsx-runtime";function rD({inBox:e,atTop:t,anyBox:o=!1}){let n=qm(),r=fC();return nGe(oGe,{children:n||o&&r?e:t})}import{createContext as nfe,useContext as iD}from"react";import{Fragment as aGe,jsx as aD}from"react/jsx-runtime";var rGe={atTop:null,inBox:null},sD=nfe(rGe);function $5({pad:e,children:t}){return aD(sD.Provider,{value:e,children:t})}var ar=()=>iD(sD).atTop,rfe=()=>iD(sD),afe=nfe(void 0);function ife({pads:e,children:t}){return e?aD(afe.Provider,{value:e,children:t}):aD(aGe,{children:t})}var sfe=()=>iD(afe);import{jsx as A1}from"react/jsx-runtime";function gt({className:e,capped:t=!1,column:o=Pi,style:n,defaults:r,id:a,attrs:i,rootRef:s,inAnyBox:l=!1,padOnColumn:d=!1,children:c}){let p=me(),m=rfe(),f=nD(e),g=o===null?"":nD(o),{className:h,style:b,...w}=Se(f,m.inBox,n),y=A1(D,{as:"section",ref:s,...i,...w,className:h||void 0,style:b,id:a,children:g?A1("div",{className:g,children:c}):c}),x=r?{...r,...n}:n,k=d?null:m.atTop,v=d?m.atTop:null,{className:S,style:E,...T}=Se(t?`${oD} ${e}`:e,k,x),C=A1(D,{as:"section",ref:s,...i,...T,className:S,style:E,id:a,children:o===null?c:A1("div",{...Se(pe(o,p),v),children:c})});return A1(rD,{inBox:y,atTop:C,anyBox:l})}import{Fragment as sGe,jsx as Xp,jsxs as K5}from"react/jsx-runtime";var Gw={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,19px)]",label:"text-[length:var(--size-label,12px)]"},iGe="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))]",lD="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 dD({look:e,eyebrow:t,title:o,columns:n,rows:r=[],editing:a=!1,sample:i=!1,cards:s,omitHead:l=!1}){let d=Math.min(3,Math.max(1,n??3));return!a&&r.length===0?null:K5(gt,{className:"relative z-[2] border-t border-line bg-surface",column:l?lD:iGe,padOnColumn:!0,children:[l?null:K5(sGe,{children:[(t??"").trim()&&Xp(st,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&Xp("h2",{className:`mb-12 font-heading2 ${Gw.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${Gw.headingMediumUpTo800}`,children:ee(o??"",!1)})]}),Xp("div",{className:"sf-card grid grid-cols-1 gap-px border border-line bg-line min-[700px]:[grid-template-columns:repeat(var(--rv-cols),minmax(0,1fr))]",style:{"--rv-cols":String(d)},children:s??r.map(c=>K5("article",{className:["flex flex-col gap-4 bg-bg p-10 max-view-wide:p-8",i?"opacity-60":""].join(" "),children:[c.rating!==void 0&&Xp(Ww,{rating:c.rating}),(c.title??"").trim()&&Xp("h3",{className:`font-display ${Gw.bodyLarge} font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg`,children:c.title}),Xp("div",{className:`flex-1 font-serif ${Gw.bodySmall} leading-[1.65] text-fg-dim`,children:Bt(c.quote).map((p,m)=>Xp("p",{className:m?"mt-3":"",children:p},m))}),K5("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-5",children:[Xp("span",{className:`font-mono ${Gw.label} uppercase tracking-[0.22em] text-fg`,children:c.name}),Xp("span",{className:`font-mono ${Gw.label} uppercase tracking-[0.18em] text-fg-dim`,children:c.meta??""})]})]},c.key))})]})}var lfe=Uw(lD),cD={top:84,bottom:lfe.bottom,topPhone:84,bottomPhone:lfe.bottomPhone},dfe=cD,[lGe,dGe]=Cv("Testimonials"),cGe={type:Gs,props:{...ze,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[$s]:[{type:"Text",props:{...Ge,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Re("quote",vt,{size:16,lineHeight:1.6}),{type:Gs,props:{...ze,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[$s]:[Re("name",Ge,{...ql,weight:500,letterSpacing:.04}),Re("role",vt,{textStyle:"body-5"})]}}]}},pGe={name:"Testimonials",boxProps:e=>({...qd,direction:"column",gap:44,sectionBorder:{top:1},...Dm(e,dfe)}),box:[...bp,...lh(dfe)],parts:[{kind:"group",name:"Heading",props:{...ze,gap:16},parts:[{...lGe,props:Ge},{...dGe,props:Ge,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[cGe]}}],site:HZ("title"),drop:{...Xd,...Zd,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Testimonials' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the Reviews block, which is always own-box here"}};vn({Testimonials:pGe});var Rc={inline:"border-b border-line py-[120px] max-view-desktop:py-20",ownBox:"border-b border-line pt-0 pb-[120px] max-view-desktop:pt-0 max-view-desktop:pb-20"};import{phoneKey as Y5,tabletKey as pD}from"efficient-easel/draw";var mGe={textStyle:"body-5",...po("label",14),letterSpacing:.05,lineHeight:1.5},uGe={type:Gs,props:{...ze,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[Y5("share")]:"content",[Y5("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[$s]:[Re("label",vt,{...Pa(14),letterSpacing:.05,lineHeight:1.5}),Re("value",{...Ge,align:"right"},{...mGe,align:"right"})]}},cfe={[ch]:OP},fGe=["dynamic","source","finish","size","wheel"],L1=Qs("SpecTable",{slots:{template:[uGe]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...ze,direction:"row",share:"content",gap:48,[pD("gap")]:80,[Y5("gap")]:80,...cfe}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),hGe=L1.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(fGe.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),V5=Uw(Rc.ownBox),gGe={...L1,parts:hGe,boxProps:(e,t)=>{let o=typeof L1.boxProps=="function"?L1.boxProps(e,t):L1.boxProps;return{...o,sectionPaddingBottom:V5.bottom,sectionPaddingBottomPhone:V5.bottomPhone,...cfe,[pD("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[pD("sectionPaddingBottom")]:V5.bottomPhone,[Y5("gap")]:36,...V5.line?{sectionBorder:EP({bottom:1})}:{}}}};vn({SpecTable:gGe});vn({ProductGrid:Qs("ProductGrid",{slots:{[Et]:[Spe()]},pressHeading:!0})});vn({Events:Qs("Events",{slots:{[Et]:OH()},coreProps:{sectionAccent:KE},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});vn({Collections:Qs("Collections",{slots:{[Et]:[AH()]},roomBelow:Rde,pressHeading:!0})});vn({GalleryB:Qs("GalleryB",{slots:{[Et]:[LH()]},roomBelow:{bottom:li.bottom,bottomPhone:PR},pressHeading:!0})});vn({[xr]:{name:"Product hero",box:[...cX],boxProps:{direction:"column",gap:0,gapPhone:0,...pt(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[hw]:gw},slots:e=>({[Et]:rH(e)})}]}});var mD=Uw(Rc.ownBox);vn({FitmentTable:Qs("FitmentTable",{slots:{[t5]:[lpe()],[Eu]:[dpe()]},roomBelow:{bottom:mD.bottom,bottomPhone:mD.bottomPhone},boxProps:mD.line?{sectionBorder:EP({bottom:1})}:{},pressHeading:!0})});var bGe=e=>({type:Gs,props:{...ze,name:"Row",mirrorCards:e?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[$s]:[{type:Gs,props:{...ze,name:"Words",direction:"column",gap:16},slots:{[$s]:[Re("eyebrow",Ge,{...Pa(13),color:"accent"}),Re("title",Ge,{textStyle:"heading-2",...po("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Re("copy",vt,{textStyle:"body-1",...po("body",15),lineHeight:1.6})]}},{type:Gs,props:{...ze,name:"Picture",direction:"column",gap:12},slots:{[$s]:[{type:"ImageBlock",props:{[Ds]:"image",aspect:"1/1",fit:"contain"}},Re("tag",{...vt,align:"right"},{...Pa(11),align:"right"})]}}]}}),wGe={name:"Feature Rows",boxProps:{...qd,...MZ,direction:"column",gap:0},box:bp,parts:[{kind:"core",keep:"rest",slots:e=>({template:[bGe(e.startLeft===!0)]})}]};vn({DetailRows:wGe});import{phoneKey as fD}from"efficient-easel/draw";var q5=e=>[...bp.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>TP(t,n)],...lh(e)],hD=(e,t,o)=>(n,r)=>({...qd,sectionAccent:TP(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...Dm(n,e)}),gD=(e,t,o)=>({kind:"text",key:e,role:"heading",props:Ge,style:{textStyle:"heading-2",...po("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),bD=(e,t,o={})=>({kind:"group",name:"Heading",props:{...ze,gap:e,gapPhone:e,...o},parts:t}),wD=(e={})=>({kind:"core",keep:"rest",props:kP,...e}),j5=cD,[xGe]=Cv("ReviewForm"),yGe=()=>({name:"Review Form",boxProps:hD(j5,48,32),box:q5(j5),parts:[bD(16,[{...xGe,props:Ge},gD("title",1,-.02)]),wD()],pressKeepsEmpty:["eyebrow","title"],drop:{...Xd,...Zd,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[vGe]=Cv("Reviews"),uD=e=>({...Pa(12),letterSpacing:e}),kGe={type:Gs,props:{...ze,name:"Card",gap:16,...pt(40,40,32,32),sectionAccent:0},slots:{[$s]:[{type:"RatingBlock",props:{[Ds]:"rating"}},Re("title",Ge,{textStyle:"heading-1",...po("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Re("quote",vt,{textStyle:"body-1",...po("body",15),lineHeight:1.65}),{type:Gs,props:{...ze,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[fD("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[$s]:[Re("name",Ge,uD(.22)),Re("dateLabel",{...vt,align:"right"},{...uD(.18),align:"right"}),Re("role",{...vt,align:"right"},{...uD(.18),align:"right"})]}}]}},SGe=()=>({name:"Reviews",boxProps:hD(j5,48,32),box:q5(j5),parts:[bD(16,[{...vGe,props:Ge},gD("title",1,-.02)]),wD({slots:{template:[kGe]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...Xd,...Zd,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Reviews' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the reviews, which are always own-box here"}}),pfe={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},TGe=()=>({name:"Booking Form",boxProps:hD(pfe,40,40),box:q5(pfe),parts:[bD(16,[SP("eyebrow",{...po("label",12),weight:600,letterSpacing:.24,color:"accent"}),gD("heading",.98,-.025),{kind:"text",key:"intro",props:{...vt,maxWidth:660},style:{textStyle:"heading-1",...po("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),wD()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...Xd,...Zd}}),mfe={top:88,bottom:88,topPhone:64,bottomPhone:64},EGe=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...qd,direction:"column",align:"center",gap:20,gapPhone:20,...Dm(e,mfe)}),box:[...bp,...lh(mfe)],parts:[{...SP("eyebrow"),props:{...Ge,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...Ge,align:"center",maxWidth:720},style:{textStyle:"heading-1",...po("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...Ge,align:"center",maxWidth:560},style:{textStyle:"body-1",...po("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...ze,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[fD("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...BZ,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...Fv,align:"center",icon:"none"},style:{...Pm(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...Xd,...Zd}}),ufe={top:60,bottom:0,topPhone:60,bottomPhone:0},PGe=()=>({name:"Contact Form",boxProps:(e,t)=>({...qd,sectionAccent:TP(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...Dm(e,ufe)}),box:q5(ufe),parts:[{kind:"group",name:"Header",props:{...ze,direction:"row",align:"center",share:"content",phoneRow:2,[fD("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[SP("routingNumber"),{kind:"text",key:"routingTagline",props:vt,style:{textStyle:"heading-1",...po("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:DZ(e.sectionAccent??0,t)})}}],drop:{...Xd,...Zd}});vn({ContactRouting:PGe(),ReviewForm:yGe(),AppointmentBooking:TGe(),Reviews:SGe(),CheckoutCTA:EGe()});var ffe={top:40,bottom:40,topPhone:40,bottomPhone:40},hfe={textStyle:"heading-1",...pJ("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},xD=["heading","intro"],gfe=[Et,Fa,Ba,Ha];function CGe(e,t){let o=(t?N0:tq)(So,e);return Object.fromEntries(gfe.map(n=>[n,o[n]]))}var _Ge=()=>({name:"List",boxProps:e=>({...qd,direction:"column",gap:24,gapPhone:24,...Dm(e,ffe)}),box:[...bp,...lh(ffe)],parts:[{kind:"group",name:"Heading",props:{...ze,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...Ge,tag:"h1"},style:hfe,when:e=>!hF(e)},{kind:"text",key:"heading",role:"heading",props:{...Ge,tag:"h2"},style:hfe,when:hF},{kind:"text",key:"intro",role:"body",props:vt,style:{textStyle:"body-1",...po("body",15)}}]},{kind:"core",keep:"rest",props:kP,derive:{reads:[...gfe],props:(e,t)=>CGe(e,t.press===!0)}}],pressKeepsEmpty:xD,drop:{...Xd,...Zd,[GP]:"read by the heading part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}});vn({AlloyWheelsListing:_Ge()});var bfe={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as RGe,useContext as NGe}from"react";function mt(e){return Wt}import{Fragment as AGe,jsx as $w}from"react/jsx-runtime";var OGe=mt("ProductCard")("buy"),Eo={headingSmall1:"text-[length:var(--size-headingSmall,22px)]",headingSmall2:"text-[length:var(--size-headingSmall,30px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},Kw=RGe("catalog");function ws(){return NGe(Kw)==="catalog"}function Uu({children:e}){let t=ws();return $w(AGe,{children:e??(t?$w(D,{"aria-hidden":!0}):null)})}function Vw({children:e}){return $w(Uu,{children:e?$w(D,{children:e}):null})}function X5({children:e}){return $w(Uu,{children:e?$w(D,{className:"[.sf-card-rows>*>&]:self-end",...OGe,children:e}):null})}var wfe={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:EE(Eo.label),writable:!0,sized:!0}},xfe={sku:{label:"SKU",follows:"Label",builtIn:EE(Eo.label),writable:!0,sized:!0}},yfe={name:{label:"Name",follows:"Heading 3",builtIn:EE(Eo.headingSmall2),writable:!0,sized:!0}};kre({ProductPrice:bfe,ProductEyebrow:wfe,ProductName:yfe,ProductSku:xfe});function Yw(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as LGe}from"react/jsx-runtime";import{OpacityIcon as IGe}from"efficient-easel/icons";import{group as Z5}from"efficient-easel/screen/lib/document/box-fields";var vfe={fields:{_gContent:Z5("Content"),eyebrow:U("Eyebrow",Ym.eyebrow),title:j("Heading",Ym.title),body:j("Body",Ym.body),_gBackground:Z5("Background image"),imageSrc:et("Image","image/*"),overlay:ae("Overlay",LGe(IGe,{}),0,100,5,60,"%"),_gButton:Z5("Button"),...gl,_gLayout:Z5("Layout")}};import{jsx as I1}from"react/jsx-runtime";import{GroundIcon as Sfe,ListIcon as FGe}from"efficient-easel/icons";function Tfe(e){let t=e?.data?.root,o=jQ(t?.props)??"";return o&&HF(o,"text").length?o:""}var yD="outsideCardTemplate",BGe={not:{context:yD,is:!0}},Ma={[yD]:(e,t)=>{let o=mp(t.appState,e.props?.id);if(o!==void 0)return o===null&&!Tfe(t.appState)},[rj]:(e,t)=>{let o=Zl(t.appState,e.props?.id);return o===void 0?void 0:!o.inCopy},[ij]:(e,t)=>Zl(t.appState,e.props?.id)?.inCopy};function $r(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?I1(sa,{noun:"link"}):t==="colour"?I1(Sfe,{}):I1(FGe,{}),a={...le(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return ht(a,BGe)}function Nc(){return $r("Link from","link")}var HGe={any:[{field:Go,set:!1},{context:yD,is:!0,default:!0}]};function Gu(e){return ht(e,HGe)}function F1(e){return e.kind==="link"?wr(J(e.label)):e.kind==="colour"?DGe(e.label):e.multiline?qe(e.label):we(e.label)}function DGe(e){return{type:"custom",render:({value:t,onChange:o})=>I1(Yoe,{label:e,icon:I1(Sfe,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function MGe(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var kfe=new WeakMap;function za(e,t,o){let n=Object.keys(e).filter(v=>MGe(e[v]));if(!n.length)return e;let r=t.props??{},a=mp(o.appState,r.id),i=typeof a?.type=="string"?a.type:"",s=a?H4(o.appState,r.id)??"":"",l=n.map(v=>typeof r[v]=="string"?r[v].trim():""),d=lt(a?.props),c=i===Fr?mp(o.appState,a?.props?.id):null,p=c?H4(o.appState,a?.props?.id)??void 0:void 0,m=c?NE(a?.props,c.type,p):"",f=c?lt(c.props):"",g=c?`${String(c.type??"")}\0${f}\0${p??""}`:"",h=i===Fr&&!c?JSON.stringify(a?.props?.[Jj]??null):"",b=a?"":Tfe(o.appState),w=[i,s,d,m,g,h,cE(),b,WQ(),...l].join("\0"),y=kfe.get(e);y||kfe.set(e,y=new Map);let x=y.get(w);if(x)return x;let k={...e};return n.forEach((v,S)=>{let E=e[v],T=i===Fr?oh(o.appState,a,E.cardRowKind):i?nq(a,E.cardRowKind,s||void 0):HF(b,E.cardRowKind),C=E.cardRowKind==="link"&&!!i&&!T.length;if(!l[S]&&(C||(E.cardRowContent?!i||!T.length:!T.length&&!i&&b))){delete k[v];return}let P=l[S]&&!T.some(I=>I.key===l[S])?l[S]:"",B=E.cardRowKind==="list",M=(I,A)=>B&&A===0&&I.key!==l[S]?"":I.key;k[v]={...E,options:[...B?[]:E.options,...T.map((I,A)=>({label:I.label,value:M(I,A)})),...P?[{label:P,value:P}]:[]]}}),y.set(w,k),k}import{group as Pfe}from"efficient-easel/screen/lib/document/box-fields";var J5={meta:"Trailing note"},Efe={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var Cfe={fields:{_gContent:Pfe("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:J("Label"),href:wr(J("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:U("Trailing note",J5.meta),_gText:Pfe("Text"),rowField:$r("Shows","text")},resolveFields:(e,t)=>za(t.fields,e,t),showWhenFacts:Ma};import{jsx as pi,jsxs as YGe}from"react/jsx-runtime";import{ButtonIcon as jGe,ButtonIconIcon as qGe,IconAfterTextIcon as XGe,IconBeforeTextIcon as ZGe}from"efficient-easel/icons";import{SettingsField as JGe}from"efficient-easel/panel";import{useSelectedFields as Ife}from"efficient-easel/easel";import{buttonFieldSet as QGe}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as e$e}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as t$e,Segmented as o$e}from"efficient-shell/ui";function Q5(e){return typeof e=="boolean"?e:!0}import{parseOption as zGe}from"efficient-shell/format";var vD=["none","arrow-right","arrow-long-right","arrow-up-right","chevron-right","external","cart","bag","tag","email","location","play","download","search","car","phone","wheel","chat","chevron-left","package","truck","shield-check","receipt-refund"],WGe=["before","after","end"];function kD(e){return typeof e=="string"&&vD.includes(e)?e:void 0}function _fe(e,t){return kD(e)??(Q5(t)?"arrow-right":"none")}function B1(e){return zGe(WGe,"after",e)}function Rfe(e,t){return B1(e)==="end"&&Qh(t)==="fill"}function Qh(e){return e==="fill"||e==="fixed"?"fill":"fit"}function Nfe(e,t,o,{atSectionLine:n=!1}={}){let r=Qh(e);if(fr(o)){let i=Qh(o),s=fr(t)?Qh(t):i;return n?[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-tablet:max-view-desktop:w-full":"view-tablet:max-view-desktop:w-auto",s==="fill"?"max-view-tablet:w-full":"max-view-tablet:w-auto"].join(" "):[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-wide:max-view-desktop:w-full":"view-wide:max-view-desktop:w-auto",s==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto"].join(" ")}let a=r==="fill"?["w-full"]:[];if(fr(t)){let i=Qh(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as oN}from"efficient-easel/screen/lib/document/style-fields";import{group as Ofe}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as n$e}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as SD}from"react/jsx-runtime";import{LockIcon as UGe}from"efficient-easel/icons";import{FieldText as GGe}from"efficient-easel/fields";import{SettingsField as $Ge}from"efficient-easel/panel";import{keptByRow as KGe}from"efficient-easel/screen/lib/document/style-fields";function VGe(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??eoe}-words`;return SD($Ge,{label:u("Words"),icon:SD(UGe,{}),htmlFor:o,children:SD(GGe,{id:o,value:u("Set by country"),onChange:()=>{},readOnly:!0})})}}}function eN(e){return KGe(e)}function tN(e,t,o,n=[]){return DC(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?VGe():a]))}var TD=e=>_C(e==="none"?"no-symbol":e),r$e=vD.map(e=>({value:e,icon:e==="none"?Ete(TD(e),pi(UF,{value:e})):TD(e)})),Ffe=J("Button");function a$e({value:e,onChange:t}){let o=Ife(),n=o.values.href,r=typeof e=="string"?e:e&&typeof e=="object"&&"text"in e?String(e.text??""):"";return o.fields&&"href"in o.fields?pi(loe,{label:"Button",icon:pi(jGe,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):Ffe.render({value:r,field:{label:"Button"},onChange:a=>t(Noe(a))})}function i$e({value:e,onChange:t}){let o=Ife(),n=_fe(e,o.values.arrow),r=B1(o.values.iconPosition),a=Qh(o.values.widthFit)==="fill",i=TD("icon-at-end");return pi(JGe,{label:u("Icon"),icon:pi(qGe,{size:18}),value:n==="none"?void 0:pi(UF,{value:n}),children:YGe("div",{className:"flex items-center gap-2",children:[pi(t$e,{label:u("Icon"),value:n,options:r$e,onChange:t}),n!=="none"&&pi(o$e,{size:"sm",block:!0,label:u("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:pi(ZGe,{size:16}),label:pi("span",{className:"sr-only",children:u("Icon before text")}),title:u("Icon before text")},{value:"after",icon:pi(XGe,{size:16}),label:pi("span",{className:"sr-only",children:u("Icon after text")}),title:u("Icon after text")},...a?[{value:"end",icon:i,label:pi("span",{className:"sr-only",children:u("Icon at the far end")}),title:u("Icon at the far end")}]:[]]})]})})}var Afe=()=>W4(zn().theme),Lfe=QGe({lengthUnits:TC,follows:{useFill:()=>Afe().fill,useText:()=>Afe().ink,useBorder:()=>{let[e]=ac("variant"),[t]=ac("buttonColor"),{theme:o}=zn(),n=JF({variant:e,buttonColor:t}).border.width,r=fr(t)??(e==="ghost"?fq(o).text:W4(o).fill);return{width:n,color:r}},useCorners:()=>yq(zn().cornerRadiusPx),useFillOpacity:()=>JF({variant:ac("variant")[0]}).fillOpacity},usePresets:Hte,resetTo:e=>Ooe(e,u("Styles")),padding:{fallback:coe,tablet:!0},phone:e$e,say:ib});function s$e(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var Bfe={fields:{label:Loe(Ffe,e=>pi(a$e,{value:e.value,onChange:e.onChange})),labelText:Moe("label"),href:Gu({...Ve("Button link"),...oN("label")}),consentWords:eN("label"),_gButton:Ofe("Button"),rowField:$r("Shows","text"),[Go]:Nc(),...s$e(Lfe,n$e.Design),_gStyle:Ofe("Style"),variant:oN("buttonColor"),icon:{type:"custom",render:e=>pi(i$e,{value:e.value,onChange:e.onChange})},iconPosition:oN("icon"),arrow:oN("icon"),...Lfe},resolveFields:(e,t)=>tN(za(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:Ma};import{jsx as iN}from"react/jsx-runtime";import{AccentIcon as l$e,ColumnsIcon as d$e,StylesIcon as zfe}from"efficient-easel/icons";import{group as ED}from"efficient-easel/screen/lib/document/box-fields";import{newId as Dfe}from"efficient-easel/data";function nN(e,{rows:t="items",label:o="title"}={}){let n=lt(e);return n?pp(n).map(r=>({label:r.label,value:r.key})):(Array.isArray(e[t])?e[t]:[]).map((r,a)=>({label:typeof r?.[o]=="string"&&r[o].trim()||u("Card {n}",{n:a+1}),value:iq(Zo(r),a)}))}var Hfe=new WeakMap;function rN(e,t){let o=Hfe.get(e);o||Hfe.set(e,o=new Map);let n=JSON.stringify(t),r=o.get(n);return r||o.set(n,r={...e,options:[...e.options,...t]}),r}function Mfe(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>Dfe(t),enumerable:!0})}function aN(e,t="items"){if(!Array.isArray(e[t])||lt(e))return e;let o=e[t],n=typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",r=c=>c&&typeof c=="object"&&typeof c.key=="string"?c.key:"",a=!!n&&!o.some(c=>r(c)===n),i=new Set,s=e.highlightedCard,l=!1,d=o.map((c,p)=>{if(!c||typeof c!="object")return c;let m=r(c);if(m&&!i.has(m))return i.add(m),c;let f=!m&&a&&n===String(p+1);if(m||f){let g=Dfe("card");return i.add(g),l=!0,f&&(s=g),{...c,key:g}}return c});return l?{...e,[t]:d,highlightedCard:s}:e}import{isNodeList as c$e}from"efficient-easel/data";var p$e=e=>c$e(e.template)&&e.template.length>0;function m$e(e,t){let o=p$e(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,rN(r,nN(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,h$e(r)]]:[[n,r]]))}var u$e=Object.fromEntries(Sv("Cards").filter(e=>!e.everySource).map(e=>[e.key,F1(e)])),f$e=Object.fromEntries(Sv("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,F1(e)])),Wfe=new WeakMap;function h$e(e){let t=Wfe.get(e);return t||Wfe.set(e,t={...e,arrayFields:u$e}),t}var Ufe={fields:{_gSource:ED("Source"),dataSource:Qt("Card content","Manual"),[Tb]:Eb(),_gContent:ED("Content"),eyebrow:U("Eyebrow",G0.eyebrow),eyebrowLook:le("Eyebrow style",iN(zfe,{}),[...qs],wp("Cards")),title:j("Heading",G0.title),items:{type:"array",label:"Cards",arrayFields:f$e,defaultItemProps:Mfe({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...zZ,highlightedCard:le("Highlighted card",iN(l$e,{}),[{label:"None",value:""}],""),highlightBadge:U("Highlight badge","Most popular"),_gStyle:ED("Style"),cardStyle:wo("Card style",iN(zfe,{}),[{label:"Cards",value:"cards",picture:QF.cards},{label:"Label only",value:"label-only",picture:QF["label-only"]}],"cards",{columns:2,cell:br}),columns:ae("Columns",iN(d$e,{}),2,4,1,3)},resolveData:(e,t)=>{let o=t?.lastData?.props,n=xre(e.props,o),r=SE(n),a=r===e.props?e:{...e,props:r},i=a.props,s=aN(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=nt(eo("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,it.Cards.headRows),n=e.props,r=m$e(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:we("Feature label"),href:wr(J("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:wp("KeyFeatures")}}:{}}}};import{jsx as g$e}from"react/jsx-runtime";import{StickyIcon as b$e}from"efficient-easel/icons";import{group as Gfe}from"efficient-easel/screen/lib/document/box-fields";var $fe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:J("Label"),count:J("Count")},getItemSummary:e=>e?.label?`${e.label}${e.count?` \xB7 ${e.count}`:""}`:"Tab"},activeTab:dn(wr(J("Active tab","All"))),_gLinks:Gfe("Links"),links:{type:"array",label:"Right links",arrayFields:{label:J("Label"),href:wr(J("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:Gfe("Style"),sticky:ne("Stick to top",!0,g$e(b$e,{}))}};import{jsx as w$e}from"react/jsx-runtime";import{StylesIcon as x$e}from"efficient-easel/icons";import{group as Kfe}from"efficient-easel/screen/lib/document/box-fields";var y$e=[...uQ],Vfe={fields:Ti({_gContent:Kfe("Content"),eyebrow:U("Chip label",tb.eyebrow),title:j("Heading",tb.title),body:j("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:we("Label"),value:J("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:U("Caption","Illustrative example"),_gStyle:Kfe("Style"),chartStyle:wo("Chart style",w$e(x$e,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:$C.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:$C.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:$C.donut}],"bars",{columns:3,cell:br}),valueSuffix:dn(U("Value suffix","%"))},y$e,Ei)};import{jsx as H$e}from"react/jsx-runtime";import{group as D$e}from"efficient-easel/screen/lib/document/box-fields";import{jsx as tt,Fragment as CD,jsxs as bd}from"react/jsx-runtime";import{useId as v$e,useState as k$e}from"react";import{InspectorUpLevel as H1}from"efficient-easel/chrome";import{useEasel as S$e}from"efficient-easel/easel";import{ListField as Xfe}from"efficient-easel/fields";import{SettingsField as Zfe}from"efficient-easel/panel";import{ClockIcon as Yfe,ContrastIcon as T$e,GlobeIcon as E$e,LinkIcon as P$e,LocationIcon as C$e,PhoneIcon as _$e,SquareIcon as R$e,TypeIcon as _D}from"efficient-easel/icons";import{useSectionOps as N$e}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as O$e}from"efficient-easel/draw";var RD=(e,t)=>t||e?Are(e,t):u("Ungrouped");function A$e(e){let t=[];return e.forEach((o,n)=>{let r=ou(o),a=t.find(i=>i.key===r);a||(a={key:r,name:String(o?.groupName??""),indices:[]},t.push(a)),a.indices.push(n)}),t}function PD({children:e}){return tt("div",{style:{fontSize:11,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--ink-faint)",margin:"14px 0 6px"},children:e})}var Jfe={width:"100%",height:32,textAlign:"left",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"0 12px",fontSize:12,border:"1px solid var(--line-strong)",borderRadius:6,background:"transparent",color:"inherit",cursor:"inherit"},L$e={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},Qfe={...L$e,color:"var(--status-danger-soft-ink)"};function Zp({label:e,value:t,placeholder:o,textarea:n,icon:r,onChange:a,onBlur:i,onKeyDown:s}){let l=v$e();return tt(Zfe,{label:e,icon:r??tt(_D,{}),htmlFor:l,children:n?tt("textarea",{id:l,value:t,placeholder:o,onChange:d=>a(d.target.value)}):tt("input",{id:l,type:"text",value:t,placeholder:o,onChange:d=>a(d.target.value),onBlur:i,onKeyDown:s})})}var I$e=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],F$e=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function jfe({label:e,icon:t,options:o,value:n,onChange:r}){return tt(Zfe,{label:e,icon:t,children:tt("div",{role:"group","aria-label":e,style:{display:"flex",gap:4,flex:1},children:o.map(a=>{let i=n===a.value;return tt("button",{type:"button","aria-pressed":i,onClick:()=>r(a.value),style:{flex:1,padding:"6px 8px",fontSize:12,borderRadius:6,cursor:"pointer",border:`1px solid ${i?"var(--sf-accent)":"var(--line-strong)"}`,background:i?"var(--sf-accent)":"transparent",color:i?"var(--sf-on-accent)":"inherit",fontWeight:i?500:400},children:u(a.label)},a.value)})})})}function qfe({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||gn.mapTheme,a=gn;return bd(CD,{children:[!o&&tt(PD,{children:u("Section")}),tt(Zp,{label:u("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),tt(Zp,{label:u("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),tt(Zp,{label:u("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:bd(CD,{children:[tt(PD,{children:u("City strip")}),tt(Zp,{label:u("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),tt(Zp,{label:u("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),tt(jfe,{label:u("Shape"),icon:tt(R$e,{}),options:F$e,value:WP(e.imageShape),onChange:i=>t({imageShape:i})}),tt(PD,{children:u("Map & Theme")}),tt(jfe,{label:u("Map theme"),icon:tt(T$e,{}),options:I$e,value:r,onChange:i=>t({mapTheme:i})})]})]})}function B$e({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((f,g)=>ou(f)===t?g:-1).filter(f=>f>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(ou).filter(f=>f!==t)),[d,c]=k$e(t),p=f=>o(e.map(g=>ou(g)===t?{...g,...f}:g)),m=()=>{let f=d;if(f!==t){if(l.has(f)){c(t);return}o(e.map(g=>ou(g)===t?{...g,group:f}:g)),a(f)}};return bd("div",{className:"sf-locations-view",children:[tt(H1,{inline:!0,name:u("Section"),onSelect:n,title:RD(t,s)}),tt(Zp,{label:u("Group heading"),value:d,placeholder:u("e.g. Americas"),onChange:c,onBlur:m,onKeyDown:f=>{f.key==="Enter"&&f.currentTarget.blur()}}),l.has(d)&&d!==t&&tt("p",{className:"sf-note sf-note--error",role:"alert",children:u("Another group already uses this heading \u2014 pick a different one.")}),tt(Zp,{label:u("Group name"),value:s,placeholder:u("Shown beside the heading"),onChange:f=>p({groupName:f})}),tt(Xfe,{label:u("Cities in this group"),noun:u("city"),items:i.map(f=>e[f]),onChange:f=>o(Lre(e,t,f)),newItem:()=>({...f6,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(f,g)=>bd("button",{type:"button",style:Jfe,onClick:()=>r(i[g]),children:[tt("span",{children:f?.name||u("City")}),tt("span",{"aria-hidden":"true",children:"\u203A"})]})}),tt("div",{style:{marginTop:12},children:tt("button",{type:"button",style:Qfe,onClick:()=>{o(e.filter(f=>ou(f)!==t)),n()},children:Qn("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function ehe({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=Ore(),r=Lne(),a=A$e(o),{appState:i,selectedItem:s}=S$e(h=>h),l=N$e(),d=s?.props??{},c=h=>{if(!s)return;let b=(i.data.content??[]).findIndex(w=>w.props.id===s.props.id);b<0||l.replaceComponent(O$e,b,{type:s.type,props:{...s.props,...h}})},p=(h,b)=>t(o.map((w,y)=>y===h?{...w,...b}:w)),m=()=>{let h=new Set(a.map(y=>y.key)),b=a.length+1,w=`Group ${b}`;for(;h.has(w);)w=`Group ${++b}`;return w};if(n.level==="texts")return bd("div",{className:"sf-locations-view",children:[tt(H1,{inline:!0,name:u("Locations"),onSelect:()=>rd({level:"groups"}),title:u("Texts")}),tt(qfe,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let h=o[n.index];return h?bd("div",{className:"sf-locations-view",children:[tt(H1,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>rd({level:"city",index:n.index}),title:u("Image")}),tt(Ute,{value:h.photo||"",onChange:b=>p(n.index,{photo:b}),label:"Image",accept:"image/*"})]}):f()}if(n.level==="map"){let h=o[n.index];return h?bd("div",{className:"sf-locations-view",children:[tt(H1,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>rd({level:"city",index:n.index}),title:u("Map")}),tt(QC,{value:h.geocode,onChange:b=>p(n.index,{geocode:b}),label:"Coordinates"}),tt(Zp,{label:u("Directions link"),icon:tt(P$e,{}),value:String(h.mapsUrl??""),onChange:b=>p(n.index,{mapsUrl:b})})]}):f()}if(n.level==="city"){let h=n.index,b=o[h];if(!b)return f();let w=ou(b),y=(k,v)=>p(h,{[k]:v}),x=(k,v,S,E=!1)=>tt(Zp,{label:v,icon:S,textarea:E,value:String(b[k]??""),onChange:T=>y(k,T)});return bd("div",{className:"sf-locations-view",children:[tt(H1,{inline:!0,name:RD(w,String(b.groupName??"")),onSelect:()=>rd({level:"group",key:w}),title:b.name||u("City")}),x("name",u("Location name"),tt(_D,{})),x("state",u("State / Province"),tt(_D,{})),x("country",u("Country"),tt(E$e,{})),x("address",u("Address"),tt(C$e,{}),!0),x("phone",u("Phone"),tt(_$e,{})),x("hours",u("Opening hours"),tt(Yfe,{})),x("timezone",u("Timezone chip"),tt(Yfe,{})),tt("div",{style:{marginTop:12},children:tt("button",{type:"button",style:Qfe,onClick:()=>{t(o.filter((k,v)=>v!==h)),rd({level:"group",key:w})},children:u("Delete city")})})]})}if(n.level==="group")return a.some(h=>h.key===n.key)?tt(B$e,{cards:o,groupKey:n.key,onChange:t,onBack:()=>rd({level:"groups"}),onOpenCity:h=>rd({level:"city",index:h}),onNavigate:h=>rd({level:"group",key:h})},n.key):f();function f(){return bd("div",{className:"sf-locations-view",children:[tt(qfe,{props:d,setSection:c}),!r&&tt(CD,{children:g()})]})}function g(){return tt(Xfe,{label:u("Locations"),noun:u("group"),items:a,onChange:h=>{let b=h.find(w=>!a.some(y=>y.key===w.key));t(Ire(o,h.map(w=>w.key),w=>[{...f6,group:w,groupName:""}])),b&&rd({level:"group",key:b.key})},newItem:()=>({key:m(),name:"",indices:[]}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,above:a.length===0?tt("div",{style:{fontSize:12,color:"var(--ink-faint)",padding:"4px 0"},children:u("No locations yet.")}):void 0,renderRow:h=>bd("button",{type:"button",style:Jfe,onClick:()=>rd({level:"group",key:h.key}),children:[tt("span",{style:{fontWeight:500},children:RD(h.key,h.name)}),bd("span",{style:{color:"var(--ink-faint)"},children:[Qn("{n} city","{n} cities",h.indices.length)," \u203A"]})]})})}return f()}var the={fields:{_gOffices:D$e("Offices"),dataSource:Qt("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>H$e(ehe,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,o=t.locations??[];if(!NC(o))return e;let n=await OC(o,i=>{let s=UP(i.region);return[String(i.address??"").replace(/\s*\n+\s*/g,", "),i.name,String(i.state??"").trim()||s.state,String(i.country??"").trim()||s.country].map(l=>String(l??"").trim()).filter(Boolean).join(", ")}),{[lE]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>eo("ContactLocations",t,e.props)};import{jsx as ohe}from"react/jsx-runtime";import{ClockIcon as M$e,TagIcon as z$e}from"efficient-easel/icons";var W$e=[...xQ],nhe={fields:Ti({title:U("Heading",bF.title),zeroText:dn(U("At zero",bF.zeroText)),endsAt:Voe("Ends",ohe(M$e,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:ne("Unit labels",!0,ohe(z$e,{}))},W$e,Ei)};import{jsx as D1,jsxs as U$e}from"react/jsx-runtime";import{Suspense as G$e,lazy as $$e,useState as K$e}from"react";import{Button as V$e}from"efficient-shell/ui";import{CodeIcon as Y$e}from"efficient-shell/icons/efficient";import{SettingsField as j$e}from"efficient-easel/panel";import{iconOf as q$e}from"efficient-easel/screen/lib/document/box-fields";var X$e=$$e(()=>import("./chunks/CustomHtmlCodeWindow-GU7XJD4P.js"));function Z$e({value:e,onChange:t}){let[o,n]=K$e(!1);return U$e(j$e,{label:u("HTML"),icon:q$e(D1(Y$e,{})),children:[D1(V$e,{variant:"secondary",onClick:()=>n(!0),children:u("Edit code")}),o?D1(G$e,{fallback:null,children:D1(X$e,{open:!0,onClose:()=>n(!1),value:typeof e=="string"?e:"",onChange:t})}):null]})}var rhe={fields:{html:{type:"custom",label:"HTML",render:({value:e,onChange:t})=>D1(Z$e,{value:e,onChange:t})}}};import{jsx as ND}from"react/jsx-runtime";import{StylesIcon as J$e,WeightIcon as Q$e,WidthIcon as eKe}from"efficient-easel/icons";import{keptByRow as tKe}from"efficient-easel/screen/lib/document/style-fields";var oKe={any:[{field:"style",set:!1},{field:"style",is:xh}]},nKe={not:{field:"style",is:"none"}},ahe={fields:He({style:wo("Style",ND(J$e,{}),goe.map(e=>({...e,picture:voe(e.value)})),xh,{columns:3,cell:br}),spacing:tKe("sectionPaddingTop"),thickness:ae("Thickness",ND(Q$e,{}),1,8,1,1,i2),...nd(i2,"thickness"),lengthPct:ae("Length",ND(eKe,{}),10,100,1,100,s2),...nd(s2,"lengthPct")},[[["thickness"],oKe],[["lengthPct"],nKe]]),resolveFields:(e,{fields:t})=>{let o=UC[GC(e.props.spacing)],n=Sp({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return c2(t,n)}};import{jsx as AD}from"react/jsx-runtime";import{HashIcon as rKe,StickyIcon as aKe,TargetIcon as iKe}from"efficient-easel/icons";import{group as she,select as sKe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as jw}from"efficient-easel/screen/lib/document/device-fields";var OD={title:"On this page"},ihe={label:"Contents",defaultProps:{title:OD.title,sticky:!0}};var lhe={fields:{title:jw("desktop",U("Heading",OD.title)),_gList:jw("desktop",she("List")),[l_]:jw("desktop",sKe("Number",AD(rKe,{}),QJ,eQ)),markCurrent:jw("desktop",ne("Mark the current section",!1,AD(iKe,{}),"The row of the section a reader is in stands out as they scroll.")),_gStick:jw("desktop",she(Q4)),sticky:jw("desktop",ne(Q4,!0,AD(aKe,{})))}};import{group as lKe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as LD}from"efficient-easel/screen/lib/document/device-fields";var M1={hint:"Search questions",noMatchText:"No question matches your search."},dhe={label:"List search",defaultProps:{hint:M1.hint,noMatchText:M1.noMatchText}};var che={fields:{_gContent:LD("desktop",lKe("Content")),hint:LD("desktop",dn(U("Hint",M1.hint))),noMatchText:LD("desktop",dn(U("No match",M1.noMatchText)))}};import{group as mhe}from"efficient-easel/screen/lib/document/box-fields";var sN={toc:"On this page"},phe={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var uhe={fields:{_gContent:mhe("Contents"),tocTitle:U("Contents heading",sN.toc),_gSections:mhe("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:we("Contents label"),heading:we("Title"),body:qe("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as fhe}from"efficient-easel/screen/lib/document/box-fields";var hhe={fields:{_gContent:fhe("Content"),eyebrow:U("Eyebrow",$m.eyebrow),title:j("Heading",$m.title),deck:j("Deck / standfirst",$m.deck),_gMeta:fhe("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:we("Label"),value:we("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var lN=[{label:"Label",value:"Value",desc:"Short description of this card."},{label:"Label",value:"Value",desc:"Short description of this card."},{label:"Label",value:"Value",desc:"Short description of this card."}],ghe={label:"Document Detail Cards",defaultProps:{cards:[]}};var bhe={fields:{cards:fb({type:"array",label:"Cards",arrayFields:{label:we("Label"),value:we("Value"),desc:qe("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},lN)}};import{jsx as dKe}from"react/jsx-runtime";import{PageIcon as cKe}from"efficient-easel/icons";import{group as pKe}from"efficient-easel/screen/lib/document/box-fields";var qw={metaLabel:W.label,metaValue:W.value},whe={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var xhe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:J("Tab label"),href:Ve("Links to"),current:ne("Current page",!1,dKe(cKe,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:pKe("Trailing note"),metaLabel:U("Note label",qw.metaLabel),metaValue:U("Note value",qw.metaValue)}};import{jsx as mKe}from"react/jsx-runtime";import{StylesIcon as uKe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as fKe}from"efficient-easel/screen/lib/document/box-fields";var yhe={fields:{eyebrow:U("Eyebrow",W.eyebrow),...nl("align",{access:fKe}),eyebrowLook:le("Look",mKe(uKe,{}),qs,PP)}};import{jsx as khe}from"react/jsx-runtime";import{ChevronIcon as hKe,LinkIcon as gKe}from"efficient-easel/icons";import{group as FD}from"efficient-easel/screen/lib/document/box-fields";var $u={num:W.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},ID=Dn.FAQ,vhe={label:"Q&A",inline:!0,fields:ID,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var She="faqOnTemplate",bKe={not:{context:She,is:!0}},wKe={[She]:e=>AZ("FAQ",e.props??{})},xKe=new Set([fX,...hX]);function yKe(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||xKe.has(t))}var The={fields:{_gContent:FD("Content"),num:U("Number",$u.num),title:j("Heading",$u.title),linkText:U("Button",$u.link),linkHref:Ve("Link"),_gQuestions:FD("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:we("Question"),answer:qe("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:FD("Layout"),defaultOpen:ne("Open first answer",!0,khe(hKe,{})),openFromLink:ne("Open from a link",!1,khe(gKe,{}),"A link to a question opens its answer. Each question gets an anchor made from its words, after the section's Anchor."),...ID},resolveFields:(e,{fields:t})=>{let o=nt(t,e.props.headPlacement,it.FAQ.headRows);return Ti(o,yKe(o),bKe)},showWhenFacts:wKe};import{jsx as Ui,Fragment as dN,jsxs as kKe}from"react/jsx-runtime";import{useContext as SKe}from"react";import{SettingsField as _he}from"efficient-easel/panel";import{FieldSelect as Rhe}from"efficient-easel/fields";import{BlogPostIcon as Nhe}from"efficient-easel/icons";import{ScreenDocumentContext as TKe}from"efficient-easel/screen/components/ScreenDocumentContext";var Ehe=Pw({fetch:async(e,t)=>await Kd().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:Sn});import{useEffect as Phe,useRef as vKe,useState as BD}from"react";function eg(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function Xw({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=BD(null),[s,l]=BD(!1),[d,c]=BD(!1),p=vKe(!0);return Phe(()=>(p.current=!0,e().then(m=>{p.current&&i(m)}),()=>{p.current=!1}),[]),Phe(()=>{if(!n?.slug||a===null)return;let m=t(a,n);if(!m)return;let f=o(m);eg(f,n)&&r(f)},[a]),{rows:a,loading:a===null,refreshing:s,errored:d,refresh:()=>{n?.slug&&(l(!0),c(!1),e(!0).then(m=>{if(!p.current)return;i(m);let f=t(m,n);f&&r(o(f))}).catch(()=>{p.current&&c(!0)}).finally(()=>{p.current&&l(!1)}))}}}function Che(e,t){return{label:t?u("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function Zw({value:e,onChange:t}){let o=SKe(TKe);return o&&!o.capabilities.hasBlog?e?.slug?Ui(EKe,{value:e,onChange:t}):Ui(dN,{}):Ui(PKe,{value:e,onChange:t})}function EKe({value:e,onChange:t}){return Ui("div",{children:Ui(_he,{label:u("Blog post source"),icon:Ui(Nhe,{}),hint:Ui(dN,{children:u("Linked to a blog post. This editor has no blog to pick another from; choose \u201CNone (manual)\u201D to author the section yourself.")}),children:Ui(Rhe,{value:e.slug,ariaLabel:u("Blog post source"),onChange:o=>o?void 0:t(null),options:[{label:u("None (manual)"),value:""},{label:e.title||e.slug,value:e.slug}]})})})}function PKe({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=Xw({load:Ehe,resolve:(m,f)=>m.find(g=>g.slug===f.slug),snapshot:L2,value:e,onChange:t}),s=m=>{if(!m){t(null);return}let f=(o??[]).find(g=>g.slug===m);f&&t(L2(f))},l=e?.slug&&!(o??[]).some(m=>m.slug===e.slug),d=a?"error":r?"loading":"idle",c=u("Storefront \u2192 Blog"),p=a?u("Couldn\u2019t reach {place}.",{place:c}):r?u("Syncing from {place}\u2026",{place:c}):u("Linked to \u201C{name}\u201D",{name:e?.title||e?.slug||""});return kKe("div",{children:[Ui(_he,{label:u("Blog post source"),icon:Ui(Nhe,{}),hint:e?.slug?void 0:Ui(dN,{children:u("Pick a post from {place} to auto-fill this section, or keep \u201CNone (manual)\u201D to author it yourself below.",{place:c})}),children:Ui(Rhe,{value:e?.slug??"",ariaLabel:u("Blog post source"),onChange:s,readOnly:n,options:[{label:u("None (manual)"),value:""},...l?[Che({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(m=>({label:m.title,value:m.slug}))]})}),e?.slug?Ui(al,{status:d,statusText:p,onRefresh:i,busy:r,hint:Ui(dN,{children:u("Auto-fills the cover image, headline, dek, date and link from this post each time you open the editor. Those fields are hidden while a post is linked; the remaining fields stay yours to set.")})}):null]})}import{group as CKe}from"efficient-easel/screen/lib/document/box-fields";var Kr={badge:"Featured",imageDate:W.date,category:W.category,readLabel:"0 min read",date:W.date,title:"Add a *headline* for this story.",dek:"A short summary of the featured article \u2014 one or two sentences that draw the reader in.",ctaText:"Read the story",ctaHref:Jd.href},Ohe={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var _Ke=["image","imageDate","date","title","dek","ctaHref"],Ahe={fields:Ti({source:zo(Zw),_nBound:ht(il(jC),qC),image:et("Cover image","image/*"),badge:U("Badge",Kr.badge),imageDate:U("Image date",Kr.imageDate),_gContent:CKe("Content"),category:U("Category",Kr.category),readLabel:U("Read time",Kr.readLabel),date:U("Date",Kr.date),title:j("Heading",Kr.title),dek:j("Dek",Kr.dek),ctaText:U("Button",Kr.ctaText),ctaHref:Ve("Link")},_Ke,gb)};import{jsx as ir}from"react/jsx-runtime";import{phoneKey as Sr,tabletKey as ha}from"efficient-easel/draw";import{keptByRow as OVe}from"efficient-easel/screen/lib/document/style-fields";import{jsx as Lhe}from"react/jsx-runtime";import{OpacityIcon as RKe,StylesIcon as NKe}from"efficient-easel/icons";function Jw(){return{darken:ae("Darken",Lhe(RKe,{}),Ql.min,Ql.max,Ql.step,Ql.fallback,Ql.unit),darkenStyle:le("Darken style",Lhe(NKe,{}),Ov,Ov[0].value)}}var OKe={"top-left":"left-0 top-[120px]","top-center":"left-1/2 top-[120px] -translate-x-1/2","top-right":"right-0 top-[120px]",left:"left-0 top-1/2 -translate-y-1/2",center:"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",right:"right-0 top-1/2 -translate-y-1/2","bottom-left":"left-0 bottom-[120px]","bottom-center":"left-1/2 bottom-[120px] -translate-x-1/2","bottom-right":"right-0 bottom-[120px]"},AKe=`calc(${Mq} - ${G4}*2)`,Ihe=`var(${zq},${G4})`,zUt=`pointer-events-none absolute inset-y-0 left-[${Ihe}] right-[${Ihe}] z-[6] mx-auto max-w-[var(${Wq},${AKe.replace(/ /g,"_")})]`;function cN(e,t){return`pointer-events-auto absolute ${OKe[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function Fhe(e){return JE.includes(e)?e:null}import{parseOption as HD}from"efficient-shell/format";var LKe=JE,DD="top-right",IKe=["cards","dots","numbers","bar","squares","tabs","largeTabs"],MD=["cards","dots","numbers","bar","squares"],pN="cards",mN={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},uN=["tabs","largeTabs"],Bhe=!0;function fN(e){return HD(IKe,pN,e)}function Hhe(e){return HD(MD,pN,e)}function FKe(e){return HD(LKe,DD,e)}var Dhe={cards:"flex-col gap-2.5",dots:"flex-row items-center gap-2",numbers:"flex-col gap-2",bar:"h-0.5 w-[34%] max-w-[420px] gap-px overflow-hidden rounded-full",squares:"flex-col gap-0",tabs:"flex-row items-stretch w-full overflow-x-auto",largeTabs:"items-stretch border-y border-line"};function Mhe(e,t){return cN(FKe(t),Dhe[fN(e)])}function zhe(e){return`flex ${Dhe[fN(e)]}`}function Whe(e){return e.shown!==!1&&(e.count??0)>1}function BKe(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function HKe(e,t){return e===t?!0:e.length!==t.length?!1:e.every((o,n)=>o.name===t[n].name&&o.process===t[n].process&&o.video===t[n].video)}function Uhe(e,t){let o=Array.from(t,BKe);return HKe(e,o)?e:o}import{deviceField as wd}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as AVe,ClockIcon as LVe,CropIcon as Ege,GapIcon as IVe,MediaLayoutStackedIcon as Fge,LineBetweenIcon as FVe,LineSolidIcon as BVe,ListIcon as HVe,NumberedListIcon as Pge,ShadowIcon as DVe,StylesIcon as Cge,TableIcon as _ge,TargetIcon as MVe,WrapIcon as Bge}from"efficient-easel/icons";var og=eP.map(e=>e.shape),WD=e=>e!==Vs&&og.includes(String(e??""))?e:null;function tg(e){return WD(e)??(Am(e)?Vs:"auto")}function hN(e){let t=tg(e);return t==="auto"?"":B0(t)}function Ghe(e,t,o){return eX({desktop:e,phone:zD(t)!==null?t:o,tablet:o})}var DKe={tall:"view-wide:aspect-[3/4]",square:"view-wide:aspect-square",landscape:"view-wide:aspect-[4/3]",screen:"view-wide:aspect-[16/10]",video:"view-wide:aspect-[16/9]",wide:"view-wide:aspect-[2/1]",panorama:"view-wide:aspect-[21/9]",story:"view-wide:aspect-[9/16]",poster:"view-wide:aspect-[2/3]",portrait:"view-wide:aspect-[4/5]",custom:"view-wide:aspect-[var(--shape-ratio)]"},MKe={auto:"max-view-wide:aspect-auto",tall:"max-view-wide:h-auto max-view-wide:aspect-[3/4]",square:"max-view-wide:h-auto max-view-wide:aspect-square",landscape:"max-view-wide:h-auto max-view-wide:aspect-[4/3]",screen:"max-view-wide:h-auto max-view-wide:aspect-[16/10]",video:"max-view-wide:h-auto max-view-wide:aspect-[16/9]",wide:"max-view-wide:h-auto max-view-wide:aspect-[2/1]",panorama:"max-view-wide:h-auto max-view-wide:aspect-[21/9]",story:"max-view-wide:h-auto max-view-wide:aspect-[9/16]",poster:"max-view-wide:h-auto max-view-wide:aspect-[2/3]",portrait:"max-view-wide:h-auto max-view-wide:aspect-[4/5]",custom:"max-view-wide:h-auto max-view-wide:aspect-[var(--shape-ratio-phone)]"};function zKe(e,t){let o=tg(t);return o==="auto"&&WD(t)===null?null:o===Vs?t===e?null:o:o===tg(e)?null:o}var WKe={auto:"view-wide:max-view-desktop:aspect-auto!",tall:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[3/4]!",square:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-square!",landscape:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[4/3]!",screen:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[16/10]!",video:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[16/9]!",wide:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[2/1]!",panorama:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[21/9]!",story:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[9/16]!",poster:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[2/3]!",portrait:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[4/5]!",custom:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[var(--shape-ratio-tablet)]!"};function zD(e){let t=tg(e);return t==="auto"&&WD(e)===null?null:t}function $he(e,t,o){let n=zD(o),r=zKe(e,zD(t)!==null?t:o);if(r===null&&n===null)return hN(e);let a=tg(e);return[r===null?hN(e):a==="auto"?"":DKe[a],r===null?"":MKe[r],n===null?"":WKe[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as Hge,VIEW_KEY_ACCESS as Oc,group as rg,phoneTwinFields as Ac}from"efficient-easel/screen/lib/document/box-fields";var UKe={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},GKe=xv.map(e=>({value:e.value,picture:_C(UKe[e.value])}));function gN(e,t){return wo("Separator",e,GKe,t,{resolve:fj})}import{jsx as $Ke}from"react/jsx-runtime";import{cloneElement as KKe}from"react";import{PaddingXIcon as VKe}from"efficient-easel/icons";import{deviceField as YKe}from"efficient-easel/screen/lib/document/device-fields";function Khe(){let e=le(Dne,$Ke(VKe,{}),lZ,dZ);return YKe("desktop",{...e,render:t=>{let o=e.render({...t,value:bP(t.value),onChange:n=>t.onChange(pZ(n))});return KKe(o,{hint:u(cZ)})}})}import{newNodeId as UD}from"efficient-easel/draw";var Vhe=["First row","Second row","Third row"],jKe="Write the words for this row.",Yhe=e=>({type:"Text",props:{...Ge,id:UD("Text"),tag:"p",text:e}}),qKe=(e,t)=>({type:ce,props:{...ze,id:UD(ce),...t?{startsOpen:!0}:{},rowTitle:[Yhe(e)],content:[{type:"Text",props:{...vt,id:UD("Text"),tag:"p",text:jKe}}]}}),XKe=e=>!Array.isArray(e)||e.length===0;function jhe(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:Vhe.map((r,a)=>qKe(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==ce||!XKe(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(Vhe[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[Yhe(i)]}}});return o?{...e,content:n}:e}import{parseOption as ZKe}from"efficient-shell/format";var z1="rowStyle",JKe=["plain","numbered","chevron"],qhe=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function Xhe(e){return ZKe(JKe,"plain",e)}var bN="flex cursor-pointer list-none items-center gap-6 py-7 [&::-webkit-details-marker]:hidden max-view-wide:gap-4 max-view-wide:py-5",wN="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",xN="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",Zhe="border-t border-line",Jhe="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",Qhe="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as QKe}from"efficient-easel/screen/lib/content/view-tiers";var yN=Dn.Flex,ege={label:"Box",fields:yN,phoneOrder:{prop:QKe("order"),slot:"content"},defaultProps:{direction:"row",justify:"start",align:"stretch",wrap:!0,content:[],share:"equal",blockSpacing:"gap",padV2:!0,sectionPaddingTop:24,sectionPaddingBottom:24}};import{jsx as tge}from"react/jsx-runtime";import{isNode as eVe}from"efficient-easel/data";import{useEasel as tVe}from"efficient-easel/easel";import{PhoneOrderField as oVe}from"efficient-easel/fields";import{slotChildRowName as nVe}from"efficient-easel/draw";import{deviceField as rVe}from"efficient-easel/screen/lib/document/device-fields";function aVe(){try{let e=tVe(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!eVe(a)||typeof t[a.type]?.render!="function"?!1:fr(a.props?.id)!==void 0):[],r=n.map(a=>a.props.id);return{blocks:n,ids:r,labelOf:a=>t[a]?.label??a}}catch{return null}}function iVe({value:e,onChange:t,readOnly:o}){let n=aVe();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return tge(oVe,{stored:"ids",value:e,ids:a,onChange:t,readOnly:o,noun:"block",hint:u("The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order."),itemLabel:s=>nVe(r[s],i,yo,void 0,ine)})}function oge(){return rVe("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>tge(iVe,{value:e,onChange:t,readOnly:o})})}import{jsx as $1}from"react/jsx-runtime";import{SettingsDefaultReset as bVe,SettingsField as wVe}from"efficient-easel/panel";import{Segmented as xVe}from"efficient-shell/ui";import{SwapIcon as yVe}from"efficient-easel/icons";import{describedAs as vVe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as kVe}from"efficient-easel/screen/lib/document/device-fields";var W1="Mirror cards",U1="off",GD=[{value:U1,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],nge={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function Ku(e){return e==="even"||e==="odd"?e:null}function rge(e){return Ku(e)??void 0}function G1(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function ng(e,t,o){return!t||e.direction!=="row"||o||Em("row",e.separator)||e.loop==="scroll"||e.line===!0||as(e)||O4(e.columns)!==""||Ej(e.columnsTablet)!==""?!1:!(rs(e.share)===""&&T0(e.wrap)!=="")}function age(e,t){let o=Ku(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var ige="view-wide:flex-row-reverse",sVe={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},lVe={left:"view-wide:text-right!",right:"view-wide:text-left!"},dVe={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},cVe={start:"view-wide:items-end!",end:"view-wide:items-start!"},pVe={start:"view-wide:max-view-desktop:justify-end!",end:"view-wide:max-view-desktop:justify-start!",center:"view-wide:max-view-desktop:justify-center!",between:"view-wide:max-view-desktop:justify-between!"},vN=(e,t)=>(typeof t=="string"?Ms(e,t):void 0)??"";function $D(e,t,o){return e?[vN(sVe,t),vN(lVe,o)].filter(Boolean).join(" "):""}function sge(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=wj(o,r,void 0).tablet;return[vN(dVe,o),a?pVe[a]:""].filter(Boolean).join(" ")}return t==="column"?vN(cVe,n):""}function KD(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||as(e)?!1:O4(e.columns)===""}function kN(e,t){let o=Ku(e.mirrorCards);return o&&KD(e,t)?{mirror:o}:null}import{isNodeList as fge}from"efficient-easel/data";import{parseOption as lge}from"efficient-shell/format";var mVe=["columns","rows-left","rows-right"],uVe=["half","third"],dge=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],cge=[{value:"half",label:"Half"},{value:"third",label:"One third"}],pge=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function fVe(e){return lge(mVe,"columns",e)}var hVe={"rows-left":"even","rows-right":"odd"},gVe={half:"equal",third:"bigRight"};function SN(e){let t=fVe(e?.arrangement);if(t==="columns")return null;let o=lge(uVe,"half",e?.imageWidth);return{mirror:hVe[t],row:{share:gVe[o],phoneReverse:e?.phoneOrder==="words"}}}var mge={ProcessSteps:{slot:"boxes",hand:SN}},uge=(e,t,o)=>fge(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function Qw(e,t){let o=mC(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===ce&&uge(o,Ce,t)){let s=Zl(e,o.props?.id)?.inCopy===!0;return kN(js(o.props??{},s),s)}let i=Ms(mge,a);if(i&&uge(o,i.slot,t))return i.hand(o.props??{})}let n=AE(e,t),r=n&&typeof n.type=="string"?Ms(mge,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function hge(e){let t=e?.[Ce];return fge(t)&&t.some(o=>o?.type===ce)}var gge="mirrorCardsIdle",VD="mirrorCardsMirrors",bge={[VD]:(e,t)=>{let o=Zl(t.appState,e.props?.id);if(o===void 0)return;let n=js(e.props??{},o.inCopy),r=Qw(t.appState,e.props?.id);if(r){let a=r.row?{...n,direction:"row",share:r.row.share}:n;return r.mirror!==null&&ng(a,!0,Bp(a).desktop)}return ng(n,G1(o),Bp(n).desktop)&&Ku(n.mirrorCards)!==null},[gge]:(e,t)=>{let o=Zl(t.appState,e.props?.id);if(o===void 0)return;let n=js(e.props??{},o.inCopy);return Qw(t.appState,e.props?.id)?!0:ng(n,G1(o),Bp(n).desktop)?!1:!(KD(n,o.inCopy)&&hge(n))}};function SVe(e=!1){return GD.map(t=>({value:t.value,label:u(t.label),title:t.value===U1?void 0:u(nge[t.value]),disabled:e}))}function TVe({value:e,onChange:t,readOnly:o}){let n=Ku(e)??U1;return $1(wVe,{label:u(W1),icon:$1(yVe,{}),action:$1(bVe,{words:$E()?.panel,label:u(W1),changed:n!==U1,detail:u("Off"),onReset:()=>t(void 0)}),children:$1(xVe,{size:"sm",block:!0,label:u(W1),value:n,onChange:r=>t(rge(r)),options:SVe(o===!0)})})}function wge(){return ht(kVe("desktop",{type:"custom",...vVe({},{type:"radio",label:W1,options:GD.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>$1(TVe,{value:e,onChange:t,readOnly:o})}),{not:{context:gge,is:!0}})}import{jsx as EVe}from"react/jsx-runtime";import{FilterIcon as PVe}from"efficient-easel/icons";import{deviceField as CVe}from"efficient-easel/screen/lib/document/device-fields";var vge="showForUnoffered",kge={[vge]:e=>wC().length===0&&e2(e.props?.[Qv])===void 0},_Ve="Show for",RVe="All";function NVe(e,t){if(!e)return;let o=wC().find(r=>r.slug===e);if(o)return{slug:o.slug,name:o.name};let n=e2(t);return n?.slug===e?n:void 0}function Sge(){let e=le(_Ve,EVe(PVe,{}),[{label:RVe,value:""}],"");return ht(CVe("desktop",{...e,render:t=>e.render({...t,value:e2(t.value)?.slug??"",onChange:o=>t.onChange(NVe(o,t.value))})}),{not:{context:vge,is:!0}})}var xge=new WeakMap;function Tge(e,t){let o=e[Qv];if(!o)return e;let n=wC(),r=e2(t?.[Qv]),a=r&&!n.some(p=>p.slug===r.slug)?r:void 0,i=xge.get(o);i||xge.set(o,i=new Map);let s=`${dte()}\0${a?`${a.slug}\0${a.name}`:""}`,l=i.get(s);l||(l={...o,options:[...o.options,...n.map(p=>({label:p.name,value:p.slug})),...a?[{label:a.name,value:a.slug}]:[]]},i.set(s,l));let d=yge.get(e);d||yge.set(e,d=new Map);let c=d.get(s);return c||d.set(s,c={...e,[Qv]:l}),c}var yge=new WeakMap;var Rge=aj,Nge={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},zVe={field:"direction",is:"tabs"},WVe={field:"line",in:[!0,!1]},UVe={field:"anchor",set:!0},YD=["fixed","screen","fill"],GVe={not:{any:[{field:"sectionHeightMode",in:YD},{field:"sectionHeightModeTablet",in:YD},{field:"sectionHeightModePhone",in:YD}]}},$Ve={context:"parent.line",is:!0},ag={not:{field:"direction",is:"accordion"}},Oge={field:"direction",is:"accordion"},Age={any:[ag,{not:{field:z1,in:["numbered","chevron"]}},{field:"columns",in:[...Pj]},{field:"phoneRow",in:[...Cj]}]},Dge="notAccordionRow",KVe={not:{context:Dge,is:!0}},VVe={[Dge]:(e,t)=>t.parent?.props?.direction!=="accordion"},qD={field:"direction",is:"row",default:"row"},ig={not:_q},dg={all:[qD,ig,{not:{field:"separator",in:xv.map(e=>e.value)}},{not:{field:"line",is:!0}}]},YVe={field:"direction",is:"column"},Mge={all:[dg,...["columns",ha("columns")].map(e=>({not:{field:e,in:Array.from({length:kE},(t,o)=>o+vE)}}))]},jVe={all:[ig,{not:{all:[qD,{field:"separator",in:xv.map(e=>e.value)}]}}]},jD={not:{all:[dg,{field:"columns",in:Array.from({length:kE},(e,t)=>t+vE)}]}},qVe="sharedColumnsFits",zge="sharedColumnsMisfit",Wge="sharedColumnsDraws",Uge="sharedColumnsPhoneDraws";function lg(e,t){return js(e.props??{},Zl(t.appState,e.props?.id)?.inCopy!==!1)}var XVe={[qVe]:(e,t)=>AR(lg(e,t)),[zge]:(e,t)=>!AR(lg(e,t)),[Wge]:(e,t)=>Bp(lg(e,t)).desktop,[Uge]:(e,t)=>Bp(lg(e,t)).phone};function Lge(e){return{all:[{not:{context:zge,is:!0}},{any:[n6,{field:e,set:!0}]}]}}var sg={not:{context:Wge,is:!0}},ex={not:{context:Uge,is:!0}},Gge="sharedRowsDraws",ZVe={[Gge]:(e,t)=>LR(lg(e,t))&&Qw(t.appState,e.props?.id)?.row===void 0},K1={not:{context:Gge,is:!0}},JVe={any:[sg,ex]},XD=sj,QVe={not:{context:VD,is:!0}},$ge="rowHanded",eYe={not:{context:$ge,is:!0}},tYe={[$ge]:(e,t)=>{let o=Qw(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},Ige={all:[ag,XD,sg,ex,QVe]},oYe={field:"direction",is:"row"},nYe={field:"align",in:["start","center","end"]},rYe={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function aYe(){let{darken:e,darkenStyle:t}=Jw();return{...Ac("darken",e,Oc),...Ac("darkenStyle",t,Oc)}}var Kge={not:{all:[dg,{field:ha("columns"),in:Array.from({length:kE},(e,t)=>t+vE)}]}};function iYe(){let e=ne(Hge,!1,ir(Bge,{})),t=o=>{let n=N4(o);return n===void 0?void 0:n==="wrap"};return{...gh(),render:o=>e.render({...o,value:t(o.value),follows:t(o.follows)??!1,onChange:n=>o.onChange(n===void 0?void 0:n?"wrap":"nowrap")})}}function sYe(){let e=ne(Hge,!0,ir(Bge,{})),t=o=>{let n=N4(o);return n===void 0?void 0:n==="wrap"};return{...gh(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!_j(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var Vge={hint:Mm},Yge={all:[XD,{any:[YVe,{all:[dg,Kge,{not:{all:[Mge,{field:ha("share"),set:!0}]}}]}]}]},lYe=ht(wd("desktop",ae("Narrows below",ir(Fge,{}),dh.min,dh.max,dh.step,Mm,{kind:"breakpoint"},{clear:Vge,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),Yge);function dYe(e,t){let o=e;return!(ch in o)||t.direction!=="column"?e:{...o,[ch]:lYe}}var jge={fields:He({_gContent:rg("Content"),rowTitle:yN.rowTitle,content:yN.content,_gCardDisplay:rg("Display"),cardDisplay:e_("desktop"),cardDisplayTablet:e_("tablet"),cardDisplayPhone:e_("mobile"),showFor:Sge(),_gLayout:rg("Layout"),direction:YC("Flex"),tabShape:wo("Tab shape",ir(Cge,{}),uN.map(e=>({label:mN[e],value:e,picture:koe[e]})),"tabs",{columns:2,cell:br}),mirrorCards:wge(),[ch]:wd("desktop",ae("Stacks below",ir(Fge,{}),dh.min,dh.max,dh.step,Mm,{kind:"breakpoint"},{clear:Vge,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[Lv]:Khe(),startsOpen:wd("desktop",ne("Starts open",!1,ir(AVe,{}))),[z1]:wd("desktop",wo("Row style",ir(Pge,{}),qhe.map(e=>({...e,picture:e.value==="numbered"?ir(Pge,{}):ir(HVe,{})})),"plain",{columns:2})),label:dn(J("Tab name")),...ri("Flex"),...Ac("justify",PC(),Oc),...Ac("align",CC(),Oc),...(()=>{let e=Ac("wrap",gh(),Oc,{phoneRow:sYe()}),t=Ac("wrap",gh(),Oc,{phoneRow:iYe()});return{wrap:t.wrap,[ha("wrap")]:t[ha("wrap")],[Sr("wrap")]:e[Sr("wrap")]}})(),[Sr("order")]:oge(),...Ac("boxShape",_w("Box shape",ir(Ege,{}),H0(og),"shape","auto"),Oc,{phoneRow:_w("Box shape",ir(Ege,{}),H0(og),"shape","auto",{phoneRest:e=>tg(e)})}),[mE]:wd("desktop",Ste(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:gN(ir(FVe,{size:18}),"none"),[j0]:wd("desktop",wo("Card style",ir(Cge,{}),mJ.map(e=>({...e,picture:Toe[e.value]})),"table",{columns:2,cell:br})),share:wd("desktop",zoe()),[ha("share")]:Goe(),[Sr("share")]:Uoe(),[Fp]:wd("desktop",le(YB,ir(_ge,{}),[...Mde],j2)),[Sr(Fp)]:wd("mobile",le(YB,ir(_ge,{}),[...zde],j2)),...$oe(),...Ac("blockSpacing",Woe(),Oc),line:ne("Line",!1,ir(BVe,{}),"A line across the blocks, with a dot on each."),upcoming:ne("Upcoming",!1,ir(LVe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:le("Join",ir(IVe,{}),FP,IP),_gShadow:rg("Shadow"),...Ac("shadow",ne("Shadow",!1,ir(DVe,{})),Oc),...Ac("fillColor",joe(),Oc),[Na]:$r("Fill content","colour"),[uP]:OVe("fillColor"),_gBackground:rg("Background image"),bgImage:wd("desktop",et("Image","image/*")),bgImagePhone:wd("mobile",et("Image","image/*")),[Jn]:$r("Image content","image",{content:!0}),...aYe(),placement:od("Content position"),_gLink:rg("Link"),link:Gu(Ve("Link to")),[Go]:Nc(),_gJump:rg("Anchor"),jumpHighlight:ne("Highlight when a link jumps here",!1,ir(MVe,{}),"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.")},[[["darken","darkenStyle","placement"],Rge],[[Sr("share")],{all:[Nge,ex]}],[[Fp],Lge(Fp)],[[Sr(Fp)],Lge(Sr(Fp))],[[Sr("wrap")],{all:[Nge,ig,ex,K1]}],[[Sr("order")],{all:[dg,ex,sg]}],[["phoneRow"],ex],[[z1],{all:[Oge,{not:{field:z1,is:"chevron"}}]}],[["tabShape"],zVe],[["rowTitle","startsOpen"],KVe],[["align","blockSpacing",ha("blockSpacing"),Sr("blockSpacing")],ag],[[ha("justify"),Sr("justify")],{all:[ig,Ige,K1]}],[[ha("align"),Sr("align")],{all:[oYe,nYe,Ige]}],[[ha("wrap")],{all:[ig,jD,Kge,sg,ag,K1]}],[[ha("shadow"),Sr("shadow")],XD],[[ha("darken"),Sr("darken"),ha("darkenStyle"),Sr("darkenStyle")],{all:[Rge,rYe]}],[["separator"],qD],[[j0],{field:j0,set:!0}],[["columns"],{any:[dg,Oge]}],[[ha("columns")],dg],[[ch],Yge],[[ha("gap")],{all:[jVe,Age]}],[["gap",Sr("gap")],Age],[["justify"],{all:[ig,JVe,ag,K1]}],[["wrap"],{all:[ig,jD,sg,ag,K1]}],[["share"],{all:[jD,sg,ag]}],[[ha("share")],{all:[Mge,sg]}],[["line"],WVe],[["upcoming"],$Ve],[["jumpHighlight"],UVe],[["boxShape",ha("boxShape"),Sr("boxShape")],GVe],[["direction","share",Sr("order")],eYe],[["join"],BF],[[Lv],BF]]),resolveData:(e,t)=>{let o=e.props,n=o[j0];return t.changed?.[j0]===!0&&uJ(n)?{...e,props:fJ(o,n,ce,Ce)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:jhe(o)}:e},resolveFields:(e,t)=>{let o=Zl(t.appState,e.props?.id)?.inCopy===!0,n=o&&AE(t.appState,e.props?.id)===null;return dYe(mYe(uYe(Tge(fYe(e,{...t,fields:za(t.fields,e,t)}),e.props),lg(e,t),o),n),e.props)},showWhenFacts:{...Ma,...lne,...bge,...tYe,...XVe,...ZVe,...kge,...VVe}},cYe=ht(rne,n6),pYe=["darken","darkenStyle",uE,Jf];function mYe(e,t){if(!t)return e;let o={...e};for(let n of pYe){if(!(n in o))continue;let{showWhen:r,...a}=o[n];o[n]=a}return o}function uYe(e,t,o=!1){let n=e;return Zf in n&&as(t)&&o?{...n,[Zf]:ht(ane,sne)}:!(Zf in n)||as(t)?e:{...n,[Zf]:cYe}}function fYe(...[e,t]){let{fields:o}=t;{if(as(lg(e,t))){let n=Sp({fallback:{top:Ci.desktop,bottom:Ci.desktop,left:Ci.side,right:Ci.side},tablet:!0,siteSide:!0});return c2(o,n)}return e.props.padV2!==!0?c2(o,Sp({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as Xge}from"react/jsx-runtime";import{ColumnsIcon as Zge}from"efficient-easel/icons";import{deviceField as Jge}from"efficient-easel/screen/lib/document/device-fields";var ZD=Dn.Grid,qge={label:"Grid",fields:ZD,defaultProps:{columns:"3",content:[]}};var Qge={fields:{columns:Jge("desktop",ae("Columns",Xge(Zge,{}),1,sX,1,dX)),mobileColumns:Jge("mobile",ae("Columns",Xge(Zge,{}),Z4,lX,1,Z4)),...ri("Grid"),content:ZD.content}};import{jsx as hYe}from"react/jsx-runtime";var e0e={fields:{text:j("Heading",W.heading),level:le("Level",hYe(sa,{noun:"heading"}),[{label:"H1",value:"1"},{label:"H2",value:"2"},{label:"H3",value:"3"},{label:"H4",value:"4"},{label:"H5",value:"5"},{label:"H6",value:"6"}],"2")}};import{jsx as Tr}from"react/jsx-runtime";import{parseOption as gYe}from"efficient-shell/format";var JD="bottom-right",QD=["outline","solid","square","bare"],eM="outline",t0e={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},o0e=!1,TN=["prev","next"],n0e={prev:"Previous slide",next:"Next slide"};function bYe(e){return gYe(QD,eM,e)}function wYe(e){return Fhe(e)??JD}var xYe="flex-row items-center gap-2";function r0e(e){return cN(wYe(e),xYe)}var yYe={outline:"grid h-10 w-10 cursor-pointer place-items-center rounded-full border border-overlay-chrome/60 text-overlay-fg transition-colors hover:border-overlay-chrome hover:bg-overlay-scrim/30",solid:"grid h-10 w-10 cursor-pointer place-items-center rounded-full border border-overlay-chrome bg-overlay-chrome text-overlay-scrim transition-colors hover:bg-overlay-chrome/85",square:"grid h-10 w-10 cursor-pointer place-items-center rounded-md border border-overlay-chrome/60 text-overlay-fg transition-colors hover:border-overlay-chrome hover:bg-overlay-scrim/30",bare:"grid h-10 w-10 cursor-pointer place-items-center text-overlay-fg transition-colors hover:text-overlay-chrome"};function a0e(e){return yYe[bYe(e)]}function i0e(e){return e.shown===!0&&(e.count??0)>1}function tx(e,t,o){if(o<=1)return t;let n=Math.min(Math.max(t,0),o-1);return e==="prev"?(n-1+o)%o:(n+1)%o}import{ClockIcon as vYe,EyeIcon as tM,OpacityIcon as kYe,PhoneIcon as l0e,PlayIcon as SYe,SlideArrowsBareIcon as TYe,SlideArrowsRoundIcon as EYe,SlideArrowsSquareIcon as PYe,SlidePickerBarIcon as CYe,SlidePickerCardsIcon as _Ye,SlidePickerDotsIcon as RYe,SlidePickerNumbersIcon as NYe,SlidePickerSquaresIcon as OYe,SquareIcon as d0e}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as AYe}from"efficient-shell/icons/efficient-looks";import{group as Vu}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as oM,deviceNote as BYe}from"efficient-easel/screen/lib/document/device-fields";var EN=Dn.Hero,s0e={label:"Hero",drawsPictures:!0,fields:EN,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};var LYe=AYe,IYe={cards:Tr(_Ye,{}),dots:Tr(RYe,{}),numbers:Tr(NYe,{}),bar:Tr(CYe,{}),squares:Tr(OYe,{})},FYe={outline:Tr(EYe,{}),solid:Tr(LYe,{}),square:Tr(PYe,{}),bare:Tr(TYe,{})},c0e={fields:{_dDevice:BYe(),_gContent:Vu("Content"),slides:EN.slides,strip:EN.strip,_gStyle:Vu("Style"),alignment:vte(),_gTexture:Vu("Texture"),showTexture:ne("Show texture",Bee,Tr(tM,{})),textureColor:pme,textureOpacity:ae("Texture opacity",Tr(kYe,{}),0,100,1,40,"%"),_gLayout:Vu("Layout"),...u5(),...fme,_gAutoplay:Vu("Auto-slide"),autoplay:ne("Auto-advance slides",!1,Tr(SYe,{})),autoplayInterval:ae("Still time per slide",Tr(vYe,{}),2,15,1,6,"s"),_gPicker:Vu("Slide picker"),showPicker:ne("Show slide picker",Bhe,Tr(tM,{})),pickerShape:wo("Slide picker shape",Tr(d0e,{}),MD.map(e=>({label:mN[e],value:e,picture:IYe[e]})),pN),pickerPlacement:od("Slide picker placement",{fallback:DD}),_gArrows:Vu("Arrows"),showArrows:ne("Show arrows",o0e,Tr(tM,{})),arrowsShape:wo("Arrows shape",Tr(d0e,{}),QD.map(e=>({label:t0e[e],value:e,picture:FYe[e]})),eM),arrowsPlacement:od("Arrows placement",{fallback:JD}),_gPhone:oM("mobile",Vu("On a phone")),phoneUpDown:oM("mobile",Te(Nee,Tr(l0e,{}),Iee(),_ee)),phoneSideways:oM("mobile",Te(Oee,Tr(l0e,{}),Fee(),Ree)),phoneWordsTop:_u.phoneWordsTop,phoneWordsBottom:_u.phoneWordsBottom,phoneBoxGap:_u.phoneBoxGap}};import{jsx as m0e}from"react/jsx-runtime";import{WidthIcon as u0e}from"efficient-easel/icons";import{BOX_NUDGE_ROW as f0e,BOX_WIDTH_ROW as rM,group as aM}from"efficient-easel/screen/lib/document/box-fields";var nM={...Dn.HeroGroup,content:{...Dn.HeroGroup.content,allow:UY}},p0e={label:WY,inline:!0,fields:nM,defaultProps:{placement:Vq,nudgeX:0,nudgeY:0,content:[]}};var h0e={fields:He({_gContent:aM("Content"),name:dn(hb(wr(J("Box name",W.boxName)))),content:nM.content,_gLayout:aM("Layout"),placement:od("Placement",{pointsFor:Aoe}),width:ae("Width",m0e(u0e,{}),V4,Y4,5,Yq,rM),...nd(rM,"width"),direction:YC("HeroGroup"),...ri("HeroGroup"),justify:PC(),align:CC(),wrap:gh(),_gNudge:aM("Nudge"),...kte({keys:{x:"nudgeX",y:"nudgeY"},min:-K4,max:K4,label:null,length:f0e}),...nd(f0e,"nudgeX"),...Sp({tablet:!0,siteSide:!0})},[[["placement"],{context:"heroGroupDepth",is:0,default:0}]]),resolveFields:(e,{fields:t,appState:o})=>{let n=typeof e.props.id=="string"?e.props.id:"";if(QE(o?.data,n)===0)return t;let r={...t};return r.width=ae("Width",m0e(u0e,{}),V4,Y4,5,jq,rM),r}};import{jsx as b0e}from"react/jsx-runtime";import{MediaIcon as DYe,OpacityIcon as MYe}from"efficient-easel/icons";import{group as V1}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as zYe,deviceNote as WYe}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as HYe}from"efficient-shell/format";var iM=Dn.HeroSingle,g0e={label:"Hero Single",drawsPictures:!0,fields:iM,defaultProps:{mediaType:Ra.HeroSingle,[_a.image]:HYe,tintColor:ls,tintOpacity:0,overlay:100,overlayColor:ls,overlayPosition:uh}};var w0e=nb("video",Ra.HeroSingle),UYe=nb("image",Ra.HeroSingle),x0e=[...g5,"tintColor","tintOpacity"],y0e={fields:rC({_dDevice:WYe(),boxNotice:x5("HeroSingle"),boxes:iM.boxes,_gStyle:V1("Style"),overlay:ae("Overlay",b0e(MYe,{}),0,100,5,100,"%"),overlayColor:t8.overlayColor,overlayPosition:t8.overlayPosition,_gLayout:V1("Layout"),...u5({tabletNumber:!1}),_gPhone:zYe("mobile",V1("On a phone")),phoneWordsTop:_u.phoneWordsTop,phoneWordsBottom:_u.phoneWordsBottom,phoneBoxGap:_u.phoneBoxGap,_gMedia:V1("Media"),mediaType:Te("Type",b0e(DYe,{}),JC,Ra.HeroSingle),mediaLayout:Vh.mediaLayout,mediaLayoutPhone:Vh.mediaLayoutPhone,...f5,videoSource:Cu.videoSource,mediaVideo:et(Vv,"video/*",Yv),youtubeUrl:Cu.youtubeUrl,videoPlayback:Cu.videoPlayback,poster:et("Video poster","image/*","Upload a poster still"),_gTint:V1("Image tint"),tintColor:u1(),tintOpacity:m1(),...f1},{parts:{media:["mediaType",...h5,"videoSource","mediaVideo","youtubeUrl","videoPlayback","poster"],image:x0e,image2:Rw},onlyFor:{image:[...x0e,"_gTint",...Rw],video:["videoSource","videoPlayback","poster"]},rules:{mediaVideo:{all:[w0e,{field:"videoSource",is:"upload",default:tl}]},youtubeUrl:{all:[w0e,{field:"videoSource",is:"youtube",default:tl}]},...b5(UYe)},fallback:Ra.HeroSingle})};import{jsx as Y1}from"react/jsx-runtime";import{BlockVideoIcon as $Ye,ClockIcon as KYe,ImageIcon as VYe,MediaIcon as YYe,PlayIcon as jYe}from"efficient-easel/icons";import{group as PN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as ox}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as GYe}from"efficient-shell/format";var sM=Dn.HeroSlide,v0e={label:"Hero Slide",fields:sM,defaultProps:{mediaType:Ra.HeroSlide,videoSpeed:100,[_a.image]:GYe,tintColor:ls,overlay:0}};var Yu=nb("video",Ra.HeroSlide),qYe=nb("image",Ra.HeroSlide),k0e=[...g5,"tintColor","overlay"],S0e={fields:rC({_gContent:PN("Content"),name:dn(hb(J("Slide name",W.slideName))),process:dn(U("Reel label","Label")),groupNotice:x5("HeroSlide"),groups:sM.groups,_gMedia:PN("Media"),mediaType:Te("Type",Y1(YYe,{}),JC,Ra.HeroSlide),mediaLayout:Vh.mediaLayout,mediaLayoutPhone:Vh.mediaLayoutPhone,videoSource:Cu.videoSource,mediaVideo:ox("desktop",et(Vv,"video/*",Yv,{frame:"videoFrame"})),mediaVideoPhone:ox("mobile",et(Vv,"video/*",Yv,{frame:"videoFramePhone"})),videoFramePhone:Ep(),mediaVideoAv1:ox("desktop",et(SF,"video/mp4",TF)),mediaVideoAv1Phone:ox("mobile",et(SF,"video/mp4",TF)),youtubeUrl:Cu.youtubeUrl,videoPlayback:Cu.videoPlayback,videoSpeed:ae("Playback speed",Y1(jYe,{}),25,100,5,100,"%"),loadingShows:qoe("Show while loading",Y1(KYe,{}),{frame:Y1($Ye,{}),image:Y1(VYe,{})}),videoFrame:Ep(),...f5,poster:ox("desktop",et("Image","image/*","Choose an image")),posterPhone:ox("mobile",et("Image","image/*","Choose an image")),_gTint:PN("Image tint"),tintColor:u1(),overlay:m1(),...f1,_gOverlay:PN("Overlay"),overlayColor:o8.overlayColor,overlayPosition:o8.overlayPosition},{parts:{media:["mediaType",...h5,"videoSource","mediaVideo","mediaVideoPhone","videoFramePhone","mediaVideoAv1","mediaVideoAv1Phone","youtubeUrl","videoPlayback","videoSpeed","loadingShows","videoFrame","poster","posterPhone"],image:k0e,image2:Rw},onlyFor:{image:[...k0e,"_gTint",...Rw],video:["videoSource","videoPlayback","loadingShows","videoFrame"]},fallback:Ra.HeroSlide,rules:{mediaVideo:{all:[Yu,{field:"videoSource",is:"upload",default:tl}]},mediaVideoPhone:{all:[Yu,{field:"videoSource",is:"upload",default:tl}]},mediaVideoAv1:{all:[Yu,{field:"videoSource",is:"upload",default:tl}]},mediaVideoAv1Phone:{all:[Yu,{field:"videoSource",is:"upload",default:tl}]},youtubeUrl:{all:[Yu,{field:"videoSource",is:"youtube",default:tl}]},videoSpeed:{all:[Yu,{field:"videoSource",is:"upload",default:tl},{field:"videoPlayback",is:"background",default:iC}]},...b5(qYe),poster:{all:[Yu,PF]},posterPhone:{all:[Yu,PF]}}})};import{jsx as lM}from"react/jsx-runtime";import{phoneKey as XYe}from"efficient-easel/draw";import{CropIcon as T0e,ImageIcon as ZYe}from"efficient-easel/icons";import{group as dM,phoneTwinFields as JYe}from"efficient-easel/screen/lib/document/box-fields";var E0e={fields:{_gImage:dM("Image"),src:et("Image","image/*",void 0,{focus:"focal",focusWhen:(e,t)=>Nv(t,e.fit,e.aspect,e[XYe("aspect")])}),alt:dn(J("Alt text")),rowField:$r("Shows","image"),[Go]:Nc(),...JYe("aspect",_w("Aspect ratio",lM(T0e,{}),H0(og),"image","16/9",{more:[eme(OX)]}),void 0,{phoneRow:_w("Aspect ratio",lM(T0e,{}),H0(og),"image","16/9",{phoneRest:MX})}),fit:le(lP,lM(ZYe,{}),_X(),"cover"),focal:Ep(),focalTablet:Ep(),focalPhone:Ep(),href:Gu(Ve("Link")),_gStyle:dM("Style"),grayscale:Nw(),...Jw(),_gShape:dM("Shape"),corners:ene(),...Boe(Rte,"corners"),cornerSides:Hoe()},resolveFields:(e,t)=>nne(za(t.fields,e,t),e,t),showWhenFacts:Ma};import{jsx as QYe}from"react/jsx-runtime";import{group as P0e}from"efficient-easel/screen/lib/document/box-fields";var C0e={fields:{_gContent:P0e("Content"),eyebrow:U("Chip label","Integrations"),title:j("Heading",`Plays well with
13
+ `:""}`}),d]})]})}let g=x=>{!m||!Hme(e,!1)||x.target===x.currentTarget&&p()},h=e.height==="full",b=e.fullWidth||h,w=qze(e),y=x8("div",{ref:c,tabIndex:-1,"data-popup-panel":"",className:"relative flex flex-col bg-bg text-fg outline-none",style:{width:e.fullWidth?"100%":`min(${e.width}px, 100%)`,height:h?"100%":void 0,maxHeight:e.fullWidth&&!h||w.place==="outside"?`calc(100% - ${y8}px)`:"100%",borderRadius:b?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[w.place!=="none"?jh("button",{type:"button","aria-label":"Close",onClick:r?void 0:p,"data-popup-close":w.place,"data-popup-close-until":w.until,className:"absolute z-[5] flex h-[38px] w-[38px] items-center justify-center border border-line bg-bg font-mono text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-fg",style:w.place==="outside"?{top:-jze,right:0}:{top:12,right:12},children:"\xD7"}):null,w.until?jh("style",{children:`@container popup-frame (min-width: ${w.until+1}px){[data-popup-close-until="${w.until}"]{display:none}}`}):null,jh("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return jh("div",{role:a||r?"dialog":"region","aria-modal":m?!0:void 0,"aria-label":s,"data-popup-frame":r?"inline":"live",onClick:g,className:r?"relative flex min-h-[100vh] w-full":"fixed inset-0 z-[90] flex",style:{...Yze[e.placement],background:Bme(e.tintColor,e.tintOpacity),padding:b?0:w.place==="outside"&&e.placement.startsWith("top")?`${24+y8}px 24px 24px`:24,...w.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:y})}var Zze=25.4,w1=400,E5=152,Jze=58,Dme=E5*Math.cos(Jze*Math.PI/180),Qze=14,eWe=w1/2,tWe={sectionWidth:225,aspectRatio:60,rimDiameter:17};function zme(e){let t=lc(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:tWe}function Wme(e){let t=e.rimDiameter*Zze/2,o=t+e.sectionWidth*e.aspectRatio/100,n=E5*(e.sectionWidth/o),r=t/o;return{cy:eWe,rx:Dme,ry:E5,cxf:w1/2-n/2-Qze,dx:n,rimRx:Dme*r,rimRy:E5*r}}var to=e=>e.toFixed(1);function P5(e,t,o,n=!1){let r=e.cxf+t*e.dx,[a,i]=n?[e.cy+e.ry,e.cy-e.ry]:[e.cy-e.ry,e.cy+e.ry];return`M${to(r)} ${to(a)} A${to(e.rx)} ${to(e.ry)} 0 0 ${o} ${to(r)} ${to(i)}`}function S8(e,t,o){let n=e.cxf+t*e.dx,r=e.cxf+o*e.dx,a=e.cy-e.ry,i=e.cy+e.ry;return`M${to(n)} ${to(a)} L${to(r)} ${to(a)} A${to(e.rx)} ${to(e.ry)} 0 0 1 ${to(r)} ${to(i)} L${to(n)} ${to(i)} A${to(e.rx)} ${to(e.ry)} 0 0 0 ${to(n)} ${to(a)} Z`}function T5(e,t,o){let n=o*Math.PI;return[e.cxf+t*e.dx+e.rx*Math.sin(n),e.cy-e.ry*Math.cos(n)]}function Ume(e,t,o,n,r){let[a,i]=T5(e,t,n),[s,l]=T5(e,t,r),[d,c]=T5(e,o,r),[p,m]=T5(e,o,n);return`M${to(a)} ${to(i)} A${to(e.rx)} ${to(e.ry)} 0 0 1 ${to(s)} ${to(l)} L${to(d)} ${to(c)} A${to(e.rx)} ${to(e.ry)} 0 0 0 ${to(p)} ${to(m)} L${to(a)} ${to(i)} Z`}var Mme=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],oWe={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}}]},nWe=[["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 Gme(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return Mme;for(let[o,n]of nWe)if(t.includes(` ${o} `))return oWe[n];return Mme}var C5="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as rWe}from"react";function Da(e,t=/:/g){let o=rWe().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as x1,jsx as jt,jsxs as Sc}from"react/jsx-runtime";var bs={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},aWe=[.8,.52,.24],$me=.4,Kme=.88,Vme=.3,Yme=5,jme=.3,qme=.84,iWe=7,uo=e=>Math.round(e*10)/10;function T8({size:e,type:t,className:o}){let n=Da("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=Wme(zme(e)),i=S8(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Sc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${w1} ${w1}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[jt("title",{children:s}),Sc("defs",{children:[jt(lWe,{id:r}),jt("clipPath",{id:r.crown,children:jt("path",{d:i})})]}),jt("ellipse",{cx:uo(a.cxf+a.dx/2),cy:uo(a.cy+a.ry-4),rx:uo(a.dx*1.5),ry:16,fill:`url(#${r.shadow})`}),jt(dWe,{g:a,id:r}),jt(cWe,{g:a,id:r}),jt("path",{d:i,fill:`url(#${r.tread})`}),jt("g",{clipPath:`url(#${r.crown})`,children:Gme(t).map(l=>jt(sWe,{g:a,column:l},l.f[0]))}),jt("path",{d:P5(a,0,0,!0),stroke:"currentColor",strokeOpacity:bs.shoulder,strokeWidth:1.2}),jt("path",{d:P5(a,1,1),stroke:"currentColor",strokeOpacity:bs.silhouette,strokeWidth:1.4})]})}function sWe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Sc(x1,{children:[jt("path",{d:S8(e,o,n),fill:"currentColor",fillOpacity:bs.rib}),jt("path",{d:P5(e,o,1),stroke:"currentColor",strokeOpacity:bs.grooveWall,strokeWidth:1})]});let{count:r,gap:a,phase:i=0}=t.blocks,s=1/r,l=[];for(let d=-1;d<=r;d+=1){let c=Math.max((d+i+a/2)*s,0),p=Math.min((d+i+1-a/2)*s,1);p-c>s*.15&&l.push([c,p])}return jt(x1,{children:l.map(([d,c])=>jt("path",{d:Ume(e,o,n,d,c),fill:"currentColor",fillOpacity:bs.rib,stroke:"currentColor",strokeOpacity:bs.grooveWall,strokeWidth:1},d))})}function lWe({id:e}){return Sc(x1,{children:[Sc("linearGradient",{id:e.tread,x1:"0",y1:"0",x2:"1",y2:"0",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.07}),jt("stop",{offset:"0.14",stopColor:"currentColor",stopOpacity:.24}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.18}),jt("stop",{offset:"0.84",stopColor:"currentColor",stopOpacity:.1}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.05})]}),Sc("linearGradient",{id:e.wall,x1:"0.15",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.28}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.17}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.08})]}),Sc("linearGradient",{id:e.rim,x1:"0.1",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.46}),jt("stop",{offset:"0.5",stopColor:"currentColor",stopOpacity:.26}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.12})]}),Sc("radialGradient",{id:e.shadow,children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function dWe({g:e,id:t}){let o=e.rimRy/e.ry,n=a=>o+(1-o)*a,r=Math.max(6,(e.ry-e.rimRy)*.3);return Sc(x1,{children:[jt("ellipse",{cx:uo(e.cxf),cy:uo(e.cy),rx:uo(e.rx),ry:uo(e.ry),fill:`url(#${t.wall})`}),aWe.map((a,i)=>{let s=n(a);return jt("ellipse",{cx:uo(e.cxf),cy:uo(e.cy),rx:uo(e.rx*s),ry:uo(e.ry*s),stroke:"currentColor",strokeOpacity:bs.relief[i],strokeWidth:1},a)}),jt("ellipse",{cx:uo(e.cxf),cy:uo(e.cy),rx:uo(e.rx*n($me)),ry:uo(e.ry*n($me)),stroke:"currentColor",strokeOpacity:bs.lettering,strokeWidth:uo(r)})]})}function cWe({g:e,id:t}){let o=Array.from({length:Yme},(n,r)=>{let a=(r*(360/Yme)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*jme*Math.cos(a),y1:e.cy+e.rimRy*jme*Math.sin(a),x2:e.cxf+e.rimRx*qme*Math.cos(a),y2:e.cy+e.rimRy*qme*Math.sin(a)}});return Sc(x1,{children:[jt("ellipse",{cx:uo(e.cxf),cy:uo(e.cy),rx:uo(e.rimRx),ry:uo(e.rimRy),fill:`url(#${t.rim})`}),jt("ellipse",{cx:uo(e.cxf),cy:uo(e.cy),rx:uo(e.rimRx*Kme),ry:uo(e.rimRy*Kme),fill:"currentColor",fillOpacity:bs.dishFill,stroke:"currentColor",strokeOpacity:bs.dishEdge,strokeWidth:1}),o.map((n,r)=>jt("line",{x1:uo(n.x1),y1:uo(n.y1),x2:uo(n.x2),y2:uo(n.y2),stroke:"currentColor",strokeOpacity:bs.spoke,strokeWidth:iWe,strokeLinecap:"round"},r)),jt("ellipse",{cx:uo(e.cxf),cy:uo(e.cy),rx:uo(e.rimRx*Vme),ry:uo(e.rimRy*Vme),fill:"currentColor",fillOpacity:bs.hubFill,stroke:"currentColor",strokeOpacity:bs.hubEdge,strokeWidth:1})]})}import{jsx as E8}from"react/jsx-runtime";function Vp({image:e,size:t,type:o,sizes:n,priority:r=!1,className:a="aspect-square",showBackground:i=!0}){return E8("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:E8(ao,{label:t||"Tyre",src:ed(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:E8(T8,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as y1}from"react/jsx-runtime";function pWe(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function P8({line:e,catalog:t,tyre:o}){let n=t.find(c=>c.slug===e.slug),r=e.config.find(c=>c.gold)?.label,a=n?.finishes.find(c=>c.name===r&&c.src)??n?.finishes.find(c=>c.src),i=n?.spokes??5,s=n?.mesh??!1,d=(n?.finishes.find(c=>c.name===r)??n?.finishes[0])?.color??cie;return y1("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:k_(e)?y1(Vp,{image:o?.coverImage,size:e.size,type:pWe(o),sizes:"96px",className:"h-full w-full"}):a?.src?y1(Xs,{src:a.src,alt:`${n?.name??e.slug} \u2014 ${a.name}`,width:120,height:120,sizes:"96px",className:"relative z-[2] block w-[88%] object-contain",style:{filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"}}):n||t.length===0?y1("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:y1(Th,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as C8,jsxs as uWe}from"react/jsx-runtime";var Xme={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function Zme(e,t){return Math.min(v6,Math.max(1,e+t))}var Jme="disabled:cursor-not-allowed disabled:opacity-40",mWe={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${Xme.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${Jme}`,value:`w-11 text-center font-mono ${Xme.labelSmall} font-bold tracking-[0.1em] text-fg`},small:{frame:"flex items-center border border-line",button:`h-[30px] w-[30px] cursor-pointer font-mono text-fg-dim transition-colors enabled:hover:text-accent ${Jme}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function v1({value:e,onChange:t,size:o}){let n=mWe[o];return uWe("div",{className:n.frame,children:[C8("button",{type:"button",onClick:()=>t(Zme(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),C8("span",{className:n.value,children:e}),C8("button",{type:"button",onClick:()=>t(Zme(e,1)),disabled:e>=v6,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as Tc,jsx as Ke,jsxs as oo}from"react/jsx-runtime";function Qme({content:e,closeRef:t}){let{close:o,items:n}=Tn(),r=t;return oo("header",{className:"flex flex-shrink-0 flex-col gap-4 border-b border-line px-8 pb-6 pt-8 max-[640px]:px-6 max-[640px]:pt-6 max-[640px]:pb-5",children:[oo("div",{className:"flex items-center justify-between",children:[oo("span",{className:"flex items-center gap-3 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?Ke("span",{className:"border px-2 py-1 text-[10px]",style:{background:"color-mix(in oklab, var(--accent) 12%, transparent)",borderColor:"color-mix(in oklab, var(--accent) 50%, transparent)"},children:e.kickerBadge}):null,(e.kickerBadge?"\xB7 ":"")+e.kickerText]}),Ke("button",{ref:r,type:"button",onClick:o,"aria-label":"Close cart",className:"flex h-8 w-8 items-center justify-center border border-line text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u2715"})]}),oo("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",Ke("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),Ke("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:Zte(e,n.length)})]})}function eue({content:e}){let{totals:t}=Tn(),{activeCountry:o}=Ot(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return Ke(Tc,{children:oo("div",{className:`grid flex-shrink-0 ${fWe[r-1]} gap-px border-b border-line bg-line`,children:[Ke(_8,{label:"Items",value:oo(Tc,{children:[Ke("em",{className:"font-serif font-normal italic text-accent",children:t.sets})," set",t.sets===1?"":"s"," \xB7 ",t.units," item",t.units===1?"":"s"]})}),e.leadTimeValue?Ke(_8,{label:"Lead time",value:e.leadTimeValue}):null,n?Ke(_8,{label:"Ships to",value:n}):null]})})}function tue({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=Tn();return Ke(Tc,{children:o.length===0?Ke(xWe,{content:e}):o.map(a=>Ke(hWe,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function oue(){let{items:e,totals:t,bundles:o}=Tn(),{formatMoney:n}=Ot(),r=new Set(e.flatMap(s=>(s.components??[]).map(l=>l.partNumber))),a=new Set(t.appliedBundles.map(s=>s.slug)),i=o.filter(s=>!a.has(s.slug)).filter(s=>s.components.some(l=>r.has(l.partNumber))).slice(0,2);return Ke(Tc,{children:i.length>0&&oo("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",style:{background:"color-mix(in oklab, var(--site-surface) 60%, transparent)"},children:[oo("div",{className:"mb-4 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[Ke("span",{children:"You may also need"}),Ke("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),Ke("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:i.map(s=>Ke(gWe,{href:`/bundles/${s.slug}`,title:s.name,sub:bWe(s,t.currency,n)},s.slug))})]})})}function nue(){return Ke(Tc,{children:Ke("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:Ke(uie,{})})})}function rue({content:e}){return Ke(Tc,{children:e.promises.length>0&&Ke("div",{className:"flex flex-wrap justify-center gap-5 border-b border-line px-8 pt-6 pb-8 font-mono text-[9px] uppercase tracking-[0.24em] text-fg-dim max-[640px]:px-6",children:e.promises.map(t=>Ke(wWe,{children:t},t))})})}function aue(){let{totals:e,coupon:t}=Tn(),{formatMoney:o}=Ot();return Ke(Tc,{children:oo("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[Ke(Lu,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>Ke(Lu,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:oo("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),e.discount>0&&t?.valid&&Ke(Lu,{label:`Coupon \xB7 ${t.code}`,value:oo("span",{style:{color:"var(--green)"},children:["\u2212 ",o(e.discount,e.currency)]})}),t?.deferred&&Ke(Lu,{label:`Coupon \xB7 ${t.code}`,value:vae}),t?.valid&&t.effects?.gift&&Ke(Lu,{label:`Free gift \xB7 ${t.effects.gift.partNumber}${t.effects.gift.quantity>1?` \xD7${t.effects.gift.quantity}`:""}`,value:Ke("span",{style:{color:"var(--green)"},children:Sh})}),Ke(Lu,{label:"Shipping",value:e.shippingStatus==="free"?Ke("span",{style:{color:"var(--green)"},children:Sh}):sie(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?Ke(Lu,{label:e.tax.inclusive?`${e.tax.name} included \xB7 ${e.tax.rate}%`:e.tax.name,value:o(e.tax.amount,e.currency)}):e.tax.name?Ke(Lu,{label:e.tax.name,value:iie}):null),oo("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[oo("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",Ke("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),Ke("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:e.repricing?eie:o(e.grand,e.currency)})]})]})})}function iue(){let{items:e,close:t}=Tn();return Ke(Tc,{children:oo("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[oo(Le,{href:"/checkout",onClick:t,"aria-disabled":e.length===0,className:["group flex items-center justify-between border px-5 py-5 font-mono text-[12px] uppercase tracking-[0.3em] transition-colors",e.length===0?"pointer-events-none cursor-not-allowed border-line bg-surface text-fg-dim":"border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg"].join(" "),children:["Begin checkout",Ke("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),Ke("div",{className:"flex items-center justify-between px-1 py-2 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:Ke(Le,{href:"/wheels",onClick:t,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})})}var fWe=["grid-cols-1","grid-cols-2","grid-cols-3"];function _8({label:e,value:t}){return oo("div",{className:"flex flex-col gap-1 bg-bg px-4 py-4",children:[Ke("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),Ke("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function hWe({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=Tn(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=Ot();return oo(Tc,{children:[oo("article",{className:"grid grid-cols-[96px_1fr] gap-5 border-b border-line px-8 py-6 transition-colors hover:bg-[color-mix(in_oklab,var(--site-surface)_60%,transparent)] max-[640px]:grid-cols-[78px_1fr] max-[640px]:px-6 max-[640px]:py-5",children:[Ke(P8,{line:e,catalog:r,tyre:t}),oo("div",{className:"flex min-w-0 flex-col gap-2",children:[oo("div",{className:"flex items-start justify-between gap-3",children:[oo("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:["N\xB0 ",e.positionNo," \xB7 ",e.process==="FusionForge\xAE"?oo(Tc,{children:["FusionForge",Ke(HP,{})]}):e.process]}),Ke("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:T6(e,s)===null?ru:l(T6(e,s),s)})]}),oo("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,Ke("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&oo("div",{className:"mt-1 flex flex-wrap gap-2",children:[e.config.map(d=>Ke("span",{className:["border px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em]",d.gold?"border-[color-mix(in_oklab,var(--accent)_45%,var(--site-line))] text-accent":"border-line text-fg-dim"].join(" "),children:d.label},d.label)),i>0&&oo("span",{className:"border border-accent bg-accent px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em] text-bg",children:[i,"\xD7 free"]})]}),oo("div",{className:"mt-3 flex items-center justify-between gap-3",children:[Ke(v1,{value:e.qty,onChange:n,size:"small"}),oo("div",{className:"flex gap-4 font-mono text-[10px] uppercase tracking-[0.22em]",children:[Ke(Le,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),Ke("button",{type:"button",onClick:o,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&oo("div",{className:"mx-8 -mt-px flex items-start gap-3 border-t-0 px-4 py-4 font-display text-[13px] leading-[1.45] text-fg max-[640px]:mx-6",style:{background:"color-mix(in oklab, var(--accent) 8%, transparent)",border:"1px solid color-mix(in oklab, var(--accent) 35%, var(--site-line))",borderTop:"0"},children:[Ke("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),oo("span",{children:["Verified for your ",Ke("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function gWe({title:e,sub:t,href:o}){return oo(Le,{href:o,className:"flex items-center justify-between border border-line bg-bg px-4 py-3 text-left transition-colors hover:border-accent",children:[oo("span",{className:"flex min-w-0 flex-col gap-1",children:[Ke("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),Ke("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),Ke("span",{className:"ml-2 flex h-6 w-6 flex-shrink-0 items-center justify-center font-mono text-[13px] text-accent",style:{borderColor:"color-mix(in oklab, var(--accent) 45%, var(--site-line))",borderWidth:1,borderStyle:"solid"},children:"+"})]})}function bWe(e,t,o){let n=e.savings[t];if(n===void 0)return"Buy together";let r=o(n,t);return e.savingIsFrom?`Save from ${r}`:`Save ${r}`}function wWe({children:e}){return Ke("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function Lu({label:e,value:t}){return oo("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[Ke("span",{children:e}),Ke("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function xWe({content:e}){return oo("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[Ke("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),Ke("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),oo(Le,{href:"/wheels",className:"mt-3 inline-flex items-center gap-3 border border-line px-5 py-3 font-mono text-[11px] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:["Browse the catalog ",Ke("span",{className:"text-accent",children:"\u2192"})]})]})}import{jsx as Iu,jsxs as sue}from"react/jsx-runtime";var kWe=Qm(void 0);function k1({content:e=BC,look:t=kWe}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=Tn(),s=vWe(null),l=Fme(a.filter(k_).map(d=>d.slug));return yWe(()=>{i(t.autoOpen)},[t.autoOpen,i]),sue(zi,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:"Your cart",children:[Iu(Qme,{content:e,closeRef:s}),Iu(eue,{content:e}),sue("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[Iu(tue,{content:e,tyres:l}),Iu(oue,{}),Iu(nue,{}),Iu(rue,{content:e})]}),Iu(aue,{}),Iu(iue,{})]})}import SWe from"efficient-easel/screen/components/UiIcon";import{Fragment as EWe,jsx as qh,jsxs as _5}from"react/jsx-runtime";var TWe=nw(()=>import("./chunks/EditorPreviewCheckout-WP23XRYO.js"),{ssr:!1});function R8(){let{chromePlaceholder:e,themeFromDocument:t}=zn(),{surface:o}=_ne();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?_5(EWe,{children:[qh(TWe,{}),qh(lue,{surface:o})]}):qh(iu,{children:_5(Wb,{preview:!0,children:[qh(k1,{}),qh(lue,{surface:o})]})})}function lue({surface:e}){let{label:t,href:o}=$pe(e);return _5("div",{className:"rounded-full py-1 pr-2 pl-3",style:{position:"fixed",bottom:14,left:"50%",transform:"translateX(-50%)",zIndex:2147483e3,display:"flex",alignItems:"center",gap:8,maxWidth:"calc(100% - 24px)",fontSize:12,fontWeight:600,fontFamily:"system-ui, sans-serif",color:"#334155",background:"rgba(255,255,255,0.94)",border:"1px solid rgba(15,23,42,0.12)",boxShadow:"0 6px 24px rgba(15,23,42,0.18)",pointerEvents:"none"},children:[qh("span",{style:{whiteSpace:"nowrap"},children:u("{name} \xB7 preview only",{name:u(t)})}),_5("a",{className:"rounded-(--radius-control) px-3 py-1",href:o,target:"_blank",rel:"noopener noreferrer",style:{pointerEvents:"auto",flex:"none",display:"inline-flex",alignItems:"center",gap:5,color:"#fff",background:"#2563eb",textDecoration:"none"},children:[u("Open live"),qh(SWe,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as PWe,CursorClickIcon as CWe,EyeIcon as _We,FullWidthIcon as RWe,HeightIcon as NWe,OpacityIcon as pue,PlacementIcon as OWe,WidthIcon as AWe}from"efficient-easel/icons";import{group as Aw}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as LWe}from"efficient-easel/screen/lib/document/device-fields";import{jsx as Yp}from"react/jsx-runtime";var IWe={label:"Inside",value:"inside"},FWe={label:"None",value:"none"};function N8(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,LWe("desktop",o)]))}function due(e,t){return{_gDesign:Aw("Color"),tintColor:ds("Tint color",e),tintOpacity:ae("Tint opacity",Yp(pue,{}),n2.min,n2.max,5,t,"%")}}function cue(e,t){return{_gBehavior:Aw("Behavior"),outsideClick:ne("Outside click",e,Yp(CWe,{})),...t}}var BWe=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function O8(e){return ae("Width",Yp(AWe,{}),qF.min,qF.max,4,e,"px")}function mue(e){if(e===Jm){let o=Qm(void 0);return N8({_gSize:Aw("Width"),width:O8(o.width),_gPosition:Aw("Placement"),placement:le("Placement",Yp(OWe,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...due(o.tintColor,o.tintOpacity),...cue(o.outsideClick,{autoOpen:ne("Auto open",o.autoOpen,Yp(_We,{}))})})}let t=Zm;return He(N8({_gSize:Aw("Width"),width:O8(t.width),height:le("Height",Yp(NWe,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:Aw("Placement"),placement:od("Placement",{fallback:t.placement}),fullWidth:ne("Full width",t.fullWidth,Yp(RWe,{})),...due(t.tintColor,t.tintOpacity),...cue(t.outsideClick,{closeButton:le("Close button",Yp(PWe,{}),[IWe,{label:"Outside",value:"outside"},FWe],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],BWe])}function uue(e,t){return N8({menuPanelWidth:O8(e),menuPanelTintColor:ds("Tint color",Zm.tintColor),menuPanelTintOpacity:ae("Tint opacity",Yp(pue,{}),n2.min,n2.max,5,t,"%")})}import{PictureTiles as HWe}from"efficient-shell/ui";import{SettingsField as DWe}from"efficient-easel/panel";import{GridIcon as MWe}from"efficient-easel/icons";import{jsx as Xh}from"react/jsx-runtime";function zWe({layout:e}){return Xh("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?Xh("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):Xh("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var fue={type:"custom",render:({value:e,onChange:t})=>{let o=HC({layout:e}).layout,n=XF.find(r=>r.value===o);return Xh(DWe,{label:u(ZF),icon:Xh(MWe,{}),value:n?u(n.label):void 0,children:Xh(HWe,{className:"sf-gallery-layouts",label:u(ZF),value:o,onChange:t,options:XF.map(r=>({value:r.value,label:u(r.label),picture:Xh(zWe,{layout:r.value})}))})})}};import{CategoryIcon as vSt,CheckIcon as kSt,ClockIcon as OV,ColumnsIcon as SSt,DirectionIcon as TSt,EyeIcon as ESt,ListIcon as PSt,PageIcon as CSt,PlacementIcon as _St,ScrollPointIcon as RSt,TabsIcon as NSt,TriggerIcon as OSt}from"efficient-easel/icons";import{deviceField as q4e}from"efficient-easel/screen/lib/document/device-fields";import{group as $l,phoneTwinFields as ASt}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as WWe}from"efficient-easel/screen/lib/document/box-fields";function Lw(e){let t=WWe(e);return{...t,render:o=>t.render({...o,value:Tm(o.value)??o.value})}}import{useContext as GWe,useEffect as gue,useRef as N5,useState as O5}from"react";import{Button as A5}from"efficient-shell/ui";import{ScreenDocumentContext as $We}from"efficient-easel/screen/components/ScreenDocumentContext";var S1=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},R5=null,A8=null,L8=null;function UWe(){R5=null,A8=null,L8=null}function hue(e=!1){let t=la(),o=Sn();return(e||!R5||A8===null&&t!==null||L8!==o)&&(A8=t,L8=o,R5=(t?Ne.listForms(t,{siteId:o}):Promise.reject(new S1)).catch(n=>{throw UWe(),n instanceof S1?n:new S1(n)})),R5}import{useEaselHost as KWe}from"efficient-easel/screen/lib/host";import{InertHint as I8}from"efficient-easel/panel";import{jsx as rr,jsxs as Ec}from"react/jsx-runtime";var bue="__create-a-new-form__";function VWe({value:e,forms:t,loadFailed:o,emptyLabel:n}){let r=t??[],a=e?r.some(p=>p.slug===e):!0,i=t===null&&!o,s={value:"",label:i?u("Loading\u2026"):o?u("Forms couldn\u2019t be loaded"):n===void 0?u("No form yet"):u(n)},l=e&&!a?[{value:e,label:i||o?e:u("{slug} \u2014 no form with this name",{slug:e})}]:[],d=r.map(p=>({value:p.slug,label:p.is_active?p.title:u("{title} (switched off)",{title:p.title})})),c=i?[]:[{value:bue,label:u("Create a new form")}];return[s,...l,...d,...c]}function YWe(e){return e===bue?{action:"create"}:{action:"store",slug:e}}function jWe({value:e,pickedId:t,forms:o}){if(!e||!t||o.some(r=>r.slug===e))return null;let n=o.find(r=>r.id===t);return n&&n.slug&&n.slug!==e?n.slug:null}function qWe(e){let t=[u("Goes to {place}",{place:u("Storefront \u2192 Forms")})],o=(e.notify_email??"").trim();return o&&t.push(u("Emails a copy to {email}",{email:o})),e.mailing_list_name&&t.push(e.subscribe_mode==="checkbox"?u("Joins the \u201C{audience}\u201D audience, but only when the consent box is ticked",{audience:e.mailing_list_name}):u("Joins the \u201C{audience}\u201D audience",{audience:e.mailing_list_name})),e.kind==="account_signup"&&t.push(e.signup_customer_type==="importer"?u("Creates a wholesale account"):u("Creates a retail account")),t}function F8({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=KWe(),a=GWe($We),i=a?a.capabilities.hasForms:!0,[s,l]=O5(null),[d,c]=O5(!1),[p,m]=O5(!1),[f,g]=O5(!1),h=N5(!0),b=N5(e);b.current=e;let w=N5(t);w.current=t;let y=N5(null),x=(P=!1)=>hue(P).then(B=>{if(h.current){l(B),c(!1);let M=jWe({value:b.current,pickedId:y.current,forms:B});M&&w.current(M)}return B},()=>(h.current&&c(!0),[]));gue(()=>(h.current=!0,i&&x(),()=>{h.current=!1}),[i]),gue(()=>i?M_(()=>{x(!0)}):void 0,[i]);let v=e?(s??[]).find(P=>P.slug===e)??null:null;v?y.current=v.id:e||(y.current=null);let S=!!e&&!v&&s!==null&&!d,E=VWe({value:e,forms:s,loadFailed:d,emptyLabel:n}),T=async()=>{m(!0),g(!1);try{let P=await Aie(r,{mode:"create"}),B=await x(!0);if(!h.current)return;if(P.status==="timeout"){g(!0);return}if(P.status!=="saved")return;let{form:M}=P;M.slug!==b.current&&w.current(M.slug),B.some(I=>I.id===M.id)||x(!0)}finally{h.current&&m(!1)}},C=P=>{let B=YWe(P);B.action==="create"?T():(g(!1),t(B.slug))};return i?Ec("div",{className:"sf-formpicker",children:[rr(mb,{label:o,options:E,fallback:"",value:e??"",onChange:C,placeholder:u("Search forms\u2026")}),f&&rr("p",{className:"sf-formsummary-warn",children:u("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),v?Ec("div",{className:"sf-blogsource sf-formsummary",children:[Ec("div",{children:[rr("div",{className:"sf-formsummary-caption",children:Qn("{n} field","{n} fields",v.fields.length)}),v.fields.length?rr("ol",{className:"sf-formsummary-fields",children:v.fields.map((P,B)=>rr("li",{children:P.label},P.key||`${P.label}-${B}`))}):rr(I8,{children:u("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),Ec("div",{children:[rr("div",{className:"sf-formsummary-caption",children:u("Where the answers go")}),rr("ul",{className:"sf-formsummary-fields",children:qWe(v).map(P=>rr("li",{children:P},P))})]}),!v.is_active&&rr("p",{className:"sf-formsummary-warn",children:u("This form is switched off, so it won\u2019t appear on the published page. Turn it back on in {place}.",{place:u("Storefront \u2192 Forms")})}),Ec("div",{className:"sf-formsummary-actions",children:[rr(A5,{variant:"secondary",size:"md",onClick:()=>Oie(r,v.id),children:u("Edit form \u270E")}),rr(A5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:u("New form +")})]}),rr("p",{className:"es-field-hint",children:u("The questions, the button text and the thank-you message all come from {place}. Edit them there \u2014 this section updates to match.",{place:u("Storefront \u2192 Forms")})})]}):Ec("div",{className:"sf-blogsource sf-formsummary",children:[d?Ec(I8,{children:[u("This website\u2019s forms couldn\u2019t be loaded, so there is nothing to choose from yet."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]}):S&&rr("p",{className:"sf-formsummary-warn",children:u("This section points at \u201C{slug}\u201D, and this website has no form with that name. Pick one from the list above, or leave it \u2014 nothing has been changed.",{slug:e??""})}),Ec("div",{className:"sf-formsummary-actions",children:[d&&rr(A5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{x(!0)},children:u("Try again")}),rr(A5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:u("New form +")})]}),!d&&rr("p",{className:"es-field-hint",children:u("Pick a form to show here, or build a new one. Forms are made once in {place} and can be shown on any number of pages.",{place:u("Storefront \u2192 Forms")})})]})]}):rr("div",{className:"sf-formpicker",children:rr("div",{className:"sf-blogsource sf-formsummary",children:Ec("div",{children:[rr("div",{className:"sf-formsummary-caption",children:u(o)}),Ec(I8,{children:[u("Forms aren\u2019t available in this editor, so there is nothing to choose here."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]})]})})})}import{jsx as XWe}from"react/jsx-runtime";function Pc(e,t){return{type:"custom",render:({value:o,onChange:n})=>XWe(F8,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{createContext as ZWe,useContext as JWe}from"react";import{jsx as Cc,jsxs as B8}from"react/jsx-runtime";function H8(e){return tc(e)??void 0}var D8=ZWe({}),wue=3;function M8({tag:e,name:t,desc:o,href:n,imageSrc:r,imageLabel:a,price:i}){let s=me(),{showPrice:l,cardStyle:d,partStyles:c,editing:p,ownerId:m,Template:f}=JWe(D8),g=d==="bordered"?" border border-line":d==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",h=H8(r),b=er();if(f){let x={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:h??"",tag:e??"",href:n||"#"};return b.scope(Cc("div",{className:mo(`block w-full min-w-0 ${I0}${s?` ${Om}`:""}`,b.className),...b.attrs,children:Cc($e,{ownerId:m??"Collections",ownerType:"Collections",Template:f,rows:[x],fallback:null,children:k=>k})}))}let w=x=>p?{[_0]:x}:{},y=x=>TE(c?.[Xl(x)]?.role,vh[x],pE);return b.scope(B8(Le,{href:n||"#",className:mo(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${g}`,b.className),...b.attrs,children:[Cc("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${Ede}`,children:Cc(ao,{label:a||"collection.jpg",src:h})}),Cc("div",{className:`pointer-events-none absolute inset-0 z-[1] ${_de} max-view-wide:hidden`,style:{transition:"none"}}),B8("div",{className:"absolute inset-x-8 bottom-8 z-[2] flex flex-col gap-3 text-overlay-fg max-view-wide:relative max-view-wide:inset-auto max-view-wide:p-6 max-view-wide:gap-3 max-view-wide:text-fg",children:[e&&Cc("span",{...w("tag"),style:y("tag"),className:`font-mono ${Pp.tag} uppercase tracking-[0.25em] opacity-70`,children:N(e)}),t&&Cc("h3",{...w("name"),style:y("name"),className:`font-heading2 ${Pp.name} font-medium leading-none tracking-[-0.03em] ${Pp.namePhone}`,children:typeof t=="string"?ee(t,!1):t}),o&&Bt(o).map((x,k)=>Cc("p",{...w("body"),style:y("body"),className:`max-w-[420px] ${Pp.body} leading-[1.5] opacity-80`,children:N(x)},k)),l&&i&&Cc("span",{...w("price"),style:y("price"),className:`font-mono ${Pp.price} tracking-[0.05em] text-accent`,children:N(i)}),B8("span",{...w("link"),style:y("link"),className:`mt-2 inline-flex items-center gap-3 font-mono ${Pp.link} uppercase tracking-[0.2em]`,children:["Explore",Cc("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as Pue,useCallback as hUe,useContext as Tue,useEffect as Cue,useRef as gUe,useState as $8}from"react";import{slugify as bUe}from"efficient-shell/format";import{useState as eUe}from"react";import{jsx as z8,Fragment as QWe}from"react/jsx-runtime";function bl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=zJ(e),a=WJ(e),i=t?a:r,s=MJ(i);return o&&!i?z8("span",{[Hm]:e,children:n}):i?z8("span",{ref:s,[EZ]:i.stamp,...i.textStyle?{[PZ]:i.textStyle}:{},children:n}):z8(QWe,{children:n})}import{jsx as Wi,jsxs as Iw}from"react/jsx-runtime";var W8=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function U8({build:e,hiddenMobile:t,alwaysShowOverlay:o,forceHover:n,index:r,total:a,ratio:i,captionPlace:s,display:l,displayPhone:d,styleOwner:c,editing:p=!1}){let m=x=>Lte(l,d,x),f=x=>p&&c?{[vZ]:c,[kZ]:`@${x}`}:{},g=(x,k)=>!p&&c?Wi(bl,{kind:`@${x}`,shared:!0,children:k}):k,[h,b]=eUe(!1),w=tX(s),y=Iw("div",{className:["sf-card group relative overflow-hidden bg-surface-2",B0(i),t?"max-view-wide:hidden":""].join(" "),children:[Iw("div",{className:["absolute inset-0 z-[1] flex items-center justify-center transition-[transform,filter,opacity] duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)]",n?"scale-[1.06] opacity-0 [filter:brightness(0.5)]":"group-hover:scale-[1.06] group-hover:opacity-0 group-hover:[filter:brightness(0.5)]"].join(" "),children:[Wi(ao,{label:e.imageLabel,src:e.imageSrc}),!o&&Wi("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),Wi("div",{className:["absolute inset-0 z-[1] flex items-center justify-center transition-[transform,filter,opacity] duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)]",n?"opacity-100 scale-[1.06] [filter:brightness(0.5)]":"opacity-0 group-hover:scale-[1.06] group-hover:opacity-100 group-hover:[filter:brightness(0.5)]"].join(" "),style:{background:"var(--site-surface)"},children:e.detailSrc&&Wi(Xs,{src:e.detailSrc,alt:"",fill:!0,sizes:"(max-width: 800px) 100vw, (max-width: 1500px) 33vw, 25vw",loading:"lazy",className:"absolute inset-0 z-[3] object-cover",style:{display:h?"none":"block"},onError:()=>b(!0)})}),(e.process||r!=null&&a!=null)&&Iw("div",{className:"pointer-events-none absolute top-3 left-3 right-3 z-[3] flex items-baseline gap-2 max-view-wide:top-2.5 max-view-wide:left-2.5 max-view-wide:right-2.5",children:[e.process&&Wi("span",{...f("tag"),className:["min-w-0 truncate font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-accent",m("tag"),"transition-opacity duration-300 ease-out",o||n?"opacity-100":"opacity-0 group-hover:opacity-100 max-view-wide:opacity-100"].join(" "),children:g("tag",vo(e.process))}),r!=null&&a!=null&&Wi("span",{...f("number"),className:`ml-auto shrink-0 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] ${m("number")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:g("number",W8(r,a))})]}),Wi("div",{className:["absolute inset-0 z-[2]","transition-[opacity,transform] duration-300 ease-out",o||n?"opacity-100 translate-y-0":"opacity-0 translate-y-2 group-hover:opacity-100 group-hover:translate-y-0 max-view-wide:opacity-100 max-view-wide:translate-y-0"].join(" "),style:{color:"var(--overlay-fg)",background:o?"linear-gradient(180deg, rgba(10,10,10,.55) 0%, transparent 35%, transparent 55%, rgba(10,10,10,.92) 100%)":"linear-gradient(180deg, transparent 40%, rgba(10,10,10,.85) 100%)"},children:Iw("div",{className:"absolute inset-x-0 bottom-0 top-9 flex flex-col justify-end gap-1 overflow-hidden p-6 max-view-wide:top-8 max-view-wide:p-3.5",children:[e.car&&Wi("div",{...f("eyebrow"),className:`truncate font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] text-accent max-view-wide:text-[length:var(--size-label,11px)] max-view-wide:tracking-[0.15em] ${m("eyebrow")}`.trim(),children:g("eyebrow",e.car)}),e.wheel&&Wi("div",{...f("title"),className:`font-heading3 text-[length:var(--size-headingSmall,22px)] font-medium leading-[1.05] tracking-[-0.02em] max-view-wide:text-[length:var(--size-body,16px)] ${o?"uppercase ":""}${m("title")}`.trim(),children:g("title",e.wheel)}),e.finish&&Wi("div",{...f("meta"),className:`mt-1.5 flex gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.12em] ${m("meta")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:Wi("span",{children:g("meta",vo(e.finish))})})]})})]});return w?Iw("div",{className:t?"max-view-wide:hidden":"",children:[y,Iw("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&Wi("div",{...f("title"),className:`font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg ${m("title")}`.trim(),children:g("title",e.wheel)}),(e.finish||e.car)&&Wi("div",{...f(e.finish?"meta":"eyebrow"),className:`mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim ${m(e.finish?"meta":"eyebrow")}`.trim(),children:g(e.finish?"meta":"eyebrow",vo(e.finish||e.car))})]})]}):y}import{createContext as tUe,useCallback as oUe,useContext as nUe,useEffect as rUe,useLayoutEffect as aUe,useRef as G8,useState as iUe}from"react";import{createPortal as sUe}from"react-dom";import{Fragment as pUe,jsx as T1,jsxs as mUe}from"react/jsx-runtime";var lUe=".sf-themed-content",xue="sf-section-accent";function dUe(e,t){let o={},n=!1,r=[];for(let a=e;a&&a!==t;a=a.parentElement)r.push(a);for(let a of r.reverse()){a.classList.contains(xue)&&(n=!0);let i=a.style;if(i)for(let s=0;s<i.length;s+=1){let l=i.item(s);l.startsWith("--")&&(o[l]=i.getPropertyValue(l))}}return{className:n?`contents ${xue}`:"contents",style:o}}function cUe(e){let t=e.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])");return Array.from(t).filter(o=>!o.hasAttribute("hidden")&&o.getAttribute("aria-hidden")!=="true")}var yue=tUe(()=>{});function jp({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=G8(null),l=G8(null),[d,c]=iUe(null);aUe(()=>{if(!e){c(null);return}let g=s.current;if(!g)return;let h=g.closest(lUe)??g.ownerDocument.body;c({host:h,theme:dUe(g,h)})},[e]);let p=G8({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let m=e&&d!==null,f=oUe(()=>p.current.onClose(),[]);return kc({active:m,onDismiss:f,scopeRef:l}),rUe(()=>{if(!m)return;let g=l.current,h=g?.ownerDocument??document,b=h.activeElement;g?.focus();let w=x=>{if(x.key==="ArrowLeft")p.current.onPrev?.();else if(x.key==="ArrowRight")p.current.onNext?.();else if(x.key==="Tab"&&g){let k=cUe(g);if(k.length===0){x.preventDefault(),g.focus();return}let v=k[0],S=k[k.length-1],E=h.activeElement,T=!!E&&g.contains(E)&&E!==g;if(x.shiftKey&&(!T||E===v))x.preventDefault(),S.focus();else if(!x.shiftKey&&(!T||E===S))x.preventDefault(),v.focus();else{x.preventDefault();let C=k.indexOf(E);k[x.shiftKey?C-1:C+1]?.focus()}}},y=h.defaultView??window;return y.addEventListener("keydown",w),()=>{y.removeEventListener("keydown",w),b&&b.isConnected&&b.focus()}},[m]),e?mUe(pUe,{children:[T1("span",{ref:s,hidden:!0}),d&&sUe(T1("div",{className:d.theme.className,style:d.theme.style,children:T1("div",{ref:l,role:"dialog","aria-modal":"true","aria-label":o,tabIndex:-1,onClick:t,className:`fixed inset-0 z-(--sf-layer-lightbox) outline-none ${k8[8]} ${a}`,style:{background:v8},children:T1(yue.Provider,{value:t,children:i})})}),d.host)]}):null}var L5="color-mix(in oklab, var(--bg) 70%, transparent)";function Fu({className:e="absolute right-5 top-5 flex h-10 w-10 cursor-pointer items-center justify-center border border-fg-dim/40 text-fg-dim transition-colors hover:border-accent hover:text-accent",style:t,label:o="Close",children:n="\xD7"}){let r=nUe(yue);return T1("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as uUe,useContext as Zh}from"react";var E1=uUe(null);function vue(){let e=Zh(t2),t=Zh(E1),o=a_();return e?e.socialLinks??Tne:t?t.socialLinks:o.links}function Bu(){return Zh(E1)?.commerceEnabled??!0}function fUe(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function Fw(){return fUe(Zh(E1))}function kue(){let e=Zh(E1),t=zn();return e?e.showThemeSwitch??up:t.themeSwitchShown??up}function Sue(){let e=Zh(t2),t=Zh(E1),o=zn();return e?A_({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?A_({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):A_({siteName:o.websiteName?.trim()||tu})}import{useBrowserLayoutEffect as wUe}from"efficient-shell/hooks";import{Fragment as Bw,jsx as To,jsxs as ua}from"react/jsx-runtime";var xUe="(max-width: 1100px) 100vw, min(59vw, 1050px)",P1=Pue({}),_ue=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],V8=Pue(null),Hu="data-gallery-grid",K8="data-gallery-tile";function yUe(e,t){let[o,n]=$8(null);return Cue(()=>{let r=e.current,a=r?.closest(`[${Hu}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${K8}]`)),d=l.indexOf(r),c=d>=0?{index:d+1,total:l.length}:null;n(p=>p?.index===c?.index&&p?.total===c?.total?p:c)};if(i(),!t)return;let s=new MutationObserver(i);return s.observe(a,{childList:!0,subtree:!0}),()=>s.disconnect()},[e,t]),o}var hd={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},vUe=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),Rue=Array.from({length:6},vUe);function kUe(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=bUe(e.name)||"gallery-item";return{car:e.eyebrow??"",wheel:e.name??"",process:e.process??"",finish:e.meta??"",imageLabel:`${r}.jpg`,detailLabel:`${r}-detail.jpg`,imageSrc:o||void 0,detailSrc:t[0]||o||void 0,photos:n,href:e.href}}function Jh({editing:e=!1,previewHover:t,ratio:o,captionPlace:n,tile:r,...a}){let i=me(),{galleryHref:s="/gallery",submitHref:l="/contact",previewHover:d,display:c,displayPhone:p,styleOwner:m,photosOnly:f=!1,wordsAtRest:g=!1,Template:h,ownerId:b}=Tue(P1),w=kUe(a),x=Bu()&&!f,k=!x&&!SUe(w),v=w.photos??(w.imageSrc?[w.imageSrc]:[]),S=gUe(null),E=hUe(oe=>{S.current=oe},[]),T=yUe(S,e),C=Tue(V8),P=C?.report,B=r?.id,M=r?.tag??"",I=r?.name??"";wUe(()=>{if(!P||!B)return;let oe={id:B,tag:M,name:I};return P(oe),()=>P(oe,!0)},[P,B,M,I]);let A=(B?C?.positionOf(B):null)??T,_=e&&(!!t||!!d),[F,K]=$8(!1),[V,Z]=$8(0),Y=!!B&&!!C&&C.walkCount>1,z=oe=>{let de=V+oe;if(Y&&(de<0||de>=v.length)){K(!1),C.walk(B,oe);return}Z((de+v.length)%v.length)},q=()=>z(-1),X=()=>z(1),L=v.length>1||Y,O=C?.opening;Cue(()=>{!O||O.id!==B||(Z(O.at==="last"?Math.max(0,v.length-1):0),K(!0))},[O,B]);let G=v[V]??w.imageSrc??"",Q=v.slice(1),$=h?To("div",{className:`block w-full min-w-0 ${I0}${i?` ${Om}`:""}`,children:To($e,{ownerId:b??"GalleryB",ownerType:"GalleryB",Template:h,rows:[{key:B??w.imageSrc??"tile",image:w.imageSrc??"",tag:w.process,number:A?W8(A.index,A.total):"",eyebrow:w.car,name:w.wheel,meta:w.finish,href:w.href??""}],items:[{hoverMedia:Q.length?{photos:[{finish:"",items:Q.map(oe=>({url:oe,kind:"image"}))}]}:null}],previewHover:_,fallback:null,children:oe=>oe})}):To(U8,{build:w,forceHover:_,alwaysShowOverlay:g,index:A?.index,total:A?.total,ratio:o,captionPlace:n,display:c,displayPhone:p,styleOwner:m,editing:e});return ua(Bw,{children:[e?To(D,{as:"div",ref:E,[K8]:"",className:"block w-full text-left",children:$}):To(D,{as:"button",ref:E,[K8]:"",type:"button","aria-label":x?`Open ${w.car||"build"} on ${w.wheel||"wheel"}`:Eue(w),onClick:()=>{Z(0),K(!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:$}),To(jp,{open:F,onClose:()=>K(!1),label:x?`${w.car} on ${w.wheel}`:Eue(w),onPrev:L?q:void 0,onNext:L?X:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:ua("div",{onClick:oe=>oe.stopPropagation(),className:`relative grid w-[min(1800px,100%)] max-h-[calc(100vh-48px)] ${k?"grid-cols-1":"grid-cols-[1.4fr_1fr]"} overflow-hidden border border-line bg-bg max-view-desktop:grid-cols-1 max-view-desktop:overflow-auto`,style:{boxShadow:"0 60px 120px -20px color-mix(in srgb, var(--sf-shadow-color, #141416) 70%, transparent)"},children:[To(Fu,{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:L5},children:"\u2715"}),ua("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[G&&To("img",{...ko(G,{fallbackWidth:1280}),sizes:xUe,alt:`${(x?w.car:w.wheel||w.car)||"Photo"} \u2014 ${V+1} of ${v.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},G),L&&ua(Bw,{children:[To("button",{type:"button","aria-label":"Previous photo",onClick:q,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"}),To("button",{type:"button","aria-label":"Next photo",onClick:X,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"}),v.length>1&&ua("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:[V+1," / ",v.length]})]})]}),x?ua("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[w.process&&To("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:N(w.process)}),w.wheel&&To("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:ee(w.wheel,!1)}),w.car&&ua("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",To("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:N(w.car,!0)})]}),ua("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:[w.wheel&&ua(Bw,{children:[To("dt",{className:"text-fg-dim",children:"Wheel"}),To("dd",{className:"text-fg",children:N(w.wheel)})]}),w.process&&ua(Bw,{children:[To("dt",{className:"text-fg-dim",children:"Process"}),To("dd",{className:"text-fg",children:N(w.process)})]}),w.finish&&ua(Bw,{children:[To("dt",{className:"text-fg-dim",children:"Finish"}),To("dd",{className:"text-fg",children:N(w.finish)})]}),w.car&&ua(Bw,{children:[To("dt",{className:"text-fg-dim",children:"Vehicle"}),To("dd",{className:"text-fg",children:N(w.car)})]})]}),ua("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[ua(Le,{href:w.href||"/wheels",onClick:()=>K(!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:[To("span",{children:"View product"}),To("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),ua(Le,{href:s,onClick:()=>K(!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:[To("span",{children:"See more builds"}),To("span",{children:"\u2192"})]}),ua(Le,{href:l,onClick:()=>K(!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:[To("span",{children:"Submit your build"}),To("span",{children:"\u2192"})]})]})]}):!k&&To(TUe,{build:w})]})})]})}function Nue(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function SUe(e){return!!e.wheel||Nue(e).length>0}function Eue(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function TUe({build:e}){let t=e.wheel,o=Nue(e);return ua("div",{className:"flex flex-col gap-[24px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[t&&To("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:ee(t,!1)}),o.map(n=>To("p",{className:"text-[length:var(--size-body,18px)] leading-[1.5] text-fg",children:N(n)},n))]})}import{createContext as NUe,useContext as OUe,useEffect as C1,useId as AUe,useState as kr,useSyncExternalStore as LUe}from"react";var EUe=14,PUe=3;function CUe(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function _Ue(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),CUe(o)}async function Oue(e,t,o={}){let n=o.days??EUe,r=o.read??kh.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=_Ue(t,s);try{let d=await r(e,l);if(a=0,i++,d.slots.length>0)return{outcome:"found",date:l,availability:d}}catch{if(a++,a>=PUe)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as Aue,formatDateTime as Y8,formatTime as Fue}from"efficient-shell/format";var RUe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},Lue={weekday:"long",day:"numeric",month:"long",year:"numeric"},Bue={hour:"numeric",minute:"2-digit"},Iue={...Bue,timeZoneName:"short"};function j8(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function q8(e,...t){let o=dl(...t);return!o||!j8(e)?"":Fue(e,{locale:h6(),timeZone:o})}function X8(e,...t){let o=typeof e=="string"?{start:e}:e,n=dl(...t),r=j8(o.start);if(!n||!r)return"";let a=h6(),i=o.end?j8(o.end):null;if(!i||i.getTime()<=r.getTime())return Y8(o.start,{locale:a,timeZone:n,style:RUe,zoneName:"short"});let s=Y8(o.start,{locale:a,timeZone:n,style:Lue,clock:Bue}),d=Aue(o.start,n)===Aue(o.end,n)?Fue(o.end,{locale:a,timeZone:n,clock:Iue}):Y8(o.end,{locale:a,timeZone:n,style:Lue,clock:Iue});return`${s} \u2013 ${d}`}function I5(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as IUe,userToday as FUe,userZone as BUe}from"efficient-shell/format";import{jsx as GUe}from"react/jsx-runtime";var Due=NUe(null);function Du(){let e=OUe(Due);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var Z8=[{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:""}],HUe=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function Hue(e,t){return{timezone:"",slots:t?HUe.flatMap(({hour:n,minute:r})=>IUe(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var J8={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function DUe(e){let t=String(e?.slots[0]?.start??"");return t?{...J8,startAt:t}:J8}function Mue(e){return e.bookingNumber===J8.bookingNumber}function MUe(e,t){return e&&t?.length===0}function zUe(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!I5(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function WUe(){return()=>{}}function UUe(){return null}function zue({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=AUe(),r=LUe(WUe,FUe,UUe)??"",[a,i]=kr(),[s,l]=kr(""),[d,c]=kr(""),[p,m]=kr(r),[f,g]=kr(r),[h,b]=kr(!1),[w,y]=kr(null),[x,k]=kr(),[v,S]=kr(""),[E,T]=kr(""),[C,P]=kr(""),[B,M]=kr(""),[I,A]=kr(""),[_,F]=kr(()=>C6()),[K,V]=kr(null),[Z,Y]=kr(!1),[z,q]=kr(!1),[X,L]=kr(null),[O,G]=kr("");C1(()=>{G(BUe()??"")},[]),C1(()=>{let be=!1;return kh.listServices().then(_e=>{if(be)return;let Ie=f_(_e);i(Ie),l(_e.currency),c(te=>te||Ie[0]?.id||"")}).catch(()=>{be||i([])}),()=>{be=!0}},[]),C1(()=>{r&&(m(be=>be||r),g(be=>be||r))},[r]),C1(()=>{if(h||!d||!r)return;let be={aborted:!1};return S(""),k(void 0),L(null),y(null),Y(!0),Oue(d,r,{signal:be}).then(_e=>{if(!be.aborted){if(_e.outcome==="found"){m(_e.date),g(_e.date),k(_e.availability);return}y(_e.outcome==="noneInWindow"?`No times are available in the next ${_e.days} days.`:"We couldn't load available times. Please try again.")}}).finally(()=>{be.aborted||Y(!1)}),()=>{be.aborted=!0}},[h,d,r]),C1(()=>{if(!h||!d||!p)return;let be=!1;return S(""),k(void 0),L(null),y(null),Y(!0),kh.getAvailability(d,p).then(_e=>{be||(k(_e),_e.slots.length===0&&y("No times are available on this date."))}).catch(()=>{be||y("We couldn't load available times. Please try again.")}).finally(()=>{be||Y(!1)}),()=>{be=!0}},[p,h,d]);let Q=a?.find(be=>be.id===d),$=Q?.depositAmountDue!=null,oe=zUe({editing:e,submitting:z,hasService:!!Q,hasDay:!!p,selectedStart:v,name:E,email:C,requiresPayment:$},Date.now());async function de(be){if(be.preventDefault(),!(!oe||!Q)){q(!0),L(null);try{let _e=await kh.create({serviceId:Q.id,start:v,customer:{name:E.trim(),email:C.trim(),phone:B.trim()},notes:I.trim(),idempotencyKey:_,customerTimezone:O});V(_e),F(C6())}catch(_e){L(_e instanceof or&&_e.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),_e instanceof or&&_e.status===409&&(S(""),kh.getAvailability(Q.id,p).then(k).catch(()=>{}))}finally{q(!1)}}}let ge=MUe(e,a),Qe=ge?Hue(p,O):void 0,ve=t&&!K?DUe(Qe??Hue(p,O)):null;return GUe(Due.Provider,{value:{fieldPrefix:n,editing:e,services:ge?Z8:a,currency:ge?"AUD":s,serviceId:ge?Z8[0].id:d,setServiceId:c,service:ge?Z8[0]:Q,requiresPayment:ge?!1:$,date:p,earliestDate:f,setDate:m,setDateTouched:b,availability:Qe??x,loadingSlots:ge?!1:Z,noSlotsMessage:w,selectedStart:Qe?Qe.slots[0]?.start??"":v,setSelectedStart:S,customerTimezone:O,name:E,setName:T,email:C,setEmail:P,phone:B,setPhone:M,notes:I,setNotes:A,confirmation:K??ve,submitting:z,error:X,canSubmit:ge?!1:oe,handleSubmit:de,sample:!!ge},children:o})}import{jsx as F5,Fragment as Wue,jsxs as Uue}from"react/jsx-runtime";var Gue=`sf-button group inline-flex items-center justify-center gap-2.5 border ${doe} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,$ue={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 fa(e){let{variant:t="primary",arrow:o,glyphBefore:n,spread:r,className:a,style:i,part:s,glyphPart:l,children:d,href:c,newTab:p,hrefRewrite:m,...f}=e,g=`${r?Gue.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):Gue} ${$ue[t]??$ue.primary} ${a??""}`,h=n?Uue(Wue,{children:[o!==null&&F5("span",{"aria-hidden":!0,className:"inline-flex",...l,children:o??"\u2192"}),d]}):Uue(Wue,{children:[d,o!==null&&F5("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",...l,children:o??"\u2192"})]});return c?F5(Pt,{href:c,className:g,style:i,newTab:p?!0:"auto",...m?{hrefRewrite:m}:{},...s,children:h}):F5("button",{type:"button",className:g,style:i,...f,children:h})}import{jsx as $Ue}from"react/jsx-runtime";var _1=e=>$Ue("div",{className:"grid bg-bg",children:e});import{jsx as so,jsxs as gd}from"react/jsx-runtime";var R1="w-full border-2 border-line bg-bg px-4 py-4 font-[family-name:var(--bk-value-font,var(--font-display))] text-[length:var(--bk-value-size,17px)] text-fg outline-none transition-colors placeholder:text-fg-dim hover:border-fg-dim focus:border-accent";function KUe(e,t){let o=Number(e);if(o===0)return Sh;try{return Cae(o,t)}catch{return`${t} ${e}`}}var Kue={selected:!0};function Vue(e,t){return({index:o})=>t?{[wP]:xP(e,o)}:{}}var N1="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function Q8({number:e,children:t}){return gd("div",{className:"mb-4 flex items-center gap-3",children:[so("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}),so("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 B5({eyebrow:e,heading:t,intro:o}){return gd("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&so("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&so("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.98] tracking-[-0.025em] text-fg max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:t}),(o??"").trim()&&so("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function H5({style:e,owner:t}){let{fieldPrefix:o,services:n,currency:r,serviceId:a,setServiceId:i,requiresPayment:s,date:l,earliestDate:d,setDate:c,setDateTouched:p,availability:m,loadingSlots:f,noSlotsMessage:g,selectedStart:h,setSelectedStart:b,customerTimezone:w,editing:y}=Du();if(!n)return null;let x=Date.now(),k=dl(w,m?.timezone??""),v=dl(m?.timezone??""),S=v&&v!==k?v:"",E=(m?.slots??[]).map(T=>({start:T.start,time:q8(T.start,k),businessTime:S?`${q8(T.start,S)} business`:"",passed:!y&&I5(T.start,x)}));return gd(D,{className:"flex flex-col gap-10",style:e,children:[gd("div",{children:[so(Q8,{number:"01",children:"Choose a service"}),so("div",{className:"grid gap-3 sm:grid-cols-2",children:so($e,{ownerId:t.id,ownerType:t.type,slot:Uh,Template:t.serviceTemplate,rows:n.map(T=>({name:T.name,meta:`${T.durationMinutes} min \xB7 ${KUe(T.price,r)}`,description:T.description??""})),states:n.map(T=>T.id===a?Kue:void 0),actions:y?void 0:n.map(T=>({press:()=>i(T.id),label:T.name})),copyAttrs:Vue(Uh,y),fallback:null,wrapCopy:_1,children:T=>so(Io,{children:T})})}),s&&so("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."})]}),gd("div",{children:[so(Q8,{number:"02",children:"Choose a date and time"}),so(zr,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:N1,children:so("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:T=>{p(!0),c(T.target.value)},className:R1,required:!0})}),so("div",{className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-3 min-[1200px]:grid-cols-4",role:"group","aria-label":"Available appointment times",children:f?so("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?so($e,{ownerId:t.id,ownerType:t.type,slot:Gh,Template:t.timeTemplate,rows:E.map(T=>({time:T.time,businessTime:T.businessTime})),states:E.map(T=>T.start===h&&!T.passed?Kue:void 0),actions:y?void 0:E.map(T=>({press:()=>b(T.start),label:T.time,disabled:T.passed})),copyAttrs:Vue(Gh,y),fallback:null,wrapCopy:_1,children:T=>so(Io,{children:T})}):g?so("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",role:"status",children:g}):null}),k&&!f&&!!m?.slots.length&&gd("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 ",k,S?` \xB7 business timezone ${S}`:""]})]})]})}function D5({buttonLabel:e,style:t}){let{fieldPrefix:o,editing:n,name:r,setName:a,email:i,setEmail:s,phone:l,setPhone:d,notes:c,setNotes:p,submitting:m,error:f,canSubmit:g}=Du();return gd(D,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[so(Q8,{number:"03",children:"Your details"}),gd("div",{className:"flex flex-col gap-4",children:[so(zr,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:N1,children:so("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:h=>a(h.target.value),className:R1,required:!0})}),so(zr,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:N1,children:so("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:h=>s(h.target.value),className:R1,required:!0})}),so(zr,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:N1,children:so("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:h=>d(h.target.value),className:R1})}),so(zr,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:N1,children:so("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:h=>p(h.target.value),className:`${R1} resize-y`})})]}),f&&so("p",{className:"mt-4 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.16em] text-alert",role:"alert",children:f}),so(fa,{type:n?"button":"submit",disabled:!g,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:m?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function M5({successMessage:e}){let{confirmation:t,customerTimezone:o}=Du();if(!t)return null;let n=dl(t.customerTimezone,o,t.timezone),r=dl(t.timezone),a=r&&r!==n?r:"";return gd("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[gd("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),so("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),so("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:X8(t.startAt,n)}),a&&gd("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",X8(t.startAt,a)]}),(e??"").trim()&&so("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),so(fa,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!Mue(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as Hw}from"react/jsx-runtime";var Yue=["head","booking","details","confirm"],jue={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function eD({region:e,nodeId:t="BookingBox",serviceTemplate:o,timeTemplate:n,eyebrow:r,heading:a,intro:i,buttonLabel:s,successMessage:l,...d}){let{confirmation:c,services:p}=Du(),m=Gce(d);return e==="head"?Hw(D,{className:"min-[960px]:col-span-2",style:m,children:Hw(B5,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?Hw(D,{className:"min-[960px]:col-span-2",style:m,children:Hw(M5,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?Hw(H5,{style:m,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?Hw(D5,{buttonLabel:s,style:m}):null}import{useEffect as que,useState as Mu}from"react";import{jsx as Dw,jsxs as YUe}from"react/jsx-runtime";function _c(e,t){let[o,n]=Mu(void 0),[r,a]=Mu(0);return que(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return Fo.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),que(()=>{if(t===void 0)return M_(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var VUe="Something went wrong \u2014 your submission wasn't sent. Please try again.";function Mw(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function zu({form:e,formSlug:t,editing:o=!1}){let[n,r]=Mu({}),[a,i]=Mu(""),[s,l]=Mu(!1),[d,c]=Mu(!1),[p,m]=Mu(null),[f,g]=Mu(null);async function h(b){if(b.preventDefault(),!(o||s||!e||!t)){l(!0),g(null);try{let w=e.fields.map(x=>({fieldKey:x.key,value:n[x.key]??""})),y=await Fo.submitForm(t,{answers:w,...a?{company:a}:{}});m(y?.account??null),c(!0)}catch{g(VUe)}finally{l(!1)}}}return{valueOf:b=>n[b]??"",set:(b,w)=>r(y=>({...y,[b]:w})),honeypot:a,setHoneypot:i,submitting:s,done:d,account:p,error:f,handleSubmit:h}}function zw({value:e,onChange:t}){return Dw("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:o=>t(o.target.value)})}function Wu({field:e,value:t,onChange:o,className:n,rows:r=5,placeholder:a,ariaLabel:i}){let s=a??e.placeholder,l=i?.trim()?{"aria-label":i.trim()}:{};return e.type==="textarea"?Dw("textarea",{required:e.required,rows:r,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l}):e.type==="select"?YUe("select",{required:e.required,value:t,onChange:d=>o(d.target.value),className:n,...l,children:[Dw("option",{value:"",children:s||"Select\u2026"}),e.options.map(d=>Dw("option",{value:d,children:d},d))]}):e.type==="checkbox"?Dw("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:d=>o(d.target.checked?"true":""),className:n}):Dw("input",{type:e.type==="email"?"email":e.type==="tel"?"tel":"text",required:e.required,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l})}var Ut={eyebrow:"Section number",title:"Show *us yours.*",body:"Tell people what they get for submitting, and what you do with what they send.",buttonText:"Submit \u2192",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties."};import{jsx as wl,jsxs as O1}from"react/jsx-runtime";function jUe(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function Xue({eyebrow:e,title:t}){return O1("div",{className:"flex flex-col gap-4",children:[e&&wl(st,{text:e,scaled:!1}),t&&wl("h2",{className:"font-display text-[min(clamp(40px,5vw,72px),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:ee(t,!0)})]})}function z5({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return O1("div",{className:"flex flex-col gap-8",children:[e&&Bt(e).map((l,d)=>wl("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:N(l)},d)),a&&(n?r.done?wl("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:Mw(n)}):O1("form",{className:"grid grid-cols-2 gap-2",onSubmit:r.handleSubmit,children:[n.fields.map(l=>{let d=["border border-line bg-transparent px-4 py-4 font-[family-name:var(--sb-field-font,var(--font-mono))] text-[length:var(--sb-field-size,14px)] tracking-[0.1em] text-fg outline-none focus:border-accent",jUe(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?O1("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:[wl(Wu,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),O1("span",{children:[l.label,l.required?wl("span",{className:"text-accent",children:" *"}):null]})]},l.key):wl(Wu,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),rows:4,placeholder:l.placeholder||l.label,ariaLabel:l.label,className:l.type==="textarea"?`${d} resize-y`:d},l.key)}),wl(zw,{value:r.honeypot,onChange:r.setHoneypot}),r.error&&wl("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:r.error}),wl("button",{type:s?"button":"submit",disabled:r.submitting,className:"col-span-2 cursor-pointer bg-btn px-6 py-4 font-mono text-[14px] uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg hover:text-bg disabled:cursor-wait disabled:opacity-60",children:r.submitting?"Sending\u2026":N(t||Ut.buttonText)})]}):wl("p",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:i?u("Loading form\u2026"):u("Choose a form in the inspector, under Form \u2014 until then this form is hidden on the live page and nothing can be submitted.")})),a&&o&&wl("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:N(o)})]})}var W5=["field","tick","thanks"],Zue={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},U5={field:"styleField",tick:"styleTick",thanks:"styleThanks"},qUe={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 XUe(e){return typeof e=="string"&&v0.includes(e)?e:null}function Jue(e){let t={};for(let o of W5){let n=XUe(e[U5[o]]);n&&Object.assign(t,Tu(n,qUe[o]))}return t}import{jsx as G5}from"react/jsx-runtime";var Que=["head","form"],efe={head:"Head",form:"Form"};function tD({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=_c(i,s),p=zu({form:c,formSlug:i,editing:l}),m=Jue(d);return e==="head"?G5(D,{as:"div",style:m,children:G5(zt,{look:"statement",num:t,title:o})}):G5(D,{as:"div",style:m,children:G5(z5,{body:n??"",buttonLabel:r??"",consent:a??"",form:c,submission:p,showForm:!!c||l,resolving:c===void 0,editing:l})})}var ZUe={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>Yue.map(e=>({region:e,name:jue[e]})),addBlocked:()=>u("A Booking Form is these three boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},SubmitBuild:{slot:"boxes",childType:"SubmitBox",addLabel:"Add box",fixed:!0,seeds:()=>Que.map(e=>({region:e,name:efe[e]})),addBlocked:()=>u("A Submit-a-build section is these two boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},Collections:{slot:"cards",childType:"CollectionCard",addLabel:"Add card",seeds:()=>Array.from({length:wue},()=>({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:()=>Rue.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};Wee(ZUe);import{jsx as tfe}from"react/jsx-runtime";var JUe={body:"text-[length:var(--size-body,17px)]"},qp=5;function Ww({rating:e}){let t=Math.min(qp,Math.max(0,Math.round(e)));return tfe(D,{role:"img","aria-label":`${t} out of ${qp} stars`,className:`flex gap-1 ${JUe.body} leading-none`,children:Array.from({length:qp}).map((o,n)=>tfe("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var oD="mx-auto max-w-[var(--sf-site-width,1600px)]",QUe=[/^border(-[tblrxy])?$/,/^border-line$/,/^bg-/,/^mx-auto$/,/^max-w-\[var\(--sf-site-width/,/--sf-site-gutter/,/^p[xytblr]?-(\d+(\.\d+)?|px|\[\d+(\.\d+)?px\])$/];function ofe(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function nD(e){return e.split(/\s+/).filter(t=>t&&!QUe.some(o=>o.test(ofe(t)))).join(" ")}var eGe=new Set(["max-view-desktop","max-view-wide"]);function tGe(e){let t=/^\[(\d+(?:\.\d+)?)px\]$/.exec(e);return t?Number(t[1]):e==="px"?1:/^\d+(\.\d+)?$/.test(e)?Number(e)*4:void 0}function Uw(e){let t=0,o,n=!1;for(let r of e.split(/\s+/)){if(!r)continue;let a=r.lastIndexOf(":"),i=a<0?"":r.slice(0,a),s=ofe(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?tGe(l[1]):void 0;d!==void 0&&(i?eGe.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as oGe,jsx as nGe}from"react/jsx-runtime";function rD({inBox:e,atTop:t,anyBox:o=!1}){let n=qm(),r=fC();return nGe(oGe,{children:n||o&&r?e:t})}import{createContext as nfe,useContext as iD}from"react";import{Fragment as aGe,jsx as aD}from"react/jsx-runtime";var rGe={atTop:null,inBox:null},sD=nfe(rGe);function $5({pad:e,children:t}){return aD(sD.Provider,{value:e,children:t})}var ar=()=>iD(sD).atTop,rfe=()=>iD(sD),afe=nfe(void 0);function ife({pads:e,children:t}){return e?aD(afe.Provider,{value:e,children:t}):aD(aGe,{children:t})}var sfe=()=>iD(afe);import{jsx as A1}from"react/jsx-runtime";function gt({className:e,capped:t=!1,column:o=Pi,style:n,defaults:r,id:a,attrs:i,rootRef:s,inAnyBox:l=!1,padOnColumn:d=!1,children:c}){let p=me(),m=rfe(),f=nD(e),g=o===null?"":nD(o),{className:h,style:b,...w}=Se(f,m.inBox,n),y=A1(D,{as:"section",ref:s,...i,...w,className:h||void 0,style:b,id:a,children:g?A1("div",{className:g,children:c}):c}),x=r?{...r,...n}:n,k=d?null:m.atTop,v=d?m.atTop:null,{className:S,style:E,...T}=Se(t?`${oD} ${e}`:e,k,x),C=A1(D,{as:"section",ref:s,...i,...T,className:S,style:E,id:a,children:o===null?c:A1("div",{...Se(pe(o,p),v),children:c})});return A1(rD,{inBox:y,atTop:C,anyBox:l})}import{Fragment as sGe,jsx as Xp,jsxs as K5}from"react/jsx-runtime";var Gw={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,19px)]",label:"text-[length:var(--size-label,12px)]"},iGe="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))]",lD="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 dD({look:e,eyebrow:t,title:o,columns:n,rows:r=[],editing:a=!1,sample:i=!1,cards:s,omitHead:l=!1}){let d=Math.min(3,Math.max(1,n??3));return!a&&r.length===0?null:K5(gt,{className:"relative z-[2] border-t border-line bg-surface",column:l?lD:iGe,padOnColumn:!0,children:[l?null:K5(sGe,{children:[(t??"").trim()&&Xp(st,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&Xp("h2",{className:`mb-12 font-heading2 ${Gw.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${Gw.headingMediumUpTo800}`,children:ee(o??"",!1)})]}),Xp("div",{className:"sf-card grid grid-cols-1 gap-px border border-line bg-line min-[700px]:[grid-template-columns:repeat(var(--rv-cols),minmax(0,1fr))]",style:{"--rv-cols":String(d)},children:s??r.map(c=>K5("article",{className:["flex flex-col gap-4 bg-bg p-10 max-view-wide:p-8",i?"opacity-60":""].join(" "),children:[c.rating!==void 0&&Xp(Ww,{rating:c.rating}),(c.title??"").trim()&&Xp("h3",{className:`font-display ${Gw.bodyLarge} font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg`,children:c.title}),Xp("div",{className:`flex-1 font-serif ${Gw.bodySmall} leading-[1.65] text-fg-dim`,children:Bt(c.quote).map((p,m)=>Xp("p",{className:m?"mt-3":"",children:p},m))}),K5("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-5",children:[Xp("span",{className:`font-mono ${Gw.label} uppercase tracking-[0.22em] text-fg`,children:c.name}),Xp("span",{className:`font-mono ${Gw.label} uppercase tracking-[0.18em] text-fg-dim`,children:c.meta??""})]})]},c.key))})]})}var lfe=Uw(lD),cD={top:84,bottom:lfe.bottom,topPhone:84,bottomPhone:lfe.bottomPhone},dfe=cD,[lGe,dGe]=Cv("Testimonials"),cGe={type:Gs,props:{...ze,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[$s]:[{type:"Text",props:{...Ge,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Re("quote",vt,{size:16,lineHeight:1.6}),{type:Gs,props:{...ze,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[$s]:[Re("name",Ge,{...ql,weight:500,letterSpacing:.04}),Re("role",vt,{textStyle:"body-5"})]}}]}},pGe={name:"Testimonials",boxProps:e=>({...qd,direction:"column",gap:44,sectionBorder:{top:1},...Dm(e,dfe)}),box:[...bp,...lh(dfe)],parts:[{kind:"group",name:"Heading",props:{...ze,gap:16},parts:[{...lGe,props:Ge},{...dGe,props:Ge,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[cGe]}}],site:HZ("title"),drop:{...Xd,...Zd,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Testimonials' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the Reviews block, which is always own-box here"}};vn({Testimonials:pGe});var Rc={inline:"border-b border-line py-[120px] max-view-desktop:py-20",ownBox:"border-b border-line pt-0 pb-[120px] max-view-desktop:pt-0 max-view-desktop:pb-20"};import{phoneKey as Y5,tabletKey as pD}from"efficient-easel/draw";var mGe={textStyle:"body-5",...po("label",14),letterSpacing:.05,lineHeight:1.5},uGe={type:Gs,props:{...ze,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[Y5("share")]:"content",[Y5("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[$s]:[Re("label",vt,{...Pa(14),letterSpacing:.05,lineHeight:1.5}),Re("value",{...Ge,align:"right"},{...mGe,align:"right"})]}},cfe={[ch]:OP},fGe=["dynamic","source","finish","size","wheel"],L1=Qs("SpecTable",{slots:{template:[uGe]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...ze,direction:"row",share:"content",gap:48,[pD("gap")]:80,[Y5("gap")]:80,...cfe}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),hGe=L1.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(fGe.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),V5=Uw(Rc.ownBox),gGe={...L1,parts:hGe,boxProps:(e,t)=>{let o=typeof L1.boxProps=="function"?L1.boxProps(e,t):L1.boxProps;return{...o,sectionPaddingBottom:V5.bottom,sectionPaddingBottomPhone:V5.bottomPhone,...cfe,[pD("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[pD("sectionPaddingBottom")]:V5.bottomPhone,[Y5("gap")]:36,...V5.line?{sectionBorder:EP({bottom:1})}:{}}}};vn({SpecTable:gGe});vn({ProductGrid:Qs("ProductGrid",{slots:{[Et]:[Spe()]},pressHeading:!0})});vn({Events:Qs("Events",{slots:{[Et]:OH()},coreProps:{sectionAccent:KE},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});vn({Collections:Qs("Collections",{slots:{[Et]:[AH()]},roomBelow:Rde,pressHeading:!0})});vn({GalleryB:Qs("GalleryB",{slots:{[Et]:[LH()]},roomBelow:{bottom:li.bottom,bottomPhone:PR},pressHeading:!0})});vn({[xr]:{name:"Product hero",box:[...cX],boxProps:{direction:"column",gap:0,gapPhone:0,...pt(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[hw]:gw},slots:e=>({[Et]:rH(e)})}]}});var mD=Uw(Rc.ownBox);vn({FitmentTable:Qs("FitmentTable",{slots:{[t5]:[lpe()],[Eu]:[dpe()]},roomBelow:{bottom:mD.bottom,bottomPhone:mD.bottomPhone},boxProps:mD.line?{sectionBorder:EP({bottom:1})}:{},pressHeading:!0})});var bGe=e=>({type:Gs,props:{...ze,name:"Row",mirrorCards:e?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[$s]:[{type:Gs,props:{...ze,name:"Words",direction:"column",gap:16},slots:{[$s]:[Re("eyebrow",Ge,{...Pa(13),color:"accent"}),Re("title",Ge,{textStyle:"heading-2",...po("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Re("copy",vt,{textStyle:"body-1",...po("body",15),lineHeight:1.6})]}},{type:Gs,props:{...ze,name:"Picture",direction:"column",gap:12},slots:{[$s]:[{type:"ImageBlock",props:{[Ds]:"image",aspect:"1/1",fit:"contain"}},Re("tag",{...vt,align:"right"},{...Pa(11),align:"right"})]}}]}}),wGe={name:"Feature Rows",boxProps:{...qd,...MZ,direction:"column",gap:0},box:bp,parts:[{kind:"core",keep:"rest",slots:e=>({template:[bGe(e.startLeft===!0)]})}]};vn({DetailRows:wGe});import{phoneKey as fD}from"efficient-easel/draw";var q5=e=>[...bp.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>TP(t,n)],...lh(e)],hD=(e,t,o)=>(n,r)=>({...qd,sectionAccent:TP(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...Dm(n,e)}),gD=(e,t,o)=>({kind:"text",key:e,role:"heading",props:Ge,style:{textStyle:"heading-2",...po("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),bD=(e,t,o={})=>({kind:"group",name:"Heading",props:{...ze,gap:e,gapPhone:e,...o},parts:t}),wD=(e={})=>({kind:"core",keep:"rest",props:kP,...e}),j5=cD,[xGe]=Cv("ReviewForm"),yGe=()=>({name:"Review Form",boxProps:hD(j5,48,32),box:q5(j5),parts:[bD(16,[{...xGe,props:Ge},gD("title",1,-.02)]),wD()],pressKeepsEmpty:["eyebrow","title"],drop:{...Xd,...Zd,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[vGe]=Cv("Reviews"),uD=e=>({...Pa(12),letterSpacing:e}),kGe={type:Gs,props:{...ze,name:"Card",gap:16,...pt(40,40,32,32),sectionAccent:0},slots:{[$s]:[{type:"RatingBlock",props:{[Ds]:"rating"}},Re("title",Ge,{textStyle:"heading-1",...po("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Re("quote",vt,{textStyle:"body-1",...po("body",15),lineHeight:1.65}),{type:Gs,props:{...ze,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[fD("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[$s]:[Re("name",Ge,uD(.22)),Re("dateLabel",{...vt,align:"right"},{...uD(.18),align:"right"}),Re("role",{...vt,align:"right"},{...uD(.18),align:"right"})]}}]}},SGe=()=>({name:"Reviews",boxProps:hD(j5,48,32),box:q5(j5),parts:[bD(16,[{...vGe,props:Ge},gD("title",1,-.02)]),wD({slots:{template:[kGe]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...Xd,...Zd,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Reviews' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the reviews, which are always own-box here"}}),pfe={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},TGe=()=>({name:"Booking Form",boxProps:hD(pfe,40,40),box:q5(pfe),parts:[bD(16,[SP("eyebrow",{...po("label",12),weight:600,letterSpacing:.24,color:"accent"}),gD("heading",.98,-.025),{kind:"text",key:"intro",props:{...vt,maxWidth:660},style:{textStyle:"heading-1",...po("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),wD()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...Xd,...Zd}}),mfe={top:88,bottom:88,topPhone:64,bottomPhone:64},EGe=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...qd,direction:"column",align:"center",gap:20,gapPhone:20,...Dm(e,mfe)}),box:[...bp,...lh(mfe)],parts:[{...SP("eyebrow"),props:{...Ge,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...Ge,align:"center",maxWidth:720},style:{textStyle:"heading-1",...po("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...Ge,align:"center",maxWidth:560},style:{textStyle:"body-1",...po("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...ze,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[fD("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...BZ,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...Fv,align:"center",icon:"none"},style:{...Pm(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...Xd,...Zd}}),ufe={top:60,bottom:0,topPhone:60,bottomPhone:0},PGe=()=>({name:"Contact Form",boxProps:(e,t)=>({...qd,sectionAccent:TP(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...Dm(e,ufe)}),box:q5(ufe),parts:[{kind:"group",name:"Header",props:{...ze,direction:"row",align:"center",share:"content",phoneRow:2,[fD("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[SP("routingNumber"),{kind:"text",key:"routingTagline",props:vt,style:{textStyle:"heading-1",...po("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:DZ(e.sectionAccent??0,t)})}}],drop:{...Xd,...Zd}});vn({ContactRouting:PGe(),ReviewForm:yGe(),AppointmentBooking:TGe(),Reviews:SGe(),CheckoutCTA:EGe()});var ffe={top:40,bottom:40,topPhone:40,bottomPhone:40},hfe={textStyle:"heading-1",...pJ("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},xD=["heading","intro"],gfe=[Et,Fa,Ba,Ha];function CGe(e,t){let o=(t?N0:tq)(So,e);return Object.fromEntries(gfe.map(n=>[n,o[n]]))}var _Ge=()=>({name:"List",boxProps:e=>({...qd,direction:"column",gap:24,gapPhone:24,...Dm(e,ffe)}),box:[...bp,...lh(ffe)],parts:[{kind:"group",name:"Heading",props:{...ze,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...Ge,tag:"h1"},style:hfe,when:e=>!hF(e)},{kind:"text",key:"heading",role:"heading",props:{...Ge,tag:"h2"},style:hfe,when:hF},{kind:"text",key:"intro",role:"body",props:vt,style:{textStyle:"body-1",...po("body",15)}}]},{kind:"core",keep:"rest",props:kP,derive:{reads:[...gfe],props:(e,t)=>CGe(e,t.press===!0)}}],pressKeepsEmpty:xD,drop:{...Xd,...Zd,[GP]:"read by the heading part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}});vn({AlloyWheelsListing:_Ge()});var bfe={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as RGe,useContext as NGe}from"react";function mt(e){return Wt}import{Fragment as AGe,jsx as $w}from"react/jsx-runtime";var OGe=mt("ProductCard")("buy"),Eo={headingSmall1:"text-[length:var(--size-headingSmall,22px)]",headingSmall2:"text-[length:var(--size-headingSmall,30px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},Kw=RGe("catalog");function ws(){return NGe(Kw)==="catalog"}function Uu({children:e}){let t=ws();return $w(AGe,{children:e??(t?$w(D,{"aria-hidden":!0}):null)})}function Vw({children:e}){return $w(Uu,{children:e?$w(D,{children:e}):null})}function X5({children:e}){return $w(Uu,{children:e?$w(D,{className:"[.sf-card-rows>*>&]:self-end",...OGe,children:e}):null})}var wfe={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:EE(Eo.label),writable:!0,sized:!0}},xfe={sku:{label:"SKU",follows:"Label",builtIn:EE(Eo.label),writable:!0,sized:!0}},yfe={name:{label:"Name",follows:"Heading 3",builtIn:EE(Eo.headingSmall2),writable:!0,sized:!0}};kre({ProductPrice:bfe,ProductEyebrow:wfe,ProductName:yfe,ProductSku:xfe});function Yw(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as LGe}from"react/jsx-runtime";import{OpacityIcon as IGe}from"efficient-easel/icons";import{group as Z5}from"efficient-easel/screen/lib/document/box-fields";var vfe={fields:{_gContent:Z5("Content"),eyebrow:U("Eyebrow",Ym.eyebrow),title:j("Heading",Ym.title),body:j("Body",Ym.body),_gBackground:Z5("Background image"),imageSrc:et("Image","image/*"),overlay:ae("Overlay",LGe(IGe,{}),0,100,5,60,"%"),_gButton:Z5("Button"),...gl,_gLayout:Z5("Layout")}};import{jsx as I1}from"react/jsx-runtime";import{GroundIcon as Sfe,ListIcon as FGe}from"efficient-easel/icons";function Tfe(e){let t=e?.data?.root,o=jQ(t?.props)??"";return o&&HF(o,"text").length?o:""}var yD="outsideCardTemplate",BGe={not:{context:yD,is:!0}},Ma={[yD]:(e,t)=>{let o=mp(t.appState,e.props?.id);if(o!==void 0)return o===null&&!Tfe(t.appState)},[rj]:(e,t)=>{let o=Zl(t.appState,e.props?.id);return o===void 0?void 0:!o.inCopy},[ij]:(e,t)=>Zl(t.appState,e.props?.id)?.inCopy};function $r(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?I1(sa,{noun:"link"}):t==="colour"?I1(Sfe,{}):I1(FGe,{}),a={...le(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return ht(a,BGe)}function Nc(){return $r("Link from","link")}var HGe={any:[{field:Go,set:!1},{context:yD,is:!0,default:!0}]};function Gu(e){return ht(e,HGe)}function F1(e){return e.kind==="link"?wr(J(e.label)):e.kind==="colour"?DGe(e.label):e.multiline?qe(e.label):we(e.label)}function DGe(e){return{type:"custom",render:({value:t,onChange:o})=>I1(Yoe,{label:e,icon:I1(Sfe,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function MGe(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var kfe=new WeakMap;function za(e,t,o){let n=Object.keys(e).filter(v=>MGe(e[v]));if(!n.length)return e;let r=t.props??{},a=mp(o.appState,r.id),i=typeof a?.type=="string"?a.type:"",s=a?H4(o.appState,r.id)??"":"",l=n.map(v=>typeof r[v]=="string"?r[v].trim():""),d=lt(a?.props),c=i===Fr?mp(o.appState,a?.props?.id):null,p=c?H4(o.appState,a?.props?.id)??void 0:void 0,m=c?NE(a?.props,c.type,p):"",f=c?lt(c.props):"",g=c?`${String(c.type??"")}\0${f}\0${p??""}`:"",h=i===Fr&&!c?JSON.stringify(a?.props?.[Jj]??null):"",b=a?"":Tfe(o.appState),w=[i,s,d,m,g,h,cE(),b,WQ(),...l].join("\0"),y=kfe.get(e);y||kfe.set(e,y=new Map);let x=y.get(w);if(x)return x;let k={...e};return n.forEach((v,S)=>{let E=e[v],T=i===Fr?oh(o.appState,a,E.cardRowKind):i?nq(a,E.cardRowKind,s||void 0):HF(b,E.cardRowKind),C=E.cardRowKind==="link"&&!!i&&!T.length;if(!l[S]&&(C||(E.cardRowContent?!i||!T.length:!T.length&&!i&&b))){delete k[v];return}let P=l[S]&&!T.some(I=>I.key===l[S])?l[S]:"",B=E.cardRowKind==="list",M=(I,A)=>B&&A===0&&I.key!==l[S]?"":I.key;k[v]={...E,options:[...B?[]:E.options,...T.map((I,A)=>({label:I.label,value:M(I,A)})),...P?[{label:P,value:P}]:[]]}}),y.set(w,k),k}import{group as Pfe}from"efficient-easel/screen/lib/document/box-fields";var J5={meta:"Trailing note"},Efe={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var Cfe={fields:{_gContent:Pfe("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:J("Label"),href:wr(J("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:U("Trailing note",J5.meta),_gText:Pfe("Text"),rowField:$r("Shows","text")},resolveFields:(e,t)=>za(t.fields,e,t),showWhenFacts:Ma};import{jsx as pi,jsxs as YGe}from"react/jsx-runtime";import{ButtonIcon as jGe,ButtonIconIcon as qGe,IconAfterTextIcon as XGe,IconBeforeTextIcon as ZGe}from"efficient-easel/icons";import{SettingsField as JGe}from"efficient-easel/panel";import{useSelectedFields as Ife}from"efficient-easel/easel";import{buttonFieldSet as QGe}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as e$e}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as t$e,Segmented as o$e}from"efficient-shell/ui";function Q5(e){return typeof e=="boolean"?e:!0}import{parseOption as zGe}from"efficient-shell/format";var vD=["none","arrow-right","arrow-long-right","arrow-up-right","chevron-right","external","cart","bag","tag","email","location","play","download","search","car","phone","wheel","chat","chevron-left","package","truck","shield-check","receipt-refund"],WGe=["before","after","end"];function kD(e){return typeof e=="string"&&vD.includes(e)?e:void 0}function _fe(e,t){return kD(e)??(Q5(t)?"arrow-right":"none")}function B1(e){return zGe(WGe,"after",e)}function Rfe(e,t){return B1(e)==="end"&&Qh(t)==="fill"}function Qh(e){return e==="fill"||e==="fixed"?"fill":"fit"}function Nfe(e,t,o,{atSectionLine:n=!1}={}){let r=Qh(e);if(fr(o)){let i=Qh(o),s=fr(t)?Qh(t):i;return n?[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-tablet:max-view-desktop:w-full":"view-tablet:max-view-desktop:w-auto",s==="fill"?"max-view-tablet:w-full":"max-view-tablet:w-auto"].join(" "):[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-wide:max-view-desktop:w-full":"view-wide:max-view-desktop:w-auto",s==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto"].join(" ")}let a=r==="fill"?["w-full"]:[];if(fr(t)){let i=Qh(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as oN}from"efficient-easel/screen/lib/document/style-fields";import{group as Ofe}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as n$e}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as SD}from"react/jsx-runtime";import{LockIcon as UGe}from"efficient-easel/icons";import{FieldText as GGe}from"efficient-easel/fields";import{SettingsField as $Ge}from"efficient-easel/panel";import{keptByRow as KGe}from"efficient-easel/screen/lib/document/style-fields";function VGe(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??eoe}-words`;return SD($Ge,{label:u("Words"),icon:SD(UGe,{}),htmlFor:o,children:SD(GGe,{id:o,value:u("Set by country"),onChange:()=>{},readOnly:!0})})}}}function eN(e){return KGe(e)}function tN(e,t,o,n=[]){return DC(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?VGe():a]))}var TD=e=>_C(e==="none"?"no-symbol":e),r$e=vD.map(e=>({value:e,icon:e==="none"?Ete(TD(e),pi(UF,{value:e})):TD(e)})),Ffe=J("Button");function a$e({value:e,onChange:t}){let o=Ife(),n=o.values.href,r=typeof e=="string"?e:e&&typeof e=="object"&&"text"in e?String(e.text??""):"";return o.fields&&"href"in o.fields?pi(loe,{label:"Button",icon:pi(jGe,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):Ffe.render({value:r,field:{label:"Button"},onChange:a=>t(Noe(a))})}function i$e({value:e,onChange:t}){let o=Ife(),n=_fe(e,o.values.arrow),r=B1(o.values.iconPosition),a=Qh(o.values.widthFit)==="fill",i=TD("icon-at-end");return pi(JGe,{label:u("Icon"),icon:pi(qGe,{size:18}),value:n==="none"?void 0:pi(UF,{value:n}),children:YGe("div",{className:"flex items-center gap-2",children:[pi(t$e,{label:u("Icon"),value:n,options:r$e,onChange:t}),n!=="none"&&pi(o$e,{size:"sm",block:!0,label:u("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:pi(ZGe,{size:16}),label:pi("span",{className:"sr-only",children:u("Icon before text")}),title:u("Icon before text")},{value:"after",icon:pi(XGe,{size:16}),label:pi("span",{className:"sr-only",children:u("Icon after text")}),title:u("Icon after text")},...a?[{value:"end",icon:i,label:pi("span",{className:"sr-only",children:u("Icon at the far end")}),title:u("Icon at the far end")}]:[]]})]})})}var Afe=()=>W4(zn().theme),Lfe=QGe({lengthUnits:TC,follows:{useFill:()=>Afe().fill,useText:()=>Afe().ink,useBorder:()=>{let[e]=ac("variant"),[t]=ac("buttonColor"),{theme:o}=zn(),n=JF({variant:e,buttonColor:t}).border.width,r=fr(t)??(e==="ghost"?fq(o).text:W4(o).fill);return{width:n,color:r}},useCorners:()=>yq(zn().cornerRadiusPx),useFillOpacity:()=>JF({variant:ac("variant")[0]}).fillOpacity},usePresets:Hte,resetTo:e=>Ooe(e,u("Styles")),padding:{fallback:coe,tablet:!0},phone:e$e,say:ib});function s$e(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var Bfe={fields:{label:Loe(Ffe,e=>pi(a$e,{value:e.value,onChange:e.onChange})),labelText:Moe("label"),href:Gu({...Ve("Button link"),...oN("label")}),consentWords:eN("label"),_gButton:Ofe("Button"),rowField:$r("Shows","text"),[Go]:Nc(),...s$e(Lfe,n$e.Design),_gStyle:Ofe("Style"),variant:oN("buttonColor"),icon:{type:"custom",render:e=>pi(i$e,{value:e.value,onChange:e.onChange})},iconPosition:oN("icon"),arrow:oN("icon"),...Lfe},resolveFields:(e,t)=>tN(za(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:Ma};import{jsx as iN}from"react/jsx-runtime";import{AccentIcon as l$e,ColumnsIcon as d$e,StylesIcon as zfe}from"efficient-easel/icons";import{group as ED}from"efficient-easel/screen/lib/document/box-fields";import{newId as Dfe}from"efficient-easel/data";function nN(e,{rows:t="items",label:o="title"}={}){let n=lt(e);return n?pp(n).map(r=>({label:r.label,value:r.key})):(Array.isArray(e[t])?e[t]:[]).map((r,a)=>({label:typeof r?.[o]=="string"&&r[o].trim()||u("Card {n}",{n:a+1}),value:iq(Zo(r),a)}))}var Hfe=new WeakMap;function rN(e,t){let o=Hfe.get(e);o||Hfe.set(e,o=new Map);let n=JSON.stringify(t),r=o.get(n);return r||o.set(n,r={...e,options:[...e.options,...t]}),r}function Mfe(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>Dfe(t),enumerable:!0})}function aN(e,t="items"){if(!Array.isArray(e[t])||lt(e))return e;let o=e[t],n=typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",r=c=>c&&typeof c=="object"&&typeof c.key=="string"?c.key:"",a=!!n&&!o.some(c=>r(c)===n),i=new Set,s=e.highlightedCard,l=!1,d=o.map((c,p)=>{if(!c||typeof c!="object")return c;let m=r(c);if(m&&!i.has(m))return i.add(m),c;let f=!m&&a&&n===String(p+1);if(m||f){let g=Dfe("card");return i.add(g),l=!0,f&&(s=g),{...c,key:g}}return c});return l?{...e,[t]:d,highlightedCard:s}:e}import{isNodeList as c$e}from"efficient-easel/data";var p$e=e=>c$e(e.template)&&e.template.length>0;function m$e(e,t){let o=p$e(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,rN(r,nN(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,h$e(r)]]:[[n,r]]))}var u$e=Object.fromEntries(Sv("Cards").filter(e=>!e.everySource).map(e=>[e.key,F1(e)])),f$e=Object.fromEntries(Sv("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,F1(e)])),Wfe=new WeakMap;function h$e(e){let t=Wfe.get(e);return t||Wfe.set(e,t={...e,arrayFields:u$e}),t}var Ufe={fields:{_gSource:ED("Source"),dataSource:Qt("Card content","Manual"),[Tb]:Eb(),_gContent:ED("Content"),eyebrow:U("Eyebrow",G0.eyebrow),eyebrowLook:le("Eyebrow style",iN(zfe,{}),[...qs],wp("Cards")),title:j("Heading",G0.title),items:{type:"array",label:"Cards",arrayFields:f$e,defaultItemProps:Mfe({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...zZ,highlightedCard:le("Highlighted card",iN(l$e,{}),[{label:"None",value:""}],""),highlightBadge:U("Highlight badge","Most popular"),_gStyle:ED("Style"),cardStyle:wo("Card style",iN(zfe,{}),[{label:"Cards",value:"cards",picture:QF.cards},{label:"Label only",value:"label-only",picture:QF["label-only"]}],"cards",{columns:2,cell:br}),columns:ae("Columns",iN(d$e,{}),2,4,1,3)},resolveData:(e,t)=>{let o=t?.lastData?.props,n=xre(e.props,o),r=SE(n),a=r===e.props?e:{...e,props:r},i=a.props,s=aN(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=nt(eo("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,it.Cards.headRows),n=e.props,r=m$e(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:we("Feature label"),href:wr(J("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:wp("KeyFeatures")}}:{}}}};import{jsx as g$e}from"react/jsx-runtime";import{StickyIcon as b$e}from"efficient-easel/icons";import{group as Gfe}from"efficient-easel/screen/lib/document/box-fields";var $fe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:J("Label"),count:J("Count")},getItemSummary:e=>e?.label?`${e.label}${e.count?` \xB7 ${e.count}`:""}`:"Tab"},activeTab:dn(wr(J("Active tab","All"))),_gLinks:Gfe("Links"),links:{type:"array",label:"Right links",arrayFields:{label:J("Label"),href:wr(J("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:Gfe("Style"),sticky:ne("Stick to top",!0,g$e(b$e,{}))}};import{jsx as w$e}from"react/jsx-runtime";import{StylesIcon as x$e}from"efficient-easel/icons";import{group as Kfe}from"efficient-easel/screen/lib/document/box-fields";var y$e=[...uQ],Vfe={fields:Ti({_gContent:Kfe("Content"),eyebrow:U("Chip label",tb.eyebrow),title:j("Heading",tb.title),body:j("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:we("Label"),value:J("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:U("Caption","Illustrative example"),_gStyle:Kfe("Style"),chartStyle:wo("Chart style",w$e(x$e,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:$C.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:$C.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:$C.donut}],"bars",{columns:3,cell:br}),valueSuffix:dn(U("Value suffix","%"))},y$e,Ei)};import{jsx as H$e}from"react/jsx-runtime";import{group as D$e}from"efficient-easel/screen/lib/document/box-fields";import{jsx as tt,Fragment as CD,jsxs as bd}from"react/jsx-runtime";import{useId as v$e,useState as k$e}from"react";import{InspectorUpLevel as H1}from"efficient-easel/chrome";import{useEasel as S$e}from"efficient-easel/easel";import{ListField as Xfe}from"efficient-easel/fields";import{SettingsField as Zfe}from"efficient-easel/panel";import{ClockIcon as Yfe,ContrastIcon as T$e,GlobeIcon as E$e,LinkIcon as P$e,LocationIcon as C$e,PhoneIcon as _$e,SquareIcon as R$e,TypeIcon as _D}from"efficient-easel/icons";import{useSectionOps as N$e}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as O$e}from"efficient-easel/draw";var RD=(e,t)=>t||e?Are(e,t):u("Ungrouped");function A$e(e){let t=[];return e.forEach((o,n)=>{let r=ou(o),a=t.find(i=>i.key===r);a||(a={key:r,name:String(o?.groupName??""),indices:[]},t.push(a)),a.indices.push(n)}),t}function PD({children:e}){return tt("div",{style:{fontSize:11,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--ink-faint)",margin:"14px 0 6px"},children:e})}var Jfe={width:"100%",height:32,textAlign:"left",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"0 12px",fontSize:12,border:"1px solid var(--line-strong)",borderRadius:6,background:"transparent",color:"inherit",cursor:"inherit"},L$e={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},Qfe={...L$e,color:"var(--status-danger-soft-ink)"};function Zp({label:e,value:t,placeholder:o,textarea:n,icon:r,onChange:a,onBlur:i,onKeyDown:s}){let l=v$e();return tt(Zfe,{label:e,icon:r??tt(_D,{}),htmlFor:l,children:n?tt("textarea",{id:l,value:t,placeholder:o,onChange:d=>a(d.target.value)}):tt("input",{id:l,type:"text",value:t,placeholder:o,onChange:d=>a(d.target.value),onBlur:i,onKeyDown:s})})}var I$e=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],F$e=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function jfe({label:e,icon:t,options:o,value:n,onChange:r}){return tt(Zfe,{label:e,icon:t,children:tt("div",{role:"group","aria-label":e,style:{display:"flex",gap:4,flex:1},children:o.map(a=>{let i=n===a.value;return tt("button",{type:"button","aria-pressed":i,onClick:()=>r(a.value),style:{flex:1,padding:"6px 8px",fontSize:12,borderRadius:6,cursor:"pointer",border:`1px solid ${i?"var(--sf-accent)":"var(--line-strong)"}`,background:i?"var(--sf-accent)":"transparent",color:i?"var(--sf-on-accent)":"inherit",fontWeight:i?500:400},children:u(a.label)},a.value)})})})}function qfe({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||gn.mapTheme,a=gn;return bd(CD,{children:[!o&&tt(PD,{children:u("Section")}),tt(Zp,{label:u("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),tt(Zp,{label:u("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),tt(Zp,{label:u("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:bd(CD,{children:[tt(PD,{children:u("City strip")}),tt(Zp,{label:u("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),tt(Zp,{label:u("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),tt(jfe,{label:u("Shape"),icon:tt(R$e,{}),options:F$e,value:WP(e.imageShape),onChange:i=>t({imageShape:i})}),tt(PD,{children:u("Map & Theme")}),tt(jfe,{label:u("Map theme"),icon:tt(T$e,{}),options:I$e,value:r,onChange:i=>t({mapTheme:i})})]})]})}function B$e({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((f,g)=>ou(f)===t?g:-1).filter(f=>f>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(ou).filter(f=>f!==t)),[d,c]=k$e(t),p=f=>o(e.map(g=>ou(g)===t?{...g,...f}:g)),m=()=>{let f=d;if(f!==t){if(l.has(f)){c(t);return}o(e.map(g=>ou(g)===t?{...g,group:f}:g)),a(f)}};return bd("div",{className:"sf-locations-view",children:[tt(H1,{inline:!0,name:u("Section"),onSelect:n,title:RD(t,s)}),tt(Zp,{label:u("Group heading"),value:d,placeholder:u("e.g. Americas"),onChange:c,onBlur:m,onKeyDown:f=>{f.key==="Enter"&&f.currentTarget.blur()}}),l.has(d)&&d!==t&&tt("p",{className:"sf-note sf-note--error",role:"alert",children:u("Another group already uses this heading \u2014 pick a different one.")}),tt(Zp,{label:u("Group name"),value:s,placeholder:u("Shown beside the heading"),onChange:f=>p({groupName:f})}),tt(Xfe,{label:u("Cities in this group"),noun:u("city"),items:i.map(f=>e[f]),onChange:f=>o(Lre(e,t,f)),newItem:()=>({...f6,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(f,g)=>bd("button",{type:"button",style:Jfe,onClick:()=>r(i[g]),children:[tt("span",{children:f?.name||u("City")}),tt("span",{"aria-hidden":"true",children:"\u203A"})]})}),tt("div",{style:{marginTop:12},children:tt("button",{type:"button",style:Qfe,onClick:()=>{o(e.filter(f=>ou(f)!==t)),n()},children:Qn("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function ehe({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=Ore(),r=Lne(),a=A$e(o),{appState:i,selectedItem:s}=S$e(h=>h),l=N$e(),d=s?.props??{},c=h=>{if(!s)return;let b=(i.data.content??[]).findIndex(w=>w.props.id===s.props.id);b<0||l.replaceComponent(O$e,b,{type:s.type,props:{...s.props,...h}})},p=(h,b)=>t(o.map((w,y)=>y===h?{...w,...b}:w)),m=()=>{let h=new Set(a.map(y=>y.key)),b=a.length+1,w=`Group ${b}`;for(;h.has(w);)w=`Group ${++b}`;return w};if(n.level==="texts")return bd("div",{className:"sf-locations-view",children:[tt(H1,{inline:!0,name:u("Locations"),onSelect:()=>rd({level:"groups"}),title:u("Texts")}),tt(qfe,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let h=o[n.index];return h?bd("div",{className:"sf-locations-view",children:[tt(H1,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>rd({level:"city",index:n.index}),title:u("Image")}),tt(Ute,{value:h.photo||"",onChange:b=>p(n.index,{photo:b}),label:"Image",accept:"image/*"})]}):f()}if(n.level==="map"){let h=o[n.index];return h?bd("div",{className:"sf-locations-view",children:[tt(H1,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>rd({level:"city",index:n.index}),title:u("Map")}),tt(QC,{value:h.geocode,onChange:b=>p(n.index,{geocode:b}),label:"Coordinates"}),tt(Zp,{label:u("Directions link"),icon:tt(P$e,{}),value:String(h.mapsUrl??""),onChange:b=>p(n.index,{mapsUrl:b})})]}):f()}if(n.level==="city"){let h=n.index,b=o[h];if(!b)return f();let w=ou(b),y=(k,v)=>p(h,{[k]:v}),x=(k,v,S,E=!1)=>tt(Zp,{label:v,icon:S,textarea:E,value:String(b[k]??""),onChange:T=>y(k,T)});return bd("div",{className:"sf-locations-view",children:[tt(H1,{inline:!0,name:RD(w,String(b.groupName??"")),onSelect:()=>rd({level:"group",key:w}),title:b.name||u("City")}),x("name",u("Location name"),tt(_D,{})),x("state",u("State / Province"),tt(_D,{})),x("country",u("Country"),tt(E$e,{})),x("address",u("Address"),tt(C$e,{}),!0),x("phone",u("Phone"),tt(_$e,{})),x("hours",u("Opening hours"),tt(Yfe,{})),x("timezone",u("Timezone chip"),tt(Yfe,{})),tt("div",{style:{marginTop:12},children:tt("button",{type:"button",style:Qfe,onClick:()=>{t(o.filter((k,v)=>v!==h)),rd({level:"group",key:w})},children:u("Delete city")})})]})}if(n.level==="group")return a.some(h=>h.key===n.key)?tt(B$e,{cards:o,groupKey:n.key,onChange:t,onBack:()=>rd({level:"groups"}),onOpenCity:h=>rd({level:"city",index:h}),onNavigate:h=>rd({level:"group",key:h})},n.key):f();function f(){return bd("div",{className:"sf-locations-view",children:[tt(qfe,{props:d,setSection:c}),!r&&tt(CD,{children:g()})]})}function g(){return tt(Xfe,{label:u("Locations"),noun:u("group"),items:a,onChange:h=>{let b=h.find(w=>!a.some(y=>y.key===w.key));t(Ire(o,h.map(w=>w.key),w=>[{...f6,group:w,groupName:""}])),b&&rd({level:"group",key:b.key})},newItem:()=>({key:m(),name:"",indices:[]}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,above:a.length===0?tt("div",{style:{fontSize:12,color:"var(--ink-faint)",padding:"4px 0"},children:u("No locations yet.")}):void 0,renderRow:h=>bd("button",{type:"button",style:Jfe,onClick:()=>rd({level:"group",key:h.key}),children:[tt("span",{style:{fontWeight:500},children:RD(h.key,h.name)}),bd("span",{style:{color:"var(--ink-faint)"},children:[Qn("{n} city","{n} cities",h.indices.length)," \u203A"]})]})})}return f()}var the={fields:{_gOffices:D$e("Offices"),dataSource:Qt("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>H$e(ehe,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,o=t.locations??[];if(!NC(o))return e;let n=await OC(o,i=>{let s=UP(i.region);return[String(i.address??"").replace(/\s*\n+\s*/g,", "),i.name,String(i.state??"").trim()||s.state,String(i.country??"").trim()||s.country].map(l=>String(l??"").trim()).filter(Boolean).join(", ")}),{[lE]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>eo("ContactLocations",t,e.props)};import{jsx as ohe}from"react/jsx-runtime";import{ClockIcon as M$e,TagIcon as z$e}from"efficient-easel/icons";var W$e=[...xQ],nhe={fields:Ti({title:U("Heading",bF.title),zeroText:dn(U("At zero",bF.zeroText)),endsAt:Voe("Ends",ohe(M$e,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:ne("Unit labels",!0,ohe(z$e,{}))},W$e,Ei)};import{jsx as D1,jsxs as U$e}from"react/jsx-runtime";import{Suspense as G$e,lazy as $$e,useState as K$e}from"react";import{Button as V$e}from"efficient-shell/ui";import{CodeIcon as Y$e}from"efficient-shell/icons/efficient";import{SettingsField as j$e}from"efficient-easel/panel";import{iconOf as q$e}from"efficient-easel/screen/lib/document/box-fields";var X$e=$$e(()=>import("./chunks/CustomHtmlCodeWindow-LITJEQFG.js"));function Z$e({value:e,onChange:t}){let[o,n]=K$e(!1);return U$e(j$e,{label:u("HTML"),icon:q$e(D1(Y$e,{})),children:[D1(V$e,{variant:"secondary",onClick:()=>n(!0),children:u("Edit code")}),o?D1(G$e,{fallback:null,children:D1(X$e,{open:!0,onClose:()=>n(!1),value:typeof e=="string"?e:"",onChange:t})}):null]})}var rhe={fields:{html:{type:"custom",label:"HTML",render:({value:e,onChange:t})=>D1(Z$e,{value:e,onChange:t})}}};import{jsx as ND}from"react/jsx-runtime";import{StylesIcon as J$e,WeightIcon as Q$e,WidthIcon as eKe}from"efficient-easel/icons";import{keptByRow as tKe}from"efficient-easel/screen/lib/document/style-fields";var oKe={any:[{field:"style",set:!1},{field:"style",is:xh}]},nKe={not:{field:"style",is:"none"}},ahe={fields:He({style:wo("Style",ND(J$e,{}),goe.map(e=>({...e,picture:voe(e.value)})),xh,{columns:3,cell:br}),spacing:tKe("sectionPaddingTop"),thickness:ae("Thickness",ND(Q$e,{}),1,8,1,1,i2),...nd(i2,"thickness"),lengthPct:ae("Length",ND(eKe,{}),10,100,1,100,s2),...nd(s2,"lengthPct")},[[["thickness"],oKe],[["lengthPct"],nKe]]),resolveFields:(e,{fields:t})=>{let o=UC[GC(e.props.spacing)],n=Sp({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return c2(t,n)}};import{jsx as AD}from"react/jsx-runtime";import{HashIcon as rKe,StickyIcon as aKe,TargetIcon as iKe}from"efficient-easel/icons";import{group as she,select as sKe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as jw}from"efficient-easel/screen/lib/document/device-fields";var OD={title:"On this page"},ihe={label:"Contents",defaultProps:{title:OD.title,sticky:!0}};var lhe={fields:{title:jw("desktop",U("Heading",OD.title)),_gList:jw("desktop",she("List")),[l_]:jw("desktop",sKe("Number",AD(rKe,{}),QJ,eQ)),markCurrent:jw("desktop",ne("Mark the current section",!1,AD(iKe,{}),"The row of the section a reader is in stands out as they scroll.")),_gStick:jw("desktop",she(Q4)),sticky:jw("desktop",ne(Q4,!0,AD(aKe,{})))}};import{group as lKe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as LD}from"efficient-easel/screen/lib/document/device-fields";var M1={hint:"Search questions",noMatchText:"No question matches your search."},dhe={label:"List search",defaultProps:{hint:M1.hint,noMatchText:M1.noMatchText}};var che={fields:{_gContent:LD("desktop",lKe("Content")),hint:LD("desktop",dn(U("Hint",M1.hint))),noMatchText:LD("desktop",dn(U("No match",M1.noMatchText)))}};import{group as mhe}from"efficient-easel/screen/lib/document/box-fields";var sN={toc:"On this page"},phe={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var uhe={fields:{_gContent:mhe("Contents"),tocTitle:U("Contents heading",sN.toc),_gSections:mhe("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:we("Contents label"),heading:we("Title"),body:qe("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as fhe}from"efficient-easel/screen/lib/document/box-fields";var hhe={fields:{_gContent:fhe("Content"),eyebrow:U("Eyebrow",$m.eyebrow),title:j("Heading",$m.title),deck:j("Deck / standfirst",$m.deck),_gMeta:fhe("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:we("Label"),value:we("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var lN=[{label:"Label",value:"Value",desc:"Short description of this card."},{label:"Label",value:"Value",desc:"Short description of this card."},{label:"Label",value:"Value",desc:"Short description of this card."}],ghe={label:"Document Detail Cards",defaultProps:{cards:[]}};var bhe={fields:{cards:fb({type:"array",label:"Cards",arrayFields:{label:we("Label"),value:we("Value"),desc:qe("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},lN)}};import{jsx as dKe}from"react/jsx-runtime";import{PageIcon as cKe}from"efficient-easel/icons";import{group as pKe}from"efficient-easel/screen/lib/document/box-fields";var qw={metaLabel:W.label,metaValue:W.value},whe={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var xhe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:J("Tab label"),href:Ve("Links to"),current:ne("Current page",!1,dKe(cKe,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:pKe("Trailing note"),metaLabel:U("Note label",qw.metaLabel),metaValue:U("Note value",qw.metaValue)}};import{jsx as mKe}from"react/jsx-runtime";import{StylesIcon as uKe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as fKe}from"efficient-easel/screen/lib/document/box-fields";var yhe={fields:{eyebrow:U("Eyebrow",W.eyebrow),...nl("align",{access:fKe}),eyebrowLook:le("Look",mKe(uKe,{}),qs,PP)}};import{jsx as khe}from"react/jsx-runtime";import{ChevronIcon as hKe,LinkIcon as gKe}from"efficient-easel/icons";import{group as FD}from"efficient-easel/screen/lib/document/box-fields";var $u={num:W.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},ID=Dn.FAQ,vhe={label:"Q&A",inline:!0,fields:ID,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var She="faqOnTemplate",bKe={not:{context:She,is:!0}},wKe={[She]:e=>AZ("FAQ",e.props??{})},xKe=new Set([fX,...hX]);function yKe(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||xKe.has(t))}var The={fields:{_gContent:FD("Content"),num:U("Number",$u.num),title:j("Heading",$u.title),linkText:U("Button",$u.link),linkHref:Ve("Link"),_gQuestions:FD("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:we("Question"),answer:qe("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:FD("Layout"),defaultOpen:ne("Open first answer",!0,khe(hKe,{})),openFromLink:ne("Open from a link",!1,khe(gKe,{}),"A link to a question opens its answer. Each question gets an anchor made from its words, after the section's Anchor."),...ID},resolveFields:(e,{fields:t})=>{let o=nt(t,e.props.headPlacement,it.FAQ.headRows);return Ti(o,yKe(o),bKe)},showWhenFacts:wKe};import{jsx as Ui,Fragment as dN,jsxs as kKe}from"react/jsx-runtime";import{useContext as SKe}from"react";import{SettingsField as _he}from"efficient-easel/panel";import{FieldSelect as Rhe}from"efficient-easel/fields";import{BlogPostIcon as Nhe}from"efficient-easel/icons";import{ScreenDocumentContext as TKe}from"efficient-easel/screen/components/ScreenDocumentContext";var Ehe=Pw({fetch:async(e,t)=>await Kd().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:Sn});import{useEffect as Phe,useRef as vKe,useState as BD}from"react";function eg(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function Xw({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=BD(null),[s,l]=BD(!1),[d,c]=BD(!1),p=vKe(!0);return Phe(()=>(p.current=!0,e().then(m=>{p.current&&i(m)}),()=>{p.current=!1}),[]),Phe(()=>{if(!n?.slug||a===null)return;let m=t(a,n);if(!m)return;let f=o(m);eg(f,n)&&r(f)},[a]),{rows:a,loading:a===null,refreshing:s,errored:d,refresh:()=>{n?.slug&&(l(!0),c(!1),e(!0).then(m=>{if(!p.current)return;i(m);let f=t(m,n);f&&r(o(f))}).catch(()=>{p.current&&c(!0)}).finally(()=>{p.current&&l(!1)}))}}}function Che(e,t){return{label:t?u("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function Zw({value:e,onChange:t}){let o=SKe(TKe);return o&&!o.capabilities.hasBlog?e?.slug?Ui(EKe,{value:e,onChange:t}):Ui(dN,{}):Ui(PKe,{value:e,onChange:t})}function EKe({value:e,onChange:t}){return Ui("div",{children:Ui(_he,{label:u("Blog post source"),icon:Ui(Nhe,{}),hint:Ui(dN,{children:u("Linked to a blog post. This editor has no blog to pick another from; choose \u201CNone (manual)\u201D to author the section yourself.")}),children:Ui(Rhe,{value:e.slug,ariaLabel:u("Blog post source"),onChange:o=>o?void 0:t(null),options:[{label:u("None (manual)"),value:""},{label:e.title||e.slug,value:e.slug}]})})})}function PKe({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=Xw({load:Ehe,resolve:(m,f)=>m.find(g=>g.slug===f.slug),snapshot:L2,value:e,onChange:t}),s=m=>{if(!m){t(null);return}let f=(o??[]).find(g=>g.slug===m);f&&t(L2(f))},l=e?.slug&&!(o??[]).some(m=>m.slug===e.slug),d=a?"error":r?"loading":"idle",c=u("Storefront \u2192 Blog"),p=a?u("Couldn\u2019t reach {place}.",{place:c}):r?u("Syncing from {place}\u2026",{place:c}):u("Linked to \u201C{name}\u201D",{name:e?.title||e?.slug||""});return kKe("div",{children:[Ui(_he,{label:u("Blog post source"),icon:Ui(Nhe,{}),hint:e?.slug?void 0:Ui(dN,{children:u("Pick a post from {place} to auto-fill this section, or keep \u201CNone (manual)\u201D to author it yourself below.",{place:c})}),children:Ui(Rhe,{value:e?.slug??"",ariaLabel:u("Blog post source"),onChange:s,readOnly:n,options:[{label:u("None (manual)"),value:""},...l?[Che({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(m=>({label:m.title,value:m.slug}))]})}),e?.slug?Ui(al,{status:d,statusText:p,onRefresh:i,busy:r,hint:Ui(dN,{children:u("Auto-fills the cover image, headline, dek, date and link from this post each time you open the editor. Those fields are hidden while a post is linked; the remaining fields stay yours to set.")})}):null]})}import{group as CKe}from"efficient-easel/screen/lib/document/box-fields";var Kr={badge:"Featured",imageDate:W.date,category:W.category,readLabel:"0 min read",date:W.date,title:"Add a *headline* for this story.",dek:"A short summary of the featured article \u2014 one or two sentences that draw the reader in.",ctaText:"Read the story",ctaHref:Jd.href},Ohe={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var _Ke=["image","imageDate","date","title","dek","ctaHref"],Ahe={fields:Ti({source:zo(Zw),_nBound:ht(il(jC),qC),image:et("Cover image","image/*"),badge:U("Badge",Kr.badge),imageDate:U("Image date",Kr.imageDate),_gContent:CKe("Content"),category:U("Category",Kr.category),readLabel:U("Read time",Kr.readLabel),date:U("Date",Kr.date),title:j("Heading",Kr.title),dek:j("Dek",Kr.dek),ctaText:U("Button",Kr.ctaText),ctaHref:Ve("Link")},_Ke,gb)};import{jsx as ir}from"react/jsx-runtime";import{phoneKey as Sr,tabletKey as ha}from"efficient-easel/draw";import{keptByRow as OVe}from"efficient-easel/screen/lib/document/style-fields";import{jsx as Lhe}from"react/jsx-runtime";import{OpacityIcon as RKe,StylesIcon as NKe}from"efficient-easel/icons";function Jw(){return{darken:ae("Darken",Lhe(RKe,{}),Ql.min,Ql.max,Ql.step,Ql.fallback,Ql.unit),darkenStyle:le("Darken style",Lhe(NKe,{}),Ov,Ov[0].value)}}var OKe={"top-left":"left-0 top-[120px]","top-center":"left-1/2 top-[120px] -translate-x-1/2","top-right":"right-0 top-[120px]",left:"left-0 top-1/2 -translate-y-1/2",center:"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",right:"right-0 top-1/2 -translate-y-1/2","bottom-left":"left-0 bottom-[120px]","bottom-center":"left-1/2 bottom-[120px] -translate-x-1/2","bottom-right":"right-0 bottom-[120px]"},AKe=`calc(${Mq} - ${G4}*2)`,Ihe=`var(${zq},${G4})`,zUt=`pointer-events-none absolute inset-y-0 left-[${Ihe}] right-[${Ihe}] z-[6] mx-auto max-w-[var(${Wq},${AKe.replace(/ /g,"_")})]`;function cN(e,t){return`pointer-events-auto absolute ${OKe[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function Fhe(e){return JE.includes(e)?e:null}import{parseOption as HD}from"efficient-shell/format";var LKe=JE,DD="top-right",IKe=["cards","dots","numbers","bar","squares","tabs","largeTabs"],MD=["cards","dots","numbers","bar","squares"],pN="cards",mN={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},uN=["tabs","largeTabs"],Bhe=!0;function fN(e){return HD(IKe,pN,e)}function Hhe(e){return HD(MD,pN,e)}function FKe(e){return HD(LKe,DD,e)}var Dhe={cards:"flex-col gap-2.5",dots:"flex-row items-center gap-2",numbers:"flex-col gap-2",bar:"h-0.5 w-[34%] max-w-[420px] gap-px overflow-hidden rounded-full",squares:"flex-col gap-0",tabs:"flex-row items-stretch w-full overflow-x-auto",largeTabs:"items-stretch border-y border-line"};function Mhe(e,t){return cN(FKe(t),Dhe[fN(e)])}function zhe(e){return`flex ${Dhe[fN(e)]}`}function Whe(e){return e.shown!==!1&&(e.count??0)>1}function BKe(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function HKe(e,t){return e===t?!0:e.length!==t.length?!1:e.every((o,n)=>o.name===t[n].name&&o.process===t[n].process&&o.video===t[n].video)}function Uhe(e,t){let o=Array.from(t,BKe);return HKe(e,o)?e:o}import{deviceField as wd}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as AVe,ClockIcon as LVe,CropIcon as Ege,GapIcon as IVe,MediaLayoutStackedIcon as Fge,LineBetweenIcon as FVe,LineSolidIcon as BVe,ListIcon as HVe,NumberedListIcon as Pge,ShadowIcon as DVe,StylesIcon as Cge,TableIcon as _ge,TargetIcon as MVe,WrapIcon as Bge}from"efficient-easel/icons";var og=eP.map(e=>e.shape),WD=e=>e!==Vs&&og.includes(String(e??""))?e:null;function tg(e){return WD(e)??(Am(e)?Vs:"auto")}function hN(e){let t=tg(e);return t==="auto"?"":B0(t)}function Ghe(e,t,o){return eX({desktop:e,phone:zD(t)!==null?t:o,tablet:o})}var DKe={tall:"view-wide:aspect-[3/4]",square:"view-wide:aspect-square",landscape:"view-wide:aspect-[4/3]",screen:"view-wide:aspect-[16/10]",video:"view-wide:aspect-[16/9]",wide:"view-wide:aspect-[2/1]",panorama:"view-wide:aspect-[21/9]",story:"view-wide:aspect-[9/16]",poster:"view-wide:aspect-[2/3]",portrait:"view-wide:aspect-[4/5]",custom:"view-wide:aspect-[var(--shape-ratio)]"},MKe={auto:"max-view-wide:aspect-auto",tall:"max-view-wide:h-auto max-view-wide:aspect-[3/4]",square:"max-view-wide:h-auto max-view-wide:aspect-square",landscape:"max-view-wide:h-auto max-view-wide:aspect-[4/3]",screen:"max-view-wide:h-auto max-view-wide:aspect-[16/10]",video:"max-view-wide:h-auto max-view-wide:aspect-[16/9]",wide:"max-view-wide:h-auto max-view-wide:aspect-[2/1]",panorama:"max-view-wide:h-auto max-view-wide:aspect-[21/9]",story:"max-view-wide:h-auto max-view-wide:aspect-[9/16]",poster:"max-view-wide:h-auto max-view-wide:aspect-[2/3]",portrait:"max-view-wide:h-auto max-view-wide:aspect-[4/5]",custom:"max-view-wide:h-auto max-view-wide:aspect-[var(--shape-ratio-phone)]"};function zKe(e,t){let o=tg(t);return o==="auto"&&WD(t)===null?null:o===Vs?t===e?null:o:o===tg(e)?null:o}var WKe={auto:"view-wide:max-view-desktop:aspect-auto!",tall:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[3/4]!",square:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-square!",landscape:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[4/3]!",screen:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[16/10]!",video:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[16/9]!",wide:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[2/1]!",panorama:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[21/9]!",story:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[9/16]!",poster:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[2/3]!",portrait:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[4/5]!",custom:"view-wide:max-view-desktop:h-auto! view-wide:max-view-desktop:aspect-[var(--shape-ratio-tablet)]!"};function zD(e){let t=tg(e);return t==="auto"&&WD(e)===null?null:t}function $he(e,t,o){let n=zD(o),r=zKe(e,zD(t)!==null?t:o);if(r===null&&n===null)return hN(e);let a=tg(e);return[r===null?hN(e):a==="auto"?"":DKe[a],r===null?"":MKe[r],n===null?"":WKe[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as Hge,VIEW_KEY_ACCESS as Oc,group as rg,phoneTwinFields as Ac}from"efficient-easel/screen/lib/document/box-fields";var UKe={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},GKe=xv.map(e=>({value:e.value,picture:_C(UKe[e.value])}));function gN(e,t){return wo("Separator",e,GKe,t,{resolve:fj})}import{jsx as $Ke}from"react/jsx-runtime";import{cloneElement as KKe}from"react";import{PaddingXIcon as VKe}from"efficient-easel/icons";import{deviceField as YKe}from"efficient-easel/screen/lib/document/device-fields";function Khe(){let e=le(Dne,$Ke(VKe,{}),lZ,dZ);return YKe("desktop",{...e,render:t=>{let o=e.render({...t,value:bP(t.value),onChange:n=>t.onChange(pZ(n))});return KKe(o,{hint:u(cZ)})}})}import{newNodeId as UD}from"efficient-easel/draw";var Vhe=["First row","Second row","Third row"],jKe="Write the words for this row.",Yhe=e=>({type:"Text",props:{...Ge,id:UD("Text"),tag:"p",text:e}}),qKe=(e,t)=>({type:ce,props:{...ze,id:UD(ce),...t?{startsOpen:!0}:{},rowTitle:[Yhe(e)],content:[{type:"Text",props:{...vt,id:UD("Text"),tag:"p",text:jKe}}]}}),XKe=e=>!Array.isArray(e)||e.length===0;function jhe(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:Vhe.map((r,a)=>qKe(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==ce||!XKe(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(Vhe[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[Yhe(i)]}}});return o?{...e,content:n}:e}import{parseOption as ZKe}from"efficient-shell/format";var z1="rowStyle",JKe=["plain","numbered","chevron"],qhe=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function Xhe(e){return ZKe(JKe,"plain",e)}var bN="flex cursor-pointer list-none items-center gap-6 py-7 [&::-webkit-details-marker]:hidden max-view-wide:gap-4 max-view-wide:py-5",wN="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",xN="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",Zhe="border-t border-line",Jhe="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",Qhe="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as QKe}from"efficient-easel/screen/lib/content/view-tiers";var yN=Dn.Flex,ege={label:"Box",fields:yN,phoneOrder:{prop:QKe("order"),slot:"content"},defaultProps:{direction:"row",justify:"start",align:"stretch",wrap:!0,content:[],share:"equal",blockSpacing:"gap",padV2:!0,sectionPaddingTop:24,sectionPaddingBottom:24}};import{jsx as tge}from"react/jsx-runtime";import{isNode as eVe}from"efficient-easel/data";import{useEasel as tVe}from"efficient-easel/easel";import{PhoneOrderField as oVe}from"efficient-easel/fields";import{slotChildRowName as nVe}from"efficient-easel/draw";import{deviceField as rVe}from"efficient-easel/screen/lib/document/device-fields";function aVe(){try{let e=tVe(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!eVe(a)||typeof t[a.type]?.render!="function"?!1:fr(a.props?.id)!==void 0):[],r=n.map(a=>a.props.id);return{blocks:n,ids:r,labelOf:a=>t[a]?.label??a}}catch{return null}}function iVe({value:e,onChange:t,readOnly:o}){let n=aVe();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return tge(oVe,{stored:"ids",value:e,ids:a,onChange:t,readOnly:o,noun:"block",hint:u("The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order."),itemLabel:s=>nVe(r[s],i,yo,void 0,ine)})}function oge(){return rVe("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>tge(iVe,{value:e,onChange:t,readOnly:o})})}import{jsx as $1}from"react/jsx-runtime";import{SettingsDefaultReset as bVe,SettingsField as wVe}from"efficient-easel/panel";import{Segmented as xVe}from"efficient-shell/ui";import{SwapIcon as yVe}from"efficient-easel/icons";import{describedAs as vVe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as kVe}from"efficient-easel/screen/lib/document/device-fields";var W1="Mirror cards",U1="off",GD=[{value:U1,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],nge={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function Ku(e){return e==="even"||e==="odd"?e:null}function rge(e){return Ku(e)??void 0}function G1(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function ng(e,t,o){return!t||e.direction!=="row"||o||Em("row",e.separator)||e.loop==="scroll"||e.line===!0||as(e)||O4(e.columns)!==""||Ej(e.columnsTablet)!==""?!1:!(rs(e.share)===""&&T0(e.wrap)!=="")}function age(e,t){let o=Ku(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var ige="view-wide:flex-row-reverse",sVe={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},lVe={left:"view-wide:text-right!",right:"view-wide:text-left!"},dVe={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},cVe={start:"view-wide:items-end!",end:"view-wide:items-start!"},pVe={start:"view-wide:max-view-desktop:justify-end!",end:"view-wide:max-view-desktop:justify-start!",center:"view-wide:max-view-desktop:justify-center!",between:"view-wide:max-view-desktop:justify-between!"},vN=(e,t)=>(typeof t=="string"?Ms(e,t):void 0)??"";function $D(e,t,o){return e?[vN(sVe,t),vN(lVe,o)].filter(Boolean).join(" "):""}function sge(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=wj(o,r,void 0).tablet;return[vN(dVe,o),a?pVe[a]:""].filter(Boolean).join(" ")}return t==="column"?vN(cVe,n):""}function KD(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||as(e)?!1:O4(e.columns)===""}function kN(e,t){let o=Ku(e.mirrorCards);return o&&KD(e,t)?{mirror:o}:null}import{isNodeList as fge}from"efficient-easel/data";import{parseOption as lge}from"efficient-shell/format";var mVe=["columns","rows-left","rows-right"],uVe=["half","third"],dge=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],cge=[{value:"half",label:"Half"},{value:"third",label:"One third"}],pge=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function fVe(e){return lge(mVe,"columns",e)}var hVe={"rows-left":"even","rows-right":"odd"},gVe={half:"equal",third:"bigRight"};function SN(e){let t=fVe(e?.arrangement);if(t==="columns")return null;let o=lge(uVe,"half",e?.imageWidth);return{mirror:hVe[t],row:{share:gVe[o],phoneReverse:e?.phoneOrder==="words"}}}var mge={ProcessSteps:{slot:"boxes",hand:SN}},uge=(e,t,o)=>fge(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function Qw(e,t){let o=mC(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===ce&&uge(o,Ce,t)){let s=Zl(e,o.props?.id)?.inCopy===!0;return kN(js(o.props??{},s),s)}let i=Ms(mge,a);if(i&&uge(o,i.slot,t))return i.hand(o.props??{})}let n=AE(e,t),r=n&&typeof n.type=="string"?Ms(mge,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function hge(e){let t=e?.[Ce];return fge(t)&&t.some(o=>o?.type===ce)}var gge="mirrorCardsIdle",VD="mirrorCardsMirrors",bge={[VD]:(e,t)=>{let o=Zl(t.appState,e.props?.id);if(o===void 0)return;let n=js(e.props??{},o.inCopy),r=Qw(t.appState,e.props?.id);if(r){let a=r.row?{...n,direction:"row",share:r.row.share}:n;return r.mirror!==null&&ng(a,!0,Bp(a).desktop)}return ng(n,G1(o),Bp(n).desktop)&&Ku(n.mirrorCards)!==null},[gge]:(e,t)=>{let o=Zl(t.appState,e.props?.id);if(o===void 0)return;let n=js(e.props??{},o.inCopy);return Qw(t.appState,e.props?.id)?!0:ng(n,G1(o),Bp(n).desktop)?!1:!(KD(n,o.inCopy)&&hge(n))}};function SVe(e=!1){return GD.map(t=>({value:t.value,label:u(t.label),title:t.value===U1?void 0:u(nge[t.value]),disabled:e}))}function TVe({value:e,onChange:t,readOnly:o}){let n=Ku(e)??U1;return $1(wVe,{label:u(W1),icon:$1(yVe,{}),action:$1(bVe,{words:$E()?.panel,label:u(W1),changed:n!==U1,detail:u("Off"),onReset:()=>t(void 0)}),children:$1(xVe,{size:"sm",block:!0,label:u(W1),value:n,onChange:r=>t(rge(r)),options:SVe(o===!0)})})}function wge(){return ht(kVe("desktop",{type:"custom",...vVe({},{type:"radio",label:W1,options:GD.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>$1(TVe,{value:e,onChange:t,readOnly:o})}),{not:{context:gge,is:!0}})}import{jsx as EVe}from"react/jsx-runtime";import{FilterIcon as PVe}from"efficient-easel/icons";import{deviceField as CVe}from"efficient-easel/screen/lib/document/device-fields";var vge="showForUnoffered",kge={[vge]:e=>wC().length===0&&e2(e.props?.[Qv])===void 0},_Ve="Show for",RVe="All";function NVe(e,t){if(!e)return;let o=wC().find(r=>r.slug===e);if(o)return{slug:o.slug,name:o.name};let n=e2(t);return n?.slug===e?n:void 0}function Sge(){let e=le(_Ve,EVe(PVe,{}),[{label:RVe,value:""}],"");return ht(CVe("desktop",{...e,render:t=>e.render({...t,value:e2(t.value)?.slug??"",onChange:o=>t.onChange(NVe(o,t.value))})}),{not:{context:vge,is:!0}})}var xge=new WeakMap;function Tge(e,t){let o=e[Qv];if(!o)return e;let n=wC(),r=e2(t?.[Qv]),a=r&&!n.some(p=>p.slug===r.slug)?r:void 0,i=xge.get(o);i||xge.set(o,i=new Map);let s=`${dte()}\0${a?`${a.slug}\0${a.name}`:""}`,l=i.get(s);l||(l={...o,options:[...o.options,...n.map(p=>({label:p.name,value:p.slug})),...a?[{label:a.name,value:a.slug}]:[]]},i.set(s,l));let d=yge.get(e);d||yge.set(e,d=new Map);let c=d.get(s);return c||d.set(s,c={...e,[Qv]:l}),c}var yge=new WeakMap;var Rge=aj,Nge={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},zVe={field:"direction",is:"tabs"},WVe={field:"line",in:[!0,!1]},UVe={field:"anchor",set:!0},YD=["fixed","screen","fill"],GVe={not:{any:[{field:"sectionHeightMode",in:YD},{field:"sectionHeightModeTablet",in:YD},{field:"sectionHeightModePhone",in:YD}]}},$Ve={context:"parent.line",is:!0},ag={not:{field:"direction",is:"accordion"}},Oge={field:"direction",is:"accordion"},Age={any:[ag,{not:{field:z1,in:["numbered","chevron"]}},{field:"columns",in:[...Pj]},{field:"phoneRow",in:[...Cj]}]},Dge="notAccordionRow",KVe={not:{context:Dge,is:!0}},VVe={[Dge]:(e,t)=>t.parent?.props?.direction!=="accordion"},qD={field:"direction",is:"row",default:"row"},ig={not:_q},dg={all:[qD,ig,{not:{field:"separator",in:xv.map(e=>e.value)}},{not:{field:"line",is:!0}}]},YVe={field:"direction",is:"column"},Mge={all:[dg,...["columns",ha("columns")].map(e=>({not:{field:e,in:Array.from({length:kE},(t,o)=>o+vE)}}))]},jVe={all:[ig,{not:{all:[qD,{field:"separator",in:xv.map(e=>e.value)}]}}]},jD={not:{all:[dg,{field:"columns",in:Array.from({length:kE},(e,t)=>t+vE)}]}},qVe="sharedColumnsFits",zge="sharedColumnsMisfit",Wge="sharedColumnsDraws",Uge="sharedColumnsPhoneDraws";function lg(e,t){return js(e.props??{},Zl(t.appState,e.props?.id)?.inCopy!==!1)}var XVe={[qVe]:(e,t)=>AR(lg(e,t)),[zge]:(e,t)=>!AR(lg(e,t)),[Wge]:(e,t)=>Bp(lg(e,t)).desktop,[Uge]:(e,t)=>Bp(lg(e,t)).phone};function Lge(e){return{all:[{not:{context:zge,is:!0}},{any:[n6,{field:e,set:!0}]}]}}var sg={not:{context:Wge,is:!0}},ex={not:{context:Uge,is:!0}},Gge="sharedRowsDraws",ZVe={[Gge]:(e,t)=>LR(lg(e,t))&&Qw(t.appState,e.props?.id)?.row===void 0},K1={not:{context:Gge,is:!0}},JVe={any:[sg,ex]},XD=sj,QVe={not:{context:VD,is:!0}},$ge="rowHanded",eYe={not:{context:$ge,is:!0}},tYe={[$ge]:(e,t)=>{let o=Qw(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},Ige={all:[ag,XD,sg,ex,QVe]},oYe={field:"direction",is:"row"},nYe={field:"align",in:["start","center","end"]},rYe={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function aYe(){let{darken:e,darkenStyle:t}=Jw();return{...Ac("darken",e,Oc),...Ac("darkenStyle",t,Oc)}}var Kge={not:{all:[dg,{field:ha("columns"),in:Array.from({length:kE},(e,t)=>t+vE)}]}};function iYe(){let e=ne(Hge,!1,ir(Bge,{})),t=o=>{let n=N4(o);return n===void 0?void 0:n==="wrap"};return{...gh(),render:o=>e.render({...o,value:t(o.value),follows:t(o.follows)??!1,onChange:n=>o.onChange(n===void 0?void 0:n?"wrap":"nowrap")})}}function sYe(){let e=ne(Hge,!0,ir(Bge,{})),t=o=>{let n=N4(o);return n===void 0?void 0:n==="wrap"};return{...gh(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!_j(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var Vge={hint:Mm},Yge={all:[XD,{any:[YVe,{all:[dg,Kge,{not:{all:[Mge,{field:ha("share"),set:!0}]}}]}]}]},lYe=ht(wd("desktop",ae("Narrows below",ir(Fge,{}),dh.min,dh.max,dh.step,Mm,{kind:"breakpoint"},{clear:Vge,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),Yge);function dYe(e,t){let o=e;return!(ch in o)||t.direction!=="column"?e:{...o,[ch]:lYe}}var jge={fields:He({_gContent:rg("Content"),rowTitle:yN.rowTitle,content:yN.content,_gCardDisplay:rg("Display"),cardDisplay:e_("desktop"),cardDisplayTablet:e_("tablet"),cardDisplayPhone:e_("mobile"),showFor:Sge(),_gLayout:rg("Layout"),direction:YC("Flex"),tabShape:wo("Tab shape",ir(Cge,{}),uN.map(e=>({label:mN[e],value:e,picture:koe[e]})),"tabs",{columns:2,cell:br}),mirrorCards:wge(),[ch]:wd("desktop",ae("Stacks below",ir(Fge,{}),dh.min,dh.max,dh.step,Mm,{kind:"breakpoint"},{clear:Vge,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[Lv]:Khe(),startsOpen:wd("desktop",ne("Starts open",!1,ir(AVe,{}))),[z1]:wd("desktop",wo("Row style",ir(Pge,{}),qhe.map(e=>({...e,picture:e.value==="numbered"?ir(Pge,{}):ir(HVe,{})})),"plain",{columns:2})),label:dn(J("Tab name")),...ri("Flex"),...Ac("justify",PC(),Oc),...Ac("align",CC(),Oc),...(()=>{let e=Ac("wrap",gh(),Oc,{phoneRow:sYe()}),t=Ac("wrap",gh(),Oc,{phoneRow:iYe()});return{wrap:t.wrap,[ha("wrap")]:t[ha("wrap")],[Sr("wrap")]:e[Sr("wrap")]}})(),[Sr("order")]:oge(),...Ac("boxShape",_w("Box shape",ir(Ege,{}),H0(og),"shape","auto"),Oc,{phoneRow:_w("Box shape",ir(Ege,{}),H0(og),"shape","auto",{phoneRest:e=>tg(e)})}),[mE]:wd("desktop",Ste(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:gN(ir(FVe,{size:18}),"none"),[j0]:wd("desktop",wo("Card style",ir(Cge,{}),mJ.map(e=>({...e,picture:Toe[e.value]})),"table",{columns:2,cell:br})),share:wd("desktop",zoe()),[ha("share")]:Goe(),[Sr("share")]:Uoe(),[Fp]:wd("desktop",le(YB,ir(_ge,{}),[...Mde],j2)),[Sr(Fp)]:wd("mobile",le(YB,ir(_ge,{}),[...zde],j2)),...$oe(),...Ac("blockSpacing",Woe(),Oc),line:ne("Line",!1,ir(BVe,{}),"A line across the blocks, with a dot on each."),upcoming:ne("Upcoming",!1,ir(LVe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:le("Join",ir(IVe,{}),FP,IP),_gShadow:rg("Shadow"),...Ac("shadow",ne("Shadow",!1,ir(DVe,{})),Oc),...Ac("fillColor",joe(),Oc),[Na]:$r("Fill content","colour"),[uP]:OVe("fillColor"),_gBackground:rg("Background image"),bgImage:wd("desktop",et("Image","image/*")),bgImagePhone:wd("mobile",et("Image","image/*")),[Jn]:$r("Image content","image",{content:!0}),...aYe(),placement:od("Content position"),_gLink:rg("Link"),link:Gu(Ve("Link to")),[Go]:Nc(),_gJump:rg("Anchor"),jumpHighlight:ne("Highlight when a link jumps here",!1,ir(MVe,{}),"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.")},[[["darken","darkenStyle","placement"],Rge],[[Sr("share")],{all:[Nge,ex]}],[[Fp],Lge(Fp)],[[Sr(Fp)],Lge(Sr(Fp))],[[Sr("wrap")],{all:[Nge,ig,ex,K1]}],[[Sr("order")],{all:[dg,ex,sg]}],[["phoneRow"],ex],[[z1],{all:[Oge,{not:{field:z1,is:"chevron"}}]}],[["tabShape"],zVe],[["rowTitle","startsOpen"],KVe],[["align","blockSpacing",ha("blockSpacing"),Sr("blockSpacing")],ag],[[ha("justify"),Sr("justify")],{all:[ig,Ige,K1]}],[[ha("align"),Sr("align")],{all:[oYe,nYe,Ige]}],[[ha("wrap")],{all:[ig,jD,Kge,sg,ag,K1]}],[[ha("shadow"),Sr("shadow")],XD],[[ha("darken"),Sr("darken"),ha("darkenStyle"),Sr("darkenStyle")],{all:[Rge,rYe]}],[["separator"],qD],[[j0],{field:j0,set:!0}],[["columns"],{any:[dg,Oge]}],[[ha("columns")],dg],[[ch],Yge],[[ha("gap")],{all:[jVe,Age]}],[["gap",Sr("gap")],Age],[["justify"],{all:[ig,JVe,ag,K1]}],[["wrap"],{all:[ig,jD,sg,ag,K1]}],[["share"],{all:[jD,sg,ag]}],[[ha("share")],{all:[Mge,sg]}],[["line"],WVe],[["upcoming"],$Ve],[["jumpHighlight"],UVe],[["boxShape",ha("boxShape"),Sr("boxShape")],GVe],[["direction","share",Sr("order")],eYe],[["join"],BF],[[Lv],BF]]),resolveData:(e,t)=>{let o=e.props,n=o[j0];return t.changed?.[j0]===!0&&uJ(n)?{...e,props:fJ(o,n,ce,Ce)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:jhe(o)}:e},resolveFields:(e,t)=>{let o=Zl(t.appState,e.props?.id)?.inCopy===!0,n=o&&AE(t.appState,e.props?.id)===null;return dYe(mYe(uYe(Tge(fYe(e,{...t,fields:za(t.fields,e,t)}),e.props),lg(e,t),o),n),e.props)},showWhenFacts:{...Ma,...lne,...bge,...tYe,...XVe,...ZVe,...kge,...VVe}},cYe=ht(rne,n6),pYe=["darken","darkenStyle",uE,Jf];function mYe(e,t){if(!t)return e;let o={...e};for(let n of pYe){if(!(n in o))continue;let{showWhen:r,...a}=o[n];o[n]=a}return o}function uYe(e,t,o=!1){let n=e;return Zf in n&&as(t)&&o?{...n,[Zf]:ht(ane,sne)}:!(Zf in n)||as(t)?e:{...n,[Zf]:cYe}}function fYe(...[e,t]){let{fields:o}=t;{if(as(lg(e,t))){let n=Sp({fallback:{top:Ci.desktop,bottom:Ci.desktop,left:Ci.side,right:Ci.side},tablet:!0,siteSide:!0});return c2(o,n)}return e.props.padV2!==!0?c2(o,Sp({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as Xge}from"react/jsx-runtime";import{ColumnsIcon as Zge}from"efficient-easel/icons";import{deviceField as Jge}from"efficient-easel/screen/lib/document/device-fields";var ZD=Dn.Grid,qge={label:"Grid",fields:ZD,defaultProps:{columns:"3",content:[]}};var Qge={fields:{columns:Jge("desktop",ae("Columns",Xge(Zge,{}),1,sX,1,dX)),mobileColumns:Jge("mobile",ae("Columns",Xge(Zge,{}),Z4,lX,1,Z4)),...ri("Grid"),content:ZD.content}};import{jsx as hYe}from"react/jsx-runtime";var e0e={fields:{text:j("Heading",W.heading),level:le("Level",hYe(sa,{noun:"heading"}),[{label:"H1",value:"1"},{label:"H2",value:"2"},{label:"H3",value:"3"},{label:"H4",value:"4"},{label:"H5",value:"5"},{label:"H6",value:"6"}],"2")}};import{jsx as Tr}from"react/jsx-runtime";import{parseOption as gYe}from"efficient-shell/format";var JD="bottom-right",QD=["outline","solid","square","bare"],eM="outline",t0e={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},o0e=!1,TN=["prev","next"],n0e={prev:"Previous slide",next:"Next slide"};function bYe(e){return gYe(QD,eM,e)}function wYe(e){return Fhe(e)??JD}var xYe="flex-row items-center gap-2";function r0e(e){return cN(wYe(e),xYe)}var yYe={outline:"grid h-10 w-10 cursor-pointer place-items-center rounded-full border border-overlay-chrome/60 text-overlay-fg transition-colors hover:border-overlay-chrome hover:bg-overlay-scrim/30",solid:"grid h-10 w-10 cursor-pointer place-items-center rounded-full border border-overlay-chrome bg-overlay-chrome text-overlay-scrim transition-colors hover:bg-overlay-chrome/85",square:"grid h-10 w-10 cursor-pointer place-items-center rounded-md border border-overlay-chrome/60 text-overlay-fg transition-colors hover:border-overlay-chrome hover:bg-overlay-scrim/30",bare:"grid h-10 w-10 cursor-pointer place-items-center text-overlay-fg transition-colors hover:text-overlay-chrome"};function a0e(e){return yYe[bYe(e)]}function i0e(e){return e.shown===!0&&(e.count??0)>1}function tx(e,t,o){if(o<=1)return t;let n=Math.min(Math.max(t,0),o-1);return e==="prev"?(n-1+o)%o:(n+1)%o}import{ClockIcon as vYe,EyeIcon as tM,OpacityIcon as kYe,PhoneIcon as l0e,PlayIcon as SYe,SlideArrowsBareIcon as TYe,SlideArrowsRoundIcon as EYe,SlideArrowsSquareIcon as PYe,SlidePickerBarIcon as CYe,SlidePickerCardsIcon as _Ye,SlidePickerDotsIcon as RYe,SlidePickerNumbersIcon as NYe,SlidePickerSquaresIcon as OYe,SquareIcon as d0e}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as AYe}from"efficient-shell/icons/efficient-looks";import{group as Vu}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as oM,deviceNote as BYe}from"efficient-easel/screen/lib/document/device-fields";var EN=Dn.Hero,s0e={label:"Hero",drawsPictures:!0,fields:EN,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};var LYe=AYe,IYe={cards:Tr(_Ye,{}),dots:Tr(RYe,{}),numbers:Tr(NYe,{}),bar:Tr(CYe,{}),squares:Tr(OYe,{})},FYe={outline:Tr(EYe,{}),solid:Tr(LYe,{}),square:Tr(PYe,{}),bare:Tr(TYe,{})},c0e={fields:{_dDevice:BYe(),_gContent:Vu("Content"),slides:EN.slides,strip:EN.strip,_gStyle:Vu("Style"),alignment:vte(),_gTexture:Vu("Texture"),showTexture:ne("Show texture",Bee,Tr(tM,{})),textureColor:pme,textureOpacity:ae("Texture opacity",Tr(kYe,{}),0,100,1,40,"%"),_gLayout:Vu("Layout"),...u5(),...fme,_gAutoplay:Vu("Auto-slide"),autoplay:ne("Auto-advance slides",!1,Tr(SYe,{})),autoplayInterval:ae("Still time per slide",Tr(vYe,{}),2,15,1,6,"s"),_gPicker:Vu("Slide picker"),showPicker:ne("Show slide picker",Bhe,Tr(tM,{})),pickerShape:wo("Slide picker shape",Tr(d0e,{}),MD.map(e=>({label:mN[e],value:e,picture:IYe[e]})),pN),pickerPlacement:od("Slide picker placement",{fallback:DD}),_gArrows:Vu("Arrows"),showArrows:ne("Show arrows",o0e,Tr(tM,{})),arrowsShape:wo("Arrows shape",Tr(d0e,{}),QD.map(e=>({label:t0e[e],value:e,picture:FYe[e]})),eM),arrowsPlacement:od("Arrows placement",{fallback:JD}),_gPhone:oM("mobile",Vu("On a phone")),phoneUpDown:oM("mobile",Te(Nee,Tr(l0e,{}),Iee(),_ee)),phoneSideways:oM("mobile",Te(Oee,Tr(l0e,{}),Fee(),Ree)),phoneWordsTop:_u.phoneWordsTop,phoneWordsBottom:_u.phoneWordsBottom,phoneBoxGap:_u.phoneBoxGap}};import{jsx as m0e}from"react/jsx-runtime";import{WidthIcon as u0e}from"efficient-easel/icons";import{BOX_NUDGE_ROW as f0e,BOX_WIDTH_ROW as rM,group as aM}from"efficient-easel/screen/lib/document/box-fields";var nM={...Dn.HeroGroup,content:{...Dn.HeroGroup.content,allow:UY}},p0e={label:WY,inline:!0,fields:nM,defaultProps:{placement:Vq,nudgeX:0,nudgeY:0,content:[]}};var h0e={fields:He({_gContent:aM("Content"),name:dn(hb(wr(J("Box name",W.boxName)))),content:nM.content,_gLayout:aM("Layout"),placement:od("Placement",{pointsFor:Aoe}),width:ae("Width",m0e(u0e,{}),V4,Y4,5,Yq,rM),...nd(rM,"width"),direction:YC("HeroGroup"),...ri("HeroGroup"),justify:PC(),align:CC(),wrap:gh(),_gNudge:aM("Nudge"),...kte({keys:{x:"nudgeX",y:"nudgeY"},min:-K4,max:K4,label:null,length:f0e}),...nd(f0e,"nudgeX"),...Sp({tablet:!0,siteSide:!0})},[[["placement"],{context:"heroGroupDepth",is:0,default:0}]]),resolveFields:(e,{fields:t,appState:o})=>{let n=typeof e.props.id=="string"?e.props.id:"";if(QE(o?.data,n)===0)return t;let r={...t};return r.width=ae("Width",m0e(u0e,{}),V4,Y4,5,jq,rM),r}};import{jsx as b0e}from"react/jsx-runtime";import{MediaIcon as DYe,OpacityIcon as MYe}from"efficient-easel/icons";import{group as V1}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as zYe,deviceNote as WYe}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as HYe}from"efficient-shell/format";var iM=Dn.HeroSingle,g0e={label:"Hero Single",drawsPictures:!0,fields:iM,defaultProps:{mediaType:Ra.HeroSingle,[_a.image]:HYe,tintColor:ls,tintOpacity:0,overlay:100,overlayColor:ls,overlayPosition:uh}};var w0e=nb("video",Ra.HeroSingle),UYe=nb("image",Ra.HeroSingle),x0e=[...g5,"tintColor","tintOpacity"],y0e={fields:rC({_dDevice:WYe(),boxNotice:x5("HeroSingle"),boxes:iM.boxes,_gStyle:V1("Style"),overlay:ae("Overlay",b0e(MYe,{}),0,100,5,100,"%"),overlayColor:t8.overlayColor,overlayPosition:t8.overlayPosition,_gLayout:V1("Layout"),...u5({tabletNumber:!1}),_gPhone:zYe("mobile",V1("On a phone")),phoneWordsTop:_u.phoneWordsTop,phoneWordsBottom:_u.phoneWordsBottom,phoneBoxGap:_u.phoneBoxGap,_gMedia:V1("Media"),mediaType:Te("Type",b0e(DYe,{}),JC,Ra.HeroSingle),mediaLayout:Vh.mediaLayout,mediaLayoutPhone:Vh.mediaLayoutPhone,...f5,videoSource:Cu.videoSource,mediaVideo:et(Vv,"video/*",Yv),youtubeUrl:Cu.youtubeUrl,videoPlayback:Cu.videoPlayback,poster:et("Video poster","image/*","Upload a poster still"),_gTint:V1("Image tint"),tintColor:u1(),tintOpacity:m1(),...f1},{parts:{media:["mediaType",...h5,"videoSource","mediaVideo","youtubeUrl","videoPlayback","poster"],image:x0e,image2:Rw},onlyFor:{image:[...x0e,"_gTint",...Rw],video:["videoSource","videoPlayback","poster"]},rules:{mediaVideo:{all:[w0e,{field:"videoSource",is:"upload",default:tl}]},youtubeUrl:{all:[w0e,{field:"videoSource",is:"youtube",default:tl}]},...b5(UYe)},fallback:Ra.HeroSingle})};import{jsx as Y1}from"react/jsx-runtime";import{BlockVideoIcon as $Ye,ClockIcon as KYe,ImageIcon as VYe,MediaIcon as YYe,PlayIcon as jYe}from"efficient-easel/icons";import{group as PN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as ox}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as GYe}from"efficient-shell/format";var sM=Dn.HeroSlide,v0e={label:"Hero Slide",fields:sM,defaultProps:{mediaType:Ra.HeroSlide,videoSpeed:100,[_a.image]:GYe,tintColor:ls,overlay:0}};var Yu=nb("video",Ra.HeroSlide),qYe=nb("image",Ra.HeroSlide),k0e=[...g5,"tintColor","overlay"],S0e={fields:rC({_gContent:PN("Content"),name:dn(hb(J("Slide name",W.slideName))),process:dn(U("Reel label","Label")),groupNotice:x5("HeroSlide"),groups:sM.groups,_gMedia:PN("Media"),mediaType:Te("Type",Y1(YYe,{}),JC,Ra.HeroSlide),mediaLayout:Vh.mediaLayout,mediaLayoutPhone:Vh.mediaLayoutPhone,videoSource:Cu.videoSource,mediaVideo:ox("desktop",et(Vv,"video/*",Yv,{frame:"videoFrame"})),mediaVideoPhone:ox("mobile",et(Vv,"video/*",Yv,{frame:"videoFramePhone"})),videoFramePhone:Ep(),mediaVideoAv1:ox("desktop",et(SF,"video/mp4",TF)),mediaVideoAv1Phone:ox("mobile",et(SF,"video/mp4",TF)),youtubeUrl:Cu.youtubeUrl,videoPlayback:Cu.videoPlayback,videoSpeed:ae("Playback speed",Y1(jYe,{}),25,100,5,100,"%"),loadingShows:qoe("Show while loading",Y1(KYe,{}),{frame:Y1($Ye,{}),image:Y1(VYe,{})}),videoFrame:Ep(),...f5,poster:ox("desktop",et("Image","image/*","Choose an image")),posterPhone:ox("mobile",et("Image","image/*","Choose an image")),_gTint:PN("Image tint"),tintColor:u1(),overlay:m1(),...f1,_gOverlay:PN("Overlay"),overlayColor:o8.overlayColor,overlayPosition:o8.overlayPosition},{parts:{media:["mediaType",...h5,"videoSource","mediaVideo","mediaVideoPhone","videoFramePhone","mediaVideoAv1","mediaVideoAv1Phone","youtubeUrl","videoPlayback","videoSpeed","loadingShows","videoFrame","poster","posterPhone"],image:k0e,image2:Rw},onlyFor:{image:[...k0e,"_gTint",...Rw],video:["videoSource","videoPlayback","loadingShows","videoFrame"]},fallback:Ra.HeroSlide,rules:{mediaVideo:{all:[Yu,{field:"videoSource",is:"upload",default:tl}]},mediaVideoPhone:{all:[Yu,{field:"videoSource",is:"upload",default:tl}]},mediaVideoAv1:{all:[Yu,{field:"videoSource",is:"upload",default:tl}]},mediaVideoAv1Phone:{all:[Yu,{field:"videoSource",is:"upload",default:tl}]},youtubeUrl:{all:[Yu,{field:"videoSource",is:"youtube",default:tl}]},videoSpeed:{all:[Yu,{field:"videoSource",is:"upload",default:tl},{field:"videoPlayback",is:"background",default:iC}]},...b5(qYe),poster:{all:[Yu,PF]},posterPhone:{all:[Yu,PF]}}})};import{jsx as lM}from"react/jsx-runtime";import{phoneKey as XYe}from"efficient-easel/draw";import{CropIcon as T0e,ImageIcon as ZYe}from"efficient-easel/icons";import{group as dM,phoneTwinFields as JYe}from"efficient-easel/screen/lib/document/box-fields";var E0e={fields:{_gImage:dM("Image"),src:et("Image","image/*",void 0,{focus:"focal",focusWhen:(e,t)=>Nv(t,e.fit,e.aspect,e[XYe("aspect")])}),alt:dn(J("Alt text")),rowField:$r("Shows","image"),[Go]:Nc(),...JYe("aspect",_w("Aspect ratio",lM(T0e,{}),H0(og),"image","16/9",{more:[eme(OX)]}),void 0,{phoneRow:_w("Aspect ratio",lM(T0e,{}),H0(og),"image","16/9",{phoneRest:MX})}),fit:le(lP,lM(ZYe,{}),_X(),"cover"),focal:Ep(),focalTablet:Ep(),focalPhone:Ep(),href:Gu(Ve("Link")),_gStyle:dM("Style"),grayscale:Nw(),...Jw(),_gShape:dM("Shape"),corners:ene(),...Boe(Rte,"corners"),cornerSides:Hoe()},resolveFields:(e,t)=>nne(za(t.fields,e,t),e,t),showWhenFacts:Ma};import{jsx as QYe}from"react/jsx-runtime";import{group as P0e}from"efficient-easel/screen/lib/document/box-fields";var C0e={fields:{_gContent:P0e("Content"),eyebrow:U("Chip label","Integrations"),title:j("Heading",`Plays well with
14
14
  *your favourite apps.*`),body:j("Body",""),apps:Mr("App chips",QYe(sa,{noun:"tag"}),"App name","verbatim"),_gStat:P0e("Stat & note"),statValue:U("Big stat","100s"),statLabel:U("Stat label",""),note:U("Footnote","")}};import{jsx as j1}from"react/jsx-runtime";import{keptByRow as eje}from"efficient-easel/screen/lib/document/style-fields";import{CaseIcon as tje,OpacityIcon as oje,PlacementIcon as nje,TextLinesIcon as _0e}from"efficient-easel/icons";import{group as nx}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Lc,deviceNote as rje}from"efficient-easel/screen/lib/document/device-fields";var R0e={fields:{_dDevice:rje(),_gContent:nx("Content"),eyebrow:U("Eyebrow",yp.eyebrow),title:j("Heading",yp.title),body:j("Subtitle",yp.body),uppercase:ne("Uppercase heading",!1,j1(tje,{})),_gBackground:nx("Background images"),imageSrc:Lc("desktop",et("Background image","image/*")),imageSrcMobile:Lc("mobile",et("Background image","image/*")),_gLayout:nx("Layout"),layout:wo("Text position",j1(nje,{}),mQ.map(e=>({...e,picture:Poe[e.value]})),pQ,{columns:2,cell:KC}),heightDesktop:n8("desktop"),heightMobile:n8("mobile"),copyShareDesktop:Lc("desktop",ae("Text height",j1(_0e,{}),el.min,el.max,el.step,el.desktop,"%")),copyShareMobile:Lc("mobile",ae("Text height",j1(_0e,{}),el.min,el.max,el.step,el.mobile,"%")),sticky:eje("stickTop"),overlay:ae("Overlay",j1(oje,{}),0,100,5,60,"%"),_gTextDesktop:Lc("desktop",nx("Text style")),titleSizeDesktop:Lc("desktop",d2("Heading font size",32,120,1,96,"heading",{row:YP,view:"desktop"})),bodySizeDesktop:Lc("desktop",d2("Subtitle font size",12,28,1,17,"body",{row:jP,view:"desktop"})),_gTextMobile:Lc("mobile",nx("Text style")),titleSizeMobile:Lc("mobile",d2("Heading font size",24,72,1,44,"heading",{row:YP,view:"phone"})),bodySizeMobile:Lc("mobile",d2("Subtitle font size",12,22,1,16,"body",{row:jP,view:"phone"})),...nd(YP,"titleSizeDesktop",{phone:!0}),...nd(jP,"bodySizeDesktop",{phone:!0}),_gButton:nx("Button"),...gl,buttonColor:ds("Button color","#C9A461"),buttonTextColor:ds("Button text color","#000000")}};import{jsx as N0e}from"react/jsx-runtime";import{ColumnsIcon as aje,StylesIcon as ije}from"efficient-easel/icons";import{group as O0e}from"efficient-easel/screen/lib/document/box-fields";var A0e={fields:{_gContent:O0e("Content"),eyebrow:U("Eyebrow",$0.eyebrow),eyebrowLook:le("Eyebrow style",N0e(ije,{}),[...qs],wp("KeyFeatures")),title:j("Heading",$0.title),items:{type:"array",label:"Features",arrayFields:{label:we("Feature label"),href:wr(J("Link"))},defaultItemProps:{label:"",href:""},getItemSummary:e=>e?.label||"Feature"},_gStyle:O0e("Style"),columns:ae("Columns",N0e(aje,{}),2,4,1,3)}};import{jsx as sje}from"react/jsx-runtime";import{readHidable as lje}from"efficient-easel/draw";import{ThemeIcon as dje}from"efficient-easel/icons";import{group as L0e}from"efficient-easel/screen/lib/document/box-fields";var CN=e=>lje(e).text;function cje(e){return[CN(e.address).replace(/\s*\n+\s*/g,", "),CN(e.name),CN(e.state),CN(e.country)].map(t=>t.trim()).filter(Boolean).join(", ")}var I0e={fields:{_gMap:L0e("Map"),name:J("Location name"),state:J("State / Province"),country:J("Country"),address:j("Address"),geocode:zo(QC,{label:"Coordinates"}),mapsUrl:J("Directions link"),_gStyle:L0e("Style"),mapTheme:Te("Map theme",sje(dje,{}),[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],"auto")},resolveData:async e=>{let t=e.props,o={...t,lat:Number(t.lat)||0,lng:Number(t.lng)||0};if(!NC([o]))return e;let[n]=await OC([o],cje);return{...e,props:{...e.props,lat:n.lat,lng:n.lng,geocode:n.geocode}}}};import{jsx as mje}from"react/jsx-runtime";import{HeightIcon as uje}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as fje,group as hje}from"efficient-easel/screen/lib/document/box-fields";var F0e="auto";var _N="custom",cM="#000000";function RN(e,t){return e===_N?{reverse:!1,color:(typeof t=="string"?t.trim():"")||cM}:{reverse:e!=="off",color:null}}var NN={reverse:{type:"select",label:"Logo color",options:[{label:"Auto contrast",value:F0e},{label:"As uploaded",value:"off"},{label:"Custom color",value:_N}]},customColor:ht(ds("Color",cM),{field:"reverse",is:_N})};var B0e={fields:He({src:et("Logo image","image/*"),alt:dn(J("Alt text","Brand name","Read out in place of the picture, and shown if it can\u2019t load.")),href:Gu(Ve("Link")),heightPx:ae("Height",mje(uje,{}),TJ,EJ,1,Wm,"px"),...nl("align",{access:fje}),...NN,_gText:hje("Text"),rowField:$r("Shows","text"),[Go]:Nc()},[[["alt"],{field:"src",set:!0}]]),resolveFields:(e,t)=>za(t.fields,e,t),showWhenFacts:Ma};import{jsx as X1}from"react/jsx-runtime";import{BlackAndWhiteIcon as bje,ColumnsIcon as wje,HeightIcon as xje,PaddingYIcon as yje,StylesIcon as vje}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as kje,group as D0e}from"efficient-easel/screen/lib/document/box-fields";import{parseOption as gje}from"efficient-shell/format";var q1="plain",pM=[{label:"Plain",value:"plain"},{label:"Cards",value:"cards"},{label:"Marks",value:"marks"},{label:"Chips",value:"chips"}],H0e=e=>gje(pM,q1,e);var Sje=["items","heading","bandPadding"],Tje=["look"],Eje={field:"bandPadding",set:!0},Pje={field:gv,set:!0},M0e={not:{field:"look",is:"chips"}},Cje=He({_gContent:D0e("Content"),dataSource:Qt("Logo content","Manual"),heading:j("Heading",AP.heading),items:{type:"array",label:"Logos",arrayFields:{src:et("Image","image/*"),alt:dn(J("Name / alt"))},getItemSummary:e=>e.alt||e.src||"logo"},logos:ht(sF.logos,sl),template:ht(sF.template,Pje),_gStyle:D0e("Style"),columns:ae("Columns",X1(wje,{}),3,6,1,5),logoHeight:ht(ae("Logo height",X1(xje,{}),16,72,2,28,"px"),M0e),bandPadding:ht(ae("Space above and below",X1(yje,{}),16,120,4,40,"px"),Eje),grayscale:ht(ne("Black and white logos",!0,X1(bje,{})),M0e),look:wo("Logo style",X1(vje,{}),pM.map(e=>({...e,picture:Eoe[e.value]})),q1,{columns:2,cell:br}),...nl("align",{access:kje})},[[Sje,Ei],[Tje,Uj]]),z0e={fields:Cje,resolveFields:(e,{fields:t})=>eo("Logos",t,e.props,{hides:["logos"]}),resolveData:(e,t)=>{if(!t?.changed?.[gv])return e;let o=Wj(e.props);return o===e.props?e:{...e,props:o}}};import{group as Z1}from"efficient-easel/screen/lib/document/box-fields";var Po={headNum:W.sectionNumber,headTitle:W.headingAccent,headDesc:W.body,category:W.category,metaMiddle:"Section",readLabel:"0 min read",title:"Article *headline* goes here.",dek:"A short summary of the article goes here.",quote:"A short pull quote.",quoteAttribution:"\u2014 "+W.date,ctaText:"Begin reading",ctaHref:Jd.href,imageLabel:"Featured *image*",metaPublished:W.date,metaReads:"0 min"},W0e={label:"Long read",drawsPictures:!0,defaultProps:{source:null,headNum:"",headTitle:"",headDesc:"",category:"",metaMiddle:"",readLabel:"",title:"",dek:"",quote:"",quoteAttribution:"",ctaText:"",ctaHref:"",image:"",imageLabel:"",metaPublished:"",metaReads:""}};var _je=["image","title","dek","ctaHref","metaPublished"],U0e={fields:Ti({source:zo(Zw),_nBound:ht(il(jC),qC),_gHead:Z1("Section header"),headNum:U("Number",Po.headNum),headTitle:j("Heading",Po.headTitle),headDesc:j("Body",Po.headDesc),_gMeta:Z1("Article"),category:U("Category",Po.category),metaMiddle:U("Middle meta",Po.metaMiddle),readLabel:U("Read time",Po.readLabel),title:j("Article title",Po.title),dek:j("Dek",Po.dek),_gQuote:Z1("Pull quote"),quote:j("Quote",Po.quote),quoteAttribution:U("Attribution",Po.quoteAttribution),_gLink:Z1("Link"),ctaText:U("Button",Po.ctaText),ctaHref:Ve("Link"),image:et("Image","image/*"),imageLabel:U("Image label",Po.imageLabel),_gOverlay:Z1("Image caption"),metaPublished:U("Published",Po.metaPublished),metaReads:U("Reads in",Po.metaReads)},_je,gb),resolveFields:(e,{fields:t})=>nt(t,e.props.headPlacement,it.LongRead.headRows)};import{group as mM}from"efficient-easel/screen/lib/document/box-fields";var G0e={fields:{_gContent:mM("Content"),eyebrow:U("Eyebrow",W.eyebrow),heading:j("Heading",`Main heading
15
15
  *Highlight line*`),body:j("Body",W.body),stats:{type:"array",label:"Stats",arrayFields:{value:J("Number"),label:J("Label")},getItemSummary:e=>e.label||e.value||"Stat"},_gMedia:mM("Media"),imageSrc:et("Image","image/*"),_gStyle:mM("Style"),grayscale:Nw()}};import{jsx as Rje}from"react/jsx-runtime";import{TextLinesIcon as Nje}from"efficient-easel/icons";import{group as uM}from"efficient-easel/screen/lib/document/box-fields";var Ic={eyebrow:W.eyebrow,lead:"A short lead paragraph introducing this section \u2014 a sentence or two about its theme.",issueHeading:"In this issue",issueTotal:"\u2014 Articles in total"},$0e={label:"Issue Header",defaultProps:{eyebrow:"",issueMeta:[],lead:"",issueHeading:"",issueList:[],issueTotal:""}};var K0e={fields:{_gTop:uM("Top row"),eyebrow:U("Eyebrow",Ic.eyebrow),issueMeta:{type:"array",label:"Issue meta lines",arrayFields:{lead:we("Bold word"),rest:we("Rest")},getItemSummary:e=>[e?.lead,e?.rest].filter(Boolean).join(" ")||"Line"},_gLead:uM("Lead"),lead:j("Lead",Ic.lead),_gIssue:uM("In this issue"),issueHeading:j("Panel heading",Ic.issueHeading),issueList:Mr("Issue lines",Rje(Nje,{}),"Line","markup"),issueTotal:U("Total line",Ic.issueTotal)}};import{jsx as ju}from"react/jsx-runtime";import{BlockColumnIcon as ON,PlacementIcon as Lje,StateIcon as Ije,TemplateIcon as Fje,TextLinesIcon as Bje}from"efficient-easel/icons";import{group as cg}from"efficient-easel/screen/lib/document/box-fields";import{parseOption as Ijt}from"efficient-shell/format";var fM=[{label:"Product record",hint:"Product record (spec tiles)",value:"spec-card"},{label:"Selector guide",hint:"Selector guide (pills + results)",value:"fitment"},{label:"Portal card",hint:"Portal card (stock + button + orders)",value:"portal"},{label:"Kanban board",hint:"Kanban board (job columns)",value:"kanban"},{label:"Claims panel",hint:"Claims panel (rows + defect bars)",value:"claims"},{label:"Browser shop",hint:"Browser storefront (hero + tiles)",value:"browser"},{label:"Terminal",hint:"Terminal (CLI session)",value:"terminal"}],Oje=fM.map(e=>e.value),hM="spec-card",Aje={badge:["spec-card","fitment","portal","kanban","claims","browser"],cardTitle:["spec-card","fitment","portal","kanban","claims"],cardSubtitle:["spec-card","fitment","portal","kanban","claims"],rows:["spec-card","fitment","portal","kanban","claims"],button:["spec-card","fitment","portal","kanban","claims"],footnote:["spec-card","fitment","portal","kanban","claims"],pills:["fitment"],tiles:["spec-card","portal","kanban","claims"],_gKanban:["kanban"],col1Title:["kanban"],col1Cards:["kanban"],col2Title:["kanban"],col2Cards:["kanban"],col3Title:["kanban"],col3Cards:["kanban"],col4Title:["kanban"],col4Cards:["kanban"],_gClaims:["claims"],barsHeading:["claims"],bars:["claims"],_gTerminal:["terminal"],termLines:["terminal"],_gBrowser:["browser"],urlText:["browser"],heroTitle:["browser"],heroButton:["browser"],products:["browser"]};function V0e(e){return He(e,Object.entries(Aje).map(([t,o])=>[[t],Ca("variant",Oje,hM,o)]))}var Hje=[...hQ,"align"],Y0e={fields:Ti(V0e({_gContent:cg("Content"),eyebrow:U("Chip label","In the product"),title:j("Heading",`Seen from
16
16
  *the counter.*`),body:j("Body",""),_gCard:cg("Mockup card"),variant:wo("Card type",ju(Fje,{}),fM.map(e=>({...e,picture:_oe[e.value]})),hM,{columns:3,cell:br}),cardHeader:U("Card header strip","Product record"),badge:U("Header badge","LIVE"),cardTitle:U("Card title",""),cardSubtitle:U("Card subtitle",""),pills:{type:"array",label:"Selector pills",arrayFields:{label:J("Label"),value:J("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" ")||"Pill"},tiles:{type:"array",label:"Spec tiles",arrayFields:{label:J("Label"),value:J("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" ")||"Tile"},rows:{type:"array",label:"Result / order rows",arrayFields:{lead:J("Lead"),detail:J("Detail"),state:le("State",ju(Ije,{}),[{label:"Match / done (green)",value:"ok"},{label:"In progress (main)",value:"warn"},{label:"No match (gray \u2715)",value:"no"}],"ok"),status:J("Status chip")},defaultItemProps:{lead:"",detail:"",state:"ok",status:""},getItemSummary:e=>[e?.lead,e?.detail].filter(Boolean).join(" \xB7 ")||"Row"},button:U("Button",""),footnote:U("Footnote",""),_gKanban:cg("Kanban columns"),col1Title:U("Column 1 title",""),col1Cards:Mr("Column 1 cards",ju(ON,{}),"Job card label","verbatim"),col2Title:U("Column 2 title",""),col2Cards:Mr("Column 2 cards",ju(ON,{}),"Job card label","verbatim"),col3Title:U("Column 3 title",""),col3Cards:Mr("Column 3 cards",ju(ON,{}),"Job card label","verbatim"),col4Title:U("Column 4 title",""),col4Cards:Mr("Column 4 cards",ju(ON,{}),"Job card label","verbatim"),_gClaims:cg("Claims bars"),barsHeading:U("Bars heading","Defect rate by product"),bars:{type:"array",label:"Bars",arrayFields:{label:J("Label"),value:J("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Bar"},_gTerminal:cg("Terminal"),termLines:Mr("Terminal lines",ju(Bje,{}),"$ efficient \u2026","verbatim"),_gBrowser:cg("Browser mock"),urlText:U("URL pill",""),heroTitle:U("Hero line",""),heroButton:U("Hero button",""),products:{type:"array",label:"Product tiles",arrayFields:{name:J("Name"),price:J("Price")},defaultItemProps:{name:"",price:""},getItemSummary:e=>[e?.name,e?.price].filter(Boolean).join(" \xB7 ")||"Tile"},_gStyle:cg("Style"),align:le("Mockup position",ju(Lje,{}),[{label:"Right of the copy",value:"right"},{label:"Left of the copy",value:"left"}],"right")}),Hje,Ei)};import{group as AN}from"efficient-easel/screen/lib/document/box-fields";var pg={title:"Order summary",note:"A short reassurance note under the total."},gM=Dn.OrderSummary,j0e={label:"Order Table",fields:gM,defaultProps:{eyebrow:"",title:"",rows:[],subRows:[],totalLabel:"",totalAmount:"",note:"",contained:!0}};var q0e={fields:{_gContent:AN("Content"),eyebrow:U("Eyebrow",W.eyebrow),title:j("Heading",pg.title),_gItems:AN("Items"),dataSource:Qt("Order content","Manual"),rows:{type:"array",label:"Items",arrayFields:{label:we("Item"),meta:we("Meta line"),amount:we("Amount")},getItemSummary:e=>e.label||"Item"},...gM,subRows:{type:"array",label:"Sub-total lines",arrayFields:{label:we("Label"),amount:we("Amount")},getItemSummary:e=>e.label||"Line"},_gTotal:AN("Total"),totalLabel:U("Total label","Total"),totalAmount:U("Total amount","$0,000"),note:j("Note",pg.note),_gLayout:AN("Layout")},resolveFields:(e,{fields:t})=>eo("OrderSummary",t,e.props,{hides:["rows"]})};import{jsx as dbe}from"react/jsx-runtime";import{AccentIcon as Qje,ListIcon as eqe}from"efficient-easel/icons";import{isNodeList as tqe,newId as oqe}from"efficient-easel/data";import{group as abe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as mi}from"react/jsx-runtime";import{useId as Z0e}from"react";import{useEasel as Dje,useSelectedHost as Mje}from"efficient-easel/easel";import{CloseIcon as zje,LinkIcon as J0e,LockIcon as Wje}from"efficient-easel/icons";import{SettingsField as Q0e}from"efficient-easel/panel";import{deviceField as Uje,deviceNote as Gje}from"efficient-easel/screen/lib/document/device-fields";import{Input as bM}from"efficient-shell/ui";var wM=(e,t)=>t==="number"?`${l6(e.value)} \xB7 ${u(e.label)}`:`${u(e.label)} \xB7 ${l6(e.value)}`;function $je(e,t){return[{type:"label",key:"heading",label:u("Live numbers")},...e.map(o=>({key:o.key,label:wM(o,"name"),onSelect:()=>t(o.key)}))]}var ebe=(e,t)=>e.length?{label:u("Connect to a live number"),icon:mi(J0e,{size:16}),menu:$je(e,t)}:void 0,tbe=(e,t,o)=>mi(bM,{id:e,readOnly:!0,value:t,leftIcon:mi(Wje,{size:16}),endAction:{label:u("Unlink"),icon:mi(zje,{size:16}),onClick:()=>o("")}});function Kje({id:e,text:t,countKey:o,choices:n,onText:r,onLink:a}){let i=o?n.find(s=>s.key===o):void 0;return mi("div",{className:"sf-copybox",children:o?tbe(e,i?wM(i,"number"):t,a):mi(bM,{id:e,value:t,onChange:s=>r(s.target.value),endAction:ebe(n,a)})})}function Vje({id:e,countKey:t,onLink:o}){let n=pp(bv),r=Sb({[Gd]:t}),a=r?n.find(i=>i.key===r):void 0;return mi("div",{className:"sf-copybox",children:r?tbe(e,a?wM(a,"number"):r,o):mi(bM,{id:e,readOnly:!0,value:u("Typed by hand"),endAction:ebe(n,o)})})}var obe={type:"custom",icon:mi(J0e,{}),render:({value:e,onChange:t})=>mi(Yje,{value:e,onChange:t})};function Yje({value:e,onChange:t}){let o=Z0e();return mi(Q0e,{label:u("Live number"),htmlFor:o,children:mi(Vje,{id:o,countKey:typeof e=="string"?e:"",onLink:t})})}function jje(){let e=Mje();try{return Dje(t=>Nne(t.appState.data.content,e?.id))}catch{return!0}}function qje({value:e,onChange:t}){let o=Z0e(),[n,r]=ac(Gd),a=jje();return mi(Q0e,{label:u("Body"),htmlFor:o,children:mi(Kje,{id:o,text:VC(e).text,countKey:Sb({[Gd]:n}),choices:a?pp(bv):Zje,onText:i=>t(wZ("textarea",e,i)),onLink:r})})}var Xje=Gje(),Zje=[],X0e=new WeakMap;function Jje(e){let t=X0e.get(e);if(!t){let o={...e,render:({value:n,onChange:r})=>mi(qje,{value:n,onChange:r})};t=Uje("desktop",o),X0e.set(e,t)}return t}function nbe(e,t){if(typeof t?.[Gd]!="string"||DC(t)!==null||Mn(t))return e;let o=e.text;return!o||typeof o!="object"?e:{_dDevice:Xje,...e,text:Jje(o)}}var xM=Dn.CardList,rbe={label:"Card list",inline:!0,fields:xM,defaultProps:{rowField:""}};function cbe(e){return tqe(e)?e.some(t=>{let o=t.props??{};return t.type==="Text"&&typeof o[Gd]=="string"&&Mn(o)?!0:Object.values(o).some(cbe)}):!1}var nqe=e=>Object.defineProperty(Object.fromEntries(e.map(t=>[t.key,""])),"key",{get:()=>oqe("row"),enumerable:!0}),ibe=new WeakMap;function rqe(e,t,o){let n=t.filter(s=>!s.everySource),r=ibe.get(e);r||ibe.set(e,r=new Map);let a=JSON.stringify([n,o]),i=r.get(a);if(!i){let s=Object.fromEntries(n.map(d=>[d.key,F1(d)]));o&&(s[Gd]=obe);let l=n[0]?.key;i={...e,arrayFields:s,defaultItemProps:nqe(n),getItemSummary:d=>l&&typeof d?.[l]=="string"&&d[l]||u("Row")},r.set(a,i)}return i}var pbe="cardListInCardTemplate",LN={not:{context:pbe,is:!0}},aqe={...Ma,[pbe]:(e,t)=>{let o=mp(t.appState,e.props?.id);return o===void 0?void 0:o!==null}},iqe=ht({type:"array",label:"Rows",icon:dbe(eqe,{}),arrayFields:{}},{all:[LN,sl]}),sqe=e=>Qj(e,"text").find(t=>!t.everySource)?.key??"title",sbe=new WeakMap;function lqe(e,t){let o=sbe.get(e);o||sbe.set(e,o=new WeakMap);let n=o.get(t);return n||o.set(t,n={...e,highlightedCard:t}),n}var dqe=e=>{let t=new Set(oh(null,{type:Fr,props:e}).map(o=>o.key));return o=>t.has(o)},lbe=new WeakMap;function cqe(e,t){let o=lbe.get(e);o||lbe.set(e,o=new WeakMap);let n=o.get(t);return n||o.set(t,n={...e,[_m]:t}),n}var mbe={fields:{_gSource:abe("Source"),dataSource:ht(Qt("Card content","Manual"),LN),[Tb]:Eb(),_gCardList:abe("Card list"),rowField:$r("Shows","list"),[_m]:iqe,highlightedCard:ht(le("Highlighted card",dbe(Qje,{}),[{label:"None",value:""}],""),LN),highlightBadge:ht(U("Highlight badge","Most popular"),LN),...xM},resolveData:(e,t)=>{let o=e.props,n=t?.lastData?.props,r=aN(wre(o,n),_m),a=SE(r,dqe(r));return a===o?e:{...e,props:a}},resolveFields:(e,t)=>{let o=e.props??{},n=eo(Fr,za(t.fields,e,t),o),r=!!mp(t.appState,o.id),a=n[_m];if(r||!a)return n;let i=oh(t.appState,{type:Fr,props:o}),s=cqe(n,rqe(a,i,cbe(o.template))),l=n.highlightedCard;return l?lqe(s,rN(l,nN(o,{rows:_m,label:sqe(i)}))):s},showWhenFacts:aqe};function pqe(e){let t=typeof e?.label=="string"?e.label.trim():"",o=typeof e?.name=="string"?e.name.trim():"";return t||o}var ube={fields:{},resolveFields:e=>({_nHostPart:il("The section draws {what} here, in every card.",{what:pqe(e.props)})})};import{group as fbe}from"efficient-easel/screen/lib/document/box-fields";var hbe={fields:{_gContent:fbe("Content"),eyebrow:U("Eyebrow",ec.eyebrow),lead:j("Lead",W.body),stats:{type:"array",label:"Stats",arrayFields:{value:we("Number"),label:we("Unit")},getItemSummary:e=>e.label||e.value||"Stat"},_gFounders:fbe("Founders"),foundersHeading:j("Founders heading",ec.foundersHeading),foundersBody:j("Founders statement",ec.foundersBody),attribution:U("Attribution",ec.attribution)}};import{group as gbe}from"efficient-easel/screen/lib/document/box-fields";var bbe={fields:{_gContent:gbe("Content"),heading:U("Heading",Uv.heading),dataSource:Qt("Payment content","Manual"),badges:{type:"array",label:"Payment methods",arrayFields:{label:we("Name"),src:et("Logo","image/*")},getItemSummary:e=>e.label||e.src||"Method"},assurances:{type:"array",label:"Reassurance lines",arrayFields:{text:we("Line")},getItemSummary:e=>e.text||"Line"},_gLayout:gbe("Layout")},resolveFields:(e,{fields:t})=>eo("PaymentBadges",t,e.props,{hides:["badges"]})};import{jsx as yM}from"react/jsx-runtime";import{HeightIcon as mqe,ImageIcon as uqe,LayoutIcon as fqe}from"efficient-easel/icons";import{group as hqe}from"efficient-easel/screen/lib/document/box-fields";var xl={title:"Add a *headline* for this post.",excerpt:"A short summary of the post \u2014 one or two sentences.",category:W.category,date:W.date,readLabel:"0 min read"},wbe={label:"Post Card",drawsPictures:!0,defaultProps:{source:null,image:"",title:"",excerpt:"",href:"",category:"",date:"",readLabel:"",layout:kR,showCover:!0,placement:"bottom-left",darken:55,darkenStyle:Ov[0].value,minHeight:pl.fallback}};var xbe={field:"layout",is:"cover"},gqe={not:xbe},bqe=["placement","darken","darkenStyle","minHeight","_gTint"],wqe=["showCover"],xqe=["image","title","excerpt","href"],ybe={fields:He({source:zo(Zw),image:et("Cover image","image/*"),title:j("Heading",xl.title),excerpt:j("Excerpt",xl.excerpt),href:Ve("Link"),category:U("Category",xl.category),date:U("Date",xl.date),readLabel:U("Read time",xl.readLabel),layout:wo("Card layout",yM(fqe,{}),vde.map(e=>({...e,picture:Soe[e.value]})),kR,{columns:2,cell:KC}),showCover:ne("Show cover image",!0,yM(uqe,{})),placement:od("Text position"),minHeight:ae("Card height",yM(mqe,{}),pl.min,pl.max,pl.step,pl.fallback,pl.length),_gTint:hqe("Image tint"),...Jw()},[[bqe,xbe],[wqe,gqe],[xqe,gb]])};import{jsx as J1}from"react/jsx-runtime";import{ColumnWidthsIcon as yqe,ColumnsIcon as vqe,LayoutIcon as kqe,MediaLayoutStackedIcon as Sqe,PlacementIcon as Tqe}from"efficient-easel/icons";import{deviceField as Eqe}from"efficient-easel/screen/lib/document/device-fields";import{group as kbe,section as Sbe}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as Pqe}from"efficient-easel/screen/lib/document/field-buckets";import{isNodeList as Pbe}from"efficient-easel/data";var rx={num:W.sectionNumber,title:W.headingAccent,description:W.body,cta:W.viewAll},IN=Dn.ProcessSteps,vbe={label:"Image & Text Columns",drawsPictures:!0,fields:IN,defaultProps:{num:"",title:"",description:"",columns:3,padTop:120,padBottom:120}};var Tbe={field:"arrangement",in:["rows-left","rows-right"]},Cbe="drawsLegacySteps",Ebe={not:{context:Cbe,is:!0}},Cqe={[Cbe]:e=>{let t=e.props??{};return!lt(t)&&!Pbe(t.boxes)}},_qe=e=>e?.data?.root?.props??null,_be={fields:He({_gSource:kbe("Source"),dataSource:Qt("Item content","Manual"),[Tb]:Eb(),_sHeader:Sbe("Header"),_gContent:kbe("Content"),num:U("Number",rx.num),title:U("Heading",rx.title),description:j("Body",W.body),boxes:IN.boxes,[Et]:IN[Et],[Pqe.Design]:Sbe("Design"),arrangement:wo("Arrangement",J1(kqe,{}),dge.map(e=>({label:e.label,hint:e.hint,value:e.value,picture:Roe[e.value]})),"columns",{columns:3,cell:br}),imageWidth:Te("Image width",J1(yqe,{}),cge.map(e=>({label:e.label,value:e.value})),"half"),phoneOrder:Eqe("mobile",Te("Order",J1(Sqe,{}),pge.map(e=>({label:e.label,value:e.value})),"picture")),columns:ae("Columns",J1(vqe,{}),2,4,1,3),...Qoe(),cardText:Te("Text position",J1(Tqe,{}),[{label:"Below picture",value:"below"},{label:"On picture",value:"on-image"}],"below")},[[["cardText"],{not:{field:"boxes",set:!0}}],[["arrangement"],Ebe],[["imageWidth","phoneOrder"],{all:[Tbe,Ebe]}],[["columns"],{not:Tbe}]]),showWhenFacts:Cqe,resolveFields:(e,t)=>eo(I4,nt(t.fields,e.props.headPlacement,it.ProcessSteps.headRows),e.props,{root:_qe(t.appState)}),resolveData:(e,t)=>{let o=e.props;return t?.changed?.dataSource!==!0||!lt(o)||Pbe(o[Et])?e:{...e,props:{...o,[Et]:Dj(Bj(o,I4))}}}};import{jsx as Rqe}from"react/jsx-runtime";import{SquareIcon as Nqe}from"efficient-easel/icons";import{group as Oqe,section as Aqe}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as Lqe}from"efficient-easel/screen/lib/document/field-buckets";var Rbe={fields:{_gContent:Oqe("Content"),eyebrow:U("Eyebrow",Vm.eyebrow),title:j("Heading",Vm.title),body:j("Body",Vm.body),[Lqe.Design]:Aqe("Design"),topBorder:ne("Top border",!0,Rqe(Nqe,{}))},resolveFields:(e,{fields:t})=>nt(t,e.props.headPlacement,it.Prose.headRows)};import{jsx as vM}from"react/jsx-runtime";import{HashIcon as Iqe,StylesIcon as Nbe}from"efficient-easel/icons";import{group as Obe}from"efficient-easel/screen/lib/document/box-fields";var Abe={fields:bZ({_gContent:Obe("Content"),headStyle:wo("Style",vM(Nbe,{}),uZ.map(e=>({...e,picture:Coe[e.value]})),mZ,{columns:3,cell:br}),num:U("Number",kn.num),eyebrowLook:le("Eyebrow style",vM(Nbe,{}),[...qs],$Z),numStyle:Te("Number style",vM(Iqe,{}),[...CQ],PQ),title:j("Heading",kn.title),description:j("Body",kn.description),linkText:U("Button",kn.linkText),linkHref:Ve("Link"),_gLogo:Obe("Logo"),logoSrc:et("Logo image","image/*"),logoAlt:dn(J("Logo alt text","Logo description"))})};import{group as FN}from"efficient-easel/screen/lib/document/box-fields";var Fc={headNum:W.sectionNumber,headTitle:W.headingAccent,headDesc:W.body,viewLabel:"View series \u2192"},Lbe={label:"Recurring Columns",defaultProps:{headNum:"",headTitle:"",headDesc:"",cards:[],viewLabel:"",background:"transparent"}};var Ibe={fields:{_gHead:FN("Section header"),headNum:U("Number",Fc.headNum),headTitle:j("Heading",Fc.headTitle),headDesc:j("Body",Fc.headDesc),_gCards:FN("Cards"),cards:{type:"array",label:"Cards",arrayFields:{num:we("Number"),since:we("Right Top Text"),title:qe("Title"),desc:qe("Body"),entries:we("Entries count"),entriesLabel:we("Button Right Text")},getItemSummary:e=>e?.title||(e?.num?`Column ${e.num}`:"Column")},_gViewLabel:FN("Card link"),viewLabel:U("Card button",Fc.viewLabel),_gStyle:FN("Style"),background:rc("Background color",tr.Series,!0)},resolveFields:(e,{fields:t})=>nt(t,e.props.headPlacement,it.Series.headRows)};var Fbe={fields:{size:{type:"select",options:[{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"},{label:"X-Large",value:"xl"}]}}};import{jsx as Bbe}from"react/jsx-runtime";import{BackgroundIcon as Fqe,ContrastIcon as Bqe}from"efficient-easel/icons";import{group as Hbe}from"efficient-easel/screen/lib/document/box-fields";var Dbe={fields:{_gContent:Hbe("Content"),cells:{type:"array",label:"Strip items",arrayFields:{text:J("Label","Label"),tone:Te("Tone",Bbe(Bqe,{}),[{label:"Normal",value:"normal"},{label:"Muted",value:"muted"}],"normal")},defaultItemProps:{text:"",tone:"normal"},getItemSummary:e=>e?.text||"Item",min:2,max:8},_gStyle:Hbe("Style"),fill:Te("Strip fill",Bbe(Fqe,{}),[{label:"Dark band",value:"dark"},{label:"None",value:"none"}],"dark")}};import{jsx as BN}from"react/jsx-runtime";import{CaseIcon as Hqe,OpacityIcon as Mbe,PlacementIcon as Dqe}from"efficient-easel/icons";import{group as ax,section as zbe}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as Mqe}from"efficient-easel/screen/lib/document/box-fields";var Wbe={fields:{_sText:zbe("Text column"),_gContent:ax("Content"),eyebrow:U("Eyebrow",xp.eyebrow),title:j("Heading",xp.title),body:j("Body",xp.body),uppercase:ne("Uppercase heading",!1,BN(Hqe,{})),...EC("textAlign",{access:Mqe}),_gButton:ax("Button"),...gl,_gTextBg:ax("Background image"),textBgSrc:et("Background image","image/*"),overlay:ae("Overlay",BN(Mbe,{}),0,100,5,60,"%"),_sImage:zbe("Image column"),_gImage:ax("Image"),imageSrc:et("Image","image/*"),reverse:Te("Image side",BN(Dqe,{}),[{label:"Image left",value:!1},{label:"Image right",value:!0}],!1),_gImageBtn:ax("Overlay button"),imageBtnText:U("Overlay button",VP.text),imageBtnHref:Ve("Overlay button link"),_gStyle:ax("Style"),grayscale:Nw(),imageOverlay:ae("Image overlay",BN(Mbe,{}),0,100,5,40,"%")}};import{jsx as zqe}from"react/jsx-runtime";import{ColumnsIcon as Wqe}from"efficient-easel/icons";import{group as Ube}from"efficient-easel/screen/lib/document/box-fields";var Gbe={fields:{_gContent:Ube("Content"),heading:U("Heading","By the *numbers*"),items:{type:"array",label:"Stats",arrayFields:{value:we("Value"),label:we("Label")},getItemSummary:e=>e.label||e.value||"stat"},columns:ae("Columns",zqe(Wqe,{}),2,4,1,4),_gStyle:Ube("Style"),background:rc("Background color",tr.Stats)}};import{jsx as Uqe}from"react/jsx-runtime";import{AccentIcon as Gqe}from"efficient-easel/icons";import{group as Kbe}from"efficient-easel/screen/lib/document/box-fields";var qu={eyebrow:W.eyebrow,title:W.headingAccent,desc:W.body},$be={label:"Stats with Text",defaultProps:{eyebrow:"",title:"",desc:"",stats:[],background:LZ,padTop:120,padBottom:120}};var Vbe={fields:{_gContent:Kbe("Content"),eyebrow:U("Eyebrow",qu.eyebrow),title:j("Heading",qu.title),desc:j("Body",qu.desc),stats:{type:"array",label:"Stats",arrayFields:{value:J("Number"),prefix:J("Prefix"),suffix:J("Unit"),supSuffix:J("Superscript"),emphasizeAll:ne("Whole number Theme Color",!1,Uqe(Gqe,{})),label:J("Label"),sub:qe("Body")},defaultItemProps:{value:"",prefix:"",suffix:"",supSuffix:"",emphasizeAll:!1,label:"",sub:""},getItemSummary:e=>e.label||e.value||"Stat"},_gStyle:Kbe("Style"),background:rc("Background color",tr.StatsParagraph,!0)},resolveFields:(e,{fields:t})=>nt(t,e.props.headPlacement,it.StatsParagraph.headRows)};import{jsx as jbe}from"react/jsx-runtime";import{ColumnsIcon as $qe,StylesIcon as Kqe}from"efficient-easel/icons";import{group as qbe}from"efficient-easel/screen/lib/document/box-fields";var ix={eyebrow:"Feedback",title:"What people *say.*"},Ybe={label:"Testimonials",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Xbe={fields:{_gContent:qbe("Content"),eyebrow:U("Eyebrow",ix.eyebrow),eyebrowLook:le("Eyebrow style",jbe(Kqe,{}),[...qs],wp("Testimonials")),title:j("Heading",ix.title),items:{type:"array",label:"Quotes",arrayFields:{quote:qe("Quote"),name:J("Name"),role:J("Role \xB7 location")},defaultItemProps:{quote:"",name:"",role:""},getItemSummary:e=>e?.name||e?.quote||"Quote"},_gStyle:qbe("Style"),columns:ae("Columns",jbe($qe,{}),1,3,1,3)},resolveFields:(e,{fields:t})=>nt(t,e.props.headPlacement,it.Testimonials.headRows)};import{jsx as HN}from"react/jsx-runtime";import{BlockBadgeIcon as Vqe,BorderTopIcon as Yqe,MediaLayoutInsetIcon as jqe}from"efficient-easel/icons";import{group as qqe}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as Xqe}from"efficient-easel/screen/lib/document/style-fields";import{VIEW_KEY_ACCESS as Zqe}from"efficient-easel/screen/lib/document/box-fields";function Jqe(e,t){let o=t?.textStyle;if(typeof o!="string"||!o.startsWith("heading-"))return e;let{align:n,alignTablet:r,alignPhone:a,...i}=e;return i}var Zbe={fields:{text:j("Body",W.body),consentWords:eN("text"),[Gd]:Xqe("text"),...nl("align",{access:Zqe}),tone:w5(),_gText:qqe("Text"),rowField:$r("Shows",["text","date"]),[Go]:Nc(),[VZ]:ht(Te("Place",HN(Vqe,{}),[{label:"In the card",value:"",picture:HN(jqe,{})},{label:"On the top line",value:"top-line",picture:HN(Yqe,{})}],""),{not:{context:iF,is:!0}}),tag:le("HTML tag",HN(sa,{noun:"heading"}),[{label:"Paragraph",value:"p"},{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"}],"p")},resolveFields:(e,t)=>Jqe(nbe(tN(za(t.fields,e,t),e.props,"text"),e.props),e.props),showWhenFacts:{...Ma,[iF]:(e,t)=>{let o=mp(t.appState,e.props?.id);return o===void 0?void 0:!K0(o?.type)}}};import{jsx as Q1}from"react/jsx-runtime";import{GapIcon as Qqe,LineBetweenIcon as eXe,SquareIcon as tXe,StylesIcon as oXe,TextSizeIcon as nXe}from"efficient-easel/icons";import{group as Jbe}from"efficient-easel/screen/lib/document/box-fields";var Qbe={fields:{_gContent:Jbe("Content"),items:fb(Mr(o6.label,o6.icon,"item","markup"),GE),_gStyle:Jbe("Style"),tone:Te("Style",Q1(oXe,{}),[{label:"Solid",value:"scrim"},{label:"Plain",value:"plain"}],"scrim"),borders:ne("Hairline borders",!0,Q1(tXe,{})),size:Te("Text size",Q1(nXe,{}),[...lj],bE),separator:gN(Q1(eXe,{}),wE),join:le("Join",Q1(Qqe,{}),FP,IP)}};import{jsx as ewe}from"react/jsx-runtime";import{ClockIcon as rXe,EyeIcon as aXe}from"efficient-easel/icons";import{group as twe,section as DN}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as owe}from"efficient-easel/screen/lib/document/field-buckets";var nwe={field:"layout",is:"track"},iXe={not:nwe},rwe={fields:He({[owe.Layout]:DN("Layout"),layout:wo("Display",ewe(aXe,{}),[{label:"Split",hint:"Split (editorial aside)",value:"split",picture:l2.split},{label:"Spine",hint:"Spine (single rail)",value:"spine",picture:l2.spine},{label:"Alternating",hint:"Alternating (zig-zag)",value:"alternating",picture:l2.alternating},{label:"Track",hint:"Track (year rail)",value:"track",picture:l2.track}],"split",{columns:2,cell:br}),[owe.Design]:DN("Design"),background:rc("Background color",tr.TimelineTrack),_sHeader:DN("Header"),_gContent:twe("Content"),eyebrow:U("Eyebrow",Zs.eyebrow),title:j("Heading",Zs.title),intro:j("Intro",Zs.intro),imageSrc:et("Image","image/*"),imageCaption:U("Image caption",Zs.imageCaption),imageMeta:U("Image meta",Zs.imageMeta),_gButton:twe("Button"),...gl,_sEntries:DN("Timeline entries"),entries:{type:"array",label:"Entries",arrayFields:{date:we("Sub-title"),title:qe("Title"),body:qe("Body")},defaultItemProps:{date:"",title:"",body:""},getItemSummary:e=>e?.date||e?.title||"Entry"}},[[["imageSrc","imageCaption","imageMeta"],iXe],[["background"],nwe]]),resolveFields:(e,{fields:t})=>{if(e.props.layout!=="track")return t;let o=t.entries;return{...t,entries:{...o,arrayFields:{...o?.arrayFields,future:ne("Upcoming",!1,ewe(rXe,{}))}}}}};import{jsx as sXe}from"react/jsx-runtime";import{ClockIcon as lXe}from"efficient-easel/icons";import{section as ek}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as awe}from"efficient-easel/screen/lib/document/field-buckets";var iwe={fields:{_sHeader:ek("Header"),eyebrow:U("Eyebrow",Js.eyebrow),title:j("Heading",Js.title),intro:j("Body",Js.intro),_sEntries:ek("Milestones"),entries:{type:"array",label:"Milestones",arrayFields:{date:J("Year"),title:qe("Title"),blurb:qe("Body"),future:ne("Upcoming",!1,sXe(lXe,{}))},defaultItemProps:{date:"",title:"",blurb:"",future:!1},getItemSummary:e=>e?.date||e?.title||"Milestone"},_sButton:ek("Button"),...gl,[awe.Design]:ek("Design"),background:rc("Background color",tr.TimelineTrack),[awe.Layout]:ek("Layout")},resolveFields:(e,{fields:t})=>nt(t,e.props.headPlacement,it.TimelineTrack.headRows)};import{jsx as dXe}from"react/jsx-runtime";import{StylesIcon as cXe}from"efficient-easel/icons";import{group as swe}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as pXe}from"efficient-easel/screen/lib/document/box-fields";var lwe={fields:{_gContent:swe("Content"),title:j("Heading",XP.title),buttons:{type:"array",label:"Buttons",arrayFields:{label:J("Button"),href:wr(J("Button link")),variant:le("Style",dXe(cXe,{}),[{label:"Filled",value:"primary"},{label:"Outline",value:"outline"}],"outline")},defaultItemProps:{label:"",href:"#",variant:"outline"},getItemSummary:e=>e?.label||"Button"},_gStyle:swe("Style"),...nl("buttonsAlign",{fallback:"right",access:pXe})},resolveFields:(e,{fields:t})=>{let o=VC(e.props.title);if(!(!o.hidden&&o.text.trim()))return t;let{buttonsAlign:n,buttonsAlignPhone:r,...a}=t;return a}};import{jsx as uXe}from"react/jsx-runtime";import{jsx as Bc,jsxs as kM}from"react/jsx-runtime";var SM={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]"};function dwe({eyebrow:e,title:t,body:o,ctaText:n,ctaHref:r,imageSrc:a,contained:i,overlay:s=60,pad:l}){let d=Math.min(Math.max(s,0),100)/100;return Bc(Lt,{contained:i,...Se("py-6",l),children:kM("div",{className:"sf-card relative overflow-hidden border border-line bg-surface px-10 py-16 max-view-wide:px-6 max-view-wide:py-10",children:[a&&kM("div",{className:"absolute inset-0","aria-hidden":!0,children:[Bc(z0,{children:Bc(mXe,{src:Ri(a)})}),Bc("div",{className:"absolute inset-0",style:{background:ia(d)}})]}),kM("div",{className:"relative z-[1] flex max-w-[680px] flex-col gap-5",style:a?Ks:void 0,children:[e&&Bc(st,{text:e}),t&&Bc("h2",{className:`font-heading2 ${SM.headingMedium} font-medium leading-[1.05] tracking-[-0.03em] ${SM.headingMediumUpTo800}`,children:ee(t,!1)}),o&&Bt(o).map((c,p)=>Bc("p",{className:`${SM.body} leading-[1.6] opacity-85`,children:N(c)},p)),n&&Bc("div",{className:"mt-2 self-start",children:Bc(fa,{href:r||"#",variant:"primary",children:N(n)})})]})]})})}function mXe({src:e}){let t=ko(e);return Bc(vp,{src:t.src,...t.srcSet?{srcSet:t.srcSet,sizes:Gv}:{},alt:"",className:"h-full w-full object-cover"})}var cwe={...SQ,render:e=>{let{eyebrow:t,title:o,body:n,imageSrc:r,ctaText:a,ctaHref:i,contained:s,overlay:l,editor:d}=e,c=oi(a,i,d);return uXe(dwe,{eyebrow:R(t,Ym.eyebrow,d),title:R(o,Ym.title,d),body:R(n,Ym.body,d),imageSrc:r,overlay:typeof l=="number"?l:60,ctaText:c.text,ctaHref:c.href,contained:s,pad:Ze("Banner",e)})}};import{jsx as uwe}from"react/jsx-runtime";import{jsx as sx,jsxs as TM,Fragment as fXe}from"react/jsx-runtime";import{Fragment as hXe}from"react";var gXe={16:"max-view-tablet:py-4"},pwe=e=>sP({values:Hr(e,ih,!0),frame:iP(YE),drawsFrame:!0},!0).root;function mwe({items:e,current:t,meta:o,editing:n=!1,pad:r}){let a=me(),i=(e??[]).filter(d=>d?.label?.trim()),s=t?.trim()?[...i,{label:t}]:i,l=s.length>0?s:n?[{label:u("Breadcrumb")}]:[];return l.length===0&&!o?null:sx("nav",{className:pe(["border-b border-line px-[var(--sf-site-gutter,40px)]",r?null:Rv.all[YE.top],"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))]",r?r.className:gXe[YE.topPhone]].filter(Boolean).join(" "),a),style:r&&Object.keys(r.style).length?r.style:void 0,...r?.attrs,children:TM("div",{className:"mx-auto flex max-w-[var(--sf-content-cap,none)] items-center gap-4",children:[l.map((d,c)=>{let p=c===l.length-1;return TM(hXe,{children:[c>0&&sx("span",{className:"opacity-40",children:"/"}),d.href&&!p?sx(Pt,{newTab:"auto",href:d.href,className:"hover:text-fg",children:Ko(d.label)}):sx("span",{className:p?"text-fg":void 0,children:Ko(d.label)})]},c)}),o&&TM(fXe,{children:[sx("span",{className:"opacity-40",children:"\xB7"}),sx("span",{children:N(o)})]})]})})}var bXe=()=>[{label:u("Home"),href:"/"},{label:u("Section"),href:""}],fwe={...Efe,render:e=>{let{items:t,meta:o,editor:n}=e,r=a=>uwe(mwe,{items:De(t,bXe(),n),current:typeof a=="string"?a:void 0,meta:R(o,J5.meta,n),editing:n?.isEditing,pad:pwe(e)});return Mn(e)?uwe(ol,{type:"Breadcrumb",props:e,children:a=>r(a.currentCrumb)}):r()}};import{jsx as EM,Fragment as GXe}from"react/jsx-runtime";import{jsx as MN}from"react/jsx-runtime";import{ArrowLongRightIcon as wXe,ArrowRightIcon as xXe,ArrowUpRightIcon as yXe,BagIcon as vXe,CarIcon as kXe,CartIcon as SXe,ChatIcon as TXe,ChevronLeftIcon as EXe,ChevronRightIcon as PXe,DownloadIcon as CXe,EmailIcon as _Xe,ExternalIcon as RXe,LocationIcon as NXe,PackageIcon as OXe,PhoneIcon as AXe,PlayIcon as LXe,ReceiptRefundIcon as IXe,SearchIcon as FXe,ShieldCheckIcon as BXe,TagIcon as HXe,TruckIcon as DXe,WheelIcon as MXe}from"efficient-shell/icons/efficient";var zXe="sf-button-block",WXe={"arrow-right":xXe,"arrow-long-right":wXe,"arrow-up-right":yXe,"chevron-right":PXe,external:RXe,cart:SXe,bag:vXe,tag:HXe,email:_Xe,location:NXe,play:LXe,download:CXe,search:FXe,car:kXe,phone:AXe,wheel:MXe,chat:TXe,"chevron-left":EXe,package:OXe,truck:DXe,"shield-check":BXe,"receipt-refund":IXe},UXe=e=>e?` ${e}`:"";function hwe(e){let{label:t,href:o,variant:n,align:r,alignTablet:a,alignPhone:i,contained:s,arrow:l,icon:d,iconPosition:c,widthFit:p,widthFitPhone:m,widthFitTablet:f,buttonColor:g,buttonTextColor:h,hrefRewrite:b,blockPad:w}=e,y=Bm(),x=kD(d),k=x&&x!=="none"?WXe[x]:void 0,v=x===void 0?Q5(l)?{}:{arrow:null}:k?{arrow:MN(k,{size:16}),...B1(c)==="before"?{glyphBefore:!0}:{}}:{arrow:null},S=uoe(e),E=[Nfe(p,m,f,{atSectionLine:!y}),S?.className??""].filter(Boolean).join(" "),T=E?{className:E}:{},C=Rfe(c,p)?{spread:!0}:{},P=poe(e),B=P?P.background==="transparent"?"ghost":"primary":n,M={...P??(g?n==="ghost"?{borderColor:g}:{background:g,borderColor:g}:{}),...h?{color:h}:{},...S?.style??{},...moe(e)??{}},I=Object.keys(M).length?{style:M}:{},A=sh(w,fp.text);return MN(Lt,{contained:s,...A,className:`${zXe} ${A.className}`,part:Wt("button-block"),children:MN("div",{className:`flex${r?` ${$d[r]}`:""}${UXe(Br("justify",r,a,i,{atSectionLine:!y}))}`,children:MN(fa,{href:o||"#",variant:B,...T,...C,...v,...I,...o&&b?{hrefRewrite:b}:{},part:Wt("button"),glyphPart:Wt("button-icon"),children:N(t)})})})}import{phoneKey as $Xe}from"efficient-easel/draw";var gwe={...PX,render:e=>{let{label:t,href:o,variant:n,align:r,alignTablet:a,alignPhone:i,contained:s,arrow:l,icon:d,iconPosition:c,widthFit:p,buttonColor:m,buttonTextColor:f,editor:g}=e,h=Object.fromEntries(Object.entries(e).filter(([v])=>v==="buttonFillOpacity"||v==="buttonBorder"||v==="buttonCorners"||v==="buttonCornerSides"||v.startsWith("buttonPadding"))),b=GJ(e),w=b?{hrefRewrite:b}:{},y=(v,S)=>EM(hwe,{label:Qd(v,Jd.text,g)??"",href:S,variant:n,align:r,alignTablet:a,alignPhone:i,contained:s,arrow:l,icon:d,iconPosition:c,widthFit:p,widthFitPhone:e[$Xe("widthFit")],buttonColor:m,buttonTextColor:f,...h,...w,blockPad:Hr(e)}),x=Mn(e),k=Mn(e,Go);return!x&&!k?y(t,o):EM(ol,{type:"ButtonBlock",props:e,children:(v,S,E)=>E&&!g?.isEditing&&!(typeof v.label=="string"&&v.label.trim())?EM(GXe,{}):y(v.label,v.href)})}};import{jsx as ok,Fragment as vwe}from"react/jsx-runtime";import{jsx as tk,Fragment as KXe,jsxs as bwe}from"react/jsx-runtime";var wwe={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]"},VXe="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))]",YXe="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))]",jXe="sf-card grid grid-cols-1 gap-px border border-line bg-line view-tablet:[grid-template-columns:repeat(var(--cd-cols),minmax(0,1fr))]",Xu={phone:{tl:"max-view-tablet:[border-top-left-radius:inherit]",tr:"max-view-tablet:[border-top-right-radius:inherit]",bl:"max-view-tablet:[border-bottom-left-radius:inherit]",br:"max-view-tablet:[border-bottom-right-radius:inherit]"},wide:{tl:"view-tablet:[border-top-left-radius:inherit]",tr:"view-tablet:[border-top-right-radius:inherit]",bl:"view-tablet:[border-bottom-left-radius:inherit]",br:"view-tablet:[border-bottom-right-radius:inherit]"}};function xwe(e,t,o){let n=Bv(o),r=t-1,a=Math.floor(r/n)*n,i=[];return e===0&&i.push(Xu.phone.tl,Xu.phone.tr,Xu.wide.tl),e===r&&i.push(Xu.phone.bl,Xu.phone.br),e===n-1&&t>=n&&i.push(Xu.wide.tr),e===a&&i.push(Xu.wide.bl),e===r&&t%n===0&&i.push(Xu.wide.br),i.join(" ")}function ywe({look:e,eyebrow:t,title:o,columns:n,omitHead:r=!1,editing:a=!1,cards:i,pad:s}={}){let l=me(),d=Bv(n),c=!!(t??"").trim()||!!(o??"").trim();return!a&&!c&&!i?null:tk(D,{as:"section",className:"relative z-[2] bg-surface",children:bwe("div",{...Se(pe(r?YXe:VXe,l),s),children:[r?null:bwe(KXe,{children:[(t??"").trim()&&tk(st,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&tk("h2",{className:`mb-9 font-heading2 ${wwe.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-7 ${wwe.headingMediumUpTo800}`,children:ee(o??"",!1)})]}),i?tk("div",{className:jXe,style:{"--cd-cols":String(d),overflowY:"visible"},children:tk(Io,{children:i})}):null]})})}var kwe=()=>[{title:u("Card title one"),body:u("A short line about this card.")},{title:u("Card title two"),body:u("A short line about this card.")},{title:u("Card title three"),body:u("A short line about this card.")}],Swe=()=>kwe().map(e=>({[th.title]:e.title??"",[th.body]:e.body??""}));function qXe(e){return lt(e)?Vt(e,e.editor?.isEditing===!0,Swe()).rows.filter(t=>t[th.title]||t[th.body]).map(t=>({title:t[th.title]??"",body:t[th.body]??""})):null}function XXe(e){let t=e.editor?.isEditing===!0,o=lt(e),n=NP(e);if(o){let a=Vt(e,t,Swe());return Wv(Mv(a.rows,a.sample?pp(o):[]).filter(zv),n)}let r=De(e.items,kwe(),e.editor).map(Zo);return Wv(Mv(r).filter(a=>t||zv(a)),n)}function ZXe(e,t){let o=`relative grid ${$X} bg-bg`;return ok("div",{className:t?`${o} ${t}`:o,children:e})}var Twe={...WZ,render:e=>{let t=We(e.headPlacement)==="own-box",o=l=>t?void 0:l,n=(e.template?.blockCount??0)>0,r=qXe(e);if(!n&&r&&!r.length)return ok(vwe,{});let a=l=>ok(ywe,{look:is(e.eyebrowLook,e.cardStyle==="label-only"?"KeyFeatures":"Cards"),eyebrow:o(R(e.eyebrow,G0.eyebrow,e.editor)),title:o(R(e.title,G0.title,e.editor)),columns:e.columns,omitHead:t,editing:e.editor?.isEditing,cards:l,pad:Ze("Cards",e)}),{rows:i,states:s}=n?XXe(e):{rows:[],states:[]};return n&&r&&!i.length?ok(vwe,{}):ok($e,{ownerId:String(e.id??""),ownerType:"Cards",Template:e.template,rows:i,states:s,fallback:a(),wrapCopy:(l,d)=>ZXe(l,xwe(d.index,i.length,e.columns)),children:l=>i.length?a(l):a()})}};import{jsx as QXe}from"react/jsx-runtime";import{jsx as nk,jsxs as PM}from"react/jsx-runtime";var CM={body:"text-[length:var(--size-body,12px)]",label:"text-[length:var(--size-label,13px)]"};function Ewe({tabs:e,activeTab:t,links:o,sticky:n=!0,editing:r=!1}){let a=er(),i=(e??[]).filter(p=>p?.label?.trim()),s=i.length>0?i:r?[{label:u("Tab")}]:[],l=(o??[]).filter(p=>p?.label?.trim());if(s.length===0&&l.length===0)return null;let d=t?s.findIndex(p=>p.label.toLowerCase()===t.toLowerCase()):-1,c=d===-1?0:d;return a.scope(nk("nav",{className:mo(`${n?`${ob} sticky top-[var(--sf-header-h,88px)] z-40 `:""}border-b border-line px-[var(--sf-site-gutter,40px)] backdrop-blur-md max-view-desktop:px-[min(16px,var(--sf-site-gutter,40px))]`,a.className),style:{background:"color-mix(in oklab, var(--bg) 92%, transparent)"},...a.attrs,children:PM("div",{className:"mx-auto flex max-w-[calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2)] items-stretch gap-0 overflow-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[s.map((p,m)=>{let f=m===c,g=p.count?.trim()?p.count:"";return PM("span",{className:[`relative whitespace-nowrap border-r border-line px-[22px] py-[18px] font-mono ${CM.label} uppercase tracking-[0.22em] transition-colors`,m===0?"border-l border-line":"",f?"text-fg":"text-fg-dim hover:text-fg"].join(" "),children:[Ko(p.label),g&&nk("span",{className:`ml-2 ${CM.body} text-accent opacity-70`,children:Ko(g)}),f&&nk("span",{className:"absolute inset-x-0 -bottom-px h-[2px] bg-accent"})]},m)}),l.length>0&&nk("div",{className:"ml-auto flex border-l border-line",children:l.map((p,m)=>PM(Pt,{newTab:"auto",href:p.href||"#",className:`flex items-center gap-2.5 px-[22px] py-[18px] font-mono ${CM.label} uppercase tracking-[0.22em] text-fg-dim hover:text-fg`,children:[Ko(p.label)," ",nk("span",{className:"text-accent",children:"\u2197"})]},m))})]})}))}import{hidableText as eZe}from"efficient-easel/draw";var JXe=[{label:"Archive",href:"#sub-recent-issues"},{label:"RSS",href:"/contact"}],Pwe={label:"Category bar",defaultProps:{tabs:[],activeTab:"All",links:JXe,sticky:!0}};var tZe=()=>[{label:u("All")},{label:W.category},{label:W.category}],Cwe={...Pwe,render:({tabs:e,activeTab:t,links:o,sticky:n,editor:r})=>QXe(Ewe,{tabs:De(e,tZe(),r),activeTab:eZe(t),links:o,sticky:n,editing:r?.isEditing})};import{jsx as aZe}from"react/jsx-runtime";import{jsx as en,jsxs as xd}from"react/jsx-runtime";var Jp={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,16px)]",labelSmall:"text-[length:var(--size-label,10px)]",label:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"};function _M(e){return Number.isInteger(e)?String(e):String(Math.round(e*10)/10)}var _we=[100,70,46,30,19,12];function Rwe(e){return`color-mix(in srgb, var(--accent) ${_we[e%_we.length]}%, var(--bg))`}function oZe({data:e,suffix:t}){let o=Math.max(...e.map(n=>n.value),0)||1;return en("div",{className:"flex w-full flex-col gap-6",children:e.map((n,r)=>xd("div",{children:[xd("div",{className:"mb-2 flex items-baseline justify-between gap-4",children:[en("span",{className:`font-mono ${Jp.label} uppercase tracking-[0.14em] text-fg/60`,children:N(n.label)}),xd("span",{className:`font-display ${Jp.bodyLarge} font-medium text-fg`,children:[_M(n.value),t]})]}),en("div",{className:"h-[10px] border border-line bg-bg",children:en("div",{className:"h-full bg-accent",style:{width:`${Math.max(n.value/o*100,n.value===0?0:2)}%`}})})]},r))})}function nZe({data:e,suffix:t}){let o={l:42,r:42,t:36,b:38},n=640-o.l-o.r,r=300-o.t-o.b,a=Math.max(...e.map(c=>c.value),0)||1,i=e.length>1?n/(e.length-1):0,s=e.map((c,p)=>({x:o.l+(e.length>1?p*i:n/2),y:o.t+r-c.value/a*r})),l=s.map((c,p)=>`${p===0?"M":"L"}${c.x},${c.y}`).join(" "),d=`${l} L${s[s.length-1].x},${o.t+r} L${s[0].x},${o.t+r} Z`;return xd("svg",{viewBox:"0 0 640 300",className:"w-full",role:"img","aria-hidden":!0,children:[[.25,.5,.75,1].map(c=>en("line",{x1:o.l,x2:640-o.r,y1:o.t+r*(1-c),y2:o.t+r*(1-c),stroke:"var(--site-line)",strokeWidth:"1"},c)),en("line",{x1:o.l,x2:640-o.r,y1:o.t+r,y2:o.t+r,stroke:"var(--site-line)",strokeWidth:"1.5"}),en("path",{d,fill:"var(--accent)",opacity:"0.13"}),en("path",{d:l,fill:"none",stroke:"var(--accent)",strokeWidth:"2.5"}),s.map((c,p)=>xd("g",{children:[en("circle",{cx:c.x,cy:c.y,r:"4",fill:"var(--accent)"}),xd("text",{x:c.x,y:c.y-12,textAnchor:"middle",className:"font-display",fontSize:"14",fill:"var(--fg)",children:[_M(e[p].value),t]}),en("text",{x:c.x,y:288,textAnchor:"middle",className:"font-mono",fontSize:"10",letterSpacing:"0.1em",fill:"var(--fg)",opacity:"0.55",children:e[p].label.toUpperCase()})]},p))]})}function rZe({data:e,suffix:t}){let o=e.reduce((s,l)=>s+l.value,0)||1,n=80,r=2*Math.PI*n,a=0,i=e.map((s,l)=>{let d=s.value/o,c={frac:d,dash:Math.max(d*r-3,0),off:a,ink:Rwe(l)};return a+=d*r,c});return xd("div",{className:"flex w-full flex-wrap items-center justify-center gap-10",children:[en("svg",{viewBox:"0 0 200 200",className:"w-[220px] max-w-full -rotate-90",role:"img","aria-hidden":!0,children:i.map((s,l)=>en("circle",{cx:"100",cy:"100",r:n,fill:"none",stroke:s.ink,strokeWidth:"34",strokeDasharray:`${s.dash} ${r-s.dash}`,strokeDashoffset:-s.off},l))}),en("ul",{className:"flex min-w-[200px] flex-1 flex-col gap-3",children:e.map((s,l)=>xd("li",{className:"flex items-baseline gap-3",children:[en("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] flex-shrink-0 rotate-45",style:{background:Rwe(l)}}),en("span",{className:`flex-1 font-mono ${Jp.label} uppercase tracking-[0.12em] text-fg/60`,children:N(s.label)}),en("span",{className:`font-display ${Jp.bodySmall} font-medium text-fg`,children:t?`${_M(s.value)}${t}`:`${Math.round(s.value/o*100)}%`})]},l))})]})}function Nwe({eyebrow:e,title:t,body:o,chartStyle:n,items:r,valueSuffix:a,caption:i,editing:s=!1,omitHead:l=!1,pad:d}={}){let c=me(),p=(a??"").trim()===""?"":a??"",m=(r??[]).map(b=>({label:(b.label??"").trim(),value:parseFloat(b.value??"")})).filter(b=>s?!0:b.label&&Number.isFinite(b.value)).map(b=>({label:b.label||"\u2014",value:Number.isFinite(b.value)?b.value:0})),f=!l&&(!!(e??"").trim()||!!(t??"").trim());if(!s&&!f&&m.length===0)return null;let g=n??"bars",h=m.length===0?null:g==="line"&&m.length>1?en(nZe,{data:m,suffix:p}):g==="donut"?en(rZe,{data:m,suffix:p}):en(oZe,{data:m,suffix:p});return l?h?en("div",{className:"w-full",children:h}):null:en(D,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:xd("div",{...Se(pe("mx-auto grid max-w-[var(--sf-site-width,1600px)] items-center gap-14 px-[var(--sf-site-gutter,40px)] py-[76px] min-[960px]:[grid-template-columns:minmax(0,5fr)_minmax(0,7fr)] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",c),d),children:[xd("div",{children:[(e??"").trim()&&en("span",{className:`inline-block bg-accent px-3.5 py-1.5 font-mono ${Jp.labelLarge} font-semibold uppercase tracking-[0.16em] text-bg`,children:N(e??"")}),(t??"").trim()&&en("h2",{className:`mt-5 font-heading2 ${Jp.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${Jp.headingMediumUpTo800}`,children:ee(t??"",!1)}),(o??"").trim()&&en("p",{className:`mt-5 max-w-[46ch] ${Jp.bodySmall} leading-relaxed text-fg/65`,children:o})]}),xd("div",{children:[h,(i??"").trim()&&en("p",{className:`mt-4 font-mono ${Jp.labelSmall} uppercase tracking-[0.14em] text-fg/40`,children:i})]})]})})}var iZe=()=>[{label:u("Before"),value:"9"},{label:u("After"),value:"3"},{label:u("With us"),value:"1"}],Owe={...fQ,render:e=>{let{eyebrow:t,title:o,body:n,items:r,caption:a,chartStyle:i,valueSuffix:s,headPlacement:l,editor:d}=e,c=We(l)==="own-box",p=m=>c?void 0:m;return aZe(Nwe,{eyebrow:p(R(t,tb.eyebrow,d)),title:p(R(o,tb.title,d)),body:p(Jo(n)),items:De(r,iZe(),d),chartStyle:i,valueSuffix:Jo(s),caption:p(Jo(a)),editing:d?.isEditing,omitHead:c,pad:Ze("Chart",e)})}};import{jsx as LM,Fragment as _Ze}from"react/jsx-runtime";import{jsx as Gt,jsxs as xs,Fragment as Bwe}from"react/jsx-runtime";import{useEffect as wZe,useState as xZe}from"react";import{useRootIsDark as yZe}from"efficient-shell/theme";import{jsx as Awe,jsxs as Lwe}from"react/jsx-runtime";var RM={headingSmall:"text-[length:var(--size-headingSmall,24px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function zN({groupKey:e,name:t,count:o}){return Lwe("div",{className:"mb-5 flex items-end justify-between gap-4 border-b border-line pb-4",children:[Awe("span",{className:`font-mono ${RM.labelLarge} uppercase tracking-[0.3em] text-accent`,children:e}),t?Awe("span",{className:`font-heading3 ${RM.headingSmall} font-medium uppercase tracking-[-0.01em]`,children:t}):null,Lwe("span",{className:`font-mono ${RM.labelSmall} uppercase tracking-[0.22em] text-fg-dim`,children:[o," location",o===1?"":"s"]})]})}import{jsx as rk,jsxs as NM}from"react/jsx-runtime";import{useMemo as hZe}from"react";import{jsx as sZe,jsxs as lZe}from"react/jsx-runtime";import{useEffect as Iwe,useRef as dZe,useState as Fwe}from"react";import{EntityMap as cZe}from"efficient-shell/map";import{watchRootTheme as pZe}from"efficient-shell/format";var mZe={"--rosh-map-pin":"var(--accent)","--rosh-map-pin-text":"var(--bg)","--rosh-map-pin-edge":"var(--bg)","--rosh-map-ring":"var(--fg)","--rosh-map-radius":"0px","--rosh-map-font":"var(--font-role-label)"};function uZe(e){let[t,o]=Fwe(()=>PE(e));return Iwe(()=>(o(PE(e)),pZe(()=>o(PE(e)))),[e]),t?"light":"dark"}function fZe(e){let[t,o]=Fwe(!1);return Iwe(()=>{let n=e.current;if(!n||t)return;if(typeof IntersectionObserver>"u"){o(!0);return}let r=new IntersectionObserver(a=>{a.some(i=>i.isIntersecting)&&(r.disconnect(),o(!0))},{rootMargin:"200px"});return r.observe(n),()=>r.disconnect()},[e,t]),t}function lx({pins:e,mapTheme:t,ariaLabel:o,className:n="",selectedKey:r=null,focus:a=null,onSelect:i,fitTo:s,card:l,groupCrowded:d=!1,children:c}){let p=dZe(null),m=fZe(p),f=uZe(t);return lZe("div",{ref:p,"data-site-map":"",className:n,style:mZe,children:[m&&sZe(cZe,{pins:e,selectedKey:r,focus:a,onSelect:i??(()=>{}),ariaLabel:o,fitTo:s,card:l,groupCrowded:d,look:"site",theme:f,cooperativeGestures:"coarse"}),c]})}var gZe="relative overflow-hidden max-view-desktop:aspect-square";function bZe(e,t,o){return Cm(t,o)?[{key:"place",label:e,lat:t,lng:o,glyph:"",tone:""}]:[]}function OM(e,t,o,n){return e||(t?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent([t,o,n].filter(Boolean).join(" "))}`:"")}function AM({href:e}){return rk("a",{href:e,..._P,className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent transition-colors hover:text-fg",children:"Get directions\xA0\u2197"})}function WN({name:e,state:t,country:o,lat:n,lng:r,mapsUrl:a,mapTheme:i="auto",pick:s,editing:l,boxClass:d=gZe,takesViewHide:c=!1}){let p=Cm(n,r),m=t,f=e||"Location",g=hZe(()=>bZe(f,n,r),[f,n,r]),h=OM(a,e,t,o),b=NM("div",{className:"absolute left-5 top-5 z-10 flex max-w-[64%] flex-col gap-1.5 border border-line bg-bg p-3.5 shadow-[0_8px_24px_color-mix(in_srgb,var(--overlay-scrim)_40%,transparent)]",children:[NM("span",{className:"font-display text-[length:var(--size-body,14px)] font-medium tracking-[-0.01em]",children:[f,m?`, ${m}`:""]}),h&&rk(AM,{href:h})]});return p?rk(D,{takes:c,"data-loc-pick":s,className:d,children:rk(lx,{pins:g,mapTheme:i,ariaLabel:f,className:"absolute inset-0",children:b})}):NM(D,{takes:c,"data-loc-pick":s,className:`${d} bg-bg`,style:{backgroundImage:"repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 4%, transparent) 0 1px, transparent 1px 14px), repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent) 4%, transparent) 0 1px, transparent 1px 14px), linear-gradient(135deg, var(--site-surface-2), var(--site-surface))"},children:[b,l&&rk("div",{className:"absolute inset-0 flex items-center justify-center px-6 text-center font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-fg-dim/40",children:"Add latitude & longitude"})]})}var vZe=nJ({box:".contact-loc",lit:['.contact-loc[data-active="true"]'],first:e=>[`${e} > div:first-child`]}),Hwe=e=>fr(e?.photo)?.trim()||void 0;function Dwe({value:e}){if(typeof e=="string"){let t=e.split(`
@@ -172,6 +172,12 @@ ${d.src}`)})}),s&&r&&JG("div",{className:"mt-2 truncate font-mono text-[length:v
172
172
  outline: 2px solid var(--es-canvas-outline-colour);
173
173
  outline-offset: var(--es-words-clear);
174
174
  }
175
+ /* Words the next click selects are hovered in that same box (Lewis
176
+ 2026-11-24: the hover frame and the selected frame are one size): the
177
+ hover's own line, the words box's clearance. */
178
+ .es-canvas-outline.is-hover.is-words {
179
+ outline-offset: var(--es-words-clear);
180
+ }
175
181
  /* The 4px is WORDS_CLEAR in canvas/dom, the one home: the canvas sets
176
182
  \`--es-words-clear\` from it on both boxes; no literal here. Selected words
177
183
  wear that same box from the click on (Lewis 2026-10-26, option B): a