efficient-storefront-blocks 0.130.8 → 0.130.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{$ as yp,$a as HJ,$b as Qm,$c as aee,$d as nte,$e as Lte,$f as Rb,$g as Ure,A as Um,Aa as EJ,Ab as mQ,Ac as eC,Ad as Cee,Ae as gte,Af as Vte,Ag as dre,Ah as rae,B as tZ,Ba as eb,Bb as hQ,Bc as tl,Bd as nu,Be as KF,Bf as JF,Bg as cre,Bh as aae,C as NZ,Ca as AP,Cb as gQ,Cc as _F,Cd as rc,Ce as ed,Cf as EC,Cg as k6,Ch as iae,D as me,Da as wF,Db as WP,Dc as cb,Dd as _ee,De as bte,Df as PC,Dg as w2,Dh as sae,E as OZ,Ea as tb,Eb as bQ,Ec as GQ,Ed as Ree,Ee as wte,Ef as Yte,Eg as pre,Eh as Hb,F as Wv,Fa as _J,Fb as hh,Fc as $Q,Fd as Nee,Fe as VF,Ff as CC,Fg as p_,Fh as lae,G as HZ,Ga as LP,Gb as So,Gc as KQ,Gd as Oee,Ge as xte,Gf as jte,Gg as m_,Gh as dae,H as DZ,Ha as RJ,Hb as UP,Hc as VQ,Hd as Aee,He as yte,Hf as QF,Hg as mre,Hh as cae,I as MZ,Ia as $v,Ib as xQ,Ic as YQ,Id as Lee,Ie as vte,If as _C,Ig as ure,Ih as nd,J as zZ,Ja as Kv,Jb as GP,Jc as jQ,Jd as Iee,Je as kte,Jf as qte,Jg as u_,Jh as pae,K as kP,Ka as IP,Kb as $P,Kc as RF,Kd as Fee,Ke as YF,Kf as e6,Kg as fre,Kh as pu,L as WZ,La as NJ,Lb as kQ,Lc as qQ,Ld as Bee,Le as Ste,Lf as Xte,Lg as hre,Lh as mae,M as UZ,Ma as OJ,Mb as Nt,Mc as XQ,Md as Hee,Me as Tte,Mf as Zte,Mg as gre,Mh as C6,N as GZ,Na as AJ,Nb as SQ,Nc as tu,Nd as Dee,Ne as Ete,Nf as Jte,Ng as bre,Nh as uae,O as $Z,Oa as LJ,Ob as A,Oc as ZQ,Od as Mee,Oe as qF,Of as Qte,Og as Are,Oh as fae,P as KZ,Pa as IJ,Pb as Ko,Pc as tc,Pd as Vee,Pe as bC,Pf as Hne,Pg as Lre,Ph as w_,Q as VZ,Qa as FJ,Qb as PF,Qc as JQ,Qd as Yee,Qe as wC,Qf as Dne,Qg as Ire,Qh as hae,R as YZ,Ra as Vv,Rb as ee,Rc as ou,Rd as mC,Re as _te,Rf as Mne,Rg as Fre,Rh as gae,S as Xe,Sa as Yv,Sb as Ft,Sc as QQ,Sd as jee,Se as Rte,Sf as zne,Sg as Bre,Sh as x2,T as gF,Ta as jv,Tb as Js,Tc as tC,Td as qee,Te as Nte,Tf as g6,Tg as Ib,Th as bae,U as Te,Ua as FP,Ub as TQ,Uc as eee,Ud as Xee,Ue as ru,Uf as Wne,Ug as Hre,Uh as wae,V as lJ,Va as BJ,Vb as EQ,Vc as tee,Vd as Zee,Ve as Lo,Vf as Une,Vg as g_,W as $o,Wa as jm,Wb as Qs,Wc as oee,Wd as Jee,We as xC,Wf as a_,Wg as Dre,X as mJ,Xa as BP,Xb as KP,Xc as nee,Xd as Qee,Xe as Ote,Xf as du,Xg as Mre,Y as Gv,Ya as uh,Yb as PQ,Yc as Ln,Yd as ete,Ye as Ate,Yf as i_,Yg as zre,Z as Xd,Za as fh,Zb as Jm,Zc as ree,Zd as tte,Ze as yC,Zf as Cb,Zg as Wre,_ as CP,_a as ob,_b as el,_c as Sp,_d as ote,_e as vC,_f as _b,_g as E6,a as X4,aa as Zd,ab as DJ,ac as _Q,ad as iee,ae as rte,af as Ite,ag as Nb,ah as lt,b as $s,ba as Jd,bb as MJ,bc as jP,bd as Xv,be as Pp,bf as XF,bg as b6,bh as Mt,c as Ks,ca as Ym,cb as zJ,cc as qP,cd as Tp,ce as ate,cf as ub,cg as w6,ch as Da,d as On,da as mh,db as WJ,dc as CF,dd as fo,de as ite,df as wh,dg as s_,dh as so,e as Fv,ea as uJ,eb as rr,ec,ed as oC,ee as ste,ef as Fte,eg as Gne,eh as Gre,f as Dm,fa as _P,fb as nb,fc as He,fd as pee,fe as lte,ff as Bte,fg as x6,fh as $re,g as Bv,ga as fJ,gb as UJ,gc as _,gd as Ep,ge as WF,gf as kC,gg as $ne,gh as P6,h as nX,ha as RP,hb as GJ,hc as nn,hd as mee,he as UF,hf as Hte,hg as Kne,hh as Kre,i as UE,ia as hJ,ib as $J,ic as un,id as Bt,ie as GF,if as Ha,ig as Vne,ih as Vre,j as z0,ja as NP,jb as HP,jc as ii,jd as Ba,je as uC,jf as nl,jg as jne,jh as Yre,k as lh,ka as Z0,kb as KJ,kc as XP,kd as AF,ke as fC,kf as Ue,kg as qne,kh as jre,l as GE,la as J0,lb as xF,lc as RQ,ld as rC,le as hC,lf as au,lg as Xne,lh as dl,m as $E,ma as gJ,mb as VJ,mc as NQ,md as uee,me as gC,mf as Dte,mg as Zne,mh as qre,n as KE,na as bJ,nb as qv,nc as OQ,nd as fee,ne as dte,nf as Mte,ng as Jne,nh as Fb,o as VE,oa as Q0,ob as YJ,oc as AQ,od as aC,oe as cte,of as zte,og as Qne,oh as Xre,p as YE,pa as wJ,pb as jJ,pc as LQ,pd as iC,pe as pte,pf as Wte,pg as ere,ph as Zre,q as jE,qa as xJ,qb as qJ,qc as IQ,qd as hee,qe as mte,qf as a2,qg as tre,qh as b_,r as rX,ra as yJ,rb as kF,rc as FQ,rd as gee,re as t2,rf as SC,rg as ore,rh as Bb,s as iX,sa as Xs,sb as MP,sc as BQ,sd as Jv,se as o2,sf as Ute,sg as nre,sh as Jre,t as sX,ta as OP,tb as zP,tc as kp,td as Qv,te as n2,tf as i2,tg as y6,th as Qre,u as JE,ua as vp,ub as cQ,uc as ZP,ud as BF,ue as r2,uf as xh,ug as ire,uh as eae,v as QE,va as ss,vb as pQ,vc as HQ,vd as HF,ve as ute,vf as ZF,vg as c_,vh as Op,w as WX,wa as vJ,wb as lb,wc as DQ,wd as mb,we as fte,wf as Gte,wg as sre,wh as Eh,x as UX,xa as kJ,xb as SF,xc as zQ,xd as dC,xe as hte,xf as $te,xg as lre,xh as tae,y as lP,ya as SJ,yb as TF,yc as WQ,yd as DF,ye as bh,yf as At,yg as Ob,yh as oae,z as cF,za as TJ,zb as EF,zc as UQ,zd as Pee,ze as $F,zf as Kte,zg as v6,zh as nae}from"./chunks/chunk-7QM6BBAM.js";import{$ as Sie,A as uie,Aa as B6,B as fie,Ba as Aie,C as T_,Ca as Lie,D as Gb,Da as B_,E as E_,Ea as Iie,F as hie,Fa as ms,G as P_,Ga as H_,H as C_,Ha as Xb,I as gie,Ia as Fie,J as $b,Ja as Bie,K as Kb,Ka as Ip,L as __,La as H6,M as bie,N as wie,Na as D6,O as R_,Oa as Zb,P as uu,Pa as Jb,Q as xie,Qa as D_,R as N_,Ra as Rh,S as Vb,Sa as Wr,T as yie,U as Ch,V as vie,W as fu,X as Yb,Y as O_,Z as Lp,_ as kie,a as ma,aa as Tie,b as tie,ba as A_,ca as L_,da as I_,ea as Eie,f as Ap,fa as jb,g as k_,ga as Pie,h as oie,i as L6,j as nie,ja as Cie,k as rie,ka as _ie,l as aie,la as hu,m as S_,ma as Ot,n as I6,na as Rie,o as iie,p as ua,pa as F6,q as sie,qa as qb,r as lie,ra as Fn,s as mu,sa as F_,t as die,ta as k2,u as dc,v as v2,va as gu,w as cie,wa as cc,x as Ub,xa as Nie,y as pie,ya as _h,z as mie,za as Oie}from"./chunks/chunk-3YVTYYIP.js";import{A as Nae,B as Oae,C as Aae,D as Lae,E as Iae,F as Fae,G as Bae,H as Hae,I as Dae,J as N6,K as Mae,L as O6,M as fn,N as zae,O as Ai,P as Wae,Q as Uae,R as v_,S as ar,T as Gae,U as $ae,V as Kae,W as Vae,X as Mb,Y as Yae,b as x_,ca as zb,da as Io,e as y2,ea as Ph,f as Db,fa as jae,ga as Wb,h as In,ha as Ae,i as lc,ia as qae,j as xae,ja as A6,k as yae,ka as Xae,l as vae,la as Zae,m as kae,ma as Jae,n as Sae,na as Qae,o as _6,oa as eie,p as cl,q as Tae,r as Eae,s as rt,t as Oi,u as Pae,v as Cae,w as R6,x as _ae,y as y_,z as Rae}from"./chunks/chunk-LWJKGQLZ.js";import{$ as EZ,A as bZ,B as Dv,C as wZ,F as j0,G as Gm,H as vZ,I as wp,L as kZ,M as An,N as hP,O as Qt,P as M,Q as uF,S as Km,T as q0,U as SZ,V as fF,W as TZ,X as X0,aa as yF,b as GX,ba as Xm,c as $X,ca as eQ,da as ib,ea as tQ,fa as Zs,g as KX,ga as wQ,ha as Le,i as oZ,ia as Th,j as uP,k as fP,ka as rre,l as nZ,la as l_,m as rZ,ma as are,n as aZ,na as d_,o as iZ,p as sZ,q as lZ,r as dZ,s as cZ,u as pZ,v as mZ,w as uZ,x as fZ,y as hZ,z as gZ}from"./chunks/chunk-QAUFSKVD.js";import{a as Ni,b as see,c as oc,e as ds,h as TC,j as pa,k as Ore}from"./chunks/chunk-RCXMXKPT.js";import{a as PZ,b as _Z,e as RZ}from"./chunks/chunk-HEKC2QYZ.js";import{$b as LZ,$c as nJ,$d as ab,$e as pb,$f as jF,$g as il,$h as UC,$k as eo,Ae as uQ,Af as lC,Ag as ioe,Ai as p2,Ak as Ane,Bc as bF,Bf as Eee,Bg as soe,Bh as Eoe,Bi as Sh,Bk as b2,C as pe,Cb as bp,Cc as qZ,Ce as fQ,Cg as loe,Ci as Xoe,Cj as t_,Ck as Pb,D as Ci,Db as Hv,Dc as XZ,De as Qd,Df as FF,Dh as Poe,Di as Zoe,Dj as ac,Dk as Lne,E as mX,Eb as ph,Eh as yb,Ei as YC,Ej as o_,Ek as Ine,Fb as pP,Fc as SP,Fe as W,Fh as ca,Fi as Joe,Fk as Fne,G as uX,Ga as MX,Gb as mP,Gc as TP,Ge as VP,Gh as r6,Gi as jC,Gj as u6,Gk as Bne,Hc as Vm,He as En,Hf as zee,Hh as Coe,Hi as Qoe,Hj as ic,Ia as zX,Ic as ZZ,Ie as db,If as cC,Ih as _oe,Ii as ene,Jc as JZ,Je as CQ,Jf as Wee,Jh as a6,Ji as m2,Jj as hne,K as fX,Ke as YP,Kf as Uee,Kh as i6,Ki as u2,Kj as gne,La,Ld as dJ,Le as Zm,Lf as ol,Lh as s6,Li as qC,Lj as bne,M as hX,Ma as Ia,Md as qd,Me as Yt,Mf as Gee,Mh as l2,Mi as tne,Mj as wne,N as gX,Na as VX,Nd as Uv,Nf as $ee,Nh as l6,Ni as one,Nj as xne,Oa as YX,Oe as eu,Of as pC,Oh as d2,Oi as nne,Pa as jX,Pd as PP,Pe as JP,Pf as Kee,Ph as iu,Pi as m6,Pj as yne,Pk as wre,Qa as qX,Qd as cJ,Qe as QP,Qh as Roe,Qi as rne,Qj as vne,R as eP,Rb as Mv,Rd as pJ,Rh as Noe,Ri as ane,Rj as sc,S as tP,Sa as XX,Sb as gP,Se as MQ,Sg as al,Sh as su,Si as ine,Sj as kne,Sk as xre,T as bX,Tb as bP,Td as PJ,Te as lee,Tg as doe,Th as WC,Ti as f2,Tj as Sne,U as wX,Ua as pF,Ub as Ql,Uc as QZ,Ud as CJ,Ue as si,Ug as coe,Uh as Ooe,Ui as sne,Uj as Tne,V as G0,Vb as _i,Ve as nc,Vg as LC,Vh as Aoe,Vi as lne,Vj as h2,W as xX,Wb as AZ,Wd as XJ,We as Zv,Wg as hb,Wh as lu,Wi as vr,Xb as zv,Xe as nC,Xf as MF,Xg as Rp,Xh as Loe,Xi as XC,Xj as Ene,Yb as is,Yc as eJ,Yd as qm,Ye as NF,Yf as zF,Yg as gb,Yh as c2,Yi as dne,Z as yX,Zc as tJ,Zd as ZJ,Ze as dee,Zf as e2,Zg as IC,Zh as d6,Zi as ZC,_b as qs,_c as oJ,_d as rb,_e as cee,_f as cs,_g as o6,_h as c6,_i as cne,_j as g2,_k as yre,a as Vd,aa as oP,ac as xp,ae as JJ,ag as Pte,ah as da,ai as Ioe,aj as pne,al as Ab,b as Dq,bc as wP,be as QJ,bg as Cte,bh as poe,bi as GC,bj as li,bl as Lb,c as aX,cc as IZ,ce as DP,cj as JC,cl as ll,d as qE,dc as xP,de as oQ,dg as fb,dh as moe,di as $C,dj as mne,dl as to,ec as Fa,ef as OF,eg as RC,eh as uoe,ei as Foe,ej as kb,el as vre,fb as ZX,fc as yP,fd as Ri,fg as ae,fh as FC,fi as Boe,fj as kr,fk as Pne,fl as kre,g as u,ga as oF,gc as FZ,gd as rJ,gg as le,gh as BC,gi as Hoe,gk as te,gl as Sre,h as nr,hb as JX,hc as BZ,he as vF,hf as gh,hg as Cp,hh as boe,hi as vh,hj as Zo,hk as ps,hl as Tre,ib as QX,ic as vP,if as bee,ig as Ce,ih as woe,ii as KC,ik as Cne,il as Ere,j as Mm,ja as OX,jg as eoe,jh as xoe,ji as kh,jj as Sb,jk as _ne,jl as f_,k as jd,ka as V0,kd as aJ,kf as wee,kg as NC,ki as Doe,kj as une,kk as Np,kl as Pre,la as AX,le as nQ,lf as sC,lg as rl,lh as MC,li as Moe,lj as QC,ll as Cre,m as cX,ma as LX,mb as eZ,me as rQ,mg as OC,mh as yoe,mj as e_,mk as f6,ml as _re,na as IX,nb as mF,ne as aQ,nf as xee,ng as AC,nh as n6,ni as zoe,nj as Tb,nk as Eb,oa as FX,oe as Mr,of as yee,og as yh,oh as bb,oi as Woe,oj as U,ok as Mo,ol as Rre,pa as BX,pb as Y0,pd as iJ,pe as ls,pf as vee,pg as td,ph as wb,pi as Uoe,pj as q,pk as n_,pl as Nre,q as tF,qa as dF,qb as dh,qe as sb,qf as kee,qg as toe,qh as zC,qi as Goe,qj as J,qk as Rne,ql as S6,ra as HX,rb as js,re as iQ,rg as _p,rh as voe,ri as $oe,rj as xe,rk as Qe,rl as T6,sa as DX,sg as od,sh as koe,si as p6,sj as Ve,sk as r_,sl as h_,ta as iP,tb as dP,tc as jZ,td as sJ,te as sQ,tf as See,tg as ooe,th as Soe,ti as Koe,tj as je,tk as h6,ua as sP,ug as t6,ui as Voe,uk as zr,v as pX,ve as lQ,vg as noe,vi as Yoe,vj as sl,w as Jl,wb as xo,wf as LF,wg as roe,wh as xb,wi as VC,wj as fne,x as U0,xb as ch,xe as dQ,xf as IF,xg as aoe,xi as vb,xk as Nne,yb as cP,yf as Tee,yg as io,yh as Toe,yi as joe,yk as One,z as zm,zb as Dr,zd as EP,zf as yr,zi as qoe}from"./chunks/chunk-TQIJVK3T.js";import{d as hF,h as CZ}from"./chunks/chunk-NOV6LTTJ.js";import{$b as _v,$c as ft,A as Br,Ab as Rj,Ad as fq,Af as Uq,Ah as aP,B as Ra,Ba as Sj,Bf as Iv,Bg as Zq,Bh as Ys,C as Sn,Ca as Tn,Cb as vE,Cd as hq,Cf as DE,Cg as Jq,Ch as sF,De as Hm,Df as J4,Dg as Qq,Dh as Wm,E as Vn,Ea as wE,Ec as PE,Ed as Oa,Ee as Pq,Ef as ME,Eg as eX,Eh as lF,Fa as Tj,Fb as Nj,Fc as CE,Fd as ri,Fe as Cq,Ff as Yd,Ga as th,Gb as nh,Gc as G4,Gd as Fe,Ge as _q,Gf as gp,Gh as RX,H as H4,Ha as xE,Hb as Kd,Hc as Qj,Hd as Pi,He as Rq,Hh as K0,I as D4,Ib as N0,Ic as L0,Id as at,Ie as D0,Ih as NX,Jb as Yl,Jc as I0,Jg as tX,K as uj,Kb as rh,Kc as eq,Lb as Lm,Lc as tq,Ld as st,Mb as Oj,Mc as $4,N as fj,Na as Ej,Nb as Hr,Nc as oq,Nf as Gq,Ng as oX,Oa as Pj,Ob as or,Oc as F0,Od as ze,Oe as Nq,Pa as Cj,Pb as Aj,Pc as nq,Pf as zE,Qb as Lj,Qc as Rv,Qd as Aa,R as M4,Rb as Ij,Rd as gq,Sb as Fj,Sc as rq,Sd as it,Se as Av,Ta as _j,Tb as kE,Tc as aq,Td as B0,Te as FE,Tf as $q,U as hj,Ub as SE,Uc as iq,Ue as Oq,Uf as WE,Ug as Vs,Vb as Bj,Vc as sq,Vd as RE,Ve as BE,Vg as lX,Vh as xZ,W as _e,Wb as Hj,Wc as lq,Wd as NE,We as Aq,Wg as XE,X as ce,Xb as Dj,Xc as We,Xd as Xl,Xe as Lq,Yb as Mj,Yc as Et,Ye as Yn,Z as gj,Zb as zj,Zc as Us,Ze as Iq,_b as Wj,_c as Me,_d as bq,_e as on,aa as bj,ac as Uj,ad as K4,ag as Q4,ah as W0,ai as $m,b as xr,bc as Im,bd as dq,bf as Fq,bh as dX,bi as yZ,c as Ev,cc as Gj,cd as uo,ce as OE,ch as ZE,ci as ai,da as R0,dc as $j,de as Bm,dh as nP,e as fE,ea as wj,ec as Kj,ed as ql,ef as Bq,eh as vX,f as $d,fa as xj,fd as Fm,fe as AE,ff as Hq,fh as nF,g as Pv,ga as bE,gb as ni,gc as jl,gd as Na,ge as Nv,gh as rF,hc as O0,hd as Ao,hf as hp,hh as aF,ic as A0,id as cq,ie as Y4,if as q4,ih as kX,ii as s2,ja as yj,jc as Vj,je as j4,jf as HE,jh as SX,ji as HC,kc as Yj,ke as wq,kf as Zl,kg as Kq,kh as TX,ki as DC,l as F4,lc as jj,le as xq,lf as ih,lh as EX,li as jn,m as _0,mb as W4,mc as U4,md as pq,me as yq,mh as PX,mi as foe,nc as qj,nd as Oe,nf as Lv,ng as Vq,nh as iF,ni as hoe,ob as oh,oe as LE,of as Gs,oh as CX,oi as goe,p as B4,pb as Cv,pc as TE,pd as ah,pe as vq,pf as M0,qa as vj,qe as H0,qf as Z4,qg as Yq,qi as cu,r as hE,rg as jq,rh as _X,ri as Yne,s as fp,sa as z4,sc as Xj,t as gE,tb as Ws,te as kq,tg as qq,u as dt,uc as as,ue as Sq,uf as Mq,v as mj,vd as _E,ve as Tq,w as Kt,wa as kj,wc as Zj,wd as V4,wf as zq,wh as rP,x as Ms,xb as yE,xc as EE,xd as mq,xe as Ov,xf as sh,xg as Xq,y as Go,yc as Jj,yd as uq,ye as Eq,yf as Wq,yg as eF,yh as la,z as Rt,za as ko,ze as IE,zh as $0}from"./chunks/chunk-KCZDH44S.js";import{a as zs}from"./chunks/chunk-5OXXOEE7.js";import{a as yQ,c as vQ}from"./chunks/chunk-3DKV2YJ6.js";import{a as kn,b as eBe}from"./chunks/chunk-Y6SLVHK3.js";var jf=kn(w0=>{"use strict";var SV,vSt=[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];w0.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};w0.getSymbolTotalCodewords=function(t){return vSt[t]};w0.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};w0.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');SV=t};w0.isKanjiModeEnabled=function(){return typeof SV<"u"};w0.toSJIS=function(t){return SV(t)}});var $3=kn($l=>{"use strict";$l.L={bit:1};$l.M={bit:0};$l.Q={bit:3};$l.H={bit:2};function kSt(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return $l.L;case"m":case"medium":return $l.M;case"q":case"quartile":return $l.Q;case"h":case"high":return $l.H;default:throw new Error("Unknown EC Level: "+e)}}$l.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};$l.from=function(t,o){if($l.isValid(t))return t;try{return kSt(t)}catch{return o}}});var b4e=kn((oEn,g4e)=>{"use strict";function h4e(){this.buffer=[],this.length=0}h4e.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++}};g4e.exports=h4e});var x4e=kn((nEn,w4e)=>{"use strict";function UT(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)}UT.prototype.set=function(e,t,o,n){let r=e*this.size+t;this.data[r]=o,n&&(this.reservedBit[r]=!0)};UT.prototype.get=function(e,t){return this.data[e*this.size+t]};UT.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o};UT.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};w4e.exports=UT});var y4e=kn(K3=>{"use strict";var SSt=jf().getSymbolSize;K3.getRowColCoords=function(t){if(t===1)return[];let o=Math.floor(t/7)+2,n=SSt(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()};K3.getPositions=function(t){let o=[],n=K3.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 S4e=kn(k4e=>{"use strict";var TSt=jf().getSymbolSize,v4e=7;k4e.getPositions=function(t){let o=TSt(t);return[[0,0],[o-v4e,0],[0,o-v4e]]}});var T4e=kn(en=>{"use strict";en.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var x0={N1:3,N2:3,N3:40,N4:10};en.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};en.from=function(t){return en.isValid(t)?parseInt(t,10):void 0};en.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+=x0.N1+(r-5)),i=c,r=1),c=t.get(d,l),c===s?a++:(a>=5&&(n+=x0.N1+(a-5)),s=c,a=1)}r>=5&&(n+=x0.N1+(r-5)),a>=5&&(n+=x0.N1+(a-5))}return n};en.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*x0.N2};en.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*x0.N3};en.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)*x0.N4};function ESt(e,t,o){switch(e){case en.Patterns.PATTERN000:return(t+o)%2===0;case en.Patterns.PATTERN001:return t%2===0;case en.Patterns.PATTERN010:return o%3===0;case en.Patterns.PATTERN011:return(t+o)%3===0;case en.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2===0;case en.Patterns.PATTERN101:return t*o%2+t*o%3===0;case en.Patterns.PATTERN110:return(t*o%2+t*o%3)%2===0;case en.Patterns.PATTERN111:return(t*o%3+(t+o)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}en.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,ESt(t,a,r))};en.getBestMask=function(t,o){let n=Object.keys(en.Patterns).length,r=0,a=1/0;for(let i=0;i<n;i++){o(i),en.applyMask(i,t);let s=en.getPenaltyN1(t)+en.getPenaltyN2(t)+en.getPenaltyN3(t)+en.getPenaltyN4(t);en.applyMask(i,t),s<a&&(a=s,r=i)}return r}});var EV=kn(TV=>{"use strict";var qf=$3(),V3=[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],Y3=[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];TV.getBlocksCount=function(t,o){switch(o){case qf.L:return V3[(t-1)*4+0];case qf.M:return V3[(t-1)*4+1];case qf.Q:return V3[(t-1)*4+2];case qf.H:return V3[(t-1)*4+3];default:return}};TV.getTotalCodewordsCount=function(t,o){switch(o){case qf.L:return Y3[(t-1)*4+0];case qf.M:return Y3[(t-1)*4+1];case qf.Q:return Y3[(t-1)*4+2];case qf.H:return Y3[(t-1)*4+3];default:return}}});var E4e=kn(q3=>{"use strict";var GT=new Uint8Array(512),j3=new Uint8Array(256);(function(){let t=1;for(let o=0;o<255;o++)GT[o]=t,j3[t]=o,t<<=1,t&256&&(t^=285);for(let o=255;o<512;o++)GT[o]=GT[o-255]})();q3.log=function(t){if(t<1)throw new Error("log("+t+")");return j3[t]};q3.exp=function(t){return GT[t]};q3.mul=function(t,o){return t===0||o===0?0:GT[j3[t]+j3[o]]}});var P4e=kn($T=>{"use strict";var PV=E4e();$T.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]^=PV.mul(t[r],o[a]);return n};$T.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]^=PV.mul(o[i],r);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n};$T.generateECPolynomial=function(t){let o=new Uint8Array([1]);for(let n=0;n<t;n++)o=$T.mul(o,new Uint8Array([1,PV.exp(n)]));return o}});var R4e=kn((cEn,_4e)=>{"use strict";var C4e=P4e();function CV(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}CV.prototype.initialize=function(t){this.degree=t,this.genPoly=C4e.generateECPolynomial(this.degree)};CV.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=C4e.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};_4e.exports=CV});var _V=kn(N4e=>{"use strict";N4e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var RV=kn(Rm=>{"use strict";var O4e="[0-9]+",PSt="[A-Z $%*+\\-./:]+",KT="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";KT=KT.replace(/u/g,"\\u");var CSt="(?:(?![A-Z0-9 $%*+\\-./:]|"+KT+`)(?:.|[\r
1
+ import{$ as yp,$a as HJ,$b as Qm,$c as aee,$d as nte,$e as Lte,$f as Rb,$g as Ure,A as Um,Aa as EJ,Ab as mQ,Ac as eC,Ad as Cee,Ae as gte,Af as Vte,Ag as dre,Ah as rae,B as tZ,Ba as eb,Bb as hQ,Bc as tl,Bd as nu,Be as KF,Bf as JF,Bg as cre,Bh as aae,C as NZ,Ca as AP,Cb as gQ,Cc as _F,Cd as rc,Ce as ed,Cf as EC,Cg as k6,Ch as iae,D as me,Da as wF,Db as WP,Dc as cb,Dd as _ee,De as bte,Df as PC,Dg as w2,Dh as sae,E as OZ,Ea as tb,Eb as bQ,Ec as GQ,Ed as Ree,Ee as wte,Ef as Yte,Eg as pre,Eh as Hb,F as Wv,Fa as _J,Fb as hh,Fc as $Q,Fd as Nee,Fe as VF,Ff as CC,Fg as p_,Fh as lae,G as HZ,Ga as LP,Gb as So,Gc as KQ,Gd as Oee,Ge as xte,Gf as jte,Gg as m_,Gh as dae,H as DZ,Ha as RJ,Hb as UP,Hc as VQ,Hd as Aee,He as yte,Hf as QF,Hg as mre,Hh as cae,I as MZ,Ia as $v,Ib as xQ,Ic as YQ,Id as Lee,Ie as vte,If as _C,Ig as ure,Ih as nd,J as zZ,Ja as Kv,Jb as GP,Jc as jQ,Jd as Iee,Je as kte,Jf as qte,Jg as u_,Jh as pae,K as kP,Ka as IP,Kb as $P,Kc as RF,Kd as Fee,Ke as YF,Kf as e6,Kg as fre,Kh as pu,L as WZ,La as NJ,Lb as kQ,Lc as qQ,Ld as Bee,Le as Ste,Lf as Xte,Lg as hre,Lh as mae,M as UZ,Ma as OJ,Mb as Nt,Mc as XQ,Md as Hee,Me as Tte,Mf as Zte,Mg as gre,Mh as C6,N as GZ,Na as AJ,Nb as SQ,Nc as tu,Nd as Dee,Ne as Ete,Nf as Jte,Ng as bre,Nh as uae,O as $Z,Oa as LJ,Ob as A,Oc as ZQ,Od as Mee,Oe as qF,Of as Qte,Og as Are,Oh as fae,P as KZ,Pa as IJ,Pb as Ko,Pc as tc,Pd as Vee,Pe as bC,Pf as Hne,Pg as Lre,Ph as w_,Q as VZ,Qa as FJ,Qb as PF,Qc as JQ,Qd as Yee,Qe as wC,Qf as Dne,Qg as Ire,Qh as hae,R as YZ,Ra as Vv,Rb as ee,Rc as ou,Rd as mC,Re as _te,Rf as Mne,Rg as Fre,Rh as gae,S as Xe,Sa as Yv,Sb as Ft,Sc as QQ,Sd as jee,Se as Rte,Sf as zne,Sg as Bre,Sh as x2,T as gF,Ta as jv,Tb as Js,Tc as tC,Td as qee,Te as Nte,Tf as g6,Tg as Ib,Th as bae,U as Te,Ua as FP,Ub as TQ,Uc as eee,Ud as Xee,Ue as ru,Uf as Wne,Ug as Hre,Uh as wae,V as lJ,Va as BJ,Vb as EQ,Vc as tee,Vd as Zee,Ve as Lo,Vf as Une,Vg as g_,W as $o,Wa as jm,Wb as Qs,Wc as oee,Wd as Jee,We as xC,Wf as a_,Wg as Dre,X as mJ,Xa as BP,Xb as KP,Xc as nee,Xd as Qee,Xe as Ote,Xf as du,Xg as Mre,Y as Gv,Ya as uh,Yb as PQ,Yc as Ln,Yd as ete,Ye as Ate,Yf as i_,Yg as zre,Z as Xd,Za as fh,Zb as Jm,Zc as ree,Zd as tte,Ze as yC,Zf as Cb,Zg as Wre,_ as CP,_a as ob,_b as el,_c as Sp,_d as ote,_e as vC,_f as _b,_g as E6,a as X4,aa as Zd,ab as DJ,ac as _Q,ad as iee,ae as rte,af as Ite,ag as Nb,ah as lt,b as $s,ba as Jd,bb as MJ,bc as jP,bd as Xv,be as Pp,bf as XF,bg as b6,bh as Mt,c as Ks,ca as Ym,cb as zJ,cc as qP,cd as Tp,ce as ate,cf as ub,cg as w6,ch as Da,d as On,da as mh,db as WJ,dc as CF,dd as fo,de as ite,df as wh,dg as s_,dh as so,e as Fv,ea as uJ,eb as rr,ec,ed as oC,ee as ste,ef as Fte,eg as Gne,eh as Gre,f as Dm,fa as _P,fb as nb,fc as He,fd as pee,fe as lte,ff as Bte,fg as x6,fh as $re,g as Bv,ga as fJ,gb as UJ,gc as _,gd as Ep,ge as WF,gf as kC,gg as $ne,gh as P6,h as nX,ha as RP,hb as GJ,hc as nn,hd as mee,he as UF,hf as Hte,hg as Kne,hh as Kre,i as UE,ia as hJ,ib as $J,ic as un,id as Bt,ie as GF,if as Ha,ig as Vne,ih as Vre,j as z0,ja as NP,jb as HP,jc as ii,jd as Ba,je as uC,jf as nl,jg as jne,jh as Yre,k as lh,ka as Z0,kb as KJ,kc as XP,kd as AF,ke as fC,kf as Ue,kg as qne,kh as jre,l as GE,la as J0,lb as xF,lc as RQ,ld as rC,le as hC,lf as au,lg as Xne,lh as dl,m as $E,ma as gJ,mb as VJ,mc as NQ,md as uee,me as gC,mf as Dte,mg as Zne,mh as qre,n as KE,na as bJ,nb as qv,nc as OQ,nd as fee,ne as dte,nf as Mte,ng as Jne,nh as Fb,o as VE,oa as Q0,ob as YJ,oc as AQ,od as aC,oe as cte,of as zte,og as Qne,oh as Xre,p as YE,pa as wJ,pb as jJ,pc as LQ,pd as iC,pe as pte,pf as Wte,pg as ere,ph as Zre,q as jE,qa as xJ,qb as qJ,qc as IQ,qd as hee,qe as mte,qf as a2,qg as tre,qh as b_,r as rX,ra as yJ,rb as kF,rc as FQ,rd as gee,re as t2,rf as SC,rg as ore,rh as Bb,s as iX,sa as Xs,sb as MP,sc as BQ,sd as Jv,se as o2,sf as Ute,sg as nre,sh as Jre,t as sX,ta as OP,tb as zP,tc as kp,td as Qv,te as n2,tf as i2,tg as y6,th as Qre,u as JE,ua as vp,ub as cQ,uc as ZP,ud as BF,ue as r2,uf as xh,ug as ire,uh as eae,v as QE,va as ss,vb as pQ,vc as HQ,vd as HF,ve as ute,vf as ZF,vg as c_,vh as Op,w as WX,wa as vJ,wb as lb,wc as DQ,wd as mb,we as fte,wf as Gte,wg as sre,wh as Eh,x as UX,xa as kJ,xb as SF,xc as zQ,xd as dC,xe as hte,xf as $te,xg as lre,xh as tae,y as lP,ya as SJ,yb as TF,yc as WQ,yd as DF,ye as bh,yf as At,yg as Ob,yh as oae,z as cF,za as TJ,zb as EF,zc as UQ,zd as Pee,ze as $F,zf as Kte,zg as v6,zh as nae}from"./chunks/chunk-7QM6BBAM.js";import{$ as Sie,A as uie,Aa as B6,B as fie,Ba as Aie,C as T_,Ca as Lie,D as Gb,Da as B_,E as E_,Ea as Iie,F as hie,Fa as ms,G as P_,Ga as H_,H as C_,Ha as Xb,I as gie,Ia as Fie,J as $b,Ja as Bie,K as Kb,Ka as Ip,L as __,La as H6,M as bie,N as wie,Na as D6,O as R_,Oa as Zb,P as uu,Pa as Jb,Q as xie,Qa as D_,R as N_,Ra as Rh,S as Vb,Sa as Wr,T as yie,U as Ch,V as vie,W as fu,X as Yb,Y as O_,Z as Lp,_ as kie,a as ma,aa as Tie,b as tie,ba as A_,ca as L_,da as I_,ea as Eie,f as Ap,fa as jb,g as k_,ga as Pie,h as oie,i as L6,j as nie,ja as Cie,k as rie,ka as _ie,l as aie,la as hu,m as S_,ma as Ot,n as I6,na as Rie,o as iie,p as ua,pa as F6,q as sie,qa as qb,r as lie,ra as Fn,s as mu,sa as F_,t as die,ta as k2,u as dc,v as v2,va as gu,w as cie,wa as cc,x as Ub,xa as Nie,y as pie,ya as _h,z as mie,za as Oie}from"./chunks/chunk-4RSMAKOH.js";import{A as Nae,B as Oae,C as Aae,D as Lae,E as Iae,F as Fae,G as Bae,H as Hae,I as Dae,J as N6,K as Mae,L as O6,M as fn,N as zae,O as Ai,P as Wae,Q as Uae,R as v_,S as ar,T as Gae,U as $ae,V as Kae,W as Vae,X as Mb,Y as Yae,b as x_,ca as zb,da as Io,e as y2,ea as Ph,f as Db,fa as jae,ga as Wb,h as In,ha as Ae,i as lc,ia as qae,j as xae,ja as A6,k as yae,ka as Xae,l as vae,la as Zae,m as kae,ma as Jae,n as Sae,na as Qae,o as _6,oa as eie,p as cl,q as Tae,r as Eae,s as rt,t as Oi,u as Pae,v as Cae,w as R6,x as _ae,y as y_,z as Rae}from"./chunks/chunk-4J3EMW4L.js";import{$ as EZ,A as bZ,B as Dv,C as wZ,F as j0,G as Gm,H as vZ,I as wp,L as kZ,M as An,N as hP,O as Qt,P as M,Q as uF,S as Km,T as q0,U as SZ,V as fF,W as TZ,X as X0,aa as yF,b as GX,ba as Xm,c as $X,ca as eQ,da as ib,ea as tQ,fa as Zs,g as KX,ga as wQ,ha as Le,i as oZ,ia as Th,j as uP,k as fP,ka as rre,l as nZ,la as l_,m as rZ,ma as are,n as aZ,na as d_,o as iZ,p as sZ,q as lZ,r as dZ,s as cZ,u as pZ,v as mZ,w as uZ,x as fZ,y as hZ,z as gZ}from"./chunks/chunk-QAUFSKVD.js";import{a as Ni,b as see,c as oc,e as ds,h as TC,j as pa,k as Ore}from"./chunks/chunk-RCXMXKPT.js";import{a as PZ,b as _Z,e as RZ}from"./chunks/chunk-HEKC2QYZ.js";import{$b as LZ,$c as nJ,$d as ab,$e as pb,$f as jF,$g as il,$h as UC,$k as eo,Ae as uQ,Af as lC,Ag as ioe,Ai as p2,Ak as Ane,Bc as bF,Bf as Eee,Bg as soe,Bh as Eoe,Bi as Sh,Bk as b2,C as pe,Cb as bp,Cc as qZ,Ce as fQ,Cg as loe,Ci as Xoe,Cj as t_,Ck as Pb,D as Ci,Db as Hv,Dc as XZ,De as Qd,Df as FF,Dh as Poe,Di as Zoe,Dj as ac,Dk as Lne,E as mX,Eb as ph,Eh as yb,Ei as YC,Ej as o_,Ek as Ine,Fb as pP,Fc as SP,Fe as W,Fh as ca,Fi as Joe,Fk as Fne,G as uX,Ga as MX,Gb as mP,Gc as TP,Ge as VP,Gh as r6,Gi as jC,Gj as u6,Gk as Bne,Hc as Vm,He as En,Hf as zee,Hh as Coe,Hi as Qoe,Hj as ic,Ia as zX,Ic as ZZ,Ie as db,If as cC,Ih as _oe,Ii as ene,Jc as JZ,Je as CQ,Jf as Wee,Jh as a6,Ji as m2,Jj as hne,K as fX,Ke as YP,Kf as Uee,Kh as i6,Ki as u2,Kj as gne,La,Ld as dJ,Le as Zm,Lf as ol,Lh as s6,Li as qC,Lj as bne,M as hX,Ma as Ia,Md as qd,Me as Yt,Mf as Gee,Mh as l2,Mi as tne,Mj as wne,N as gX,Na as VX,Nd as Uv,Nf as $ee,Nh as l6,Ni as one,Nj as xne,Oa as YX,Oe as eu,Of as pC,Oh as d2,Oi as nne,Pa as jX,Pd as PP,Pe as JP,Pf as Kee,Ph as iu,Pi as m6,Pj as yne,Pk as wre,Qa as qX,Qd as cJ,Qe as QP,Qh as Roe,Qi as rne,Qj as vne,R as eP,Rb as Mv,Rd as pJ,Rh as Noe,Ri as ane,Rj as sc,S as tP,Sa as XX,Sb as gP,Se as MQ,Sg as al,Sh as su,Si as ine,Sj as kne,Sk as xre,T as bX,Tb as bP,Td as PJ,Te as lee,Tg as doe,Th as WC,Ti as f2,Tj as Sne,U as wX,Ua as pF,Ub as Ql,Uc as QZ,Ud as CJ,Ue as si,Ug as coe,Uh as Ooe,Ui as sne,Uj as Tne,V as G0,Vb as _i,Ve as nc,Vg as LC,Vh as Aoe,Vi as lne,Vj as h2,W as xX,Wb as AZ,Wd as XJ,We as Zv,Wg as hb,Wh as lu,Wi as vr,Xb as zv,Xe as nC,Xf as MF,Xg as Rp,Xh as Loe,Xi as XC,Xj as Ene,Yb as is,Yc as eJ,Yd as qm,Ye as NF,Yf as zF,Yg as gb,Yh as c2,Yi as dne,Z as yX,Zc as tJ,Zd as ZJ,Ze as dee,Zf as e2,Zg as IC,Zh as d6,Zi as ZC,_b as qs,_c as oJ,_d as rb,_e as cee,_f as cs,_g as o6,_h as c6,_i as cne,_j as g2,_k as yre,a as Vd,aa as oP,ac as xp,ae as JJ,ag as Pte,ah as da,ai as Ioe,aj as pne,al as Ab,b as Dq,bc as wP,be as QJ,bg as Cte,bh as poe,bi as GC,bj as li,bl as Lb,c as aX,cc as IZ,ce as DP,cj as JC,cl as ll,d as qE,dc as xP,de as oQ,dg as fb,dh as moe,di as $C,dj as mne,dl as to,ec as Fa,ef as OF,eg as RC,eh as uoe,ei as Foe,ej as kb,el as vre,fb as ZX,fc as yP,fd as Ri,fg as ae,fh as FC,fi as Boe,fj as kr,fk as Pne,fl as kre,g as u,ga as oF,gc as FZ,gd as rJ,gg as le,gh as BC,gi as Hoe,gk as te,gl as Sre,h as nr,hb as JX,hc as BZ,he as vF,hf as gh,hg as Cp,hh as boe,hi as vh,hj as Zo,hk as ps,hl as Tre,ib as QX,ic as vP,if as bee,ig as Ce,ih as woe,ii as KC,ik as Cne,il as Ere,j as Mm,ja as OX,jg as eoe,jh as xoe,ji as kh,jj as Sb,jk as _ne,jl as f_,k as jd,ka as V0,kd as aJ,kf as wee,kg as NC,ki as Doe,kj as une,kk as Np,kl as Pre,la as AX,le as nQ,lf as sC,lg as rl,lh as MC,li as Moe,lj as QC,ll as Cre,m as cX,ma as LX,mb as eZ,me as rQ,mg as OC,mh as yoe,mj as e_,mk as f6,ml as _re,na as IX,nb as mF,ne as aQ,nf as xee,ng as AC,nh as n6,ni as zoe,nj as Tb,nk as Eb,oa as FX,oe as Mr,of as yee,og as yh,oh as bb,oi as Woe,oj as U,ok as Mo,ol as Rre,pa as BX,pb as Y0,pd as iJ,pe as ls,pf as vee,pg as td,ph as wb,pi as Uoe,pj as q,pk as n_,pl as Nre,q as tF,qa as dF,qb as dh,qe as sb,qf as kee,qg as toe,qh as zC,qi as Goe,qj as J,qk as Rne,ql as S6,ra as HX,rb as js,re as iQ,rg as _p,rh as voe,ri as $oe,rj as xe,rk as Qe,rl as T6,sa as DX,sg as od,sh as koe,si as p6,sj as Ve,sk as r_,sl as h_,ta as iP,tb as dP,tc as jZ,td as sJ,te as sQ,tf as See,tg as ooe,th as Soe,ti as Koe,tj as je,tk as h6,ua as sP,ug as t6,ui as Voe,uk as zr,v as pX,ve as lQ,vg as noe,vi as Yoe,vj as sl,w as Jl,wb as xo,wf as LF,wg as roe,wh as xb,wi as VC,wj as fne,x as U0,xb as ch,xe as dQ,xf as IF,xg as aoe,xi as vb,xk as Nne,yb as cP,yf as Tee,yg as io,yh as Toe,yi as joe,yk as One,z as zm,zb as Dr,zd as EP,zf as yr,zi as qoe}from"./chunks/chunk-TQIJVK3T.js";import{d as hF,h as CZ}from"./chunks/chunk-NOV6LTTJ.js";import{$b as _v,$c as ft,A as Br,Ab as Rj,Ad as fq,Af as Uq,Ah as aP,B as Ra,Ba as Sj,Bf as Iv,Bg as Zq,Bh as Ys,C as Sn,Ca as Tn,Cb as vE,Cd as hq,Cf as DE,Cg as Jq,Ch as sF,De as Hm,Df as J4,Dg as Qq,Dh as Wm,E as Vn,Ea as wE,Ec as PE,Ed as Oa,Ee as Pq,Ef as ME,Eg as eX,Eh as lF,Fa as Tj,Fb as Nj,Fc as CE,Fd as ri,Fe as Cq,Ff as Yd,Ga as th,Gb as nh,Gc as G4,Gd as Fe,Ge as _q,Gf as gp,Gh as RX,H as H4,Ha as xE,Hb as Kd,Hc as Qj,Hd as Pi,He as Rq,Hh as K0,I as D4,Ib as N0,Ic as L0,Id as at,Ie as D0,Ih as NX,Jb as Yl,Jc as I0,Jg as tX,K as uj,Kb as rh,Kc as eq,Lb as Lm,Lc as tq,Ld as st,Mb as Oj,Mc as $4,N as fj,Na as Ej,Nb as Hr,Nc as oq,Nf as Gq,Ng as oX,Oa as Pj,Ob as or,Oc as F0,Od as ze,Oe as Nq,Pa as Cj,Pb as Aj,Pc as nq,Pf as zE,Qb as Lj,Qc as Rv,Qd as Aa,R as M4,Rb as Ij,Rd as gq,Sb as Fj,Sc as rq,Sd as it,Se as Av,Ta as _j,Tb as kE,Tc as aq,Td as B0,Te as FE,Tf as $q,U as hj,Ub as SE,Uc as iq,Ue as Oq,Uf as WE,Ug as Vs,Vb as Bj,Vc as sq,Vd as RE,Ve as BE,Vg as lX,Vh as xZ,W as _e,Wb as Hj,Wc as lq,Wd as NE,We as Aq,Wg as XE,X as ce,Xb as Dj,Xc as We,Xd as Xl,Xe as Lq,Yb as Mj,Yc as Et,Ye as Yn,Z as gj,Zb as zj,Zc as Us,Ze as Iq,_b as Wj,_c as Me,_d as bq,_e as on,aa as bj,ac as Uj,ad as K4,ag as Q4,ah as W0,ai as $m,b as xr,bc as Im,bd as dq,bf as Fq,bh as dX,bi as yZ,c as Ev,cc as Gj,cd as uo,ce as OE,ch as ZE,ci as ai,da as R0,dc as $j,de as Bm,dh as nP,e as fE,ea as wj,ec as Kj,ed as ql,ef as Bq,eh as vX,f as $d,fa as xj,fd as Fm,fe as AE,ff as Hq,fh as nF,g as Pv,ga as bE,gb as ni,gc as jl,gd as Na,ge as Nv,gh as rF,hc as O0,hd as Ao,hf as hp,hh as aF,ic as A0,id as cq,ie as Y4,if as q4,ih as kX,ii as s2,ja as yj,jc as Vj,je as j4,jf as HE,jh as SX,ji as HC,kc as Yj,ke as wq,kf as Zl,kg as Kq,kh as TX,ki as DC,l as F4,lc as jj,le as xq,lf as ih,lh as EX,li as jn,m as _0,mb as W4,mc as U4,md as pq,me as yq,mh as PX,mi as foe,nc as qj,nd as Oe,nf as Lv,ng as Vq,nh as iF,ni as hoe,ob as oh,oe as LE,of as Gs,oh as CX,oi as goe,p as B4,pb as Cv,pc as TE,pd as ah,pe as vq,pf as M0,qa as vj,qe as H0,qf as Z4,qg as Yq,qi as cu,r as hE,rg as jq,rh as _X,ri as Yne,s as fp,sa as z4,sc as Xj,t as gE,tb as Ws,te as kq,tg as qq,u as dt,uc as as,ue as Sq,uf as Mq,v as mj,vd as _E,ve as Tq,w as Kt,wa as kj,wc as Zj,wd as V4,wf as zq,wh as rP,x as Ms,xb as yE,xc as EE,xd as mq,xe as Ov,xf as sh,xg as Xq,y as Go,yc as Jj,yd as uq,ye as Eq,yf as Wq,yg as eF,yh as la,z as Rt,za as ko,ze as IE,zh as $0}from"./chunks/chunk-KCZDH44S.js";import{a as zs}from"./chunks/chunk-5OXXOEE7.js";import{a as yQ,c as vQ}from"./chunks/chunk-3DKV2YJ6.js";import{a as kn,b as eBe}from"./chunks/chunk-Y6SLVHK3.js";var jf=kn(w0=>{"use strict";var SV,vSt=[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];w0.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};w0.getSymbolTotalCodewords=function(t){return vSt[t]};w0.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};w0.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');SV=t};w0.isKanjiModeEnabled=function(){return typeof SV<"u"};w0.toSJIS=function(t){return SV(t)}});var $3=kn($l=>{"use strict";$l.L={bit:1};$l.M={bit:0};$l.Q={bit:3};$l.H={bit:2};function kSt(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return $l.L;case"m":case"medium":return $l.M;case"q":case"quartile":return $l.Q;case"h":case"high":return $l.H;default:throw new Error("Unknown EC Level: "+e)}}$l.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};$l.from=function(t,o){if($l.isValid(t))return t;try{return kSt(t)}catch{return o}}});var b4e=kn((oEn,g4e)=>{"use strict";function h4e(){this.buffer=[],this.length=0}h4e.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++}};g4e.exports=h4e});var x4e=kn((nEn,w4e)=>{"use strict";function UT(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)}UT.prototype.set=function(e,t,o,n){let r=e*this.size+t;this.data[r]=o,n&&(this.reservedBit[r]=!0)};UT.prototype.get=function(e,t){return this.data[e*this.size+t]};UT.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o};UT.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};w4e.exports=UT});var y4e=kn(K3=>{"use strict";var SSt=jf().getSymbolSize;K3.getRowColCoords=function(t){if(t===1)return[];let o=Math.floor(t/7)+2,n=SSt(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()};K3.getPositions=function(t){let o=[],n=K3.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 S4e=kn(k4e=>{"use strict";var TSt=jf().getSymbolSize,v4e=7;k4e.getPositions=function(t){let o=TSt(t);return[[0,0],[o-v4e,0],[0,o-v4e]]}});var T4e=kn(en=>{"use strict";en.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var x0={N1:3,N2:3,N3:40,N4:10};en.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};en.from=function(t){return en.isValid(t)?parseInt(t,10):void 0};en.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+=x0.N1+(r-5)),i=c,r=1),c=t.get(d,l),c===s?a++:(a>=5&&(n+=x0.N1+(a-5)),s=c,a=1)}r>=5&&(n+=x0.N1+(r-5)),a>=5&&(n+=x0.N1+(a-5))}return n};en.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*x0.N2};en.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*x0.N3};en.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)*x0.N4};function ESt(e,t,o){switch(e){case en.Patterns.PATTERN000:return(t+o)%2===0;case en.Patterns.PATTERN001:return t%2===0;case en.Patterns.PATTERN010:return o%3===0;case en.Patterns.PATTERN011:return(t+o)%3===0;case en.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2===0;case en.Patterns.PATTERN101:return t*o%2+t*o%3===0;case en.Patterns.PATTERN110:return(t*o%2+t*o%3)%2===0;case en.Patterns.PATTERN111:return(t*o%3+(t+o)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}en.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,ESt(t,a,r))};en.getBestMask=function(t,o){let n=Object.keys(en.Patterns).length,r=0,a=1/0;for(let i=0;i<n;i++){o(i),en.applyMask(i,t);let s=en.getPenaltyN1(t)+en.getPenaltyN2(t)+en.getPenaltyN3(t)+en.getPenaltyN4(t);en.applyMask(i,t),s<a&&(a=s,r=i)}return r}});var EV=kn(TV=>{"use strict";var qf=$3(),V3=[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],Y3=[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];TV.getBlocksCount=function(t,o){switch(o){case qf.L:return V3[(t-1)*4+0];case qf.M:return V3[(t-1)*4+1];case qf.Q:return V3[(t-1)*4+2];case qf.H:return V3[(t-1)*4+3];default:return}};TV.getTotalCodewordsCount=function(t,o){switch(o){case qf.L:return Y3[(t-1)*4+0];case qf.M:return Y3[(t-1)*4+1];case qf.Q:return Y3[(t-1)*4+2];case qf.H:return Y3[(t-1)*4+3];default:return}}});var E4e=kn(q3=>{"use strict";var GT=new Uint8Array(512),j3=new Uint8Array(256);(function(){let t=1;for(let o=0;o<255;o++)GT[o]=t,j3[t]=o,t<<=1,t&256&&(t^=285);for(let o=255;o<512;o++)GT[o]=GT[o-255]})();q3.log=function(t){if(t<1)throw new Error("log("+t+")");return j3[t]};q3.exp=function(t){return GT[t]};q3.mul=function(t,o){return t===0||o===0?0:GT[j3[t]+j3[o]]}});var P4e=kn($T=>{"use strict";var PV=E4e();$T.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]^=PV.mul(t[r],o[a]);return n};$T.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]^=PV.mul(o[i],r);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n};$T.generateECPolynomial=function(t){let o=new Uint8Array([1]);for(let n=0;n<t;n++)o=$T.mul(o,new Uint8Array([1,PV.exp(n)]));return o}});var R4e=kn((cEn,_4e)=>{"use strict";var C4e=P4e();function CV(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}CV.prototype.initialize=function(t){this.degree=t,this.genPoly=C4e.generateECPolynomial(this.degree)};CV.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=C4e.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};_4e.exports=CV});var _V=kn(N4e=>{"use strict";N4e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var RV=kn(Rm=>{"use strict";var O4e="[0-9]+",PSt="[A-Z $%*+\\-./:]+",KT="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";KT=KT.replace(/u/g,"\\u");var CSt="(?:(?![A-Z0-9 $%*+\\-./:]|"+KT+`)(?:.|[\r
2
2
  ]))+`;Rm.KANJI=new RegExp(KT,"g");Rm.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Rm.BYTE=new RegExp(CSt,"g");Rm.NUMERIC=new RegExp(O4e,"g");Rm.ALPHANUMERIC=new RegExp(PSt,"g");var _St=new RegExp("^"+KT+"$"),RSt=new RegExp("^"+O4e+"$"),NSt=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Rm.testKanji=function(t){return _St.test(t)};Rm.testNumeric=function(t){return RSt.test(t)};Rm.testAlphanumeric=function(t){return NSt.test(t)}});var Xf=kn(hr=>{"use strict";var OSt=_V(),NV=RV();hr.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};hr.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};hr.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};hr.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};hr.MIXED={bit:-1};hr.getCharCountIndicator=function(t,o){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!OSt.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?t.ccBits[0]:o<27?t.ccBits[1]:t.ccBits[2]};hr.getBestModeForData=function(t){return NV.testNumeric(t)?hr.NUMERIC:NV.testAlphanumeric(t)?hr.ALPHANUMERIC:NV.testKanji(t)?hr.KANJI:hr.BYTE};hr.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};hr.isValid=function(t){return t&&t.bit&&t.ccBits};function ASt(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return hr.NUMERIC;case"alphanumeric":return hr.ALPHANUMERIC;case"kanji":return hr.KANJI;case"byte":return hr.BYTE;default:throw new Error("Unknown mode: "+e)}}hr.from=function(t,o){if(hr.isValid(t))return t;try{return ASt(t)}catch{return o}}});var B4e=kn(y0=>{"use strict";var X3=jf(),LSt=EV(),A4e=$3(),Zf=Xf(),OV=_V(),I4e=7973,L4e=X3.getBCHDigit(I4e);function ISt(e,t,o){for(let n=1;n<=40;n++)if(t<=y0.getCapacity(n,o,e))return n}function F4e(e,t){return Zf.getCharCountIndicator(e,t)+4}function FSt(e,t){let o=0;return e.forEach(function(n){let r=F4e(n.mode,t);o+=r+n.getBitsLength()}),o}function BSt(e,t){for(let o=1;o<=40;o++)if(FSt(e,o)<=y0.getCapacity(o,t,Zf.MIXED))return o}y0.from=function(t,o){return OV.isValid(t)?parseInt(t,10):o};y0.getCapacity=function(t,o,n){if(!OV.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=Zf.BYTE);let r=X3.getSymbolTotalCodewords(t),a=LSt.getTotalCodewordsCount(t,o),i=(r-a)*8;if(n===Zf.MIXED)return i;let s=i-F4e(n,t);switch(n){case Zf.NUMERIC:return Math.floor(s/10*3);case Zf.ALPHANUMERIC:return Math.floor(s/11*2);case Zf.KANJI:return Math.floor(s/13);case Zf.BYTE:default:return Math.floor(s/8)}};y0.getBestVersionForData=function(t,o){let n,r=A4e.from(o,A4e.M);if(Array.isArray(t)){if(t.length>1)return BSt(t,r);if(t.length===0)return 1;n=t[0]}else n=t;return ISt(n.mode,n.getLength(),r)};y0.getEncodedBits=function(t){if(!OV.isValid(t)||t<7)throw new Error("Invalid QR Code version");let o=t<<12;for(;X3.getBCHDigit(o)-L4e>=0;)o^=I4e<<X3.getBCHDigit(o)-L4e;return t<<12|o}});var z4e=kn(M4e=>{"use strict";var AV=jf(),D4e=1335,HSt=21522,H4e=AV.getBCHDigit(D4e);M4e.getEncodedBits=function(t,o){let n=t.bit<<3|o,r=n<<10;for(;AV.getBCHDigit(r)-H4e>=0;)r^=D4e<<AV.getBCHDigit(r)-H4e;return(n<<10|r)^HSt}});var U4e=kn((gEn,W4e)=>{"use strict";var DSt=Xf();function rv(e){this.mode=DSt.NUMERIC,this.data=e.toString()}rv.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};rv.prototype.getLength=function(){return this.data.length};rv.prototype.getBitsLength=function(){return rv.getBitsLength(this.data.length)};rv.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))};W4e.exports=rv});var $4e=kn((bEn,G4e)=>{"use strict";var MSt=Xf(),LV=["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 av(e){this.mode=MSt.ALPHANUMERIC,this.data=e}av.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};av.prototype.getLength=function(){return this.data.length};av.prototype.getBitsLength=function(){return av.getBitsLength(this.data.length)};av.prototype.write=function(t){let o;for(o=0;o+2<=this.data.length;o+=2){let n=LV.indexOf(this.data[o])*45;n+=LV.indexOf(this.data[o+1]),t.put(n,11)}this.data.length%2&&t.put(LV.indexOf(this.data[o]),6)};G4e.exports=av});var V4e=kn((wEn,K4e)=>{"use strict";var zSt=Xf();function iv(e){this.mode=zSt.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}iv.getBitsLength=function(t){return t*8};iv.prototype.getLength=function(){return this.data.length};iv.prototype.getBitsLength=function(){return iv.getBitsLength(this.data.length)};iv.prototype.write=function(e){for(let t=0,o=this.data.length;t<o;t++)e.put(this.data[t],8)};K4e.exports=iv});var j4e=kn((xEn,Y4e)=>{"use strict";var WSt=Xf(),USt=jf();function sv(e){this.mode=WSt.KANJI,this.data=e}sv.getBitsLength=function(t){return t*13};sv.prototype.getLength=function(){return this.data.length};sv.prototype.getBitsLength=function(){return sv.getBitsLength(this.data.length)};sv.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let o=USt.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)}};Y4e.exports=sv});var q4e=kn((yEn,IV)=>{"use strict";var VT={single_source_shortest_paths:function(e,t,o){var n={},r={};r[t]=0;var a=VT.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=VT.single_source_shortest_paths(e,t,o);return VT.extract_shortest_path_from_predecessor_list(n,o)},PriorityQueue:{make:function(e){var t=VT.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=VT)});var nFe=kn(lv=>{"use strict";var Oo=Xf(),J4e=U4e(),Q4e=$4e(),eFe=V4e(),tFe=j4e(),YT=RV(),Z3=jf(),GSt=q4e();function X4e(e){return unescape(encodeURIComponent(e)).length}function jT(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 oFe(e){let t=jT(YT.NUMERIC,Oo.NUMERIC,e),o=jT(YT.ALPHANUMERIC,Oo.ALPHANUMERIC,e),n,r;return Z3.isKanjiModeEnabled()?(n=jT(YT.BYTE,Oo.BYTE,e),r=jT(YT.KANJI,Oo.KANJI,e)):(n=jT(YT.BYTE_KANJI,Oo.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 FV(e,t){switch(t){case Oo.NUMERIC:return J4e.getBitsLength(e);case Oo.ALPHANUMERIC:return Q4e.getBitsLength(e);case Oo.KANJI:return tFe.getBitsLength(e);case Oo.BYTE:return eFe.getBitsLength(e)}}function $St(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 KSt(e){let t=[];for(let o=0;o<e.length;o++){let n=e[o];switch(n.mode){case Oo.NUMERIC:t.push([n,{data:n.data,mode:Oo.ALPHANUMERIC,length:n.length},{data:n.data,mode:Oo.BYTE,length:n.length}]);break;case Oo.ALPHANUMERIC:t.push([n,{data:n.data,mode:Oo.BYTE,length:n.length}]);break;case Oo.KANJI:t.push([n,{data:n.data,mode:Oo.BYTE,length:X4e(n.data)}]);break;case Oo.BYTE:t.push([{data:n.data,mode:Oo.BYTE,length:X4e(n.data)}])}}return t}function VSt(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]=FV(o[m].lastCount+d.length,d.mode)-FV(o[m].lastCount,d.mode),o[m].lastCount+=d.length):(o[m]&&(o[m].lastCount=d.length),n[m][c]=FV(d.length,d.mode)+4+Oo.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 Z4e(e,t){let o,n=Oo.getBestModeForData(e);if(o=Oo.from(t,n),o!==Oo.BYTE&&o.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+Oo.toString(o)+`.
4
4
  Suggested mode is: `+Oo.toString(n));switch(o===Oo.KANJI&&!Z3.isKanjiModeEnabled()&&(o=Oo.BYTE),o){case Oo.NUMERIC:return new J4e(e);case Oo.ALPHANUMERIC:return new Q4e(e);case Oo.KANJI:return new tFe(e);case Oo.BYTE:return new eFe(e)}}lv.fromArray=function(t){return t.reduce(function(o,n){return typeof n=="string"?o.push(Z4e(n,null)):n.data&&o.push(Z4e(n.data,n.mode)),o},[])};lv.fromString=function(t,o){let n=oFe(t,Z3.isKanjiModeEnabled()),r=KSt(n),a=VSt(r,o),i=GSt.find_path(a.map,"start","end"),s=[];for(let l=1;l<i.length-1;l++)s.push(a.table[i[l]].node);return lv.fromArray($St(s))};lv.rawSplit=function(t){return lv.fromArray(oFe(t,Z3.isKanjiModeEnabled()))}});var aFe=kn(rFe=>{"use strict";var Q3=jf(),BV=$3(),YSt=b4e(),jSt=x4e(),qSt=y4e(),XSt=S4e(),MV=T4e(),zV=EV(),ZSt=R4e(),J3=B4e(),JSt=z4e(),QSt=Xf(),HV=nFe();function eTt(e,t){let o=e.size,n=XSt.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 tTt(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 oTt(e,t){let o=qSt.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 nTt(e,t){let o=e.size,n=J3.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 DV(e,t,o){let n=e.size,r=JSt.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 rTt(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 aTt(e,t,o){let n=new YSt;o.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),QSt.getCharCountIndicator(l.mode,e)),l.write(n)});let r=Q3.getSymbolTotalCodewords(e),a=zV.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 iTt(n,e,t)}function iTt(e,t,o){let n=Q3.getSymbolTotalCodewords(t),r=zV.getTotalCodewordsCount(t,o),a=n-r,i=zV.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 ZSt(m),g=0,h=new Array(i),w=new Array(i),b=0,y=new Uint8Array(e.buffer);for(let P=0;P<i;P++){let E=P<l?c:p;h[P]=y.slice(g,g+E),w[P]=f.encode(h[P]),g+=E,b=Math.max(b,E)}let x=new Uint8Array(n),v=0,k,S;for(k=0;k<b;k++)for(S=0;S<i;S++)k<h[S].length&&(x[v++]=h[S][k]);for(k=0;k<m;k++)for(S=0;S<i;S++)x[v++]=w[S][k];return x}function sTt(e,t,o,n){let r;if(Array.isArray(e))r=HV.fromArray(e);else if(typeof e=="string"){let d=t;if(!d){let c=HV.rawSplit(e);d=J3.getBestVersionForData(c,o)}r=HV.fromString(e,d||40)}else throw new Error("Invalid data");let a=J3.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(`
@@ -10,7 +10,7 @@ Minimum version required to store current data is: `+a+`.
10
10
  @keyframes storefront-cart-fade { from { opacity: 0 } to { opacity: 1 } }
11
11
  @keyframes storefront-cart-slide { from { transform: translateX(40px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
12
12
  ${x?` @keyframes storefront-cart-slide-left { from { transform: translateX(-40px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
13
- `:""}`}),d]})]})}let g=x=>{!m||!iue(e,!1)||x.target===x.currentTarget&&p()},h=e.height==="full",w=e.fullWidth||h,b=lUe(e),y=A8("div",{ref:c,tabIndex:-1,"data-popup-panel":"",className:"relative flex flex-col bg-bg text-fg outline-none",style:{width:e.fullWidth?"100%":`min(${e.width}px, 100%)`,height:h?"100%":void 0,maxHeight:e.fullWidth&&!h||b.place==="outside"?`calc(100% - ${L8}px)`:"100%",borderRadius:w?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[b.place!=="none"?Qh("button",{type:"button","aria-label":"Close",onClick:r?void 0:p,"data-popup-close":b.place,"data-popup-close-until":b.until,className:"absolute z-[5] flex h-[38px] w-[38px] items-center justify-center border border-line bg-bg font-mono text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-fg",style:b.place==="outside"?{top:-sUe,right:0}:{top:12,right:12},children:"\xD7"}):null,b.until?Qh("style",{children:`@container popup-frame (min-width: ${b.until+1}px){[data-popup-close-until="${b.until}"]{display:none}}`}):null,Qh("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return Qh("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:{...iUe[e.placement],background:aue(e.tintColor,e.tintOpacity),padding:w?0:b.place==="outside"&&e.placement.startsWith("top")?`${24+L8}px 24px 24px`:24,...b.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:y})}var cUe=25.4,k1=400,A5=152,pUe=58,sue=A5*Math.cos(pUe*Math.PI/180),mUe=14,uUe=k1/2,fUe={sectionWidth:225,aspectRatio:60,rimDiameter:17};function due(e){let t=dc(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:fUe}function cue(e){let t=e.rimDiameter*cUe/2,o=t+e.sectionWidth*e.aspectRatio/100,n=A5*(e.sectionWidth/o),r=t/o;return{cy:uUe,rx:sue,ry:A5,cxf:k1/2-n/2-mUe,dx:n,rimRx:sue*r,rimRy:A5*r}}var oo=e=>e.toFixed(1);function L5(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${oo(r)} ${oo(a)} A${oo(e.rx)} ${oo(e.ry)} 0 0 ${o} ${oo(r)} ${oo(i)}`}function B8(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${oo(n)} ${oo(a)} L${oo(r)} ${oo(a)} A${oo(e.rx)} ${oo(e.ry)} 0 0 1 ${oo(r)} ${oo(i)} L${oo(n)} ${oo(i)} A${oo(e.rx)} ${oo(e.ry)} 0 0 0 ${oo(n)} ${oo(a)} Z`}function O5(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 pue(e,t,o,n,r){let[a,i]=O5(e,t,n),[s,l]=O5(e,t,r),[d,c]=O5(e,o,r),[p,m]=O5(e,o,n);return`M${oo(a)} ${oo(i)} A${oo(e.rx)} ${oo(e.ry)} 0 0 1 ${oo(s)} ${oo(l)} L${oo(d)} ${oo(c)} A${oo(e.rx)} ${oo(e.ry)} 0 0 0 ${oo(p)} ${oo(m)} L${oo(a)} ${oo(i)} Z`}var lue=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],hUe={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}}]},gUe=[["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 mue(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return lue;for(let[o,n]of gUe)if(t.includes(` ${o} `))return hUe[n];return lue}var I5="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as bUe}from"react";function Ga(e,t=/:/g){let o=bUe().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as S1,jsx as jt,jsxs as Tc}from"react/jsx-runtime";var xs={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},wUe=[.8,.52,.24],uue=.4,fue=.88,hue=.3,gue=5,bue=.3,wue=.84,xUe=7,ho=e=>Math.round(e*10)/10;function H8({size:e,type:t,className:o}){let n=Ga("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=cue(due(e)),i=B8(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Tc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${k1} ${k1}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[jt("title",{children:s}),Tc("defs",{children:[jt(vUe,{id:r}),jt("clipPath",{id:r.crown,children:jt("path",{d:i})})]}),jt("ellipse",{cx:ho(a.cxf+a.dx/2),cy:ho(a.cy+a.ry-4),rx:ho(a.dx*1.5),ry:16,fill:`url(#${r.shadow})`}),jt(kUe,{g:a,id:r}),jt(SUe,{g:a,id:r}),jt("path",{d:i,fill:`url(#${r.tread})`}),jt("g",{clipPath:`url(#${r.crown})`,children:mue(t).map(l=>jt(yUe,{g:a,column:l},l.f[0]))}),jt("path",{d:L5(a,0,0,!0),stroke:"currentColor",strokeOpacity:xs.shoulder,strokeWidth:1.2}),jt("path",{d:L5(a,1,1),stroke:"currentColor",strokeOpacity:xs.silhouette,strokeWidth:1.4})]})}function yUe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Tc(S1,{children:[jt("path",{d:B8(e,o,n),fill:"currentColor",fillOpacity:xs.rib}),jt("path",{d:L5(e,o,1),stroke:"currentColor",strokeOpacity:xs.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(S1,{children:l.map(([d,c])=>jt("path",{d:pue(e,o,n,d,c),fill:"currentColor",fillOpacity:xs.rib,stroke:"currentColor",strokeOpacity:xs.grooveWall,strokeWidth:1},d))})}function vUe({id:e}){return Tc(S1,{children:[Tc("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})]}),Tc("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})]}),Tc("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})]}),Tc("radialGradient",{id:e.shadow,children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function kUe({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 Tc(S1,{children:[jt("ellipse",{cx:ho(e.cxf),cy:ho(e.cy),rx:ho(e.rx),ry:ho(e.ry),fill:`url(#${t.wall})`}),wUe.map((a,i)=>{let s=n(a);return jt("ellipse",{cx:ho(e.cxf),cy:ho(e.cy),rx:ho(e.rx*s),ry:ho(e.ry*s),stroke:"currentColor",strokeOpacity:xs.relief[i],strokeWidth:1},a)}),jt("ellipse",{cx:ho(e.cxf),cy:ho(e.cy),rx:ho(e.rx*n(uue)),ry:ho(e.ry*n(uue)),stroke:"currentColor",strokeOpacity:xs.lettering,strokeWidth:ho(r)})]})}function SUe({g:e,id:t}){let o=Array.from({length:gue},(n,r)=>{let a=(r*(360/gue)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*bue*Math.cos(a),y1:e.cy+e.rimRy*bue*Math.sin(a),x2:e.cxf+e.rimRx*wue*Math.cos(a),y2:e.cy+e.rimRy*wue*Math.sin(a)}});return Tc(S1,{children:[jt("ellipse",{cx:ho(e.cxf),cy:ho(e.cy),rx:ho(e.rimRx),ry:ho(e.rimRy),fill:`url(#${t.rim})`}),jt("ellipse",{cx:ho(e.cxf),cy:ho(e.cy),rx:ho(e.rimRx*fue),ry:ho(e.rimRy*fue),fill:"currentColor",fillOpacity:xs.dishFill,stroke:"currentColor",strokeOpacity:xs.dishEdge,strokeWidth:1}),o.map((n,r)=>jt("line",{x1:ho(n.x1),y1:ho(n.y1),x2:ho(n.x2),y2:ho(n.y2),stroke:"currentColor",strokeOpacity:xs.spoke,strokeWidth:xUe,strokeLinecap:"round"},r)),jt("ellipse",{cx:ho(e.cxf),cy:ho(e.cy),rx:ho(e.rimRx*hue),ry:ho(e.rimRy*hue),fill:"currentColor",fillOpacity:xs.hubFill,stroke:"currentColor",strokeOpacity:xs.hubEdge,strokeWidth:1})]})}import{jsx as D8}from"react/jsx-runtime";function Zp({image:e,size:t,type:o,sizes:n,priority:r=!1,className:a="aspect-square",showBackground:i=!0}){return D8("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:D8(so,{label:t||"Tyre",src:ds(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:D8(H8,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as T1}from"react/jsx-runtime";function TUe(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function M8({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??Oie;return T1("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:C_(e)?T1(Zp,{image:o?.coverImage,size:e.size,type:TUe(o),sizes:"96px",className:"h-full w-full"}):a?.src?T1(Zs,{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?T1("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:T1(_h,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as z8,jsxs as PUe}from"react/jsx-runtime";var xue={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function yue(e,t){return Math.min(I6,Math.max(1,e+t))}var vue="disabled:cursor-not-allowed disabled:opacity-40",EUe={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${xue.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${vue}`,value:`w-11 text-center font-mono ${xue.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 ${vue}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function E1({value:e,onChange:t,size:o}){let n=EUe[o];return PUe("div",{className:n.frame,children:[z8("button",{type:"button",onClick:()=>t(yue(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),z8("span",{className:n.value,children:e}),z8("button",{type:"button",onClick:()=>t(yue(e,1)),disabled:e>=I6,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as Ec,jsx as $e,jsxs as no}from"react/jsx-runtime";function kue({content:e,closeRef:t}){let{close:o,items:n}=Fn(),r=t;return no("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:[no("div",{className:"flex items-center justify-between",children:[no("span",{className:"flex items-center gap-3 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?$e("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]}),$e("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"})]}),no("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",$e("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),$e("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:Ooe(e,n.length)})]})}function Sue({content:e}){let{totals:t}=Fn(),{activeCountry:o}=Ot(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return $e(Ec,{children:no("div",{className:`grid flex-shrink-0 ${CUe[r-1]} gap-px border-b border-line bg-line`,children:[$e(W8,{label:"Items",value:no(Ec,{children:[$e("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?$e(W8,{label:"Lead time",value:e.leadTimeValue}):null,n?$e(W8,{label:"Ships to",value:n}):null]})})}function Tue({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=Fn();return $e(Ec,{children:o.length===0?$e(AUe,{content:e}):o.map(a=>$e(_Ue,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function Eue(){let{items:e,totals:t,bundles:o}=Fn(),{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 $e(Ec,{children:i.length>0&&no("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:[no("div",{className:"mb-4 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[$e("span",{children:"You may also need"}),$e("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),$e("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:i.map(s=>$e(RUe,{href:`/bundles/${s.slug}`,title:s.name,sub:NUe(s,t.currency,n)},s.slug))})]})})}function Pue(){return $e(Ec,{children:$e("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:$e(Iie,{})})})}function Cue({content:e}){return $e(Ec,{children:e.promises.length>0&&$e("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=>$e(OUe,{children:t},t))})})}function _ue(){let{totals:e,coupon:t}=Fn(),{formatMoney:o}=Ot();return $e(Ec,{children:no("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[$e(Uu,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>$e(Uu,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:no("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),e.discount>0&&t?.valid&&$e(Uu,{label:`Coupon \xB7 ${t.code}`,value:no("span",{style:{color:"var(--green)"},children:["\u2212 ",o(e.discount,e.currency)]})}),t?.deferred&&$e(Uu,{label:`Coupon \xB7 ${t.code}`,value:tie}),t?.valid&&t.effects?.gift&&$e(Uu,{label:`Free gift \xB7 ${t.effects.gift.partNumber}${t.effects.gift.quantity>1?` \xD7${t.effects.gift.quantity}`:""}`,value:$e("span",{style:{color:"var(--green)"},children:Ch})}),$e(Uu,{label:"Shipping",value:e.shippingStatus==="free"?$e("span",{style:{color:"var(--green)"},children:Ch}):_ie(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?$e(Uu,{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?$e(Uu,{label:e.tax.name,value:Cie}):null),no("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[no("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",$e("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),$e("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:e.repricing?vie:o(e.grand,e.currency)})]})]})})}function Rue(){let{items:e,close:t}=Fn();return $e(Ec,{children:no("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[no(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",$e("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),$e("div",{className:"flex items-center justify-between px-1 py-2 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:$e(Le,{href:"/wheels",onClick:t,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})})}var CUe=["grid-cols-1","grid-cols-2","grid-cols-3"];function W8({label:e,value:t}){return no("div",{className:"flex flex-col gap-1 bg-bg px-4 py-4",children:[$e("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),$e("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function _Ue({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=Fn(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=Ot();return no(Ec,{children:[no("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:[$e(M8,{line:e,catalog:r,tyre:t}),no("div",{className:"flex min-w-0 flex-col gap-2",children:[no("div",{className:"flex items-start justify-between gap-3",children:[no("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:["N\xB0 ",e.positionNo," \xB7 ",e.process==="FusionForge\xAE"?no(Ec,{children:["FusionForge",$e(UP,{})]}):e.process]}),$e("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:F6(e,s)===null?uu:l(F6(e,s),s)})]}),no("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,$e("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&no("div",{className:"mt-1 flex flex-wrap gap-2",children:[e.config.map(d=>$e("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&&no("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"]})]}),no("div",{className:"mt-3 flex items-center justify-between gap-3",children:[$e(E1,{value:e.qty,onChange:n,size:"small"}),no("div",{className:"flex gap-4 font-mono text-[10px] uppercase tracking-[0.22em]",children:[$e(Le,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),$e("button",{type:"button",onClick:o,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&no("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:[$e("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),no("span",{children:["Verified for your ",$e("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function RUe({title:e,sub:t,href:o}){return no(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:[no("span",{className:"flex min-w-0 flex-col gap-1",children:[$e("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),$e("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),$e("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 NUe(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 OUe({children:e}){return $e("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function Uu({label:e,value:t}){return no("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[$e("span",{children:e}),$e("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function AUe({content:e}){return no("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[$e("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),$e("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),no(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 ",$e("span",{className:"text-accent",children:"\u2192"})]})]})}import{jsx as Gu,jsxs as Nue}from"react/jsx-runtime";var FUe=lu(void 0);function P1({content:e=WC,look:t=FUe}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=Fn(),s=IUe(null),l=rue(a.filter(C_).map(d=>d.slug));return LUe(()=>{i(t.autoOpen)},[t.autoOpen,i]),Nue(Wi,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:"Your cart",children:[Gu(kue,{content:e,closeRef:s}),Gu(Sue,{content:e}),Nue("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[Gu(Tue,{content:e,tyres:l}),Gu(Eue,{}),Gu(Pue,{}),Gu(Cue,{content:e})]}),Gu(_ue,{}),Gu(Rue,{})]})}import BUe from"efficient-easel/screen/components/UiIcon";import{Fragment as DUe,jsx as eg,jsxs as F5}from"react/jsx-runtime";var HUe=pw(()=>import("./chunks/EditorPreviewCheckout-HMNAHJIE.js"),{ssr:!1});function U8(){let{chromePlaceholder:e,themeFromDocument:t}=jn(),{surface:o}=lre();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?F5(DUe,{children:[eg(HUe,{}),eg(Oue,{surface:o})]}):eg(hu,{children:F5(qb,{preview:!0,children:[eg(P1,{}),eg(Oue,{surface:o})]})})}function Oue({surface:e}){let{label:t,href:o}=ume(e);return F5("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:[eg("span",{style:{whiteSpace:"nowrap"},children:u("{name} \xB7 preview only",{name:u(t)})}),F5("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"),eg(BUe,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as MUe,CursorClickIcon as zUe,EyeIcon as WUe,FullWidthIcon as UUe,HeightIcon as GUe,OpacityIcon as Iue,PlacementIcon as $Ue,WidthIcon as KUe}from"efficient-easel/icons";import{group as zw}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as VUe}from"efficient-easel/screen/lib/document/device-fields";import{jsx as Jp}from"react/jsx-runtime";var YUe={label:"Inside",value:"inside"},jUe={label:"None",value:"none"};function G8(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,VUe("desktop",o)]))}function Aue(e,t){return{_gDesign:zw("Color"),tintColor:ps("Tint color",e),tintOpacity:ae("Tint opacity",Jp(Iue,{}),d2.min,d2.max,5,t,"%")}}function Lue(e,t){return{_gBehavior:zw("Behavior"),outsideClick:te("Outside click",e,Jp(zUe,{})),...t}}var qUe=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function $8(e){return ae("Width",Jp(KUe,{}),l6.min,l6.max,4,e,"px")}function Fue(e){if(e===su){let o=lu(void 0);return G8({_gSize:zw("Width"),width:$8(o.width),_gPosition:zw("Placement"),placement:le("Placement",Jp($Ue,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...Aue(o.tintColor,o.tintOpacity),...Lue(o.outsideClick,{autoOpen:te("Auto open",o.autoOpen,Jp(WUe,{}))})})}let t=iu;return Fe(G8({_gSize:zw("Width"),width:$8(t.width),height:le("Height",Jp(GUe,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:zw("Placement"),placement:td("Placement",{fallback:t.placement}),fullWidth:te("Full width",t.fullWidth,Jp(UUe,{})),...Aue(t.tintColor,t.tintOpacity),...Lue(t.outsideClick,{closeButton:le("Close button",Jp(MUe,{}),[YUe,{label:"Outside",value:"outside"},jUe],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],qUe])}function Bue(e,t){return G8({menuPanelWidth:$8(e),menuPanelTintColor:ps("Tint color",iu.tintColor),menuPanelTintOpacity:ae("Tint opacity",Jp(Iue,{}),d2.min,d2.max,5,t,"%")})}import{PictureTiles as XUe}from"efficient-shell/ui";import{SettingsField as ZUe}from"efficient-easel/panel";import{GridIcon as JUe}from"efficient-easel/icons";import{jsx as tg}from"react/jsx-runtime";function QUe({layout:e}){return tg("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?tg("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):tg("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var Hue={type:"custom",render:({value:e,onChange:t})=>{let o=UC({layout:e}).layout,n=d6.find(r=>r.value===o);return tg(ZUe,{label:u(c6),icon:tg(JUe,{}),value:n?u(n.label):void 0,children:tg(XUe,{className:"sf-gallery-layouts",label:u(c6),value:o,onChange:t,options:d6.map(r=>({value:r.value,label:u(r.label),picture:tg(QUe,{layout:r.value})}))})})}};import{CategoryIcon as EEt,CheckIcon as PEt,ClockIcon as iY,ColumnsIcon as CEt,DirectionIcon as _Et,EyeIcon as REt,ListIcon as NEt,PageIcon as OEt,PlacementIcon as AEt,ScrollPointIcon as LEt,TabsIcon as IEt,TriggerIcon as FEt}from"efficient-easel/icons";import{deviceField as t6e}from"efficient-easel/screen/lib/document/device-fields";import{group as Vl,phoneTwinFields as BEt}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as eGe}from"efficient-easel/screen/lib/document/box-fields";function Ww(e){let t=eGe(e);return{...t,render:o=>t.render({...o,value:Lm(o.value)??o.value})}}import{useContext as oGe,useEffect as Mue,useRef as H5,useState as D5}from"react";import{Button as M5}from"efficient-shell/ui";import{ScreenDocumentContext as nGe}from"efficient-easel/screen/components/ScreenDocumentContext";var C1=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},B5=null,K8=null,V8=null;function tGe(){B5=null,K8=null,V8=null}function Due(e=!1){let t=ca(),o=In();return(e||!B5||K8===null&&t!==null||V8!==o)&&(K8=t,V8=o,B5=(t?Ae.listForms(t,{siteId:o}):Promise.reject(new C1)).catch(n=>{throw tGe(),n instanceof C1?n:new C1(n)})),B5}import{useEaselHost as rGe}from"efficient-easel/screen/lib/host";import{InertHint as Y8}from"efficient-easel/panel";import{jsx as sr,jsxs as Pc}from"react/jsx-runtime";var zue="__create-a-new-form__";function aGe({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:zue,label:u("Create a new form")}];return[s,...l,...d,...c]}function iGe(e){return e===zue?{action:"create"}:{action:"store",slug:e}}function sGe({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 lGe(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 j8({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=rGe(),a=oGe(nGe),i=a?a.capabilities.hasForms:!0,[s,l]=D5(null),[d,c]=D5(!1),[p,m]=D5(!1),[f,g]=D5(!1),h=H5(!0),w=H5(e);w.current=e;let b=H5(t);b.current=t;let y=H5(null),x=(T=!1)=>Due(T).then(R=>{if(h.current){l(R),c(!1);let H=sGe({value:w.current,pickedId:y.current,forms:R});H&&b.current(H)}return R},()=>(h.current&&c(!0),[]));Mue(()=>(h.current=!0,i&&x(),()=>{h.current=!1}),[i]),Mue(()=>i?U_(()=>{x(!0)}):void 0,[i]);let k=e?(s??[]).find(T=>T.slug===e)??null:null;k?y.current=k.id:e||(y.current=null);let S=!!e&&!k&&s!==null&&!d,P=aGe({value:e,forms:s,loadFailed:d,emptyLabel:n}),E=async()=>{m(!0),g(!1);try{let T=await Qie(r,{mode:"create"}),R=await x(!0);if(!h.current)return;if(T.status==="timeout"){g(!0);return}if(T.status!=="saved")return;let{form:H}=T;H.slug!==w.current&&b.current(H.slug),R.some(L=>L.id===H.id)||x(!0)}finally{h.current&&m(!1)}},C=T=>{let R=iGe(T);R.action==="create"?E():(g(!1),t(R.slug))};return i?Pc("div",{className:"sf-formpicker",children:[sr(yb,{label:o,options:P,fallback:"",value:e??"",onChange:C,placeholder:u("Search forms\u2026")}),f&&sr("p",{className:"sf-formsummary-warn",children:u("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),k?Pc("div",{className:"sf-blogsource sf-formsummary",children:[Pc("div",{children:[sr("div",{className:"sf-formsummary-caption",children:nr("{n} field","{n} fields",k.fields.length)}),k.fields.length?sr("ol",{className:"sf-formsummary-fields",children:k.fields.map((T,R)=>sr("li",{children:T.label},T.key||`${T.label}-${R}`))}):sr(Y8,{children:u("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),Pc("div",{children:[sr("div",{className:"sf-formsummary-caption",children:u("Where the answers go")}),sr("ul",{className:"sf-formsummary-fields",children:lGe(k).map(T=>sr("li",{children:T},T))})]}),!k.is_active&&sr("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")})}),Pc("div",{className:"sf-formsummary-actions",children:[sr(M5,{variant:"secondary",size:"md",onClick:()=>Jie(r,k.id),children:u("Edit form \u270E")}),sr(M5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{E()},children:u("New form +")})]}),sr("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")})})]}):Pc("div",{className:"sf-blogsource sf-formsummary",children:[d?Pc(Y8,{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&&sr("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??""})}),Pc("div",{className:"sf-formsummary-actions",children:[d&&sr(M5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{x(!0)},children:u("Try again")}),sr(M5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{E()},children:u("New form +")})]}),!d&&sr("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")})})]})]}):sr("div",{className:"sf-formpicker",children:sr("div",{className:"sf-blogsource sf-formsummary",children:Pc("div",{children:[sr("div",{className:"sf-formsummary-caption",children:u(o)}),Pc(Y8,{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 dGe}from"react/jsx-runtime";function Cc(e,t){return{type:"custom",render:({value:o,onChange:n})=>dGe(j8,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{createContext as cGe,useContext as pGe}from"react";import{jsx as _c,jsxs as q8}from"react/jsx-runtime";function X8(e){return oc(e)??void 0}var Z8=cGe({}),Wue=3;function J8({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}=pGe(Z8),g=d==="bordered"?" border border-line":d==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",h=X8(r),w=An();if(f){let x={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:h??"",tag:e??"",href:n||"#"};return w.scope(_c("div",{className:Qt(`block w-full min-w-0 ${U0}${s?` ${zm}`:""}`,w.className),...w.attrs,children:_c(Ue,{ownerId:m??"Collections",ownerType:"Collections",Template:f,rows:[x],fallback:null,children:v=>v})}))}let b=x=>p?{[B0]:x}:{},y=x=>RE(c?.[Xl(x)]?.role,Eh[x],bE);return w.scope(q8(Le,{href:n||"#",className:Qt(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${g}`,w.className),...w.attrs,children:[_c("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${Vde}`,children:_c(so,{label:a||"collection.jpg",src:h})}),_c("div",{className:`pointer-events-none absolute inset-0 z-[1] ${qde} max-view-wide:hidden`,style:{transition:"none"}}),q8("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&&_c("span",{...b("tag"),style:y("tag"),className:`font-mono ${Op.tag} uppercase tracking-[0.25em] opacity-70`,children:A(e)}),t&&_c("h3",{...b("name"),style:y("name"),className:`font-heading2 ${Op.name} font-medium leading-none tracking-[-0.03em] ${Op.namePhone}`,children:typeof t=="string"?ee(t,!1):t}),o&&Ft(o).map((x,v)=>_c("p",{...b("body"),style:y("body"),className:`max-w-[420px] ${Op.body} leading-[1.5] opacity-80`,children:A(x)},v)),l&&i&&_c("span",{...b("price"),style:y("price"),className:`font-mono ${Op.price} tracking-[0.05em] text-accent`,children:A(i)}),q8("span",{...b("link"),style:y("link"),className:`mt-2 inline-flex items-center gap-3 font-mono ${Op.link} uppercase tracking-[0.2em]`,children:["Explore",_c("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as que,useCallback as _Ge,useContext as Yue,useEffect as Xue,useRef as RGe,useState as nD}from"react";import{slugify as NGe}from"efficient-shell/format";import{useState as uGe}from"react";import{jsx as Q8,Fragment as mGe}from"react/jsx-runtime";function wl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=gQ(e),a=bQ(e),i=t?a:r,s=hQ(i);return o&&!i?Q8("span",{[Vm]:e,children:n}):i?Q8("span",{ref:s,[tJ]:i.stamp,...i.textStyle?{[oJ]:i.textStyle}:{},children:n}):Q8(mGe,{children:n})}import{jsx as Ui,jsxs as Uw}from"react/jsx-runtime";var eD=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function tD({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=>uoe(l,d,x),f=x=>p&&c?{[ZZ]:c,[JZ]:`@${x}`}:{},g=(x,v)=>!p&&c?Ui(wl,{kind:`@${x}`,shared:!0,children:v}):v,[h,w]=uGe(!1),b=NX(s),y=Uw("div",{className:["sf-card group relative overflow-hidden bg-surface-2",$0(i),t?"max-view-wide:hidden":""].join(" "),children:[Uw("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:[Ui(so,{label:e.imageLabel,src:e.imageSrc}),!o&&Ui("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),Ui("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&&Ui(Zs,{src:e.detailSrc,alt:"",fill:!0,sizes:"(max-width: 800px) 100vw, (max-width: 1500px) 33vw, 25vw",loading:"lazy",className:"absolute inset-0 z-[3] object-cover",style:{display:h?"none":"block"},onError:()=>w(!0)})}),(e.process||r!=null&&a!=null)&&Uw("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&&Ui("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",So(e.process))}),r!=null&&a!=null&&Ui("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",eD(r,a))})]}),Ui("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:Uw("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&&Ui("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&&Ui("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&&Ui("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:Ui("span",{children:g("meta",So(e.finish))})})]})})]});return b?Uw("div",{className:t?"max-view-wide:hidden":"",children:[y,Uw("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&Ui("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)&&Ui("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",So(e.finish||e.car))})]})]}):y}import{createContext as fGe,useCallback as hGe,useContext as gGe,useEffect as bGe,useLayoutEffect as wGe,useRef as oD,useState as xGe}from"react";import{createPortal as yGe}from"react-dom";import{Fragment as TGe,jsx as _1,jsxs as EGe}from"react/jsx-runtime";var vGe=".sf-themed-content",Uue="sf-section-accent";function kGe(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(Uue)&&(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 ${Uue}`:"contents",style:o}}function SGe(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 Gue=fGe(()=>{});function Qp({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=oD(null),l=oD(null),[d,c]=xGe(null);wGe(()=>{if(!e){c(null);return}let g=s.current;if(!g)return;let h=g.closest(vGe)??g.ownerDocument.body;c({host:h,theme:kGe(g,h)})},[e]);let p=oD({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let m=e&&d!==null,f=hGe(()=>p.current.onClose(),[]);return Sc({active:m,onDismiss:f,scopeRef:l}),bGe(()=>{if(!m)return;let g=l.current,h=g?.ownerDocument??document,w=h.activeElement;g?.focus();let b=x=>{if(x.key==="ArrowLeft")p.current.onPrev?.();else if(x.key==="ArrowRight")p.current.onNext?.();else if(x.key==="Tab"&&g){let v=SGe(g);if(v.length===0){x.preventDefault(),g.focus();return}let k=v[0],S=v[v.length-1],P=h.activeElement,E=!!P&&g.contains(P)&&P!==g;if(x.shiftKey&&(!E||P===k))x.preventDefault(),S.focus();else if(!x.shiftKey&&(!E||P===S))x.preventDefault(),k.focus();else{x.preventDefault();let C=v.indexOf(P);v[x.shiftKey?C-1:C+1]?.focus()}}},y=h.defaultView??window;return y.addEventListener("keydown",b),()=>{y.removeEventListener("keydown",b),w&&w.isConnected&&w.focus()}},[m]),e?EGe(TGe,{children:[_1("span",{ref:s,hidden:!0}),d&&yGe(_1("div",{className:d.theme.className,style:d.theme.style,children:_1("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 ${F8[8]} ${a}`,style:{background:I8},children:_1(Gue.Provider,{value:t,children:i})})}),d.host)]}):null}var z5="color-mix(in oklab, var(--bg) 70%, transparent)";function $u({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=gGe(Gue);return _1("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as PGe,useContext as og}from"react";var R1=PGe(null);function $ue(){let e=og(s2),t=og(R1),o=c_();return e?e.socialLinks??rre:t?t.socialLinks:o.links}function Ku(){return og(R1)?.commerceEnabled??!0}function CGe(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function Gw(){return CGe(og(R1))}function Kue(){let e=og(R1),t=jn();return e?e.showThemeSwitch??gp:t.themeSwitchShown??gp}function Vue(){let e=og(s2),t=og(R1),o=jn();return e?F_({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?F_({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):F_({siteName:o.websiteName?.trim()||cu})}import{useBrowserLayoutEffect as OGe}from"efficient-shell/hooks";import{Fragment as $w,jsx as Eo,jsxs as ga}from"react/jsx-runtime";var AGe="(max-width: 1100px) 100vw, min(59vw, 1050px)",N1=que({}),Zue=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],aD=que(null),Vu="data-gallery-grid",rD="data-gallery-tile";function LGe(e,t){let[o,n]=nD(null);return Xue(()=>{let r=e.current,a=r?.closest(`[${Vu}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${rD}]`)),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 fd={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},IGe=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),Jue=Array.from({length:6},IGe);function FGe(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=NGe(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 ng({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:w}=Yue(N1),b=FGe(a),x=Ku()&&!f,v=!x&&!BGe(b),k=b.photos??(b.imageSrc?[b.imageSrc]:[]),S=RGe(null),P=_Ge(ne=>{S.current=ne},[]),E=LGe(S,e),C=Yue(aD),T=C?.report,R=r?.id,H=r?.tag??"",L=r?.name??"";OGe(()=>{if(!T||!R)return;let ne={id:R,tag:H,name:L};return T(ne),()=>T(ne,!0)},[T,R,H,L]);let N=(R?C?.positionOf(R):null)??E,O=e&&(!!t||!!d),[F,V]=nD(!1),[$,j]=nD(0),Y=!!R&&!!C&&C.walkCount>1,z=ne=>{let de=$+ne;if(Y&&(de<0||de>=k.length)){V(!1),C.walk(R,ne);return}j((de+k.length)%k.length)},X=()=>z(-1),Z=()=>z(1),B=k.length>1||Y,I=C?.opening;Xue(()=>{!I||I.id!==R||(j(I.at==="last"?Math.max(0,k.length-1):0),V(!0))},[I,R]);let G=k[$]??b.imageSrc??"",Q=k.slice(1),K=h?Eo("div",{className:`block w-full min-w-0 ${U0}${i?` ${zm}`:""}`,children:Eo(Ue,{ownerId:w??"GalleryB",ownerType:"GalleryB",Template:h,rows:[{key:R??b.imageSrc??"tile",image:b.imageSrc??"",tag:b.process,number:N?eD(N.index,N.total):"",eyebrow:b.car,name:b.wheel,meta:b.finish,href:b.href??""}],items:[{hoverMedia:Q.length?{photos:[{finish:"",items:Q.map(ne=>({url:ne,kind:"image"}))}]}:null}],previewHover:O,fallback:null,children:ne=>ne})}):Eo(tD,{build:b,forceHover:O,alwaysShowOverlay:g,index:N?.index,total:N?.total,ratio:o,captionPlace:n,display:c,displayPhone:p,styleOwner:m,editing:e});return ga($w,{children:[e?Eo(M,{as:"div",ref:P,[rD]:"",className:"block w-full text-left",children:K}):Eo(M,{as:"button",ref:P,[rD]:"",type:"button","aria-label":x?`Open ${b.car||"build"} on ${b.wheel||"wheel"}`:jue(b),onClick:()=>{j(0),V(!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:K}),Eo(Qp,{open:F,onClose:()=>V(!1),label:x?`${b.car} on ${b.wheel}`:jue(b),onPrev:B?X:void 0,onNext:B?Z:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:ga("div",{onClick:ne=>ne.stopPropagation(),className:`relative grid w-[min(1800px,100%)] max-h-[calc(100vh-48px)] ${v?"grid-cols-1":"grid-cols-[1.4fr_1fr]"} overflow-hidden border border-line bg-bg max-view-desktop:grid-cols-1 max-view-desktop:overflow-auto`,style:{boxShadow:"0 60px 120px -20px color-mix(in srgb, var(--sf-shadow-color, #141416) 70%, transparent)"},children:[Eo($u,{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:z5},children:"\u2715"}),ga("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[G&&Eo("img",{...fo(G,{fallbackWidth:1280}),sizes:AGe,alt:`${(x?b.car:b.wheel||b.car)||"Photo"} \u2014 ${$+1} of ${k.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},G),B&&ga($w,{children:[Eo("button",{type:"button","aria-label":"Previous photo",onClick:X,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"}),Eo("button",{type:"button","aria-label":"Next photo",onClick:Z,className:"absolute right-4 top-1/2 flex h-16 w-16 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg-dim/40 bg-overlay-scrim/40 font-mono text-[length:var(--size-label,24px)] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u25B7"}),k.length>1&&ga("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:[$+1," / ",k.length]})]})]}),x?ga("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[b.process&&Eo("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:A(b.process)}),b.wheel&&Eo("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(b.wheel,!1)}),b.car&&ga("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",Eo("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:A(b.car,!0)})]}),ga("dl",{className:"mt-3 grid grid-cols-[auto_1fr] gap-x-7 gap-y-[18px] border-y border-line py-[30px] font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.22em]",children:[b.wheel&&ga($w,{children:[Eo("dt",{className:"text-fg-dim",children:"Wheel"}),Eo("dd",{className:"text-fg",children:A(b.wheel)})]}),b.process&&ga($w,{children:[Eo("dt",{className:"text-fg-dim",children:"Process"}),Eo("dd",{className:"text-fg",children:A(b.process)})]}),b.finish&&ga($w,{children:[Eo("dt",{className:"text-fg-dim",children:"Finish"}),Eo("dd",{className:"text-fg",children:A(b.finish)})]}),b.car&&ga($w,{children:[Eo("dt",{className:"text-fg-dim",children:"Vehicle"}),Eo("dd",{className:"text-fg",children:A(b.car)})]})]}),ga("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[ga(Le,{href:b.href||"/wheels",onClick:()=>V(!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:[Eo("span",{children:"View product"}),Eo("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),ga(Le,{href:s,onClick:()=>V(!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:[Eo("span",{children:"See more builds"}),Eo("span",{children:"\u2192"})]}),ga(Le,{href:l,onClick:()=>V(!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:[Eo("span",{children:"Submit your build"}),Eo("span",{children:"\u2192"})]})]})]}):!v&&Eo(HGe,{build:b})]})})]})}function Que(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function BGe(e){return!!e.wheel||Que(e).length>0}function jue(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function HGe({build:e}){let t=e.wheel,o=Que(e);return ga("div",{className:"flex flex-col gap-[24px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[t&&Eo("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=>Eo("p",{className:"text-[length:var(--size-body,18px)] leading-[1.5] text-fg",children:A(n)},n))]})}import{createContext as GGe,useContext as $Ge,useEffect as O1,useId as KGe,useState as Pr,useSyncExternalStore as VGe}from"react";var DGe=14,MGe=3;function zGe(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function WGe(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),zGe(o)}async function efe(e,t,o={}){let n=o.days??DGe,r=o.read??Ph.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=WGe(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>=MGe)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as tfe,formatDateTime as iD,formatTime as rfe}from"efficient-shell/format";var UGe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},ofe={weekday:"long",day:"numeric",month:"long",year:"numeric"},afe={hour:"numeric",minute:"2-digit"},nfe={...afe,timeZoneName:"short"};function sD(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function lD(e,...t){let o=cl(...t);return!o||!sD(e)?"":rfe(e,{locale:_6(),timeZone:o})}function dD(e,...t){let o=typeof e=="string"?{start:e}:e,n=cl(...t),r=sD(o.start);if(!n||!r)return"";let a=_6(),i=o.end?sD(o.end):null;if(!i||i.getTime()<=r.getTime())return iD(o.start,{locale:a,timeZone:n,style:UGe,zoneName:"short"});let s=iD(o.start,{locale:a,timeZone:n,style:ofe,clock:afe}),d=tfe(o.start,n)===tfe(o.end,n)?rfe(o.end,{locale:a,timeZone:n,clock:nfe}):iD(o.end,{locale:a,timeZone:n,style:ofe,clock:nfe});return`${s} \u2013 ${d}`}function W5(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as YGe,userToday as jGe,userZone as qGe}from"efficient-shell/format";import{jsx as o$e}from"react/jsx-runtime";var sfe=GGe(null);function Yu(){let e=$Ge(sfe);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var cD=[{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:""}],XGe=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function ife(e,t){return{timezone:"",slots:t?XGe.flatMap(({hour:n,minute:r})=>YGe(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var pD={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function ZGe(e){let t=String(e?.slots[0]?.start??"");return t?{...pD,startAt:t}:pD}function lfe(e){return e.bookingNumber===pD.bookingNumber}function JGe(e,t){return e&&t?.length===0}function QGe(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!W5(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function e$e(){return()=>{}}function t$e(){return null}function dfe({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=KGe(),r=VGe(e$e,jGe,t$e)??"",[a,i]=Pr(),[s,l]=Pr(""),[d,c]=Pr(""),[p,m]=Pr(r),[f,g]=Pr(r),[h,w]=Pr(!1),[b,y]=Pr(null),[x,v]=Pr(),[k,S]=Pr(""),[P,E]=Pr(""),[C,T]=Pr(""),[R,H]=Pr(""),[L,N]=Pr(""),[O,F]=Pr(()=>D6()),[V,$]=Pr(null),[j,Y]=Pr(!1),[z,X]=Pr(!1),[Z,B]=Pr(null),[I,G]=Pr("");O1(()=>{G(qGe()??"")},[]),O1(()=>{let he=!1;return Ph.listServices().then(Re=>{if(he)return;let Be=x_(Re);i(Be),l(Re.currency),c(re=>re||Be[0]?.id||"")}).catch(()=>{he||i([])}),()=>{he=!0}},[]),O1(()=>{r&&(m(he=>he||r),g(he=>he||r))},[r]),O1(()=>{if(h||!d||!r)return;let he={aborted:!1};return S(""),v(void 0),B(null),y(null),Y(!0),efe(d,r,{signal:he}).then(Re=>{if(!he.aborted){if(Re.outcome==="found"){m(Re.date),g(Re.date),v(Re.availability);return}y(Re.outcome==="noneInWindow"?`No times are available in the next ${Re.days} days.`:"We couldn't load available times. Please try again.")}}).finally(()=>{he.aborted||Y(!1)}),()=>{he.aborted=!0}},[h,d,r]),O1(()=>{if(!h||!d||!p)return;let he=!1;return S(""),v(void 0),B(null),y(null),Y(!0),Ph.getAvailability(d,p).then(Re=>{he||(v(Re),Re.slots.length===0&&y("No times are available on this date."))}).catch(()=>{he||y("We couldn't load available times. Please try again.")}).finally(()=>{he||Y(!1)}),()=>{he=!0}},[p,h,d]);let Q=a?.find(he=>he.id===d),K=Q?.depositAmountDue!=null,ne=QGe({editing:e,submitting:z,hasService:!!Q,hasDay:!!p,selectedStart:k,name:P,email:C,requiresPayment:K},Date.now());async function de(he){if(he.preventDefault(),!(!ne||!Q)){X(!0),B(null);try{let Re=await Ph.create({serviceId:Q.id,start:k,customer:{name:P.trim(),email:C.trim(),phone:R.trim()},notes:L.trim(),idempotencyKey:O,customerTimezone:I});$(Re),F(D6())}catch(Re){B(Re instanceof ar&&Re.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),Re instanceof ar&&Re.status===409&&(S(""),Ph.getAvailability(Q.id,p).then(v).catch(()=>{}))}finally{X(!1)}}}let ke=JGe(e,a),ot=ke?ife(p,I):void 0,be=t&&!V?ZGe(ot??ife(p,I)):null;return o$e(sfe.Provider,{value:{fieldPrefix:n,editing:e,services:ke?cD:a,currency:ke?"AUD":s,serviceId:ke?cD[0].id:d,setServiceId:c,service:ke?cD[0]:Q,requiresPayment:ke?!1:K,date:p,earliestDate:f,setDate:m,setDateTouched:w,availability:ot??x,loadingSlots:ke?!1:j,noSlotsMessage:b,selectedStart:ot?ot.slots[0]?.start??"":k,setSelectedStart:S,customerTimezone:I,name:P,setName:E,email:C,setEmail:T,phone:R,setPhone:H,notes:L,setNotes:N,confirmation:V??be,submitting:z,error:Z,canSubmit:ke?!1:ne,handleSubmit:de,sample:!!ke},children:o})}import{jsx as U5,Fragment as cfe,jsxs as pfe}from"react/jsx-runtime";var mfe=`sf-button group inline-flex items-center justify-center gap-2.5 border ${Goe} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,ufe={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 ba(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?mfe.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):mfe} ${ufe[t]??ufe.primary} ${a??""}`,h=n?pfe(cfe,{children:[o!==null&&U5("span",{"aria-hidden":!0,className:"inline-flex",...l,children:o??"\u2192"}),d]}):pfe(cfe,{children:[d,o!==null&&U5("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",...l,children:o??"\u2192"})]});return c?U5(Nt,{href:c,className:g,style:i,newTab:p?!0:"auto",...m?{hrefRewrite:m}:{},...s,children:h}):U5("button",{type:"button",className:g,style:i,...f,children:h})}import{jsx as n$e}from"react/jsx-runtime";var A1=e=>n$e("div",{className:"grid bg-bg",children:e});import{jsx as co,jsxs as hd}from"react/jsx-runtime";var L1="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 r$e(e,t){let o=Number(e);if(o===0)return Ch;try{return sie(o,t)}catch{return`${t} ${e}`}}var ffe={selected:!0};function hfe(e,t){return({index:o})=>t?{[SP]:TP(e,o)}:{}}var I1="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function mD({number:e,children:t}){return hd("div",{className:"mb-4 flex items-center gap-3",children:[co("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}),co("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 G5({eyebrow:e,heading:t,intro:o}){return hd("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&co("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&co("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()&&co("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function $5({style:e,owner:t}){let{fieldPrefix:o,services:n,currency:r,serviceId:a,setServiceId:i,requiresPayment:s,date:l,earliestDate:d,setDate:c,setDateTouched:p,availability:m,loadingSlots:f,noSlotsMessage:g,selectedStart:h,setSelectedStart:w,customerTimezone:b,editing:y}=Yu();if(!n)return null;let x=Date.now(),v=cl(b,m?.timezone??""),k=cl(m?.timezone??""),S=k&&k!==v?k:"",P=(m?.slots??[]).map(E=>({start:E.start,time:lD(E.start,v),businessTime:S?`${lD(E.start,S)} business`:"",passed:!y&&W5(E.start,x)}));return hd(M,{className:"flex flex-col gap-10",style:e,children:[hd("div",{children:[co(mD,{number:"01",children:"Choose a service"}),co("div",{className:"grid gap-3 sm:grid-cols-2",children:co(Ue,{ownerId:t.id,ownerType:t.type,slot:Yh,Template:t.serviceTemplate,rows:n.map(E=>({name:E.name,meta:`${E.durationMinutes} min \xB7 ${r$e(E.price,r)}`,description:E.description??""})),states:n.map(E=>E.id===a?ffe:void 0),actions:y?void 0:n.map(E=>({press:()=>i(E.id),label:E.name})),copyAttrs:hfe(Yh,y),fallback:null,wrapCopy:A1,children:E=>co(Lo,{children:E})})}),s&&co("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."})]}),hd("div",{children:[co(mD,{number:"02",children:"Choose a date and time"}),co(Wr,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:I1,children:co("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:E=>{p(!0),c(E.target.value)},className:L1,required:!0})}),co("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?co("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?co(Ue,{ownerId:t.id,ownerType:t.type,slot:jh,Template:t.timeTemplate,rows:P.map(E=>({time:E.time,businessTime:E.businessTime})),states:P.map(E=>E.start===h&&!E.passed?ffe:void 0),actions:y?void 0:P.map(E=>({press:()=>w(E.start),label:E.time,disabled:E.passed})),copyAttrs:hfe(jh,y),fallback:null,wrapCopy:A1,children:E=>co(Lo,{children:E})}):g?co("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",role:"status",children:g}):null}),v&&!f&&!!m?.slots.length&&hd("p",{className:"mt-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,10px)] uppercase tracking-[0.16em] text-fg-dim",children:["Times shown in ",v,S?` \xB7 business timezone ${S}`:""]})]})]})}function K5({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}=Yu();return hd(M,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[co(mD,{number:"03",children:"Your details"}),hd("div",{className:"flex flex-col gap-4",children:[co(Wr,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:I1,children:co("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:h=>a(h.target.value),className:L1,required:!0})}),co(Wr,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:I1,children:co("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:h=>s(h.target.value),className:L1,required:!0})}),co(Wr,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:I1,children:co("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:h=>d(h.target.value),className:L1})}),co(Wr,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:I1,children:co("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:h=>p(h.target.value),className:`${L1} resize-y`})})]}),f&&co("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}),co(ba,{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 V5({successMessage:e}){let{confirmation:t,customerTimezone:o}=Yu();if(!t)return null;let n=cl(t.customerTimezone,o,t.timezone),r=cl(t.timezone),a=r&&r!==n?r:"";return hd("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[hd("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),co("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),co("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:dD(t.startAt,n)}),a&&hd("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",dD(t.startAt,a)]}),(e??"").trim()&&co("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),co(ba,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!lfe(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as Kw}from"react/jsx-runtime";var gfe=["head","booking","details","confirm"],bfe={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function uD({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}=Yu(),m=mpe(d);return e==="head"?Kw(M,{className:"min-[960px]:col-span-2",style:m,children:Kw(G5,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?Kw(M,{className:"min-[960px]:col-span-2",style:m,children:Kw(V5,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?Kw($5,{style:m,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?Kw(K5,{buttonLabel:s,style:m}):null}import{useEffect as wfe,useState as ju}from"react";import{jsx as Vw,jsxs as i$e}from"react/jsx-runtime";function Rc(e,t){let[o,n]=ju(void 0),[r,a]=ju(0);return wfe(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return Io.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),wfe(()=>{if(t===void 0)return U_(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var a$e="Something went wrong \u2014 your submission wasn't sent. Please try again.";function Yw(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function qu({form:e,formSlug:t,editing:o=!1}){let[n,r]=ju({}),[a,i]=ju(""),[s,l]=ju(!1),[d,c]=ju(!1),[p,m]=ju(null),[f,g]=ju(null);async function h(w){if(w.preventDefault(),!(o||s||!e||!t)){l(!0),g(null);try{let b=e.fields.map(x=>({fieldKey:x.key,value:n[x.key]??""})),y=await Io.submitForm(t,{answers:b,...a?{company:a}:{}});m(y?.account??null),c(!0)}catch{g(a$e)}finally{l(!1)}}}return{valueOf:w=>n[w]??"",set:(w,b)=>r(y=>({...y,[w]:b})),honeypot:a,setHoneypot:i,submitting:s,done:d,account:p,error:f,handleSubmit:h}}function jw({value:e,onChange:t}){return Vw("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:o=>t(o.target.value)})}function Xu({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"?Vw("textarea",{required:e.required,rows:r,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l}):e.type==="select"?i$e("select",{required:e.required,value:t,onChange:d=>o(d.target.value),className:n,...l,children:[Vw("option",{value:"",children:s||"Select\u2026"}),e.options.map(d=>Vw("option",{value:d,children:d},d))]}):e.type==="checkbox"?Vw("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:d=>o(d.target.checked?"true":""),className:n}):Vw("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 xl,jsxs as F1}from"react/jsx-runtime";function s$e(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function xfe({eyebrow:e,title:t}){return F1("div",{className:"flex flex-col gap-4",children:[e&&xl(lt,{text:e,scaled:!1}),t&&xl("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 Y5({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return F1("div",{className:"flex flex-col gap-8",children:[e&&Ft(e).map((l,d)=>xl("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:A(l)},d)),a&&(n?r.done?xl("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:Yw(n)}):F1("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",s$e(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?F1("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:[xl(Xu,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),F1("span",{children:[l.label,l.required?xl("span",{className:"text-accent",children:" *"}):null]})]},l.key):xl(Xu,{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)}),xl(jw,{value:r.honeypot,onChange:r.setHoneypot}),r.error&&xl("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:r.error}),xl("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":A(t||Ut.buttonText)})]}):xl("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&&xl("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:A(o)})]})}var j5=["field","tick","thanks"],yfe={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},q5={field:"styleField",tick:"styleTick",thanks:"styleThanks"},l$e={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 d$e(e){return typeof e=="string"&&R0.includes(e)?e:null}function vfe(e){let t={};for(let o of j5){let n=d$e(e[q5[o]]);n&&Object.assign(t,Lu(n,l$e[o]))}return t}import{jsx as X5}from"react/jsx-runtime";var kfe=["head","form"],Sfe={head:"Head",form:"Form"};function fD({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=Rc(i,s),p=qu({form:c,formSlug:i,editing:l}),m=vfe(d);return e==="head"?X5(M,{as:"div",style:m,children:X5(Mt,{look:"statement",num:t,title:o})}):X5(M,{as:"div",style:m,children:X5(Y5,{body:n??"",buttonLabel:r??"",consent:a??"",form:c,submission:p,showForm:!!c||l,resolving:c===void 0,editing:l})})}var c$e={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>gfe.map(e=>({region:e,name:bfe[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:()=>kfe.map(e=>({region:e,name:Sfe[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:()=>Jue.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};yte(c$e);import{jsx as Tfe}from"react/jsx-runtime";var p$e={body:"text-[length:var(--size-body,17px)]"},em=5;function qw({rating:e}){let t=Math.min(em,Math.max(0,Math.round(e)));return Tfe(M,{role:"img","aria-label":`${t} out of ${em} stars`,className:`flex gap-1 ${p$e.body} leading-none`,children:Array.from({length:em}).map((o,n)=>Tfe("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var hD="mx-auto max-w-[var(--sf-site-width,1600px)]",m$e=[/^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 Efe(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function gD(e){return e.split(/\s+/).filter(t=>t&&!m$e.some(o=>o.test(Efe(t)))).join(" ")}var u$e=new Set(["max-view-desktop","max-view-wide"]);function f$e(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 Xw(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=Efe(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?f$e(l[1]):void 0;d!==void 0&&(i?u$e.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as h$e,jsx as g$e}from"react/jsx-runtime";function bD({inBox:e,atTop:t,anyBox:o=!1}){let n=ru(),r=xC();return g$e(h$e,{children:n||o&&r?e:t})}import{createContext as Pfe,useContext as xD}from"react";import{Fragment as w$e,jsx as wD}from"react/jsx-runtime";var b$e={atTop:null,inBox:null},yD=Pfe(b$e);function Z5({pad:e,children:t}){return wD(yD.Provider,{value:e,children:t})}var lr=()=>xD(yD).atTop,Cfe=()=>xD(yD),_fe=Pfe(void 0);function Rfe({pads:e,children:t}){return e?wD(_fe.Provider,{value:e,children:t}):wD(w$e,{children:t})}var Nfe=()=>xD(_fe);import{jsx as B1}from"react/jsx-runtime";function yt({className:e,capped:t=!1,column:o=Ci,style:n,defaults:r,id:a,attrs:i,rootRef:s,inAnyBox:l=!1,padOnColumn:d=!1,children:c}){let p=me(),m=Cfe(),f=gD(e),g=o===null?"":gD(o),{className:h,style:w,...b}=Te(f,m.inBox,n),y=B1(M,{as:"section",ref:s,...i,...b,className:h||void 0,style:w,id:a,children:g?B1("div",{className:g,children:c}):c}),x=r?{...r,...n}:n,v=d?null:m.atTop,k=d?m.atTop:null,{className:S,style:P,...E}=Te(t?`${hD} ${e}`:e,v,x),C=B1(M,{as:"section",ref:s,...i,...E,className:S,style:P,id:a,children:o===null?c:B1("div",{...Te(pe(o,p),k),children:c})});return B1(bD,{inBox:y,atTop:C,anyBox:l})}import{Fragment as y$e,jsx as tm,jsxs as J5}from"react/jsx-runtime";var Zw={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)]"},x$e="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))]",vD="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 kD({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:J5(yt,{className:"relative z-[2] border-t border-line bg-surface",column:l?vD:x$e,padOnColumn:!0,children:[l?null:J5(y$e,{children:[(t??"").trim()&&tm(lt,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&tm("h2",{className:`mb-12 font-heading2 ${Zw.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${Zw.headingMediumUpTo800}`,children:ee(o??"",!1)})]}),tm("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=>J5("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&&tm(qw,{rating:c.rating}),(c.title??"").trim()&&tm("h3",{className:`font-display ${Zw.bodyLarge} font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg`,children:c.title}),tm("div",{className:`flex-1 font-serif ${Zw.bodySmall} leading-[1.65] text-fg-dim`,children:Ft(c.quote).map((p,m)=>tm("p",{className:m?"mt-3":"",children:p},m))}),J5("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-5",children:[tm("span",{className:`font-mono ${Zw.label} uppercase tracking-[0.22em] text-fg`,children:c.name}),tm("span",{className:`font-mono ${Zw.label} uppercase tracking-[0.18em] text-fg-dim`,children:c.meta??""})]})]},c.key))})]})}var Ofe=Xw(vD),SD={top:84,bottom:Ofe.bottom,topPhone:84,bottomPhone:Ofe.bottomPhone},Afe=SD,[v$e,k$e]=Fv("Testimonials"),S$e={type:$s,props:{...Me,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[Ks]:[{type:"Text",props:{...We,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Oe("quote",Et,{size:16,lineHeight:1.6}),{type:$s,props:{...Me,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[Ks]:[Oe("name",We,{...ql,weight:500,letterSpacing:.04}),Oe("role",Et,{textStyle:"body-5"})]}}]}},T$e={name:"Testimonials",boxProps:e=>({...Xd,direction:"column",gap:44,sectionBorder:{top:1},...Ym(e,Afe)}),box:[...yp,...mh(Afe)],parts:[{kind:"group",name:"Heading",props:{...Me,gap:16},parts:[{...v$e,props:We},{...k$e,props:We,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[S$e]}}],site:uJ("title"),drop:{...Zd,...Jd,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"}};On({Testimonials:T$e});var $r={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 eN,tabletKey as TD}from"efficient-easel/draw";var E$e={textStyle:"body-5",...uo("label",14),letterSpacing:.05,lineHeight:1.5},P$e={type:$s,props:{...Me,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[eN("share")]:"content",[eN("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[Ks]:[Oe("label",Et,{...Na(14),letterSpacing:.05,lineHeight:1.5}),Oe("value",{...We,align:"right"},{...E$e,align:"right"})]}},Lfe={[fh]:BP},C$e=["dynamic","source","finish","size","wheel"],H1=el("SpecTable",{slots:{template:[P$e]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...Me,direction:"row",share:"content",gap:48,[TD("gap")]:80,[eN("gap")]:80,...Lfe}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),_$e=H1.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(C$e.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),Q5=Xw($r.ownBox),R$e={...H1,parts:_$e,boxProps:(e,t)=>{let o=typeof H1.boxProps=="function"?H1.boxProps(e,t):H1.boxProps;return{...o,sectionPaddingBottom:Q5.bottom,sectionPaddingBottomPhone:Q5.bottomPhone,...Lfe,[TD("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[TD("sectionPaddingBottom")]:Q5.bottomPhone,[eN("gap")]:36,...Q5.line?{sectionBorder:NP({bottom:1})}:{}}}};On({SpecTable:R$e});On({ProductGrid:el("ProductGrid",{slots:{[Rt]:[Vpe()]},pressHeading:!0})});On({Events:el("Events",{slots:{[Rt]:KH()},coreProps:{sectionAccent:XE},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});On({Collections:el("Collections",{slots:{[Rt]:[VH()]},roomBelow:Xde,pressHeading:!0})});On({GalleryB:el("GalleryB",{slots:{[Rt]:[YH()]},roomBelow:{bottom:pi.bottom,bottomPhone:OR},pressHeading:!0})});On({[Sr]:{name:"Product hero",box:[...MX],boxProps:{direction:"column",gap:0,gapPhone:0,...ft(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[Sw]:Tw},slots:e=>({[Rt]:wH(e)})}]}});var ED=Xw($r.ownBox);On({FitmentTable:el("FitmentTable",{slots:{[l5]:[Ope()],[Iu]:[Ape()]},roomBelow:{bottom:ED.bottom,bottomPhone:ED.bottomPhone},boxProps:ED.line?{sectionBorder:NP({bottom:1})}:{},pressHeading:!0})});var N$e=e=>({type:$s,props:{...Me,name:"Row",mirrorCards:e?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[Ks]:[{type:$s,props:{...Me,name:"Words",direction:"column",gap:16},slots:{[Ks]:[Oe("eyebrow",We,{...Na(13),color:"accent"}),Oe("title",We,{textStyle:"heading-2",...uo("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Oe("copy",Et,{textStyle:"body-1",...uo("body",15),lineHeight:1.6})]}},{type:$s,props:{...Me,name:"Picture",direction:"column",gap:12},slots:{[Ks]:[{type:"ImageBlock",props:{[Ms]:"image",aspect:"1/1",fit:"contain"}},Oe("tag",{...Et,align:"right"},{...Na(11),align:"right"})]}}]}}),O$e={name:"Feature Rows",boxProps:{...Xd,...hJ,direction:"column",gap:0},box:yp,parts:[{kind:"core",keep:"rest",slots:e=>({template:[N$e(e.startLeft===!0)]})}]};On({DetailRows:O$e});import{phoneKey as CD}from"efficient-easel/draw";var oN=e=>[...yp.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>RP(t,n)],...mh(e)],_D=(e,t,o)=>(n,r)=>({...Xd,sectionAccent:RP(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...Ym(n,e)}),RD=(e,t,o)=>({kind:"text",key:e,role:"heading",props:We,style:{textStyle:"heading-2",...uo("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),ND=(e,t,o={})=>({kind:"group",name:"Heading",props:{...Me,gap:e,gapPhone:e,...o},parts:t}),OD=(e={})=>({kind:"core",keep:"rest",props:CP,...e}),tN=SD,[A$e]=Fv("ReviewForm"),L$e=()=>({name:"Review Form",boxProps:_D(tN,48,32),box:oN(tN),parts:[ND(16,[{...A$e,props:We},RD("title",1,-.02)]),OD()],pressKeepsEmpty:["eyebrow","title"],drop:{...Zd,...Jd,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[I$e]=Fv("Reviews"),PD=e=>({...Na(12),letterSpacing:e}),F$e={type:$s,props:{...Me,name:"Card",gap:16,...ft(40,40,32,32),sectionAccent:0},slots:{[Ks]:[{type:"RatingBlock",props:{[Ms]:"rating"}},Oe("title",We,{textStyle:"heading-1",...uo("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Oe("quote",Et,{textStyle:"body-1",...uo("body",15),lineHeight:1.65}),{type:$s,props:{...Me,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[CD("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[Ks]:[Oe("name",We,PD(.22)),Oe("dateLabel",{...Et,align:"right"},{...PD(.18),align:"right"}),Oe("role",{...Et,align:"right"},{...PD(.18),align:"right"})]}}]}},B$e=()=>({name:"Reviews",boxProps:_D(tN,48,32),box:oN(tN),parts:[ND(16,[{...I$e,props:We},RD("title",1,-.02)]),OD({slots:{template:[F$e]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...Zd,...Jd,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"}}),Ife={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},H$e=()=>({name:"Booking Form",boxProps:_D(Ife,40,40),box:oN(Ife),parts:[ND(16,[_P("eyebrow",{...uo("label",12),weight:600,letterSpacing:.24,color:"accent"}),RD("heading",.98,-.025),{kind:"text",key:"intro",props:{...Et,maxWidth:660},style:{textStyle:"heading-1",...uo("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),OD()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...Zd,...Jd}}),Ffe={top:88,bottom:88,topPhone:64,bottomPhone:64},D$e=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...Xd,direction:"column",align:"center",gap:20,gapPhone:20,...Ym(e,Ffe)}),box:[...yp,...mh(Ffe)],parts:[{..._P("eyebrow"),props:{...We,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...We,align:"center",maxWidth:720},style:{textStyle:"heading-1",...uo("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...We,align:"center",maxWidth:560},style:{textStyle:"body-1",...uo("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...Me,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[CD("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...mJ,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...Gv,align:"center",icon:"none"},style:{...Fm(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...Zd,...Jd}}),Bfe={top:60,bottom:0,topPhone:60,bottomPhone:0},M$e=()=>({name:"Contact Form",boxProps:(e,t)=>({...Xd,sectionAccent:RP(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...Ym(e,Bfe)}),box:oN(Bfe),parts:[{kind:"group",name:"Header",props:{...Me,direction:"row",align:"center",share:"content",phoneRow:2,[CD("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[_P("routingNumber"),{kind:"text",key:"routingTagline",props:Et,style:{textStyle:"heading-1",...uo("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:fJ(e.sectionAccent??0,t)})}}],drop:{...Zd,...Jd}});On({ContactRouting:M$e(),ReviewForm:L$e(),AppointmentBooking:H$e(),Reviews:B$e(),CheckoutCTA:D$e()});var Hfe={top:40,bottom:40,topPhone:40,bottomPhone:40},Dfe={textStyle:"heading-1",...WJ("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},AD=["heading","intro"],Mfe=[Rt,za,Wa,Ua];function z$e(e,t){let o=(t?D0:Rq)(To,e);return Object.fromEntries(Mfe.map(n=>[n,o[n]]))}var W$e=()=>({name:"List",boxProps:e=>({...Xd,direction:"column",gap:24,gapPhone:24,...Ym(e,Hfe)}),box:[...yp,...mh(Hfe)],parts:[{kind:"group",name:"Heading",props:{...Me,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...We,tag:"h1"},style:Dfe,when:e=>!CF(e)},{kind:"text",key:"heading",role:"heading",props:{...We,tag:"h2"},style:Dfe,when:CF},{kind:"text",key:"intro",role:"body",props:Et,style:{textStyle:"body-1",...uo("body",15)}}]},{kind:"core",keep:"rest",props:CP,derive:{reads:[...Mfe],props:(e,t)=>z$e(e,t.press===!0)}}],pressKeepsEmpty:AD,drop:{...Zd,...Jd,[jP]:"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"}});On({AlloyWheelsListing:W$e()});var zfe={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as U$e,useContext as G$e}from"react";function ht(e){return Bt}import{Fragment as K$e,jsx as Jw}from"react/jsx-runtime";var $$e=ht("ProductCard")("buy"),Po={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)]"},Qw=U$e("catalog");function ys(){return G$e(Qw)==="catalog"}function Zu({children:e}){let t=ys();return Jw(K$e,{children:e??(t?Jw(M,{"aria-hidden":!0}):null)})}function ex({children:e}){return Jw(Zu,{children:e?Jw(M,{children:e}):null})}function nN({children:e}){return Jw(Zu,{children:e?Jw(M,{className:"[.sf-card-rows>*>&]:self-end",...$$e,children:e}):null})}var Wfe={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:NE(Po.label),writable:!0,sized:!0}},Ufe={sku:{label:"SKU",follows:"Label",builtIn:NE(Po.label),writable:!0,sized:!0}},Gfe={name:{label:"Name",follows:"Heading 3",builtIn:NE(Po.headingSmall2),writable:!0,sized:!0}};oae({ProductPrice:zfe,ProductEyebrow:Wfe,ProductName:Gfe,ProductSku:Ufe});function tx(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as V$e}from"react/jsx-runtime";import{OpacityIcon as Y$e}from"efficient-easel/icons";import{group as rN}from"efficient-easel/screen/lib/document/box-fields";var $fe={fields:{_gContent:rN("Content"),eyebrow:U("Eyebrow",ou.eyebrow),title:q("Heading",ou.title),body:q("Body",ou.body),_gBackground:rN("Background image"),imageSrc:Qe("Image","image/*"),overlay:ae("Overlay",V$e(Y$e,{}),0,100,5,60,"%"),_gButton:rN("Button"),...bl,_gLayout:rN("Layout")}};import{jsx as D1}from"react/jsx-runtime";import{GroundIcon as Vfe,ListIcon as j$e}from"efficient-easel/icons";function Yfe(e){let t=e?.data?.root,o=Eee(t?.props)??"";return o&&XF(o,"text").length?o:""}var LD="outsideCardTemplate",q$e={not:{context:LD,is:!0}},$a={[LD]:(e,t)=>{let o=hp(t.appState,e.props?.id);if(o!==void 0)return o===null&&!Yfe(t.appState)},[Aj]:(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 Kr(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?D1(da,{noun:"link"}):t==="colour"?D1(Vfe,{}):D1(j$e,{}),a={...le(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return at(a,q$e)}function Nc(){return Kr("Link from","link")}var X$e={any:[{field:Go,set:!1},{context:LD,is:!0,default:!0}]};function Ju(e){return at(e,X$e)}function M1(e){return e.kind==="link"?kr(J(e.label)):e.kind==="colour"?Z$e(e.label):e.multiline?je(e.label):xe(e.label)}function Z$e(e){return{type:"custom",render:({value:t,onChange:o})=>D1(Cne,{label:e,icon:D1(Vfe,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function J$e(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var Kfe=new WeakMap;function Ka(e,t,o){let n=Object.keys(e).filter(k=>J$e(e[k]));if(!n.length)return e;let r=t.props??{},a=hp(o.appState,r.id),i=typeof a?.type=="string"?a.type:"",s=a?q4(o.appState,r.id)??"":"",l=n.map(k=>typeof r[k]=="string"?r[k].trim():""),d=dt(a?.props),c=i===Br?hp(o.appState,a?.props?.id):null,p=c?q4(o.appState,a?.props?.id)??void 0:void 0,m=c?FE(a?.props,c.type,p):"",f=c?dt(c.props):"",g=c?`${String(c.type??"")}\0${f}\0${p??""}`:"",h=i===Br&&!c?JSON.stringify(a?.props?.[Pq]??null):"",w=a?"":Yfe(o.appState),b=[i,s,d,m,g,h,gE(),w,wee(),...l].join("\0"),y=Kfe.get(e);y||Kfe.set(e,y=new Map);let x=y.get(b);if(x)return x;let v={...e};return n.forEach((k,S)=>{let P=e[k],E=i===Br?ih(o.appState,a,P.cardRowKind):i?Oq(a,P.cardRowKind,s||void 0):XF(w,P.cardRowKind),C=P.cardRowKind==="link"&&!!i&&!E.length;if(!l[S]&&(C||(P.cardRowContent?!i||!E.length:!E.length&&!i&&w))){delete v[k];return}let T=l[S]&&!E.some(L=>L.key===l[S])?l[S]:"",R=P.cardRowKind==="list",H=(L,N)=>R&&N===0&&L.key!==l[S]?"":L.key;v[k]={...P,options:[...R?[]:P.options,...E.map((L,N)=>({label:L.label,value:H(L,N)})),...T?[{label:T,value:T}]:[]]}}),y.set(b,v),v}import{group as qfe}from"efficient-easel/screen/lib/document/box-fields";var aN={meta:"Trailing note"},jfe={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var Xfe={fields:{_gContent:qfe("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:J("Label"),href:kr(J("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:U("Trailing note",aN.meta),_gText:qfe("Text"),rowField:Kr("Shows","text")},resolveFields:(e,t)=>Ka(t.fields,e,t),showWhenFacts:$a};import{jsx as fi,jsxs as iKe}from"react/jsx-runtime";import{ButtonIcon as sKe,ButtonIconIcon as lKe,IconAfterTextIcon as dKe,IconBeforeTextIcon as cKe}from"efficient-easel/icons";import{SettingsField as pKe}from"efficient-easel/panel";import{useSelectedFields as nhe}from"efficient-easel/easel";import{buttonFieldSet as mKe}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as uKe}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as fKe,Segmented as hKe}from"efficient-shell/ui";function iN(e){return typeof e=="boolean"?e:!0}import{parseOption as Q$e}from"efficient-shell/format";var ID=["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"],eKe=["before","after","end"];function FD(e){return typeof e=="string"&&ID.includes(e)?e:void 0}function Zfe(e,t){return FD(e)??(iN(t)?"arrow-right":"none")}function z1(e){return Q$e(eKe,"after",e)}function Jfe(e,t){return z1(e)==="end"&&rg(t)==="fill"}function rg(e){return e==="fill"||e==="fixed"?"fill":"fit"}function Qfe(e,t,o,{atSectionLine:n=!1}={}){let r=rg(e);if(xr(o)){let i=rg(o),s=xr(t)?rg(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(xr(t)){let i=rg(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as dN}from"efficient-easel/screen/lib/document/style-fields";import{group as ehe}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as gKe}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as BD}from"react/jsx-runtime";import{LockIcon as tKe}from"efficient-easel/icons";import{FieldText as oKe}from"efficient-easel/fields";import{SettingsField as nKe}from"efficient-easel/panel";import{keptByRow as rKe}from"efficient-easel/screen/lib/document/style-fields";function aKe(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??Ioe}-words`;return BD(nKe,{label:u("Words"),icon:BD(tKe,{}),htmlFor:o,children:BD(oKe,{id:o,value:u("Set by country"),onChange:()=>{},readOnly:!0})})}}}function sN(e){return rKe(e)}function lN(e,t,o,n=[]){return GC(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?aKe():a]))}var HD=e=>LC(e==="none"?"no-symbol":e),bKe=ID.map(e=>({value:e,icon:e==="none"?roe(HD(e),fi(t6,{value:e})):HD(e)})),rhe=J("Button");function wKe({value:e,onChange:t}){let o=nhe(),n=o.values.href,r=typeof e=="string"?e:e&&typeof e=="object"&&"text"in e?String(e.text??""):"";return o.fields&&"href"in o.fields?fi(Uoe,{label:"Button",icon:fi(sKe,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):rhe.render({value:r,field:{label:"Button"},onChange:a=>t(cne(a))})}function xKe({value:e,onChange:t}){let o=nhe(),n=Zfe(e,o.values.arrow),r=z1(o.values.iconPosition),a=rg(o.values.widthFit)==="fill",i=HD("icon-at-end");return fi(pKe,{label:u("Icon"),icon:fi(lKe,{size:18}),value:n==="none"?void 0:fi(t6,{value:n}),children:iKe("div",{className:"flex items-center gap-2",children:[fi(fKe,{label:u("Icon"),value:n,options:bKe,onChange:t}),n!=="none"&&fi(hKe,{size:"sm",block:!0,label:u("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:fi(cKe,{size:16}),label:fi("span",{className:"sr-only",children:u("Icon before text")}),title:u("Icon before text")},{value:"after",icon:fi(dKe,{size:16}),label:fi("span",{className:"sr-only",children:u("Icon after text")}),title:u("Icon after text")},...a?[{value:"end",icon:i,label:fi("span",{className:"sr-only",children:u("Icon at the far end")}),title:u("Icon at the far end")}]:[]]})]})})}var the=()=>Q4(jn().theme),ohe=mKe({lengthUnits:RC,follows:{useFill:()=>the().fill,useText:()=>the().ink,useBorder:()=>{let[e]=ic("variant"),[t]=ic("buttonColor"),{theme:o}=jn(),n=p6({variant:e,buttonColor:t}).border.width,r=xr(t)??(e==="ghost"?Gq(o).text:Q4(o).fill);return{width:n,color:r}},useCorners:()=>qq(jn().cornerRadiusPx),useFillOpacity:()=>p6({variant:ic("variant")[0]}).fillOpacity},usePresets:boe,resetTo:e=>pne(e,u("Styles")),padding:{fallback:$oe,tablet:!0},phone:uKe,say:fb});function yKe(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var ahe={fields:{label:une(rhe,e=>fi(wKe,{value:e.value,onChange:e.onChange})),labelText:xne("label"),href:Ju({...Ve("Button link"),...dN("label")}),consentWords:sN("label"),_gButton:ehe("Button"),rowField:Kr("Shows","text"),[Go]:Nc(),...yKe(ohe,gKe.Design),_gStyle:ehe("Style"),variant:dN("buttonColor"),icon:{type:"custom",render:e=>fi(xKe,{value:e.value,onChange:e.onChange})},iconPosition:dN("icon"),arrow:dN("icon"),...ohe},resolveFields:(e,t)=>lN(Ka(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:$a};import{jsx as W1}from"react/jsx-runtime";import{AccentIcon as vKe,ColumnsIcon as dhe,StylesIcon as che}from"efficient-easel/icons";import{group as DD}from"efficient-easel/screen/lib/document/box-fields";import{newId as she}from"efficient-easel/data";function cN(e,{rows:t="items",label:o="title"}={}){let n=dt(e);return n?fp(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(on(r),a)}))}var ihe=new WeakMap;function pN(e,t){let o=ihe.get(e);o||ihe.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 lhe(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>she(t),enumerable:!0})}function mN(e,t="items"){if(!Array.isArray(e[t])||dt(e))return e;let o=e[t],n=typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",r=c=>c&&typeof c=="object"&&typeof c.key=="string"?c.key:"",a=!!n&&!o.some(c=>r(c)===n),i=new Set,s=e.highlightedCard,l=!1,d=o.map((c,p)=>{if(!c||typeof c!="object")return c;let m=r(c);if(m&&!i.has(m))return i.add(m),c;let f=!m&&a&&n===String(p+1);if(m||f){let g=she("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 kKe}from"efficient-easel/data";var SKe=e=>kKe(e.template)&&e.template.length>0;function TKe(e,t){let o=SKe(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,pN(r,cN(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,CKe(r)]]:[[n,r]]))}var EKe=Object.fromEntries(Av("Cards").filter(e=>!e.everySource).map(e=>[e.key,M1(e)])),PKe=Object.fromEntries(Av("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,M1(e)])),phe=new WeakMap;function CKe(e){let t=phe.get(e);return t||phe.set(e,t={...e,arrayFields:EKe}),t}var mhe={fields:{_gSource:DD("Source"),dataSource:eo("Card content","Manual"),[Ab]:Lb(),_gContent:DD("Content"),eyebrow:U("Eyebrow",J0.eyebrow),eyebrowLook:le("Eyebrow style",W1(che,{}),[...Xs],vp("Cards")),title:q("Heading",J0.title),items:{type:"array",label:"Cards",arrayFields:PKe,defaultItemProps:lhe({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...gJ,highlightedCard:le("Highlighted card",W1(vKe,{}),[{label:"None",value:""}],""),highlightBadge:U("Highlight badge","Most popular"),_gStyle:DD("Style"),cardStyle:io("Card style",W1(che,{}),[{label:"Cards",value:"cards",picture:m6.cards},{label:"Label only",value:"label-only",picture:m6["label-only"]}],"cards",{columns:2,cell:vr}),columns:ae("Columns",W1(dhe,{}),2,4,1,3),fillLastRow:te("Last card fills its row",!1,W1(dhe,{}),"When the last row is short, its last card widens to fill it.")},resolveData:(e,t)=>{let o=t?.lastData?.props,n=Qre(e.props,o),r=_E(n),a=r===e.props?e:{...e,props:r},i=a.props,s=mN(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=it(to("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,st.Cards.headRows),n=e.props,r=TKe(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:xe("Feature label"),href:kr(J("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:vp("KeyFeatures")}}:{}}}};import{jsx as _Ke}from"react/jsx-runtime";import{StickyIcon as RKe}from"efficient-easel/icons";import{group as uhe}from"efficient-easel/screen/lib/document/box-fields";var fhe={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:Zo(kr(J("Active tab","All"))),_gLinks:uhe("Links"),links:{type:"array",label:"Right links",arrayFields:{label:J("Label"),href:kr(J("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:uhe("Style"),sticky:te("Stick to top",!0,_Ke(RKe,{}))}};import{jsx as NKe}from"react/jsx-runtime";import{StylesIcon as OKe}from"efficient-easel/icons";import{group as hhe}from"efficient-easel/screen/lib/document/box-fields";var AKe=[...GQ],ghe={fields:Pi({_gContent:hhe("Content"),eyebrow:U("Chip label",cb.eyebrow),title:q("Heading",cb.title),body:q("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:xe("Label"),value:J("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:U("Caption","Illustrative example"),_gStyle:hhe("Style"),chartStyle:io("Chart style",NKe(OKe,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:qC.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:qC.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:qC.donut}],"bars",{columns:3,cell:vr}),valueSuffix:Zo(U("Value suffix","%"))},AKe,Aa)};import{jsx as qKe}from"react/jsx-runtime";import{group as XKe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as tt,Fragment as zD,jsxs as gd}from"react/jsx-runtime";import{useId as LKe,useState as IKe}from"react";import{InspectorUpLevel as U1}from"efficient-easel/chrome";import{useEasel as FKe}from"efficient-easel/easel";import{ListField as yhe}from"efficient-easel/fields";import{SettingsField as vhe}from"efficient-easel/panel";import{ClockIcon as bhe,ContrastIcon as BKe,GlobeIcon as HKe,LinkIcon as DKe,LocationIcon as MKe,PhoneIcon as zKe,SquareIcon as WKe,TypeIcon as WD}from"efficient-easel/icons";import{useSectionOps as UKe}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as GKe}from"efficient-easel/draw";var UD=(e,t)=>t||e?mae(e,t):u("Ungrouped");function $Ke(e){let t=[];return e.forEach((o,n)=>{let r=pu(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 MD({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 khe={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"},KKe={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},She={...KKe,color:"var(--status-danger-soft-ink)"};function om({label:e,value:t,placeholder:o,textarea:n,icon:r,onChange:a,onBlur:i,onKeyDown:s}){let l=LKe();return tt(vhe,{label:e,icon:r??tt(WD,{}),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 VKe=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],YKe=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function whe({label:e,icon:t,options:o,value:n,onChange:r}){return tt(vhe,{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 xhe({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||En.mapTheme,a=En;return gd(zD,{children:[!o&&tt(MD,{children:u("Section")}),tt(om,{label:u("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),tt(om,{label:u("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),tt(om,{label:u("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:gd(zD,{children:[tt(MD,{children:u("City strip")}),tt(om,{label:u("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),tt(om,{label:u("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),tt(whe,{label:u("Shape"),icon:tt(WKe,{}),options:YKe,value:VP(e.imageShape),onChange:i=>t({imageShape:i})}),tt(MD,{children:u("Map & Theme")}),tt(whe,{label:u("Map theme"),icon:tt(BKe,{}),options:VKe,value:r,onChange:i=>t({mapTheme:i})})]})]})}function jKe({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((f,g)=>pu(f)===t?g:-1).filter(f=>f>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(pu).filter(f=>f!==t)),[d,c]=IKe(t),p=f=>o(e.map(g=>pu(g)===t?{...g,...f}:g)),m=()=>{let f=d;if(f!==t){if(l.has(f)){c(t);return}o(e.map(g=>pu(g)===t?{...g,group:f}:g)),a(f)}};return gd("div",{className:"sf-locations-view",children:[tt(U1,{inline:!0,name:u("Section"),onSelect:n,title:UD(t,s)}),tt(om,{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(om,{label:u("Group name"),value:s,placeholder:u("Shown beside the heading"),onChange:f=>p({groupName:f})}),tt(yhe,{label:u("Cities in this group"),noun:u("city"),items:i.map(f=>e[f]),onChange:f=>o(uae(e,t,f)),newItem:()=>({...C6,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(f,g)=>gd("button",{type:"button",style:khe,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:She,onClick:()=>{o(e.filter(f=>pu(f)!==t)),n()},children:nr("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function The({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=pae(),r=ure(),a=$Ke(o),{appState:i,selectedItem:s}=FKe(h=>h),l=UKe(),d=s?.props??{},c=h=>{if(!s)return;let w=(i.data.content??[]).findIndex(b=>b.props.id===s.props.id);w<0||l.replaceComponent(GKe,w,{type:s.type,props:{...s.props,...h}})},p=(h,w)=>t(o.map((b,y)=>y===h?{...b,...w}:b)),m=()=>{let h=new Set(a.map(y=>y.key)),w=a.length+1,b=`Group ${w}`;for(;h.has(b);)b=`Group ${++w}`;return b};if(n.level==="texts")return gd("div",{className:"sf-locations-view",children:[tt(U1,{inline:!0,name:u("Locations"),onSelect:()=>nd({level:"groups"}),title:u("Texts")}),tt(xhe,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let h=o[n.index];return h?gd("div",{className:"sf-locations-view",children:[tt(U1,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>nd({level:"city",index:n.index}),title:u("Image")}),tt(koe,{value:h.photo||"",onChange:w=>p(n.index,{photo:w}),label:"Image",accept:"image/*"})]}):f()}if(n.level==="map"){let h=o[n.index];return h?gd("div",{className:"sf-locations-view",children:[tt(U1,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>nd({level:"city",index:n.index}),title:u("Map")}),tt(r_,{value:h.geocode,onChange:w=>p(n.index,{geocode:w}),label:"Coordinates"}),tt(om,{label:u("Directions link"),icon:tt(DKe,{}),value:String(h.mapsUrl??""),onChange:w=>p(n.index,{mapsUrl:w})})]}):f()}if(n.level==="city"){let h=n.index,w=o[h];if(!w)return f();let b=pu(w),y=(v,k)=>p(h,{[v]:k}),x=(v,k,S,P=!1)=>tt(om,{label:k,icon:S,textarea:P,value:String(w[v]??""),onChange:E=>y(v,E)});return gd("div",{className:"sf-locations-view",children:[tt(U1,{inline:!0,name:UD(b,String(w.groupName??"")),onSelect:()=>nd({level:"group",key:b}),title:w.name||u("City")}),x("name",u("Location name"),tt(WD,{})),x("state",u("State / Province"),tt(WD,{})),x("country",u("Country"),tt(HKe,{})),x("address",u("Address"),tt(MKe,{}),!0),x("phone",u("Phone"),tt(zKe,{})),x("hours",u("Opening hours"),tt(bhe,{})),x("timezone",u("Timezone chip"),tt(bhe,{})),tt("div",{style:{marginTop:12},children:tt("button",{type:"button",style:She,onClick:()=>{t(o.filter((v,k)=>k!==h)),nd({level:"group",key:b})},children:u("Delete city")})})]})}if(n.level==="group")return a.some(h=>h.key===n.key)?tt(jKe,{cards:o,groupKey:n.key,onChange:t,onBack:()=>nd({level:"groups"}),onOpenCity:h=>nd({level:"city",index:h}),onNavigate:h=>nd({level:"group",key:h})},n.key):f();function f(){return gd("div",{className:"sf-locations-view",children:[tt(xhe,{props:d,setSection:c}),!r&&tt(zD,{children:g()})]})}function g(){return tt(yhe,{label:u("Locations"),noun:u("group"),items:a,onChange:h=>{let w=h.find(b=>!a.some(y=>y.key===b.key));t(fae(o,h.map(b=>b.key),b=>[{...C6,group:b,groupName:""}])),w&&nd({level:"group",key:w.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=>gd("button",{type:"button",style:khe,onClick:()=>nd({level:"group",key:h.key}),children:[tt("span",{style:{fontWeight:500},children:UD(h.key,h.name)}),gd("span",{style:{color:"var(--ink-faint)"},children:[nr("{n} city","{n} cities",h.indices.length)," \u203A"]})]})})}return f()}var Ehe={fields:{_gOffices:XKe("Offices"),dataSource:eo("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>qKe(The,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,o=t.locations??[];if(!FC(o))return e;let n=await BC(o,i=>{let s=YP(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(", ")}),{[fE]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>to("ContactLocations",t,e.props)};import{jsx as Phe}from"react/jsx-runtime";import{ClockIcon as ZKe,TagIcon as JKe}from"efficient-easel/icons";var QKe=[...qQ],Che={fields:Pi({title:U("Heading",RF.title),zeroText:Zo(U("At zero",RF.zeroText)),endsAt:Pne("Ends",Phe(ZKe,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:te("Unit labels",!0,Phe(JKe,{}))},QKe,Aa)};import{jsx as G1,jsxs as eVe}from"react/jsx-runtime";import{Suspense as tVe,lazy as oVe,useState as nVe}from"react";import{Button as rVe}from"efficient-shell/ui";import{CodeIcon as aVe}from"efficient-shell/icons/efficient";import{SettingsField as iVe}from"efficient-easel/panel";import{iconOf as sVe}from"efficient-easel/screen/lib/document/box-fields";var lVe=oVe(()=>import("./chunks/CustomHtmlCodeWindow-WDJYQRZA.js"));function dVe({value:e,onChange:t}){let[o,n]=nVe(!1);return eVe(iVe,{label:u("HTML"),icon:sVe(G1(aVe,{})),children:[G1(rVe,{variant:"secondary",onClick:()=>n(!0),children:u("Edit code")}),o?G1(tVe,{fallback:null,children:G1(lVe,{open:!0,onClose:()=>n(!1),value:typeof e=="string"?e:"",onChange:t})}):null]})}var _he={fields:{html:{type:"custom",label:"HTML",render:({value:e,onChange:t})=>G1(dVe,{value:e,onChange:t})}}};import{jsx as GD}from"react/jsx-runtime";import{StylesIcon as cVe,WeightIcon as pVe,WidthIcon as mVe}from"efficient-easel/icons";import{keptByRow as uVe}from"efficient-easel/screen/lib/document/style-fields";var fVe={any:[{field:"style",set:!1},{field:"style",is:Sh}]},hVe={not:{field:"style",is:"none"}},Rhe={fields:Fe({style:io("Style",GD(cVe,{}),Xoe.map(e=>({...e,picture:tne(e.value)})),Sh,{columns:3,cell:vr}),spacing:uVe("sectionPaddingTop"),thickness:ae("Thickness",GD(pVe,{}),1,8,1,1,m2),...od(m2,"thickness"),lengthPct:ae("Length",GD(mVe,{}),10,100,1,100,u2),...od(u2,"lengthPct")},[[["thickness"],fVe],[["lengthPct"],hVe]]),resolveFields:(e,{fields:t})=>{let o=YC[jC(e.props.spacing)],n=_p({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return g2(t,n)}};import{jsx as KD}from"react/jsx-runtime";import{HashIcon as gVe,StickyIcon as bVe,TargetIcon as wVe}from"efficient-easel/icons";import{group as Ohe,select as xVe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as ox}from"efficient-easel/screen/lib/document/device-fields";var $D={title:"On this page"},Nhe={label:"Contents",defaultProps:{title:$D.title,sticky:!0}};var Ahe={fields:{title:ox("desktop",U("Heading",$D.title)),_gList:ox("desktop",Ohe("List")),[u_]:ox("desktop",xVe("Number",KD(gVe,{}),RQ,NQ)),markCurrent:ox("desktop",te("Mark the current section",!1,KD(wVe,{}),"The row of the section a reader is in stands out as they scroll.")),_gStick:ox("desktop",Ohe(pF)),sticky:ox("desktop",te(pF,!0,KD(bVe,{})))}};import{group as yVe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as VD}from"efficient-easel/screen/lib/document/device-fields";var $1={hint:"Search questions",noMatchText:"No question matches your search."},Lhe={label:"List search",defaultProps:{hint:$1.hint,noMatchText:$1.noMatchText}};var Ihe={fields:{_gContent:VD("desktop",yVe("Content")),hint:VD("desktop",Zo(U("Hint",$1.hint))),noMatchText:VD("desktop",Zo(U("No match",$1.noMatchText)))}};import{group as Bhe}from"efficient-easel/screen/lib/document/box-fields";var uN={toc:"On this page"},Fhe={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var Hhe={fields:{_gContent:Bhe("Contents"),tocTitle:U("Contents heading",uN.toc),_gSections:Bhe("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:xe("Contents label"),heading:xe("Title"),body:je("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as Dhe}from"efficient-easel/screen/lib/document/box-fields";var Mhe={fields:{_gContent:Dhe("Content"),eyebrow:U("Eyebrow",Qm.eyebrow),title:q("Heading",Qm.title),deck:q("Deck / standfirst",Qm.deck),_gMeta:Dhe("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:xe("Label"),value:xe("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var fN=[{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."}],zhe={label:"Document Detail Cards",defaultProps:{cards:[]}};var Whe={fields:{cards:kb({type:"array",label:"Cards",arrayFields:{label:xe("Label"),value:xe("Value"),desc:je("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},fN)}};import{jsx as vVe}from"react/jsx-runtime";import{PageIcon as kVe}from"efficient-easel/icons";import{group as SVe}from"efficient-easel/screen/lib/document/box-fields";var nx={metaLabel:W.label,metaValue:W.value},Uhe={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var Ghe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:J("Tab label"),href:Ve("Links to"),current:te("Current page",!1,vVe(kVe,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:SVe("Trailing note"),metaLabel:U("Note label",nx.metaLabel),metaValue:U("Note value",nx.metaValue)}};import{jsx as TVe}from"react/jsx-runtime";import{StylesIcon as EVe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as PVe}from"efficient-easel/screen/lib/document/box-fields";var $he={fields:{eyebrow:U("Eyebrow",W.eyebrow),...rl("align",{access:PVe}),eyebrowLook:le("Look",TVe(EVe,{}),Xs,OP)}};import{jsx as Vhe}from"react/jsx-runtime";import{ChevronIcon as CVe,LinkIcon as _Ve}from"efficient-easel/icons";import{group as jD}from"efficient-easel/screen/lib/document/box-fields";var Qu={num:W.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},YD=Vn.FAQ,Khe={label:"Q&A",inline:!0,fields:YD,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var Yhe="faqOnTemplate",RVe={not:{context:Yhe,is:!0}},NVe={[Yhe]:e=>lJ("FAQ",e.props??{})},OVe=new Set([GX,...$X]);function AVe(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||OVe.has(t))}var jhe={fields:{_gContent:jD("Content"),num:U("Number",Qu.num),title:q("Heading",Qu.title),linkText:U("Button",Qu.link),linkHref:Ve("Link"),_gQuestions:jD("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:xe("Question"),answer:je("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:jD("Layout"),defaultOpen:te("Open first answer",!0,Vhe(CVe,{})),openFromLink:te("Open from a link",!1,Vhe(_Ve,{}),"A link to a question opens its answer. Each question gets an anchor made from its words, after the section's Anchor."),...YD},resolveFields:(e,{fields:t})=>{let o=it(t,e.props.headPlacement,st.FAQ.headRows);return Pi(o,AVe(o),RVe)},showWhenFacts:NVe};import{jsx as Gi,Fragment as hN,jsxs as IVe}from"react/jsx-runtime";import{useContext as FVe}from"react";import{SettingsField as Jhe}from"efficient-easel/panel";import{FieldSelect as Qhe}from"efficient-easel/fields";import{BlogPostIcon as ege}from"efficient-easel/icons";import{ScreenDocumentContext as BVe}from"efficient-easel/screen/components/ScreenDocumentContext";var qhe=Iw({fetch:async(e,t)=>await Vd().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:In});import{useEffect as Xhe,useRef as LVe,useState as qD}from"react";function ag(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function rx({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=qD(null),[s,l]=qD(!1),[d,c]=qD(!1),p=LVe(!0);return Xhe(()=>(p.current=!0,e().then(m=>{p.current&&i(m)}),()=>{p.current=!1}),[]),Xhe(()=>{if(!n?.slug||a===null)return;let m=t(a,n);if(!m)return;let f=o(m);ag(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 Zhe(e,t){return{label:t?u("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function ax({value:e,onChange:t}){let o=FVe(BVe);return o&&!o.capabilities.hasBlog?e?.slug?Gi(HVe,{value:e,onChange:t}):Gi(hN,{}):Gi(DVe,{value:e,onChange:t})}function HVe({value:e,onChange:t}){return Gi("div",{children:Gi(Jhe,{label:u("Blog post source"),icon:Gi(ege,{}),hint:Gi(hN,{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:Gi(Qhe,{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 DVe({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=rx({load:qhe,resolve:(m,f)=>m.find(g=>g.slug===f.slug),snapshot:H2,value:e,onChange:t}),s=m=>{if(!m){t(null);return}let f=(o??[]).find(g=>g.slug===m);f&&t(H2(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 IVe("div",{children:[Gi(Jhe,{label:u("Blog post source"),icon:Gi(ege,{}),hint:e?.slug?void 0:Gi(hN,{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:Gi(Qhe,{value:e?.slug??"",ariaLabel:u("Blog post source"),onChange:s,readOnly:n,options:[{label:u("None (manual)"),value:""},...l?[Zhe({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(m=>({label:m.title,value:m.slug}))]})}),e?.slug?Gi(il,{status:d,statusText:p,onRefresh:i,busy:r,hint:Gi(hN,{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 MVe}from"efficient-easel/screen/lib/document/box-fields";var Vr={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:Qd.href},tge={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var zVe=["image","imageDate","date","title","dek","ctaHref"],oge={fields:Pi({source:Mo(ax),_nBound:at(sl(QC),e_),image:Qe("Cover image","image/*"),badge:U("Badge",Vr.badge),imageDate:U("Image date",Vr.imageDate),_gContent:MVe("Content"),category:U("Category",Vr.category),readLabel:U("Read time",Vr.readLabel),date:U("Date",Vr.date),title:q("Heading",Vr.title),dek:q("Dek",Vr.dek),ctaText:U("Button",Vr.ctaText),ctaHref:Ve("Link")},zVe,Tb)};import{jsx as dr}from"react/jsx-runtime";import{phoneKey as Cr,tabletKey as wa}from"efficient-easel/draw";import{keptByRow as GYe}from"efficient-easel/screen/lib/document/style-fields";import{jsx as nge}from"react/jsx-runtime";import{OpacityIcon as WVe,StylesIcon as UVe}from"efficient-easel/icons";function ix(){return{darken:ae("Darken",nge(WVe,{}),Ql.min,Ql.max,Ql.step,Ql.fallback,Ql.unit),darkenStyle:le("Darken style",nge(UVe,{}),Mv,Mv[0].value)}}var GVe={"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]"},$Ve=`calc(${fX} - ${tF}*2)`,rge=`var(${hX},${tF})`,V$t=`pointer-events-none absolute inset-y-0 left-[${rge}] right-[${rge}] z-[6] mx-auto max-w-[var(${gX},${$Ve.replace(/ /g,"_")})]`;function gN(e,t){return`pointer-events-auto absolute ${GVe[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function age(e){return nP.includes(e)?e:null}import{parseOption as XD}from"efficient-shell/format";var KVe=nP,ZD="top-right",VVe=["cards","dots","numbers","bar","squares","tabs","largeTabs"],JD=["cards","dots","numbers","bar","squares"],bN="cards",wN={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},xN=["tabs","largeTabs"],ige=!0;function yN(e){return XD(VVe,bN,e)}function sge(e){return XD(JD,bN,e)}function YVe(e){return XD(KVe,ZD,e)}var lge={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 dge(e,t){return gN(YVe(t),lge[yN(e)])}function cge(e){return`flex ${lge[yN(e)]}`}function pge(e){return e.shown!==!1&&(e.count??0)>1}function jVe(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function qVe(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 mge(e,t){let o=Array.from(t,jVe);return qVe(e,o)?e:o}import{deviceField as bd}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as $Ye,ClockIcon as KYe,CropIcon as qge,GapIcon as VYe,MediaLayoutStackedIcon as a0e,LineBetweenIcon as YYe,LineSolidIcon as jYe,ListIcon as qYe,NumberedListIcon as Xge,ShadowIcon as XYe,StylesIcon as Zge,TableIcon as Jge,TargetIcon as ZYe,WrapIcon as i0e}from"efficient-easel/icons";var sg=aP.map(e=>e.shape),eM=e=>e!==Ys&&sg.includes(String(e??""))?e:null;function ig(e){return eM(e)??(Wm(e)?Ys:"auto")}function vN(e){let t=ig(e);return t==="auto"?"":$0(t)}function uge(e,t,o){return RX({desktop:e,phone:QD(t)!==null?t:o,tablet:o})}var XVe={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)]"},ZVe={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 JVe(e,t){let o=ig(t);return o==="auto"&&eM(t)===null?null:o===Ys?t===e?null:o:o===ig(e)?null:o}var QVe={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 QD(e){let t=ig(e);return t==="auto"&&eM(e)===null?null:t}function fge(e,t,o){let n=QD(o),r=JVe(e,QD(t)!==null?t:o);if(r===null&&n===null)return vN(e);let a=ig(e);return[r===null?vN(e):a==="auto"?"":XVe[a],r===null?"":ZVe[r],n===null?"":QVe[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as s0e,VIEW_KEY_ACCESS as Oc,group as dg,phoneTwinFields as Ac}from"efficient-easel/screen/lib/document/box-fields";var eYe={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},tYe=_v.map(e=>({value:e.value,picture:LC(eYe[e.value])}));function kN(e,t){return io("Separator",e,tYe,t,{resolve:Uj})}import{jsx as oYe}from"react/jsx-runtime";import{cloneElement as nYe}from"react";import{PaddingXIcon as rYe}from"efficient-easel/icons";import{deviceField as aYe}from"efficient-easel/screen/lib/document/device-fields";function hge(){let e=le(wre,oYe(rYe,{}),DZ,MZ);return aYe("desktop",{...e,render:t=>{let o=e.render({...t,value:kP(t.value),onChange:n=>t.onChange(WZ(n))});return nYe(o,{hint:u(zZ)})}})}import{newNodeId as tM}from"efficient-easel/draw";var gge=["First row","Second row","Third row"],iYe="Write the words for this row.",bge=e=>({type:"Text",props:{...We,id:tM("Text"),tag:"p",text:e}}),sYe=(e,t)=>({type:ce,props:{...Me,id:tM(ce),...t?{startsOpen:!0}:{},rowTitle:[bge(e)],content:[{type:"Text",props:{...Et,id:tM("Text"),tag:"p",text:iYe}}]}}),lYe=e=>!Array.isArray(e)||e.length===0;function wge(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:gge.map((r,a)=>sYe(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==ce||!lYe(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(gge[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[bge(i)]}}});return o?{...e,content:n}:e}import{parseOption as dYe}from"efficient-shell/format";var K1="rowStyle",cYe=["plain","numbered","chevron"],xge=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function yge(e){return dYe(cYe,"plain",e)}var SN="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",TN="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",EN="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",vge="border-t border-line",kge="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",Sge="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as pYe}from"efficient-easel/screen/lib/content/view-tiers";var PN=Vn.Flex,Tge={label:"Box",fields:PN,phoneOrder:{prop:pYe("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 Ege}from"react/jsx-runtime";import{isNode as mYe}from"efficient-easel/data";import{useEasel as uYe}from"efficient-easel/easel";import{PhoneOrderField as fYe}from"efficient-easel/fields";import{slotChildRowName as hYe}from"efficient-easel/draw";import{deviceField as gYe}from"efficient-easel/screen/lib/document/device-fields";function bYe(){try{let e=uYe(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!mYe(a)||typeof t[a.type]?.render!="function"?!1:xr(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 wYe({value:e,onChange:t,readOnly:o}){let n=bYe();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return Ege(fYe,{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=>hYe(r[s],i,ko,void 0,zne)})}function Pge(){return gYe("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>Ege(wYe,{value:e,onChange:t,readOnly:o})})}import{jsx as q1}from"react/jsx-runtime";import{SettingsDefaultReset as RYe,SettingsField as NYe}from"efficient-easel/panel";import{Segmented as OYe}from"efficient-shell/ui";import{SwapIcon as AYe}from"efficient-easel/icons";import{describedAs as LYe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as IYe}from"efficient-easel/screen/lib/document/device-fields";var V1="Mirror cards",Y1="off",oM=[{value:Y1,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],Cge={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function ef(e){return e==="even"||e==="odd"?e:null}function _ge(e){return ef(e)??void 0}function j1(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function lg(e,t,o){return!t||e.direction!=="row"||o||Im("row",e.separator)||e.loop==="scroll"||e.line===!0||is(e)||G4(e.columns)!==""||Qj(e.columnsTablet)!==""?!1:!(as(e.share)===""&&A0(e.wrap)!=="")}function Rge(e,t){let o=ef(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var Nge="view-wide:flex-row-reverse",xYe={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},yYe={left:"view-wide:text-right!",right:"view-wide:text-left!"},vYe={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},kYe={start:"view-wide:items-end!",end:"view-wide:items-start!"},SYe={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!"},CN=(e,t)=>(typeof t=="string"?zs(e,t):void 0)??"";function nM(e,t,o){return e?[CN(xYe,t),CN(yYe,o)].filter(Boolean).join(" "):""}function Oge(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=Vj(o,r,void 0).tablet;return[CN(vYe,o),a?SYe[a]:""].filter(Boolean).join(" ")}return t==="column"?CN(kYe,n):""}function rM(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||is(e)?!1:G4(e.columns)===""}function _N(e,t){let o=ef(e.mirrorCards);return o&&rM(e,t)?{mirror:o}:null}import{isNodeList as Dge}from"efficient-easel/data";import{parseOption as Age}from"efficient-shell/format";var TYe=["columns","rows-left","rows-right"],EYe=["half","third"],Lge=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],Ige=[{value:"half",label:"Half"},{value:"third",label:"One third"}],Fge=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function PYe(e){return Age(TYe,"columns",e)}var CYe={"rows-left":"even","rows-right":"odd"},_Ye={half:"equal",third:"bigRight"};function RN(e){let t=PYe(e?.arrangement);if(t==="columns")return null;let o=Age(EYe,"half",e?.imageWidth);return{mirror:CYe[t],row:{share:_Ye[o],phoneReverse:e?.phoneOrder==="words"}}}var Bge={ProcessSteps:{slot:"boxes",hand:RN}},Hge=(e,t,o)=>Dge(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function sx(e,t){let o=bC(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===ce&&Hge(o,_e,t)){let s=Zl(e,o.props?.id)?.inCopy===!0;return _N(qs(o.props??{},s),s)}let i=zs(Bge,a);if(i&&Hge(o,i.slot,t))return i.hand(o.props??{})}let n=HE(e,t),r=n&&typeof n.type=="string"?zs(Bge,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function Mge(e){let t=e?.[_e];return Dge(t)&&t.some(o=>o?.type===ce)}var zge="mirrorCardsIdle",aM="mirrorCardsMirrors",Wge={[aM]:(e,t)=>{let o=Zl(t.appState,e.props?.id);if(o===void 0)return;let n=qs(e.props??{},o.inCopy),r=sx(t.appState,e.props?.id);if(r){let a=r.row?{...n,direction:"row",share:r.row.share}:n;return r.mirror!==null&&lg(a,!0,Wp(a).desktop)}return lg(n,j1(o),Wp(n).desktop)&&ef(n.mirrorCards)!==null},[zge]:(e,t)=>{let o=Zl(t.appState,e.props?.id);if(o===void 0)return;let n=qs(e.props??{},o.inCopy);return sx(t.appState,e.props?.id)?!0:lg(n,j1(o),Wp(n).desktop)?!1:!(rM(n,o.inCopy)&&Mge(n))}};function FYe(e=!1){return oM.map(t=>({value:t.value,label:u(t.label),title:t.value===Y1?void 0:u(Cge[t.value]),disabled:e}))}function BYe({value:e,onChange:t,readOnly:o}){let n=ef(e)??Y1;return q1(NYe,{label:u(V1),icon:q1(AYe,{}),action:q1(RYe,{words:qE()?.panel,label:u(V1),changed:n!==Y1,detail:u("Off"),onReset:()=>t(void 0)}),children:q1(OYe,{size:"sm",block:!0,label:u(V1),value:n,onChange:r=>t(_ge(r)),options:FYe(o===!0)})})}function Uge(){return at(IYe("desktop",{type:"custom",...LYe({},{type:"radio",label:V1,options:oM.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>q1(BYe,{value:e,onChange:t,readOnly:o})}),{not:{context:zge,is:!0}})}import{jsx as HYe}from"react/jsx-runtime";import{FilterIcon as DYe}from"efficient-easel/icons";import{deviceField as MYe}from"efficient-easel/screen/lib/document/device-fields";var Kge="showForUnoffered",Vge={[Kge]:e=>SC().length===0&&i2(e.props?.[a2])===void 0},zYe="Show for",WYe="All";function UYe(e,t){if(!e)return;let o=SC().find(r=>r.slug===e);if(o)return{slug:o.slug,name:o.name};let n=i2(t);return n?.slug===e?n:void 0}function Yge(){let e=le(zYe,HYe(DYe,{}),[{label:WYe,value:""}],"");return at(MYe("desktop",{...e,render:t=>e.render({...t,value:i2(t.value)?.slug??"",onChange:o=>t.onChange(UYe(o,t.value))})}),{not:{context:Kge,is:!0}})}var Gge=new WeakMap;function jge(e,t){let o=e[a2];if(!o)return e;let n=SC(),r=i2(t?.[a2]),a=r&&!n.some(p=>p.slug===r.slug)?r:void 0,i=Gge.get(o);i||Gge.set(o,i=new Map);let s=`${Ute()}\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=$ge.get(e);d||$ge.set(e,d=new Map);let c=d.get(s);return c||d.set(s,c={...e,[a2]:l}),c}var $ge=new WeakMap;var Qge=Lj,e0e={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},JYe={field:"direction",is:"tabs"},QYe={field:"line",in:[!0,!1]},eje={field:"anchor",set:!0},iM=["fixed","screen","fill"],tje={not:{any:[{field:"sectionHeightMode",in:iM},{field:"sectionHeightModeTablet",in:iM},{field:"sectionHeightModePhone",in:iM}]}},oje={context:"parent.line",is:!0},cg={not:{field:"direction",is:"accordion"}},t0e={field:"direction",is:"accordion"},o0e={any:[cg,{not:{field:K1,in:["numbered","chevron"]}},{field:"columns",in:[...eq]},{field:"phoneRow",in:[...tq]}]},l0e="notAccordionRow",nje={not:{context:l0e,is:!0}},rje={[l0e]:(e,t)=>t.parent?.props?.direction!=="accordion"},lM={field:"direction",is:"row",default:"row"},pg={not:nX},fg={all:[lM,pg,{not:{field:"separator",in:_v.map(e=>e.value)}},{not:{field:"line",is:!0}}]},aje={field:"direction",is:"column"},d0e={all:[fg,...["columns",wa("columns")].map(e=>({not:{field:e,in:Array.from({length:CE},(t,o)=>o+PE)}}))]},ije={all:[pg,{not:{all:[lM,{field:"separator",in:_v.map(e=>e.value)}]}}]},sM={not:{all:[fg,{field:"columns",in:Array.from({length:CE},(e,t)=>t+PE)}]}},sje="sharedColumnsFits",c0e="sharedColumnsMisfit",p0e="sharedColumnsDraws",m0e="sharedColumnsPhoneDraws";function ug(e,t){return qs(e.props??{},Zl(t.appState,e.props?.id)?.inCopy!==!1)}var lje={[sje]:(e,t)=>HR(ug(e,t)),[c0e]:(e,t)=>!HR(ug(e,t)),[p0e]:(e,t)=>Wp(ug(e,t)).desktop,[m0e]:(e,t)=>Wp(ug(e,t)).phone};function n0e(e){return{all:[{not:{context:c0e,is:!0}},{any:[g6,{field:e,set:!0}]}]}}var mg={not:{context:p0e,is:!0}},lx={not:{context:m0e,is:!0}},u0e="sharedRowsDraws",dje={[u0e]:(e,t)=>DR(ug(e,t))&&sx(t.appState,e.props?.id)?.row===void 0},X1={not:{context:u0e,is:!0}},cje={any:[mg,lx]},dM=Fj,pje={not:{context:aM,is:!0}},f0e="rowHanded",mje={not:{context:f0e,is:!0}},uje={[f0e]:(e,t)=>{let o=sx(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},r0e={all:[cg,dM,mg,lx,pje]},fje={field:"direction",is:"row"},hje={field:"align",in:["start","center","end"]},gje={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function bje(){let{darken:e,darkenStyle:t}=ix();return{...Ac("darken",e,Oc),...Ac("darkenStyle",t,Oc)}}var h0e={not:{all:[fg,{field:wa("columns"),in:Array.from({length:CE},(e,t)=>t+PE)}]}};function wje(){let e=te(s0e,!1,dr(i0e,{})),t=o=>{let n=U4(o);return n===void 0?void 0:n==="wrap"};return{...yh(),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 xje(){let e=te(s0e,!0,dr(i0e,{})),t=o=>{let n=U4(o);return n===void 0?void 0:n==="wrap"};return{...yh(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!oq(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var g0e={hint:jm},b0e={all:[dM,{any:[aje,{all:[fg,h0e,{not:{all:[d0e,{field:wa("share"),set:!0}]}}]}]}]},yje=at(bd("desktop",ae("Narrows below",dr(a0e,{}),uh.min,uh.max,uh.step,jm,{kind:"breakpoint"},{clear:g0e,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),b0e);function vje(e,t){let o=e;return!(fh in o)||t.direction!=="column"?e:{...o,[fh]:yje}}var w0e={fields:Fe({_gContent:dg("Content"),rowTitle:PN.rowTitle,content:PN.content,_gCardDisplay:dg("Display"),cardDisplay:a_("desktop"),cardDisplayTablet:a_("tablet"),cardDisplayPhone:a_("mobile"),showFor:Yge(),_gLayout:dg("Layout"),direction:JC("Flex"),tabShape:io("Tab shape",dr(Zge,{}),xN.map(e=>({label:wN[e],value:e,picture:one[e]})),"tabs",{columns:2,cell:vr}),mirrorCards:Uge(),[fh]:bd("desktop",ae("Stacks below",dr(a0e,{}),uh.min,uh.max,uh.step,jm,{kind:"breakpoint"},{clear:g0e,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[Wv]:hge(),startsOpen:bd("desktop",te("Starts open",!1,dr($Ye,{}))),[K1]:bd("desktop",io("Row style",dr(Xge,{}),xge.map(e=>({...e,picture:e.value==="numbered"?dr(Xge,{}):dr(qYe,{})})),"plain",{columns:2})),label:Zo(J("Tab name")),...li("Flex"),...Ac("justify",OC(),Oc),...Ac("align",AC(),Oc),...(()=>{let e=Ac("wrap",yh(),Oc,{phoneRow:xje()}),t=Ac("wrap",yh(),Oc,{phoneRow:wje()});return{wrap:t.wrap,[wa("wrap")]:t[wa("wrap")],[Cr("wrap")]:e[Cr("wrap")]}})(),[Cr("order")]:Pge(),...Ac("boxShape",Bw("Box shape",dr(qge,{}),K0(sg),"shape","auto"),Oc,{phoneRow:Bw("Box shape",dr(qge,{}),K0(sg),"shape","auto",{phoneRest:e=>ig(e)})}),[wE]:bd("desktop",ooe(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:kN(dr(YYe,{size:18}),"none"),[nb]:bd("desktop",io("Card style",dr(Zge,{}),UJ.map(e=>({...e,picture:rne[e.value]})),"table",{columns:2,cell:vr})),share:bd("desktop",yne()),[wa("share")]:Sne(),[Cr("share")]:kne(),[zp]:bd("desktop",le(iH,dr(Jge,{}),[...sce],Z2)),[Cr(zp)]:bd("mobile",le(iH,dr(Jge,{}),[...lce],Z2)),...Tne(),...Ac("blockSpacing",vne(),Oc),line:te("Line",!1,dr(jYe,{}),"A line across the blocks, with a dot on each."),upcoming:te("Upcoming",!1,dr(KYe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:le("Join",dr(VYe,{}),zP,MP),_gShadow:dg("Shadow"),...Ac("shadow",te("Shadow",!1,dr(XYe,{})),Oc),...Ac("fillColor",_ne(),Oc),[Fa]:Kr("Fill content","colour"),[wP]:GYe("fillColor"),_gBackground:dg("Background image"),bgImage:bd("desktop",Qe("Image","image/*")),bgImagePhone:bd("mobile",Qe("Image","image/*")),[or]:Kr("Image content","image",{content:!0}),...bje(),placement:td("Content position"),_gLink:dg("Link"),link:Ju(Ve("Link to")),[Go]:Nc(),_gJump:dg("Anchor"),jumpHighlight:te("Highlight when a link jumps here",!1,dr(ZYe,{}),"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"],Qge],[[Cr("share")],{all:[e0e,lx]}],[[zp],n0e(zp)],[[Cr(zp)],n0e(Cr(zp))],[[Cr("wrap")],{all:[e0e,pg,lx,X1]}],[[Cr("order")],{all:[fg,lx,mg]}],[["phoneRow"],lx],[[K1],{all:[t0e,{not:{field:K1,is:"chevron"}}]}],[["tabShape"],JYe],[["rowTitle","startsOpen"],nje],[["align","blockSpacing",wa("blockSpacing"),Cr("blockSpacing")],cg],[[wa("justify"),Cr("justify")],{all:[pg,r0e,X1]}],[[wa("align"),Cr("align")],{all:[fje,hje,r0e]}],[[wa("wrap")],{all:[pg,sM,h0e,mg,cg,X1]}],[[wa("shadow"),Cr("shadow")],dM],[[wa("darken"),Cr("darken"),wa("darkenStyle"),Cr("darkenStyle")],{all:[Qge,gje]}],[["separator"],lM],[[nb],{field:nb,set:!0}],[["columns"],{any:[fg,t0e]}],[[wa("columns")],fg],[[fh],b0e],[[wa("gap")],{all:[ije,o0e]}],[["gap",Cr("gap")],o0e],[["justify"],{all:[pg,cje,cg,X1]}],[["wrap"],{all:[pg,sM,mg,cg,X1]}],[["share"],{all:[sM,mg,cg]}],[[wa("share")],{all:[d0e,mg]}],[["line"],QYe],[["upcoming"],oje],[["jumpHighlight"],eje],[["boxShape",wa("boxShape"),Cr("boxShape")],tje],[["direction","share",Cr("order")],mje],[["join"],qF],[[Wv],qF]]),resolveData:(e,t)=>{let o=e.props,n=o[nb];return t.changed?.[nb]===!0&&GJ(n)?{...e,props:$J(o,n,ce,_e)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:wge(o)}:e},resolveFields:(e,t)=>{let o=Zl(t.appState,e.props?.id)?.inCopy===!0,n=o&&HE(t.appState,e.props?.id)===null;return vje(Tje(Eje(jge(Pje(e,{...t,fields:Ka(t.fields,e,t)}),e.props),ug(e,t),o),n),e.props)},showWhenFacts:{...$a,...Une,...Wge,...uje,...lje,...dje,...Vge,...rje}},kje=at(Dne,g6),Sje=["darken","darkenStyle",xE,oh];function Tje(e,t){if(!t)return e;let o={...e};for(let n of Sje){if(!(n in o))continue;let{showWhen:r,...a}=o[n];o[n]=a}return o}function Eje(e,t,o=!1){let n=e;return th in n&&is(t)&&o?{...n,[th]:at(Mne,Wne)}:!(th in n)||is(t)?e:{...n,[th]:kje}}function Pje(...[e,t]){let{fields:o}=t;{if(is(ug(e,t))){let n=_p({fallback:{top:_i.desktop,bottom:_i.desktop,left:_i.side,right:_i.side},tablet:!0,siteSide:!0});return g2(o,n)}return e.props.padV2!==!0?g2(o,_p({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as hg}from"react/jsx-runtime";import{ColumnsIcon as E0e,GridIcon as _je,LayoutIcon as Rje,SlidePickerCardsIcon as Nje,WidthIcon as P0e}from"efficient-easel/icons";import{deviceField as IN}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as Cje}from"efficient-shell/format";var cM=["grid","carousel"],pM="grid",x0e={grid:"Grid",carousel:"Carousel"};function y0e(e){return Cje(cM,pM,e)}var NN=50,ON=80,AN=30,LN=90;function mM(e,t){let o=Tn(e);return o===void 0?t:Math.min(LN,Math.max(AN,o))}function v0e(e,t,o){if(o<=0)return null;let n=((e-t)%o+o)%o;return n===0?0:n===1?1:n===o-1?-1:null}function k0e(e,t,o){return o<=0?0:((e+t)%o+o)%o}function S0e(e,t){return!t||t.height<=0?null:Math.round(t.top-e.top+t.height/2)}var uM=Vn.Grid,T0e={label:"Grid",fields:uM,defaultProps:{columns:"3",content:[]}};var Oje={grid:hg(_je,{}),carousel:hg(Nje,{})},C0e={field:"layout",is:"carousel"},_0e={fields:{layout:io("Layout",hg(Rje,{}),cM.map(e=>({label:x0e[e],value:e,picture:Oje[e]})),pM),carouselTile:at(IN("desktop",ae("Tile width",hg(P0e,{}),AN,LN,1,NN,{kind:"size",base:"%"})),C0e),carouselTilePhone:at(IN("mobile",ae("Tile width",hg(P0e,{}),AN,LN,1,ON,{kind:"size",base:"%"})),C0e),columns:IN("desktop",ae("Columns",hg(E0e,{}),1,BX,1,DX)),mobileColumns:IN("mobile",ae("Columns",hg(E0e,{}),dF,HX,1,dF)),...li("Grid"),content:uM.content}};import{jsx as Aje}from"react/jsx-runtime";var R0e={fields:{text:q("Heading",W.heading),level:le("Level",Aje(da,{noun:"heading"}),[{label:"H1",value:"1"},{label:"H2",value:"2"},{label:"H3",value:"3"},{label:"H4",value:"4"},{label:"H5",value:"5"},{label:"H6",value:"6"}],"2")}};import{jsx as gn}from"react/jsx-runtime";import{parseOption as Lje}from"efficient-shell/format";var fM="bottom-right",hM=["outline","solid","square","bare"],gM="outline",N0e={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},O0e=!1,A0e=["prev","next"],L0e={prev:"Previous slide",next:"Next slide"};function Ije(e){return Lje(hM,gM,e)}function Fje(e){return age(e)??fM}var Bje="flex-row items-center gap-2";function I0e(e){return gN(Fje(e),Bje)}var Hje={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 F0e(e){return Hje[Ije(e)]}function B0e(e){return e.shown===!0&&(e.count??0)>1}function FN(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 V0e,EyeIcon as kM,HandIcon as zje,ScrollMoveDownIcon as Y0e,OpacityIcon as Wje,PhoneIcon as $0e,PlayIcon as Uje,SlideArrowsBareIcon as Gje,SlideArrowsRoundIcon as $je,SlideArrowsSquareIcon as Kje,SlidePickerBarIcon as Vje,SlidePickerCardsIcon as Yje,SlidePickerDotsIcon as jje,SlidePickerNumbersIcon as qje,SlidePickerSquaresIcon as Xje,SquareIcon as K0e,StylesIcon as Zje}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as Jje}from"efficient-shell/icons/efficient-looks";import{group as tf}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as SM,deviceNote as oqe}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as H0e}from"efficient-shell/format";var bM=["manual","timer","scroll"],D0e={manual:"Hand",timer:"Timer",scroll:"Scroll"};function BN(e){return H0e(bM,e.autoplay===!0?"timer":"manual",e.slideChange)}var wM=25,xM=10,yM=100;function M0e(e){let t=Tn(e);return t===void 0?wM:Math.min(yM,Math.max(xM,t))}function z0e(e,t,o){return o<=0||t<=0?0:Math.min(o-1,Math.max(0,Math.floor(e/t)))}var Dje=["wipe"],Mje="wipe";function W0e(e){return H0e(Dje,Mje,e)}var U0e=350,vM=8;var HN=Vn.Hero,G0e={label:"Hero",drawsPictures:!0,fields:HN,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};var Qje=Jje,eqe={cards:gn(Yje,{}),dots:gn(jje,{}),numbers:gn(qje,{}),bar:gn(Vje,{}),squares:gn(Xje,{})},tqe={outline:gn($je,{}),solid:gn(Qje,{}),square:gn(Kje,{}),bare:gn(Gje,{})},nqe={manual:gn(zje,{}),timer:gn(V0e,{}),scroll:gn(Y0e,{})},rqe={any:[{field:"slideChange",is:"timer"},{all:[{field:"slideChange",set:!1},{field:"autoplay",is:!0}]}]},aqe={field:"slideChange",is:"scroll"},j0e={fields:{_dDevice:oqe(),_gContent:tf("Content"),slides:HN.slides,strip:HN.strip,_gStyle:tf("Style"),alignment:eoe(),_gTexture:tf("Texture"),showTexture:te("Show texture",ute,gn(kM,{})),textureColor:Ime,textureOpacity:ae("Texture opacity",gn(Wje,{}),0,100,1,40,"%"),textureShape:le("Texture style",gn(Zje,{}),hte,fte),_gLayout:tf("Layout"),...y5(),...Hme,_gAutoplay:tf("Auto-slide"),slideChange:aoe("Change slides",gn(Uje,{}),bM.map(e=>({label:D0e[e],value:e,picture:nqe[e]})),"manual"),autoplayInterval:at(ae("Still time per slide",gn(V0e,{}),2,15,1,6,"s"),rqe),scrollPerSlide:at(ae("Scroll per slide",gn(Y0e,{}),xM,yM,1,wM,{kind:"height",base:"%"}),aqe),_gPicker:tf("Slide picker"),showPicker:te("Show slide picker",ige,gn(kM,{})),pickerShape:io("Slide picker shape",gn(K0e,{}),JD.map(e=>({label:wN[e],value:e,picture:eqe[e]})),bN),pickerPlacement:td("Slide picker placement",{fallback:ZD}),_gArrows:tf("Arrows"),showArrows:te("Show arrows",O0e,gn(kM,{})),arrowsShape:io("Arrows shape",gn(K0e,{}),hM.map(e=>({label:N0e[e],value:e,picture:tqe[e]})),gM),arrowsPlacement:td("Arrows placement",{fallback:fM}),_gPhone:SM("mobile",tf("On a phone")),phoneUpDown:SM("mobile",Ce(ste,gn($0e,{}),pte(),ate)),phoneSideways:SM("mobile",Ce(lte,gn($0e,{}),mte(),ite)),phoneWordsTop:Hu.phoneWordsTop,phoneWordsBottom:Hu.phoneWordsBottom,phoneBoxGap:Hu.phoneBoxGap},resolveFields:(e,{fields:t})=>{let o=e.props??{},n=BN(o),r=t.slideChange;return!r||r.currentValue===n?t:{...t,slideChange:{...r,currentValue:n}}}};import{jsx as X0e}from"react/jsx-runtime";import{WidthIcon as Z0e}from"efficient-easel/icons";import{BOX_NUDGE_ROW as J0e,BOX_WIDTH_ROW as EM,group as PM}from"efficient-easel/screen/lib/document/box-fields";var TM={...Vn.HeroGroup,content:{...Vn.HeroGroup.content,allow:gj}},q0e={label:hj,inline:!0,fields:TM,defaultProps:{placement:vX,nudgeX:0,nudgeY:0,content:[]}};var Q0e={fields:Fe({_gContent:PM("Content"),name:Zo(Sb(kr(J("Box name",W.boxName)))),content:TM.content,_gLayout:PM("Layout"),placement:td("Placement",{pointsFor:mne}),width:ae("Width",X0e(Z0e,{}),rF,aF,5,kX,EM),...od(EM,"width"),direction:JC("HeroGroup"),...li("HeroGroup"),justify:OC(),align:AC(),wrap:yh(),_gNudge:PM("Nudge"),...toe({keys:{x:"nudgeX",y:"nudgeY"},min:-nF,max:nF,label:null,length:J0e}),...od(J0e,"nudgeX"),..._p({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(rP(o?.data,n)===0)return t;let r={...t};return r.width=ae("Width",X0e(Z0e,{}),rF,aF,5,SX,EM),r}};import{jsx as tbe}from"react/jsx-runtime";import{MediaIcon as sqe,OpacityIcon as lqe}from"efficient-easel/icons";import{group as Z1}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as dqe,deviceNote as cqe}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as iqe}from"efficient-shell/format";var CM=Vn.HeroSingle,ebe={label:"Hero Single",drawsPictures:!0,fields:CM,defaultProps:{mediaType:Ia.HeroSingle,[La.image]:iqe,tintColor:cs,tintOpacity:0,overlay:100,overlayColor:cs,overlayPosition:bh}};var obe=mb("video",Ia.HeroSingle),pqe=mb("image",Ia.HeroSingle),nbe=[...S5,"tintColor","tintOpacity"],rbe={fields:dC({_dDevice:cqe(),boxNotice:P5("HeroSingle"),boxes:CM.boxes,_gStyle:Z1("Style"),overlay:ae("Overlay",tbe(lqe,{}),0,100,5,100,"%"),overlayColor:h8.overlayColor,overlayPosition:h8.overlayPosition,_gLayout:Z1("Layout"),...y5({tabletNumber:!1}),_gPhone:dqe("mobile",Z1("On a phone")),phoneWordsTop:Hu.phoneWordsTop,phoneWordsBottom:Hu.phoneWordsBottom,phoneBoxGap:Hu.phoneBoxGap,_gMedia:Z1("Media"),mediaType:Ce("Type",tbe(sqe,{}),n_,Ia.HeroSingle),mediaLayout:Zh.mediaLayout,mediaLayoutPhone:Zh.mediaLayoutPhone,...v5,videoSource:Bu.videoSource,mediaVideo:Qe(Jv,"video/*",Qv),youtubeUrl:Bu.youtubeUrl,videoPlayback:Bu.videoPlayback,poster:Qe("Video poster","image/*","Upload a poster still"),_gTint:Z1("Image tint"),tintColor:g1(),tintOpacity:h1(),...b1},{parts:{media:["mediaType",...k5,"videoSource","mediaVideo","youtubeUrl","videoPlayback","poster"],image:nbe,image2:Hw},onlyFor:{image:[...nbe,"_gTint",...Hw],video:["videoSource","videoPlayback","poster"]},rules:{mediaVideo:{all:[obe,{field:"videoSource",is:"upload",default:ol}]},youtubeUrl:{all:[obe,{field:"videoSource",is:"youtube",default:ol}]},...T5(pqe)},fallback:Ia.HeroSingle})};import{jsx as J1}from"react/jsx-runtime";import{BlockVideoIcon as uqe,ClockIcon as fqe,ImageIcon as hqe,MediaIcon as gqe,PlayIcon as bqe}from"efficient-easel/icons";import{group as DN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as dx}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as mqe}from"efficient-shell/format";var _M=Vn.HeroSlide,abe={label:"Hero Slide",fields:_M,defaultProps:{mediaType:Ia.HeroSlide,videoSpeed:100,[La.image]:mqe,tintColor:cs,overlay:0}};var of=mb("video",Ia.HeroSlide),wqe=mb("image",Ia.HeroSlide),ibe=[...S5,"tintColor","overlay"],sbe={fields:dC({_gContent:DN("Content"),name:Zo(Sb(J("Slide name",W.slideName))),process:Zo(U("Reel label","Label")),groupNotice:P5("HeroSlide"),groups:_M.groups,_gMedia:DN("Media"),mediaType:Ce("Type",J1(gqe,{}),n_,Ia.HeroSlide),mediaLayout:Zh.mediaLayout,mediaLayoutPhone:Zh.mediaLayoutPhone,videoSource:Bu.videoSource,mediaVideo:dx("desktop",Qe(Jv,"video/*",Qv,{frame:"videoFrame"})),mediaVideoPhone:dx("mobile",Qe(Jv,"video/*",Qv,{frame:"videoFramePhone"})),videoFramePhone:Np(),mediaVideoAv1:dx("desktop",Qe(BF,"video/mp4",HF)),mediaVideoAv1Phone:dx("mobile",Qe(BF,"video/mp4",HF)),youtubeUrl:Bu.youtubeUrl,videoPlayback:Bu.videoPlayback,videoSpeed:ae("Playback speed",J1(bqe,{}),25,100,5,100,"%"),loadingShows:Rne("Show while loading",J1(fqe,{}),{frame:J1(uqe,{}),image:J1(hqe,{})}),videoFrame:Np(),...v5,poster:dx("desktop",Qe("Image","image/*","Choose an image")),posterPhone:dx("mobile",Qe("Image","image/*","Choose an image")),_gTint:DN("Image tint"),tintColor:g1(),overlay:h1(),...b1,_gOverlay:DN("Overlay"),overlayColor:g8.overlayColor,overlayPosition:g8.overlayPosition},{parts:{media:["mediaType",...k5,"videoSource","mediaVideo","mediaVideoPhone","videoFramePhone","mediaVideoAv1","mediaVideoAv1Phone","youtubeUrl","videoPlayback","videoSpeed","loadingShows","videoFrame","poster","posterPhone"],image:ibe,image2:Hw},onlyFor:{image:[...ibe,"_gTint",...Hw],video:["videoSource","videoPlayback","loadingShows","videoFrame"]},fallback:Ia.HeroSlide,rules:{mediaVideo:{all:[of,{field:"videoSource",is:"upload",default:ol}]},mediaVideoPhone:{all:[of,{field:"videoSource",is:"upload",default:ol}]},mediaVideoAv1:{all:[of,{field:"videoSource",is:"upload",default:ol}]},mediaVideoAv1Phone:{all:[of,{field:"videoSource",is:"upload",default:ol}]},youtubeUrl:{all:[of,{field:"videoSource",is:"youtube",default:ol}]},videoSpeed:{all:[of,{field:"videoSource",is:"upload",default:ol},{field:"videoPlayback",is:"background",default:pC}]},...T5(wqe),poster:{all:[of,MF]},posterPhone:{all:[of,MF]}}})};import{jsx as RM}from"react/jsx-runtime";import{phoneKey as xqe}from"efficient-easel/draw";import{CropIcon as lbe,ImageIcon as yqe}from"efficient-easel/icons";import{group as NM,phoneTwinFields as vqe}from"efficient-easel/screen/lib/document/box-fields";var dbe={fields:{_gImage:NM("Image"),src:Qe("Image","image/*",void 0,{focus:"focal",focusWhen:(e,t)=>Dv(t,e.fit,e.aspect,e[xqe("aspect")])}),alt:Zo(J("Alt text")),rowField:Kr("Shows","image"),[Go]:Nc(),...vqe("aspect",Bw("Aspect ratio",RM(lbe,{}),K0(sg),"image","16/9",{more:[Sme(iZ)]}),void 0,{phoneRow:Bw("Aspect ratio",RM(lbe,{}),K0(sg),"image","16/9",{phoneRest:fZ})}),fit:le(uP,RM(yqe,{}),nZ(),"cover"),focal:Np(),focalTablet:Np(),focalPhone:Np(),href:Ju(Ve("Link")),_gStyle:NM("Style"),grayscale:Dw(),...ix(),_gShape:NM("Shape"),corners:Ine(),...gne(doe,"corners"),cornerSides:bne()},resolveFields:(e,t)=>Hne(Ka(t.fields,e,t),e,t),showWhenFacts:$a};import{jsx as kqe}from"react/jsx-runtime";import{group as cbe}from"efficient-easel/screen/lib/document/box-fields";var pbe={fields:{_gContent:cbe("Content"),eyebrow:U("Chip label","Integrations"),title:q("Heading",`Plays well with
13
+ `:""}`}),d]})]})}let g=x=>{!m||!iue(e,!1)||x.target===x.currentTarget&&p()},h=e.height==="full",w=e.fullWidth||h,b=lUe(e),y=A8("div",{ref:c,tabIndex:-1,"data-popup-panel":"",className:"relative flex flex-col bg-bg text-fg outline-none",style:{width:e.fullWidth?"100%":`min(${e.width}px, 100%)`,height:h?"100%":void 0,maxHeight:e.fullWidth&&!h||b.place==="outside"?`calc(100% - ${L8}px)`:"100%",borderRadius:w?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[b.place!=="none"?Qh("button",{type:"button","aria-label":"Close",onClick:r?void 0:p,"data-popup-close":b.place,"data-popup-close-until":b.until,className:"absolute z-[5] flex h-[38px] w-[38px] items-center justify-center border border-line bg-bg font-mono text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-fg",style:b.place==="outside"?{top:-sUe,right:0}:{top:12,right:12},children:"\xD7"}):null,b.until?Qh("style",{children:`@container popup-frame (min-width: ${b.until+1}px){[data-popup-close-until="${b.until}"]{display:none}}`}):null,Qh("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return Qh("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:{...iUe[e.placement],background:aue(e.tintColor,e.tintOpacity),padding:w?0:b.place==="outside"&&e.placement.startsWith("top")?`${24+L8}px 24px 24px`:24,...b.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:y})}var cUe=25.4,k1=400,A5=152,pUe=58,sue=A5*Math.cos(pUe*Math.PI/180),mUe=14,uUe=k1/2,fUe={sectionWidth:225,aspectRatio:60,rimDiameter:17};function due(e){let t=dc(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:fUe}function cue(e){let t=e.rimDiameter*cUe/2,o=t+e.sectionWidth*e.aspectRatio/100,n=A5*(e.sectionWidth/o),r=t/o;return{cy:uUe,rx:sue,ry:A5,cxf:k1/2-n/2-mUe,dx:n,rimRx:sue*r,rimRy:A5*r}}var oo=e=>e.toFixed(1);function L5(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${oo(r)} ${oo(a)} A${oo(e.rx)} ${oo(e.ry)} 0 0 ${o} ${oo(r)} ${oo(i)}`}function B8(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${oo(n)} ${oo(a)} L${oo(r)} ${oo(a)} A${oo(e.rx)} ${oo(e.ry)} 0 0 1 ${oo(r)} ${oo(i)} L${oo(n)} ${oo(i)} A${oo(e.rx)} ${oo(e.ry)} 0 0 0 ${oo(n)} ${oo(a)} Z`}function O5(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 pue(e,t,o,n,r){let[a,i]=O5(e,t,n),[s,l]=O5(e,t,r),[d,c]=O5(e,o,r),[p,m]=O5(e,o,n);return`M${oo(a)} ${oo(i)} A${oo(e.rx)} ${oo(e.ry)} 0 0 1 ${oo(s)} ${oo(l)} L${oo(d)} ${oo(c)} A${oo(e.rx)} ${oo(e.ry)} 0 0 0 ${oo(p)} ${oo(m)} L${oo(a)} ${oo(i)} Z`}var lue=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],hUe={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}}]},gUe=[["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 mue(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return lue;for(let[o,n]of gUe)if(t.includes(` ${o} `))return hUe[n];return lue}var I5="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as bUe}from"react";function Ga(e,t=/:/g){let o=bUe().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as S1,jsx as jt,jsxs as Tc}from"react/jsx-runtime";var xs={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},wUe=[.8,.52,.24],uue=.4,fue=.88,hue=.3,gue=5,bue=.3,wue=.84,xUe=7,ho=e=>Math.round(e*10)/10;function H8({size:e,type:t,className:o}){let n=Ga("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=cue(due(e)),i=B8(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Tc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${k1} ${k1}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[jt("title",{children:s}),Tc("defs",{children:[jt(vUe,{id:r}),jt("clipPath",{id:r.crown,children:jt("path",{d:i})})]}),jt("ellipse",{cx:ho(a.cxf+a.dx/2),cy:ho(a.cy+a.ry-4),rx:ho(a.dx*1.5),ry:16,fill:`url(#${r.shadow})`}),jt(kUe,{g:a,id:r}),jt(SUe,{g:a,id:r}),jt("path",{d:i,fill:`url(#${r.tread})`}),jt("g",{clipPath:`url(#${r.crown})`,children:mue(t).map(l=>jt(yUe,{g:a,column:l},l.f[0]))}),jt("path",{d:L5(a,0,0,!0),stroke:"currentColor",strokeOpacity:xs.shoulder,strokeWidth:1.2}),jt("path",{d:L5(a,1,1),stroke:"currentColor",strokeOpacity:xs.silhouette,strokeWidth:1.4})]})}function yUe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Tc(S1,{children:[jt("path",{d:B8(e,o,n),fill:"currentColor",fillOpacity:xs.rib}),jt("path",{d:L5(e,o,1),stroke:"currentColor",strokeOpacity:xs.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(S1,{children:l.map(([d,c])=>jt("path",{d:pue(e,o,n,d,c),fill:"currentColor",fillOpacity:xs.rib,stroke:"currentColor",strokeOpacity:xs.grooveWall,strokeWidth:1},d))})}function vUe({id:e}){return Tc(S1,{children:[Tc("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})]}),Tc("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})]}),Tc("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})]}),Tc("radialGradient",{id:e.shadow,children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function kUe({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 Tc(S1,{children:[jt("ellipse",{cx:ho(e.cxf),cy:ho(e.cy),rx:ho(e.rx),ry:ho(e.ry),fill:`url(#${t.wall})`}),wUe.map((a,i)=>{let s=n(a);return jt("ellipse",{cx:ho(e.cxf),cy:ho(e.cy),rx:ho(e.rx*s),ry:ho(e.ry*s),stroke:"currentColor",strokeOpacity:xs.relief[i],strokeWidth:1},a)}),jt("ellipse",{cx:ho(e.cxf),cy:ho(e.cy),rx:ho(e.rx*n(uue)),ry:ho(e.ry*n(uue)),stroke:"currentColor",strokeOpacity:xs.lettering,strokeWidth:ho(r)})]})}function SUe({g:e,id:t}){let o=Array.from({length:gue},(n,r)=>{let a=(r*(360/gue)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*bue*Math.cos(a),y1:e.cy+e.rimRy*bue*Math.sin(a),x2:e.cxf+e.rimRx*wue*Math.cos(a),y2:e.cy+e.rimRy*wue*Math.sin(a)}});return Tc(S1,{children:[jt("ellipse",{cx:ho(e.cxf),cy:ho(e.cy),rx:ho(e.rimRx),ry:ho(e.rimRy),fill:`url(#${t.rim})`}),jt("ellipse",{cx:ho(e.cxf),cy:ho(e.cy),rx:ho(e.rimRx*fue),ry:ho(e.rimRy*fue),fill:"currentColor",fillOpacity:xs.dishFill,stroke:"currentColor",strokeOpacity:xs.dishEdge,strokeWidth:1}),o.map((n,r)=>jt("line",{x1:ho(n.x1),y1:ho(n.y1),x2:ho(n.x2),y2:ho(n.y2),stroke:"currentColor",strokeOpacity:xs.spoke,strokeWidth:xUe,strokeLinecap:"round"},r)),jt("ellipse",{cx:ho(e.cxf),cy:ho(e.cy),rx:ho(e.rimRx*hue),ry:ho(e.rimRy*hue),fill:"currentColor",fillOpacity:xs.hubFill,stroke:"currentColor",strokeOpacity:xs.hubEdge,strokeWidth:1})]})}import{jsx as D8}from"react/jsx-runtime";function Zp({image:e,size:t,type:o,sizes:n,priority:r=!1,className:a="aspect-square",showBackground:i=!0}){return D8("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:D8(so,{label:t||"Tyre",src:ds(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:D8(H8,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as T1}from"react/jsx-runtime";function TUe(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function M8({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??Oie;return T1("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:C_(e)?T1(Zp,{image:o?.coverImage,size:e.size,type:TUe(o),sizes:"96px",className:"h-full w-full"}):a?.src?T1(Zs,{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?T1("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:T1(_h,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as z8,jsxs as PUe}from"react/jsx-runtime";var xue={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function yue(e,t){return Math.min(I6,Math.max(1,e+t))}var vue="disabled:cursor-not-allowed disabled:opacity-40",EUe={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${xue.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${vue}`,value:`w-11 text-center font-mono ${xue.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 ${vue}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function E1({value:e,onChange:t,size:o}){let n=EUe[o];return PUe("div",{className:n.frame,children:[z8("button",{type:"button",onClick:()=>t(yue(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),z8("span",{className:n.value,children:e}),z8("button",{type:"button",onClick:()=>t(yue(e,1)),disabled:e>=I6,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as Ec,jsx as $e,jsxs as no}from"react/jsx-runtime";function kue({content:e,closeRef:t}){let{close:o,items:n}=Fn(),r=t;return no("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:[no("div",{className:"flex items-center justify-between",children:[no("span",{className:"flex items-center gap-3 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?$e("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]}),$e("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"})]}),no("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",$e("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),$e("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:Ooe(e,n.length)})]})}function Sue({content:e}){let{totals:t}=Fn(),{activeCountry:o}=Ot(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return $e(Ec,{children:no("div",{className:`grid flex-shrink-0 ${CUe[r-1]} gap-px border-b border-line bg-line`,children:[$e(W8,{label:"Items",value:no(Ec,{children:[$e("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?$e(W8,{label:"Lead time",value:e.leadTimeValue}):null,n?$e(W8,{label:"Ships to",value:n}):null]})})}function Tue({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=Fn();return $e(Ec,{children:o.length===0?$e(AUe,{content:e}):o.map(a=>$e(_Ue,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function Eue(){let{items:e,totals:t,bundles:o}=Fn(),{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 $e(Ec,{children:i.length>0&&no("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:[no("div",{className:"mb-4 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[$e("span",{children:"You may also need"}),$e("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),$e("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:i.map(s=>$e(RUe,{href:`/bundles/${s.slug}`,title:s.name,sub:NUe(s,t.currency,n)},s.slug))})]})})}function Pue(){return $e(Ec,{children:$e("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:$e(Iie,{})})})}function Cue({content:e}){return $e(Ec,{children:e.promises.length>0&&$e("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=>$e(OUe,{children:t},t))})})}function _ue(){let{totals:e,coupon:t}=Fn(),{formatMoney:o}=Ot();return $e(Ec,{children:no("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[$e(Uu,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>$e(Uu,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:no("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),e.discount>0&&t?.valid&&$e(Uu,{label:`Coupon \xB7 ${t.code}`,value:no("span",{style:{color:"var(--green)"},children:["\u2212 ",o(e.discount,e.currency)]})}),t?.deferred&&$e(Uu,{label:`Coupon \xB7 ${t.code}`,value:tie}),t?.valid&&t.effects?.gift&&$e(Uu,{label:`Free gift \xB7 ${t.effects.gift.partNumber}${t.effects.gift.quantity>1?` \xD7${t.effects.gift.quantity}`:""}`,value:$e("span",{style:{color:"var(--green)"},children:Ch})}),$e(Uu,{label:"Shipping",value:e.shippingStatus==="free"?$e("span",{style:{color:"var(--green)"},children:Ch}):_ie(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?$e(Uu,{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?$e(Uu,{label:e.tax.name,value:Cie}):null),no("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[no("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",$e("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),$e("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:e.repricing?vie:o(e.grand,e.currency)})]})]})})}function Rue(){let{items:e,close:t}=Fn();return $e(Ec,{children:no("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[no(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",$e("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),$e("div",{className:"flex items-center justify-between px-1 py-2 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:$e(Le,{href:"/wheels",onClick:t,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})})}var CUe=["grid-cols-1","grid-cols-2","grid-cols-3"];function W8({label:e,value:t}){return no("div",{className:"flex flex-col gap-1 bg-bg px-4 py-4",children:[$e("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),$e("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function _Ue({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=Fn(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=Ot();return no(Ec,{children:[no("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:[$e(M8,{line:e,catalog:r,tyre:t}),no("div",{className:"flex min-w-0 flex-col gap-2",children:[no("div",{className:"flex items-start justify-between gap-3",children:[no("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:["N\xB0 ",e.positionNo," \xB7 ",e.process==="FusionForge\xAE"?no(Ec,{children:["FusionForge",$e(UP,{})]}):e.process]}),$e("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:F6(e,s)===null?uu:l(F6(e,s),s)})]}),no("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,$e("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&no("div",{className:"mt-1 flex flex-wrap gap-2",children:[e.config.map(d=>$e("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&&no("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"]})]}),no("div",{className:"mt-3 flex items-center justify-between gap-3",children:[$e(E1,{value:e.qty,onChange:n,size:"small"}),no("div",{className:"flex gap-4 font-mono text-[10px] uppercase tracking-[0.22em]",children:[$e(Le,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),$e("button",{type:"button",onClick:o,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&no("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:[$e("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),no("span",{children:["Verified for your ",$e("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function RUe({title:e,sub:t,href:o}){return no(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:[no("span",{className:"flex min-w-0 flex-col gap-1",children:[$e("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),$e("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),$e("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 NUe(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 OUe({children:e}){return $e("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function Uu({label:e,value:t}){return no("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[$e("span",{children:e}),$e("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function AUe({content:e}){return no("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[$e("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),$e("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),no(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 ",$e("span",{className:"text-accent",children:"\u2192"})]})]})}import{jsx as Gu,jsxs as Nue}from"react/jsx-runtime";var FUe=lu(void 0);function P1({content:e=WC,look:t=FUe}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=Fn(),s=IUe(null),l=rue(a.filter(C_).map(d=>d.slug));return LUe(()=>{i(t.autoOpen)},[t.autoOpen,i]),Nue(Wi,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:"Your cart",children:[Gu(kue,{content:e,closeRef:s}),Gu(Sue,{content:e}),Nue("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[Gu(Tue,{content:e,tyres:l}),Gu(Eue,{}),Gu(Pue,{}),Gu(Cue,{content:e})]}),Gu(_ue,{}),Gu(Rue,{})]})}import BUe from"efficient-easel/screen/components/UiIcon";import{Fragment as DUe,jsx as eg,jsxs as F5}from"react/jsx-runtime";var HUe=pw(()=>import("./chunks/EditorPreviewCheckout-MXKJBKHR.js"),{ssr:!1});function U8(){let{chromePlaceholder:e,themeFromDocument:t}=jn(),{surface:o}=lre();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?F5(DUe,{children:[eg(HUe,{}),eg(Oue,{surface:o})]}):eg(hu,{children:F5(qb,{preview:!0,children:[eg(P1,{}),eg(Oue,{surface:o})]})})}function Oue({surface:e}){let{label:t,href:o}=ume(e);return F5("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:[eg("span",{style:{whiteSpace:"nowrap"},children:u("{name} \xB7 preview only",{name:u(t)})}),F5("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"),eg(BUe,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as MUe,CursorClickIcon as zUe,EyeIcon as WUe,FullWidthIcon as UUe,HeightIcon as GUe,OpacityIcon as Iue,PlacementIcon as $Ue,WidthIcon as KUe}from"efficient-easel/icons";import{group as zw}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as VUe}from"efficient-easel/screen/lib/document/device-fields";import{jsx as Jp}from"react/jsx-runtime";var YUe={label:"Inside",value:"inside"},jUe={label:"None",value:"none"};function G8(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,VUe("desktop",o)]))}function Aue(e,t){return{_gDesign:zw("Color"),tintColor:ps("Tint color",e),tintOpacity:ae("Tint opacity",Jp(Iue,{}),d2.min,d2.max,5,t,"%")}}function Lue(e,t){return{_gBehavior:zw("Behavior"),outsideClick:te("Outside click",e,Jp(zUe,{})),...t}}var qUe=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function $8(e){return ae("Width",Jp(KUe,{}),l6.min,l6.max,4,e,"px")}function Fue(e){if(e===su){let o=lu(void 0);return G8({_gSize:zw("Width"),width:$8(o.width),_gPosition:zw("Placement"),placement:le("Placement",Jp($Ue,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...Aue(o.tintColor,o.tintOpacity),...Lue(o.outsideClick,{autoOpen:te("Auto open",o.autoOpen,Jp(WUe,{}))})})}let t=iu;return Fe(G8({_gSize:zw("Width"),width:$8(t.width),height:le("Height",Jp(GUe,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:zw("Placement"),placement:td("Placement",{fallback:t.placement}),fullWidth:te("Full width",t.fullWidth,Jp(UUe,{})),...Aue(t.tintColor,t.tintOpacity),...Lue(t.outsideClick,{closeButton:le("Close button",Jp(MUe,{}),[YUe,{label:"Outside",value:"outside"},jUe],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],qUe])}function Bue(e,t){return G8({menuPanelWidth:$8(e),menuPanelTintColor:ps("Tint color",iu.tintColor),menuPanelTintOpacity:ae("Tint opacity",Jp(Iue,{}),d2.min,d2.max,5,t,"%")})}import{PictureTiles as XUe}from"efficient-shell/ui";import{SettingsField as ZUe}from"efficient-easel/panel";import{GridIcon as JUe}from"efficient-easel/icons";import{jsx as tg}from"react/jsx-runtime";function QUe({layout:e}){return tg("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?tg("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):tg("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var Hue={type:"custom",render:({value:e,onChange:t})=>{let o=UC({layout:e}).layout,n=d6.find(r=>r.value===o);return tg(ZUe,{label:u(c6),icon:tg(JUe,{}),value:n?u(n.label):void 0,children:tg(XUe,{className:"sf-gallery-layouts",label:u(c6),value:o,onChange:t,options:d6.map(r=>({value:r.value,label:u(r.label),picture:tg(QUe,{layout:r.value})}))})})}};import{CategoryIcon as EEt,CheckIcon as PEt,ClockIcon as iY,ColumnsIcon as CEt,DirectionIcon as _Et,EyeIcon as REt,ListIcon as NEt,PageIcon as OEt,PlacementIcon as AEt,ScrollPointIcon as LEt,TabsIcon as IEt,TriggerIcon as FEt}from"efficient-easel/icons";import{deviceField as t6e}from"efficient-easel/screen/lib/document/device-fields";import{group as Vl,phoneTwinFields as BEt}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as eGe}from"efficient-easel/screen/lib/document/box-fields";function Ww(e){let t=eGe(e);return{...t,render:o=>t.render({...o,value:Lm(o.value)??o.value})}}import{useContext as oGe,useEffect as Mue,useRef as H5,useState as D5}from"react";import{Button as M5}from"efficient-shell/ui";import{ScreenDocumentContext as nGe}from"efficient-easel/screen/components/ScreenDocumentContext";var C1=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},B5=null,K8=null,V8=null;function tGe(){B5=null,K8=null,V8=null}function Due(e=!1){let t=ca(),o=In();return(e||!B5||K8===null&&t!==null||V8!==o)&&(K8=t,V8=o,B5=(t?Ae.listForms(t,{siteId:o}):Promise.reject(new C1)).catch(n=>{throw tGe(),n instanceof C1?n:new C1(n)})),B5}import{useEaselHost as rGe}from"efficient-easel/screen/lib/host";import{InertHint as Y8}from"efficient-easel/panel";import{jsx as sr,jsxs as Pc}from"react/jsx-runtime";var zue="__create-a-new-form__";function aGe({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:zue,label:u("Create a new form")}];return[s,...l,...d,...c]}function iGe(e){return e===zue?{action:"create"}:{action:"store",slug:e}}function sGe({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 lGe(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 j8({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=rGe(),a=oGe(nGe),i=a?a.capabilities.hasForms:!0,[s,l]=D5(null),[d,c]=D5(!1),[p,m]=D5(!1),[f,g]=D5(!1),h=H5(!0),w=H5(e);w.current=e;let b=H5(t);b.current=t;let y=H5(null),x=(T=!1)=>Due(T).then(R=>{if(h.current){l(R),c(!1);let H=sGe({value:w.current,pickedId:y.current,forms:R});H&&b.current(H)}return R},()=>(h.current&&c(!0),[]));Mue(()=>(h.current=!0,i&&x(),()=>{h.current=!1}),[i]),Mue(()=>i?U_(()=>{x(!0)}):void 0,[i]);let k=e?(s??[]).find(T=>T.slug===e)??null:null;k?y.current=k.id:e||(y.current=null);let S=!!e&&!k&&s!==null&&!d,P=aGe({value:e,forms:s,loadFailed:d,emptyLabel:n}),E=async()=>{m(!0),g(!1);try{let T=await Qie(r,{mode:"create"}),R=await x(!0);if(!h.current)return;if(T.status==="timeout"){g(!0);return}if(T.status!=="saved")return;let{form:H}=T;H.slug!==w.current&&b.current(H.slug),R.some(L=>L.id===H.id)||x(!0)}finally{h.current&&m(!1)}},C=T=>{let R=iGe(T);R.action==="create"?E():(g(!1),t(R.slug))};return i?Pc("div",{className:"sf-formpicker",children:[sr(yb,{label:o,options:P,fallback:"",value:e??"",onChange:C,placeholder:u("Search forms\u2026")}),f&&sr("p",{className:"sf-formsummary-warn",children:u("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),k?Pc("div",{className:"sf-blogsource sf-formsummary",children:[Pc("div",{children:[sr("div",{className:"sf-formsummary-caption",children:nr("{n} field","{n} fields",k.fields.length)}),k.fields.length?sr("ol",{className:"sf-formsummary-fields",children:k.fields.map((T,R)=>sr("li",{children:T.label},T.key||`${T.label}-${R}`))}):sr(Y8,{children:u("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),Pc("div",{children:[sr("div",{className:"sf-formsummary-caption",children:u("Where the answers go")}),sr("ul",{className:"sf-formsummary-fields",children:lGe(k).map(T=>sr("li",{children:T},T))})]}),!k.is_active&&sr("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")})}),Pc("div",{className:"sf-formsummary-actions",children:[sr(M5,{variant:"secondary",size:"md",onClick:()=>Jie(r,k.id),children:u("Edit form \u270E")}),sr(M5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{E()},children:u("New form +")})]}),sr("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")})})]}):Pc("div",{className:"sf-blogsource sf-formsummary",children:[d?Pc(Y8,{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&&sr("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??""})}),Pc("div",{className:"sf-formsummary-actions",children:[d&&sr(M5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{x(!0)},children:u("Try again")}),sr(M5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{E()},children:u("New form +")})]}),!d&&sr("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")})})]})]}):sr("div",{className:"sf-formpicker",children:sr("div",{className:"sf-blogsource sf-formsummary",children:Pc("div",{children:[sr("div",{className:"sf-formsummary-caption",children:u(o)}),Pc(Y8,{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 dGe}from"react/jsx-runtime";function Cc(e,t){return{type:"custom",render:({value:o,onChange:n})=>dGe(j8,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{createContext as cGe,useContext as pGe}from"react";import{jsx as _c,jsxs as q8}from"react/jsx-runtime";function X8(e){return oc(e)??void 0}var Z8=cGe({}),Wue=3;function J8({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}=pGe(Z8),g=d==="bordered"?" border border-line":d==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",h=X8(r),w=An();if(f){let x={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:h??"",tag:e??"",href:n||"#"};return w.scope(_c("div",{className:Qt(`block w-full min-w-0 ${U0}${s?` ${zm}`:""}`,w.className),...w.attrs,children:_c(Ue,{ownerId:m??"Collections",ownerType:"Collections",Template:f,rows:[x],fallback:null,children:v=>v})}))}let b=x=>p?{[B0]:x}:{},y=x=>RE(c?.[Xl(x)]?.role,Eh[x],bE);return w.scope(q8(Le,{href:n||"#",className:Qt(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${g}`,w.className),...w.attrs,children:[_c("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${Vde}`,children:_c(so,{label:a||"collection.jpg",src:h})}),_c("div",{className:`pointer-events-none absolute inset-0 z-[1] ${qde} max-view-wide:hidden`,style:{transition:"none"}}),q8("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&&_c("span",{...b("tag"),style:y("tag"),className:`font-mono ${Op.tag} uppercase tracking-[0.25em] opacity-70`,children:A(e)}),t&&_c("h3",{...b("name"),style:y("name"),className:`font-heading2 ${Op.name} font-medium leading-none tracking-[-0.03em] ${Op.namePhone}`,children:typeof t=="string"?ee(t,!1):t}),o&&Ft(o).map((x,v)=>_c("p",{...b("body"),style:y("body"),className:`max-w-[420px] ${Op.body} leading-[1.5] opacity-80`,children:A(x)},v)),l&&i&&_c("span",{...b("price"),style:y("price"),className:`font-mono ${Op.price} tracking-[0.05em] text-accent`,children:A(i)}),q8("span",{...b("link"),style:y("link"),className:`mt-2 inline-flex items-center gap-3 font-mono ${Op.link} uppercase tracking-[0.2em]`,children:["Explore",_c("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as que,useCallback as _Ge,useContext as Yue,useEffect as Xue,useRef as RGe,useState as nD}from"react";import{slugify as NGe}from"efficient-shell/format";import{useState as uGe}from"react";import{jsx as Q8,Fragment as mGe}from"react/jsx-runtime";function wl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=gQ(e),a=bQ(e),i=t?a:r,s=hQ(i);return o&&!i?Q8("span",{[Vm]:e,children:n}):i?Q8("span",{ref:s,[tJ]:i.stamp,...i.textStyle?{[oJ]:i.textStyle}:{},children:n}):Q8(mGe,{children:n})}import{jsx as Ui,jsxs as Uw}from"react/jsx-runtime";var eD=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function tD({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=>uoe(l,d,x),f=x=>p&&c?{[ZZ]:c,[JZ]:`@${x}`}:{},g=(x,v)=>!p&&c?Ui(wl,{kind:`@${x}`,shared:!0,children:v}):v,[h,w]=uGe(!1),b=NX(s),y=Uw("div",{className:["sf-card group relative overflow-hidden bg-surface-2",$0(i),t?"max-view-wide:hidden":""].join(" "),children:[Uw("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:[Ui(so,{label:e.imageLabel,src:e.imageSrc}),!o&&Ui("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),Ui("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&&Ui(Zs,{src:e.detailSrc,alt:"",fill:!0,sizes:"(max-width: 800px) 100vw, (max-width: 1500px) 33vw, 25vw",loading:"lazy",className:"absolute inset-0 z-[3] object-cover",style:{display:h?"none":"block"},onError:()=>w(!0)})}),(e.process||r!=null&&a!=null)&&Uw("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&&Ui("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",So(e.process))}),r!=null&&a!=null&&Ui("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",eD(r,a))})]}),Ui("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:Uw("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&&Ui("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&&Ui("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&&Ui("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:Ui("span",{children:g("meta",So(e.finish))})})]})})]});return b?Uw("div",{className:t?"max-view-wide:hidden":"",children:[y,Uw("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&Ui("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)&&Ui("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",So(e.finish||e.car))})]})]}):y}import{createContext as fGe,useCallback as hGe,useContext as gGe,useEffect as bGe,useLayoutEffect as wGe,useRef as oD,useState as xGe}from"react";import{createPortal as yGe}from"react-dom";import{Fragment as TGe,jsx as _1,jsxs as EGe}from"react/jsx-runtime";var vGe=".sf-themed-content",Uue="sf-section-accent";function kGe(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(Uue)&&(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 ${Uue}`:"contents",style:o}}function SGe(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 Gue=fGe(()=>{});function Qp({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=oD(null),l=oD(null),[d,c]=xGe(null);wGe(()=>{if(!e){c(null);return}let g=s.current;if(!g)return;let h=g.closest(vGe)??g.ownerDocument.body;c({host:h,theme:kGe(g,h)})},[e]);let p=oD({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let m=e&&d!==null,f=hGe(()=>p.current.onClose(),[]);return Sc({active:m,onDismiss:f,scopeRef:l}),bGe(()=>{if(!m)return;let g=l.current,h=g?.ownerDocument??document,w=h.activeElement;g?.focus();let b=x=>{if(x.key==="ArrowLeft")p.current.onPrev?.();else if(x.key==="ArrowRight")p.current.onNext?.();else if(x.key==="Tab"&&g){let v=SGe(g);if(v.length===0){x.preventDefault(),g.focus();return}let k=v[0],S=v[v.length-1],P=h.activeElement,E=!!P&&g.contains(P)&&P!==g;if(x.shiftKey&&(!E||P===k))x.preventDefault(),S.focus();else if(!x.shiftKey&&(!E||P===S))x.preventDefault(),k.focus();else{x.preventDefault();let C=v.indexOf(P);v[x.shiftKey?C-1:C+1]?.focus()}}},y=h.defaultView??window;return y.addEventListener("keydown",b),()=>{y.removeEventListener("keydown",b),w&&w.isConnected&&w.focus()}},[m]),e?EGe(TGe,{children:[_1("span",{ref:s,hidden:!0}),d&&yGe(_1("div",{className:d.theme.className,style:d.theme.style,children:_1("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 ${F8[8]} ${a}`,style:{background:I8},children:_1(Gue.Provider,{value:t,children:i})})}),d.host)]}):null}var z5="color-mix(in oklab, var(--bg) 70%, transparent)";function $u({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=gGe(Gue);return _1("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as PGe,useContext as og}from"react";var R1=PGe(null);function $ue(){let e=og(s2),t=og(R1),o=c_();return e?e.socialLinks??rre:t?t.socialLinks:o.links}function Ku(){return og(R1)?.commerceEnabled??!0}function CGe(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function Gw(){return CGe(og(R1))}function Kue(){let e=og(R1),t=jn();return e?e.showThemeSwitch??gp:t.themeSwitchShown??gp}function Vue(){let e=og(s2),t=og(R1),o=jn();return e?F_({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?F_({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):F_({siteName:o.websiteName?.trim()||cu})}import{useBrowserLayoutEffect as OGe}from"efficient-shell/hooks";import{Fragment as $w,jsx as Eo,jsxs as ga}from"react/jsx-runtime";var AGe="(max-width: 1100px) 100vw, min(59vw, 1050px)",N1=que({}),Zue=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],aD=que(null),Vu="data-gallery-grid",rD="data-gallery-tile";function LGe(e,t){let[o,n]=nD(null);return Xue(()=>{let r=e.current,a=r?.closest(`[${Vu}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${rD}]`)),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 fd={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},IGe=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),Jue=Array.from({length:6},IGe);function FGe(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=NGe(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 ng({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:w}=Yue(N1),b=FGe(a),x=Ku()&&!f,v=!x&&!BGe(b),k=b.photos??(b.imageSrc?[b.imageSrc]:[]),S=RGe(null),P=_Ge(ne=>{S.current=ne},[]),E=LGe(S,e),C=Yue(aD),T=C?.report,R=r?.id,H=r?.tag??"",L=r?.name??"";OGe(()=>{if(!T||!R)return;let ne={id:R,tag:H,name:L};return T(ne),()=>T(ne,!0)},[T,R,H,L]);let N=(R?C?.positionOf(R):null)??E,O=e&&(!!t||!!d),[F,V]=nD(!1),[$,j]=nD(0),Y=!!R&&!!C&&C.walkCount>1,z=ne=>{let de=$+ne;if(Y&&(de<0||de>=k.length)){V(!1),C.walk(R,ne);return}j((de+k.length)%k.length)},X=()=>z(-1),Z=()=>z(1),B=k.length>1||Y,I=C?.opening;Xue(()=>{!I||I.id!==R||(j(I.at==="last"?Math.max(0,k.length-1):0),V(!0))},[I,R]);let G=k[$]??b.imageSrc??"",Q=k.slice(1),K=h?Eo("div",{className:`block w-full min-w-0 ${U0}${i?` ${zm}`:""}`,children:Eo(Ue,{ownerId:w??"GalleryB",ownerType:"GalleryB",Template:h,rows:[{key:R??b.imageSrc??"tile",image:b.imageSrc??"",tag:b.process,number:N?eD(N.index,N.total):"",eyebrow:b.car,name:b.wheel,meta:b.finish,href:b.href??""}],items:[{hoverMedia:Q.length?{photos:[{finish:"",items:Q.map(ne=>({url:ne,kind:"image"}))}]}:null}],previewHover:O,fallback:null,children:ne=>ne})}):Eo(tD,{build:b,forceHover:O,alwaysShowOverlay:g,index:N?.index,total:N?.total,ratio:o,captionPlace:n,display:c,displayPhone:p,styleOwner:m,editing:e});return ga($w,{children:[e?Eo(M,{as:"div",ref:P,[rD]:"",className:"block w-full text-left",children:K}):Eo(M,{as:"button",ref:P,[rD]:"",type:"button","aria-label":x?`Open ${b.car||"build"} on ${b.wheel||"wheel"}`:jue(b),onClick:()=>{j(0),V(!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:K}),Eo(Qp,{open:F,onClose:()=>V(!1),label:x?`${b.car} on ${b.wheel}`:jue(b),onPrev:B?X:void 0,onNext:B?Z:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:ga("div",{onClick:ne=>ne.stopPropagation(),className:`relative grid w-[min(1800px,100%)] max-h-[calc(100vh-48px)] ${v?"grid-cols-1":"grid-cols-[1.4fr_1fr]"} overflow-hidden border border-line bg-bg max-view-desktop:grid-cols-1 max-view-desktop:overflow-auto`,style:{boxShadow:"0 60px 120px -20px color-mix(in srgb, var(--sf-shadow-color, #141416) 70%, transparent)"},children:[Eo($u,{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:z5},children:"\u2715"}),ga("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[G&&Eo("img",{...fo(G,{fallbackWidth:1280}),sizes:AGe,alt:`${(x?b.car:b.wheel||b.car)||"Photo"} \u2014 ${$+1} of ${k.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},G),B&&ga($w,{children:[Eo("button",{type:"button","aria-label":"Previous photo",onClick:X,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"}),Eo("button",{type:"button","aria-label":"Next photo",onClick:Z,className:"absolute right-4 top-1/2 flex h-16 w-16 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg-dim/40 bg-overlay-scrim/40 font-mono text-[length:var(--size-label,24px)] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u25B7"}),k.length>1&&ga("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:[$+1," / ",k.length]})]})]}),x?ga("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[b.process&&Eo("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:A(b.process)}),b.wheel&&Eo("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(b.wheel,!1)}),b.car&&ga("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",Eo("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:A(b.car,!0)})]}),ga("dl",{className:"mt-3 grid grid-cols-[auto_1fr] gap-x-7 gap-y-[18px] border-y border-line py-[30px] font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.22em]",children:[b.wheel&&ga($w,{children:[Eo("dt",{className:"text-fg-dim",children:"Wheel"}),Eo("dd",{className:"text-fg",children:A(b.wheel)})]}),b.process&&ga($w,{children:[Eo("dt",{className:"text-fg-dim",children:"Process"}),Eo("dd",{className:"text-fg",children:A(b.process)})]}),b.finish&&ga($w,{children:[Eo("dt",{className:"text-fg-dim",children:"Finish"}),Eo("dd",{className:"text-fg",children:A(b.finish)})]}),b.car&&ga($w,{children:[Eo("dt",{className:"text-fg-dim",children:"Vehicle"}),Eo("dd",{className:"text-fg",children:A(b.car)})]})]}),ga("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[ga(Le,{href:b.href||"/wheels",onClick:()=>V(!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:[Eo("span",{children:"View product"}),Eo("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),ga(Le,{href:s,onClick:()=>V(!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:[Eo("span",{children:"See more builds"}),Eo("span",{children:"\u2192"})]}),ga(Le,{href:l,onClick:()=>V(!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:[Eo("span",{children:"Submit your build"}),Eo("span",{children:"\u2192"})]})]})]}):!v&&Eo(HGe,{build:b})]})})]})}function Que(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function BGe(e){return!!e.wheel||Que(e).length>0}function jue(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function HGe({build:e}){let t=e.wheel,o=Que(e);return ga("div",{className:"flex flex-col gap-[24px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[t&&Eo("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=>Eo("p",{className:"text-[length:var(--size-body,18px)] leading-[1.5] text-fg",children:A(n)},n))]})}import{createContext as GGe,useContext as $Ge,useEffect as O1,useId as KGe,useState as Pr,useSyncExternalStore as VGe}from"react";var DGe=14,MGe=3;function zGe(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function WGe(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),zGe(o)}async function efe(e,t,o={}){let n=o.days??DGe,r=o.read??Ph.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=WGe(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>=MGe)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as tfe,formatDateTime as iD,formatTime as rfe}from"efficient-shell/format";var UGe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},ofe={weekday:"long",day:"numeric",month:"long",year:"numeric"},afe={hour:"numeric",minute:"2-digit"},nfe={...afe,timeZoneName:"short"};function sD(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function lD(e,...t){let o=cl(...t);return!o||!sD(e)?"":rfe(e,{locale:_6(),timeZone:o})}function dD(e,...t){let o=typeof e=="string"?{start:e}:e,n=cl(...t),r=sD(o.start);if(!n||!r)return"";let a=_6(),i=o.end?sD(o.end):null;if(!i||i.getTime()<=r.getTime())return iD(o.start,{locale:a,timeZone:n,style:UGe,zoneName:"short"});let s=iD(o.start,{locale:a,timeZone:n,style:ofe,clock:afe}),d=tfe(o.start,n)===tfe(o.end,n)?rfe(o.end,{locale:a,timeZone:n,clock:nfe}):iD(o.end,{locale:a,timeZone:n,style:ofe,clock:nfe});return`${s} \u2013 ${d}`}function W5(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as YGe,userToday as jGe,userZone as qGe}from"efficient-shell/format";import{jsx as o$e}from"react/jsx-runtime";var sfe=GGe(null);function Yu(){let e=$Ge(sfe);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var cD=[{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:""}],XGe=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function ife(e,t){return{timezone:"",slots:t?XGe.flatMap(({hour:n,minute:r})=>YGe(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var pD={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function ZGe(e){let t=String(e?.slots[0]?.start??"");return t?{...pD,startAt:t}:pD}function lfe(e){return e.bookingNumber===pD.bookingNumber}function JGe(e,t){return e&&t?.length===0}function QGe(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!W5(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function e$e(){return()=>{}}function t$e(){return null}function dfe({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=KGe(),r=VGe(e$e,jGe,t$e)??"",[a,i]=Pr(),[s,l]=Pr(""),[d,c]=Pr(""),[p,m]=Pr(r),[f,g]=Pr(r),[h,w]=Pr(!1),[b,y]=Pr(null),[x,v]=Pr(),[k,S]=Pr(""),[P,E]=Pr(""),[C,T]=Pr(""),[R,H]=Pr(""),[L,N]=Pr(""),[O,F]=Pr(()=>D6()),[V,$]=Pr(null),[j,Y]=Pr(!1),[z,X]=Pr(!1),[Z,B]=Pr(null),[I,G]=Pr("");O1(()=>{G(qGe()??"")},[]),O1(()=>{let he=!1;return Ph.listServices().then(Re=>{if(he)return;let Be=x_(Re);i(Be),l(Re.currency),c(re=>re||Be[0]?.id||"")}).catch(()=>{he||i([])}),()=>{he=!0}},[]),O1(()=>{r&&(m(he=>he||r),g(he=>he||r))},[r]),O1(()=>{if(h||!d||!r)return;let he={aborted:!1};return S(""),v(void 0),B(null),y(null),Y(!0),efe(d,r,{signal:he}).then(Re=>{if(!he.aborted){if(Re.outcome==="found"){m(Re.date),g(Re.date),v(Re.availability);return}y(Re.outcome==="noneInWindow"?`No times are available in the next ${Re.days} days.`:"We couldn't load available times. Please try again.")}}).finally(()=>{he.aborted||Y(!1)}),()=>{he.aborted=!0}},[h,d,r]),O1(()=>{if(!h||!d||!p)return;let he=!1;return S(""),v(void 0),B(null),y(null),Y(!0),Ph.getAvailability(d,p).then(Re=>{he||(v(Re),Re.slots.length===0&&y("No times are available on this date."))}).catch(()=>{he||y("We couldn't load available times. Please try again.")}).finally(()=>{he||Y(!1)}),()=>{he=!0}},[p,h,d]);let Q=a?.find(he=>he.id===d),K=Q?.depositAmountDue!=null,ne=QGe({editing:e,submitting:z,hasService:!!Q,hasDay:!!p,selectedStart:k,name:P,email:C,requiresPayment:K},Date.now());async function de(he){if(he.preventDefault(),!(!ne||!Q)){X(!0),B(null);try{let Re=await Ph.create({serviceId:Q.id,start:k,customer:{name:P.trim(),email:C.trim(),phone:R.trim()},notes:L.trim(),idempotencyKey:O,customerTimezone:I});$(Re),F(D6())}catch(Re){B(Re instanceof ar&&Re.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),Re instanceof ar&&Re.status===409&&(S(""),Ph.getAvailability(Q.id,p).then(v).catch(()=>{}))}finally{X(!1)}}}let ke=JGe(e,a),ot=ke?ife(p,I):void 0,be=t&&!V?ZGe(ot??ife(p,I)):null;return o$e(sfe.Provider,{value:{fieldPrefix:n,editing:e,services:ke?cD:a,currency:ke?"AUD":s,serviceId:ke?cD[0].id:d,setServiceId:c,service:ke?cD[0]:Q,requiresPayment:ke?!1:K,date:p,earliestDate:f,setDate:m,setDateTouched:w,availability:ot??x,loadingSlots:ke?!1:j,noSlotsMessage:b,selectedStart:ot?ot.slots[0]?.start??"":k,setSelectedStart:S,customerTimezone:I,name:P,setName:E,email:C,setEmail:T,phone:R,setPhone:H,notes:L,setNotes:N,confirmation:V??be,submitting:z,error:Z,canSubmit:ke?!1:ne,handleSubmit:de,sample:!!ke},children:o})}import{jsx as U5,Fragment as cfe,jsxs as pfe}from"react/jsx-runtime";var mfe=`sf-button group inline-flex items-center justify-center gap-2.5 border ${Goe} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,ufe={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 ba(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?mfe.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):mfe} ${ufe[t]??ufe.primary} ${a??""}`,h=n?pfe(cfe,{children:[o!==null&&U5("span",{"aria-hidden":!0,className:"inline-flex",...l,children:o??"\u2192"}),d]}):pfe(cfe,{children:[d,o!==null&&U5("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",...l,children:o??"\u2192"})]});return c?U5(Nt,{href:c,className:g,style:i,newTab:p?!0:"auto",...m?{hrefRewrite:m}:{},...s,children:h}):U5("button",{type:"button",className:g,style:i,...f,children:h})}import{jsx as n$e}from"react/jsx-runtime";var A1=e=>n$e("div",{className:"grid bg-bg",children:e});import{jsx as co,jsxs as hd}from"react/jsx-runtime";var L1="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 r$e(e,t){let o=Number(e);if(o===0)return Ch;try{return sie(o,t)}catch{return`${t} ${e}`}}var ffe={selected:!0};function hfe(e,t){return({index:o})=>t?{[SP]:TP(e,o)}:{}}var I1="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function mD({number:e,children:t}){return hd("div",{className:"mb-4 flex items-center gap-3",children:[co("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}),co("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 G5({eyebrow:e,heading:t,intro:o}){return hd("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&co("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&co("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()&&co("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function $5({style:e,owner:t}){let{fieldPrefix:o,services:n,currency:r,serviceId:a,setServiceId:i,requiresPayment:s,date:l,earliestDate:d,setDate:c,setDateTouched:p,availability:m,loadingSlots:f,noSlotsMessage:g,selectedStart:h,setSelectedStart:w,customerTimezone:b,editing:y}=Yu();if(!n)return null;let x=Date.now(),v=cl(b,m?.timezone??""),k=cl(m?.timezone??""),S=k&&k!==v?k:"",P=(m?.slots??[]).map(E=>({start:E.start,time:lD(E.start,v),businessTime:S?`${lD(E.start,S)} business`:"",passed:!y&&W5(E.start,x)}));return hd(M,{className:"flex flex-col gap-10",style:e,children:[hd("div",{children:[co(mD,{number:"01",children:"Choose a service"}),co("div",{className:"grid gap-3 sm:grid-cols-2",children:co(Ue,{ownerId:t.id,ownerType:t.type,slot:Yh,Template:t.serviceTemplate,rows:n.map(E=>({name:E.name,meta:`${E.durationMinutes} min \xB7 ${r$e(E.price,r)}`,description:E.description??""})),states:n.map(E=>E.id===a?ffe:void 0),actions:y?void 0:n.map(E=>({press:()=>i(E.id),label:E.name})),copyAttrs:hfe(Yh,y),fallback:null,wrapCopy:A1,children:E=>co(Lo,{children:E})})}),s&&co("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."})]}),hd("div",{children:[co(mD,{number:"02",children:"Choose a date and time"}),co(Wr,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:I1,children:co("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:E=>{p(!0),c(E.target.value)},className:L1,required:!0})}),co("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?co("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?co(Ue,{ownerId:t.id,ownerType:t.type,slot:jh,Template:t.timeTemplate,rows:P.map(E=>({time:E.time,businessTime:E.businessTime})),states:P.map(E=>E.start===h&&!E.passed?ffe:void 0),actions:y?void 0:P.map(E=>({press:()=>w(E.start),label:E.time,disabled:E.passed})),copyAttrs:hfe(jh,y),fallback:null,wrapCopy:A1,children:E=>co(Lo,{children:E})}):g?co("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",role:"status",children:g}):null}),v&&!f&&!!m?.slots.length&&hd("p",{className:"mt-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,10px)] uppercase tracking-[0.16em] text-fg-dim",children:["Times shown in ",v,S?` \xB7 business timezone ${S}`:""]})]})]})}function K5({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}=Yu();return hd(M,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[co(mD,{number:"03",children:"Your details"}),hd("div",{className:"flex flex-col gap-4",children:[co(Wr,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:I1,children:co("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:h=>a(h.target.value),className:L1,required:!0})}),co(Wr,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:I1,children:co("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:h=>s(h.target.value),className:L1,required:!0})}),co(Wr,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:I1,children:co("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:h=>d(h.target.value),className:L1})}),co(Wr,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:I1,children:co("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:h=>p(h.target.value),className:`${L1} resize-y`})})]}),f&&co("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}),co(ba,{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 V5({successMessage:e}){let{confirmation:t,customerTimezone:o}=Yu();if(!t)return null;let n=cl(t.customerTimezone,o,t.timezone),r=cl(t.timezone),a=r&&r!==n?r:"";return hd("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[hd("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),co("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),co("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:dD(t.startAt,n)}),a&&hd("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",dD(t.startAt,a)]}),(e??"").trim()&&co("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),co(ba,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!lfe(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as Kw}from"react/jsx-runtime";var gfe=["head","booking","details","confirm"],bfe={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function uD({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}=Yu(),m=mpe(d);return e==="head"?Kw(M,{className:"min-[960px]:col-span-2",style:m,children:Kw(G5,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?Kw(M,{className:"min-[960px]:col-span-2",style:m,children:Kw(V5,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?Kw($5,{style:m,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?Kw(K5,{buttonLabel:s,style:m}):null}import{useEffect as wfe,useState as ju}from"react";import{jsx as Vw,jsxs as i$e}from"react/jsx-runtime";function Rc(e,t){let[o,n]=ju(void 0),[r,a]=ju(0);return wfe(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return Io.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),wfe(()=>{if(t===void 0)return U_(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var a$e="Something went wrong \u2014 your submission wasn't sent. Please try again.";function Yw(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function qu({form:e,formSlug:t,editing:o=!1}){let[n,r]=ju({}),[a,i]=ju(""),[s,l]=ju(!1),[d,c]=ju(!1),[p,m]=ju(null),[f,g]=ju(null);async function h(w){if(w.preventDefault(),!(o||s||!e||!t)){l(!0),g(null);try{let b=e.fields.map(x=>({fieldKey:x.key,value:n[x.key]??""})),y=await Io.submitForm(t,{answers:b,...a?{company:a}:{}});m(y?.account??null),c(!0)}catch{g(a$e)}finally{l(!1)}}}return{valueOf:w=>n[w]??"",set:(w,b)=>r(y=>({...y,[w]:b})),honeypot:a,setHoneypot:i,submitting:s,done:d,account:p,error:f,handleSubmit:h}}function jw({value:e,onChange:t}){return Vw("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:o=>t(o.target.value)})}function Xu({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"?Vw("textarea",{required:e.required,rows:r,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l}):e.type==="select"?i$e("select",{required:e.required,value:t,onChange:d=>o(d.target.value),className:n,...l,children:[Vw("option",{value:"",children:s||"Select\u2026"}),e.options.map(d=>Vw("option",{value:d,children:d},d))]}):e.type==="checkbox"?Vw("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:d=>o(d.target.checked?"true":""),className:n}):Vw("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 xl,jsxs as F1}from"react/jsx-runtime";function s$e(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function xfe({eyebrow:e,title:t}){return F1("div",{className:"flex flex-col gap-4",children:[e&&xl(lt,{text:e,scaled:!1}),t&&xl("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 Y5({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return F1("div",{className:"flex flex-col gap-8",children:[e&&Ft(e).map((l,d)=>xl("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:A(l)},d)),a&&(n?r.done?xl("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:Yw(n)}):F1("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",s$e(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?F1("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:[xl(Xu,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),F1("span",{children:[l.label,l.required?xl("span",{className:"text-accent",children:" *"}):null]})]},l.key):xl(Xu,{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)}),xl(jw,{value:r.honeypot,onChange:r.setHoneypot}),r.error&&xl("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:r.error}),xl("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":A(t||Ut.buttonText)})]}):xl("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&&xl("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:A(o)})]})}var j5=["field","tick","thanks"],yfe={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},q5={field:"styleField",tick:"styleTick",thanks:"styleThanks"},l$e={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 d$e(e){return typeof e=="string"&&R0.includes(e)?e:null}function vfe(e){let t={};for(let o of j5){let n=d$e(e[q5[o]]);n&&Object.assign(t,Lu(n,l$e[o]))}return t}import{jsx as X5}from"react/jsx-runtime";var kfe=["head","form"],Sfe={head:"Head",form:"Form"};function fD({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=Rc(i,s),p=qu({form:c,formSlug:i,editing:l}),m=vfe(d);return e==="head"?X5(M,{as:"div",style:m,children:X5(Mt,{look:"statement",num:t,title:o})}):X5(M,{as:"div",style:m,children:X5(Y5,{body:n??"",buttonLabel:r??"",consent:a??"",form:c,submission:p,showForm:!!c||l,resolving:c===void 0,editing:l})})}var c$e={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>gfe.map(e=>({region:e,name:bfe[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:()=>kfe.map(e=>({region:e,name:Sfe[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:()=>Jue.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};yte(c$e);import{jsx as Tfe}from"react/jsx-runtime";var p$e={body:"text-[length:var(--size-body,17px)]"},em=5;function qw({rating:e}){let t=Math.min(em,Math.max(0,Math.round(e)));return Tfe(M,{role:"img","aria-label":`${t} out of ${em} stars`,className:`flex gap-1 ${p$e.body} leading-none`,children:Array.from({length:em}).map((o,n)=>Tfe("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var hD="mx-auto max-w-[var(--sf-site-width,1600px)]",m$e=[/^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 Efe(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function gD(e){return e.split(/\s+/).filter(t=>t&&!m$e.some(o=>o.test(Efe(t)))).join(" ")}var u$e=new Set(["max-view-desktop","max-view-wide"]);function f$e(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 Xw(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=Efe(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?f$e(l[1]):void 0;d!==void 0&&(i?u$e.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as h$e,jsx as g$e}from"react/jsx-runtime";function bD({inBox:e,atTop:t,anyBox:o=!1}){let n=ru(),r=xC();return g$e(h$e,{children:n||o&&r?e:t})}import{createContext as Pfe,useContext as xD}from"react";import{Fragment as w$e,jsx as wD}from"react/jsx-runtime";var b$e={atTop:null,inBox:null},yD=Pfe(b$e);function Z5({pad:e,children:t}){return wD(yD.Provider,{value:e,children:t})}var lr=()=>xD(yD).atTop,Cfe=()=>xD(yD),_fe=Pfe(void 0);function Rfe({pads:e,children:t}){return e?wD(_fe.Provider,{value:e,children:t}):wD(w$e,{children:t})}var Nfe=()=>xD(_fe);import{jsx as B1}from"react/jsx-runtime";function yt({className:e,capped:t=!1,column:o=Ci,style:n,defaults:r,id:a,attrs:i,rootRef:s,inAnyBox:l=!1,padOnColumn:d=!1,children:c}){let p=me(),m=Cfe(),f=gD(e),g=o===null?"":gD(o),{className:h,style:w,...b}=Te(f,m.inBox,n),y=B1(M,{as:"section",ref:s,...i,...b,className:h||void 0,style:w,id:a,children:g?B1("div",{className:g,children:c}):c}),x=r?{...r,...n}:n,v=d?null:m.atTop,k=d?m.atTop:null,{className:S,style:P,...E}=Te(t?`${hD} ${e}`:e,v,x),C=B1(M,{as:"section",ref:s,...i,...E,className:S,style:P,id:a,children:o===null?c:B1("div",{...Te(pe(o,p),k),children:c})});return B1(bD,{inBox:y,atTop:C,anyBox:l})}import{Fragment as y$e,jsx as tm,jsxs as J5}from"react/jsx-runtime";var Zw={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)]"},x$e="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))]",vD="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 kD({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:J5(yt,{className:"relative z-[2] border-t border-line bg-surface",column:l?vD:x$e,padOnColumn:!0,children:[l?null:J5(y$e,{children:[(t??"").trim()&&tm(lt,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&tm("h2",{className:`mb-12 font-heading2 ${Zw.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${Zw.headingMediumUpTo800}`,children:ee(o??"",!1)})]}),tm("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=>J5("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&&tm(qw,{rating:c.rating}),(c.title??"").trim()&&tm("h3",{className:`font-display ${Zw.bodyLarge} font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg`,children:c.title}),tm("div",{className:`flex-1 font-serif ${Zw.bodySmall} leading-[1.65] text-fg-dim`,children:Ft(c.quote).map((p,m)=>tm("p",{className:m?"mt-3":"",children:p},m))}),J5("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-5",children:[tm("span",{className:`font-mono ${Zw.label} uppercase tracking-[0.22em] text-fg`,children:c.name}),tm("span",{className:`font-mono ${Zw.label} uppercase tracking-[0.18em] text-fg-dim`,children:c.meta??""})]})]},c.key))})]})}var Ofe=Xw(vD),SD={top:84,bottom:Ofe.bottom,topPhone:84,bottomPhone:Ofe.bottomPhone},Afe=SD,[v$e,k$e]=Fv("Testimonials"),S$e={type:$s,props:{...Me,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[Ks]:[{type:"Text",props:{...We,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Oe("quote",Et,{size:16,lineHeight:1.6}),{type:$s,props:{...Me,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[Ks]:[Oe("name",We,{...ql,weight:500,letterSpacing:.04}),Oe("role",Et,{textStyle:"body-5"})]}}]}},T$e={name:"Testimonials",boxProps:e=>({...Xd,direction:"column",gap:44,sectionBorder:{top:1},...Ym(e,Afe)}),box:[...yp,...mh(Afe)],parts:[{kind:"group",name:"Heading",props:{...Me,gap:16},parts:[{...v$e,props:We},{...k$e,props:We,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[S$e]}}],site:uJ("title"),drop:{...Zd,...Jd,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"}};On({Testimonials:T$e});var $r={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 eN,tabletKey as TD}from"efficient-easel/draw";var E$e={textStyle:"body-5",...uo("label",14),letterSpacing:.05,lineHeight:1.5},P$e={type:$s,props:{...Me,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[eN("share")]:"content",[eN("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[Ks]:[Oe("label",Et,{...Na(14),letterSpacing:.05,lineHeight:1.5}),Oe("value",{...We,align:"right"},{...E$e,align:"right"})]}},Lfe={[fh]:BP},C$e=["dynamic","source","finish","size","wheel"],H1=el("SpecTable",{slots:{template:[P$e]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...Me,direction:"row",share:"content",gap:48,[TD("gap")]:80,[eN("gap")]:80,...Lfe}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),_$e=H1.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(C$e.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),Q5=Xw($r.ownBox),R$e={...H1,parts:_$e,boxProps:(e,t)=>{let o=typeof H1.boxProps=="function"?H1.boxProps(e,t):H1.boxProps;return{...o,sectionPaddingBottom:Q5.bottom,sectionPaddingBottomPhone:Q5.bottomPhone,...Lfe,[TD("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[TD("sectionPaddingBottom")]:Q5.bottomPhone,[eN("gap")]:36,...Q5.line?{sectionBorder:NP({bottom:1})}:{}}}};On({SpecTable:R$e});On({ProductGrid:el("ProductGrid",{slots:{[Rt]:[Vpe()]},pressHeading:!0})});On({Events:el("Events",{slots:{[Rt]:KH()},coreProps:{sectionAccent:XE},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});On({Collections:el("Collections",{slots:{[Rt]:[VH()]},roomBelow:Xde,pressHeading:!0})});On({GalleryB:el("GalleryB",{slots:{[Rt]:[YH()]},roomBelow:{bottom:pi.bottom,bottomPhone:OR},pressHeading:!0})});On({[Sr]:{name:"Product hero",box:[...MX],boxProps:{direction:"column",gap:0,gapPhone:0,...ft(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[Sw]:Tw},slots:e=>({[Rt]:wH(e)})}]}});var ED=Xw($r.ownBox);On({FitmentTable:el("FitmentTable",{slots:{[l5]:[Ope()],[Iu]:[Ape()]},roomBelow:{bottom:ED.bottom,bottomPhone:ED.bottomPhone},boxProps:ED.line?{sectionBorder:NP({bottom:1})}:{},pressHeading:!0})});var N$e=e=>({type:$s,props:{...Me,name:"Row",mirrorCards:e?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[Ks]:[{type:$s,props:{...Me,name:"Words",direction:"column",gap:16},slots:{[Ks]:[Oe("eyebrow",We,{...Na(13),color:"accent"}),Oe("title",We,{textStyle:"heading-2",...uo("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Oe("copy",Et,{textStyle:"body-1",...uo("body",15),lineHeight:1.6})]}},{type:$s,props:{...Me,name:"Picture",direction:"column",gap:12},slots:{[Ks]:[{type:"ImageBlock",props:{[Ms]:"image",aspect:"1/1",fit:"contain"}},Oe("tag",{...Et,align:"right"},{...Na(11),align:"right"})]}}]}}),O$e={name:"Feature Rows",boxProps:{...Xd,...hJ,direction:"column",gap:0},box:yp,parts:[{kind:"core",keep:"rest",slots:e=>({template:[N$e(e.startLeft===!0)]})}]};On({DetailRows:O$e});import{phoneKey as CD}from"efficient-easel/draw";var oN=e=>[...yp.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>RP(t,n)],...mh(e)],_D=(e,t,o)=>(n,r)=>({...Xd,sectionAccent:RP(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...Ym(n,e)}),RD=(e,t,o)=>({kind:"text",key:e,role:"heading",props:We,style:{textStyle:"heading-2",...uo("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),ND=(e,t,o={})=>({kind:"group",name:"Heading",props:{...Me,gap:e,gapPhone:e,...o},parts:t}),OD=(e={})=>({kind:"core",keep:"rest",props:CP,...e}),tN=SD,[A$e]=Fv("ReviewForm"),L$e=()=>({name:"Review Form",boxProps:_D(tN,48,32),box:oN(tN),parts:[ND(16,[{...A$e,props:We},RD("title",1,-.02)]),OD()],pressKeepsEmpty:["eyebrow","title"],drop:{...Zd,...Jd,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[I$e]=Fv("Reviews"),PD=e=>({...Na(12),letterSpacing:e}),F$e={type:$s,props:{...Me,name:"Card",gap:16,...ft(40,40,32,32),sectionAccent:0},slots:{[Ks]:[{type:"RatingBlock",props:{[Ms]:"rating"}},Oe("title",We,{textStyle:"heading-1",...uo("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Oe("quote",Et,{textStyle:"body-1",...uo("body",15),lineHeight:1.65}),{type:$s,props:{...Me,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[CD("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[Ks]:[Oe("name",We,PD(.22)),Oe("dateLabel",{...Et,align:"right"},{...PD(.18),align:"right"}),Oe("role",{...Et,align:"right"},{...PD(.18),align:"right"})]}}]}},B$e=()=>({name:"Reviews",boxProps:_D(tN,48,32),box:oN(tN),parts:[ND(16,[{...I$e,props:We},RD("title",1,-.02)]),OD({slots:{template:[F$e]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...Zd,...Jd,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"}}),Ife={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},H$e=()=>({name:"Booking Form",boxProps:_D(Ife,40,40),box:oN(Ife),parts:[ND(16,[_P("eyebrow",{...uo("label",12),weight:600,letterSpacing:.24,color:"accent"}),RD("heading",.98,-.025),{kind:"text",key:"intro",props:{...Et,maxWidth:660},style:{textStyle:"heading-1",...uo("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),OD()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...Zd,...Jd}}),Ffe={top:88,bottom:88,topPhone:64,bottomPhone:64},D$e=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...Xd,direction:"column",align:"center",gap:20,gapPhone:20,...Ym(e,Ffe)}),box:[...yp,...mh(Ffe)],parts:[{..._P("eyebrow"),props:{...We,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...We,align:"center",maxWidth:720},style:{textStyle:"heading-1",...uo("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...We,align:"center",maxWidth:560},style:{textStyle:"body-1",...uo("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...Me,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[CD("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...mJ,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...Gv,align:"center",icon:"none"},style:{...Fm(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...Zd,...Jd}}),Bfe={top:60,bottom:0,topPhone:60,bottomPhone:0},M$e=()=>({name:"Contact Form",boxProps:(e,t)=>({...Xd,sectionAccent:RP(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...Ym(e,Bfe)}),box:oN(Bfe),parts:[{kind:"group",name:"Header",props:{...Me,direction:"row",align:"center",share:"content",phoneRow:2,[CD("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[_P("routingNumber"),{kind:"text",key:"routingTagline",props:Et,style:{textStyle:"heading-1",...uo("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:fJ(e.sectionAccent??0,t)})}}],drop:{...Zd,...Jd}});On({ContactRouting:M$e(),ReviewForm:L$e(),AppointmentBooking:H$e(),Reviews:B$e(),CheckoutCTA:D$e()});var Hfe={top:40,bottom:40,topPhone:40,bottomPhone:40},Dfe={textStyle:"heading-1",...WJ("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},AD=["heading","intro"],Mfe=[Rt,za,Wa,Ua];function z$e(e,t){let o=(t?D0:Rq)(To,e);return Object.fromEntries(Mfe.map(n=>[n,o[n]]))}var W$e=()=>({name:"List",boxProps:e=>({...Xd,direction:"column",gap:24,gapPhone:24,...Ym(e,Hfe)}),box:[...yp,...mh(Hfe)],parts:[{kind:"group",name:"Heading",props:{...Me,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...We,tag:"h1"},style:Dfe,when:e=>!CF(e)},{kind:"text",key:"heading",role:"heading",props:{...We,tag:"h2"},style:Dfe,when:CF},{kind:"text",key:"intro",role:"body",props:Et,style:{textStyle:"body-1",...uo("body",15)}}]},{kind:"core",keep:"rest",props:CP,derive:{reads:[...Mfe],props:(e,t)=>z$e(e,t.press===!0)}}],pressKeepsEmpty:AD,drop:{...Zd,...Jd,[jP]:"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"}});On({AlloyWheelsListing:W$e()});var zfe={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as U$e,useContext as G$e}from"react";function ht(e){return Bt}import{Fragment as K$e,jsx as Jw}from"react/jsx-runtime";var $$e=ht("ProductCard")("buy"),Po={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)]"},Qw=U$e("catalog");function ys(){return G$e(Qw)==="catalog"}function Zu({children:e}){let t=ys();return Jw(K$e,{children:e??(t?Jw(M,{"aria-hidden":!0}):null)})}function ex({children:e}){return Jw(Zu,{children:e?Jw(M,{children:e}):null})}function nN({children:e}){return Jw(Zu,{children:e?Jw(M,{className:"[.sf-card-rows>*>&]:self-end",...$$e,children:e}):null})}var Wfe={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:NE(Po.label),writable:!0,sized:!0}},Ufe={sku:{label:"SKU",follows:"Label",builtIn:NE(Po.label),writable:!0,sized:!0}},Gfe={name:{label:"Name",follows:"Heading 3",builtIn:NE(Po.headingSmall2),writable:!0,sized:!0}};oae({ProductPrice:zfe,ProductEyebrow:Wfe,ProductName:Gfe,ProductSku:Ufe});function tx(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as V$e}from"react/jsx-runtime";import{OpacityIcon as Y$e}from"efficient-easel/icons";import{group as rN}from"efficient-easel/screen/lib/document/box-fields";var $fe={fields:{_gContent:rN("Content"),eyebrow:U("Eyebrow",ou.eyebrow),title:q("Heading",ou.title),body:q("Body",ou.body),_gBackground:rN("Background image"),imageSrc:Qe("Image","image/*"),overlay:ae("Overlay",V$e(Y$e,{}),0,100,5,60,"%"),_gButton:rN("Button"),...bl,_gLayout:rN("Layout")}};import{jsx as D1}from"react/jsx-runtime";import{GroundIcon as Vfe,ListIcon as j$e}from"efficient-easel/icons";function Yfe(e){let t=e?.data?.root,o=Eee(t?.props)??"";return o&&XF(o,"text").length?o:""}var LD="outsideCardTemplate",q$e={not:{context:LD,is:!0}},$a={[LD]:(e,t)=>{let o=hp(t.appState,e.props?.id);if(o!==void 0)return o===null&&!Yfe(t.appState)},[Aj]:(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 Kr(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?D1(da,{noun:"link"}):t==="colour"?D1(Vfe,{}):D1(j$e,{}),a={...le(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return at(a,q$e)}function Nc(){return Kr("Link from","link")}var X$e={any:[{field:Go,set:!1},{context:LD,is:!0,default:!0}]};function Ju(e){return at(e,X$e)}function M1(e){return e.kind==="link"?kr(J(e.label)):e.kind==="colour"?Z$e(e.label):e.multiline?je(e.label):xe(e.label)}function Z$e(e){return{type:"custom",render:({value:t,onChange:o})=>D1(Cne,{label:e,icon:D1(Vfe,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function J$e(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var Kfe=new WeakMap;function Ka(e,t,o){let n=Object.keys(e).filter(k=>J$e(e[k]));if(!n.length)return e;let r=t.props??{},a=hp(o.appState,r.id),i=typeof a?.type=="string"?a.type:"",s=a?q4(o.appState,r.id)??"":"",l=n.map(k=>typeof r[k]=="string"?r[k].trim():""),d=dt(a?.props),c=i===Br?hp(o.appState,a?.props?.id):null,p=c?q4(o.appState,a?.props?.id)??void 0:void 0,m=c?FE(a?.props,c.type,p):"",f=c?dt(c.props):"",g=c?`${String(c.type??"")}\0${f}\0${p??""}`:"",h=i===Br&&!c?JSON.stringify(a?.props?.[Pq]??null):"",w=a?"":Yfe(o.appState),b=[i,s,d,m,g,h,gE(),w,wee(),...l].join("\0"),y=Kfe.get(e);y||Kfe.set(e,y=new Map);let x=y.get(b);if(x)return x;let v={...e};return n.forEach((k,S)=>{let P=e[k],E=i===Br?ih(o.appState,a,P.cardRowKind):i?Oq(a,P.cardRowKind,s||void 0):XF(w,P.cardRowKind),C=P.cardRowKind==="link"&&!!i&&!E.length;if(!l[S]&&(C||(P.cardRowContent?!i||!E.length:!E.length&&!i&&w))){delete v[k];return}let T=l[S]&&!E.some(L=>L.key===l[S])?l[S]:"",R=P.cardRowKind==="list",H=(L,N)=>R&&N===0&&L.key!==l[S]?"":L.key;v[k]={...P,options:[...R?[]:P.options,...E.map((L,N)=>({label:L.label,value:H(L,N)})),...T?[{label:T,value:T}]:[]]}}),y.set(b,v),v}import{group as qfe}from"efficient-easel/screen/lib/document/box-fields";var aN={meta:"Trailing note"},jfe={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var Xfe={fields:{_gContent:qfe("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:J("Label"),href:kr(J("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:U("Trailing note",aN.meta),_gText:qfe("Text"),rowField:Kr("Shows","text")},resolveFields:(e,t)=>Ka(t.fields,e,t),showWhenFacts:$a};import{jsx as fi,jsxs as iKe}from"react/jsx-runtime";import{ButtonIcon as sKe,ButtonIconIcon as lKe,IconAfterTextIcon as dKe,IconBeforeTextIcon as cKe}from"efficient-easel/icons";import{SettingsField as pKe}from"efficient-easel/panel";import{useSelectedFields as nhe}from"efficient-easel/easel";import{buttonFieldSet as mKe}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as uKe}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as fKe,Segmented as hKe}from"efficient-shell/ui";function iN(e){return typeof e=="boolean"?e:!0}import{parseOption as Q$e}from"efficient-shell/format";var ID=["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"],eKe=["before","after","end"];function FD(e){return typeof e=="string"&&ID.includes(e)?e:void 0}function Zfe(e,t){return FD(e)??(iN(t)?"arrow-right":"none")}function z1(e){return Q$e(eKe,"after",e)}function Jfe(e,t){return z1(e)==="end"&&rg(t)==="fill"}function rg(e){return e==="fill"||e==="fixed"?"fill":"fit"}function Qfe(e,t,o,{atSectionLine:n=!1}={}){let r=rg(e);if(xr(o)){let i=rg(o),s=xr(t)?rg(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(xr(t)){let i=rg(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as dN}from"efficient-easel/screen/lib/document/style-fields";import{group as ehe}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as gKe}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as BD}from"react/jsx-runtime";import{LockIcon as tKe}from"efficient-easel/icons";import{FieldText as oKe}from"efficient-easel/fields";import{SettingsField as nKe}from"efficient-easel/panel";import{keptByRow as rKe}from"efficient-easel/screen/lib/document/style-fields";function aKe(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??Ioe}-words`;return BD(nKe,{label:u("Words"),icon:BD(tKe,{}),htmlFor:o,children:BD(oKe,{id:o,value:u("Set by country"),onChange:()=>{},readOnly:!0})})}}}function sN(e){return rKe(e)}function lN(e,t,o,n=[]){return GC(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?aKe():a]))}var HD=e=>LC(e==="none"?"no-symbol":e),bKe=ID.map(e=>({value:e,icon:e==="none"?roe(HD(e),fi(t6,{value:e})):HD(e)})),rhe=J("Button");function wKe({value:e,onChange:t}){let o=nhe(),n=o.values.href,r=typeof e=="string"?e:e&&typeof e=="object"&&"text"in e?String(e.text??""):"";return o.fields&&"href"in o.fields?fi(Uoe,{label:"Button",icon:fi(sKe,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):rhe.render({value:r,field:{label:"Button"},onChange:a=>t(cne(a))})}function xKe({value:e,onChange:t}){let o=nhe(),n=Zfe(e,o.values.arrow),r=z1(o.values.iconPosition),a=rg(o.values.widthFit)==="fill",i=HD("icon-at-end");return fi(pKe,{label:u("Icon"),icon:fi(lKe,{size:18}),value:n==="none"?void 0:fi(t6,{value:n}),children:iKe("div",{className:"flex items-center gap-2",children:[fi(fKe,{label:u("Icon"),value:n,options:bKe,onChange:t}),n!=="none"&&fi(hKe,{size:"sm",block:!0,label:u("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:fi(cKe,{size:16}),label:fi("span",{className:"sr-only",children:u("Icon before text")}),title:u("Icon before text")},{value:"after",icon:fi(dKe,{size:16}),label:fi("span",{className:"sr-only",children:u("Icon after text")}),title:u("Icon after text")},...a?[{value:"end",icon:i,label:fi("span",{className:"sr-only",children:u("Icon at the far end")}),title:u("Icon at the far end")}]:[]]})]})})}var the=()=>Q4(jn().theme),ohe=mKe({lengthUnits:RC,follows:{useFill:()=>the().fill,useText:()=>the().ink,useBorder:()=>{let[e]=ic("variant"),[t]=ic("buttonColor"),{theme:o}=jn(),n=p6({variant:e,buttonColor:t}).border.width,r=xr(t)??(e==="ghost"?Gq(o).text:Q4(o).fill);return{width:n,color:r}},useCorners:()=>qq(jn().cornerRadiusPx),useFillOpacity:()=>p6({variant:ic("variant")[0]}).fillOpacity},usePresets:boe,resetTo:e=>pne(e,u("Styles")),padding:{fallback:$oe,tablet:!0},phone:uKe,say:fb});function yKe(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var ahe={fields:{label:une(rhe,e=>fi(wKe,{value:e.value,onChange:e.onChange})),labelText:xne("label"),href:Ju({...Ve("Button link"),...dN("label")}),consentWords:sN("label"),_gButton:ehe("Button"),rowField:Kr("Shows","text"),[Go]:Nc(),...yKe(ohe,gKe.Design),_gStyle:ehe("Style"),variant:dN("buttonColor"),icon:{type:"custom",render:e=>fi(xKe,{value:e.value,onChange:e.onChange})},iconPosition:dN("icon"),arrow:dN("icon"),...ohe},resolveFields:(e,t)=>lN(Ka(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:$a};import{jsx as W1}from"react/jsx-runtime";import{AccentIcon as vKe,ColumnsIcon as dhe,StylesIcon as che}from"efficient-easel/icons";import{group as DD}from"efficient-easel/screen/lib/document/box-fields";import{newId as she}from"efficient-easel/data";function cN(e,{rows:t="items",label:o="title"}={}){let n=dt(e);return n?fp(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(on(r),a)}))}var ihe=new WeakMap;function pN(e,t){let o=ihe.get(e);o||ihe.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 lhe(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>she(t),enumerable:!0})}function mN(e,t="items"){if(!Array.isArray(e[t])||dt(e))return e;let o=e[t],n=typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",r=c=>c&&typeof c=="object"&&typeof c.key=="string"?c.key:"",a=!!n&&!o.some(c=>r(c)===n),i=new Set,s=e.highlightedCard,l=!1,d=o.map((c,p)=>{if(!c||typeof c!="object")return c;let m=r(c);if(m&&!i.has(m))return i.add(m),c;let f=!m&&a&&n===String(p+1);if(m||f){let g=she("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 kKe}from"efficient-easel/data";var SKe=e=>kKe(e.template)&&e.template.length>0;function TKe(e,t){let o=SKe(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,pN(r,cN(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,CKe(r)]]:[[n,r]]))}var EKe=Object.fromEntries(Av("Cards").filter(e=>!e.everySource).map(e=>[e.key,M1(e)])),PKe=Object.fromEntries(Av("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,M1(e)])),phe=new WeakMap;function CKe(e){let t=phe.get(e);return t||phe.set(e,t={...e,arrayFields:EKe}),t}var mhe={fields:{_gSource:DD("Source"),dataSource:eo("Card content","Manual"),[Ab]:Lb(),_gContent:DD("Content"),eyebrow:U("Eyebrow",J0.eyebrow),eyebrowLook:le("Eyebrow style",W1(che,{}),[...Xs],vp("Cards")),title:q("Heading",J0.title),items:{type:"array",label:"Cards",arrayFields:PKe,defaultItemProps:lhe({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...gJ,highlightedCard:le("Highlighted card",W1(vKe,{}),[{label:"None",value:""}],""),highlightBadge:U("Highlight badge","Most popular"),_gStyle:DD("Style"),cardStyle:io("Card style",W1(che,{}),[{label:"Cards",value:"cards",picture:m6.cards},{label:"Label only",value:"label-only",picture:m6["label-only"]}],"cards",{columns:2,cell:vr}),columns:ae("Columns",W1(dhe,{}),2,4,1,3),fillLastRow:te("Last card fills its row",!1,W1(dhe,{}),"When the last row is short, its last card widens to fill it.")},resolveData:(e,t)=>{let o=t?.lastData?.props,n=Qre(e.props,o),r=_E(n),a=r===e.props?e:{...e,props:r},i=a.props,s=mN(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=it(to("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,st.Cards.headRows),n=e.props,r=TKe(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:xe("Feature label"),href:kr(J("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:vp("KeyFeatures")}}:{}}}};import{jsx as _Ke}from"react/jsx-runtime";import{StickyIcon as RKe}from"efficient-easel/icons";import{group as uhe}from"efficient-easel/screen/lib/document/box-fields";var fhe={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:Zo(kr(J("Active tab","All"))),_gLinks:uhe("Links"),links:{type:"array",label:"Right links",arrayFields:{label:J("Label"),href:kr(J("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:uhe("Style"),sticky:te("Stick to top",!0,_Ke(RKe,{}))}};import{jsx as NKe}from"react/jsx-runtime";import{StylesIcon as OKe}from"efficient-easel/icons";import{group as hhe}from"efficient-easel/screen/lib/document/box-fields";var AKe=[...GQ],ghe={fields:Pi({_gContent:hhe("Content"),eyebrow:U("Chip label",cb.eyebrow),title:q("Heading",cb.title),body:q("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:xe("Label"),value:J("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:U("Caption","Illustrative example"),_gStyle:hhe("Style"),chartStyle:io("Chart style",NKe(OKe,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:qC.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:qC.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:qC.donut}],"bars",{columns:3,cell:vr}),valueSuffix:Zo(U("Value suffix","%"))},AKe,Aa)};import{jsx as qKe}from"react/jsx-runtime";import{group as XKe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as tt,Fragment as zD,jsxs as gd}from"react/jsx-runtime";import{useId as LKe,useState as IKe}from"react";import{InspectorUpLevel as U1}from"efficient-easel/chrome";import{useEasel as FKe}from"efficient-easel/easel";import{ListField as yhe}from"efficient-easel/fields";import{SettingsField as vhe}from"efficient-easel/panel";import{ClockIcon as bhe,ContrastIcon as BKe,GlobeIcon as HKe,LinkIcon as DKe,LocationIcon as MKe,PhoneIcon as zKe,SquareIcon as WKe,TypeIcon as WD}from"efficient-easel/icons";import{useSectionOps as UKe}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as GKe}from"efficient-easel/draw";var UD=(e,t)=>t||e?mae(e,t):u("Ungrouped");function $Ke(e){let t=[];return e.forEach((o,n)=>{let r=pu(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 MD({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 khe={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"},KKe={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},She={...KKe,color:"var(--status-danger-soft-ink)"};function om({label:e,value:t,placeholder:o,textarea:n,icon:r,onChange:a,onBlur:i,onKeyDown:s}){let l=LKe();return tt(vhe,{label:e,icon:r??tt(WD,{}),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 VKe=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],YKe=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function whe({label:e,icon:t,options:o,value:n,onChange:r}){return tt(vhe,{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 xhe({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||En.mapTheme,a=En;return gd(zD,{children:[!o&&tt(MD,{children:u("Section")}),tt(om,{label:u("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),tt(om,{label:u("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),tt(om,{label:u("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:gd(zD,{children:[tt(MD,{children:u("City strip")}),tt(om,{label:u("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),tt(om,{label:u("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),tt(whe,{label:u("Shape"),icon:tt(WKe,{}),options:YKe,value:VP(e.imageShape),onChange:i=>t({imageShape:i})}),tt(MD,{children:u("Map & Theme")}),tt(whe,{label:u("Map theme"),icon:tt(BKe,{}),options:VKe,value:r,onChange:i=>t({mapTheme:i})})]})]})}function jKe({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((f,g)=>pu(f)===t?g:-1).filter(f=>f>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(pu).filter(f=>f!==t)),[d,c]=IKe(t),p=f=>o(e.map(g=>pu(g)===t?{...g,...f}:g)),m=()=>{let f=d;if(f!==t){if(l.has(f)){c(t);return}o(e.map(g=>pu(g)===t?{...g,group:f}:g)),a(f)}};return gd("div",{className:"sf-locations-view",children:[tt(U1,{inline:!0,name:u("Section"),onSelect:n,title:UD(t,s)}),tt(om,{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(om,{label:u("Group name"),value:s,placeholder:u("Shown beside the heading"),onChange:f=>p({groupName:f})}),tt(yhe,{label:u("Cities in this group"),noun:u("city"),items:i.map(f=>e[f]),onChange:f=>o(uae(e,t,f)),newItem:()=>({...C6,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(f,g)=>gd("button",{type:"button",style:khe,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:She,onClick:()=>{o(e.filter(f=>pu(f)!==t)),n()},children:nr("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function The({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=pae(),r=ure(),a=$Ke(o),{appState:i,selectedItem:s}=FKe(h=>h),l=UKe(),d=s?.props??{},c=h=>{if(!s)return;let w=(i.data.content??[]).findIndex(b=>b.props.id===s.props.id);w<0||l.replaceComponent(GKe,w,{type:s.type,props:{...s.props,...h}})},p=(h,w)=>t(o.map((b,y)=>y===h?{...b,...w}:b)),m=()=>{let h=new Set(a.map(y=>y.key)),w=a.length+1,b=`Group ${w}`;for(;h.has(b);)b=`Group ${++w}`;return b};if(n.level==="texts")return gd("div",{className:"sf-locations-view",children:[tt(U1,{inline:!0,name:u("Locations"),onSelect:()=>nd({level:"groups"}),title:u("Texts")}),tt(xhe,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let h=o[n.index];return h?gd("div",{className:"sf-locations-view",children:[tt(U1,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>nd({level:"city",index:n.index}),title:u("Image")}),tt(koe,{value:h.photo||"",onChange:w=>p(n.index,{photo:w}),label:"Image",accept:"image/*"})]}):f()}if(n.level==="map"){let h=o[n.index];return h?gd("div",{className:"sf-locations-view",children:[tt(U1,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>nd({level:"city",index:n.index}),title:u("Map")}),tt(r_,{value:h.geocode,onChange:w=>p(n.index,{geocode:w}),label:"Coordinates"}),tt(om,{label:u("Directions link"),icon:tt(DKe,{}),value:String(h.mapsUrl??""),onChange:w=>p(n.index,{mapsUrl:w})})]}):f()}if(n.level==="city"){let h=n.index,w=o[h];if(!w)return f();let b=pu(w),y=(v,k)=>p(h,{[v]:k}),x=(v,k,S,P=!1)=>tt(om,{label:k,icon:S,textarea:P,value:String(w[v]??""),onChange:E=>y(v,E)});return gd("div",{className:"sf-locations-view",children:[tt(U1,{inline:!0,name:UD(b,String(w.groupName??"")),onSelect:()=>nd({level:"group",key:b}),title:w.name||u("City")}),x("name",u("Location name"),tt(WD,{})),x("state",u("State / Province"),tt(WD,{})),x("country",u("Country"),tt(HKe,{})),x("address",u("Address"),tt(MKe,{}),!0),x("phone",u("Phone"),tt(zKe,{})),x("hours",u("Opening hours"),tt(bhe,{})),x("timezone",u("Timezone chip"),tt(bhe,{})),tt("div",{style:{marginTop:12},children:tt("button",{type:"button",style:She,onClick:()=>{t(o.filter((v,k)=>k!==h)),nd({level:"group",key:b})},children:u("Delete city")})})]})}if(n.level==="group")return a.some(h=>h.key===n.key)?tt(jKe,{cards:o,groupKey:n.key,onChange:t,onBack:()=>nd({level:"groups"}),onOpenCity:h=>nd({level:"city",index:h}),onNavigate:h=>nd({level:"group",key:h})},n.key):f();function f(){return gd("div",{className:"sf-locations-view",children:[tt(xhe,{props:d,setSection:c}),!r&&tt(zD,{children:g()})]})}function g(){return tt(yhe,{label:u("Locations"),noun:u("group"),items:a,onChange:h=>{let w=h.find(b=>!a.some(y=>y.key===b.key));t(fae(o,h.map(b=>b.key),b=>[{...C6,group:b,groupName:""}])),w&&nd({level:"group",key:w.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=>gd("button",{type:"button",style:khe,onClick:()=>nd({level:"group",key:h.key}),children:[tt("span",{style:{fontWeight:500},children:UD(h.key,h.name)}),gd("span",{style:{color:"var(--ink-faint)"},children:[nr("{n} city","{n} cities",h.indices.length)," \u203A"]})]})})}return f()}var Ehe={fields:{_gOffices:XKe("Offices"),dataSource:eo("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>qKe(The,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,o=t.locations??[];if(!FC(o))return e;let n=await BC(o,i=>{let s=YP(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(", ")}),{[fE]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>to("ContactLocations",t,e.props)};import{jsx as Phe}from"react/jsx-runtime";import{ClockIcon as ZKe,TagIcon as JKe}from"efficient-easel/icons";var QKe=[...qQ],Che={fields:Pi({title:U("Heading",RF.title),zeroText:Zo(U("At zero",RF.zeroText)),endsAt:Pne("Ends",Phe(ZKe,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:te("Unit labels",!0,Phe(JKe,{}))},QKe,Aa)};import{jsx as G1,jsxs as eVe}from"react/jsx-runtime";import{Suspense as tVe,lazy as oVe,useState as nVe}from"react";import{Button as rVe}from"efficient-shell/ui";import{CodeIcon as aVe}from"efficient-shell/icons/efficient";import{SettingsField as iVe}from"efficient-easel/panel";import{iconOf as sVe}from"efficient-easel/screen/lib/document/box-fields";var lVe=oVe(()=>import("./chunks/CustomHtmlCodeWindow-WDJYQRZA.js"));function dVe({value:e,onChange:t}){let[o,n]=nVe(!1);return eVe(iVe,{label:u("HTML"),icon:sVe(G1(aVe,{})),children:[G1(rVe,{variant:"secondary",onClick:()=>n(!0),children:u("Edit code")}),o?G1(tVe,{fallback:null,children:G1(lVe,{open:!0,onClose:()=>n(!1),value:typeof e=="string"?e:"",onChange:t})}):null]})}var _he={fields:{html:{type:"custom",label:"HTML",render:({value:e,onChange:t})=>G1(dVe,{value:e,onChange:t})}}};import{jsx as GD}from"react/jsx-runtime";import{StylesIcon as cVe,WeightIcon as pVe,WidthIcon as mVe}from"efficient-easel/icons";import{keptByRow as uVe}from"efficient-easel/screen/lib/document/style-fields";var fVe={any:[{field:"style",set:!1},{field:"style",is:Sh}]},hVe={not:{field:"style",is:"none"}},Rhe={fields:Fe({style:io("Style",GD(cVe,{}),Xoe.map(e=>({...e,picture:tne(e.value)})),Sh,{columns:3,cell:vr}),spacing:uVe("sectionPaddingTop"),thickness:ae("Thickness",GD(pVe,{}),1,8,1,1,m2),...od(m2,"thickness"),lengthPct:ae("Length",GD(mVe,{}),10,100,1,100,u2),...od(u2,"lengthPct")},[[["thickness"],fVe],[["lengthPct"],hVe]]),resolveFields:(e,{fields:t})=>{let o=YC[jC(e.props.spacing)],n=_p({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return g2(t,n)}};import{jsx as KD}from"react/jsx-runtime";import{HashIcon as gVe,StickyIcon as bVe,TargetIcon as wVe}from"efficient-easel/icons";import{group as Ohe,select as xVe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as ox}from"efficient-easel/screen/lib/document/device-fields";var $D={title:"On this page"},Nhe={label:"Contents",defaultProps:{title:$D.title,sticky:!0}};var Ahe={fields:{title:ox("desktop",U("Heading",$D.title)),_gList:ox("desktop",Ohe("List")),[u_]:ox("desktop",xVe("Number",KD(gVe,{}),RQ,NQ)),markCurrent:ox("desktop",te("Mark the current section",!1,KD(wVe,{}),"The row of the section a reader is in stands out as they scroll.")),_gStick:ox("desktop",Ohe(pF)),sticky:ox("desktop",te(pF,!0,KD(bVe,{})))}};import{group as yVe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as VD}from"efficient-easel/screen/lib/document/device-fields";var $1={hint:"Search questions",noMatchText:"No question matches your search."},Lhe={label:"List search",defaultProps:{hint:$1.hint,noMatchText:$1.noMatchText}};var Ihe={fields:{_gContent:VD("desktop",yVe("Content")),hint:VD("desktop",Zo(U("Hint",$1.hint))),noMatchText:VD("desktop",Zo(U("No match",$1.noMatchText)))}};import{group as Bhe}from"efficient-easel/screen/lib/document/box-fields";var uN={toc:"On this page"},Fhe={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var Hhe={fields:{_gContent:Bhe("Contents"),tocTitle:U("Contents heading",uN.toc),_gSections:Bhe("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:xe("Contents label"),heading:xe("Title"),body:je("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as Dhe}from"efficient-easel/screen/lib/document/box-fields";var Mhe={fields:{_gContent:Dhe("Content"),eyebrow:U("Eyebrow",Qm.eyebrow),title:q("Heading",Qm.title),deck:q("Deck / standfirst",Qm.deck),_gMeta:Dhe("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:xe("Label"),value:xe("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var fN=[{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."}],zhe={label:"Document Detail Cards",defaultProps:{cards:[]}};var Whe={fields:{cards:kb({type:"array",label:"Cards",arrayFields:{label:xe("Label"),value:xe("Value"),desc:je("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},fN)}};import{jsx as vVe}from"react/jsx-runtime";import{PageIcon as kVe}from"efficient-easel/icons";import{group as SVe}from"efficient-easel/screen/lib/document/box-fields";var nx={metaLabel:W.label,metaValue:W.value},Uhe={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var Ghe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:J("Tab label"),href:Ve("Links to"),current:te("Current page",!1,vVe(kVe,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:SVe("Trailing note"),metaLabel:U("Note label",nx.metaLabel),metaValue:U("Note value",nx.metaValue)}};import{jsx as TVe}from"react/jsx-runtime";import{StylesIcon as EVe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as PVe}from"efficient-easel/screen/lib/document/box-fields";var $he={fields:{eyebrow:U("Eyebrow",W.eyebrow),...rl("align",{access:PVe}),eyebrowLook:le("Look",TVe(EVe,{}),Xs,OP)}};import{jsx as Vhe}from"react/jsx-runtime";import{ChevronIcon as CVe,LinkIcon as _Ve}from"efficient-easel/icons";import{group as jD}from"efficient-easel/screen/lib/document/box-fields";var Qu={num:W.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},YD=Vn.FAQ,Khe={label:"Q&A",inline:!0,fields:YD,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var Yhe="faqOnTemplate",RVe={not:{context:Yhe,is:!0}},NVe={[Yhe]:e=>lJ("FAQ",e.props??{})},OVe=new Set([GX,...$X]);function AVe(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||OVe.has(t))}var jhe={fields:{_gContent:jD("Content"),num:U("Number",Qu.num),title:q("Heading",Qu.title),linkText:U("Button",Qu.link),linkHref:Ve("Link"),_gQuestions:jD("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:xe("Question"),answer:je("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:jD("Layout"),defaultOpen:te("Open first answer",!0,Vhe(CVe,{})),openFromLink:te("Open from a link",!1,Vhe(_Ve,{}),"A link to a question opens its answer. Each question gets an anchor made from its words, after the section's Anchor."),...YD},resolveFields:(e,{fields:t})=>{let o=it(t,e.props.headPlacement,st.FAQ.headRows);return Pi(o,AVe(o),RVe)},showWhenFacts:NVe};import{jsx as Gi,Fragment as hN,jsxs as IVe}from"react/jsx-runtime";import{useContext as FVe}from"react";import{SettingsField as Jhe}from"efficient-easel/panel";import{FieldSelect as Qhe}from"efficient-easel/fields";import{BlogPostIcon as ege}from"efficient-easel/icons";import{ScreenDocumentContext as BVe}from"efficient-easel/screen/components/ScreenDocumentContext";var qhe=Iw({fetch:async(e,t)=>await Vd().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:In});import{useEffect as Xhe,useRef as LVe,useState as qD}from"react";function ag(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function rx({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=qD(null),[s,l]=qD(!1),[d,c]=qD(!1),p=LVe(!0);return Xhe(()=>(p.current=!0,e().then(m=>{p.current&&i(m)}),()=>{p.current=!1}),[]),Xhe(()=>{if(!n?.slug||a===null)return;let m=t(a,n);if(!m)return;let f=o(m);ag(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 Zhe(e,t){return{label:t?u("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function ax({value:e,onChange:t}){let o=FVe(BVe);return o&&!o.capabilities.hasBlog?e?.slug?Gi(HVe,{value:e,onChange:t}):Gi(hN,{}):Gi(DVe,{value:e,onChange:t})}function HVe({value:e,onChange:t}){return Gi("div",{children:Gi(Jhe,{label:u("Blog post source"),icon:Gi(ege,{}),hint:Gi(hN,{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:Gi(Qhe,{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 DVe({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=rx({load:qhe,resolve:(m,f)=>m.find(g=>g.slug===f.slug),snapshot:H2,value:e,onChange:t}),s=m=>{if(!m){t(null);return}let f=(o??[]).find(g=>g.slug===m);f&&t(H2(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 IVe("div",{children:[Gi(Jhe,{label:u("Blog post source"),icon:Gi(ege,{}),hint:e?.slug?void 0:Gi(hN,{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:Gi(Qhe,{value:e?.slug??"",ariaLabel:u("Blog post source"),onChange:s,readOnly:n,options:[{label:u("None (manual)"),value:""},...l?[Zhe({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(m=>({label:m.title,value:m.slug}))]})}),e?.slug?Gi(il,{status:d,statusText:p,onRefresh:i,busy:r,hint:Gi(hN,{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 MVe}from"efficient-easel/screen/lib/document/box-fields";var Vr={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:Qd.href},tge={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var zVe=["image","imageDate","date","title","dek","ctaHref"],oge={fields:Pi({source:Mo(ax),_nBound:at(sl(QC),e_),image:Qe("Cover image","image/*"),badge:U("Badge",Vr.badge),imageDate:U("Image date",Vr.imageDate),_gContent:MVe("Content"),category:U("Category",Vr.category),readLabel:U("Read time",Vr.readLabel),date:U("Date",Vr.date),title:q("Heading",Vr.title),dek:q("Dek",Vr.dek),ctaText:U("Button",Vr.ctaText),ctaHref:Ve("Link")},zVe,Tb)};import{jsx as dr}from"react/jsx-runtime";import{phoneKey as Cr,tabletKey as wa}from"efficient-easel/draw";import{keptByRow as GYe}from"efficient-easel/screen/lib/document/style-fields";import{jsx as nge}from"react/jsx-runtime";import{OpacityIcon as WVe,StylesIcon as UVe}from"efficient-easel/icons";function ix(){return{darken:ae("Darken",nge(WVe,{}),Ql.min,Ql.max,Ql.step,Ql.fallback,Ql.unit),darkenStyle:le("Darken style",nge(UVe,{}),Mv,Mv[0].value)}}var GVe={"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]"},$Ve=`calc(${fX} - ${tF}*2)`,rge=`var(${hX},${tF})`,V$t=`pointer-events-none absolute inset-y-0 left-[${rge}] right-[${rge}] z-[6] mx-auto max-w-[var(${gX},${$Ve.replace(/ /g,"_")})]`;function gN(e,t){return`pointer-events-auto absolute ${GVe[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function age(e){return nP.includes(e)?e:null}import{parseOption as XD}from"efficient-shell/format";var KVe=nP,ZD="top-right",VVe=["cards","dots","numbers","bar","squares","tabs","largeTabs"],JD=["cards","dots","numbers","bar","squares"],bN="cards",wN={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},xN=["tabs","largeTabs"],ige=!0;function yN(e){return XD(VVe,bN,e)}function sge(e){return XD(JD,bN,e)}function YVe(e){return XD(KVe,ZD,e)}var lge={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 dge(e,t){return gN(YVe(t),lge[yN(e)])}function cge(e){return`flex ${lge[yN(e)]}`}function pge(e){return e.shown!==!1&&(e.count??0)>1}function jVe(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function qVe(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 mge(e,t){let o=Array.from(t,jVe);return qVe(e,o)?e:o}import{deviceField as bd}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as $Ye,ClockIcon as KYe,CropIcon as qge,GapIcon as VYe,MediaLayoutStackedIcon as a0e,LineBetweenIcon as YYe,LineSolidIcon as jYe,ListIcon as qYe,NumberedListIcon as Xge,ShadowIcon as XYe,StylesIcon as Zge,TableIcon as Jge,TargetIcon as ZYe,WrapIcon as i0e}from"efficient-easel/icons";var sg=aP.map(e=>e.shape),eM=e=>e!==Ys&&sg.includes(String(e??""))?e:null;function ig(e){return eM(e)??(Wm(e)?Ys:"auto")}function vN(e){let t=ig(e);return t==="auto"?"":$0(t)}function uge(e,t,o){return RX({desktop:e,phone:QD(t)!==null?t:o,tablet:o})}var XVe={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)]"},ZVe={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 JVe(e,t){let o=ig(t);return o==="auto"&&eM(t)===null?null:o===Ys?t===e?null:o:o===ig(e)?null:o}var QVe={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 QD(e){let t=ig(e);return t==="auto"&&eM(e)===null?null:t}function fge(e,t,o){let n=QD(o),r=JVe(e,QD(t)!==null?t:o);if(r===null&&n===null)return vN(e);let a=ig(e);return[r===null?vN(e):a==="auto"?"":XVe[a],r===null?"":ZVe[r],n===null?"":QVe[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as s0e,VIEW_KEY_ACCESS as Oc,group as dg,phoneTwinFields as Ac}from"efficient-easel/screen/lib/document/box-fields";var eYe={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},tYe=_v.map(e=>({value:e.value,picture:LC(eYe[e.value])}));function kN(e,t){return io("Separator",e,tYe,t,{resolve:Uj})}import{jsx as oYe}from"react/jsx-runtime";import{cloneElement as nYe}from"react";import{PaddingXIcon as rYe}from"efficient-easel/icons";import{deviceField as aYe}from"efficient-easel/screen/lib/document/device-fields";function hge(){let e=le(wre,oYe(rYe,{}),DZ,MZ);return aYe("desktop",{...e,render:t=>{let o=e.render({...t,value:kP(t.value),onChange:n=>t.onChange(WZ(n))});return nYe(o,{hint:u(zZ)})}})}import{newNodeId as tM}from"efficient-easel/draw";var gge=["First row","Second row","Third row"],iYe="Write the words for this row.",bge=e=>({type:"Text",props:{...We,id:tM("Text"),tag:"p",text:e}}),sYe=(e,t)=>({type:ce,props:{...Me,id:tM(ce),...t?{startsOpen:!0}:{},rowTitle:[bge(e)],content:[{type:"Text",props:{...Et,id:tM("Text"),tag:"p",text:iYe}}]}}),lYe=e=>!Array.isArray(e)||e.length===0;function wge(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:gge.map((r,a)=>sYe(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==ce||!lYe(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(gge[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[bge(i)]}}});return o?{...e,content:n}:e}import{parseOption as dYe}from"efficient-shell/format";var K1="rowStyle",cYe=["plain","numbered","chevron"],xge=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function yge(e){return dYe(cYe,"plain",e)}var SN="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",TN="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",EN="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",vge="border-t border-line",kge="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",Sge="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as pYe}from"efficient-easel/screen/lib/content/view-tiers";var PN=Vn.Flex,Tge={label:"Box",fields:PN,phoneOrder:{prop:pYe("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 Ege}from"react/jsx-runtime";import{isNode as mYe}from"efficient-easel/data";import{useEasel as uYe}from"efficient-easel/easel";import{PhoneOrderField as fYe}from"efficient-easel/fields";import{slotChildRowName as hYe}from"efficient-easel/draw";import{deviceField as gYe}from"efficient-easel/screen/lib/document/device-fields";function bYe(){try{let e=uYe(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!mYe(a)||typeof t[a.type]?.render!="function"?!1:xr(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 wYe({value:e,onChange:t,readOnly:o}){let n=bYe();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return Ege(fYe,{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=>hYe(r[s],i,ko,void 0,zne)})}function Pge(){return gYe("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>Ege(wYe,{value:e,onChange:t,readOnly:o})})}import{jsx as q1}from"react/jsx-runtime";import{SettingsDefaultReset as RYe,SettingsField as NYe}from"efficient-easel/panel";import{Segmented as OYe}from"efficient-shell/ui";import{SwapIcon as AYe}from"efficient-easel/icons";import{describedAs as LYe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as IYe}from"efficient-easel/screen/lib/document/device-fields";var V1="Mirror cards",Y1="off",oM=[{value:Y1,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],Cge={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function ef(e){return e==="even"||e==="odd"?e:null}function _ge(e){return ef(e)??void 0}function j1(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function lg(e,t,o){return!t||e.direction!=="row"||o||Im("row",e.separator)||e.loop==="scroll"||e.line===!0||is(e)||G4(e.columns)!==""||Qj(e.columnsTablet)!==""?!1:!(as(e.share)===""&&A0(e.wrap)!=="")}function Rge(e,t){let o=ef(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var Nge="view-wide:flex-row-reverse",xYe={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},yYe={left:"view-wide:text-right!",right:"view-wide:text-left!"},vYe={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},kYe={start:"view-wide:items-end!",end:"view-wide:items-start!"},SYe={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!"},CN=(e,t)=>(typeof t=="string"?zs(e,t):void 0)??"";function nM(e,t,o){return e?[CN(xYe,t),CN(yYe,o)].filter(Boolean).join(" "):""}function Oge(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=Vj(o,r,void 0).tablet;return[CN(vYe,o),a?SYe[a]:""].filter(Boolean).join(" ")}return t==="column"?CN(kYe,n):""}function rM(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||is(e)?!1:G4(e.columns)===""}function _N(e,t){let o=ef(e.mirrorCards);return o&&rM(e,t)?{mirror:o}:null}import{isNodeList as Dge}from"efficient-easel/data";import{parseOption as Age}from"efficient-shell/format";var TYe=["columns","rows-left","rows-right"],EYe=["half","third"],Lge=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],Ige=[{value:"half",label:"Half"},{value:"third",label:"One third"}],Fge=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function PYe(e){return Age(TYe,"columns",e)}var CYe={"rows-left":"even","rows-right":"odd"},_Ye={half:"equal",third:"bigRight"};function RN(e){let t=PYe(e?.arrangement);if(t==="columns")return null;let o=Age(EYe,"half",e?.imageWidth);return{mirror:CYe[t],row:{share:_Ye[o],phoneReverse:e?.phoneOrder==="words"}}}var Bge={ProcessSteps:{slot:"boxes",hand:RN}},Hge=(e,t,o)=>Dge(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function sx(e,t){let o=bC(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===ce&&Hge(o,_e,t)){let s=Zl(e,o.props?.id)?.inCopy===!0;return _N(qs(o.props??{},s),s)}let i=zs(Bge,a);if(i&&Hge(o,i.slot,t))return i.hand(o.props??{})}let n=HE(e,t),r=n&&typeof n.type=="string"?zs(Bge,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function Mge(e){let t=e?.[_e];return Dge(t)&&t.some(o=>o?.type===ce)}var zge="mirrorCardsIdle",aM="mirrorCardsMirrors",Wge={[aM]:(e,t)=>{let o=Zl(t.appState,e.props?.id);if(o===void 0)return;let n=qs(e.props??{},o.inCopy),r=sx(t.appState,e.props?.id);if(r){let a=r.row?{...n,direction:"row",share:r.row.share}:n;return r.mirror!==null&&lg(a,!0,Wp(a).desktop)}return lg(n,j1(o),Wp(n).desktop)&&ef(n.mirrorCards)!==null},[zge]:(e,t)=>{let o=Zl(t.appState,e.props?.id);if(o===void 0)return;let n=qs(e.props??{},o.inCopy);return sx(t.appState,e.props?.id)?!0:lg(n,j1(o),Wp(n).desktop)?!1:!(rM(n,o.inCopy)&&Mge(n))}};function FYe(e=!1){return oM.map(t=>({value:t.value,label:u(t.label),title:t.value===Y1?void 0:u(Cge[t.value]),disabled:e}))}function BYe({value:e,onChange:t,readOnly:o}){let n=ef(e)??Y1;return q1(NYe,{label:u(V1),icon:q1(AYe,{}),action:q1(RYe,{words:qE()?.panel,label:u(V1),changed:n!==Y1,detail:u("Off"),onReset:()=>t(void 0)}),children:q1(OYe,{size:"sm",block:!0,label:u(V1),value:n,onChange:r=>t(_ge(r)),options:FYe(o===!0)})})}function Uge(){return at(IYe("desktop",{type:"custom",...LYe({},{type:"radio",label:V1,options:oM.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>q1(BYe,{value:e,onChange:t,readOnly:o})}),{not:{context:zge,is:!0}})}import{jsx as HYe}from"react/jsx-runtime";import{FilterIcon as DYe}from"efficient-easel/icons";import{deviceField as MYe}from"efficient-easel/screen/lib/document/device-fields";var Kge="showForUnoffered",Vge={[Kge]:e=>SC().length===0&&i2(e.props?.[a2])===void 0},zYe="Show for",WYe="All";function UYe(e,t){if(!e)return;let o=SC().find(r=>r.slug===e);if(o)return{slug:o.slug,name:o.name};let n=i2(t);return n?.slug===e?n:void 0}function Yge(){let e=le(zYe,HYe(DYe,{}),[{label:WYe,value:""}],"");return at(MYe("desktop",{...e,render:t=>e.render({...t,value:i2(t.value)?.slug??"",onChange:o=>t.onChange(UYe(o,t.value))})}),{not:{context:Kge,is:!0}})}var Gge=new WeakMap;function jge(e,t){let o=e[a2];if(!o)return e;let n=SC(),r=i2(t?.[a2]),a=r&&!n.some(p=>p.slug===r.slug)?r:void 0,i=Gge.get(o);i||Gge.set(o,i=new Map);let s=`${Ute()}\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=$ge.get(e);d||$ge.set(e,d=new Map);let c=d.get(s);return c||d.set(s,c={...e,[a2]:l}),c}var $ge=new WeakMap;var Qge=Lj,e0e={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},JYe={field:"direction",is:"tabs"},QYe={field:"line",in:[!0,!1]},eje={field:"anchor",set:!0},iM=["fixed","screen","fill"],tje={not:{any:[{field:"sectionHeightMode",in:iM},{field:"sectionHeightModeTablet",in:iM},{field:"sectionHeightModePhone",in:iM}]}},oje={context:"parent.line",is:!0},cg={not:{field:"direction",is:"accordion"}},t0e={field:"direction",is:"accordion"},o0e={any:[cg,{not:{field:K1,in:["numbered","chevron"]}},{field:"columns",in:[...eq]},{field:"phoneRow",in:[...tq]}]},l0e="notAccordionRow",nje={not:{context:l0e,is:!0}},rje={[l0e]:(e,t)=>t.parent?.props?.direction!=="accordion"},lM={field:"direction",is:"row",default:"row"},pg={not:nX},fg={all:[lM,pg,{not:{field:"separator",in:_v.map(e=>e.value)}},{not:{field:"line",is:!0}}]},aje={field:"direction",is:"column"},d0e={all:[fg,...["columns",wa("columns")].map(e=>({not:{field:e,in:Array.from({length:CE},(t,o)=>o+PE)}}))]},ije={all:[pg,{not:{all:[lM,{field:"separator",in:_v.map(e=>e.value)}]}}]},sM={not:{all:[fg,{field:"columns",in:Array.from({length:CE},(e,t)=>t+PE)}]}},sje="sharedColumnsFits",c0e="sharedColumnsMisfit",p0e="sharedColumnsDraws",m0e="sharedColumnsPhoneDraws";function ug(e,t){return qs(e.props??{},Zl(t.appState,e.props?.id)?.inCopy!==!1)}var lje={[sje]:(e,t)=>HR(ug(e,t)),[c0e]:(e,t)=>!HR(ug(e,t)),[p0e]:(e,t)=>Wp(ug(e,t)).desktop,[m0e]:(e,t)=>Wp(ug(e,t)).phone};function n0e(e){return{all:[{not:{context:c0e,is:!0}},{any:[g6,{field:e,set:!0}]}]}}var mg={not:{context:p0e,is:!0}},lx={not:{context:m0e,is:!0}},u0e="sharedRowsDraws",dje={[u0e]:(e,t)=>DR(ug(e,t))&&sx(t.appState,e.props?.id)?.row===void 0},X1={not:{context:u0e,is:!0}},cje={any:[mg,lx]},dM=Fj,pje={not:{context:aM,is:!0}},f0e="rowHanded",mje={not:{context:f0e,is:!0}},uje={[f0e]:(e,t)=>{let o=sx(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},r0e={all:[cg,dM,mg,lx,pje]},fje={field:"direction",is:"row"},hje={field:"align",in:["start","center","end"]},gje={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function bje(){let{darken:e,darkenStyle:t}=ix();return{...Ac("darken",e,Oc),...Ac("darkenStyle",t,Oc)}}var h0e={not:{all:[fg,{field:wa("columns"),in:Array.from({length:CE},(e,t)=>t+PE)}]}};function wje(){let e=te(s0e,!1,dr(i0e,{})),t=o=>{let n=U4(o);return n===void 0?void 0:n==="wrap"};return{...yh(),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 xje(){let e=te(s0e,!0,dr(i0e,{})),t=o=>{let n=U4(o);return n===void 0?void 0:n==="wrap"};return{...yh(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!oq(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var g0e={hint:jm},b0e={all:[dM,{any:[aje,{all:[fg,h0e,{not:{all:[d0e,{field:wa("share"),set:!0}]}}]}]}]},yje=at(bd("desktop",ae("Narrows below",dr(a0e,{}),uh.min,uh.max,uh.step,jm,{kind:"breakpoint"},{clear:g0e,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),b0e);function vje(e,t){let o=e;return!(fh in o)||t.direction!=="column"?e:{...o,[fh]:yje}}var w0e={fields:Fe({_gContent:dg("Content"),rowTitle:PN.rowTitle,content:PN.content,_gCardDisplay:dg("Display"),cardDisplay:a_("desktop"),cardDisplayTablet:a_("tablet"),cardDisplayPhone:a_("mobile"),showFor:Yge(),_gLayout:dg("Layout"),direction:JC("Flex"),tabShape:io("Tab shape",dr(Zge,{}),xN.map(e=>({label:wN[e],value:e,picture:one[e]})),"tabs",{columns:2,cell:vr}),mirrorCards:Uge(),[fh]:bd("desktop",ae("Stacks below",dr(a0e,{}),uh.min,uh.max,uh.step,jm,{kind:"breakpoint"},{clear:g0e,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[Wv]:hge(),startsOpen:bd("desktop",te("Starts open",!1,dr($Ye,{}))),[K1]:bd("desktop",io("Row style",dr(Xge,{}),xge.map(e=>({...e,picture:e.value==="numbered"?dr(Xge,{}):dr(qYe,{})})),"plain",{columns:2})),label:Zo(J("Tab name")),...li("Flex"),...Ac("justify",OC(),Oc),...Ac("align",AC(),Oc),...(()=>{let e=Ac("wrap",yh(),Oc,{phoneRow:xje()}),t=Ac("wrap",yh(),Oc,{phoneRow:wje()});return{wrap:t.wrap,[wa("wrap")]:t[wa("wrap")],[Cr("wrap")]:e[Cr("wrap")]}})(),[Cr("order")]:Pge(),...Ac("boxShape",Bw("Box shape",dr(qge,{}),K0(sg),"shape","auto"),Oc,{phoneRow:Bw("Box shape",dr(qge,{}),K0(sg),"shape","auto",{phoneRest:e=>ig(e)})}),[wE]:bd("desktop",ooe(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:kN(dr(YYe,{size:18}),"none"),[nb]:bd("desktop",io("Card style",dr(Zge,{}),UJ.map(e=>({...e,picture:rne[e.value]})),"table",{columns:2,cell:vr})),share:bd("desktop",yne()),[wa("share")]:Sne(),[Cr("share")]:kne(),[zp]:bd("desktop",le(iH,dr(Jge,{}),[...sce],Z2)),[Cr(zp)]:bd("mobile",le(iH,dr(Jge,{}),[...lce],Z2)),...Tne(),...Ac("blockSpacing",vne(),Oc),line:te("Line",!1,dr(jYe,{}),"A line across the blocks, with a dot on each."),upcoming:te("Upcoming",!1,dr(KYe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:le("Join",dr(VYe,{}),zP,MP),_gShadow:dg("Shadow"),...Ac("shadow",te("Shadow",!1,dr(XYe,{})),Oc),...Ac("fillColor",_ne(),Oc),[Fa]:Kr("Fill content","colour"),[wP]:GYe("fillColor"),_gBackground:dg("Background image"),bgImage:bd("desktop",Qe("Image","image/*")),bgImagePhone:bd("mobile",Qe("Image","image/*")),[or]:Kr("Image content","image",{content:!0}),...bje(),placement:td("Content position"),_gLink:dg("Link"),link:Ju(Ve("Link to")),[Go]:Nc(),_gJump:dg("Anchor"),jumpHighlight:te("Highlight when a link jumps here",!1,dr(ZYe,{}),"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"],Qge],[[Cr("share")],{all:[e0e,lx]}],[[zp],n0e(zp)],[[Cr(zp)],n0e(Cr(zp))],[[Cr("wrap")],{all:[e0e,pg,lx,X1]}],[[Cr("order")],{all:[fg,lx,mg]}],[["phoneRow"],lx],[[K1],{all:[t0e,{not:{field:K1,is:"chevron"}}]}],[["tabShape"],JYe],[["rowTitle","startsOpen"],nje],[["align","blockSpacing",wa("blockSpacing"),Cr("blockSpacing")],cg],[[wa("justify"),Cr("justify")],{all:[pg,r0e,X1]}],[[wa("align"),Cr("align")],{all:[fje,hje,r0e]}],[[wa("wrap")],{all:[pg,sM,h0e,mg,cg,X1]}],[[wa("shadow"),Cr("shadow")],dM],[[wa("darken"),Cr("darken"),wa("darkenStyle"),Cr("darkenStyle")],{all:[Qge,gje]}],[["separator"],lM],[[nb],{field:nb,set:!0}],[["columns"],{any:[fg,t0e]}],[[wa("columns")],fg],[[fh],b0e],[[wa("gap")],{all:[ije,o0e]}],[["gap",Cr("gap")],o0e],[["justify"],{all:[pg,cje,cg,X1]}],[["wrap"],{all:[pg,sM,mg,cg,X1]}],[["share"],{all:[sM,mg,cg]}],[[wa("share")],{all:[d0e,mg]}],[["line"],QYe],[["upcoming"],oje],[["jumpHighlight"],eje],[["boxShape",wa("boxShape"),Cr("boxShape")],tje],[["direction","share",Cr("order")],mje],[["join"],qF],[[Wv],qF]]),resolveData:(e,t)=>{let o=e.props,n=o[nb];return t.changed?.[nb]===!0&&GJ(n)?{...e,props:$J(o,n,ce,_e)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:wge(o)}:e},resolveFields:(e,t)=>{let o=Zl(t.appState,e.props?.id)?.inCopy===!0,n=o&&HE(t.appState,e.props?.id)===null;return vje(Tje(Eje(jge(Pje(e,{...t,fields:Ka(t.fields,e,t)}),e.props),ug(e,t),o),n),e.props)},showWhenFacts:{...$a,...Une,...Wge,...uje,...lje,...dje,...Vge,...rje}},kje=at(Dne,g6),Sje=["darken","darkenStyle",xE,oh];function Tje(e,t){if(!t)return e;let o={...e};for(let n of Sje){if(!(n in o))continue;let{showWhen:r,...a}=o[n];o[n]=a}return o}function Eje(e,t,o=!1){let n=e;return th in n&&is(t)&&o?{...n,[th]:at(Mne,Wne)}:!(th in n)||is(t)?e:{...n,[th]:kje}}function Pje(...[e,t]){let{fields:o}=t;{if(is(ug(e,t))){let n=_p({fallback:{top:_i.desktop,bottom:_i.desktop,left:_i.side,right:_i.side},tablet:!0,siteSide:!0});return g2(o,n)}return e.props.padV2!==!0?g2(o,_p({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as hg}from"react/jsx-runtime";import{ColumnsIcon as E0e,GridIcon as _je,LayoutIcon as Rje,SlidePickerCardsIcon as Nje,WidthIcon as P0e}from"efficient-easel/icons";import{deviceField as IN}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as Cje}from"efficient-shell/format";var cM=["grid","carousel"],pM="grid",x0e={grid:"Grid",carousel:"Carousel"};function y0e(e){return Cje(cM,pM,e)}var NN=50,ON=80,AN=30,LN=90;function mM(e,t){let o=Tn(e);return o===void 0?t:Math.min(LN,Math.max(AN,o))}function v0e(e,t,o){if(o<=0)return null;let n=((e-t)%o+o)%o;return n===0?0:n===1?1:n===o-1?-1:null}function k0e(e,t,o){return o<=0?0:((e+t)%o+o)%o}function S0e(e,t){return!t||t.height<=0?null:Math.round(t.top-e.top+t.height/2)}var uM=Vn.Grid,T0e={label:"Grid",fields:uM,defaultProps:{columns:"3",content:[]}};var Oje={grid:hg(_je,{}),carousel:hg(Nje,{})},C0e={field:"layout",is:"carousel"},_0e={fields:{layout:io("Layout",hg(Rje,{}),cM.map(e=>({label:x0e[e],value:e,picture:Oje[e]})),pM),carouselTile:at(IN("desktop",ae("Tile width",hg(P0e,{}),AN,LN,1,NN,{kind:"size",base:"%"})),C0e),carouselTilePhone:at(IN("mobile",ae("Tile width",hg(P0e,{}),AN,LN,1,ON,{kind:"size",base:"%"})),C0e),columns:IN("desktop",ae("Columns",hg(E0e,{}),1,BX,1,DX)),mobileColumns:IN("mobile",ae("Columns",hg(E0e,{}),dF,HX,1,dF)),...li("Grid"),content:uM.content}};import{jsx as Aje}from"react/jsx-runtime";var R0e={fields:{text:q("Heading",W.heading),level:le("Level",Aje(da,{noun:"heading"}),[{label:"H1",value:"1"},{label:"H2",value:"2"},{label:"H3",value:"3"},{label:"H4",value:"4"},{label:"H5",value:"5"},{label:"H6",value:"6"}],"2")}};import{jsx as gn}from"react/jsx-runtime";import{parseOption as Lje}from"efficient-shell/format";var fM="bottom-right",hM=["outline","solid","square","bare"],gM="outline",N0e={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},O0e=!1,A0e=["prev","next"],L0e={prev:"Previous slide",next:"Next slide"};function Ije(e){return Lje(hM,gM,e)}function Fje(e){return age(e)??fM}var Bje="flex-row items-center gap-2";function I0e(e){return gN(Fje(e),Bje)}var Hje={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 F0e(e){return Hje[Ije(e)]}function B0e(e){return e.shown===!0&&(e.count??0)>1}function FN(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 V0e,EyeIcon as kM,HandIcon as zje,ScrollMoveDownIcon as Y0e,OpacityIcon as Wje,PhoneIcon as $0e,PlayIcon as Uje,SlideArrowsBareIcon as Gje,SlideArrowsRoundIcon as $je,SlideArrowsSquareIcon as Kje,SlidePickerBarIcon as Vje,SlidePickerCardsIcon as Yje,SlidePickerDotsIcon as jje,SlidePickerNumbersIcon as qje,SlidePickerSquaresIcon as Xje,SquareIcon as K0e,StylesIcon as Zje}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as Jje}from"efficient-shell/icons/efficient-looks";import{group as tf}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as SM,deviceNote as oqe}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as H0e}from"efficient-shell/format";var bM=["manual","timer","scroll"],D0e={manual:"Hand",timer:"Timer",scroll:"Scroll"};function BN(e){return H0e(bM,e.autoplay===!0?"timer":"manual",e.slideChange)}var wM=25,xM=10,yM=100;function M0e(e){let t=Tn(e);return t===void 0?wM:Math.min(yM,Math.max(xM,t))}function z0e(e,t,o){return o<=0||t<=0?0:Math.min(o-1,Math.max(0,Math.floor(e/t)))}var Dje=["wipe"],Mje="wipe";function W0e(e){return H0e(Dje,Mje,e)}var U0e=350,vM=8;var HN=Vn.Hero,G0e={label:"Hero",drawsPictures:!0,fields:HN,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};var Qje=Jje,eqe={cards:gn(Yje,{}),dots:gn(jje,{}),numbers:gn(qje,{}),bar:gn(Vje,{}),squares:gn(Xje,{})},tqe={outline:gn($je,{}),solid:gn(Qje,{}),square:gn(Kje,{}),bare:gn(Gje,{})},nqe={manual:gn(zje,{}),timer:gn(V0e,{}),scroll:gn(Y0e,{})},rqe={any:[{field:"slideChange",is:"timer"},{all:[{field:"slideChange",set:!1},{field:"autoplay",is:!0}]}]},aqe={field:"slideChange",is:"scroll"},j0e={fields:{_dDevice:oqe(),_gContent:tf("Content"),slides:HN.slides,strip:HN.strip,_gStyle:tf("Style"),alignment:eoe(),_gTexture:tf("Texture"),showTexture:te("Show texture",ute,gn(kM,{})),textureColor:Ime,textureOpacity:ae("Texture opacity",gn(Wje,{}),0,100,1,40,"%"),textureShape:le("Texture style",gn(Zje,{}),hte,fte),_gLayout:tf("Layout"),...y5(),...Hme,_gAutoplay:tf("Auto-slide"),slideChange:aoe("Change slides",gn(Uje,{}),bM.map(e=>({label:D0e[e],value:e,picture:nqe[e]})),"manual"),autoplayInterval:at(ae("Still time per slide",gn(V0e,{}),2,15,1,6,"s"),rqe),scrollPerSlide:at(ae("Scroll per slide",gn(Y0e,{}),xM,yM,1,wM,{kind:"height",base:"%"}),aqe),_gPicker:tf("Slide picker"),showPicker:te("Show slide picker",ige,gn(kM,{})),pickerShape:io("Slide picker shape",gn(K0e,{}),JD.map(e=>({label:wN[e],value:e,picture:eqe[e]})),bN),pickerPlacement:td("Slide picker placement",{fallback:ZD}),_gArrows:tf("Arrows"),showArrows:te("Show arrows",O0e,gn(kM,{})),arrowsShape:io("Arrows shape",gn(K0e,{}),hM.map(e=>({label:N0e[e],value:e,picture:tqe[e]})),gM),arrowsPlacement:td("Arrows placement",{fallback:fM}),_gPhone:SM("mobile",tf("On a phone")),phoneUpDown:SM("mobile",Ce(ste,gn($0e,{}),pte(),ate)),phoneSideways:SM("mobile",Ce(lte,gn($0e,{}),mte(),ite)),phoneWordsTop:Hu.phoneWordsTop,phoneWordsBottom:Hu.phoneWordsBottom,phoneBoxGap:Hu.phoneBoxGap},resolveFields:(e,{fields:t})=>{let o=e.props??{},n=BN(o),r=t.slideChange;return!r||r.currentValue===n?t:{...t,slideChange:{...r,currentValue:n}}}};import{jsx as X0e}from"react/jsx-runtime";import{WidthIcon as Z0e}from"efficient-easel/icons";import{BOX_NUDGE_ROW as J0e,BOX_WIDTH_ROW as EM,group as PM}from"efficient-easel/screen/lib/document/box-fields";var TM={...Vn.HeroGroup,content:{...Vn.HeroGroup.content,allow:gj}},q0e={label:hj,inline:!0,fields:TM,defaultProps:{placement:vX,nudgeX:0,nudgeY:0,content:[]}};var Q0e={fields:Fe({_gContent:PM("Content"),name:Zo(Sb(kr(J("Box name",W.boxName)))),content:TM.content,_gLayout:PM("Layout"),placement:td("Placement",{pointsFor:mne}),width:ae("Width",X0e(Z0e,{}),rF,aF,5,kX,EM),...od(EM,"width"),direction:JC("HeroGroup"),...li("HeroGroup"),justify:OC(),align:AC(),wrap:yh(),_gNudge:PM("Nudge"),...toe({keys:{x:"nudgeX",y:"nudgeY"},min:-nF,max:nF,label:null,length:J0e}),...od(J0e,"nudgeX"),..._p({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(rP(o?.data,n)===0)return t;let r={...t};return r.width=ae("Width",X0e(Z0e,{}),rF,aF,5,SX,EM),r}};import{jsx as tbe}from"react/jsx-runtime";import{MediaIcon as sqe,OpacityIcon as lqe}from"efficient-easel/icons";import{group as Z1}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as dqe,deviceNote as cqe}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as iqe}from"efficient-shell/format";var CM=Vn.HeroSingle,ebe={label:"Hero Single",drawsPictures:!0,fields:CM,defaultProps:{mediaType:Ia.HeroSingle,[La.image]:iqe,tintColor:cs,tintOpacity:0,overlay:100,overlayColor:cs,overlayPosition:bh}};var obe=mb("video",Ia.HeroSingle),pqe=mb("image",Ia.HeroSingle),nbe=[...S5,"tintColor","tintOpacity"],rbe={fields:dC({_dDevice:cqe(),boxNotice:P5("HeroSingle"),boxes:CM.boxes,_gStyle:Z1("Style"),overlay:ae("Overlay",tbe(lqe,{}),0,100,5,100,"%"),overlayColor:h8.overlayColor,overlayPosition:h8.overlayPosition,_gLayout:Z1("Layout"),...y5({tabletNumber:!1}),_gPhone:dqe("mobile",Z1("On a phone")),phoneWordsTop:Hu.phoneWordsTop,phoneWordsBottom:Hu.phoneWordsBottom,phoneBoxGap:Hu.phoneBoxGap,_gMedia:Z1("Media"),mediaType:Ce("Type",tbe(sqe,{}),n_,Ia.HeroSingle),mediaLayout:Zh.mediaLayout,mediaLayoutPhone:Zh.mediaLayoutPhone,...v5,videoSource:Bu.videoSource,mediaVideo:Qe(Jv,"video/*",Qv),youtubeUrl:Bu.youtubeUrl,videoPlayback:Bu.videoPlayback,poster:Qe("Video poster","image/*","Upload a poster still"),_gTint:Z1("Image tint"),tintColor:g1(),tintOpacity:h1(),...b1},{parts:{media:["mediaType",...k5,"videoSource","mediaVideo","youtubeUrl","videoPlayback","poster"],image:nbe,image2:Hw},onlyFor:{image:[...nbe,"_gTint",...Hw],video:["videoSource","videoPlayback","poster"]},rules:{mediaVideo:{all:[obe,{field:"videoSource",is:"upload",default:ol}]},youtubeUrl:{all:[obe,{field:"videoSource",is:"youtube",default:ol}]},...T5(pqe)},fallback:Ia.HeroSingle})};import{jsx as J1}from"react/jsx-runtime";import{BlockVideoIcon as uqe,ClockIcon as fqe,ImageIcon as hqe,MediaIcon as gqe,PlayIcon as bqe}from"efficient-easel/icons";import{group as DN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as dx}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as mqe}from"efficient-shell/format";var _M=Vn.HeroSlide,abe={label:"Hero Slide",fields:_M,defaultProps:{mediaType:Ia.HeroSlide,videoSpeed:100,[La.image]:mqe,tintColor:cs,overlay:0}};var of=mb("video",Ia.HeroSlide),wqe=mb("image",Ia.HeroSlide),ibe=[...S5,"tintColor","overlay"],sbe={fields:dC({_gContent:DN("Content"),name:Zo(Sb(J("Slide name",W.slideName))),process:Zo(U("Reel label","Label")),groupNotice:P5("HeroSlide"),groups:_M.groups,_gMedia:DN("Media"),mediaType:Ce("Type",J1(gqe,{}),n_,Ia.HeroSlide),mediaLayout:Zh.mediaLayout,mediaLayoutPhone:Zh.mediaLayoutPhone,videoSource:Bu.videoSource,mediaVideo:dx("desktop",Qe(Jv,"video/*",Qv,{frame:"videoFrame"})),mediaVideoPhone:dx("mobile",Qe(Jv,"video/*",Qv,{frame:"videoFramePhone"})),videoFramePhone:Np(),mediaVideoAv1:dx("desktop",Qe(BF,"video/mp4",HF)),mediaVideoAv1Phone:dx("mobile",Qe(BF,"video/mp4",HF)),youtubeUrl:Bu.youtubeUrl,videoPlayback:Bu.videoPlayback,videoSpeed:ae("Playback speed",J1(bqe,{}),25,100,5,100,"%"),loadingShows:Rne("Show while loading",J1(fqe,{}),{frame:J1(uqe,{}),image:J1(hqe,{})}),videoFrame:Np(),...v5,poster:dx("desktop",Qe("Image","image/*","Choose an image")),posterPhone:dx("mobile",Qe("Image","image/*","Choose an image")),_gTint:DN("Image tint"),tintColor:g1(),overlay:h1(),...b1,_gOverlay:DN("Overlay"),overlayColor:g8.overlayColor,overlayPosition:g8.overlayPosition},{parts:{media:["mediaType",...k5,"videoSource","mediaVideo","mediaVideoPhone","videoFramePhone","mediaVideoAv1","mediaVideoAv1Phone","youtubeUrl","videoPlayback","videoSpeed","loadingShows","videoFrame","poster","posterPhone"],image:ibe,image2:Hw},onlyFor:{image:[...ibe,"_gTint",...Hw],video:["videoSource","videoPlayback","loadingShows","videoFrame"]},fallback:Ia.HeroSlide,rules:{mediaVideo:{all:[of,{field:"videoSource",is:"upload",default:ol}]},mediaVideoPhone:{all:[of,{field:"videoSource",is:"upload",default:ol}]},mediaVideoAv1:{all:[of,{field:"videoSource",is:"upload",default:ol}]},mediaVideoAv1Phone:{all:[of,{field:"videoSource",is:"upload",default:ol}]},youtubeUrl:{all:[of,{field:"videoSource",is:"youtube",default:ol}]},videoSpeed:{all:[of,{field:"videoSource",is:"upload",default:ol},{field:"videoPlayback",is:"background",default:pC}]},...T5(wqe),poster:{all:[of,MF]},posterPhone:{all:[of,MF]}}})};import{jsx as RM}from"react/jsx-runtime";import{phoneKey as xqe}from"efficient-easel/draw";import{CropIcon as lbe,ImageIcon as yqe}from"efficient-easel/icons";import{group as NM,phoneTwinFields as vqe}from"efficient-easel/screen/lib/document/box-fields";var dbe={fields:{_gImage:NM("Image"),src:Qe("Image","image/*",void 0,{focus:"focal",focusWhen:(e,t)=>Dv(t,e.fit,e.aspect,e[xqe("aspect")])}),alt:Zo(J("Alt text")),rowField:Kr("Shows","image"),[Go]:Nc(),...vqe("aspect",Bw("Aspect ratio",RM(lbe,{}),K0(sg),"image","16/9",{more:[Sme(iZ)]}),void 0,{phoneRow:Bw("Aspect ratio",RM(lbe,{}),K0(sg),"image","16/9",{phoneRest:fZ})}),fit:le(uP,RM(yqe,{}),nZ(),"cover"),focal:Np(),focalTablet:Np(),focalPhone:Np(),href:Ju(Ve("Link")),_gStyle:NM("Style"),grayscale:Dw(),...ix(),_gShape:NM("Shape"),corners:Ine(),...gne(doe,"corners"),cornerSides:bne()},resolveFields:(e,t)=>Hne(Ka(t.fields,e,t),e,t),showWhenFacts:$a};import{jsx as kqe}from"react/jsx-runtime";import{group as cbe}from"efficient-easel/screen/lib/document/box-fields";var pbe={fields:{_gContent:cbe("Content"),eyebrow:U("Chip label","Integrations"),title:q("Heading",`Plays well with
14
14
  *your favourite apps.*`),body:q("Body",""),apps:zr("App chips",kqe(da,{noun:"tag"}),"App name","verbatim"),_gStat:cbe("Stat & note"),statValue:U("Big stat","100s"),statLabel:U("Stat label",""),note:U("Footnote","")}};import{jsx as Q1}from"react/jsx-runtime";import{keptByRow as Sqe}from"efficient-easel/screen/lib/document/style-fields";import{CaseIcon as Tqe,OpacityIcon as Eqe,PlacementIcon as Pqe,TextLinesIcon as mbe}from"efficient-easel/icons";import{group as cx}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Lc,deviceNote as Cqe}from"efficient-easel/screen/lib/document/device-fields";var ube={fields:{_dDevice:Cqe(),_gContent:cx("Content"),eyebrow:U("Eyebrow",Sp.eyebrow),title:q("Heading",Sp.title),body:q("Subtitle",Sp.body),uppercase:te("Uppercase heading",!1,Q1(Tqe,{})),_gBackground:cx("Background images"),imageSrc:Lc("desktop",Qe("Background image","image/*")),imageSrcMobile:Lc("mobile",Qe("Background image","image/*")),_gLayout:cx("Layout"),layout:io("Text position",Q1(Pqe,{}),UQ.map(e=>({...e,picture:ine[e.value]})),WQ,{columns:2,cell:XC}),heightDesktop:b8("desktop"),heightMobile:b8("mobile"),copyShareDesktop:Lc("desktop",ae("Text height",Q1(mbe,{}),tl.min,tl.max,tl.step,tl.desktop,"%")),copyShareMobile:Lc("mobile",ae("Text height",Q1(mbe,{}),tl.min,tl.max,tl.step,tl.mobile,"%")),sticky:Sqe("stickTop"),overlay:ae("Overlay",Q1(Eqe,{}),0,100,5,60,"%"),_gTextDesktop:Lc("desktop",cx("Text style")),titleSizeDesktop:Lc("desktop",h2("Heading font size",32,120,1,96,"heading",{row:JP,view:"desktop"})),bodySizeDesktop:Lc("desktop",h2("Subtitle font size",12,28,1,17,"body",{row:QP,view:"desktop"})),_gTextMobile:Lc("mobile",cx("Text style")),titleSizeMobile:Lc("mobile",h2("Heading font size",24,72,1,44,"heading",{row:JP,view:"phone"})),bodySizeMobile:Lc("mobile",h2("Subtitle font size",12,22,1,16,"body",{row:QP,view:"phone"})),...od(JP,"titleSizeDesktop",{phone:!0}),...od(QP,"bodySizeDesktop",{phone:!0}),_gButton:cx("Button"),...bl,buttonColor:ps("Button color","#C9A461"),buttonTextColor:ps("Button text color","#000000")}};import{jsx as fbe}from"react/jsx-runtime";import{ColumnsIcon as _qe,StylesIcon as Rqe}from"efficient-easel/icons";import{group as hbe}from"efficient-easel/screen/lib/document/box-fields";var gbe={fields:{_gContent:hbe("Content"),eyebrow:U("Eyebrow",Q0.eyebrow),eyebrowLook:le("Eyebrow style",fbe(Rqe,{}),[...Xs],vp("KeyFeatures")),title:q("Heading",Q0.title),items:{type:"array",label:"Features",arrayFields:{label:xe("Feature label"),href:kr(J("Link"))},defaultItemProps:{label:"",href:""},getItemSummary:e=>e?.label||"Feature"},_gStyle:hbe("Style"),columns:ae("Columns",fbe(_qe,{}),2,4,1,3)}};import{jsx as Nqe}from"react/jsx-runtime";import{readHidable as Oqe}from"efficient-easel/draw";import{ThemeIcon as Aqe}from"efficient-easel/icons";import{group as bbe}from"efficient-easel/screen/lib/document/box-fields";var MN=e=>Oqe(e).text;function Lqe(e){return[MN(e.address).replace(/\s*\n+\s*/g,", "),MN(e.name),MN(e.state),MN(e.country)].map(t=>t.trim()).filter(Boolean).join(", ")}var wbe={fields:{_gMap:bbe("Map"),name:J("Location name"),state:J("State / Province"),country:J("Country"),address:q("Address"),geocode:Mo(r_,{label:"Coordinates"}),mapsUrl:J("Directions link"),_gStyle:bbe("Style"),mapTheme:Ce("Map theme",Nqe(Aqe,{}),[{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(!FC([o]))return e;let[n]=await BC([o],Lqe);return{...e,props:{...e.props,lat:n.lat,lng:n.lng,geocode:n.geocode}}}};import{jsx as Fqe}from"react/jsx-runtime";import{HeightIcon as Bqe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as Hqe,group as Dqe}from"efficient-easel/screen/lib/document/box-fields";var xbe="auto";var zN="custom",OM="#000000";function WN(e,t){return e===zN?{reverse:!1,color:(typeof t=="string"?t.trim():"")||OM}:{reverse:e!=="off",color:null}}var UN={reverse:{type:"select",label:"Logo color",options:[{label:"Auto contrast",value:xbe},{label:"As uploaded",value:"off"},{label:"Custom color",value:zN}]},customColor:at(ps("Color",OM),{field:"reverse",is:zN})};var ybe={fields:Fe({src:Qe("Logo image","image/*"),alt:Zo(J("Alt text","Brand name","Read out in place of the picture, and shown if it can\u2019t load.")),href:Ju(Ve("Link")),heightPx:ae("Height",Fqe(Bqe,{}),eQ,tQ,1,Xm,"px"),...rl("align",{access:Hqe}),...UN,_gText:Dqe("Text"),rowField:Kr("Shows","text"),[Go]:Nc()},[[["alt"],{field:"src",set:!0}]]),resolveFields:(e,t)=>Ka(t.fields,e,t),showWhenFacts:$a};import{jsx as tk}from"react/jsx-runtime";import{BlackAndWhiteIcon as zqe,ColumnsIcon as Wqe,HeightIcon as Uqe,PaddingYIcon as Gqe,StylesIcon as $qe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as Kqe,group as kbe}from"efficient-easel/screen/lib/document/box-fields";import{parseOption as Mqe}from"efficient-shell/format";var ek="plain",AM=[{label:"Plain",value:"plain"},{label:"Cards",value:"cards"},{label:"Marks",value:"marks"},{label:"Chips",value:"chips"}],vbe=e=>Mqe(AM,ek,e);var Vqe=["items","heading","bandPadding"],Yqe=["look"],jqe={field:"bandPadding",set:!0},qqe={field:Ev,set:!0},Sbe={not:{field:"look",is:"chips"}},Xqe=Fe({_gContent:kbe("Content"),dataSource:eo("Logo content","Manual"),heading:q("Heading",HP.heading),items:{type:"array",label:"Logos",arrayFields:{src:Qe("Image","image/*"),alt:Zo(J("Name / alt"))},getItemSummary:e=>e.alt||e.src||"logo"},logos:at(xF.logos,ll),template:at(xF.template,qqe),_gStyle:kbe("Style"),columns:ae("Columns",tk(Wqe,{}),3,6,1,5),logoHeight:at(ae("Logo height",tk(Uqe,{}),16,72,2,28,"px"),Sbe),bandPadding:at(ae("Space above and below",tk(Gqe,{}),16,120,4,40,"px"),jqe),grayscale:at(te("Black and white logos",!0,tk(zqe,{})),Sbe),look:io("Logo style",tk($qe,{}),AM.map(e=>({...e,picture:ane[e.value]})),ek,{columns:2,cell:vr}),...rl("align",{access:Kqe})},[[Vqe,Aa],[Yqe,gq]]),Tbe={fields:Xqe,resolveFields:(e,{fields:t})=>to("Logos",t,e.props,{hides:["logos"]}),resolveData:(e,t)=>{if(!t?.changed?.[Ev])return e;let o=hq(e.props);return o===e.props?e:{...e,props:o}}};import{group as ok}from"efficient-easel/screen/lib/document/box-fields";var Co={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:Qd.href,imageLabel:"Featured *image*",metaPublished:W.date,metaReads:"0 min"},Ebe={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 Zqe=["image","title","dek","ctaHref","metaPublished"],Pbe={fields:Pi({source:Mo(ax),_nBound:at(sl(QC),e_),_gHead:ok("Section header"),headNum:U("Number",Co.headNum),headTitle:q("Heading",Co.headTitle),headDesc:q("Body",Co.headDesc),_gMeta:ok("Article"),category:U("Category",Co.category),metaMiddle:U("Middle meta",Co.metaMiddle),readLabel:U("Read time",Co.readLabel),title:q("Article title",Co.title),dek:q("Dek",Co.dek),_gQuote:ok("Pull quote"),quote:q("Quote",Co.quote),quoteAttribution:U("Attribution",Co.quoteAttribution),_gLink:ok("Link"),ctaText:U("Button",Co.ctaText),ctaHref:Ve("Link"),image:Qe("Image","image/*"),imageLabel:U("Image label",Co.imageLabel),_gOverlay:ok("Image caption"),metaPublished:U("Published",Co.metaPublished),metaReads:U("Reads in",Co.metaReads)},Zqe,Tb),resolveFields:(e,{fields:t})=>it(t,e.props.headPlacement,st.LongRead.headRows)};import{group as LM}from"efficient-easel/screen/lib/document/box-fields";var Cbe={fields:{_gContent:LM("Content"),eyebrow:U("Eyebrow",W.eyebrow),heading:q("Heading",`Main heading
15
15
  *Highlight line*`),body:q("Body",W.body),stats:{type:"array",label:"Stats",arrayFields:{value:J("Number"),label:J("Label")},getItemSummary:e=>e.label||e.value||"Stat"},_gMedia:LM("Media"),imageSrc:Qe("Image","image/*"),_gStyle:LM("Style"),grayscale:Dw()}};import{jsx as Jqe}from"react/jsx-runtime";import{TextLinesIcon as Qqe}from"efficient-easel/icons";import{group as IM}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"},_be={label:"Issue Header",defaultProps:{eyebrow:"",issueMeta:[],lead:"",issueHeading:"",issueList:[],issueTotal:""}};var Rbe={fields:{_gTop:IM("Top row"),eyebrow:U("Eyebrow",Ic.eyebrow),issueMeta:{type:"array",label:"Issue meta lines",arrayFields:{lead:xe("Bold word"),rest:xe("Rest")},getItemSummary:e=>[e?.lead,e?.rest].filter(Boolean).join(" ")||"Line"},_gLead:IM("Lead"),lead:q("Lead",Ic.lead),_gIssue:IM("In this issue"),issueHeading:q("Panel heading",Ic.issueHeading),issueList:zr("Issue lines",Jqe(Qqe,{}),"Line","markup"),issueTotal:U("Total line",Ic.issueTotal)}};import{jsx as nf}from"react/jsx-runtime";import{BlockColumnIcon as GN,PlacementIcon as oXe,StateIcon as nXe,TemplateIcon as rXe,TextLinesIcon as aXe}from"efficient-easel/icons";import{group as gg}from"efficient-easel/screen/lib/document/box-fields";import{parseOption as XXt}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"}],eXe=FM.map(e=>e.value),BM="spec-card",tXe={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 Nbe(e){return Fe(e,Object.entries(tXe).map(([t,o])=>[[t],Oa("variant",eXe,BM,o)]))}var iXe=[...KQ,"align"],Obe={fields:Pi(Nbe({_gContent:gg("Content"),eyebrow:U("Chip label","In the product"),title:q("Heading",`Seen from
16
16
  *the counter.*`),body:q("Body",""),_gCard:gg("Mockup card"),variant:io("Card type",nf(rXe,{}),FM.map(e=>({...e,picture:lne[e.value]})),BM,{columns:3,cell:vr}),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",nf(nXe,{}),[{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:gg("Kanban columns"),col1Title:U("Column 1 title",""),col1Cards:zr("Column 1 cards",nf(GN,{}),"Job card label","verbatim"),col2Title:U("Column 2 title",""),col2Cards:zr("Column 2 cards",nf(GN,{}),"Job card label","verbatim"),col3Title:U("Column 3 title",""),col3Cards:zr("Column 3 cards",nf(GN,{}),"Job card label","verbatim"),col4Title:U("Column 4 title",""),col4Cards:zr("Column 4 cards",nf(GN,{}),"Job card label","verbatim"),_gClaims:gg("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:gg("Terminal"),termLines:zr("Terminal lines",nf(aXe,{}),"$ efficient \u2026","verbatim"),_gBrowser:gg("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:gg("Style"),align:le("Mockup position",nf(oXe,{}),[{label:"Right of the copy",value:"right"},{label:"Left of the copy",value:"left"}],"right")}),iXe,Aa)};import{group as $N}from"efficient-easel/screen/lib/document/box-fields";var bg={title:"Order summary",note:"A short reassurance note under the total."},HM=Vn.OrderSummary,Abe={label:"Order Table",fields:HM,defaultProps:{eyebrow:"",title:"",rows:[],subRows:[],totalLabel:"",totalAmount:"",note:"",contained:!0}};var Lbe={fields:{_gContent:$N("Content"),eyebrow:U("Eyebrow",W.eyebrow),title:q("Heading",bg.title),_gItems:$N("Items"),dataSource:eo("Order content","Manual"),rows:{type:"array",label:"Items",arrayFields:{label:xe("Item"),meta:xe("Meta line"),amount:xe("Amount")},getItemSummary:e=>e.label||"Item"},...HM,subRows:{type:"array",label:"Sub-total lines",arrayFields:{label:xe("Label"),amount:xe("Amount")},getItemSummary:e=>e.label||"Line"},_gTotal:$N("Total"),totalLabel:U("Total label","Total"),totalAmount:U("Total amount","$0,000"),note:q("Note",bg.note),_gLayout:$N("Layout")},resolveFields:(e,{fields:t})=>to("OrderSummary",t,e.props,{hides:["rows"]})};import{jsx as Ybe}from"react/jsx-runtime";import{AccentIcon as kXe,ListIcon as SXe}from"efficient-easel/icons";import{isNodeList as TXe,newId as EXe}from"efficient-easel/data";import{group as Gbe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as hi}from"react/jsx-runtime";import{useId as Fbe}from"react";import{useEasel as sXe,useSelectedHost as lXe}from"efficient-easel/easel";import{CloseIcon as dXe,LinkIcon as Bbe,LockIcon as cXe}from"efficient-easel/icons";import{SettingsField as Hbe}from"efficient-easel/panel";import{deviceField as pXe,deviceNote as mXe}from"efficient-easel/screen/lib/document/device-fields";import{Input as DM}from"efficient-shell/ui";var MM=(e,t)=>t==="number"?`${v6(e.value)} \xB7 ${u(e.label)}`:`${u(e.label)} \xB7 ${v6(e.value)}`;function uXe(e,t){return[{type:"label",key:"heading",label:u("Live numbers")},...e.map(o=>({key:o.key,label:MM(o,"name"),onSelect:()=>t(o.key)}))]}var Dbe=(e,t)=>e.length?{label:u("Connect to a live number"),icon:hi(Bbe,{size:16}),menu:uXe(e,t)}:void 0,Mbe=(e,t,o)=>hi(DM,{id:e,readOnly:!0,value:t,leftIcon:hi(cXe,{size:16}),endAction:{label:u("Unlink"),icon:hi(dXe,{size:16}),onClick:()=>o("")}});function fXe({id:e,text:t,countKey:o,choices:n,onText:r,onLink:a}){let i=o?n.find(s=>s.key===o):void 0;return hi("div",{className:"sf-copybox",children:o?Mbe(e,i?MM(i,"number"):t,a):hi(DM,{id:e,value:t,onChange:s=>r(s.target.value),endAction:Dbe(n,a)})})}function hXe({id:e,countKey:t,onLink:o}){let n=fp(Pv),r=Ob({[$d]:t}),a=r?n.find(i=>i.key===r):void 0;return hi("div",{className:"sf-copybox",children:r?Mbe(e,a?MM(a,"number"):r,o):hi(DM,{id:e,readOnly:!0,value:u("Typed by hand"),endAction:Dbe(n,o)})})}var zbe={type:"custom",icon:hi(Bbe,{}),render:({value:e,onChange:t})=>hi(gXe,{value:e,onChange:t})};function gXe({value:e,onChange:t}){let o=Fbe();return hi(Hbe,{label:u("Live number"),htmlFor:o,children:hi(hXe,{id:o,countKey:typeof e=="string"?e:"",onLink:t})})}function bXe(){let e=lXe();try{return sXe(t=>cre(t.appState.data.content,e?.id))}catch{return!0}}function wXe({value:e,onChange:t}){let o=Fbe(),[n,r]=ic($d),a=bXe();return hi(Hbe,{label:u("Body"),htmlFor:o,children:hi(fXe,{id:o,text:ZC(e).text,countKey:Ob({[$d]:n}),choices:a?fp(Pv):yXe,onText:i=>t(jZ("textarea",e,i)),onLink:r})})}var xXe=mXe(),yXe=[],Ibe=new WeakMap;function vXe(e){let t=Ibe.get(e);if(!t){let o={...e,render:({value:n,onChange:r})=>hi(wXe,{value:n,onChange:r})};t=pXe("desktop",o),Ibe.set(e,t)}return t}function Wbe(e,t){if(typeof t?.[$d]!="string"||GC(t)!==null||Yn(t))return e;let o=e.text;return!o||typeof o!="object"?e:{_dDevice:xXe,...e,text:vXe(o)}}var zM=Vn.CardList,Ube={label:"Card list",inline:!0,fields:zM,defaultProps:{rowField:""}};function jbe(e){return TXe(e)?e.some(t=>{let o=t.props??{};return t.type==="Text"&&typeof o[$d]=="string"&&Yn(o)?!0:Object.values(o).some(jbe)}):!1}var PXe=e=>Object.defineProperty(Object.fromEntries(e.map(t=>[t.key,""])),"key",{get:()=>EXe("row"),enumerable:!0}),$be=new WeakMap;function CXe(e,t,o){let n=t.filter(s=>!s.everySource),r=$be.get(e);r||$be.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,M1(d)]));o&&(s[$d]=zbe);let l=n[0]?.key;i={...e,arrayFields:s,defaultItemProps:PXe(n),getItemSummary:d=>l&&typeof d?.[l]=="string"&&d[l]||u("Row")},r.set(a,i)}return i}var qbe="cardListInCardTemplate",KN={not:{context:qbe,is:!0}},_Xe={...$a,[qbe]:(e,t)=>{let o=hp(t.appState,e.props?.id);return o===void 0?void 0:o!==null}},RXe=at({type:"array",label:"Rows",icon:Ybe(SXe,{}),arrayFields:{}},{all:[KN,ll]}),NXe=e=>Cq(e,"text").find(t=>!t.everySource)?.key??"title",Kbe=new WeakMap;function OXe(e,t){let o=Kbe.get(e);o||Kbe.set(e,o=new WeakMap);let n=o.get(t);return n||o.set(t,n={...e,highlightedCard:t}),n}var AXe=e=>{let t=new Set(ih(null,{type:Br,props:e}).map(o=>o.key));return o=>t.has(o)},Vbe=new WeakMap;function LXe(e,t){let o=Vbe.get(e);o||Vbe.set(e,o=new WeakMap);let n=o.get(t);return n||o.set(t,n={...e,[Hm]:t}),n}var Xbe={fields:{_gSource:Gbe("Source"),dataSource:at(eo("Card content","Manual"),KN),[Ab]:Lb(),_gCardList:Gbe("Card list"),rowField:Kr("Shows","list"),[Hm]:RXe,highlightedCard:at(le("Highlighted card",Ybe(kXe,{}),[{label:"None",value:""}],""),KN),highlightBadge:at(U("Highlight badge","Most popular"),KN),...zM},resolveData:(e,t)=>{let o=e.props,n=t?.lastData?.props,r=mN(Jre(o,n),Hm),a=_E(r,AXe(r));return a===o?e:{...e,props:a}},resolveFields:(e,t)=>{let o=e.props??{},n=to(Br,Ka(t.fields,e,t),o),r=!!hp(t.appState,o.id),a=n[Hm];if(r||!a)return n;let i=ih(t.appState,{type:Br,props:o}),s=LXe(n,CXe(a,i,jbe(o.template))),l=n.highlightedCard;return l?OXe(s,pN(l,cN(o,{rows:Hm,label:NXe(i)}))):s},showWhenFacts:_Xe};function IXe(e){let t=typeof e?.label=="string"?e.label.trim():"",o=typeof e?.name=="string"?e.name.trim():"";return t||o}var Zbe={fields:{},resolveFields:e=>({_nHostPart:sl("The section draws {what} here, in every card.",{what:IXe(e.props)})})};import{group as Jbe}from"efficient-easel/screen/lib/document/box-fields";var Qbe={fields:{_gContent:Jbe("Content"),eyebrow:U("Eyebrow",tc.eyebrow),lead:q("Lead",W.body),stats:{type:"array",label:"Stats",arrayFields:{value:xe("Number"),label:xe("Unit")},getItemSummary:e=>e.label||e.value||"Stat"},_gFounders:Jbe("Founders"),foundersHeading:q("Founders heading",tc.foundersHeading),foundersBody:q("Founders statement",tc.foundersBody),attribution:U("Attribution",tc.attribution)}};import{group as ewe}from"efficient-easel/screen/lib/document/box-fields";var twe={fields:{_gContent:ewe("Content"),heading:U("Heading",qv.heading),dataSource:eo("Payment content","Manual"),badges:{type:"array",label:"Payment methods",arrayFields:{label:xe("Name"),src:Qe("Logo","image/*")},getItemSummary:e=>e.label||e.src||"Method"},assurances:{type:"array",label:"Reassurance lines",arrayFields:{text:xe("Line")},getItemSummary:e=>e.text||"Line"},_gLayout:ewe("Layout")},resolveFields:(e,{fields:t})=>to("PaymentBadges",t,e.props,{hides:["badges"]})};import{jsx as WM}from"react/jsx-runtime";import{HeightIcon as FXe,ImageIcon as BXe,LayoutIcon as HXe}from"efficient-easel/icons";import{group as DXe}from"efficient-easel/screen/lib/document/box-fields";var yl={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"},owe={label:"Post Card",drawsPictures:!0,defaultProps:{source:null,image:"",title:"",excerpt:"",href:"",category:"",date:"",readLabel:"",layout:CR,showCover:!0,placement:"bottom-left",darken:55,darkenStyle:Mv[0].value,minHeight:ml.fallback}};var nwe={field:"layout",is:"cover"},MXe={not:nwe},zXe=["placement","darken","darkenStyle","minHeight","_gTint"],WXe=["showCover"],UXe=["image","title","excerpt","href"],rwe={fields:Fe({source:Mo(ax),image:Qe("Cover image","image/*"),title:q("Heading",yl.title),excerpt:q("Excerpt",yl.excerpt),href:Ve("Link"),category:U("Category",yl.category),date:U("Date",yl.date),readLabel:U("Read time",yl.readLabel),layout:io("Card layout",WM(HXe,{}),Ude.map(e=>({...e,picture:nne[e.value]})),CR,{columns:2,cell:XC}),showCover:te("Show cover image",!0,WM(BXe,{})),placement:td("Text position"),minHeight:ae("Card height",WM(FXe,{}),ml.min,ml.max,ml.step,ml.fallback,ml.length),_gTint:DXe("Image tint"),...ix()},[[zXe,nwe],[WXe,MXe],[UXe,Tb]])};import{jsx as nk}from"react/jsx-runtime";import{ColumnWidthsIcon as GXe,ColumnsIcon as $Xe,LayoutIcon as KXe,MediaLayoutStackedIcon as VXe,PlacementIcon as YXe}from"efficient-easel/icons";import{deviceField as jXe}from"efficient-easel/screen/lib/document/device-fields";import{group as iwe,section as swe}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as qXe}from"efficient-easel/screen/lib/document/field-buckets";import{isNodeList as cwe}from"efficient-easel/data";var px={num:W.sectionNumber,title:W.headingAccent,description:W.body,cta:W.viewAll},VN=Vn.ProcessSteps,awe={label:"Image & Text Columns",drawsPictures:!0,fields:VN,defaultProps:{num:"",title:"",description:"",columns:3,padTop:120,padBottom:120}};var lwe={field:"arrangement",in:["rows-left","rows-right"]},pwe="drawsLegacySteps",dwe={not:{context:pwe,is:!0}},XXe={[pwe]:e=>{let t=e.props??{};return!dt(t)&&!cwe(t.boxes)}},ZXe=e=>e?.data?.root?.props??null,mwe={fields:Fe({_gSource:iwe("Source"),dataSource:eo("Item content","Manual"),[Ab]:Lb(),_sHeader:swe("Header"),_gContent:iwe("Content"),num:U("Number",px.num),title:U("Heading",px.title),description:q("Body",W.body),boxes:VN.boxes,[Rt]:VN[Rt],[qXe.Design]:swe("Design"),arrangement:io("Arrangement",nk(KXe,{}),Lge.map(e=>({label:e.label,hint:e.hint,value:e.value,picture:dne[e.value]})),"columns",{columns:3,cell:vr}),imageWidth:Ce("Image width",nk(GXe,{}),Ige.map(e=>({label:e.label,value:e.value})),"half"),phoneOrder:jXe("mobile",Ce("Order",nk(VXe,{}),Fge.map(e=>({label:e.label,value:e.value})),"picture")),columns:ae("Columns",nk($Xe,{}),2,4,1,3),...Lne(),cardText:Ce("Text position",nk(YXe,{}),[{label:"Below picture",value:"below"},{label:"On picture",value:"on-image"}],"below")},[[["cardText"],{not:{field:"boxes",set:!0}}],[["arrangement"],dwe],[["imageWidth","phoneOrder"],{all:[lwe,dwe]}],[["columns"],{not:lwe}]]),showWhenFacts:XXe,resolveFields:(e,t)=>to(V4,it(t.fields,e.props.headPlacement,st.ProcessSteps.headRows),e.props,{root:ZXe(t.appState)}),resolveData:(e,t)=>{let o=e.props;return t?.changed?.dataSource!==!0||!dt(o)||cwe(o[Rt])?e:{...e,props:{...o,[Rt]:mq(cq(o,V4))}}}};import{jsx as JXe}from"react/jsx-runtime";import{SquareIcon as QXe}from"efficient-easel/icons";import{group as eZe,section as tZe}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as oZe}from"efficient-easel/screen/lib/document/field-buckets";var uwe={fields:{_gContent:eZe("Content"),eyebrow:U("Eyebrow",tu.eyebrow),title:q("Heading",tu.title),body:q("Body",tu.body),[oZe.Design]:tZe("Design"),topBorder:te("Top border",!0,JXe(QXe,{}))},resolveFields:(e,{fields:t})=>it(t,e.props.headPlacement,st.Prose.headRows)};import{jsx as UM}from"react/jsx-runtime";import{HashIcon as nZe,StylesIcon as fwe}from"efficient-easel/icons";import{group as hwe}from"efficient-easel/screen/lib/document/box-fields";var gwe={fields:YZ({_gContent:hwe("Content"),headStyle:io("Style",UM(fwe,{}),GZ.map(e=>({...e,picture:sne[e.value]})),UZ,{columns:3,cell:vr}),num:U("Number",Ln.num),eyebrowLook:le("Eyebrow style",UM(fwe,{}),[...Xs],yJ),numStyle:Ce("Number style",UM(nZe,{}),[...nee],oee),title:q("Heading",Ln.title),description:q("Body",Ln.description),linkText:U("Button",Ln.linkText),linkHref:Ve("Link"),_gLogo:hwe("Logo"),logoSrc:Qe("Logo image","image/*"),logoAlt:Zo(J("Logo alt text","Logo description"))})};import{group as YN}from"efficient-easel/screen/lib/document/box-fields";var Fc={headNum:W.sectionNumber,headTitle:W.headingAccent,headDesc:W.body,viewLabel:"View series \u2192"},bwe={label:"Recurring Columns",defaultProps:{headNum:"",headTitle:"",headDesc:"",cards:[],viewLabel:"",background:"transparent"}};var wwe={fields:{_gHead:YN("Section header"),headNum:U("Number",Fc.headNum),headTitle:q("Heading",Fc.headTitle),headDesc:q("Body",Fc.headDesc),_gCards:YN("Cards"),cards:{type:"array",label:"Cards",arrayFields:{num:xe("Number"),since:xe("Right Top Text"),title:je("Title"),desc:je("Body"),entries:xe("Entries count"),entriesLabel:xe("Button Right Text")},getItemSummary:e=>e?.title||(e?.num?`Column ${e.num}`:"Column")},_gViewLabel:YN("Card link"),viewLabel:U("Card button",Fc.viewLabel),_gStyle:YN("Style"),background:ac("Background color",rr.Series,!0)},resolveFields:(e,{fields:t})=>it(t,e.props.headPlacement,st.Series.headRows)};var xwe={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 ywe}from"react/jsx-runtime";import{BackgroundIcon as rZe,ContrastIcon as aZe}from"efficient-easel/icons";import{group as vwe}from"efficient-easel/screen/lib/document/box-fields";var kwe={fields:{_gContent:vwe("Content"),cells:{type:"array",label:"Strip items",arrayFields:{text:J("Label","Label"),tone:Ce("Tone",ywe(aZe,{}),[{label:"Normal",value:"normal"},{label:"Muted",value:"muted"}],"normal")},defaultItemProps:{text:"",tone:"normal"},getItemSummary:e=>e?.text||"Item",min:2,max:8},_gStyle:vwe("Style"),fill:Ce("Strip fill",ywe(rZe,{}),[{label:"Dark band",value:"dark"},{label:"None",value:"none"}],"dark")}};import{jsx as jN}from"react/jsx-runtime";import{CaseIcon as iZe,OpacityIcon as Swe,PlacementIcon as sZe}from"efficient-easel/icons";import{group as mx,section as Twe}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as lZe}from"efficient-easel/screen/lib/document/box-fields";var Ewe={fields:{_sText:Twe("Text column"),_gContent:mx("Content"),eyebrow:U("Eyebrow",kp.eyebrow),title:q("Heading",kp.title),body:q("Body",kp.body),uppercase:te("Uppercase heading",!1,jN(iZe,{})),...NC("textAlign",{access:lZe}),_gButton:mx("Button"),...bl,_gTextBg:mx("Background image"),textBgSrc:Qe("Background image","image/*"),overlay:ae("Overlay",jN(Swe,{}),0,100,5,60,"%"),_sImage:Twe("Image column"),_gImage:mx("Image"),imageSrc:Qe("Image","image/*"),reverse:Ce("Image side",jN(sZe,{}),[{label:"Image left",value:!1},{label:"Image right",value:!0}],!1),_gImageBtn:mx("Overlay button"),imageBtnText:U("Overlay button",ZP.text),imageBtnHref:Ve("Overlay button link"),_gStyle:mx("Style"),grayscale:Dw(),imageOverlay:ae("Image overlay",jN(Swe,{}),0,100,5,40,"%")}};import{jsx as dZe}from"react/jsx-runtime";import{ColumnsIcon as cZe}from"efficient-easel/icons";import{group as Pwe}from"efficient-easel/screen/lib/document/box-fields";var Cwe={fields:{_gContent:Pwe("Content"),heading:U("Heading","By the *numbers*"),items:{type:"array",label:"Stats",arrayFields:{value:xe("Value"),label:xe("Label")},getItemSummary:e=>e.label||e.value||"stat"},columns:ae("Columns",dZe(cZe,{}),2,4,1,4),_gStyle:Pwe("Style"),background:ac("Background color",rr.Stats)}};import{jsx as pZe}from"react/jsx-runtime";import{AccentIcon as mZe}from"efficient-easel/icons";import{group as Rwe}from"efficient-easel/screen/lib/document/box-fields";var rf={eyebrow:W.eyebrow,title:W.headingAccent,desc:W.body},_we={label:"Stats with Text",defaultProps:{eyebrow:"",title:"",desc:"",stats:[],background:dJ,padTop:120,padBottom:120}};var Nwe={fields:{_gContent:Rwe("Content"),eyebrow:U("Eyebrow",rf.eyebrow),title:q("Heading",rf.title),desc:q("Body",rf.desc),stats:{type:"array",label:"Stats",arrayFields:{value:J("Number"),prefix:J("Prefix"),suffix:J("Unit"),supSuffix:J("Superscript"),emphasizeAll:te("Whole number Theme Color",!1,pZe(mZe,{})),label:J("Label"),sub:je("Body")},defaultItemProps:{value:"",prefix:"",suffix:"",supSuffix:"",emphasizeAll:!1,label:"",sub:""},getItemSummary:e=>e.label||e.value||"Stat"},_gStyle:Rwe("Style"),background:ac("Background color",rr.StatsParagraph,!0)},resolveFields:(e,{fields:t})=>it(t,e.props.headPlacement,st.StatsParagraph.headRows)};import{jsx as Awe}from"react/jsx-runtime";import{ColumnsIcon as uZe,StylesIcon as fZe}from"efficient-easel/icons";import{group as Lwe}from"efficient-easel/screen/lib/document/box-fields";var ux={eyebrow:"Feedback",title:"What people *say.*"},Owe={label:"Testimonials",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Iwe={fields:{_gContent:Lwe("Content"),eyebrow:U("Eyebrow",ux.eyebrow),eyebrowLook:le("Eyebrow style",Awe(fZe,{}),[...Xs],vp("Testimonials")),title:q("Heading",ux.title),items:{type:"array",label:"Quotes",arrayFields:{quote:je("Quote"),name:J("Name"),role:J("Role \xB7 location")},defaultItemProps:{quote:"",name:"",role:""},getItemSummary:e=>e?.name||e?.quote||"Quote"},_gStyle:Lwe("Style"),columns:ae("Columns",Awe(uZe,{}),1,3,1,3)},resolveFields:(e,{fields:t})=>it(t,e.props.headPlacement,st.Testimonials.headRows)};import{jsx as qN}from"react/jsx-runtime";import{BlockBadgeIcon as hZe,BorderTopIcon as gZe,MediaLayoutInsetIcon as bZe}from"efficient-easel/icons";import{group as wZe}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as xZe}from"efficient-easel/screen/lib/document/style-fields";import{VIEW_KEY_ACCESS as yZe}from"efficient-easel/screen/lib/document/box-fields";function vZe(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 Fwe={fields:{text:q("Body",W.body),consentWords:sN("text"),[$d]:xZe("text"),...rl("align",{access:yZe}),tone:E5(),_gText:wZe("Text"),rowField:Kr("Shows",["text","date"]),[Go]:Nc(),[kJ]:at(Ce("Place",qN(hZe,{}),[{label:"In the card",value:"",picture:qN(bZe,{})},{label:"On the top line",value:"top-line",picture:qN(gZe,{})}],""),{not:{context:wF,is:!0}}),tag:le("HTML tag",qN(da,{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)=>vZe(Wbe(lN(Ka(t.fields,e,t),e.props,"text"),e.props),e.props),showWhenFacts:{...$a,[wF]:(e,t)=>{let o=hp(t.appState,e.props?.id);return o===void 0?void 0:!eb(o?.type)}}};import{jsx as rk}from"react/jsx-runtime";import{GapIcon as kZe,LineBetweenIcon as SZe,SquareIcon as TZe,StylesIcon as EZe,TextSizeIcon as PZe}from"efficient-easel/icons";import{group as Bwe}from"efficient-easel/screen/lib/document/box-fields";var Hwe={fields:{_gContent:Bwe("Content"),items:kb(zr(h6.label,h6.icon,"item","markup"),jE),_gStyle:Bwe("Style"),tone:Ce("Style",rk(EZe,{}),[{label:"Solid",value:"scrim"},{label:"Plain",value:"plain"}],"scrim"),borders:te("Hairline borders",!0,rk(TZe,{})),size:Ce("Text size",rk(PZe,{}),[...Bj],kE),separator:kN(rk(SZe,{}),SE),join:le("Join",rk(kZe,{}),zP,MP)}};import{jsx as Dwe}from"react/jsx-runtime";import{ClockIcon as CZe,EyeIcon as _Ze}from"efficient-easel/icons";import{group as Mwe,section as XN}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as zwe}from"efficient-easel/screen/lib/document/field-buckets";var Wwe={field:"layout",is:"track"},RZe={not:Wwe},Uwe={fields:Fe({[zwe.Layout]:XN("Layout"),layout:io("Display",Dwe(_Ze,{}),[{label:"Split",hint:"Split (editorial aside)",value:"split",picture:f2.split},{label:"Spine",hint:"Spine (single rail)",value:"spine",picture:f2.spine},{label:"Alternating",hint:"Alternating (zig-zag)",value:"alternating",picture:f2.alternating},{label:"Track",hint:"Track (year rail)",value:"track",picture:f2.track}],"split",{columns:2,cell:vr}),[zwe.Design]:XN("Design"),background:ac("Background color",rr.TimelineTrack),_sHeader:XN("Header"),_gContent:Mwe("Content"),eyebrow:U("Eyebrow",Js.eyebrow),title:q("Heading",Js.title),intro:q("Intro",Js.intro),imageSrc:Qe("Image","image/*"),imageCaption:U("Image caption",Js.imageCaption),imageMeta:U("Image meta",Js.imageMeta),_gButton:Mwe("Button"),...bl,_sEntries:XN("Timeline entries"),entries:{type:"array",label:"Entries",arrayFields:{date:xe("Sub-title"),title:je("Title"),body:je("Body")},defaultItemProps:{date:"",title:"",body:""},getItemSummary:e=>e?.date||e?.title||"Entry"}},[[["imageSrc","imageCaption","imageMeta"],RZe],[["background"],Wwe]]),resolveFields:(e,{fields:t})=>{if(e.props.layout!=="track")return t;let o=t.entries;return{...t,entries:{...o,arrayFields:{...o?.arrayFields,future:te("Upcoming",!1,Dwe(CZe,{}))}}}}};import{jsx as NZe}from"react/jsx-runtime";import{ClockIcon as OZe}from"efficient-easel/icons";import{section as ak}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as Gwe}from"efficient-easel/screen/lib/document/field-buckets";var $we={fields:{_sHeader:ak("Header"),eyebrow:U("Eyebrow",Qs.eyebrow),title:q("Heading",Qs.title),intro:q("Body",Qs.intro),_sEntries:ak("Milestones"),entries:{type:"array",label:"Milestones",arrayFields:{date:J("Year"),title:je("Title"),blurb:je("Body"),future:te("Upcoming",!1,NZe(OZe,{}))},defaultItemProps:{date:"",title:"",blurb:"",future:!1},getItemSummary:e=>e?.date||e?.title||"Milestone"},_sButton:ak("Button"),...bl,[Gwe.Design]:ak("Design"),background:ac("Background color",rr.TimelineTrack),[Gwe.Layout]:ak("Layout")},resolveFields:(e,{fields:t})=>it(t,e.props.headPlacement,st.TimelineTrack.headRows)};import{jsx as AZe}from"react/jsx-runtime";import{StylesIcon as LZe}from"efficient-easel/icons";import{group as Kwe}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as IZe}from"efficient-easel/screen/lib/document/box-fields";var Vwe={fields:{_gContent:Kwe("Content"),title:q("Heading",tC.title),buttons:{type:"array",label:"Buttons",arrayFields:{label:J("Button"),href:kr(J("Button link")),variant:le("Style",AZe(LZe,{}),[{label:"Filled",value:"primary"},{label:"Outline",value:"outline"}],"outline")},defaultItemProps:{label:"",href:"#",variant:"outline"},getItemSummary:e=>e?.label||"Button"},_gStyle:Kwe("Style"),...rl("buttonsAlign",{fallback:"right",access:IZe})},resolveFields:(e,{fields:t})=>{let o=ZC(e.props.title);if(!(!o.hidden&&o.text.trim()))return t;let{buttonsAlign:n,buttonsAlignPhone:r,...a}=t;return a}};import{jsx as BZe}from"react/jsx-runtime";import{jsx as Bc,jsxs as GM}from"react/jsx-runtime";var $M={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 Ywe({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(At,{contained:i,...Te("py-6",l),children:GM("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&&GM("div",{className:"absolute inset-0","aria-hidden":!0,children:[Bc(j0,{children:Bc(FZe,{src:Ni(a)})}),Bc("div",{className:"absolute inset-0",style:{background:la(d)}})]}),GM("div",{className:"relative z-[1] flex max-w-[680px] flex-col gap-5",style:a?Vs:void 0,children:[e&&Bc(lt,{text:e}),t&&Bc("h2",{className:`font-heading2 ${$M.headingMedium} font-medium leading-[1.05] tracking-[-0.03em] ${$M.headingMediumUpTo800}`,children:ee(t,!1)}),o&&Ft(o).map((c,p)=>Bc("p",{className:`${$M.body} leading-[1.6] opacity-85`,children:A(c)},p)),n&&Bc("div",{className:"mt-2 self-start",children:Bc(ba,{href:r||"#",variant:"primary",children:A(n)})})]})]})})}function FZe({src:e}){let t=fo(e);return Bc(Ep,{src:t.src,...t.srcSet?{srcSet:t.srcSet,sizes:Xv}:{},alt:"",className:"h-full w-full object-cover"})}var jwe={...QQ,render:e=>{let{eyebrow:t,title:o,body:n,imageSrc:r,ctaText:a,ctaHref:i,contained:s,overlay:l,editor:d}=e,c=ii(a,i,d);return BZe(Ywe,{eyebrow:_(t,ou.eyebrow,d),title:_(o,ou.title,d),body:_(n,ou.body,d),imageSrc:r,overlay:typeof l=="number"?l:60,ctaText:c.text,ctaHref:c.href,contained:s,pad:Xe("Banner",e)})}};import{jsx as Zwe}from"react/jsx-runtime";import{jsx as fx,jsxs as KM,Fragment as HZe}from"react/jsx-runtime";import{Fragment as DZe}from"react";var MZe={16:"max-view-tablet:py-4"},qwe=e=>mP({values:Dr(e,ch,!0),frame:pP(JE),drawsFrame:!0},!0).root;function Xwe({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:fx("nav",{className:pe(["border-b border-line px-[var(--sf-site-gutter,40px)]",r?null:Hv.all[JE.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:MZe[JE.topPhone]].filter(Boolean).join(" "),a),style:r&&Object.keys(r.style).length?r.style:void 0,...r?.attrs,children:KM("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 KM(DZe,{children:[c>0&&fx("span",{className:"opacity-40",children:"/"}),d.href&&!p?fx(Nt,{newTab:"auto",href:d.href,className:"hover:text-fg",children:Ko(d.label)}):fx("span",{className:p?"text-fg":void 0,children:Ko(d.label)})]},c)}),o&&KM(HZe,{children:[fx("span",{className:"opacity-40",children:"\xB7"}),fx("span",{children:A(o)})]})]})})}var zZe=()=>[{label:u("Home"),href:"/"},{label:u("Section"),href:""}],Jwe={...jfe,render:e=>{let{items:t,meta:o,editor:n}=e,r=a=>Zwe(Xwe,{items:He(t,zZe(),n),current:typeof a=="string"?a:void 0,meta:_(o,aN.meta,n),editing:n?.isEditing,pad:qwe(e)});return Yn(e)?Zwe(nl,{type:"Breadcrumb",props:e,children:a=>r(a.currentCrumb)}):r()}};import{jsx as VM,Fragment as mJe}from"react/jsx-runtime";import{jsx as ZN}from"react/jsx-runtime";import{ArrowLongRightIcon as WZe,ArrowRightIcon as UZe,ArrowUpRightIcon as GZe,BagIcon as $Ze,CarIcon as KZe,CartIcon as VZe,ChatIcon as YZe,ChevronLeftIcon as jZe,ChevronRightIcon as qZe,DownloadIcon as XZe,EmailIcon as ZZe,ExternalIcon as JZe,LocationIcon as QZe,PackageIcon as eJe,PhoneIcon as tJe,PlayIcon as oJe,ReceiptRefundIcon as nJe,SearchIcon as rJe,ShieldCheckIcon as aJe,TagIcon as iJe,TruckIcon as sJe,WheelIcon as lJe}from"efficient-shell/icons/efficient";var dJe="sf-button-block",cJe={"arrow-right":UZe,"arrow-long-right":WZe,"arrow-up-right":GZe,"chevron-right":qZe,external:JZe,cart:VZe,bag:$Ze,tag:iJe,email:ZZe,location:QZe,play:oJe,download:XZe,search:rJe,car:KZe,phone:tJe,wheel:lJe,chat:YZe,"chevron-left":jZe,package:eJe,truck:sJe,"shield-check":aJe,"receipt-refund":nJe},pJe=e=>e?` ${e}`:"";function Qwe(e){let{label:t,href:o,variant:n,align:r,alignTablet:a,alignPhone:i,contained:s,arrow:l,icon:d,iconPosition:c,widthFit:p,widthFitPhone:m,widthFitTablet:f,buttonColor:g,buttonTextColor:h,hrefRewrite:w,blockPad:b}=e,y=Km(),x=FD(d),v=x&&x!=="none"?cJe[x]:void 0,k=x===void 0?iN(l)?{}:{arrow:null}:v?{arrow:ZN(v,{size:16}),...z1(c)==="before"?{glyphBefore:!0}:{}}:{arrow:null},S=Yoe(e),P=[Qfe(p,m,f,{atSectionLine:!y}),S?.className??""].filter(Boolean).join(" "),E=P?{className:P}:{},C=Jfe(c,p)?{spread:!0}:{},T=Koe(e),R=T?T.background==="transparent"?"ghost":"primary":n,H={...T??(g?n==="ghost"?{borderColor:g}:{background:g,borderColor:g}:{}),...h?{color:h}:{},...S?.style??{},...Voe(e)??{}},L=Object.keys(H).length?{style:H}:{},N=ph(b,bp.text);return ZN(At,{contained:s,...N,className:`${dJe} ${N.className}`,part:Bt("button-block"),children:ZN("div",{className:`flex${r?` ${Kd[r]}`:""}${pJe(Hr("justify",r,a,i,{atSectionLine:!y}))}`,children:ZN(ba,{href:o||"#",variant:R,...E,...C,...k,...L,...o&&w?{hrefRewrite:w}:{},part:Bt("button"),glyphPart:Bt("button-icon"),children:A(t)})})})}import{phoneKey as uJe}from"efficient-easel/draw";var exe={...tZ,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(([k])=>k==="buttonFillOpacity"||k==="buttonBorder"||k==="buttonCorners"||k==="buttonCornerSides"||k.startsWith("buttonPadding"))),w=xQ(e),b=w?{hrefRewrite:w}:{},y=(k,S)=>VM(Qwe,{label:ec(k,Qd.text,g)??"",href:S,variant:n,align:r,alignTablet:a,alignPhone:i,contained:s,arrow:l,icon:d,iconPosition:c,widthFit:p,widthFitPhone:e[uJe("widthFit")],buttonColor:m,buttonTextColor:f,...h,...b,blockPad:Dr(e)}),x=Yn(e),v=Yn(e,Go);return!x&&!v?y(t,o):VM(nl,{type:"ButtonBlock",props:e,children:(k,S,P)=>P&&!g?.isEditing&&!(typeof k.label=="string"&&k.label.trim())?VM(mJe,{}):y(k.label,k.href)})}};import{jsx as sk,Fragment as ixe}from"react/jsx-runtime";import{jsx as ik,Fragment as fJe,jsxs as txe}from"react/jsx-runtime";var oxe={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))]"},hJe="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))]",gJe="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))]",bJe="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))]",nm={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 nxe(e,t,o,n=!1){let r=Z0(o),a=t-1,i=Math.floor(a/r)*r,s=[];return e===0&&s.push(nm.phone.tl,nm.phone.tr,nm.wide.tl),e===a&&s.push(nm.phone.bl,nm.phone.br),e===r-1&&t>=r&&s.push(nm.wide.tr),e===i&&s.push(nm.wide.bl),e===a&&(t%r===0||JN(e,t,o,n)>1)&&s.push(nm.wide.br),e===a&&t<r&&JN(e,t,o,n)>1&&s.push(nm.wide.tr),s.join(" ")}function JN(e,t,o,n){if(!n||t<1||e!==t-1)return 1;let r=Z0(o),a=t%r;return a===0?1:r-a+1}var rxe="view-wide:[grid-column:span_var(--cd-span)/span_var(--cd-span)]";function axe({look:e,eyebrow:t,title:o,columns:n,omitHead:r=!1,editing:a=!1,cards:i,pad:s}={}){let l=me(),d=Z0(n),c=!!(t??"").trim()||!!(o??"").trim();return!a&&!c&&!i?null:ik(M,{as:"section",className:"relative z-[2] bg-surface",children:txe("div",{...Te(pe(r?gJe:hJe,l),s),children:[r?null:txe(fJe,{children:[(t??"").trim()&&ik(lt,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&ik("h2",{className:`mb-9 font-heading2 ${oxe.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-7 ${oxe.headingMediumUpTo800}`,children:ee(o??"",!1)})]}),i?ik("div",{className:bJe,style:{"--cd-cols":String(d),overflowY:"visible"},children:ik(Lo,{children:i})}):null]})})}var sxe=()=>[{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.")}],lxe=()=>sxe().map(e=>({[ah.title]:e.title??"",[ah.body]:e.body??""}));function wJe(e){return dt(e)?Kt(e,e.editor?.isEditing===!0,lxe()).rows.filter(t=>t[ah.title]||t[ah.body]).map(t=>({title:t[ah.title]??"",body:t[ah.body]??""})):null}function xJe(e){let t=e.editor?.isEditing===!0,o=dt(e),n=FP(e);if(o){let a=Kt(e,t,lxe());return jv(Vv(a.rows,a.sample?fp(o):[]).filter(Yv),n)}let r=He(e.items,sxe(),e.editor).map(on);return jv(Vv(r).filter(a=>t||Yv(a)),n)}function yJe(e,t,o=1){let n=[`relative grid ${xZ} bg-bg`,t,o>1?rxe:""].filter(Boolean).join(" "),r=o>1?{"--cd-span":String(o)}:void 0;return sk("div",{className:n,style:r,children:e})}var dxe={...bJ,render:e=>{let t=ze(e.headPlacement)==="own-box",o=l=>t?void 0:l,n=(e.template?.blockCount??0)>0,r=wJe(e);if(!n&&r&&!r.length)return sk(ixe,{});let a=l=>sk(axe,{look:ss(e.eyebrowLook,e.cardStyle==="label-only"?"KeyFeatures":"Cards"),eyebrow:o(_(e.eyebrow,J0.eyebrow,e.editor)),title:o(_(e.title,J0.title,e.editor)),columns:e.columns,omitHead:t,editing:e.editor?.isEditing,cards:l,pad:Xe("Cards",e)}),{rows:i,states:s}=n?xJe(e):{rows:[],states:[]};return n&&r&&!i.length?sk(ixe,{}):sk(Ue,{ownerId:String(e.id??""),ownerType:"Cards",Template:e.template,rows:i,states:s,fallback:a(),wrapCopy:(l,d)=>{let c=e.columns,p=e.fillLastRow===!0;return yJe(l,nxe(d.index,i.length,c,p),JN(d.index,i.length,c,p))},children:l=>i.length?a(l):a()})}};import{jsx as kJe}from"react/jsx-runtime";import{jsx as lk,jsxs as YM}from"react/jsx-runtime";var jM={body:"text-[length:var(--size-body,12px)]",label:"text-[length:var(--size-label,13px)]"};function cxe({tabs:e,activeTab:t,links:o,sticky:n=!0,editing:r=!1}){let a=An(),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(lk("nav",{className:Qt(`${n?`${pb} 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:YM("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 YM("span",{className:[`relative whitespace-nowrap border-r border-line px-[22px] py-[18px] font-mono ${jM.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&&lk("span",{className:`ml-2 ${jM.body} text-accent opacity-70`,children:Ko(g)}),f&&lk("span",{className:"absolute inset-x-0 -bottom-px h-[2px] bg-accent"})]},m)}),l.length>0&&lk("div",{className:"ml-auto flex border-l border-line",children:l.map((p,m)=>YM(Nt,{newTab:"auto",href:p.href||"#",className:`flex items-center gap-2.5 px-[22px] py-[18px] font-mono ${jM.label} uppercase tracking-[0.22em] text-fg-dim hover:text-fg`,children:[Ko(p.label)," ",lk("span",{className:"text-accent",children:"\u2197"})]},m))})]})}))}import{hidableText as SJe}from"efficient-easel/draw";var vJe=[{label:"Archive",href:"#sub-recent-issues"},{label:"RSS",href:"/contact"}],pxe={label:"Category bar",defaultProps:{tabs:[],activeTab:"All",links:vJe,sticky:!0}};var TJe=()=>[{label:u("All")},{label:W.category},{label:W.category}],mxe={...pxe,render:({tabs:e,activeTab:t,links:o,sticky:n,editor:r})=>kJe(cxe,{tabs:He(e,TJe(),r),activeTab:SJe(t),links:o,sticky:n,editing:r?.isEditing})};import{jsx as _Je}from"react/jsx-runtime";import{jsx as an,jsxs as wd}from"react/jsx-runtime";var rm={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 qM(e){return Number.isInteger(e)?String(e):String(Math.round(e*10)/10)}var uxe=[100,70,46,30,19,12];function fxe(e){return`color-mix(in srgb, var(--accent) ${uxe[e%uxe.length]}%, var(--bg))`}function EJe({data:e,suffix:t}){let o=Math.max(...e.map(n=>n.value),0)||1;return an("div",{className:"flex w-full flex-col gap-6",children:e.map((n,r)=>wd("div",{children:[wd("div",{className:"mb-2 flex items-baseline justify-between gap-4",children:[an("span",{className:`font-mono ${rm.label} uppercase tracking-[0.14em] text-fg/60`,children:A(n.label)}),wd("span",{className:`font-display ${rm.bodyLarge} font-medium text-fg`,children:[qM(n.value),t]})]}),an("div",{className:"h-[10px] border border-line bg-bg",children:an("div",{className:"h-full bg-accent",style:{width:`${Math.max(n.value/o*100,n.value===0?0:2)}%`}})})]},r))})}function PJe({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 wd("svg",{viewBox:"0 0 640 300",className:"w-full",role:"img","aria-hidden":!0,children:[[.25,.5,.75,1].map(c=>an("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)),an("line",{x1:o.l,x2:640-o.r,y1:o.t+r,y2:o.t+r,stroke:"var(--site-line)",strokeWidth:"1.5"}),an("path",{d,fill:"var(--accent)",opacity:"0.13"}),an("path",{d:l,fill:"none",stroke:"var(--accent)",strokeWidth:"2.5"}),s.map((c,p)=>wd("g",{children:[an("circle",{cx:c.x,cy:c.y,r:"4",fill:"var(--accent)"}),wd("text",{x:c.x,y:c.y-12,textAnchor:"middle",className:"font-display",fontSize:"14",fill:"var(--fg)",children:[qM(e[p].value),t]}),an("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 CJe({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:fxe(l)};return a+=d*r,c});return wd("div",{className:"flex w-full flex-wrap items-center justify-center gap-10",children:[an("svg",{viewBox:"0 0 200 200",className:"w-[220px] max-w-full -rotate-90",role:"img","aria-hidden":!0,children:i.map((s,l)=>an("circle",{cx:"100",cy:"100",r:n,fill:"none",stroke:s.ink,strokeWidth:"34",strokeDasharray:`${s.dash} ${r-s.dash}`,strokeDashoffset:-s.off},l))}),an("ul",{className:"flex min-w-[200px] flex-1 flex-col gap-3",children:e.map((s,l)=>wd("li",{className:"flex items-baseline gap-3",children:[an("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] flex-shrink-0 rotate-45",style:{background:fxe(l)}}),an("span",{className:`flex-1 font-mono ${rm.label} uppercase tracking-[0.12em] text-fg/60`,children:A(s.label)}),an("span",{className:`font-display ${rm.bodySmall} font-medium text-fg`,children:t?`${qM(s.value)}${t}`:`${Math.round(s.value/o*100)}%`})]},l))})]})}function hxe({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(w=>({label:(w.label??"").trim(),value:parseFloat(w.value??"")})).filter(w=>s?!0:w.label&&Number.isFinite(w.value)).map(w=>({label:w.label||"\u2014",value:Number.isFinite(w.value)?w.value:0})),f=!l&&(!!(e??"").trim()||!!(t??"").trim());if(!s&&!f&&m.length===0)return null;let g=n??"bars",h=m.length===0?null:g==="line"&&m.length>1?an(PJe,{data:m,suffix:p}):g==="donut"?an(CJe,{data:m,suffix:p}):an(EJe,{data:m,suffix:p});return l?h?an("div",{className:"w-full",children:h}):null:an(M,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:wd("div",{...Te(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:[wd("div",{children:[(e??"").trim()&&an("span",{className:`inline-block bg-accent px-3.5 py-1.5 font-mono ${rm.labelLarge} font-semibold uppercase tracking-[0.16em] text-bg`,children:A(e??"")}),(t??"").trim()&&an("h2",{className:`mt-5 font-heading2 ${rm.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${rm.headingMediumUpTo800}`,children:ee(t??"",!1)}),(o??"").trim()&&an("p",{className:`mt-5 max-w-[46ch] ${rm.bodySmall} leading-relaxed text-fg/65`,children:o})]}),wd("div",{children:[h,(i??"").trim()&&an("p",{className:`mt-4 font-mono ${rm.labelSmall} uppercase tracking-[0.14em] text-fg/40`,children:i})]})]})})}var RJe=()=>[{label:u("Before"),value:"9"},{label:u("After"),value:"3"},{label:u("With us"),value:"1"}],gxe={...$Q,render:e=>{let{eyebrow:t,title:o,body:n,items:r,caption:a,chartStyle:i,valueSuffix:s,headPlacement:l,editor:d}=e,c=ze(l)==="own-box",p=m=>c?void 0:m;return _Je(hxe,{eyebrow:p(_(t,cb.eyebrow,d)),title:p(_(o,cb.title,d)),body:p(nn(n)),items:He(r,RJe(),d),chartStyle:i,valueSuffix:nn(s),caption:p(nn(a)),editing:d?.isEditing,omitHead:c,pad:Xe("Chart",e)})}};import{jsx as e9,Fragment as ZJe}from"react/jsx-runtime";import{jsx as Gt,jsxs as vs,Fragment as vxe}from"react/jsx-runtime";import{useEffect as WJe,useState as UJe}from"react";import{useRootIsDark as GJe}from"efficient-shell/theme";import{jsx as bxe,jsxs as wxe}from"react/jsx-runtime";var XM={headingSmall:"text-[length:var(--size-headingSmall,24px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function QN({groupKey:e,name:t,count:o}){return wxe("div",{className:"mb-5 flex items-end justify-between gap-4 border-b border-line pb-4",children:[bxe("span",{className:`font-mono ${XM.labelLarge} uppercase tracking-[0.3em] text-accent`,children:e}),t?bxe("span",{className:`font-heading3 ${XM.headingSmall} font-medium uppercase tracking-[-0.01em]`,children:t}):null,wxe("span",{className:`font-mono ${XM.labelSmall} uppercase tracking-[0.22em] text-fg-dim`,children:[o," location",o===1?"":"s"]})]})}import{jsx as dk,jsxs as ZM}from"react/jsx-runtime";import{useMemo as DJe}from"react";import{jsx as NJe,jsxs as OJe}from"react/jsx-runtime";import{useEffect as xxe,useRef as AJe,useState as yxe}from"react";import{EntityMap as LJe}from"efficient-shell/map";import{watchRootTheme as IJe}from"efficient-shell/format";var FJe={"--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 BJe(e){let[t,o]=yxe(()=>OE(e));return xxe(()=>(o(OE(e)),IJe(()=>o(OE(e)))),[e]),t?"light":"dark"}function HJe(e){let[t,o]=yxe(!1);return xxe(()=>{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 hx({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=AJe(null),m=HJe(p),f=BJe(t);return OJe("div",{ref:p,"data-site-map":"",className:n,style:FJe,children:[m&&NJe(LJe,{pins:e,selectedKey:r,focus:a,onSelect:i??(()=>{}),ariaLabel:o,fitTo:s,card:l,groupCrowded:d,look:"site",theme:f,cooperativeGestures:"coarse"}),c]})}var MJe="relative overflow-hidden max-view-desktop:aspect-square";function zJe(e,t,o){return Bm(t,o)?[{key:"place",label:e,lat:t,lng:o,glyph:"",tone:""}]:[]}function JM(e,t,o,n){return e||(t?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent([t,o,n].filter(Boolean).join(" "))}`:"")}function QM({href:e}){return dk("a",{href:e,...LP,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 eO({name:e,state:t,country:o,lat:n,lng:r,mapsUrl:a,mapTheme:i="auto",pick:s,editing:l,boxClass:d=MJe,takesViewHide:c=!1}){let p=Bm(n,r),m=t,f=e||"Location",g=DJe(()=>zJe(f,n,r),[f,n,r]),h=JM(a,e,t,o),w=ZM("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:[ZM("span",{className:"font-display text-[length:var(--size-body,14px)] font-medium tracking-[-0.01em]",children:[f,m?`, ${m}`:""]}),h&&dk(QM,{href:h})]});return p?dk(M,{takes:c,"data-loc-pick":s,className:d,children:dk(hx,{pins:g,mapTheme:i,ariaLabel:f,className:"absolute inset-0",children:w})}):ZM(M,{takes:c,"data-loc-pick":s,className:`${d} bg-bg`,style:{backgroundImage:"repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 4%, transparent) 0 1px, transparent 1px 14px), repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent) 4%, transparent) 0 1px, transparent 1px 14px), linear-gradient(135deg, var(--site-surface-2), var(--site-surface))"},children:[w,l&&dk("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 $Je=LJ({box:".contact-loc",lit:['.contact-loc[data-active="true"]'],first:e=>[`${e} > div:first-child`]}),kxe=e=>xr(e?.photo)?.trim()||void 0;function Sxe({value:e}){if(typeof e=="string"){let t=e.split(`